@zydon/common 1.0.20 → 1.0.22

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.
Files changed (103) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/assets/illustrations/BackgroundIllustration.d.ts +4 -0
  3. package/dist/assets/illustrations/BackgroundIllustration.d.ts.map +1 -0
  4. package/dist/assets/illustrations/UploadIllustration.d.ts +5 -0
  5. package/dist/assets/illustrations/UploadIllustration.d.ts.map +1 -0
  6. package/dist/assets/illustrations/index.d.ts +2 -0
  7. package/dist/assets/illustrations/index.d.ts.map +1 -0
  8. package/dist/components/ColorPickerInput/index.d.ts.map +1 -1
  9. package/dist/components/Image/index.d.ts.map +1 -1
  10. package/dist/components/ImageCropModal/index.d.ts.map +1 -1
  11. package/dist/components/ImageCropModal/props.d.ts +1 -0
  12. package/dist/components/ImageCropModal/props.d.ts.map +1 -1
  13. package/dist/components/UploadWithCropField/index.d.ts +5 -0
  14. package/dist/components/UploadWithCropField/index.d.ts.map +1 -0
  15. package/dist/components/UploadWithCropField/props.d.ts +14 -0
  16. package/dist/components/UploadWithCropField/props.d.ts.map +1 -0
  17. package/dist/components/animate/DialogAnimate.d.ts +9 -0
  18. package/dist/components/animate/DialogAnimate.d.ts.map +1 -0
  19. package/dist/components/animate/FabButtonAnimate.d.ts +8 -0
  20. package/dist/components/animate/FabButtonAnimate.d.ts.map +1 -0
  21. package/dist/components/animate/IconButtonAnimate.d.ts +5 -0
  22. package/dist/components/animate/IconButtonAnimate.d.ts.map +1 -0
  23. package/dist/components/animate/MotionContainer.d.ts +11 -0
  24. package/dist/components/animate/MotionContainer.d.ts.map +1 -0
  25. package/dist/components/animate/MotionLazyContainer.d.ts +7 -0
  26. package/dist/components/animate/MotionLazyContainer.d.ts.map +1 -0
  27. package/dist/components/animate/MotionViewport.d.ts +11 -0
  28. package/dist/components/animate/MotionViewport.d.ts.map +1 -0
  29. package/dist/components/animate/TextAnimate.d.ts +10 -0
  30. package/dist/components/animate/TextAnimate.d.ts.map +1 -0
  31. package/dist/components/animate/index.d.ts +9 -0
  32. package/dist/components/animate/index.d.ts.map +1 -0
  33. package/dist/components/animate/types.d.ts +27 -0
  34. package/dist/components/animate/types.d.ts.map +1 -0
  35. package/dist/components/animate/variants/actions.d.ts +6 -0
  36. package/dist/components/animate/variants/actions.d.ts.map +1 -0
  37. package/dist/components/animate/variants/background.d.ts +105 -0
  38. package/dist/components/animate/variants/background.d.ts.map +1 -0
  39. package/dist/components/animate/variants/bounce.d.ts +137 -0
  40. package/dist/components/animate/variants/bounce.d.ts.map +1 -0
  41. package/dist/components/animate/variants/container.d.ts +20 -0
  42. package/dist/components/animate/variants/container.d.ts.map +1 -0
  43. package/dist/components/animate/variants/fade.d.ts +218 -0
  44. package/dist/components/animate/variants/fade.d.ts.map +1 -0
  45. package/dist/components/animate/variants/flip.d.ts +76 -0
  46. package/dist/components/animate/variants/flip.d.ts.map +1 -0
  47. package/dist/components/animate/variants/index.d.ts +13 -0
  48. package/dist/components/animate/variants/index.d.ts.map +1 -0
  49. package/dist/components/animate/variants/path.d.ts +15 -0
  50. package/dist/components/animate/variants/path.d.ts.map +1 -0
  51. package/dist/components/animate/variants/rotate.d.ts +40 -0
  52. package/dist/components/animate/variants/rotate.d.ts.map +1 -0
  53. package/dist/components/animate/variants/scale.d.ts +76 -0
  54. package/dist/components/animate/variants/scale.d.ts.map +1 -0
  55. package/dist/components/animate/variants/slide.d.ts +156 -0
  56. package/dist/components/animate/variants/slide.d.ts.map +1 -0
  57. package/dist/components/animate/variants/transition.d.ts +14 -0
  58. package/dist/components/animate/variants/transition.d.ts.map +1 -0
  59. package/dist/components/animate/variants/zoom.d.ts +200 -0
  60. package/dist/components/animate/variants/zoom.d.ts.map +1 -0
  61. package/dist/components/file-thumbnail/DownloadButton.d.ts +7 -0
  62. package/dist/components/file-thumbnail/DownloadButton.d.ts.map +1 -0
  63. package/dist/components/file-thumbnail/FileThumbnail.d.ts +14 -0
  64. package/dist/components/file-thumbnail/FileThumbnail.d.ts.map +1 -0
  65. package/dist/components/file-thumbnail/index.d.ts +4 -0
  66. package/dist/components/file-thumbnail/index.d.ts.map +1 -0
  67. package/dist/components/file-thumbnail/types.d.ts +6 -0
  68. package/dist/components/file-thumbnail/types.d.ts.map +1 -0
  69. package/dist/components/file-thumbnail/utils.d.ts +25 -0
  70. package/dist/components/file-thumbnail/utils.d.ts.map +1 -0
  71. package/dist/components/index.d.ts +9 -0
  72. package/dist/components/index.d.ts.map +1 -1
  73. package/dist/components/upload/Upload.d.ts +5 -0
  74. package/dist/components/upload/Upload.d.ts.map +1 -0
  75. package/dist/components/upload/UploadAvatar.d.ts +5 -0
  76. package/dist/components/upload/UploadAvatar.d.ts.map +1 -0
  77. package/dist/components/upload/UploadBox.d.ts +5 -0
  78. package/dist/components/upload/UploadBox.d.ts.map +1 -0
  79. package/dist/components/upload/UploadWithCrop.d.ts +15 -0
  80. package/dist/components/upload/UploadWithCrop.d.ts.map +1 -0
  81. package/dist/components/upload/errors/RejectionFiles.d.ts +8 -0
  82. package/dist/components/upload/errors/RejectionFiles.d.ts.map +1 -0
  83. package/dist/components/upload/preview/AvatarPreview.d.ts +8 -0
  84. package/dist/components/upload/preview/AvatarPreview.d.ts.map +1 -0
  85. package/dist/components/upload/preview/MultiFilePreview.d.ts +5 -0
  86. package/dist/components/upload/preview/MultiFilePreview.d.ts.map +1 -0
  87. package/dist/components/upload/preview/SingleFilePreview.d.ts +8 -0
  88. package/dist/components/upload/preview/SingleFilePreview.d.ts.map +1 -0
  89. package/dist/features-1dce9d76.js +3424 -0
  90. package/dist/hooks/useUpload.d.ts +11 -0
  91. package/dist/hooks/useUpload.d.ts.map +1 -0
  92. package/dist/index-610c51c6.js +28605 -0
  93. package/dist/index.js +77 -22837
  94. package/dist/index.umd.cjs +185 -61
  95. package/dist/types/upload.d.ts +28 -0
  96. package/dist/types/upload.d.ts.map +1 -0
  97. package/dist/utils/formatNumber.d.ts +8 -0
  98. package/dist/utils/formatNumber.d.ts.map +1 -0
  99. package/dist/utils/index.d.ts +1 -0
  100. package/dist/utils/index.d.ts.map +1 -1
  101. package/package.json +5 -1
  102. package/dist/components/upload/UploadWithCrop/index.d.ts +0 -4
  103. package/dist/components/upload/UploadWithCrop/index.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- (function(te,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-hook-form"),require("@mui/material"),require("@mui/x-date-pickers-pro"),require("@emotion/react"),require("@mui/x-data-grid-premium"),require("react-dom"),require("@emotion/styled"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-hook-form","@mui/material","@mui/x-date-pickers-pro","@emotion/react","@mui/x-data-grid-premium","react-dom","@emotion/styled","react-router-dom"],p):(te=typeof globalThis<"u"?globalThis:te||self,p(te.common={},te.React,te.reactHookForm,te.material,te.xDatePickersPro,te.react,te.xDataGridPremium,te.require$$1,te.emStyled,te.reactRouterDom))})(this,function(te,p,_t,W,qn,vi,Wr,Gl,Rh,er){"use strict";function Bh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Pe=Bh(p);var zo=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 mi={exports:{}},Kn={};/**
1
+ (function(z,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("react-hook-form"),require("@mui/x-date-pickers-pro"),require("@mui/x-data-grid-premium"),require("react-dom"),require("@emotion/styled"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","react-hook-form","@mui/x-date-pickers-pro","@mui/x-data-grid-premium","react-dom","@emotion/styled","react-router-dom"],p):(z=typeof globalThis<"u"?globalThis:z||self,p(z.common={},z.React,z.material,z.react,z.reactHookForm,z.xDatePickersPro,z.xDataGridPremium,z.require$$1,z.emStyled,z.reactRouterDom))})(this,function(z,p,$,bl,Dt,Ki,Rn,sd,wb,_r){"use strict";function Cb(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=Cb(p),ld={duration:2,ease:[.43,.13,.23,.96]},Tb={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:ld}},Sb=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}},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}},Zi=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:Ae}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:Pe({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:Pe({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:Pe({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:Pe({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:Ae({durationOut:n,easeOut:o})}},out:{initial:{opacity:1},animate:{opacity:0,transition:Pe({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:Pe({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:Pe({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:Pe({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:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:Ae({durationOut:n,easeOut:o})}}}},Eb=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:Ae({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:Ae({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:Ae({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:Ae({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:Ae({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})}}}},Ob=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:Ae({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: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})}}}},Pb=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:Ae({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,transition:Ae({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,transition:Ae({durationOut:n,easeOut:o})}},inRight:{initial:{x:t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,transition:Ae({durationOut:n,easeOut:o})}},outUp:{initial:{y:0},animate:{y:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:Ae({durationOut:n,easeOut:o})}},outDown:{initial:{y:0},animate:{y:t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:Ae({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0},animate:{x:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:Ae({durationOut:n,easeOut:o})}},outRight:{initial:{x:0},animate:{x:t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:Ae({durationOut:n,easeOut:o})}}}},Mb=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:Ae({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:Ae({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})}}}},_b=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: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:Pe({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:Pe({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:Pe({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]}}}},$b=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:Ae({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:Ae({durationOut:r,easeOut:i})}}}},Ab=e=>({hover:{scale:e||1.1}}),ca=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}}}},kb=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}}}},Db=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}}}}},jb=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 Qi=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 xl={exports:{}},Ji={};/**
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 Vl;function Wh(){if(Vl)return Kn;Vl=1;var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,u){var c,f={},d=null,h=null;u!==void 0&&(d=""+u),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(h=l.ref);for(c in l)n.call(l,c)&&!a.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:o.current}}return Kn.Fragment=r,Kn.jsx=i,Kn.jsxs=i,Kn}var Qn={};/**
9
+ */var cd;function Ib(){if(cd)return Ji;cd=1;var e=p,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,c,l){var u,f={},d=null,h=null;l!==void 0&&(d=""+l),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!o.hasOwnProperty(u)&&(f[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)f[u]===void 0&&(f[u]=c[u]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return Ji.Fragment=r,Ji.jsx=a,Ji.jsxs=a,Ji}var eo={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,63 +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 ql;function Hh(){return ql||(ql=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=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,g="@@iterator";function v(b){if(b===null||typeof b!="object")return null;var M=m&&b[m]||b[g];return typeof M=="function"?M:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(b){{for(var M=arguments.length,z=new Array(M>1?M-1:0),de=1;de<M;de++)z[de-1]=arguments[de];k("error",b,z)}}function k(b,M,z){{var de=w.ReactDebugCurrentFrame,Fe=de.getStackAddendum();Fe!==""&&(M+="%s",z=z.concat([Fe]));var qe=z.map(function(_e){return String(_e)});qe.unshift("Warning: "+M),Function.prototype.apply.call(console[b],console,qe)}}var R=!1,x=!1,S=!1,j=!1,B=!1,ue;ue=Symbol.for("react.module.reference");function K(b){return!!(typeof b=="string"||typeof b=="function"||b===n||b===a||B||b===o||b===u||b===c||j||b===h||R||x||S||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===f||b.$$typeof===i||b.$$typeof===s||b.$$typeof===l||b.$$typeof===ue||b.getModuleId!==void 0))}function pe(b,M,z){var de=b.displayName;if(de)return de;var Fe=M.displayName||M.name||"";return Fe!==""?z+"("+Fe+")":z}function Oe(b){return b.displayName||"Context"}function ye(b){if(b==null)return null;if(typeof b.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case s:var M=b;return Oe(M)+".Consumer";case i:var z=b;return Oe(z._context)+".Provider";case l:return pe(b,b.render,"ForwardRef");case f:var de=b.displayName||null;return de!==null?de:ye(b.type)||"Memo";case d:{var Fe=b,qe=Fe._payload,_e=Fe._init;try{return ye(_e(qe))}catch{return null}}}return null}var xe=Object.assign,ce=0,he,De,Ke,rt,E,L,J;function ee(){}ee.__reactDisabledLog=!0;function G(){{if(ce===0){he=console.log,De=console.info,Ke=console.warn,rt=console.error,E=console.group,L=console.groupCollapsed,J=console.groupEnd;var b={configurable:!0,enumerable:!0,value:ee,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}ce++}}function ie(){{if(ce--,ce===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},b,{value:he}),info:xe({},b,{value:De}),warn:xe({},b,{value:Ke}),error:xe({},b,{value:rt}),group:xe({},b,{value:E}),groupCollapsed:xe({},b,{value:L}),groupEnd:xe({},b,{value:J})})}ce<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=w.ReactCurrentDispatcher,le;function Y(b,M,z){{if(le===void 0)try{throw Error()}catch(Fe){var de=Fe.stack.trim().match(/\n( *(at )?)/);le=de&&de[1]||""}return`
18
- `+le+b}}var q=!1,ae;{var me=typeof WeakMap=="function"?WeakMap:Map;ae=new me}function I(b,M){if(!b||q)return"";{var z=ae.get(b);if(z!==void 0)return z}var de;q=!0;var Fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var qe;qe=se.current,se.current=null,G();try{if(M){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(dr){de=dr}Reflect.construct(b,[],_e)}else{try{_e.call()}catch(dr){de=dr}b.call(_e.prototype)}}else{try{throw Error()}catch(dr){de=dr}b()}}catch(dr){if(dr&&de&&typeof dr.stack=="string"){for(var Ce=dr.stack.split(`
19
- `),Ot=de.stack.split(`
20
- `),pt=Ce.length-1,gt=Ot.length-1;pt>=1&&gt>=0&&Ce[pt]!==Ot[gt];)gt--;for(;pt>=1&&gt>=0;pt--,gt--)if(Ce[pt]!==Ot[gt]){if(pt!==1||gt!==1)do if(pt--,gt--,gt<0||Ce[pt]!==Ot[gt]){var Ft=`
21
- `+Ce[pt].replace(" at new "," at ");return b.displayName&&Ft.includes("<anonymous>")&&(Ft=Ft.replace("<anonymous>",b.displayName)),typeof b=="function"&&ae.set(b,Ft),Ft}while(pt>=1&&gt>=0);break}}}finally{q=!1,se.current=qe,ie(),Error.prepareStackTrace=Fe}var Vn=b?b.displayName||b.name:"",Fh=Vn?Y(Vn):"";return typeof b=="function"&&ae.set(b,Fh),Fh}function Ye(b,M,z){return I(b,!1)}function Z(b){var M=b.prototype;return!!(M&&M.isReactComponent)}function ft(b,M,z){if(b==null)return"";if(typeof b=="function")return I(b,Z(b));if(typeof b=="string")return Y(b);switch(b){case u:return Y("Suspense");case c:return Y("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return Ye(b.render);case f:return ft(b.type,M,z);case d:{var de=b,Fe=de._payload,qe=de._init;try{return ft(qe(Fe),M,z)}catch{}}}return""}var Ut=Object.prototype.hasOwnProperty,Cr={},Bo=w.ReactDebugCurrentFrame;function Hn(b){if(b){var M=b._owner,z=ft(b.type,b._source,M?M.type:null);Bo.setExtraStackFrame(z)}else Bo.setExtraStackFrame(null)}function zn(b,M,z,de,Fe){{var qe=Function.call.bind(Ut);for(var _e in b)if(qe(b,_e)){var Ce=void 0;try{if(typeof b[_e]!="function"){var Ot=Error((de||"React class")+": "+z+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ot.name="Invariant Violation",Ot}Ce=b[_e](M,_e,de,z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pt){Ce=pt}Ce&&!(Ce instanceof Error)&&(Hn(Fe),T("%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).",de||"React class",z,_e,typeof Ce),Hn(null)),Ce instanceof Error&&!(Ce.message in Cr)&&(Cr[Ce.message]=!0,Hn(Fe),T("Failed %s type: %s",z,Ce.message),Hn(null))}}}var Yl=Array.isArray;function Un(b){return Yl(b)}function Wo(b){{var M=typeof Symbol=="function"&&Symbol.toStringTag,z=M&&b[Symbol.toStringTag]||b.constructor.name||"Object";return z}}function Yn(b){try{return Gn(b),!1}catch{return!0}}function Gn(b){return""+b}function hi(b){if(Yn(b))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wo(b)),Gn(b)}var _=w.ReactCurrentOwner,O={key:!0,ref:!0,__self:!0,__source:!0},A,D,ge;ge={};function we(b){if(Ut.call(b,"ref")){var M=Object.getOwnPropertyDescriptor(b,"ref").get;if(M&&M.isReactWarning)return!1}return b.ref!==void 0}function Ne(b){if(Ut.call(b,"key")){var M=Object.getOwnPropertyDescriptor(b,"key").get;if(M&&M.isReactWarning)return!1}return b.key!==void 0}function C(b,M){if(typeof b.ref=="string"&&_.current&&M&&_.current.stateNode!==M){var z=ye(_.current.type);ge[z]||(T('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',ye(_.current.type),b.ref),ge[z]=!0)}}function $(b,M){{var z=function(){A||(A=!0,T("%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)",M))};z.isReactWarning=!0,Object.defineProperty(b,"key",{get:z,configurable:!0})}}function re(b,M){{var z=function(){D||(D=!0,T("%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)",M))};z.isReactWarning=!0,Object.defineProperty(b,"ref",{get:z,configurable:!0})}}var Q=function(b,M,z,de,Fe,qe,_e){var Ce={$$typeof:t,type:b,key:M,ref:z,props:_e,_owner:qe};return Ce._store={},Object.defineProperty(Ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:de}),Object.defineProperty(Ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Fe}),Object.freeze&&(Object.freeze(Ce.props),Object.freeze(Ce)),Ce};function X(b,M,z,de,Fe){{var qe,_e={},Ce=null,Ot=null;z!==void 0&&(hi(z),Ce=""+z),Ne(M)&&(hi(M.key),Ce=""+M.key),we(M)&&(Ot=M.ref,C(M,Fe));for(qe in M)Ut.call(M,qe)&&!O.hasOwnProperty(qe)&&(_e[qe]=M[qe]);if(b&&b.defaultProps){var pt=b.defaultProps;for(qe in pt)_e[qe]===void 0&&(_e[qe]=pt[qe])}if(Ce||Ot){var gt=typeof b=="function"?b.displayName||b.name||"Unknown":b;Ce&&$(_e,gt),Ot&&re(_e,gt)}return Q(b,Ce,Ot,Fe,de,_.current,_e)}}var ve=w.ReactCurrentOwner,Qe=w.ReactDebugCurrentFrame;function Ue(b){if(b){var M=b._owner,z=ft(b.type,b._source,M?M.type:null);Qe.setExtraStackFrame(z)}else Qe.setExtraStackFrame(null)}var Ge;Ge=!1;function dt(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function ot(){{if(ve.current){var b=ye(ve.current.type);if(b)return`
17
+ */var ud;function Lb(){return ud||(ud=1,process.env.NODE_ENV!=="production"&&function(){var e=p,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"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function y(C){if(C===null||typeof C!="object")return null;var B=g&&C[g]||C[m];return typeof B=="function"?B:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(C){{for(var B=arguments.length,J=new Array(B>1?B-1:0),Te=1;Te<B;Te++)J[Te-1]=arguments[Te];T("error",C,J)}}function T(C,B,J){{var Te=x.ReactDebugCurrentFrame,Ye=Te.getStackAddendum();Ye!==""&&(B+="%s",J=J.concat([Ye]));var tt=J.map(function(Re){return String(Re)});tt.unshift("Warning: "+B),Function.prototype.apply.call(console[C],console,tt)}}var P=!1,w=!1,E=!1,O=!1,_=!1,L;L=Symbol.for("react.module.reference");function W(C){return!!(typeof C=="string"||typeof C=="function"||C===n||C===o||_||C===i||C===l||C===u||O||C===h||P||w||E||typeof C=="object"&&C!==null&&(C.$$typeof===d||C.$$typeof===f||C.$$typeof===a||C.$$typeof===s||C.$$typeof===c||C.$$typeof===L||C.getModuleId!==void 0))}function de(C,B,J){var Te=C.displayName;if(Te)return Te;var Ye=B.displayName||B.name||"";return Ye!==""?J+"("+Ye+")":J}function ve(C){return C.displayName||"Context"}function ce(C){if(C==null)return null;if(typeof C.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case s:var B=C;return ve(B)+".Consumer";case a:var J=C;return ve(J._context)+".Provider";case c:return de(C,C.render,"ForwardRef");case f:var Te=C.displayName||null;return Te!==null?Te:ce(C.type)||"Memo";case d:{var Ye=C,tt=Ye._payload,Re=Ye._init;try{return ce(Re(tt))}catch{return null}}}return null}var q=Object.assign,Y=0,ge,Se,We,Me,D,I,Z;function ne(){}ne.__reactDisabledLog=!0;function G(){{if(Y===0){ge=console.log,Se=console.info,We=console.warn,Me=console.error,D=console.group,I=console.groupCollapsed,Z=console.groupEnd;var C={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}Y++}}function ue(){{if(Y--,Y===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},C,{value:ge}),info:q({},C,{value:Se}),warn:q({},C,{value:We}),error:q({},C,{value:Me}),group:q({},C,{value:D}),groupCollapsed:q({},C,{value:I}),groupEnd:q({},C,{value:Z})})}Y<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=x.ReactCurrentDispatcher,pe;function K(C,B,J){{if(pe===void 0)try{throw Error()}catch(Ye){var Te=Ye.stack.trim().match(/\n( *(at )?)/);pe=Te&&Te[1]||""}return`
18
+ `+pe+C}}var Q=!1,te;{var ye=typeof WeakMap=="function"?WeakMap:Map;te=new ye}function F(C,B){if(!C||Q)return"";{var J=te.get(C);if(J!==void 0)return J}var Te;Q=!0;var Ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var tt;tt=se.current,se.current=null,G();try{if(B){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(Ur){Te=Ur}Reflect.construct(C,[],Re)}else{try{Re.call()}catch(Ur){Te=Ur}C.call(Re.prototype)}}else{try{throw Error()}catch(Ur){Te=Ur}C()}}catch(Ur){if(Ur&&Te&&typeof Ur.stack=="string"){for(var ke=Ur.stack.split(`
19
+ `),Bt=Te.stack.split(`
20
+ `),Tt=ke.length-1,Ot=Bt.length-1;Tt>=1&&Ot>=0&&ke[Tt]!==Bt[Ot];)Ot--;for(;Tt>=1&&Ot>=0;Tt--,Ot--)if(ke[Tt]!==Bt[Ot]){if(Tt!==1||Ot!==1)do if(Tt--,Ot--,Ot<0||ke[Tt]!==Bt[Ot]){var sr=`
21
+ `+ke[Tt].replace(" at new "," at ");return C.displayName&&sr.includes("<anonymous>")&&(sr=sr.replace("<anonymous>",C.displayName)),typeof C=="function"&&te.set(C,sr),sr}while(Tt>=1&&Ot>=0);break}}}finally{Q=!1,se.current=tt,ue(),Error.prepareStackTrace=Ye}var Xi=C?C.displayName||C.name:"",xb=Xi?K(Xi):"";return typeof C=="function"&&te.set(C,xb),xb}function Le(C,B,J){return F(C,!1)}function ae(C){var B=C.prototype;return!!(B&&B.isReactComponent)}function ut(C,B,J){if(C==null)return"";if(typeof C=="function")return F(C,ae(C));if(typeof C=="string")return K(C);switch(C){case l:return K("Suspense");case u:return K("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case c:return Le(C.render);case f:return ut(C.type,B,J);case d:{var Te=C,Ye=Te._payload,tt=Te._init;try{return ut(tt(Ye),B,J)}catch{}}}return""}var qt=Object.prototype.hasOwnProperty,Nt={},Wr=x.ReactDebugCurrentFrame;function gr(C){if(C){var B=C._owner,J=ut(C.type,C._source,B?B.type:null);Wr.setExtraStackFrame(J)}else Wr.setExtraStackFrame(null)}function mr(C,B,J,Te,Ye){{var tt=Function.call.bind(qt);for(var Re in C)if(tt(C,Re)){var ke=void 0;try{if(typeof C[Re]!="function"){var Bt=Error((Te||"React class")+": "+J+" type `"+Re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[Re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Bt.name="Invariant Violation",Bt}ke=C[Re](B,Re,Te,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Tt){ke=Tt}ke&&!(ke instanceof Error)&&(gr(Ye),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,Re,typeof ke),gr(null)),ke instanceof Error&&!(ke.message in Nt)&&(Nt[ke.message]=!0,gr(Ye),b("Failed %s type: %s",J,ke.message),gr(null))}}}var sa=Array.isArray;function fn(C){return sa(C)}function Ln(C){{var B=typeof Symbol=="function"&&Symbol.toStringTag,J=B&&C[Symbol.toStringTag]||C.constructor.name||"Object";return J}}function X(C){try{return me(C),!1}catch{return!0}}function me(C){return""+C}function st(C){if(X(C))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ln(C)),me(C)}var k=x.ReactCurrentOwner,S={key:!0,ref:!0,__self:!0,__source:!0},R,N,we;we={};function Ee(C){if(qt.call(C,"ref")){var B=Object.getOwnPropertyDescriptor(C,"ref").get;if(B&&B.isReactWarning)return!1}return C.ref!==void 0}function Fe(C){if(qt.call(C,"key")){var B=Object.getOwnPropertyDescriptor(C,"key").get;if(B&&B.isReactWarning)return!1}return C.key!==void 0}function M(C,B){if(typeof C.ref=="string"&&k.current&&B&&k.current.stateNode!==B){var J=ce(k.current.type);we[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',ce(k.current.type),C.ref),we[J]=!0)}}function j(C,B){{var J=function(){R||(R=!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)",B))};J.isReactWarning=!0,Object.defineProperty(C,"key",{get:J,configurable:!0})}}function le(C,B){{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)",B))};J.isReactWarning=!0,Object.defineProperty(C,"ref",{get:J,configurable:!0})}}var ie=function(C,B,J,Te,Ye,tt,Re){var ke={$$typeof:t,type:C,key:B,ref:J,props:Re,_owner:tt};return ke._store={},Object.defineProperty(ke._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ke,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(ke,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ye}),Object.freeze&&(Object.freeze(ke.props),Object.freeze(ke)),ke};function re(C,B,J,Te,Ye){{var tt,Re={},ke=null,Bt=null;J!==void 0&&(st(J),ke=""+J),Fe(B)&&(st(B.key),ke=""+B.key),Ee(B)&&(Bt=B.ref,M(B,Ye));for(tt in B)qt.call(B,tt)&&!S.hasOwnProperty(tt)&&(Re[tt]=B[tt]);if(C&&C.defaultProps){var Tt=C.defaultProps;for(tt in Tt)Re[tt]===void 0&&(Re[tt]=Tt[tt])}if(ke||Bt){var Ot=typeof C=="function"?C.displayName||C.name||"Unknown":C;ke&&j(Re,Ot),Bt&&le(Re,Ot)}return ie(C,ke,Bt,Ye,Te,k.current,Re)}}var Oe=x.ReactCurrentOwner,it=x.ReactDebugCurrentFrame;function Qe(C){if(C){var B=C._owner,J=ut(C.type,C._source,B?B.type:null);it.setExtraStackFrame(J)}else it.setExtraStackFrame(null)}var Je;Je=!1;function Ct(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function pt(){{if(Oe.current){var C=ce(Oe.current.type);if(C)return`
22
22
 
23
- Check the render method of \``+b+"`."}return""}}function bt(b){{if(b!==void 0){var M=b.fileName.replace(/^.*[\\\/]/,""),z=b.lineNumber;return`
23
+ Check the render method of \``+C+"`."}return""}}function At(C){{if(C!==void 0){var B=C.fileName.replace(/^.*[\\\/]/,""),J=C.lineNumber;return`
24
24
 
25
- Check your code at `+M+":"+z+"."}return""}}var cr={};function fr(b){{var M=ot();if(!M){var z=typeof b=="string"?b:b.displayName||b.name;z&&(M=`
25
+ Check your code at `+B+":"+J+"."}return""}}var Vr={};function Hr(C){{var B=pt();if(!B){var J=typeof C=="string"?C:C.displayName||C.name;J&&(B=`
26
26
 
27
- Check the top-level render call using <`+z+">.")}return M}}function Br(b,M){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var z=fr(M);if(cr[z])return;cr[z]=!0;var de="";b&&b._owner&&b._owner!==ve.current&&(de=" It was passed a child from "+ye(b._owner.type)+"."),Ue(b),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',z,de),Ue(null)}}function Ho(b,M){{if(typeof b!="object")return;if(Un(b))for(var z=0;z<b.length;z++){var de=b[z];dt(de)&&Br(de,M)}else if(dt(b))b._store&&(b._store.validated=!0);else if(b){var Fe=v(b);if(typeof Fe=="function"&&Fe!==b.entries)for(var qe=Fe.call(b),_e;!(_e=qe.next()).done;)dt(_e.value)&&Br(_e.value,M)}}}function gi(b){{var M=b.type;if(M==null||typeof M=="string")return;var z;if(typeof M=="function")z=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===l||M.$$typeof===f))z=M.propTypes;else return;if(z){var de=ye(M);zn(z,b.props,"prop",de,b)}else if(M.PropTypes!==void 0&&!Ge){Ge=!0;var Fe=ye(M);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Fe||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Cj(b){{for(var M=Object.keys(b.props),z=0;z<M.length;z++){var de=M[z];if(de!=="children"&&de!=="key"){Ue(b),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",de),Ue(null);break}}b.ref!==null&&(Ue(b),T("Invalid attribute `ref` supplied to `React.Fragment`."),Ue(null))}}function Nh(b,M,z,de,Fe,qe){{var _e=K(b);if(!_e){var Ce="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(Ce+=" 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 Ot=bt(Fe);Ot?Ce+=Ot:Ce+=ot();var pt;b===null?pt="null":Un(b)?pt="array":b!==void 0&&b.$$typeof===t?(pt="<"+(ye(b.type)||"Unknown")+" />",Ce=" Did you accidentally export a JSX literal instead of a component?"):pt=typeof b,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pt,Ce)}var gt=X(b,M,z,Fe,qe);if(gt==null)return gt;if(_e){var Ft=M.children;if(Ft!==void 0)if(de)if(Un(Ft)){for(var Vn=0;Vn<Ft.length;Vn++)Ho(Ft[Vn],b);Object.freeze&&Object.freeze(Ft)}else T("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 Ho(Ft,b)}return b===n?Cj(gt):gi(gt),gt}}function Sj(b,M,z){return Nh(b,M,z,!0)}function Ej(b,M,z){return Nh(b,M,z,!1)}var $j=Ej,_j=Sj;Qn.Fragment=n,Qn.jsx=$j,Qn.jsxs=_j}()),Qn}process.env.NODE_ENV==="production"?mi.exports=Wh():mi.exports=Hh();var y=mi.exports,Lt={},Zn={},zh=typeof zo=="object"&&zo&&zo.Object===Object&&zo,Xl=zh,Uh=Xl,Yh=typeof self=="object"&&self&&self.Object===Object&&self,Gh=Uh||Yh||Function("return this")(),Yt=Gh,Vh=Yt,qh=Vh.Symbol,Jn=qh,Kl=Jn,Ql=Object.prototype,Xh=Ql.hasOwnProperty,Kh=Ql.toString,eo=Kl?Kl.toStringTag:void 0;function Qh(e){var t=Xh.call(e,eo),r=e[eo];try{e[eo]=void 0;var n=!0}catch{}var o=Kh.call(e);return n&&(t?e[eo]=r:delete e[eo]),o}var Zh=Qh,Jh=Object.prototype,e0=Jh.toString;function t0(e){return e0.call(e)}var r0=t0,Zl=Jn,n0=Zh,o0=r0,a0="[object Null]",i0="[object Undefined]",Jl=Zl?Zl.toStringTag:void 0;function s0(e){return e==null?e===void 0?i0:a0:Jl&&Jl in Object(e)?n0(e):o0(e)}var Sr=s0,l0=Array.isArray,Rt=l0;function u0(e){return e!=null&&typeof e=="object"}var tr=u0,c0=Sr,f0=Rt,d0=tr,p0="[object String]";function h0(e){return typeof e=="string"||!f0(e)&&d0(e)&&c0(e)==p0}var g0=h0;function v0(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(r(a[l],l,a)===!1)break}return t}}var m0=v0,b0=m0,y0=b0(),x0=y0;function w0(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var O0=w0,T0=Sr,C0=tr,S0="[object Arguments]";function E0(e){return C0(e)&&T0(e)==S0}var $0=E0,eu=$0,_0=tr,tu=Object.prototype,P0=tu.hasOwnProperty,M0=tu.propertyIsEnumerable,k0=eu(function(){return arguments}())?eu:function(e){return _0(e)&&P0.call(e,"callee")&&!M0.call(e,"callee")},ru=k0,Uo={exports:{}};function A0(){return!1}var D0=A0;Uo.exports,function(e,t){var r=Yt,n=D0,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Uo,Uo.exports);var bi=Uo.exports,I0=9007199254740991,j0=/^(?:0|[1-9]\d*)$/;function L0(e,t){var r=typeof e;return t=t??I0,!!t&&(r=="number"||r!="symbol"&&j0.test(e))&&e>-1&&e%1==0&&e<t}var nu=L0,N0=9007199254740991;function F0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=N0}var yi=F0,R0=Sr,B0=yi,W0=tr,H0="[object Arguments]",z0="[object Array]",U0="[object Boolean]",Y0="[object Date]",G0="[object Error]",V0="[object Function]",q0="[object Map]",X0="[object Number]",K0="[object Object]",Q0="[object RegExp]",Z0="[object Set]",J0="[object String]",eg="[object WeakMap]",tg="[object ArrayBuffer]",rg="[object DataView]",ng="[object Float32Array]",og="[object Float64Array]",ag="[object Int8Array]",ig="[object Int16Array]",sg="[object Int32Array]",lg="[object Uint8Array]",ug="[object Uint8ClampedArray]",cg="[object Uint16Array]",fg="[object Uint32Array]",Ze={};Ze[ng]=Ze[og]=Ze[ag]=Ze[ig]=Ze[sg]=Ze[lg]=Ze[ug]=Ze[cg]=Ze[fg]=!0,Ze[H0]=Ze[z0]=Ze[tg]=Ze[U0]=Ze[rg]=Ze[Y0]=Ze[G0]=Ze[V0]=Ze[q0]=Ze[X0]=Ze[K0]=Ze[Q0]=Ze[Z0]=Ze[J0]=Ze[eg]=!1;function dg(e){return W0(e)&&B0(e.length)&&!!Ze[R0(e)]}var pg=dg;function hg(e){return function(t){return e(t)}}var xi=hg,Yo={exports:{}};Yo.exports,function(e,t){var r=Xl,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}(Yo,Yo.exports);var wi=Yo.exports,gg=pg,vg=xi,ou=wi,au=ou&&ou.isTypedArray,mg=au?vg(au):gg,iu=mg,bg=O0,yg=ru,xg=Rt,wg=bi,Og=nu,Tg=iu,Cg=Object.prototype,Sg=Cg.hasOwnProperty;function Eg(e,t){var r=xg(e),n=!r&&yg(e),o=!r&&!n&&wg(e),a=!r&&!n&&!o&&Tg(e),i=r||n||o||a,s=i?bg(e.length,String):[],l=s.length;for(var u in e)(t||Sg.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Og(u,l)))&&s.push(u);return s}var su=Eg,$g=Object.prototype;function _g(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$g;return e===r}var Oi=_g;function Pg(e,t){return function(r){return e(t(r))}}var lu=Pg,Mg=lu,kg=Mg(Object.keys,Object),Ag=kg,Dg=Oi,Ig=Ag,jg=Object.prototype,Lg=jg.hasOwnProperty;function Ng(e){if(!Dg(e))return Ig(e);var t=[];for(var r in Object(e))Lg.call(e,r)&&r!="constructor"&&t.push(r);return t}var Fg=Ng;function Rg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hr=Rg,Bg=Sr,Wg=Hr,Hg="[object AsyncFunction]",zg="[object Function]",Ug="[object GeneratorFunction]",Yg="[object Proxy]";function Gg(e){if(!Wg(e))return!1;var t=Bg(e);return t==zg||t==Ug||t==Hg||t==Yg}var uu=Gg,Vg=uu,qg=yi;function Xg(e){return e!=null&&qg(e.length)&&!Vg(e)}var Go=Xg,Kg=su,Qg=Fg,Zg=Go;function Jg(e){return Zg(e)?Kg(e):Qg(e)}var to=Jg,ev=x0,tv=to;function rv(e,t){return e&&ev(e,t,tv)}var cu=rv;function nv(e){return e}var fu=nv,ov=fu;function av(e){return typeof e=="function"?e:ov}var iv=av,sv=cu,lv=iv;function uv(e,t){return e&&sv(e,lv(t))}var Ti=uv,cv=lu,fv=cv(Object.getPrototypeOf,Object),Ci=fv,dv=Sr,pv=Ci,hv=tr,gv="[object Object]",vv=Function.prototype,mv=Object.prototype,du=vv.toString,bv=mv.hasOwnProperty,yv=du.call(Object);function xv(e){if(!hv(e)||dv(e)!=gv)return!1;var t=pv(e);if(t===null)return!0;var r=bv.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&du.call(r)==yv}var wv=xv;function Ov(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var pu=Ov;function Tv(){this.__data__=[],this.size=0}var Cv=Tv;function Sv(e,t){return e===t||e!==e&&t!==t}var Si=Sv,Ev=Si;function $v(e,t){for(var r=e.length;r--;)if(Ev(e[r][0],t))return r;return-1}var Vo=$v,_v=Vo,Pv=Array.prototype,Mv=Pv.splice;function kv(e){var t=this.__data__,r=_v(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Mv.call(t,r,1),--this.size,!0}var Av=kv,Dv=Vo;function Iv(e){var t=this.__data__,r=Dv(t,e);return r<0?void 0:t[r][1]}var jv=Iv,Lv=Vo;function Nv(e){return Lv(this.__data__,e)>-1}var Fv=Nv,Rv=Vo;function Bv(e,t){var r=this.__data__,n=Rv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Wv=Bv,Hv=Cv,zv=Av,Uv=jv,Yv=Fv,Gv=Wv;function zr(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])}}zr.prototype.clear=Hv,zr.prototype.delete=zv,zr.prototype.get=Uv,zr.prototype.has=Yv,zr.prototype.set=Gv;var qo=zr,Vv=qo;function qv(){this.__data__=new Vv,this.size=0}var Xv=qv;function Kv(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Qv=Kv;function Zv(e){return this.__data__.get(e)}var Jv=Zv;function em(e){return this.__data__.has(e)}var tm=em,rm=Yt,nm=rm["__core-js_shared__"],om=nm,Ei=om,hu=function(){var e=/[^.]+$/.exec(Ei&&Ei.keys&&Ei.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function am(e){return!!hu&&hu in e}var im=am,sm=Function.prototype,lm=sm.toString;function um(e){if(e!=null){try{return lm.call(e)}catch{}try{return e+""}catch{}}return""}var gu=um,cm=uu,fm=im,dm=Hr,pm=gu,hm=/[\\^$.*+?()[\]{}|]/g,gm=/^\[object .+?Constructor\]$/,vm=Function.prototype,mm=Object.prototype,bm=vm.toString,ym=mm.hasOwnProperty,xm=RegExp("^"+bm.call(ym).replace(hm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wm(e){if(!dm(e)||fm(e))return!1;var t=cm(e)?xm:gm;return t.test(pm(e))}var Om=wm;function Tm(e,t){return e==null?void 0:e[t]}var Cm=Tm,Sm=Om,Em=Cm;function $m(e,t){var r=Em(e,t);return Sm(r)?r:void 0}var Er=$m,_m=Er,Pm=Yt,Mm=_m(Pm,"Map"),$i=Mm,km=Er,Am=km(Object,"create"),Xo=Am,vu=Xo;function Dm(){this.__data__=vu?vu(null):{},this.size=0}var Im=Dm;function jm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lm=jm,Nm=Xo,Fm="__lodash_hash_undefined__",Rm=Object.prototype,Bm=Rm.hasOwnProperty;function Wm(e){var t=this.__data__;if(Nm){var r=t[e];return r===Fm?void 0:r}return Bm.call(t,e)?t[e]:void 0}var Hm=Wm,zm=Xo,Um=Object.prototype,Ym=Um.hasOwnProperty;function Gm(e){var t=this.__data__;return zm?t[e]!==void 0:Ym.call(t,e)}var Vm=Gm,qm=Xo,Xm="__lodash_hash_undefined__";function Km(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qm&&t===void 0?Xm:t,this}var Qm=Km,Zm=Im,Jm=Lm,eb=Hm,tb=Vm,rb=Qm;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=Zm,Ur.prototype.delete=Jm,Ur.prototype.get=eb,Ur.prototype.has=tb,Ur.prototype.set=rb;var nb=Ur,mu=nb,ob=qo,ab=$i;function ib(){this.size=0,this.__data__={hash:new mu,map:new(ab||ob),string:new mu}}var sb=ib;function lb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ub=lb,cb=ub;function fb(e,t){var r=e.__data__;return cb(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ko=fb,db=Ko;function pb(e){var t=db(this,e).delete(e);return this.size-=t?1:0,t}var hb=pb,gb=Ko;function vb(e){return gb(this,e).get(e)}var mb=vb,bb=Ko;function yb(e){return bb(this,e).has(e)}var xb=yb,wb=Ko;function Ob(e,t){var r=wb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Tb=Ob,Cb=sb,Sb=hb,Eb=mb,$b=xb,_b=Tb;function Yr(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])}}Yr.prototype.clear=Cb,Yr.prototype.delete=Sb,Yr.prototype.get=Eb,Yr.prototype.has=$b,Yr.prototype.set=_b;var _i=Yr,Pb=qo,Mb=$i,kb=_i,Ab=200;function Db(e,t){var r=this.__data__;if(r instanceof Pb){var n=r.__data__;if(!Mb||n.length<Ab-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new kb(n)}return r.set(e,t),this.size=r.size,this}var Ib=Db,jb=qo,Lb=Xv,Nb=Qv,Fb=Jv,Rb=tm,Bb=Ib;function Gr(e){var t=this.__data__=new jb(e);this.size=t.size}Gr.prototype.clear=Lb,Gr.prototype.delete=Nb,Gr.prototype.get=Fb,Gr.prototype.has=Rb,Gr.prototype.set=Bb;var Pi=Gr,Wb="__lodash_hash_undefined__";function Hb(e){return this.__data__.set(e,Wb),this}var zb=Hb;function Ub(e){return this.__data__.has(e)}var Yb=Ub,Gb=_i,Vb=zb,qb=Yb;function Qo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Gb;++t<r;)this.add(e[t])}Qo.prototype.add=Qo.prototype.push=Vb,Qo.prototype.has=qb;var Xb=Qo;function Kb(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 Qb=Kb;function Zb(e,t){return e.has(t)}var Jb=Zb,e1=Xb,t1=Qb,r1=Jb,n1=1,o1=2;function a1(e,t,r,n,o,a){var i=r&n1,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&o1?new e1:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var m=e[f],g=t[f];if(n)var v=i?n(g,m,f,t,e,a):n(m,g,f,e,t,a);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!t1(t,function(w,T){if(!r1(h,T)&&(m===w||o(m,w,r,n,a)))return h.push(T)})){d=!1;break}}else if(!(m===g||o(m,g,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var bu=a1,i1=Yt,s1=i1.Uint8Array,yu=s1;function l1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}var u1=l1;function c1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var f1=c1,xu=Jn,wu=yu,d1=Si,p1=bu,h1=u1,g1=f1,v1=1,m1=2,b1="[object Boolean]",y1="[object Date]",x1="[object Error]",w1="[object Map]",O1="[object Number]",T1="[object RegExp]",C1="[object Set]",S1="[object String]",E1="[object Symbol]",$1="[object ArrayBuffer]",_1="[object DataView]",Ou=xu?xu.prototype:void 0,Mi=Ou?Ou.valueOf:void 0;function P1(e,t,r,n,o,a,i){switch(r){case _1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $1:return!(e.byteLength!=t.byteLength||!a(new wu(e),new wu(t)));case b1:case y1:case O1:return d1(+e,+t);case x1:return e.name==t.name&&e.message==t.message;case T1:case S1:return e==t+"";case w1:var s=h1;case C1:var l=n&v1;if(s||(s=g1),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=m1,i.set(e,t);var c=p1(s(e),s(t),n,o,a,i);return i.delete(e),c;case E1:if(Mi)return Mi.call(e)==Mi.call(t)}return!1}var M1=P1;function k1(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Tu=k1,A1=Tu,D1=Rt;function I1(e,t,r){var n=t(e);return D1(e)?n:A1(n,r(e))}var Cu=I1;function j1(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}var L1=j1;function N1(){return[]}var Su=N1,F1=L1,R1=Su,B1=Object.prototype,W1=B1.propertyIsEnumerable,Eu=Object.getOwnPropertySymbols,H1=Eu?function(e){return e==null?[]:(e=Object(e),F1(Eu(e),function(t){return W1.call(e,t)}))}:R1,ki=H1,z1=Cu,U1=ki,Y1=to;function G1(e){return z1(e,Y1,U1)}var $u=G1,_u=$u,V1=1,q1=Object.prototype,X1=q1.hasOwnProperty;function K1(e,t,r,n,o,a){var i=r&V1,s=_u(e),l=s.length,u=_u(t),c=u.length;if(l!=c&&!i)return!1;for(var f=l;f--;){var d=s[f];if(!(i?d in t:X1.call(t,d)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);for(var v=i;++f<l;){d=s[f];var w=e[d],T=t[d];if(n)var k=i?n(T,w,d,t,e,a):n(w,T,d,e,t,a);if(!(k===void 0?w===T||o(w,T,r,n,a):k)){g=!1;break}v||(v=d=="constructor")}if(g&&!v){var R=e.constructor,x=t.constructor;R!=x&&"constructor"in e&&"constructor"in t&&!(typeof R=="function"&&R instanceof R&&typeof x=="function"&&x instanceof x)&&(g=!1)}return a.delete(e),a.delete(t),g}var Q1=K1,Z1=Er,J1=Yt,ey=Z1(J1,"DataView"),ty=ey,ry=Er,ny=Yt,oy=ry(ny,"Promise"),ay=oy,iy=Er,sy=Yt,ly=iy(sy,"Set"),uy=ly,cy=Er,fy=Yt,dy=cy(fy,"WeakMap"),py=dy,Ai=ty,Di=$i,Ii=ay,ji=uy,Li=py,Pu=Sr,Vr=gu,Mu="[object Map]",hy="[object Object]",ku="[object Promise]",Au="[object Set]",Du="[object WeakMap]",Iu="[object DataView]",gy=Vr(Ai),vy=Vr(Di),my=Vr(Ii),by=Vr(ji),yy=Vr(Li),$r=Pu;(Ai&&$r(new Ai(new ArrayBuffer(1)))!=Iu||Di&&$r(new Di)!=Mu||Ii&&$r(Ii.resolve())!=ku||ji&&$r(new ji)!=Au||Li&&$r(new Li)!=Du)&&($r=function(e){var t=Pu(e),r=t==hy?e.constructor:void 0,n=r?Vr(r):"";if(n)switch(n){case gy:return Iu;case vy:return Mu;case my:return ku;case by:return Au;case yy:return Du}return t});var Zo=$r,Ni=Pi,xy=bu,wy=M1,Oy=Q1,ju=Zo,Lu=Rt,Nu=bi,Ty=iu,Cy=1,Fu="[object Arguments]",Ru="[object Array]",Jo="[object Object]",Sy=Object.prototype,Bu=Sy.hasOwnProperty;function Ey(e,t,r,n,o,a){var i=Lu(e),s=Lu(t),l=i?Ru:ju(e),u=s?Ru:ju(t);l=l==Fu?Jo:l,u=u==Fu?Jo:u;var c=l==Jo,f=u==Jo,d=l==u;if(d&&Nu(e)){if(!Nu(t))return!1;i=!0,c=!1}if(d&&!c)return a||(a=new Ni),i||Ty(e)?xy(e,t,r,n,o,a):wy(e,t,l,r,n,o,a);if(!(r&Cy)){var h=c&&Bu.call(e,"__wrapped__"),m=f&&Bu.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return a||(a=new Ni),o(g,v,r,n,a)}}return d?(a||(a=new Ni),Oy(e,t,r,n,o,a)):!1}var $y=Ey,_y=$y,Wu=tr;function Hu(e,t,r,n,o){return e===t?!0:e==null||t==null||!Wu(e)&&!Wu(t)?e!==e&&t!==t:_y(e,t,r,n,Hu,o)}var Fi=Hu,Py=Pi,My=Fi,ky=1,Ay=2;function Dy(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){s=r[o];var l=s[0],u=e[l],c=s[1];if(i&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Py;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?My(c,u,ky|Ay,n,f):d))return!1}}return!0}var Iy=Dy,jy=Hr;function Ly(e){return e===e&&!jy(e)}var zu=Ly,Ny=zu,Fy=to;function Ry(e){for(var t=Fy(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ny(o)]}return t}var By=Ry;function Wy(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Uu=Wy,Hy=Iy,zy=By,Uy=Uu;function Yy(e){var t=zy(e);return t.length==1&&t[0][2]?Uy(t[0][0],t[0][1]):function(r){return r===e||Hy(r,e,t)}}var Gy=Yy,Vy=Sr,qy=tr,Xy="[object Symbol]";function Ky(e){return typeof e=="symbol"||qy(e)&&Vy(e)==Xy}var Ri=Ky,Qy=Rt,Zy=Ri,Jy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ex=/^\w*$/;function tx(e,t){if(Qy(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Zy(e)?!0:ex.test(e)||!Jy.test(e)||t!=null&&e in Object(t)}var Bi=tx,Yu=_i,rx="Expected a function";function Wi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rx);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Wi.Cache||Yu),r}Wi.Cache=Yu;var nx=Wi,ox=nx,ax=500;function ix(e){var t=ox(e,function(n){return r.size===ax&&r.clear(),n}),r=t.cache;return t}var sx=ix,lx=sx,ux=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cx=/\\(\\)?/g,fx=lx(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ux,function(r,n,o,a){t.push(o?a.replace(cx,"$1"):n||r)}),t}),dx=fx,Gu=Jn,px=pu,hx=Rt,gx=Ri,vx=1/0,Vu=Gu?Gu.prototype:void 0,qu=Vu?Vu.toString:void 0;function Xu(e){if(typeof e=="string")return e;if(hx(e))return px(e,Xu)+"";if(gx(e))return qu?qu.call(e):"";var t=e+"";return t=="0"&&1/e==-vx?"-0":t}var mx=Xu,bx=mx;function yx(e){return e==null?"":bx(e)}var xx=yx,wx=Rt,Ox=Bi,Tx=dx,Cx=xx;function Sx(e,t){return wx(e)?e:Ox(e,t)?[e]:Tx(Cx(e))}var Ku=Sx,Ex=Ri,$x=1/0;function _x(e){if(typeof e=="string"||Ex(e))return e;var t=e+"";return t=="0"&&1/e==-$x?"-0":t}var ea=_x,Px=Ku,Mx=ea;function kx(e,t){t=Px(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Mx(t[r++])];return r&&r==n?e:void 0}var Qu=kx,Ax=Qu;function Dx(e,t,r){var n=e==null?void 0:Ax(e,t);return n===void 0?r:n}var Ix=Dx;function jx(e,t){return e!=null&&t in Object(e)}var Lx=jx,Nx=Ku,Fx=ru,Rx=Rt,Bx=nu,Wx=yi,Hx=ea;function zx(e,t,r){t=Nx(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=Hx(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Wx(o)&&Bx(i,o)&&(Rx(e)||Fx(e)))}var Ux=zx,Yx=Lx,Gx=Ux;function Vx(e,t){return e!=null&&Gx(e,t,Yx)}var qx=Vx,Xx=Fi,Kx=Ix,Qx=qx,Zx=Bi,Jx=zu,e2=Uu,t2=ea,r2=1,n2=2;function o2(e,t){return Zx(e)&&Jx(t)?e2(t2(e),t):function(r){var n=Kx(r,e);return n===void 0&&n===t?Qx(r,e):Xx(t,n,r2|n2)}}var a2=o2;function i2(e){return function(t){return t==null?void 0:t[e]}}var s2=i2,l2=Qu;function u2(e){return function(t){return l2(t,e)}}var c2=u2,f2=s2,d2=c2,p2=Bi,h2=ea;function g2(e){return p2(e)?f2(h2(e)):d2(e)}var v2=g2,m2=Gy,b2=a2,y2=fu,x2=Rt,w2=v2;function O2(e){return typeof e=="function"?e:e==null?y2:typeof e=="object"?x2(e)?b2(e[0],e[1]):m2(e):w2(e)}var T2=O2,C2=Go;function S2(e,t){return function(r,n){if(r==null)return r;if(!C2(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&n(i[a],a,i)!==!1;);return r}}var E2=S2,$2=cu,_2=E2,P2=_2($2),M2=P2,k2=M2,A2=Go;function D2(e,t){var r=-1,n=A2(e)?Array(e.length):[];return k2(e,function(o,a,i){n[++r]=t(o,a,i)}),n}var I2=D2,j2=pu,L2=T2,N2=I2,F2=Rt;function R2(e,t){var r=F2(e)?j2:N2;return r(e,L2(t))}var B2=R2;Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.flattenNames=void 0;var W2=g0,H2=ta(W2),z2=Ti,U2=ta(z2),Y2=wv,G2=ta(Y2),V2=B2,q2=ta(V2);function ta(e){return e&&e.__esModule?e:{default:e}}var X2=Zn.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,q2.default)(t,function(n){Array.isArray(n)?e(n).map(function(o){return r.push(o)}):(0,G2.default)(n)?(0,U2.default)(n,function(o,a){o===!0&&r.push(a),r.push(a+"-"+o)}):(0,H2.default)(n)&&r.push(n)}),r};Zn.default=X2;var ro={};function K2(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Q2=K2,Z2=Er,J2=function(){try{var e=Z2(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ew=J2,Zu=ew;function tw(e,t,r){t=="__proto__"&&Zu?Zu(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ju=tw,rw=Ju,nw=Si,ow=Object.prototype,aw=ow.hasOwnProperty;function iw(e,t,r){var n=e[t];(!(aw.call(e,t)&&nw(n,r))||r===void 0&&!(t in e))&&rw(e,t,r)}var ec=iw,sw=ec,lw=Ju;function uw(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),o?lw(r,s,l):sw(r,s,l)}return r}var ra=uw,cw=ra,fw=to;function dw(e,t){return e&&cw(t,fw(t),e)}var pw=dw;function hw(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var gw=hw,vw=Hr,mw=Oi,bw=gw,yw=Object.prototype,xw=yw.hasOwnProperty;function ww(e){if(!vw(e))return bw(e);var t=mw(e),r=[];for(var n in e)n=="constructor"&&(t||!xw.call(e,n))||r.push(n);return r}var Ow=ww,Tw=su,Cw=Ow,Sw=Go;function Ew(e){return Sw(e)?Tw(e,!0):Cw(e)}var Hi=Ew,$w=ra,_w=Hi;function Pw(e,t){return e&&$w(t,_w(t),e)}var Mw=Pw,na={exports:{}};na.exports,function(e,t){var r=Yt,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}e.exports=l}(na,na.exports);var kw=na.exports;function Aw(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Dw=Aw,Iw=ra,jw=ki;function Lw(e,t){return Iw(e,jw(e),t)}var Nw=Lw,Fw=Tu,Rw=Ci,Bw=ki,Ww=Su,Hw=Object.getOwnPropertySymbols,zw=Hw?function(e){for(var t=[];e;)Fw(t,Bw(e)),e=Rw(e);return t}:Ww,tc=zw,Uw=ra,Yw=tc;function Gw(e,t){return Uw(e,Yw(e),t)}var Vw=Gw,qw=Cu,Xw=tc,Kw=Hi;function Qw(e){return qw(e,Kw,Xw)}var Zw=Qw,Jw=Object.prototype,e5=Jw.hasOwnProperty;function t5(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&e5.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var r5=t5,rc=yu;function n5(e){var t=new e.constructor(e.byteLength);return new rc(t).set(new rc(e)),t}var zi=n5,o5=zi;function a5(e,t){var r=t?o5(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var i5=a5,s5=/\w*$/;function l5(e){var t=new e.constructor(e.source,s5.exec(e));return t.lastIndex=e.lastIndex,t}var u5=l5,nc=Jn,oc=nc?nc.prototype:void 0,ac=oc?oc.valueOf:void 0;function c5(e){return ac?Object(ac.call(e)):{}}var f5=c5,d5=zi;function p5(e,t){var r=t?d5(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var h5=p5,g5=zi,v5=i5,m5=u5,b5=f5,y5=h5,x5="[object Boolean]",w5="[object Date]",O5="[object Map]",T5="[object Number]",C5="[object RegExp]",S5="[object Set]",E5="[object String]",$5="[object Symbol]",_5="[object ArrayBuffer]",P5="[object DataView]",M5="[object Float32Array]",k5="[object Float64Array]",A5="[object Int8Array]",D5="[object Int16Array]",I5="[object Int32Array]",j5="[object Uint8Array]",L5="[object Uint8ClampedArray]",N5="[object Uint16Array]",F5="[object Uint32Array]";function R5(e,t,r){var n=e.constructor;switch(t){case _5:return g5(e);case x5:case w5:return new n(+e);case P5:return v5(e,r);case M5:case k5:case A5:case D5:case I5:case j5:case L5:case N5:case F5:return y5(e,r);case O5:return new n;case T5:case E5:return new n(e);case C5:return m5(e);case S5:return new n;case $5:return b5(e)}}var B5=R5,W5=Hr,ic=Object.create,H5=function(){function e(){}return function(t){if(!W5(t))return{};if(ic)return ic(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),z5=H5,U5=z5,Y5=Ci,G5=Oi;function V5(e){return typeof e.constructor=="function"&&!G5(e)?U5(Y5(e)):{}}var q5=V5,X5=Zo,K5=tr,Q5="[object Map]";function Z5(e){return K5(e)&&X5(e)==Q5}var J5=Z5,eO=J5,tO=xi,sc=wi,lc=sc&&sc.isMap,rO=lc?tO(lc):eO,nO=rO,oO=Zo,aO=tr,iO="[object Set]";function sO(e){return aO(e)&&oO(e)==iO}var lO=sO,uO=lO,cO=xi,uc=wi,cc=uc&&uc.isSet,fO=cc?cO(cc):uO,dO=fO,pO=Pi,hO=Q2,gO=ec,vO=pw,mO=Mw,bO=kw,yO=Dw,xO=Nw,wO=Vw,OO=$u,TO=Zw,CO=Zo,SO=r5,EO=B5,$O=q5,_O=Rt,PO=bi,MO=nO,kO=Hr,AO=dO,DO=to,IO=Hi,jO=1,LO=2,NO=4,fc="[object Arguments]",FO="[object Array]",RO="[object Boolean]",BO="[object Date]",WO="[object Error]",dc="[object Function]",HO="[object GeneratorFunction]",zO="[object Map]",UO="[object Number]",pc="[object Object]",YO="[object RegExp]",GO="[object Set]",VO="[object String]",qO="[object Symbol]",XO="[object WeakMap]",KO="[object ArrayBuffer]",QO="[object DataView]",ZO="[object Float32Array]",JO="[object Float64Array]",eT="[object Int8Array]",tT="[object Int16Array]",rT="[object Int32Array]",nT="[object Uint8Array]",oT="[object Uint8ClampedArray]",aT="[object Uint16Array]",iT="[object Uint32Array]",Xe={};Xe[fc]=Xe[FO]=Xe[KO]=Xe[QO]=Xe[RO]=Xe[BO]=Xe[ZO]=Xe[JO]=Xe[eT]=Xe[tT]=Xe[rT]=Xe[zO]=Xe[UO]=Xe[pc]=Xe[YO]=Xe[GO]=Xe[VO]=Xe[qO]=Xe[nT]=Xe[oT]=Xe[aT]=Xe[iT]=!0,Xe[WO]=Xe[dc]=Xe[XO]=!1;function oa(e,t,r,n,o,a){var i,s=t&jO,l=t&LO,u=t&NO;if(r&&(i=o?r(e,n,o,a):r(e)),i!==void 0)return i;if(!kO(e))return e;var c=_O(e);if(c){if(i=SO(e),!s)return yO(e,i)}else{var f=CO(e),d=f==dc||f==HO;if(PO(e))return bO(e,s);if(f==pc||f==fc||d&&!o){if(i=l||d?{}:$O(e),!s)return l?wO(e,mO(i,e)):xO(e,vO(i,e))}else{if(!Xe[f])return o?e:{};i=EO(e,f,s)}}a||(a=new pO);var h=a.get(e);if(h)return h;a.set(e,i),AO(e)?e.forEach(function(v){i.add(oa(v,t,r,v,e,a))}):MO(e)&&e.forEach(function(v,w){i.set(w,oa(v,t,r,w,e,a))});var m=u?l?TO:OO:l?IO:DO,g=c?void 0:m(e);return hO(g||e,function(v,w){g&&(w=v,v=e[w]),gO(i,w,oa(v,t,r,w,e,a))}),i}var sT=oa,lT=sT,uT=1,cT=4;function fT(e){return lT(e,uT|cT)}var dT=fT;Object.defineProperty(ro,"__esModule",{value:!0}),ro.mergeClasses=void 0;var pT=Ti,hT=hc(pT),gT=dT,vT=hc(gT),mT=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 hc(e){return e&&e.__esModule?e:{default:e}}var bT=ro.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,vT.default)(t.default)||{};return r.map(function(o){var a=t[o];return a&&(0,hT.default)(a,function(i,s){n[s]||(n[s]={}),n[s]=mT({},n[s],a[s])}),o}),n};ro.default=bT;var no={};Object.defineProperty(no,"__esModule",{value:!0}),no.autoprefix=void 0;var yT=Ti,gc=wT(yT),xT=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 wT(e){return e&&e.__esModule?e:{default:e}}var OT={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}}},TT=no.autoprefix=function(t){var r={};return(0,gc.default)(t,function(n,o){var a={};(0,gc.default)(n,function(i,s){var l=OT[s];l?a=xT({},a,l(i)):a[s]=i}),r[o]=a}),r};no.default=TT;var oo={};Object.defineProperty(oo,"__esModule",{value:!0}),oo.hover=void 0;var CT=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},ST=p,Ui=ET(ST);function ET(e){return e&&e.__esModule?e:{default:e}}function $T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vc(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 _T(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 PT=oo.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){_T(o,n);function o(){var a,i,s,l;$T(this,o);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return l=(i=(s=vc(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Ui.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Ui.default.createElement(t,CT({},s.props,s.state)))},i),vc(s,l)}return o}(Ui.default.Component)};oo.default=PT;var ao={};Object.defineProperty(ao,"__esModule",{value:!0}),ao.active=void 0;var MT=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},kT=p,Yi=AT(kT);function AT(e){return e&&e.__esModule?e:{default:e}}function DT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mc(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 IT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jT=ao.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){IT(o,n);function o(){var a,i,s,l;DT(this,o);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return l=(i=(s=mc(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Yi.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Yi.default.createElement(t,MT({},s.props,s.state)))},i),mc(s,l)}return o}(Yi.default.Component)};ao.default=jT;var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});var LT=function(t,r){var n={},o=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[i]=s};return t===0&&o("first-child"),t===r-1&&o("last-child"),(t===0||t%2===0)&&o("even"),Math.abs(t%2)===1&&o("odd"),o("nth-child",t),n};Gi.default=LT,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.ReactCSS=Lt.loop=Lt.handleActive=Vi=Lt.handleHover=Lt.hover=void 0;var NT=Zn,FT=qr(NT),RT=ro,BT=qr(RT),WT=no,HT=qr(WT),zT=oo,bc=qr(zT),UT=ao,YT=qr(UT),GT=Gi,VT=qr(GT);function qr(e){return e&&e.__esModule?e:{default:e}}Lt.hover=bc.default;var Vi=Lt.handleHover=bc.default;Lt.handleActive=YT.default,Lt.loop=VT.default;var qT=Lt.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=(0,FT.default)(n),i=(0,BT.default)(t,a);return(0,HT.default)(i)},fe=Lt.default=qT,XT=function(t,r,n,o,a){var i=a.clientWidth,s=a.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=l-(a.getBoundingClientRect().left+window.pageXOffset),f=u-(a.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(c<0?h=0:c>i?h=1:h=Math.round(c*100/i)/100,o!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},qi={},KT=function(t,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},QT=function(t,r,n,o){var a=t+"-"+r+"-"+n+(o?"-server":"");if(qi[a])return qi[a];var i=KT(t,r,n,o);return qi[a]=i,i},yc=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},Xr=function(t){var r=t.white,n=t.grey,o=t.size,a=t.renderers,i=t.borderRadius,s=t.boxShadow,l=t.children,u=fe({default:{grid:{borderRadius:i,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+QT(r,n,o,a.canvas)+") center left"}}});return p.isValidElement(l)?p.cloneElement(l,yc({},l.props,{style:yc({},l.props.style,u.grid)})):p.createElement("div",{style:u.grid})};Xr.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ZT=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},JT=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function eC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xc(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 tC(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 Xi=function(e){tC(t,e);function t(){var r,n,o,a;eC(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return a=(n=(o=xc(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),o),o.handleChange=function(u){var c=XT(u,o.props.hsl,o.props.direction,o.props.a,o.container);c&&typeof o.props.onChange=="function"&&o.props.onChange(c,u)},o.handleMouseDown=function(u){o.handleChange(u),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleChange),window.removeEventListener("mouseup",o.handleMouseUp)},n),xc(o,a)}return JT(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,o=this.props.rgb,a=fe({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("+o.r+","+o.g+","+o.b+`, 0) 0%,
28
- rgba(`+o.r+","+o.g+","+o.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:o.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("+o.r+","+o.g+","+o.b+`, 0) 0%,
29
- rgba(`+o.r+","+o.g+","+o.b+", 1) 100%)"},pointer:{left:0,top:o.a*100+"%"}},overwrite:ZT({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return p.createElement("div",{style:a.alpha},p.createElement("div",{style:a.checkboard},p.createElement(Xr,{renderers:this.props.renderers})),p.createElement("div",{style:a.gradient}),p.createElement("div",{style:a.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("div",{style:a.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:a.slider}))))}}]),t}(p.PureComponent||p.Component),rC=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function nC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(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 iC(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 sC=1,wc=38,lC=40,uC=[wc,lC],cC=function(t){return uC.indexOf(t)>-1},fC=function(t){return Number(String(t).replace(/%/g,""))},dC=1,Se=function(e){iC(t,e);function t(r){oC(this,t);var n=aC(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(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=fC(o.target.value);if(!isNaN(a)&&cC(o.keyCode)){var i=n.getArrowOffset(),s=o.keyCode===wc?a+i:a-i;n.setUpdatedValue(s,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),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-"+dC++,n}return rC(t,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.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 nC({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||sC}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=fe({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 p.createElement("div",{style:o.wrap},p.createElement("input",{id:this.inputId,style:o.input,ref:function(i){return n.input=i},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?p.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(p.PureComponent||p.Component),pC=function(t,r,n,o){var a=o.clientWidth,i=o.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(o.getBoundingClientRect().left+window.pageXOffset),c=l-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f=void 0;if(c<0)f=359;else if(c>i)f=0;else{var d=-(c*100/i)+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(u<0)h=0;else if(u>a)h=359;else{var m=u*100/a;h=360*m/100}if(n.h!==h)return{h,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},hC=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function gC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oc(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 vC(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 Kr=function(e){vC(t,e);function t(){var r,n,o,a;gC(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return a=(n=(o=Oc(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),o),o.handleChange=function(u){var c=pC(u,o.props.direction,o.props.hsl,o.container);c&&typeof o.props.onChange=="function"&&o.props.onChange(c,u)},o.handleMouseDown=function(u){o.handleChange(u),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},n),Oc(o,a)}return hC(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,o=this.props.direction,a=o===void 0?"horizontal":o,i=fe({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:a==="vertical"});return p.createElement("div",{style:i.hue},p.createElement("div",{className:"hue-"+a,style:i.container,ref:function(l){return n.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("style",null,`
30
- .hue-horizontal {
31
- background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
32
- 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
33
- background: -webkit-linear-gradient(to right, #f00 0%, #ff0
34
- 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
35
- }
36
-
37
- .hue-vertical {
38
- background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
39
- #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
40
- background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
41
- #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
42
- }
43
- `),p.createElement("div",{style:i.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:i.slider}))))}}]),t}(p.PureComponent||p.Component),Ki={exports:{}},aa={exports:{}},Re={};/** @license React v16.13.1
27
+ Check the top-level render call using <`+J+">.")}return B}}function Fn(C,B){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var J=Hr(B);if(Vr[J])return;Vr[J]=!0;var Te="";C&&C._owner&&C._owner!==Oe.current&&(Te=" It was passed a child from "+ce(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 la(C,B){{if(typeof C!="object")return;if(fn(C))for(var J=0;J<C.length;J++){var Te=C[J];Ct(Te)&&Fn(Te,B)}else if(Ct(C))C._store&&(C._store.validated=!0);else if(C){var Ye=y(C);if(typeof Ye=="function"&&Ye!==C.entries)for(var tt=Ye.call(C),Re;!(Re=tt.next()).done;)Ct(Re.value)&&Fn(Re.value,B)}}}function yl(C){{var B=C.type;if(B==null||typeof B=="string")return;var J;if(typeof B=="function")J=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===c||B.$$typeof===f))J=B.propTypes;else return;if(J){var Te=ce(B);mr(J,C.props,"prop",Te,C)}else if(B.PropTypes!==void 0&&!Je){Je=!0;var Ye=ce(B);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ye||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Hq(C){{for(var B=Object.keys(C.props),J=0;J<B.length;J++){var Te=B[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 bb(C,B,J,Te,Ye,tt){{var Re=W(C);if(!Re){var ke="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(ke+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Bt=At(Ye);Bt?ke+=Bt:ke+=pt();var Tt;C===null?Tt="null":fn(C)?Tt="array":C!==void 0&&C.$$typeof===t?(Tt="<"+(ce(C.type)||"Unknown")+" />",ke=" Did you accidentally export a JSX literal instead of a component?"):Tt=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",Tt,ke)}var Ot=re(C,B,J,Ye,tt);if(Ot==null)return Ot;if(Re){var sr=B.children;if(sr!==void 0)if(Te)if(fn(sr)){for(var Xi=0;Xi<sr.length;Xi++)la(sr[Xi],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 la(sr,C)}return C===n?Hq(Ot):yl(Ot),Ot}}function Uq(C,B,J){return bb(C,B,J,!0)}function Yq(C,B,J){return bb(C,B,J,!1)}var Gq=Yq,qq=Uq;eo.Fragment=n,eo.jsx=Gq,eo.jsxs=qq}()),eo}process.env.NODE_ENV==="production"?xl.exports=Ib():xl.exports=Lb();var v=xl.exports;const fd=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ua=p.createContext({}),fa=p.createContext(null),da=typeof document<"u",wl=da?p.useLayoutEffect:p.useEffect,Cl=p.createContext({strict:!1});function Fb(e,t,r,n){const{visualElement:i}=p.useContext(ua),o=p.useContext(Cl),a=p.useContext(fa),s=p.useContext(fd).reducedMotion,c=p.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;p.useInsertionEffect(()=>{l&&l.update(r,a)});const u=p.useRef(!!window.HandoffAppearAnimations);return wl(()=>{l&&(l.render(),u.current&&l.animationState&&l.animationState.animateChanges())}),p.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 Rb(e,t,r){return p.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 to(e){return typeof e=="string"||Array.isArray(e)}function ha(e){return typeof e=="object"&&typeof e.start=="function"}const Tl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sl=["initial",...Tl];function pa(e){return ha(e.animate)||Sl.some(t=>to(e[t]))}function dd(e){return!!(pa(e)||e.variants)}function Nb(e,t){if(pa(e)){const{initial:r,animate:n}=e;return{initial:r===!1||to(r)?r:void 0,animate:to(n)?n:void 0}}return e.inherit!==!1?t:{}}function Bb(e){const{initial:t,animate:r}=Nb(e,p.useContext(ua));return p.useMemo(()=>({initial:t,animate:r}),[hd(t),hd(r)])}function hd(e){return Array.isArray(e)?e.join(" "):e}const pd={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"]},ro={};for(const e in pd)ro[e]={isEnabled:t=>pd[e].some(r=>!!t[r])};function El(e){for(const t in e)ro[t]={...ro[t],...e[t]}}const Ol=p.createContext({}),gd=p.createContext({}),zb=Symbol.for("motionComponentSymbol");function Wb({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&El(e);function o(s,c){let l;const u={...p.useContext(fd),...s,layoutId:Vb(s)},{isStatic:f}=u,d=Bb(s),h=n(s,f);if(!f&&da){d.visualElement=Fb(i,h,u,t);const g=p.useContext(gd),m=p.useContext(Cl).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,m,e,g))}return be.createElement(ua.Provider,{value:d},l&&d.visualElement?be.createElement(l,{visualElement:d.visualElement,...u}):null,r(i,s,Rb(h,d.visualElement,c),h,f,d.visualElement))}const a=p.forwardRef(o);return a[zb]=i,a}function Vb({layoutId:e}){const t=p.useContext(Ol).id;return t&&e!==void 0?t+"-"+e:e}function Hb(e){function t(n,i={}){return Wb(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 Ub=["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 Pl(e){return typeof e!="string"||e.includes("-")?!1:!!(Ub.indexOf(e)>-1||/[A-Z]/.test(e))}const ga={};function Yb(e){Object.assign(ga,e)}const no=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hn=new Set(no);function md(e,{layout:t,layoutId:r}){return hn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ga[e]||e==="opacity")}const zt=e=>!!(e&&e.getVelocity),Gb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qb=no.length;function Xb(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a<qb;a++){const s=no[a];if(e[s]!==void 0){const c=Gb[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 vd=e=>t=>typeof t=="string"&&t.startsWith(e),yd=vd("--"),Ml=vd("var(--"),Kb=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Zb=(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},io={...pn,transform:e=>Yr(0,1,e)},ma={...pn,default:1},oo=e=>Math.round(e*1e5)/1e5,va=/(-)?([\d]*\.?[\d])+/g,bd=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Qb=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ao(e){return typeof e=="string"}const so=e=>({test:t=>ao(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gr=so("deg"),vr=so("%"),xe=so("px"),Jb=so("vh"),e2=so("vw"),xd={...vr,parse:e=>vr.parse(e)/100,transform:e=>vr.transform(e*100)},wd={...pn,transform:Math.round},Cd={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:ma,scaleX:ma,scaleY:ma,scaleZ:ma,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:io,originX:xd,originY:xd,originZ:xe,zIndex:wd,fillOpacity:io,strokeOpacity:io,numOctaves:wd};function _l(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(yd(f)){o[f]=d;continue}const h=Cd[f],g=Zb(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=Xb(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 $l=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Td(e,t,r){for(const n in t)!zt(t[n])&&!md(n,r)&&(e[n]=t[n])}function t2({transformTemplate:e},t,r){return p.useMemo(()=>{const n=$l();return _l(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function r2(e,t,r){const n=e.style||{},i={};return Td(i,n,e),Object.assign(i,t2(e,t,r)),e.transformValues?e.transformValues(i):i}function n2(e,t,r){const n={},i=r2(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 i2=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 ya(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||i2.has(e)}let Sd=e=>!ya(e);function o2(e){e&&(Sd=t=>t.startsWith("on")?!ya(t):e(t))}try{o2(require("@emotion/is-prop-valid").default)}catch{}function a2(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(Sd(i)||r===!0&&ya(i)||!t&&!ya(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Ed(e,t,r){return typeof e=="string"?e:xe.transform(t+r*e)}function s2(e,t,r){const n=Ed(t,e.x,e.width),i=Ed(r,e.y,e.height);return`${n} ${i}`}const l2={offset:"stroke-dashoffset",array:"stroke-dasharray"},c2={offset:"strokeDashoffset",array:"strokeDasharray"};function u2(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?l2:c2;e[o.offset]=xe.transform(-n);const a=xe.transform(t),s=xe.transform(r);e[o.array]=`${a} ${s}`}function Al(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:c=0,...l},u,f,d){if(_l(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:m}=e;h.transform&&(m&&(g.transform=h.transform),delete h.transform),m&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=s2(m,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&&u2(h,a,s,c,!1)}const Od=()=>({...$l(),attrs:{}}),kl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function f2(e,t,r,n){const i=p.useMemo(()=>{const o=Od();return Al(o,t,{enableHardwareAcceleration:!1},kl(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Td(o,e.style,e),i.style={...o,...i.style}}return i}function d2(e=!1){return(r,n,i,{latestValues:o},a)=>{const c=(Pl(r)?f2:n2)(n,o,a,r),u={...a2(n,typeof r=="string",e),...c,ref:i},{children:f}=n,d=p.useMemo(()=>zt(f)?f.get():f,[f]);return p.createElement(r,{...u,children:d})}}const Dl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Pd(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 Md=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 _d(e,t,r,n){Pd(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Md.has(i)?i:Dl(i),t.attrs[i])}function jl(e,t){const{style:r}=e,n={};for(const i in r)(zt(r[i])||t.style&&zt(t.style[i])||md(i,e))&&(n[i]=r[i]);return n}function $d(e,t){const r=jl(e,t);for(const n in e)if(zt(e[n])||zt(t[n])){const i=no.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Il(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 Ad(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const ba=e=>Array.isArray(e),h2=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),p2=e=>ba(e)?e[e.length-1]||0:e;function xa(e){const t=zt(e)?e.get():e;return h2(t)?t.toValue():t}function g2({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:m2(n,i,o,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const kd=e=>(t,r)=>{const n=p.useContext(ua),i=p.useContext(fa),o=()=>g2(e,t,n,i);return r?o():Ad(o)};function m2(e,t,r,n){const i={},o=n(e,{});for(const d in o)i[d]=xa(o[d]);let{initial:a,animate:s}=e;const c=pa(e),l=dd(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"&&!ha(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const g=Il(e,h);if(!g)return;const{transitionEnd:m,transition:y,...x}=g;for(const b in x){let T=x[b];if(Array.isArray(T)){const P=u?T.length-1:0;T=T[P]}T!==null&&(i[b]=T)}for(const b in m)i[b]=m[b]}),i}const gt=e=>e;class Dd{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 v2(e){let t=new Dd,r=new Dd,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 wa=["prepare","read","update","preRender","render","postRender"],y2=40;function b2(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=wa.reduce((f,d)=>(f[d]=v2(()=>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,y2),1),i.timestamp=f,i.isProcessing=!0,wa.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},c=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:wa.reduce((f,d)=>{const h=o[d];return f[d]=(g,m=!1,y=!1)=>(r||c(),h.schedule(g,m,y)),f},{}),cancel:f=>wa.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:rt,cancel:$r,state:Mt,steps:Ll}=b2(typeof requestAnimationFrame<"u"?requestAnimationFrame:gt,!0),x2={useVisualState:kd({scrapeMotionValuesFromProps:$d,createRenderState:Od,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(()=>{Al(r,n,{enableHardwareAcceleration:!1},kl(t.tagName),e.transformTemplate),_d(t,r)})}})},w2={useVisualState:kd({scrapeMotionValuesFromProps:jl,createRenderState:$l})};function C2(e,{forwardMotionProps:t=!1},r,n){return{...Pl(e)?x2:w2,preloadedFeatures:r,useRender:d2(t),createVisualElement:n,Component:e}}function Ar(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const jd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ca(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const T2=e=>t=>jd(t)&&e(t,Ca(t));function kr(e,t,r,n){return Ar(e,t,T2(r),n)}const S2=(e,t)=>r=>t(e(r)),qr=(...e)=>e.reduce(S2);function Id(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Ld=Id("dragHorizontal"),Fd=Id("dragVertical");function Rd(e){let t=!1;if(e==="y")t=Fd();else if(e==="x")t=Ld();else{const r=Ld(),n=Fd();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Nd(){const e=Rd(!0);return e?(e(),!1):!0}class Xr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Bd(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.type==="touch"||Nd())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 E2 extends Xr{mount(){this.unmount=qr(Bd(this.node,!0),Bd(this.node,!1))}unmount(){}}class O2 extends Xr{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 Fl(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ca(r))}class P2 extends Xr{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()||Fl("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),Fl("down",(s,c)=>{this.startPress(s,c)})},r=Ar(this.node.current,"keydown",t),n=()=>{this.isPressing&&Fl("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),!Nd()}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 Rl=new WeakMap,Nl=new WeakMap,M2=e=>{const t=Rl.get(e.target);t&&t(e)},_2=e=>{e.forEach(M2)};function $2({root:e,...t}){const r=e||document;Nl.has(r)||Nl.set(r,{});const n=Nl.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(_2,{root:e,...t})),n[i]}function A2(e,t,r){const n=$2(t);return Rl.set(e,r),n.observe(e),()=>{Rl.delete(e),n.unobserve(e)}}const k2={some:0,all:1};class D2 extends Xr{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:k2[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 A2(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(j2(t,r))&&this.startObserver()}unmount(){}}function j2({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const I2={inView:{Feature:D2},tap:{Feature:P2},focus:{Feature:O2},hover:{Feature:E2}};function Wd(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 L2(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function F2(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ta(e,t,r){const n=e.getProps();return Il(n,t,r!==void 0?r:n.custom,L2(e),F2(e))}const R2="data-"+Dl("framerAppearId");let lo=gt,lr=gt;process.env.NODE_ENV!=="production"&&(lo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},lr=(e,t)=>{if(!e)throw new Error(t)});const Kr=e=>e*1e3,Dr=e=>e/1e3,N2={current:!1},Vd=e=>Array.isArray(e)&&typeof e[0]=="number";function Hd(e){return!!(!e||typeof e=="string"&&Ud[e]||Vd(e)||Array.isArray(e)&&e.every(Hd))}const co=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Ud={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:co([0,.65,.55,1]),circOut:co([.55,0,1,.45]),backIn:co([.31,.01,.66,-.59]),backOut:co([.33,1.53,.69,.99])};function Yd(e){if(e)return Vd(e)?co(e):Array.isArray(e)?e.map(Yd):Ud[e]}function B2(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=Yd(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 z2(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Gd=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,W2=1e-7,V2=12;function H2(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=Gd(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>W2&&++s<V2);return a}function uo(e,t,r,n){if(e===t&&r===n)return gt;const i=o=>H2(o,0,1,e,r);return o=>o===0||o===1?o:Gd(i(o),t,n)}const U2=uo(.42,0,1,1),Y2=uo(0,0,.58,1),qd=uo(.42,0,.58,1),G2=e=>Array.isArray(e)&&typeof e[0]!="number",Xd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Kd=e=>t=>1-e(1-t),Zd=e=>1-Math.sin(Math.acos(e)),Bl=Kd(Zd),q2=Xd(Bl),Qd=uo(.33,1.53,.69,.99),zl=Kd(Qd),X2=Xd(zl),Jd={linear:gt,easeIn:U2,easeInOut:qd,easeOut:Y2,circIn:Zd,circInOut:q2,circOut:Bl,backIn:zl,backInOut:X2,backOut:Qd,anticipate:e=>(e*=2)<1?.5*zl(e):.5*(2-Math.pow(2,-10*(e-1)))},eh=e=>{if(Array.isArray(e)){lr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return uo(t,r,n,i)}else if(typeof e=="string")return lr(Jd[e]!==void 0,`Invalid easing type '${e}'`),Jd[e];return e},Wl=(e,t)=>r=>!!(ao(r)&&Qb.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),th=(e,t,r)=>n=>{if(!ao(n))return n;const[i,o,a,s]=n.match(va);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},K2=e=>Yr(0,255,e),Vl={...pn,transform:e=>Math.round(K2(e))},gn={test:Wl("rgb","red"),parse:th("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Vl.transform(e)+", "+Vl.transform(t)+", "+Vl.transform(r)+", "+oo(io.transform(n))+")"};function Z2(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 Hl={test:Wl("#"),parse:Z2,transform:gn.transform},Bn={test:Wl("hsl","hue"),parse:th("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+vr.transform(oo(t))+", "+vr.transform(oo(r))+", "+oo(io.transform(n))+")"},Rt={test:e=>gn.test(e)||Hl.test(e)||Bn.test(e),parse:e=>gn.test(e)?gn.parse(e):Bn.test(e)?Bn.parse(e):Hl.parse(e),transform:e=>ao(e)?e:e.hasOwnProperty("red")?gn.transform(e):Bn.transform(e)},ft=(e,t,r)=>-r*e+r*t+e;function Ul(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 Q2({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=Ul(c,s,e+1/3),o=Ul(c,s,e),a=Ul(c,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const Yl=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},J2=[Hl,gn,Bn],ex=e=>J2.find(t=>t.test(e));function rh(e){const t=ex(e);lr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Bn&&(r=Q2(r)),r}const nh=(e,t)=>{const r=rh(e),n=rh(t),i={...r};return o=>(i.red=Yl(r.red,n.red,o),i.green=Yl(r.green,n.green,o),i.blue=Yl(r.blue,n.blue,o),i.alpha=ft(r.alpha,n.alpha,o),gn.transform(i))};function tx(e){var t,r;return isNaN(e)&&ao(e)&&(((t=e.match(va))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(bd))===null||r===void 0?void 0:r.length)||0)>0}const ih={regex:Kb,countKey:"Vars",token:"${v}",parse:gt},oh={regex:bd,countKey:"Colors",token:"${c}",parse:Rt.parse},ah={regex:va,countKey:"Numbers",token:"${n}",parse:pn.parse};function Gl(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 Sa(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Gl(r,ih),Gl(r,oh),Gl(r,ah),r}function sh(e){return Sa(e).values}function lh(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Sa(e),o=t.length;return a=>{let s=i;for(let c=0;c<o;c++)c<n?s=s.replace(ih.token,a[c]):c<n+r?s=s.replace(oh.token,Rt.transform(a[c])):s=s.replace(ah.token,oo(a[c]));return s}}const rx=e=>typeof e=="number"?0:e;function nx(e){const t=sh(e);return lh(e)(t.map(rx))}const Zr={test:tx,parse:sh,createTransformer:lh,getAnimatableNone:nx},ch=(e,t)=>r=>`${r>0?t:e}`;function uh(e,t){return typeof e=="number"?r=>ft(e,t,r):Rt.test(e)?nh(e,t):e.startsWith("var(")?ch(e,t):dh(e,t)}const fh=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>uh(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},ix=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=uh(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},dh=(e,t)=>{const r=Zr.createTransformer(t),n=Sa(e),i=Sa(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?qr(fh(n.values,i.values),r):(lo(!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.`),ch(e,t))},fo=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},hh=(e,t)=>r=>ft(e,t,r);function ox(e){return typeof e=="number"?hh:typeof e=="string"?Rt.test(e)?nh:dh:Array.isArray(e)?fh:typeof e=="object"?ix:hh}function ax(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 ph(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=ax(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=fo(e[u],e[u+1],l);return a[u](f)};return r?l=>c(Yr(e[0],e[o-1],l)):c}function sx(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=fo(0,t,n);e.push(ft(r,1,i))}}function lx(e){const t=[0];return sx(t,e.length-1),t}function cx(e,t){return e.map(r=>r*t)}function ux(e,t){return e.map(()=>t||qd).splice(0,e.length-1)}function Ea({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=G2(n)?n.map(eh):eh(n),o={done:!1,value:t[0]},a=cx(r&&r.length===t.length?r:lx(t),e),s=ph(a,t,{ease:Array.isArray(i)?i:ux(t,i)});return{calculatedDuration:e,next:c=>(o.value=s(c),o.done=c>=e,o)}}function gh(e,t){return t?e*(1e3/t):0}const fx=5;function mh(e,t,r){const n=Math.max(t-fx,0);return gh(r-e(n),t-n)}const ql=.001,dx=.01,vh=10,hx=.05,px=1;function gx({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;lo(e<=Kr(vh),"Spring duration must be 10 seconds or less");let a=1-t;a=Yr(hx,px,a),e=Yr(dx,vh,Dr(e)),a<1?(i=l=>{const u=l*a,f=u*e,d=u-r,h=Xl(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),m=Xl(Math.pow(l,2),a);return(-i(l)+ql>0?-1:1)*((d-h)*g)/m}):(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=vx(i,o,s);if(e=Kr(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 mx=12;function vx(e,t,r){let n=r;for(let i=1;i<mx;i++)n=n-e(n)/t(n);return n}function Xl(e,t){return e*Math.sqrt(1-t*t)}const yx=["duration","bounce"],bx=["stiffness","damping","mass"];function yh(e,t){return t.some(r=>e[r]!==void 0)}function xx(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!yh(e,bx)&&yh(e,yx)){const r=gx(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function bh({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}=xx(n),h=u?-Dr(u):0,g=c/(2*Math.sqrt(s*l)),m=o-i,y=Dr(Math.sqrt(s/l)),x=Math.abs(m)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(g<1){const T=Xl(y,g);b=P=>{const w=Math.exp(-g*y*P);return o-w*((h+g*y*m)/T*Math.sin(T*P)+m*Math.cos(T*P))}}else if(g===1)b=T=>o-Math.exp(-y*T)*(m+(h+y*m)*T);else{const T=y*Math.sqrt(g*g-1);b=P=>{const w=Math.exp(-g*y*P),E=Math.min(T*P,300);return o-w*((h+g*y*m)*Math.sinh(E)+T*m*Math.cosh(E))/T}}return{calculatedDuration:d&&f||null,next:T=>{const P=b(T);if(d)a.done=T>=f;else{let w=h;T!==0&&(g<1?w=mh(b,T,P):w=0);const E=Math.abs(w)<=r,O=Math.abs(o-P)<=t;a.done=E&&O}return a.value=a.done?o:P,a}}}function xh({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=_=>s!==void 0&&_<s||c!==void 0&&_>c,g=_=>s===void 0?c:c===void 0||Math.abs(s-_)<Math.abs(c-_)?s:c;let m=r*t;const y=f+m,x=a===void 0?y:a(y);x!==y&&(m=x-f);const b=_=>-m*Math.exp(-_/n),T=_=>x+b(_),P=_=>{const L=b(_),W=T(_);d.done=Math.abs(L)<=l,d.value=d.done?x:W};let w,E;const O=_=>{h(d.value)&&(w=_,E=bh({keyframes:[d.value,g(d.value)],velocity:mh(T,_,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return O(0),{calculatedDuration:null,next:_=>{let L=!1;return!E&&w===void 0&&(L=!0,P(_),O(_)),w!==void 0&&_>w?E.next(_-w):(!L&&P(_),d)}}}const wx=e=>{const t=({timestamp:r})=>e(r);return{start:()=>rt.update(t,!0),stop:()=>$r(t),now:()=>Mt.isProcessing?Mt.timestamp:performance.now()}},wh=2e4;function Ch(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<wh;)t+=r,n=e.next(t);return t>=wh?1/0:t}const Cx={decay:xh,inertia:xh,tween:Ea,keyframes:Ea,spring:bh};function Oa({autoplay:e=!0,delay:t=0,driver:r=wx,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,m,y;const x=()=>{y=new Promise(I=>{m=I})};x();let b;const T=Cx[i]||Ea;let P;T!==Ea&&typeof n[0]!="number"&&(P=ph([0,100],n,{clamp:!1}),n=[0,100]);const w=T({...d,keyframes:n});let E;s==="mirror"&&(E=T({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let O="idle",_=null,L=null,W=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=Ch(w));const{calculatedDuration:de}=w;let ve=1/0,ce=1/0;de!==null&&(ve=de+a,ce=ve*(o+1)-a);let q=0;const Y=I=>{if(L===null)return;h>0&&(L=Math.min(L,I)),h<0&&(L=Math.min(I-ce/h,L)),_!==null?q=_:q=Math.round(I-L)*h;const Z=q-t*(h>=0?1:-1),ne=h>=0?Z<0:Z>ce;q=Math.max(Z,0),O==="finished"&&_===null&&(q=ce);let G=q,ue=w;if(o){const Q=q/ve;let te=Math.floor(Q),ye=Q%1;!ye&&Q>=1&&(ye=1),ye===1&&te--,te=Math.min(te,o+1);const F=!!(te%2);F&&(s==="reverse"?(ye=1-ye,a&&(ye-=a/ve)):s==="mirror"&&(ue=E));let Le=Yr(0,1,ye);q>ce&&(Le=s==="reverse"&&F?1:0),G=Le*ve}const se=ne?{done:!1,value:n[0]}:ue.next(G);P&&(se.value=P(se.value));let{done:pe}=se;!ne&&de!==null&&(pe=h>=0?q>=ce:q<=0);const K=_===null&&(O==="finished"||O==="running"&&pe);return f&&f(se.value),K&&We(),se},ge=()=>{b&&b.stop(),b=void 0},Se=()=>{O="idle",ge(),m(),x(),L=W=null},We=()=>{O="finished",u&&u(),ge(),m()},Me=()=>{if(g)return;b||(b=r(Y));const I=b.now();c&&c(),_!==null?L=I-_:(!L||O==="finished")&&(L=I),O==="finished"&&x(),W=L,_=null,O="running",b.start()};e&&Me();const D={then(I,Z){return y.then(I,Z)},get time(){return Dr(q)},set time(I){I=Kr(I),q=I,_!==null||!b||h===0?_=I:L=b.now()-I/h},get duration(){const I=w.calculatedDuration===null?Ch(w):w.calculatedDuration;return Dr(I)},get speed(){return h},set speed(I){I===h||!b||(h=I,D.time=Dr(q))},get state(){return O},play:Me,pause:()=>{O="paused",_=q},stop:()=>{g=!0,O!=="idle"&&(O="idle",l&&l(),Se())},cancel:()=>{W!==null&&Y(W),Se()},complete:()=>{O="finished"},sample:I=>(L=0,Y(I))};return D}function Tx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Sx=Tx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ex=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pa=10,Ox=2e4,Px=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Hd(t.ease);function Mx(e,t,{onUpdate:r,onComplete:n,...i}){if(!(Sx()&&Ex.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(Px(t,i)){const b=Oa({...i,repeat:0,delay:0});let T={done:!1,value:u[0]};const P=[];let w=0;for(;!T.done&&w<Ox;)T=b.sample(w),P.push(T.value),w+=Pa;h=void 0,u=P,f=w-Pa,d="linear"}const g=B2(e.owner.current,t,u,{...i,duration:f,ease:d,times:h});i.syncStart&&(g.startTime=Mt.isProcessing?Mt.timestamp:performance.now());const m=()=>g.cancel(),y=()=>{rt.update(m),s(),l()};return g.onfinish=()=>{e.set(z2(u,i)),n&&n(),y()},{then(b,T){return c.then(b,T)},attachTimeline(b){return g.timeline=b,g.onfinish=null,gt},get time(){return Dr(g.currentTime||0)},set time(b){g.currentTime=Kr(b)},get speed(){return g.playbackRate},set speed(b){g.playbackRate=b},get duration(){return Dr(f)},play:()=>{a||(g.play(),$r(m))},pause:()=>g.pause(),stop:()=>{if(a=!0,g.playState==="idle")return;const{currentTime:b}=g;if(b){const T=Oa({...i,autoplay:!1});e.setWithVelocity(T.sample(b-Pa).value,T.sample(b).value,Pa)}y()},complete:()=>g.finish(),cancel:y}}function _x({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?Oa({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const $x={type:"spring",stiffness:500,damping:25,restSpeed:10},Ax=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kx={type:"keyframes",duration:.8},Dx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jx=(e,{keyframes:t})=>t.length>2?kx:hn.has(e)?e.startsWith("scale")?Ax(t[1]):$x:Dx,Kl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Zr.test(t)||t==="0")&&!t.startsWith("url(")),Ix=new Set(["brightness","contrast","saturate","opacity"]);function Lx(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(va)||[];if(!n)return e;const i=r.replace(n,"");let o=Ix.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const Fx=/([a-z-]*)\(.*?\)/g,Zl={...Zr,getAnimatableNone:e=>{const t=e.match(Fx);return t?t.map(Lx).join(" "):e}},Rx={...Cd,color:Rt,backgroundColor:Rt,outlineColor:Rt,fill:Rt,stroke:Rt,borderColor:Rt,borderTopColor:Rt,borderRightColor:Rt,borderBottomColor:Rt,borderLeftColor:Rt,filter:Zl,WebkitFilter:Zl},Ql=e=>Rx[e];function Th(e,t){let r=Ql(e);return r!==Zl&&(r=Zr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Sh=e=>/^0[^.\s]+$/.test(e);function Nx(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Sh(e)}function Bx(e,t,r,n){const i=Kl(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]),Nx(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]=Th(t,s)}return o}function zx({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 Eh(e,t){return e[t]||e.default||e}const Jl=(e,t,r,n={})=>i=>{const o=Eh(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s=s-Kr(a);const c=Bx(t,e,r,o),l=c[0],u=c[c.length-1],f=Kl(e,l),d=Kl(e,u);lo(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(zx(o)||(h={...h,...jx(e,h)}),h.duration&&(h.duration=Kr(h.duration)),h.repeatDelay&&(h.repeatDelay=Kr(h.repeatDelay)),!f||!d||N2.current||o.type===!1)return _x(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=Mx(t,e,h);if(g)return g}return Oa(h)};function Ma(e){return!!(zt(e)&&e.add)}const Oh=e=>/^\-?\d*\.?\d+$/.test(e);function ec(e,t){e.indexOf(t)===-1&&e.push(t)}function tc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class rc{constructor(){this.subscriptions=[]}add(t){return ec(this.subscriptions,t),()=>tc(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 Ph=new Set;function nc(e,t,r){e||Ph.has(t)||(console.warn(t),r&&console.warn(r),Ph.add(t))}const Wx=e=>!isNaN(parseFloat(e));class Vx{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}=Mt;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=Wx(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&nc(!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 rc);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?gh(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 zn(e,t){return new Vx(e,t)}const Mh=e=>t=>t.test(e),_h=[pn,xe,vr,Gr,e2,Jb,{test:e=>e==="auto",parse:e=>e}],ho=e=>_h.find(Mh(e)),Hx=[..._h,Rt,Zr],Ux=e=>Hx.find(Mh(e));function Yx(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,zn(r))}function Gx(e,t){const r=Ta(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){const s=p2(o[a]);Yx(e,a,s)}}function qx(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"&&(Oh(u)||Sh(u))?u=parseFloat(u):!Ux(u)&&Zr.test(l)&&(u=Th(c,l)),e.addValue(c,zn(u,{owner:e})),r[c]===void 0&&(r[c]=u),u!==null&&e.setBaseTarget(c,u))}}function Xx(e,t){return t?(t[e]||t.default||t).from:void 0}function Kx(e,t,r){const n={};for(const i in e){const o=Xx(i,t);if(o!==void 0)n[i]=o;else{const a=r.getValue(i);a&&(n[i]=a.get())}}return n}function Zx({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function $h(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&&Zx(u,f))continue;const g={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!d.hasAnimated){const y=e.getProps()[R2];y&&(g.elapsed=window.HandoffAppearAnimations(y,f,d,rt),g.syncStart=!0)}d.start(Jl(f,d,h,e.shouldReduceMotion&&hn.has(f)?{type:!1}:g));const m=d.animation;Ma(c)&&(c.add(f),m.then(()=>c.remove(f))),l.push(m)}return a&&Promise.all(l).then(()=>{a&&Gx(e,a)}),l}function ic(e,t,r={}){const n=Ta(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all($h(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=i;return Qx(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 Qx(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(Jx).forEach((l,u)=>{l.notify("AnimationStart",t),a.push(ic(l,t,{...o,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function Jx(e,t){return e.sortNodePosition(t)}function ew(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>ic(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=ic(e,t,r);else{const i=typeof t=="function"?Ta(e,t,r.custom):t;n=Promise.all($h(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const tw=[...Tl].reverse(),rw=Tl.length;function nw(e){return t=>Promise.all(t.map(({animation:r,options:n})=>ew(e,r,n)))}function iw(e){let t=nw(e);const r=aw();let n=!0;const i=(c,l)=>{const u=Ta(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={},m=1/0;for(let x=0;x<rw;x++){const b=tw[x],T=r[b],P=u[b]!==void 0?u[b]:f[b],w=to(P),E=b===l?T.isActive:null;E===!1&&(m=x);let O=P===f[b]&&P!==u[b]&&w;if(O&&n&&e.manuallyAnimateOnMount&&(O=!1),T.protectedKeys={...g},!T.isActive&&E===null||!P&&!T.prevProp||ha(P)||typeof P=="boolean")continue;const _=ow(T.prevProp,P);let L=_||b===l&&T.isActive&&!O&&w||x>m&&w;const W=Array.isArray(P)?P:[P];let de=W.reduce(i,{});E===!1&&(de={});const{prevResolvedValues:ve={}}=T,ce={...ve,...de},q=Y=>{L=!0,h.delete(Y),T.needsAnimating[Y]=!0};for(const Y in ce){const ge=de[Y],Se=ve[Y];g.hasOwnProperty(Y)||(ge!==Se?ba(ge)&&ba(Se)?!Wd(ge,Se)||_?q(Y):T.protectedKeys[Y]=!0:ge!==void 0?q(Y):h.add(Y):ge!==void 0&&h.has(Y)?q(Y):T.protectedKeys[Y]=!0)}T.prevProp=P,T.prevResolvedValues=de,T.isActive&&(g={...g,...de}),n&&e.blockInitialAnimation&&(L=!1),L&&!O&&d.push(...W.map(Y=>({animation:Y,options:{type:b,...c}})))}if(h.size){const x={};h.forEach(b=>{const T=e.getBaseTarget(b);T!==void 0&&(x[b]=T)}),d.push({animation:x})}let y=!!d.length;return n&&u.initial===!1&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?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)?!Wd(t,e):!1}function mn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function aw(){return{animate:mn(!0),whileInView:mn(),whileHover:mn(),whileTap:mn(),whileDrag:mn(),whileFocus:mn(),exit:mn()}}class sw extends Xr{constructor(t){super(t),t.animationState||(t.animationState=iw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ha(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 lw=0;class cw extends Xr{constructor(){super(...arguments),this.id=lw++}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 uw={animation:{Feature:sw},exit:{Feature:cw}},Ah=(e,t)=>Math.abs(e-t);function fw(e,t){const r=Ah(e.x,t.x),n=Ah(e.y,t.y);return Math.sqrt(r**2+n**2)}class kh{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=ac(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=fw(l.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:d}=l,{timestamp:h}=Mt;this.history.push({...d,timestamp:h});const{onStart:g,onMove:m}=this.handlers;u||(g&&g(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=oc(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=ac(l.type==="pointercancel"?this.lastMoveEventInfo:oc(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!jd(t))return;this.handlers=r,this.transformPagePoint=n;const i=Ca(t),o=oc(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=Mt;this.history=[{...a,timestamp:s}];const{onSessionStart:c}=r;c&&c(t,ac(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 oc(e,t){return t?{point:t(e.point)}:e}function Dh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac({point:e},t){return{point:e,delta:Dh(e,jh(t)),offset:Dh(e,dw(t)),velocity:hw(t,.1)}}function dw(e){return e[0]}function jh(e){return e[e.length-1]}function hw(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=jh(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Kr(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 Xt(e){return e.max-e.min}function sc(e,t=0,r=.01){return Math.abs(e-t)<=r}function Ih(e,t,r,n=.5){e.origin=n,e.originPoint=ft(t.min,t.max,e.origin),e.scale=Xt(r)/Xt(t),(sc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ft(r.min,r.max,e.origin)-e.originPoint,(sc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function po(e,t,r,n){Ih(e.x,t.x,r.x,n?n.originX:void 0),Ih(e.y,t.y,r.y,n?n.originY:void 0)}function Lh(e,t,r){e.min=r.min+t.min,e.max=e.min+Xt(t)}function pw(e,t,r){Lh(e.x,t.x,r.x),Lh(e.y,t.y,r.y)}function Fh(e,t,r){e.min=t.min-r.min,e.max=e.min+Xt(t)}function go(e,t,r){Fh(e.x,t.x,r.x),Fh(e.y,t.y,r.y)}function gw(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 Rh(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 mw(e,{top:t,left:r,bottom:n,right:i}){return{x:Rh(e.x,r,i),y:Rh(e.y,t,n)}}function Nh(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 vw(e,t){return{x:Nh(e.x,t.x),y:Nh(e.y,t.y)}}function yw(e,t){let r=.5;const n=Xt(e),i=Xt(t);return i>n?r=fo(t.min,t.max-n,e.min):n>i&&(r=fo(e.min,e.max-i,t.min)),Yr(0,1,r)}function bw(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 lc=.35;function xw(e=lc){return e===!1?e=0:e===!0&&(e=lc),{x:Bh(e,"left","right"),y:Bh(e,"top","bottom")}}function Bh(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 Wh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wn=()=>({x:Wh(),y:Wh()}),Vh=()=>({min:0,max:0}),St=()=>({x:Vh(),y:Vh()});function yr(e){return[e("x"),e("y")]}function Hh({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function ww({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Cw(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 cc(e){return e===void 0||e===1}function uc({scale:e,scaleX:t,scaleY:r}){return!cc(e)||!cc(t)||!cc(r)}function vn(e){return uc(e)||Uh(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Uh(e){return Yh(e.x)||Yh(e.y)}function Yh(e){return e&&e!=="0%"}function _a(e,t,r){const n=e-r,i=t*n;return r+i}function Gh(e,t,r,n,i){return i!==void 0&&(e=_a(e,i,n)),_a(e,r,n)+t}function fc(e,t=0,r=1,n,i){e.min=Gh(e.min,t,r,n,i),e.max=Gh(e.max,t,r,n,i)}function qh(e,{x:t,y:r}){fc(e.x,t.translate,t.scale,t.originPoint),fc(e.y,r.translate,r.scale,r.originPoint)}function Tw(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,qh(e,a)),n&&vn(o.latestValues)&&Vn(e,o.latestValues))}t.x=Xh(t.x),t.y=Xh(t.y)}function Xh(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 Kh(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,a=ft(e.min,e.max,o);fc(e,t[r],t[n],a,t.scale)}const Sw=["x","scaleX","originX"],Ew=["y","scaleY","originY"];function Vn(e,t){Kh(e.x,t,Sw),Kh(e.y,t,Ew)}function Zh(e,t){return Hh(Cw(e.getBoundingClientRect(),t))}function Ow(e,t,r){const n=Zh(e,r),{scroll:i}=t;return i&&(Qr(n.x,i.offset.x),Qr(n.y,i.offset.y)),n}const Pw=new WeakMap;class Mw{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=St(),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(Ca(c,"page").point)},o=(c,l)=>{const{drag:u,dragPropagation:f,onDragStart:d}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Rd(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 m=this.getAxisMotionValue(g).get()||0;if(vr.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[g];x&&(m=Xt(x)*(parseFloat(m)/100))}}this.originPoint[g]=m}),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=_w(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 kh(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||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=gw(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=mw(n.layoutBox,t):this.constraints=!1,this.elastic=xw(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&yr(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=bw(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=Ow(n,i.root,this.visualElement.getTransformPagePoint());let a=vw(i.layout.layoutBox,o);if(r){const s=r(ww(a));this.hasMutatedConstraints=!!s,s&&(a=Hh(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(!$a(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(Jl(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(!$a(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]=yw({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(!$a(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;Pw.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=lc,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function $a(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function _w(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class $w extends Xr{constructor(t){super(t),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new Mw(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 Qh=e=>(t,r)=>{e&&rt.update(()=>e(t,r))};class Aw extends Xr{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(t){this.session=new kh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Qh(t),onStart:Qh(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 kw(){const e=p.useContext(fa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=p.useId();return p.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const Aa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const r=Jh(e,t.target.x),n=Jh(e,t.target.y);return`${r}% ${n}%`}},Dw={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 jw extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;Yb(Iw),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()})),Aa.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 ep(e){const[t,r]=kw(),n=p.useContext(Ol);return p.createElement(jw,{...e,layoutGroup:n,switchLayoutGroup:p.useContext(gd),isPresent:t,safeToRemove:r})}const Iw={borderRadius:{...mo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mo,borderTopRightRadius:mo,borderBottomLeftRadius:mo,borderBottomRightRadius:mo,boxShadow:Dw},tp=["TopLeft","TopRight","BottomLeft","BottomRight"],Lw=tp.length,rp=e=>typeof e=="string"?parseFloat(e):e,np=e=>typeof e=="number"||xe.test(e);function Fw(e,t,r,n,i,o){i?(e.opacity=ft(0,r.opacity!==void 0?r.opacity:1,Rw(n)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,Nw(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<Lw;a++){const s=`border${tp[a]}Radius`;let c=ip(t,s),l=ip(r,s);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||np(c)===np(l)?(e[s]=Math.max(ft(rp(c),rp(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 ip(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Rw=op(0,.5,Bl),Nw=op(.5,.95,gt);function op(e,t,r){return n=>n<e?0:n>t?1:r(fo(e,t,n))}function ap(e,t){e.min=t.min,e.max=t.max}function ir(e,t){ap(e.x,t.x),ap(e.y,t.y)}function sp(e,t,r,n,i){return e-=t,e=_a(e,1/r,n),i!==void 0&&(e=_a(e,1/i,n)),e}function Bw(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=sp(e.min,t,r,s,i),e.max=sp(e.max,t,r,s,i)}function lp(e,t,[r,n,i],o,a){Bw(e,t[r],t[n],t[i],t.scale,o,a)}const zw=["x","scaleX","originX"],Ww=["y","scaleY","originY"];function cp(e,t,r,n){lp(e.x,t,zw,r?r.x:void 0,n?n.x:void 0),lp(e.y,t,Ww,r?r.y:void 0,n?n.y:void 0)}function up(e){return e.translate===0&&e.scale===1}function fp(e){return up(e.x)&&up(e.y)}function Vw(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 dp(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 Xt(e.x)/Xt(e.y)}class Hw{constructor(){this.members=[]}add(t){ec(this.members,t),t.scheduleRender()}remove(t){if(tc(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 pp(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 Uw=(e,t)=>e.depth-t.depth;class Yw{constructor(){this.children=[],this.isDirty=!1}add(t){ec(this.children,t),this.isDirty=!0}remove(t){tc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Uw),this.isDirty=!1,this.children.forEach(t)}}function Gw(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 qw(e){window.MotionDebug&&window.MotionDebug.record(e)}function Xw(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Kw(e,t,r){const n=zt(e)?e:zn(e);return n.start(Jl("",n,t,r)),n.animation}const gp=["","X","Y","Z"],mp=1e3;let Zw=0;const yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=Zw++,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(e5),this.nodes.forEach(o5),this.nodes.forEach(a5),this.nodes.forEach(t5),qw(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 Yw)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new rc),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=Xw(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=Gw(d,250),Aa.hasAnimatedSinceResize&&(Aa.hasAnimatedSinceResize=!1,this.nodes.forEach(bp))})}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 m=this.options.transition||u.getDefaultTransition()||f5,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!dp(this.targetLayout,g)||h,T=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,T);const P={...Eh(m,"layout"),onPlay:y,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else d||bp(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(s5),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(yp);return}this.isUpdating||this.nodes.forEach(n5),this.isUpdating=!1,this.nodes.forEach(i5),this.nodes.forEach(Qw),this.nodes.forEach(Jw),this.clearAllSnapshots();const s=performance.now();Mt.delta=Yr(0,1e3/60,s-Mt.timestamp),Mt.timestamp=s,Mt.isProcessing=!0,Ll.update.process(Mt),Ll.preRender.process(Mt),Ll.render.process(Mt),Mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r5),this.sharedNodes.forEach(l5)}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=St(),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&&!fp(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)),d5(c),{animationId:this.root.animationId,measuredBox:s,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return St();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=St();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=St();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=St();ir(s,a);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!vn(l.latestValues))continue;uc(l.latestValues)&&l.updateSnapshot();const u=St(),f=l.measurePageBox();ir(u,f),cp(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return vn(this.latestValues)&&cp(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!==Mt.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=Mt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=St(),this.relativeTargetOrigin=St(),go(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=St(),this.targetWithTransforms=St()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ir(this.target,this.layout.layoutBox),qh(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=St(),this.relativeTargetOrigin=St(),go(this.relativeTargetOrigin,this.target,h.target),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}yn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||uc(this.parent.latestValues)||Uh(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===Mt.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;Tw(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 m=this.projectionTransform;po(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=pp(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||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=St(),h=c?c.source:void 0,g=this.layout?this.layout.source:void 0,m=h!==g,y=this.getStack(),x=!y||y.members.length<=1,b=!!(m&&!x&&this.options.crossfade===!0&&!this.path.some(u5));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const w=P/1e3;xp(f.x,a.x,w),xp(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(go(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c5(this.relativeTarget,this.relativeTargetOrigin,d,w),T&&Vw(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=St()),ir(T,this.relativeTarget)),m&&(this.animationValues=u,Fw(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(()=>{Aa.hasAnimatedSinceResize=!0,this.currentAnimation=Kw(0,mp,{...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(mp),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&&Ep(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||St();const f=Xt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const d=Xt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+d}ir(s,c),Vn(s,u),po(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Hw),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<gp.length;u++){const f="rotate"+gp[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=xa(a.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=xa(a.pointerEvents)||""),this.hasProjected&&!vn(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=pp(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 m in ga){if(d[m]===void 0)continue;const{correct:y,applyTo:x}=ga[m],b=l.transform==="none"?d[m]:y(d[m],f);if(x){const T=x.length;for(let P=0;P<T;P++)l[x[P]]=b}else l[m]=b}return this.options.layoutId&&(l.pointerEvents=f===this?xa(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(yp),this.root.sharedNodes.clear()}}}function Qw(e){e.updateLayout()}function Jw(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=Xt(d);d.min=n[f].min,d.max=d.min+h}):Ep(o,r.layoutBox,n)&&yr(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Xt(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();po(s,n,r.layoutBox);const c=Wn();a?po(c,e.applyTransform(i,!0),r.measuredBox):po(c,n,r.layoutBox);const l=!fp(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=St();go(g,r.layoutBox,d.layoutBox);const m=St();go(m,n,h.layoutBox),dp(g,m)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=m,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 e5(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 t5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r5(e){e.clearSnapshot()}function yp(e){e.clearMeasurements()}function n5(e){e.isLayoutDirty=!1}function i5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function o5(e){e.resolveTargetDelta()}function a5(e){e.calcProjection()}function s5(e){e.resetRotation()}function l5(e){e.removeLeadSnapshot()}function xp(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 wp(e,t,r,n){e.min=ft(t.min,r.min,n),e.max=ft(t.max,r.max,n)}function c5(e,t,r,n){wp(e.x,t.x,r.x,n),wp(e.y,t.y,r.y,n)}function u5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const f5={duration:.45,ease:[.4,0,.1,1]},Cp=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Tp=Cp("applewebkit/")&&!Cp("chrome/")?Math.round:gt;function Sp(e){e.min=Tp(e.min),e.max=Tp(e.max)}function d5(e){Sp(e.x),Sp(e.y)}function Ep(e,t,r){return e==="position"||e==="preserve-aspect"&&!sc(hp(t),hp(r),.2)}const h5=vp({attachResizeListener:(e,t)=>Ar(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),dc={current:void 0},Op=vp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dc.current){const e=new h5({});e.mount(window),e.setOptions({layoutScroll:!0}),dc.current=e}return dc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),p5={pan:{Feature:Aw},drag:{Feature:$w,ProjectionNode:Op,MeasureLayout:ep}},g5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function m5(e){const t=g5.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const v5=4;function hc(e,t,r=1){lr(r<=v5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=m5(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const a=o.trim();return Oh(a)?parseFloat(a):a}else return Ml(i)?hc(i,t,r+1):i}function y5(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(!Ml(o))return;const a=hc(o,n);a&&i.set(a)});for(const i in t){const o=t[i];if(!Ml(o))continue;const a=hc(o,n);a&&(t[i]=a,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const b5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Pp=e=>b5.has(e),x5=e=>Object.keys(e).some(Pp),ka=e=>e===pn||e===xe,Mp=(e,t)=>parseFloat(e.split(", ")[t]),_p=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return Mp(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?Mp(o[1],e):0}},w5=new Set(["x","y","z"]),C5=no.filter(e=>!w5.has(e));function T5(e){const t=[];return C5.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:_p(4,13),y:_p(5,14)};Hn.translateX=Hn.x,Hn.translateY=Hn.y;const S5=(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},E5=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(Pp);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=ho(u);const d=t[c];let h;if(ba(d)){const g=d.length,m=d[0]===null?1:0;u=d[m],f=ho(u);for(let y=m;y<g&&d[y]!==null;y++)h?lr(ho(d[y])===h,"All keyframes must be of the same type"):(h=ho(d[y]),lr(h===f||ka(f)&&ka(h),"Keyframes must be of the same dimension as the current value"))}else h=ho(d);if(f!==h)if(ka(f)&&ka(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=T5(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=S5(t,e,s);return o.length&&o.forEach(([u,f])=>{e.getValue(u).set(f)}),e.render(),da&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function O5(e,t,r,n){return x5(t)?E5(e,t,r,n):{target:t,transitionEnd:n}}const P5=(e,t,r,n)=>{const i=y5(e,t,n);return t=i.target,n=i.transitionEnd,O5(e,t,r,n)},pc={current:null},$p={current:!1};function M5(){if($p.current=!0,!!da)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pc.current=e.matches;e.addListener(t),t()}else pc.current=!1}function _5(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(zt(o))e.addValue(i,o),Ma(n)&&n.add(i),process.env.NODE_ENV==="development"&&nc(o.version==="10.16.3",`Attempting to mix Framer Motion versions ${o.version} with 10.16.3 may not work as expected.`);else if(zt(a))e.addValue(i,zn(o,{owner:e})),Ma(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,zn(s!==void 0?s:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const Ap=new WeakMap,kp=Object.keys(ro),$5=kp.length,Dp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],A5=Sl.length;class k5{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=pa(r),this.isVariantNode=dd(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&&zt(d)&&(d.set(s[f],!1),Ma(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,Ap.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)),$p.current||M5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pc.current,process.env.NODE_ENV!=="production"&&nc(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(){Ap.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?lo(!1,c):lr(!1,c)}for(let c=0;c<$5;c++){const l=kp[c],{isEnabled:u,Feature:f,ProjectionNode:d,MeasureLayout:h}=ro[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):St()}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<Dp.length;n++){const i=Dp[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=_5(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<A5;n++){const i=Sl[n],o=this.props[i];(to(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=zn(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=Il(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&&!zt(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 rc),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class jp extends k5{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=Kx(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),a&&(a=i(a))),o){qx(this,n,a);const s=P5(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function D5(e){return window.getComputedStyle(e)}class j5 extends jp{readValueFromInstance(t,r){if(hn.has(r)){const n=Ql(r);return n&&n.default||0}else{const n=D5(t),i=(yd(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Zh(t,r)}build(t,r,n,i){_l(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return jl(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){Pd(t,r,n,i)}}class I5 extends jp{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(hn.has(r)){const n=Ql(r);return n&&n.default||0}return r=Md.has(r)?r:Dl(r),t.getAttribute(r)}measureInstanceViewportBox(){return St()}scrapeMotionValuesFromProps(t,r){return $d(t,r)}build(t,r,n,i){Al(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){_d(t,r,n,i)}mount(t){this.isSVGTag=kl(t.tagName),super.mount(t)}}const L5=(e,t)=>Pl(e)?new I5(t,{enableHardwareAcceleration:!1}):new j5(t,{enableHardwareAcceleration:!0}),F5={layout:{ProjectionNode:Op,MeasureLayout:ep}},cr=Hb(C2);function Ip(){const e=p.useRef(!1);return wl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function R5(){const e=Ip(),[t,r]=p.useState(0),n=p.useCallback(()=>{e.current&&r(t+1)},[t]);return[p.useCallback(()=>rt.postRender(n),[n]),t]}class N5 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 B5({children:e,isPresent:t}){const r=p.useId(),n=p.useRef(null),i=p.useRef({width:0,height:0,top:0,left:0});return p.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(`
28
+ [data-motion-pop-id="${r}"] {
29
+ position: absolute !important;
30
+ width: ${o}px !important;
31
+ height: ${a}px !important;
32
+ top: ${s}px !important;
33
+ left: ${c}px !important;
34
+ }
35
+ `),()=>{document.head.removeChild(l)}},[t]),be.createElement(N5,{isPresent:t,childRef:n,sizeRef:i},be.cloneElement(e,{ref:n}))}const gc=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Ad(z5),c=p.useId(),l=p.useMemo(()=>({id:c,initial:t,isPresent:r,custom:i,onExitComplete:u=>{s.set(u,!0);for(const f of s.values())if(!f)return;n&&n()},register:u=>(s.set(u,!1),()=>s.delete(u))}),o?void 0:[r]);return p.useMemo(()=>{s.forEach((u,f)=>s.set(f,!1))},[r]),be.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=be.createElement(B5,{isPresent:r},e)),be.createElement(fa.Provider,{value:l},e)};function z5(){return new Map}function W5(e){return p.useEffect(()=>()=>e(),[])}const Un=e=>e.key||"";function V5(e,t){e.forEach(r=>{const n=Un(r);t.set(n,r)})}function H5(e){const t=[];return p.Children.forEach(e,r=>{p.isValidElement(r)&&t.push(r)}),t}const Lp=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{lr(!i,"Replace exitBeforeEnter with mode='wait'");const s=p.useContext(Ol).forceRender||R5()[0],c=Ip(),l=H5(e);let u=l;const f=p.useRef(new Map).current,d=p.useRef(u),h=p.useRef(new Map).current,g=p.useRef(!0);if(wl(()=>{g.current=!1,V5(l,h),d.current=u}),W5(()=>{g.current=!0,h.clear(),f.clear()}),g.current)return be.createElement(be.Fragment,null,u.map(b=>be.createElement(gc,{key:Un(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:a},b)));u=[...u];const m=d.current.map(Un),y=l.map(Un),x=m.length;for(let b=0;b<x;b++){const T=m[b];y.indexOf(T)===-1&&!f.has(T)&&f.set(T,void 0)}return a==="wait"&&f.size&&(u=[]),f.forEach((b,T)=>{if(y.indexOf(T)!==-1)return;const P=h.get(T);if(!P)return;const w=m.indexOf(T);let E=b;if(!E){const O=()=>{h.delete(T),f.delete(T);const _=d.current.findIndex(L=>L.key===T);if(d.current.splice(_,1),!f.size){if(d.current=l,c.current===!1)return;s(),n&&n()}};E=be.createElement(gc,{key:Un(P),isPresent:!1,onExitComplete:O,custom:t,presenceAffectsLayout:o,mode:a},P),f.set(T,E)}u.splice(w,0,E)}),u=u.map(b=>{const T=b.key;return f.has(T)?b:be.createElement(gc,{key:Un(b),isPresent:!0,presenceAffectsLayout:o,mode:a},b)}),process.env.NODE_ENV!=="production"&&a==="wait"&&u.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.`),be.createElement(be.Fragment,null,f.size?u:u.map(b=>p.cloneElement(b)))};function U5({children:e,features:t,strict:r=!1}){const[,n]=p.useState(!mc(t)),i=p.useRef(void 0);if(!mc(t)){const{renderer:o,...a}=t;i.current=o,El(a)}return p.useEffect(()=>{mc(t)&&t().then(({renderer:o,...a})=>{El(a),i.current=o,n(!0)})},[]),be.createElement(Cl.Provider,{value:{renderer:i.current,strict:r}},e)}function mc(e){return typeof e=="function"}const Y5={...{renderer:L5,...uw,...I2},...p5,...F5},G5=({open:e=!1,variants:t,onClose:r,children:n,sx:i,...o})=>v.jsx(Lp,{children:e&&v.jsx($.Dialog,{fullWidth:!0,maxWidth:"xs",open:e,onClose:r,PaperComponent:a=>v.jsxs($.Box,{component:cr.div,...t||Zi({distance:120,durationIn:.32,durationOut:.24,easeIn:"easeInOut"}).inUp,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[v.jsx($.Box,{onClick:r,sx:{width:"100%",height:"100%",position:"fixed"}}),v.jsx($.Paper,{sx:i,...a,children:a.children})]}),...o,children:n})}),q5=({text:e,variants:t,sx:r,...n})=>v.jsx($.Box,{component:cr.div,sx:{m:0,typography:"h1",overflow:"hidden",display:"inline-flex",...r},...n,children:e.split("").map((i,o)=>v.jsx(cr.span,{variants:t||Zi().inUp,children:i},o))}),Fp=p.forwardRef(({size:e="large",children:t,sx:r,sxWrap:n,...i},o)=>v.jsx(Q5,{size:e,sxWrap:n,children:v.jsx($.Fab,{ref:o,size:e,sx:r,...i,children:t})}));Fp.displayName="FabButtonAnimate";const X5={hover:{scale:1.07},tap:{scale:.97}},K5={hover:{scale:1.06},tap:{scale:.98}},Z5={hover:{scale:1.05},tap:{scale:.99}},Q5=({size:e,children:t,sxWrap:r})=>{const n=e==="small",i=e==="large";return v.jsx($.Box,{component:cr.div,whileTap:"tap",whileHover:"hover",variants:n&&X5||i&&Z5||K5,sx:{display:"inline-flex",...r},children:t})},J5={hover:{scale:1.1},tap:{scale:.95}},e3={hover:{scale:1.09},tap:{scale:.97}},t3={hover:{scale:1.08},tap:{scale:.99}},r3=({size:e,children:t})=>{const r=e==="small",n=e==="large";return v.jsx($.Box,{component:cr.div,whileTap:"tap",whileHover:"hover",variants:r&&J5||n&&t3||e3,sx:{display:"inline-flex"},children:t})},Rp=p.forwardRef(({children:e,size:t="medium",...r},n)=>v.jsx(r3,{size:t,children:v.jsx($.IconButton,{size:t,ref:n,...r,children:e})}));Rp.displayName="IconButtonAnimate";function _e(){return _e=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},_e.apply(this,arguments)}function Yn(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Np(e){if(!Yn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Np(e[r])}),t}function jr(e,t,r={clone:!0}){const n=r.clone?_e({},e):e;return Yn(e)&&Yn(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Yn(t[i])&&i in e&&Yn(e[i])?n[i]=jr(e[i],t[i],r):r.clone?n[i]=Yn(t[i])?Np(t[i]):t[i]:n[i]=t[i])}),n}var vc={exports:{}},Da={exports:{}},Ge={};/** @license React v16.13.1
44
36
  * react-is.production.min.js
45
37
  *
46
38
  * Copyright (c) Facebook, Inc. and its affiliates.
47
39
  *
48
40
  * This source code is licensed under the MIT license found in the
49
41
  * LICENSE file in the root directory of this source tree.
50
- */var Tc;function mC(){if(Tc)return Re;Tc=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,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case t:switch(x=x.type,x){case l:case u:case n:case a:case o:case f:return x;default:switch(x=x&&x.$$typeof,x){case s:case c:case m:case h:case i:return x;default:return S}}case r:return S}}}function R(x){return k(x)===u}return Re.AsyncMode=l,Re.ConcurrentMode=u,Re.ContextConsumer=s,Re.ContextProvider=i,Re.Element=t,Re.ForwardRef=c,Re.Fragment=n,Re.Lazy=m,Re.Memo=h,Re.Portal=r,Re.Profiler=a,Re.StrictMode=o,Re.Suspense=f,Re.isAsyncMode=function(x){return R(x)||k(x)===l},Re.isConcurrentMode=R,Re.isContextConsumer=function(x){return k(x)===s},Re.isContextProvider=function(x){return k(x)===i},Re.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Re.isForwardRef=function(x){return k(x)===c},Re.isFragment=function(x){return k(x)===n},Re.isLazy=function(x){return k(x)===m},Re.isMemo=function(x){return k(x)===h},Re.isPortal=function(x){return k(x)===r},Re.isProfiler=function(x){return k(x)===a},Re.isStrictMode=function(x){return k(x)===o},Re.isSuspense=function(x){return k(x)===f},Re.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===u||x===a||x===o||x===f||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===h||x.$$typeof===i||x.$$typeof===s||x.$$typeof===c||x.$$typeof===v||x.$$typeof===w||x.$$typeof===T||x.$$typeof===g)},Re.typeOf=k,Re}var Be={};/** @license React v16.13.1
42
+ */var Bp;function n3(){if(Bp)return Ge;Bp=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,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case t:switch(w=w.type,w){case c:case l:case n:case o:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case g:case h:case a:return w;default:return E}}case r:return E}}}function P(w){return T(w)===l}return Ge.AsyncMode=c,Ge.ConcurrentMode=l,Ge.ContextConsumer=s,Ge.ContextProvider=a,Ge.Element=t,Ge.ForwardRef=u,Ge.Fragment=n,Ge.Lazy=g,Ge.Memo=h,Ge.Portal=r,Ge.Profiler=o,Ge.StrictMode=i,Ge.Suspense=f,Ge.isAsyncMode=function(w){return P(w)||T(w)===c},Ge.isConcurrentMode=P,Ge.isContextConsumer=function(w){return T(w)===s},Ge.isContextProvider=function(w){return T(w)===a},Ge.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ge.isForwardRef=function(w){return T(w)===u},Ge.isFragment=function(w){return T(w)===n},Ge.isLazy=function(w){return T(w)===g},Ge.isMemo=function(w){return T(w)===h},Ge.isPortal=function(w){return T(w)===r},Ge.isProfiler=function(w){return T(w)===o},Ge.isStrictMode=function(w){return T(w)===i},Ge.isSuspense=function(w){return T(w)===f},Ge.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===g||w.$$typeof===h||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===y||w.$$typeof===x||w.$$typeof===b||w.$$typeof===m)},Ge.typeOf=T,Ge}var qe={};/** @license React v16.13.1
51
43
  * react-is.development.js
52
44
  *
53
45
  * Copyright (c) Facebook, Inc. and its affiliates.
54
46
  *
55
47
  * This source code is licensed under the MIT license found in the
56
48
  * LICENSE file in the root directory of this source tree.
57
- */var Cc;function bC(){return Cc||(Cc=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,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(I){return typeof I=="string"||typeof I=="function"||I===n||I===u||I===a||I===o||I===f||I===d||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===h||I.$$typeof===i||I.$$typeof===s||I.$$typeof===c||I.$$typeof===v||I.$$typeof===w||I.$$typeof===T||I.$$typeof===g)}function R(I){if(typeof I=="object"&&I!==null){var Ye=I.$$typeof;switch(Ye){case t:var Z=I.type;switch(Z){case l:case u:case n:case a:case o:case f:return Z;default:var ft=Z&&Z.$$typeof;switch(ft){case s:case c:case m:case h:case i:return ft;default:return Ye}}case r:return Ye}}}var x=l,S=u,j=s,B=i,ue=t,K=c,pe=n,Oe=m,ye=h,xe=r,ce=a,he=o,De=f,Ke=!1;function rt(I){return Ke||(Ke=!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.")),E(I)||R(I)===l}function E(I){return R(I)===u}function L(I){return R(I)===s}function J(I){return R(I)===i}function ee(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function G(I){return R(I)===c}function ie(I){return R(I)===n}function se(I){return R(I)===m}function le(I){return R(I)===h}function Y(I){return R(I)===r}function q(I){return R(I)===a}function ae(I){return R(I)===o}function me(I){return R(I)===f}Be.AsyncMode=x,Be.ConcurrentMode=S,Be.ContextConsumer=j,Be.ContextProvider=B,Be.Element=ue,Be.ForwardRef=K,Be.Fragment=pe,Be.Lazy=Oe,Be.Memo=ye,Be.Portal=xe,Be.Profiler=ce,Be.StrictMode=he,Be.Suspense=De,Be.isAsyncMode=rt,Be.isConcurrentMode=E,Be.isContextConsumer=L,Be.isContextProvider=J,Be.isElement=ee,Be.isForwardRef=G,Be.isFragment=ie,Be.isLazy=se,Be.isMemo=le,Be.isPortal=Y,Be.isProfiler=q,Be.isStrictMode=ae,Be.isSuspense=me,Be.isValidElementType=k,Be.typeOf=R}()),Be}var Sc;function Ec(){return Sc||(Sc=1,process.env.NODE_ENV==="production"?aa.exports=mC():aa.exports=bC()),aa.exports}/*
49
+ */var zp;function i3(){return zp||(zp=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,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function T(F){return typeof F=="string"||typeof F=="function"||F===n||F===l||F===o||F===i||F===f||F===d||typeof F=="object"&&F!==null&&(F.$$typeof===g||F.$$typeof===h||F.$$typeof===a||F.$$typeof===s||F.$$typeof===u||F.$$typeof===y||F.$$typeof===x||F.$$typeof===b||F.$$typeof===m)}function P(F){if(typeof F=="object"&&F!==null){var Le=F.$$typeof;switch(Le){case t:var ae=F.type;switch(ae){case c:case l:case n:case o:case i:case f:return ae;default:var ut=ae&&ae.$$typeof;switch(ut){case s:case u:case g:case h:case a:return ut;default:return Le}}case r:return Le}}}var w=c,E=l,O=s,_=a,L=t,W=u,de=n,ve=g,ce=h,q=r,Y=o,ge=i,Se=f,We=!1;function Me(F){return We||(We=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(F)||P(F)===c}function D(F){return P(F)===l}function I(F){return P(F)===s}function Z(F){return P(F)===a}function ne(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function G(F){return P(F)===u}function ue(F){return P(F)===n}function se(F){return P(F)===g}function pe(F){return P(F)===h}function K(F){return P(F)===r}function Q(F){return P(F)===o}function te(F){return P(F)===i}function ye(F){return P(F)===f}qe.AsyncMode=w,qe.ConcurrentMode=E,qe.ContextConsumer=O,qe.ContextProvider=_,qe.Element=L,qe.ForwardRef=W,qe.Fragment=de,qe.Lazy=ve,qe.Memo=ce,qe.Portal=q,qe.Profiler=Y,qe.StrictMode=ge,qe.Suspense=Se,qe.isAsyncMode=Me,qe.isConcurrentMode=D,qe.isContextConsumer=I,qe.isContextProvider=Z,qe.isElement=ne,qe.isForwardRef=G,qe.isFragment=ue,qe.isLazy=se,qe.isMemo=pe,qe.isPortal=K,qe.isProfiler=Q,qe.isStrictMode=te,qe.isSuspense=ye,qe.isValidElementType=T,qe.typeOf=P}()),qe}var Wp;function Vp(){return Wp||(Wp=1,process.env.NODE_ENV==="production"?Da.exports=n3():Da.exports=i3()),Da.exports}/*
58
50
  object-assign
59
51
  (c) Sindre Sorhus
60
52
  @license MIT
61
- */var Qi,$c;function yC(){if($c)return Qi;$c=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(i).map(function(c){return i[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Qi=o()?Object.assign:function(a,i){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(l[u[d]]=s[u[d]])}}return l},Qi}var Zi,_c;function Ji(){if(_c)return Zi;_c=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zi=e,Zi}var es,Pc;function Mc(){return Pc||(Pc=1,es=Function.call.bind(Object.prototype.hasOwnProperty)),es}var ts,kc;function xC(){if(kc)return ts;kc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ji(),r={},n=Mc();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](i,c,l,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((l||"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=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ts=o,ts}var rs,Ac;function wC(){if(Ac)return rs;Ac=1;var e=Ec(),t=yC(),r=Ji(),n=Mc(),o=xC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return rs=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(E){var L=E&&(u&&E[u]||E[c]);if(typeof L=="function")return L}var d="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:T(),arrayOf:k,element:R(),elementType:x(),instanceOf:S,node:K(),objectOf:B,oneOf:j,oneOfType:ue,shape:Oe,exact:ye};function m(E,L){return E===L?E!==0||1/E===1/L:E!==E&&L!==L}function g(E,L){this.message=E,this.data=L&&typeof L=="object"?L:{},this.stack=""}g.prototype=Error.prototype;function v(E){if(process.env.NODE_ENV!=="production")var L={},J=0;function ee(ie,se,le,Y,q,ae,me){if(Y=Y||d,ae=ae||le,me!==r){if(l){var I=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 I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ye=Y+":"+le;!L[Ye]&&J<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ae+"` prop on `"+Y+"`. 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."),L[Ye]=!0,J++)}}return se[le]==null?ie?se[le]===null?new g("The "+q+" `"+ae+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new g("The "+q+" `"+ae+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:E(se,le,Y,q,ae)}var G=ee.bind(null,!1);return G.isRequired=ee.bind(null,!0),G}function w(E){function L(J,ee,G,ie,se,le){var Y=J[ee],q=he(Y);if(q!==E){var ae=De(Y);return new g("Invalid "+ie+" `"+se+"` of type "+("`"+ae+"` supplied to `"+G+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return v(L)}function T(){return v(i)}function k(E){function L(J,ee,G,ie,se){if(typeof E!="function")return new g("Property `"+se+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var le=J[ee];if(!Array.isArray(le)){var Y=he(le);return new g("Invalid "+ie+" `"+se+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected an array."))}for(var q=0;q<le.length;q++){var ae=E(le,q,G,ie,se+"["+q+"]",r);if(ae instanceof Error)return ae}return null}return v(L)}function R(){function E(L,J,ee,G,ie){var se=L[J];if(!s(se)){var le=he(se);return new g("Invalid "+G+" `"+ie+"` of type "+("`"+le+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return v(E)}function x(){function E(L,J,ee,G,ie){var se=L[J];if(!e.isValidElementType(se)){var le=he(se);return new g("Invalid "+G+" `"+ie+"` of type "+("`"+le+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return v(E)}function S(E){function L(J,ee,G,ie,se){if(!(J[ee]instanceof E)){var le=E.name||d,Y=rt(J[ee]);return new g("Invalid "+ie+" `"+se+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected ")+("instance of `"+le+"`."))}return null}return v(L)}function j(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function L(J,ee,G,ie,se){for(var le=J[ee],Y=0;Y<E.length;Y++)if(m(le,E[Y]))return null;var q=JSON.stringify(E,function(me,I){var Ye=De(I);return Ye==="symbol"?String(I):I});return new g("Invalid "+ie+" `"+se+"` of value `"+String(le)+"` "+("supplied to `"+G+"`, expected one of "+q+"."))}return v(L)}function B(E){function L(J,ee,G,ie,se){if(typeof E!="function")return new g("Property `"+se+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var le=J[ee],Y=he(le);if(Y!=="object")return new g("Invalid "+ie+" `"+se+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected an object."));for(var q in le)if(n(le,q)){var ae=E(le,q,G,ie,se+"."+q,r);if(ae instanceof Error)return ae}return null}return v(L)}function ue(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var L=0;L<E.length;L++){var J=E[L];if(typeof J!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ke(J)+" at index "+L+"."),i}function ee(G,ie,se,le,Y){for(var q=[],ae=0;ae<E.length;ae++){var me=E[ae],I=me(G,ie,se,le,Y,r);if(I==null)return null;I.data&&n(I.data,"expectedType")&&q.push(I.data.expectedType)}var Ye=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new g("Invalid "+le+" `"+Y+"` supplied to "+("`"+se+"`"+Ye+"."))}return v(ee)}function K(){function E(L,J,ee,G,ie){return xe(L[J])?null:new g("Invalid "+G+" `"+ie+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return v(E)}function pe(E,L,J,ee,G){return new g((E||"React class")+": "+L+" type `"+J+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function Oe(E){function L(J,ee,G,ie,se){var le=J[ee],Y=he(le);if(Y!=="object")return new g("Invalid "+ie+" `"+se+"` of type `"+Y+"` "+("supplied to `"+G+"`, expected `object`."));for(var q in E){var ae=E[q];if(typeof ae!="function")return pe(G,ie,se,q,De(ae));var me=ae(le,q,G,ie,se+"."+q,r);if(me)return me}return null}return v(L)}function ye(E){function L(J,ee,G,ie,se){var le=J[ee],Y=he(le);if(Y!=="object")return new g("Invalid "+ie+" `"+se+"` of type `"+Y+"` "+("supplied to `"+G+"`, expected `object`."));var q=t({},J[ee],E);for(var ae in q){var me=E[ae];if(n(E,ae)&&typeof me!="function")return pe(G,ie,se,ae,De(me));if(!me)return new g("Invalid "+ie+" `"+se+"` key `"+ae+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(J[ee],null," ")+`
62
- Valid keys: `+JSON.stringify(Object.keys(E),null," "));var I=me(le,ae,G,ie,se+"."+ae,r);if(I)return I}return null}return v(L)}function xe(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(xe);if(E===null||s(E))return!0;var L=f(E);if(L){var J=L.call(E),ee;if(L!==E.entries){for(;!(ee=J.next()).done;)if(!xe(ee.value))return!1}else for(;!(ee=J.next()).done;){var G=ee.value;if(G&&!xe(G[1]))return!1}}else return!1;return!0;default:return!1}}function ce(E,L){return E==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function he(E){var L=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":ce(L,E)?"symbol":L}function De(E){if(typeof E>"u"||E===null)return""+E;var L=he(E);if(L==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return L}function Ke(E){var L=De(E);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function rt(E){return!E.constructor||!E.constructor.name?d:E.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},rs}var ns,Dc;function OC(){if(Dc)return ns;Dc=1;var e=Ji();function t(){}function r(){}return r.resetWarningCache=t,ns=function(){function n(i,s,l,u,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 o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},ns}if(process.env.NODE_ENV!=="production"){var TC=Ec(),CC=!0;Ki.exports=wC()(TC.isElement,CC)}else Ki.exports=OC()();var SC=Ki.exports;const P=Xn(SC);function EC(){this.__data__=[],this.size=0}function io(e,t){return e===t||e!==e&&t!==t}function ia(e,t){for(var r=e.length;r--;)if(io(e[r][0],t))return r;return-1}var $C=Array.prototype,_C=$C.splice;function PC(e){var t=this.__data__,r=ia(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():_C.call(t,r,1),--this.size,!0}function MC(e){var t=this.__data__,r=ia(t,e);return r<0?void 0:t[r][1]}function kC(e){return ia(this.__data__,e)>-1}function AC(e,t){var r=this.__data__,n=ia(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=EC,rr.prototype.delete=PC,rr.prototype.get=MC,rr.prototype.has=kC,rr.prototype.set=AC;function DC(){this.__data__=new rr,this.size=0}function IC(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function jC(e){return this.__data__.get(e)}function LC(e){return this.__data__.has(e)}var NC=typeof global=="object"&&global&&global.Object===Object&&global;const Ic=NC;var FC=typeof self=="object"&&self&&self.Object===Object&&self,RC=Ic||FC||Function("return this")();const Bt=RC;var BC=Bt.Symbol;const pr=BC;var jc=Object.prototype,WC=jc.hasOwnProperty,HC=jc.toString,so=pr?pr.toStringTag:void 0;function zC(e){var t=WC.call(e,so),r=e[so];try{e[so]=void 0;var n=!0}catch{}var o=HC.call(e);return n&&(t?e[so]=r:delete e[so]),o}var UC=Object.prototype,YC=UC.toString;function GC(e){return YC.call(e)}var VC="[object Null]",qC="[object Undefined]",Lc=pr?pr.toStringTag:void 0;function _r(e){return e==null?e===void 0?qC:VC:Lc&&Lc in Object(e)?zC(e):GC(e)}function Nt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var XC="[object AsyncFunction]",KC="[object Function]",QC="[object GeneratorFunction]",ZC="[object Proxy]";function os(e){if(!Nt(e))return!1;var t=_r(e);return t==KC||t==QC||t==XC||t==ZC}var JC=Bt["__core-js_shared__"];const as=JC;var Nc=function(){var e=/[^.]+$/.exec(as&&as.keys&&as.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function eS(e){return!!Nc&&Nc in e}var tS=Function.prototype,rS=tS.toString;function Pr(e){if(e!=null){try{return rS.call(e)}catch{}try{return e+""}catch{}}return""}var nS=/[\\^$.*+?()[\]{}|]/g,oS=/^\[object .+?Constructor\]$/,aS=Function.prototype,iS=Object.prototype,sS=aS.toString,lS=iS.hasOwnProperty,uS=RegExp("^"+sS.call(lS).replace(nS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cS(e){if(!Nt(e)||eS(e))return!1;var t=os(e)?uS:oS;return t.test(Pr(e))}function fS(e,t){return e==null?void 0:e[t]}function Mr(e,t){var r=fS(e,t);return cS(r)?r:void 0}var dS=Mr(Bt,"Map");const lo=dS;var pS=Mr(Object,"create");const uo=pS;function hS(){this.__data__=uo?uo(null):{},this.size=0}function gS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vS="__lodash_hash_undefined__",mS=Object.prototype,bS=mS.hasOwnProperty;function yS(e){var t=this.__data__;if(uo){var r=t[e];return r===vS?void 0:r}return bS.call(t,e)?t[e]:void 0}var xS=Object.prototype,wS=xS.hasOwnProperty;function OS(e){var t=this.__data__;return uo?t[e]!==void 0:wS.call(t,e)}var TS="__lodash_hash_undefined__";function CS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=uo&&t===void 0?TS:t,this}function kr(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])}}kr.prototype.clear=hS,kr.prototype.delete=gS,kr.prototype.get=yS,kr.prototype.has=OS,kr.prototype.set=CS;function SS(){this.size=0,this.__data__={hash:new kr,map:new(lo||rr),string:new kr}}function ES(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sa(e,t){var r=e.__data__;return ES(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $S(e){var t=sa(this,e).delete(e);return this.size-=t?1:0,t}function _S(e){return sa(this,e).get(e)}function PS(e){return sa(this,e).has(e)}function MS(e,t){var r=sa(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=SS,nr.prototype.delete=$S,nr.prototype.get=_S,nr.prototype.has=PS,nr.prototype.set=MS;var kS=200;function AS(e,t){var r=this.__data__;if(r instanceof rr){var n=r.__data__;if(!lo||n.length<kS-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 Gt(e){var t=this.__data__=new rr(e);this.size=t.size}Gt.prototype.clear=DC,Gt.prototype.delete=IC,Gt.prototype.get=jC,Gt.prototype.has=LC,Gt.prototype.set=AS;var DS=function(){try{var e=Mr(Object,"defineProperty");return e({},"",{}),e}catch{}}();const la=DS;function is(e,t,r){t=="__proto__"&&la?la(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ss(e,t,r){(r!==void 0&&!io(e[t],r)||r===void 0&&!(t in e))&&is(e,t,r)}function IS(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(r(a[l],l,a)===!1)break}return t}}var jS=IS();const Fc=jS;var Rc=typeof te=="object"&&te&&!te.nodeType&&te,Bc=Rc&&typeof module=="object"&&module&&!module.nodeType&&module,LS=Bc&&Bc.exports===Rc,Wc=LS?Bt.Buffer:void 0,Hc=Wc?Wc.allocUnsafe:void 0;function NS(e,t){if(t)return e.slice();var r=e.length,n=Hc?Hc(r):new e.constructor(r);return e.copy(n),n}var FS=Bt.Uint8Array;const ua=FS;function RS(e){var t=new e.constructor(e.byteLength);return new ua(t).set(new ua(e)),t}function BS(e,t){var r=t?RS(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function WS(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var zc=Object.create,HS=function(){function e(){}return function(t){if(!Nt(t))return{};if(zc)return zc(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const zS=HS;function Uc(e,t){return function(r){return e(t(r))}}var US=Uc(Object.getPrototypeOf,Object);const Yc=US;var YS=Object.prototype;function ls(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||YS;return e===r}function GS(e){return typeof e.constructor=="function"&&!ls(e)?zS(Yc(e)):{}}function hr(e){return e!=null&&typeof e=="object"}var VS="[object Arguments]";function Gc(e){return hr(e)&&_r(e)==VS}var Vc=Object.prototype,qS=Vc.hasOwnProperty,XS=Vc.propertyIsEnumerable,KS=Gc(function(){return arguments}())?Gc:function(e){return hr(e)&&qS.call(e,"callee")&&!XS.call(e,"callee")};const ca=KS;var QS=Array.isArray;const Pt=QS;var ZS=9007199254740991;function us(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZS}function Qr(e){return e!=null&&us(e.length)&&!os(e)}function JS(e){return hr(e)&&Qr(e)}function eE(){return!1}var qc=typeof te=="object"&&te&&!te.nodeType&&te,Xc=qc&&typeof module=="object"&&module&&!module.nodeType&&module,tE=Xc&&Xc.exports===qc,Kc=tE?Bt.Buffer:void 0,rE=Kc?Kc.isBuffer:void 0,nE=rE||eE;const fa=nE;var oE="[object Object]",aE=Function.prototype,iE=Object.prototype,Qc=aE.toString,sE=iE.hasOwnProperty,lE=Qc.call(Object);function uE(e){if(!hr(e)||_r(e)!=oE)return!1;var t=Yc(e);if(t===null)return!0;var r=sE.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Qc.call(r)==lE}var cE="[object Arguments]",fE="[object Array]",dE="[object Boolean]",pE="[object Date]",hE="[object Error]",gE="[object Function]",vE="[object Map]",mE="[object Number]",bE="[object Object]",yE="[object RegExp]",xE="[object Set]",wE="[object String]",OE="[object WeakMap]",TE="[object ArrayBuffer]",CE="[object DataView]",SE="[object Float32Array]",EE="[object Float64Array]",$E="[object Int8Array]",_E="[object Int16Array]",PE="[object Int32Array]",ME="[object Uint8Array]",kE="[object Uint8ClampedArray]",AE="[object Uint16Array]",DE="[object Uint32Array]",Je={};Je[SE]=Je[EE]=Je[$E]=Je[_E]=Je[PE]=Je[ME]=Je[kE]=Je[AE]=Je[DE]=!0,Je[cE]=Je[fE]=Je[TE]=Je[dE]=Je[CE]=Je[pE]=Je[hE]=Je[gE]=Je[vE]=Je[mE]=Je[bE]=Je[yE]=Je[xE]=Je[wE]=Je[OE]=!1;function IE(e){return hr(e)&&us(e.length)&&!!Je[_r(e)]}function jE(e){return function(t){return e(t)}}var Zc=typeof te=="object"&&te&&!te.nodeType&&te,co=Zc&&typeof module=="object"&&module&&!module.nodeType&&module,LE=co&&co.exports===Zc,cs=LE&&Ic.process,NE=function(){try{var e=co&&co.require&&co.require("util").types;return e||cs&&cs.binding&&cs.binding("util")}catch{}}();const Jc=NE;var ef=Jc&&Jc.isTypedArray,FE=ef?jE(ef):IE;const fs=FE;function ds(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var RE=Object.prototype,BE=RE.hasOwnProperty;function WE(e,t,r){var n=e[t];(!(BE.call(e,t)&&io(n,r))||r===void 0&&!(t in e))&&is(e,t,r)}function HE(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),o?is(r,s,l):WE(r,s,l)}return r}function zE(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var UE=9007199254740991,YE=/^(?:0|[1-9]\d*)$/;function ps(e,t){var r=typeof e;return t=t??UE,!!t&&(r=="number"||r!="symbol"&&YE.test(e))&&e>-1&&e%1==0&&e<t}var GE=Object.prototype,VE=GE.hasOwnProperty;function tf(e,t){var r=Pt(e),n=!r&&ca(e),o=!r&&!n&&fa(e),a=!r&&!n&&!o&&fs(e),i=r||n||o||a,s=i?zE(e.length,String):[],l=s.length;for(var u in e)(t||VE.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ps(u,l)))&&s.push(u);return s}function qE(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var XE=Object.prototype,KE=XE.hasOwnProperty;function QE(e){if(!Nt(e))return qE(e);var t=ls(e),r=[];for(var n in e)n=="constructor"&&(t||!KE.call(e,n))||r.push(n);return r}function rf(e){return Qr(e)?tf(e,!0):QE(e)}function ZE(e){return HE(e,rf(e))}function JE(e,t,r,n,o,a,i){var s=ds(e,r),l=ds(t,r),u=i.get(l);if(u){ss(e,r,u);return}var c=a?a(s,l,r+"",e,t,i):void 0,f=c===void 0;if(f){var d=Pt(l),h=!d&&fa(l),m=!d&&!h&&fs(l);c=l,d||h||m?Pt(s)?c=s:JS(s)?c=WS(s):h?(f=!1,c=NS(l,!0)):m?(f=!1,c=BS(l,!0)):c=[]:uE(l)||ca(l)?(c=s,ca(s)?c=ZE(s):(!Nt(s)||os(s))&&(c=GS(l))):f=!1}f&&(i.set(l,c),o(c,l,n,a,i),i.delete(l)),ss(e,r,c)}function nf(e,t,r,n,o){e!==t&&Fc(t,function(a,i){if(o||(o=new Gt),Nt(a))JE(e,t,i,r,nf,n,o);else{var s=n?n(ds(e,i),a,i+"",e,t,o):void 0;s===void 0&&(s=a),ss(e,i,s)}},rf)}function da(e){return e}function e3(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 of=Math.max;function t3(e,t,r){return t=of(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=of(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),e3(e,this,s)}}function r3(e){return function(){return e}}var n3=la?function(e,t){return la(e,"toString",{configurable:!0,enumerable:!1,value:r3(t),writable:!0})}:da;const o3=n3;var a3=800,i3=16,s3=Date.now;function l3(e){var t=0,r=0;return function(){var n=s3(),o=i3-(n-r);if(r=n,o>0){if(++t>=a3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var u3=l3(o3);const c3=u3;function f3(e,t){return c3(t3(e,t,da),e+"")}function d3(e,t,r){if(!Nt(r))return!1;var n=typeof t;return(n=="number"?Qr(r)&&ps(t,r.length):n=="string"&&t in r)?io(r[t],e):!1}function p3(e){return f3(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&d3(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t})}var h3=p3(function(e,t,r){nf(e,t,r)});const Tt=h3;var fo=function(t){var r=t.zDepth,n=t.radius,o=t.background,a=t.children,i=t.styles,s=i===void 0?{}:i,l=fe(Tt({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:o}},"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 p.createElement("div",{style:l.wrap},p.createElement("div",{style:l.bg}),p.createElement("div",{style:l.content},a))};fo.propTypes={background:P.string,zDepth:P.oneOf([0,1,2,3,4,5]),radius:P.number,styles:P.object},fo.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var g3=function(){return Bt.Date.now()};const hs=g3;var v3=/\s/;function m3(e){for(var t=e.length;t--&&v3.test(e.charAt(t)););return t}var b3=/^\s+/;function y3(e){return e&&e.slice(0,m3(e)+1).replace(b3,"")}var x3="[object Symbol]";function pa(e){return typeof e=="symbol"||hr(e)&&_r(e)==x3}var af=0/0,w3=/^[-+]0x[0-9a-f]+$/i,O3=/^0b[01]+$/i,T3=/^0o[0-7]+$/i,C3=parseInt;function sf(e){if(typeof e=="number")return e;if(pa(e))return af;if(Nt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=y3(e);var r=O3.test(e);return r||T3.test(e)?C3(e.slice(2),r?2:8):w3.test(e)?af:+e}var S3="Expected a function",E3=Math.max,$3=Math.min;function po(e,t,r){var n,o,a,i,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(S3);t=sf(t)||0,Nt(r)&&(c=!!r.leading,f="maxWait"in r,a=f?E3(sf(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(S){var j=n,B=o;return n=o=void 0,u=S,i=e.apply(B,j),i}function m(S){return u=S,s=setTimeout(w,t),c?h(S):i}function g(S){var j=S-l,B=S-u,ue=t-j;return f?$3(ue,a-B):ue}function v(S){var j=S-l,B=S-u;return l===void 0||j>=t||j<0||f&&B>=a}function w(){var S=hs();if(v(S))return T(S);s=setTimeout(w,g(S))}function T(S){return s=void 0,d&&n?h(S):(n=o=void 0,i)}function k(){s!==void 0&&clearTimeout(s),u=0,n=l=o=s=void 0}function R(){return s===void 0?i:T(hs())}function x(){var S=hs(),j=v(S);if(n=arguments,o=this,l=S,j){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(w,t),h(l)}return s===void 0&&(s=setTimeout(w,t)),i}return x.cancel=k,x.flush=R,x}var _3="Expected a function";function lf(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(_3);return Nt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),po(e,t,{leading:n,maxWait:t,trailing:o})}var P3=function(t,r,n){var o=n.getBoundingClientRect(),a=o.width,i=o.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(n.getBoundingClientRect().left+window.pageXOffset),c=l-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>a&&(u=a),c<0?c=0:c>i&&(c=i);var f=u/a,d=1-c/i;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},M3=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function k3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A3(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 D3(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 ha=function(e){D3(t,e);function t(r){k3(this,t);var n=A3(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(o){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,P3(o,n.props.hsl,n.container),o)},n.handleMouseDown=function(o){n.handleChange(o);var a=n.getContainerRenderWindow();a.addEventListener("mousemove",n.handleChange),a.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=lf(function(o,a,i){o(a,i)},50),n}return M3(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,o=window;!o.document.contains(n)&&o.parent!==o;)o=o.parent;return o}},{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,o=this.props.style||{},a=o.color,i=o.white,s=o.black,l=o.pointer,u=o.circle,c=fe({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),
63
- 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:i,black:s,pointer:l,circle:u}},{custom:!!this.props.style});return p.createElement("div",{style:c.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("style",null,`
64
- .saturation-white {
65
- background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
66
- background: linear-gradient(to right, #fff, rgba(255,255,255,0));
67
- }
68
- .saturation-black {
69
- background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
70
- background: linear-gradient(to top, #000, rgba(0,0,0,0));
71
- }
72
- `),p.createElement("div",{style:c.white,className:"saturation-white"},p.createElement("div",{style:c.black,className:"saturation-black"}),p.createElement("div",{style:c.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:c.circle}))))}}]),t}(p.PureComponent||p.Component);function I3(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var j3=Uc(Object.keys,Object);const L3=j3;var N3=Object.prototype,F3=N3.hasOwnProperty;function R3(e){if(!ls(e))return L3(e);var t=[];for(var r in Object(e))F3.call(e,r)&&r!="constructor"&&t.push(r);return t}function gs(e){return Qr(e)?tf(e):R3(e)}function B3(e,t){return e&&Fc(e,t,gs)}function W3(e,t){return function(r,n){if(r==null)return r;if(!Qr(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&n(i[a],a,i)!==!1;);return r}}var H3=W3(B3);const uf=H3;function z3(e){return typeof e=="function"?e:da}function U3(e,t){var r=Pt(e)?I3:uf;return r(e,z3(t))}function ga(e){"@babel/helpers - typeof";return ga=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},ga(e)}var Y3=/^\s+/,G3=/\s+$/;function oe(e,t){if(e=e||"",t=t||{},e instanceof oe)return e;if(!(this instanceof oe))return new oe(e,t);var r=V3(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}oe.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,o,a,i,s;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*i+.0722*s},setAlpha:function(t){return this._a=gf(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ff(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ff(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=cf(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=cf(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return df(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Q3(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(et(this._r,255)*100)+"%",g:Math.round(et(this._g,255)*100)+"%",b:Math.round(et(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(et(this._r,255)*100)+"%, "+Math.round(et(this._g,255)*100)+"%, "+Math.round(et(this._b,255)*100)+"%)":"rgba("+Math.round(et(this._r,255)*100)+"%, "+Math.round(et(this._g,255)*100)+"%, "+Math.round(et(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:u$[df(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+pf(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=oe(t);n="#"+pf(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return oe(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(t$,arguments)},brighten:function(){return this._applyModification(r$,arguments)},darken:function(){return this._applyModification(n$,arguments)},desaturate:function(){return this._applyModification(Z3,arguments)},saturate:function(){return this._applyModification(J3,arguments)},greyscale:function(){return this._applyModification(e$,arguments)},spin:function(){return this._applyModification(o$,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(s$,arguments)},complement:function(){return this._applyCombination(a$,arguments)},monochromatic:function(){return this._applyCombination(l$,arguments)},splitcomplement:function(){return this._applyCombination(i$,arguments)},triad:function(){return this._applyCombination(hf,[3])},tetrad:function(){return this._applyCombination(hf,[4])}},oe.fromRatio=function(e,t){if(ga(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 oe(e,t)};function V3(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=p$(e)),ga(e)=="object"&&(or(e.r)&&or(e.g)&&or(e.b)?(t=q3(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):or(e.h)&&or(e.s)&&or(e.v)?(n=ho(e.s),o=ho(e.v),t=K3(e.h,n,o),i=!0,s="hsv"):or(e.h)&&or(e.s)&&or(e.l)&&(n=ho(e.s),a=ho(e.l),t=X3(e.h,n,a),i=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=gf(r),{ok:i,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 q3(e,t,r){return{r:et(e,255)*255,g:et(t,255)*255,b:et(r,255)*255}}function cf(e,t,r){e=et(e,255),t=et(t,255),r=et(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,i,s=(n+o)/2;if(n==o)a=i=0;else{var l=n-o;switch(i=s>.5?l/(2-n-o):l/(n+o),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s:i,l:s}}function X3(e,t,r){var n,o,a;e=et(e,360),t=et(t,100),r=et(r,100);function i(u,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(c-u)*6*f:f<1/2?c:f<2/3?u+(c-u)*(2/3-f)*6:u}if(t===0)n=o=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=i(l,s,e+1/3),o=i(l,s,e),a=i(l,s,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function ff(e,t,r){e=et(e,255),t=et(t,255),r=et(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,i,s=n,l=n-o;if(i=n===0?0:l/n,n==o)a=0;else{switch(n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s:i,v:s}}function K3(e,t,r){e=et(e,360)*6,t=et(t,100),r=et(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),i=r*(1-o*t),s=r*(1-(1-o)*t),l=n%6,u=[r,i,a,a,s,r][l],c=[s,r,r,i,a,a][l],f=[a,a,s,r,r,i][l];return{r:u*255,g:c*255,b:f*255}}function df(e,t,r,n){var o=[Wt(Math.round(e).toString(16)),Wt(Math.round(t).toString(16)),Wt(Math.round(r).toString(16))];return n&&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[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Q3(e,t,r,n,o){var a=[Wt(Math.round(e).toString(16)),Wt(Math.round(t).toString(16)),Wt(Math.round(r).toString(16)),Wt(vf(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function pf(e,t,r,n){var o=[Wt(vf(n)),Wt(Math.round(e).toString(16)),Wt(Math.round(t).toString(16)),Wt(Math.round(r).toString(16))];return o.join("")}oe.equals=function(e,t){return!e||!t?!1:oe(e).toRgbString()==oe(t).toRgbString()},oe.random=function(){return oe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Z3(e,t){t=t===0?0:t||10;var r=oe(e).toHsl();return r.s-=t/100,r.s=va(r.s),oe(r)}function J3(e,t){t=t===0?0:t||10;var r=oe(e).toHsl();return r.s+=t/100,r.s=va(r.s),oe(r)}function e$(e){return oe(e).desaturate(100)}function t$(e,t){t=t===0?0:t||10;var r=oe(e).toHsl();return r.l+=t/100,r.l=va(r.l),oe(r)}function r$(e,t){t=t===0?0:t||10;var r=oe(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)))),oe(r)}function n$(e,t){t=t===0?0:t||10;var r=oe(e).toHsl();return r.l-=t/100,r.l=va(r.l),oe(r)}function o$(e,t){var r=oe(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,oe(r)}function a$(e){var t=oe(e).toHsl();return t.h=(t.h+180)%360,oe(t)}function hf(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=oe(e).toHsl(),n=[oe(e)],o=360/t,a=1;a<t;a++)n.push(oe({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function i$(e){var t=oe(e).toHsl(),r=t.h;return[oe(e),oe({h:(r+72)%360,s:t.s,l:t.l}),oe({h:(r+216)%360,s:t.s,l:t.l})]}function s$(e,t,r){t=t||6,r=r||30;var n=oe(e).toHsl(),o=360/r,a=[oe(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(oe(n));return a}function l$(e,t){t=t||6;for(var r=oe(e).toHsv(),n=r.h,o=r.s,a=r.v,i=[],s=1/t;t--;)i.push(oe({h:n,s:o,v:a})),a=(a+s)%1;return i}oe.mix=function(e,t,r){r=r===0?0:r||50;var n=oe(e).toRgb(),o=oe(t).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return oe(i)},oe.readability=function(e,t){var r=oe(e),n=oe(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},oe.isReadable=function(e,t,r){var n=oe.readability(e,t),o,a;switch(a=!1,o=h$(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},oe.mostReadable=function(e,t,r){var n=null,o=0,a,i,s,l;r=r||{},i=r.includeFallbackColors,s=r.level,l=r.size;for(var u=0;u<t.length;u++)a=oe.readability(e,t[u]),a>o&&(o=a,n=oe(t[u]));return oe.isReadable(e,n,{level:s,size:l})||!i?n:(r.includeFallbackColors=!1,oe.mostReadable(e,["#fff","#000"],r))};var vs=oe.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"},u$=oe.hexNames=c$(vs);function c$(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function gf(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function et(e,t){f$(e)&&(e="100%");var r=d$(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 va(e){return Math.min(1,Math.max(0,e))}function Mt(e){return parseInt(e,16)}function f$(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function d$(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Wt(e){return e.length==1?"0"+e:""+e}function ho(e){return e<=1&&(e=e*100+"%"),e}function vf(e){return Math.round(parseFloat(e)*255).toString(16)}function mf(e){return Mt(e)/255}var Ht=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 or(e){return!!Ht.CSS_UNIT.exec(e)}function p$(e){e=e.replace(Y3,"").replace(G3,"").toLowerCase();var t=!1;if(vs[e])e=vs[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Ht.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Ht.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ht.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Ht.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ht.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Ht.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ht.hex8.exec(e))?{r:Mt(r[1]),g:Mt(r[2]),b:Mt(r[3]),a:mf(r[4]),format:t?"name":"hex8"}:(r=Ht.hex6.exec(e))?{r:Mt(r[1]),g:Mt(r[2]),b:Mt(r[3]),format:t?"name":"hex"}:(r=Ht.hex4.exec(e))?{r:Mt(r[1]+""+r[1]),g:Mt(r[2]+""+r[2]),b:Mt(r[3]+""+r[3]),a:mf(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Ht.hex3.exec(e))?{r:Mt(r[1]+""+r[1]),g:Mt(r[2]+""+r[2]),b:Mt(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function h$(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 bf=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return U3(r,function(a){if(t[a]&&(n+=1,isNaN(t[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(t[a])&&(o+=1)}}),n===o?t:!1},go=function(t,r){var n=t.hex?oe(t.hex):oe(t),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),s=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var l=s==="000000"&&i.a===0;return{hsl:o,hex:l?"transparent":"#"+s,rgb:i,hsv:a,oldHue:t.h||r||o.h,source:t.source}},gr=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&oe(t).isValid()},ms=function(t){if(!t)return"#fff";var r=go(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"},bs=function(t,r){var n=t.replace("°","");return oe(r+" ("+n+")")._ok},vo=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},g$=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function v$(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 b$(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 Ct=function(t){var r=function(n){b$(o,n);function o(a){v$(this,o);var i=m$(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return i.handleChange=function(s,l){var u=bf(s);if(u){var c=go(s,s.h||i.state.oldHue);i.setState(c),i.props.onChangeComplete&&i.debounce(i.props.onChangeComplete,c,l),i.props.onChange&&i.props.onChange(c,l)}},i.handleSwatchHover=function(s,l){var u=bf(s);if(u){var c=go(s,s.h||i.state.oldHue);i.props.onSwatchHover&&i.props.onSwatchHover(c,l)}},i.state=vo({},go(a.color,0)),i.debounce=po(function(s,l,u){s(l,u)},100),i}return g$(o,[{key:"render",value:function(){var i={};return this.props.onSwatchHover&&(i.onSwatchHover=this.handleSwatchHover),p.createElement(t,vo({},this.props,this.state,{onChange:this.handleChange},i))}}],[{key:"getDerivedStateFromProps",value:function(i,s){return vo({},go(i.color,s.oldHue))}}]),o}(p.PureComponent||p.Component);return r.propTypes=vo({},t.propTypes),r.defaultProps=vo({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},y$=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},x$=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function w$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yf(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 O$(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 T$=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){O$(o,n);function o(){var a,i,s,l;w$(this,o);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return l=(i=(s=yf(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},i),yf(s,l)}return x$(o,[{key:"render",value:function(){return p.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},p.createElement(t,y$({},this.props,this.state)))}}]),o}(p.Component)},xf=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},C$=13,S$=function(t){var r=t.color,n=t.style,o=t.onClick,a=o===void 0?function(){}:o,i=t.onHover,s=t.title,l=s===void 0?r:s,u=t.children,c=t.focus,f=t.focusStyle,d=f===void 0?{}:f,h=r==="transparent",m=fe({default:{swatch:xf({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?d:{})}}),g=function(R){return a(r,R)},v=function(R){return R.keyCode===C$&&a(r,R)},w=function(R){return i(r,R)},T={};return i&&(T.onMouseOver=w),p.createElement("div",xf({style:m.swatch,onClick:g,title:l,tabIndex:0,onKeyDown:v},T),u,h&&p.createElement(Xr,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Ar=T$(S$);var E$=function(t){var r=t.direction,n=fe({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 p.createElement("div",{style:n.picker})},$$=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},wf=function(t){var r=t.rgb,n=t.hsl,o=t.width,a=t.height,i=t.onChange,s=t.direction,l=t.style,u=t.renderers,c=t.pointer,f=t.className,d=f===void 0?"":f,h=fe({default:{picker:{position:"relative",width:o,height:a},alpha:{radius:"2px",style:l}}});return p.createElement("div",{style:h.picker,className:"alpha-picker "+d},p.createElement(Xi,$$({},h.alpha,{rgb:r,hsl:n,pointer:c,renderers:u,onChange:i,direction:s})))};wf.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:E$},Ct(wf);function Of(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var _$="__lodash_hash_undefined__";function P$(e){return this.__data__.set(e,_$),this}function M$(e){return this.__data__.has(e)}function ma(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nr;++t<r;)this.add(e[t])}ma.prototype.add=ma.prototype.push=P$,ma.prototype.has=M$;function k$(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 A$(e,t){return e.has(t)}var D$=1,I$=2;function Tf(e,t,r,n,o,a){var i=r&D$,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&I$?new ma:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var m=e[f],g=t[f];if(n)var v=i?n(g,m,f,t,e,a):n(m,g,f,e,t,a);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!k$(t,function(w,T){if(!A$(h,T)&&(m===w||o(m,w,r,n,a)))return h.push(T)})){d=!1;break}}else if(!(m===g||o(m,g,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function j$(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function L$(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var N$=1,F$=2,R$="[object Boolean]",B$="[object Date]",W$="[object Error]",H$="[object Map]",z$="[object Number]",U$="[object RegExp]",Y$="[object Set]",G$="[object String]",V$="[object Symbol]",q$="[object ArrayBuffer]",X$="[object DataView]",Cf=pr?pr.prototype:void 0,ys=Cf?Cf.valueOf:void 0;function K$(e,t,r,n,o,a,i){switch(r){case X$:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case q$:return!(e.byteLength!=t.byteLength||!a(new ua(e),new ua(t)));case R$:case B$:case z$:return io(+e,+t);case W$:return e.name==t.name&&e.message==t.message;case U$:case G$:return e==t+"";case H$:var s=j$;case Y$:var l=n&N$;if(s||(s=L$),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=F$,i.set(e,t);var c=Tf(s(e),s(t),n,o,a,i);return i.delete(e),c;case V$:if(ys)return ys.call(e)==ys.call(t)}return!1}function Q$(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Z$(e,t,r){var n=t(e);return Pt(e)?n:Q$(n,r(e))}function J$(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function e4(){return[]}var t4=Object.prototype,r4=t4.propertyIsEnumerable,Sf=Object.getOwnPropertySymbols,n4=Sf?function(e){return e==null?[]:(e=Object(e),J$(Sf(e),function(t){return r4.call(e,t)}))}:e4;const o4=n4;function Ef(e){return Z$(e,gs,o4)}var a4=1,i4=Object.prototype,s4=i4.hasOwnProperty;function l4(e,t,r,n,o,a){var i=r&a4,s=Ef(e),l=s.length,u=Ef(t),c=u.length;if(l!=c&&!i)return!1;for(var f=l;f--;){var d=s[f];if(!(i?d in t:s4.call(t,d)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);for(var v=i;++f<l;){d=s[f];var w=e[d],T=t[d];if(n)var k=i?n(T,w,d,t,e,a):n(w,T,d,e,t,a);if(!(k===void 0?w===T||o(w,T,r,n,a):k)){g=!1;break}v||(v=d=="constructor")}if(g&&!v){var R=e.constructor,x=t.constructor;R!=x&&"constructor"in e&&"constructor"in t&&!(typeof R=="function"&&R instanceof R&&typeof x=="function"&&x instanceof x)&&(g=!1)}return a.delete(e),a.delete(t),g}var u4=Mr(Bt,"DataView");const xs=u4;var c4=Mr(Bt,"Promise");const ws=c4;var f4=Mr(Bt,"Set");const Os=f4;var d4=Mr(Bt,"WeakMap");const Ts=d4;var $f="[object Map]",p4="[object Object]",_f="[object Promise]",Pf="[object Set]",Mf="[object WeakMap]",kf="[object DataView]",h4=Pr(xs),g4=Pr(lo),v4=Pr(ws),m4=Pr(Os),b4=Pr(Ts),Dr=_r;(xs&&Dr(new xs(new ArrayBuffer(1)))!=kf||lo&&Dr(new lo)!=$f||ws&&Dr(ws.resolve())!=_f||Os&&Dr(new Os)!=Pf||Ts&&Dr(new Ts)!=Mf)&&(Dr=function(e){var t=_r(e),r=t==p4?e.constructor:void 0,n=r?Pr(r):"";if(n)switch(n){case h4:return kf;case g4:return $f;case v4:return _f;case m4:return Pf;case b4:return Mf}return t});const Af=Dr;var y4=1,Df="[object Arguments]",If="[object Array]",ba="[object Object]",x4=Object.prototype,jf=x4.hasOwnProperty;function w4(e,t,r,n,o,a){var i=Pt(e),s=Pt(t),l=i?If:Af(e),u=s?If:Af(t);l=l==Df?ba:l,u=u==Df?ba:u;var c=l==ba,f=u==ba,d=l==u;if(d&&fa(e)){if(!fa(t))return!1;i=!0,c=!1}if(d&&!c)return a||(a=new Gt),i||fs(e)?Tf(e,t,r,n,o,a):K$(e,t,l,r,n,o,a);if(!(r&y4)){var h=c&&jf.call(e,"__wrapped__"),m=f&&jf.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return a||(a=new Gt),o(g,v,r,n,a)}}return d?(a||(a=new Gt),l4(e,t,r,n,o,a)):!1}function Cs(e,t,r,n,o){return e===t?!0:e==null||t==null||!hr(e)&&!hr(t)?e!==e&&t!==t:w4(e,t,r,n,Cs,o)}var O4=1,T4=2;function C4(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){s=r[o];var l=s[0],u=e[l],c=s[1];if(i&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Gt;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?Cs(c,u,O4|T4,n,f):d))return!1}}return!0}function Lf(e){return e===e&&!Nt(e)}function S4(e){for(var t=gs(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Lf(o)]}return t}function Nf(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function E4(e){var t=S4(e);return t.length==1&&t[0][2]?Nf(t[0][0],t[0][1]):function(r){return r===e||C4(r,e,t)}}var $4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_4=/^\w*$/;function Ss(e,t){if(Pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pa(e)?!0:_4.test(e)||!$4.test(e)||t!=null&&e in Object(t)}var P4="Expected a function";function Es(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(P4);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Es.Cache||nr),r}Es.Cache=nr;var M4=500;function k4(e){var t=Es(e,function(n){return r.size===M4&&r.clear(),n}),r=t.cache;return t}var A4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D4=/\\(\\)?/g,I4=k4(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(A4,function(r,n,o,a){t.push(o?a.replace(D4,"$1"):n||r)}),t});const j4=I4;var L4=1/0,Ff=pr?pr.prototype:void 0,Rf=Ff?Ff.toString:void 0;function Bf(e){if(typeof e=="string")return e;if(Pt(e))return Of(e,Bf)+"";if(pa(e))return Rf?Rf.call(e):"";var t=e+"";return t=="0"&&1/e==-L4?"-0":t}function N4(e){return e==null?"":Bf(e)}function Wf(e,t){return Pt(e)?e:Ss(e,t)?[e]:j4(N4(e))}var F4=1/0;function ya(e){if(typeof e=="string"||pa(e))return e;var t=e+"";return t=="0"&&1/e==-F4?"-0":t}function Hf(e,t){t=Wf(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ya(t[r++])];return r&&r==n?e:void 0}function R4(e,t,r){var n=e==null?void 0:Hf(e,t);return n===void 0?r:n}function B4(e,t){return e!=null&&t in Object(e)}function W4(e,t,r){t=Wf(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=ya(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&us(o)&&ps(i,o)&&(Pt(e)||ca(e)))}function H4(e,t){return e!=null&&W4(e,t,B4)}var z4=1,U4=2;function Y4(e,t){return Ss(e)&&Lf(t)?Nf(ya(e),t):function(r){var n=R4(r,e);return n===void 0&&n===t?H4(r,e):Cs(t,n,z4|U4)}}function G4(e){return function(t){return t==null?void 0:t[e]}}function V4(e){return function(t){return Hf(t,e)}}function q4(e){return Ss(e)?G4(ya(e)):V4(e)}function X4(e){return typeof e=="function"?e:e==null?da:typeof e=="object"?Pt(e)?Y4(e[0],e[1]):E4(e):q4(e)}function K4(e,t){var r=-1,n=Qr(e)?Array(e.length):[];return uf(e,function(o,a,i){n[++r]=t(o,a,i)}),n}function Ir(e,t){var r=Pt(e)?Of:K4;return r(e,X4(t))}var Q4=function(t){var r=t.colors,n=t.onClick,o=t.onSwatchHover,a=fe({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return p.createElement("div",{style:a.swatches},Ir(r,function(i){return p.createElement(Ar,{key:i,color:i,style:a.swatch,onClick:n,onHover:o,focusStyle:{boxShadow:"0 0 4px "+i}})}),p.createElement("div",{style:a.clear}))},$s=function(t){var r=t.onChange,n=t.onSwatchHover,o=t.hex,a=t.colors,i=t.width,s=t.triangle,l=t.styles,u=l===void 0?{}:l,c=t.className,f=c===void 0?"":c,d=o==="transparent",h=function(v,w){gr(v)&&r({hex:v,source:"hex"},w)},m=fe(Tt({default:{card:{width:i,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:ms(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" 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"}}},u),{"hide-triangle":s==="hide"});return p.createElement("div",{style:m.card,className:"block-picker "+f},p.createElement("div",{style:m.triangle}),p.createElement("div",{style:m.head},d&&p.createElement(Xr,{borderRadius:"6px 6px 0 0"}),p.createElement("div",{style:m.label},o)),p.createElement("div",{style:m.body},p.createElement(Q4,{colors:a,onClick:h,onSwatchHover:n}),p.createElement(Se,{style:{input:m.input},value:o,onChange:h})))};$s.propTypes={width:P.oneOfType([P.string,P.number]),colors:P.arrayOf(P.string),triangle:P.oneOf(["top","hide"]),styles:P.object},$s.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Ct($s);var Zr={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"},Jr={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"},en={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"},tn={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"},rn={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"},nn={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"},on={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"},an={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"},sn={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"},mo={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"},ln={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"},un={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"},cn={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"},fn={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"},dn={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"},pn={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"},hn={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},gn={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},zf=function(t){var r=t.color,n=t.onClick,o=t.onSwatchHover,a=t.hover,i=t.active,s=t.circleSize,l=t.circleSpacing,u=fe({default:{swatch:{width:s,height:s,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:a,active:i});return p.createElement("div",{style:u.swatch},p.createElement(Ar,{style:u.Swatch,color:r,onClick:n,onHover:o,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+r}}))};zf.defaultProps={circleSize:28,circleSpacing:14};const Z4=Vi(zf);var _s=function(t){var r=t.width,n=t.onChange,o=t.onSwatchHover,a=t.colors,i=t.hex,s=t.circleSize,l=t.styles,u=l===void 0?{}:l,c=t.circleSpacing,f=t.className,d=f===void 0?"":f,h=fe(Tt({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},u)),m=function(v,w){return n({hex:v,source:"hex"},w)};return p.createElement("div",{style:h.card,className:"circle-picker "+d},Ir(a,function(g){return p.createElement(Z4,{key:g,color:g,onClick:m,onSwatchHover:o,active:i===g.toLowerCase(),circleSize:s,circleSpacing:c})}))};_s.propTypes={width:P.oneOfType([P.string,P.number]),circleSize:P.number,circleSpacing:P.number,styles:P.object},_s.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Zr[500],Jr[500],en[500],tn[500],rn[500],nn[500],on[500],an[500],sn[500],mo[500],ln[500],un[500],cn[500],fn[500],dn[500],pn[500],hn[500],gn[500]],styles:{}},Ct(_s);function Uf(e){return e===void 0}var Yf={};Object.defineProperty(Yf,"__esModule",{value:!0});var Gf=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},J4=p,Vf=e_(J4);function e_(e){return e&&e.__esModule?e:{default:e}}function t_(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 xa=24,r_=Yf.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,o=n===void 0?xa:n,a=e.height,i=a===void 0?xa:a,s=e.style,l=s===void 0?{}:s,u=t_(e,["fill","width","height","style"]);return Vf.default.createElement("svg",Gf({viewBox:"0 0 "+xa+" "+xa,style:Gf({fill:r,width:o,height:i},l)},u),Vf.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"}))},n_=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a_(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 i_(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 qf=function(e){i_(t,e);function t(r){o_(this,t);var n=a_(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(o,a){o.hex?gr(o.hex)&&n.props.onChange({hex:o.hex,source:"hex"},a):o.r||o.g||o.b?n.props.onChange({r:o.r||n.props.rgb.r,g:o.g||n.props.rgb.g,b:o.b||n.props.rgb.b,source:"rgb"},a):o.a?(o.a<0?o.a=0:o.a>1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(Uf(o.s)?n.props.hsl.s:o.s),l:Number(Uf(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return n_(t,[{key:"render",value:function(){var n=this,o=fe({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=p.createElement("div",{style:o.fields,className:"flexbox-fix"},p.createElement("div",{style:o.field},p.createElement(Se,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=p.createElement("div",{style:o.fields,className:"flexbox-fix"},p.createElement("div",{style:o.field},p.createElement(Se,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),p.createElement("div",{style:o.field},p.createElement(Se,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),p.createElement("div",{style:o.field},p.createElement(Se,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),p.createElement("div",{style:o.alpha},p.createElement(Se,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=p.createElement("div",{style:o.fields,className:"flexbox-fix"},p.createElement("div",{style:o.field},p.createElement(Se,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),p.createElement("div",{style:o.field},p.createElement(Se,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:o.field},p.createElement(Se,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:o.alpha},p.createElement(Se,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),p.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,p.createElement("div",{style:o.toggle},p.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},p.createElement(r_,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),t}(p.Component);qf.defaultProps={view:"hex"};var Xf=function(){var t=fe({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 p.createElement("div",{style:t.picker})},s_=function(){var t=fe({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return p.createElement("div",{style:t.picker})},Ps=function(t){var r=t.width,n=t.onChange,o=t.disableAlpha,a=t.rgb,i=t.hsl,s=t.hsv,l=t.hex,u=t.renderers,c=t.styles,f=c===void 0?{}:c,d=t.className,h=d===void 0?"":d,m=t.defaultView,g=fe(Tt({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:o});return p.createElement("div",{style:g.picker,className:"chrome-picker "+h},p.createElement("div",{style:g.saturation},p.createElement(ha,{style:g.Saturation,hsl:i,hsv:s,pointer:s_,onChange:n})),p.createElement("div",{style:g.body},p.createElement("div",{style:g.controls,className:"flexbox-fix"},p.createElement("div",{style:g.color},p.createElement("div",{style:g.swatch},p.createElement("div",{style:g.active}),p.createElement(Xr,{renderers:u}))),p.createElement("div",{style:g.toggles},p.createElement("div",{style:g.hue},p.createElement(Kr,{style:g.Hue,hsl:i,pointer:Xf,onChange:n})),p.createElement("div",{style:g.alpha},p.createElement(Xi,{style:g.Alpha,rgb:a,hsl:i,pointer:Xf,renderers:u,onChange:n})))),p.createElement(qf,{rgb:a,hsl:i,hex:l,view:m,onChange:n,disableAlpha:o})))};Ps.propTypes={width:P.oneOfType([P.string,P.number]),disableAlpha:P.bool,styles:P.object,defaultView:P.oneOf(["hex","rgb","hsl"])},Ps.defaultProps={width:225,disableAlpha:!1,styles:{}};const l_=Ct(Ps);var u_=function(t){var r=t.color,n=t.onClick,o=n===void 0?function(){}:n,a=t.onSwatchHover,i=t.active,s=fe({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:ms(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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return p.createElement(Ar,{style:s.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},p.createElement("div",{style:s.dot}))},c_=function(t){var r=t.hex,n=t.rgb,o=t.onChange,a=fe({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"}}}),i=function(l,u){l.r||l.g||l.b?o({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},u):o({hex:l.hex,source:"hex"},u)};return p.createElement("div",{style:a.fields,className:"flexbox-fix"},p.createElement("div",{style:a.active}),p.createElement(Se,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),p.createElement(Se,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),p.createElement(Se,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),p.createElement(Se,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},Ms=function(t){var r=t.onChange,n=t.onSwatchHover,o=t.colors,a=t.hex,i=t.rgb,s=t.styles,l=s===void 0?{}:s,u=t.className,c=u===void 0?"":u,f=fe(Tt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),d=function(m,g){m.hex?gr(m.hex)&&r({hex:m.hex,source:"hex"},g):r(m,g)};return p.createElement(fo,{style:f.Compact,styles:l},p.createElement("div",{style:f.compact,className:"compact-picker "+c},p.createElement("div",null,Ir(o,function(h){return p.createElement(u_,{key:h,color:h,active:h.toLowerCase()===a,onClick:d,onSwatchHover:n})}),p.createElement("div",{style:f.clear})),p.createElement(c_,{hex:a,rgb:i,onChange:d})))};Ms.propTypes={colors:P.arrayOf(P.string),styles:P.object},Ms.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:{}},Ct(Ms);var f_=function(t){var r=t.hover,n=t.color,o=t.onClick,a=t.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=fe({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return p.createElement("div",{style:s.swatch},p.createElement(Ar,{color:n,onClick:o,onHover:a,focusStyle:i}))};const d_=Vi(f_);var ks=function(t){var r=t.width,n=t.colors,o=t.onChange,a=t.onSwatchHover,i=t.triangle,s=t.styles,l=s===void 0?{}:s,u=t.className,c=u===void 0?"":u,f=fe(Tt({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)"}}},l),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),d=function(m,g){return o({hex:m,source:"hex"},g)};return p.createElement("div",{style:f.card,className:"github-picker "+c},p.createElement("div",{style:f.triangleShadow}),p.createElement("div",{style:f.triangle}),Ir(n,function(h){return p.createElement(d_,{color:h,key:h,onClick:d,onSwatchHover:a})}))};ks.propTypes={width:P.oneOfType([P.string,P.number]),colors:P.arrayOf(P.string),triangle:P.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:P.object},ks.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Ct(ks);var p_=function(t){var r=t.direction,n=fe({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 p.createElement("div",{style:n.picker})},h_=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},As=function(t){var r=t.width,n=t.height,o=t.onChange,a=t.hsl,i=t.direction,s=t.pointer,l=t.styles,u=l===void 0?{}:l,c=t.className,f=c===void 0?"":c,d=fe(Tt({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},u)),h=function(g){return o({a:1,h:g.h,l:.5,s:1})};return p.createElement("div",{style:d.picker,className:"hue-picker "+f},p.createElement(Kr,h_({},d.hue,{hsl:a,pointer:s,onChange:h,direction:i})))};As.propTypes={styles:P.object},As.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:p_,styles:{}},Ct(As);var g_=function(t){var r=t.onChange,n=t.hex,o=t.rgb,a=t.styles,i=a===void 0?{}:a,s=t.className,l=s===void 0?"":s,u=fe(Tt({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"}}},i)),c=function(d,h){d.hex?gr(d.hex)&&r({hex:d.hex,source:"hex"},h):(d.r||d.g||d.b)&&r({r:d.r||o.r,g:d.g||o.g,b:d.b||o.b,source:"rgb"},h)};return p.createElement(fo,{styles:i},p.createElement("div",{style:u.material,className:"material-picker "+l},p.createElement(Se,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:c}),p.createElement("div",{style:u.split,className:"flexbox-fix"},p.createElement("div",{style:u.third},p.createElement(Se,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:o.r,onChange:c})),p.createElement("div",{style:u.third},p.createElement(Se,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:o.g,onChange:c})),p.createElement("div",{style:u.third},p.createElement(Se,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:o.b,onChange:c})))))};Ct(g_);var v_=function(t){var r=t.onChange,n=t.rgb,o=t.hsv,a=t.hex,i=fe({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(u,c){u["#"]?gr(u["#"])&&r({hex:u["#"],source:"hex"},c):u.r||u.g||u.b?r({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},c):(u.h||u.s||u.v)&&r({h:u.h||o.h,s:u.s||o.s,v:u.v||o.v,source:"hsv"},c)};return p.createElement("div",{style:i.fields},p.createElement(Se,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"h",value:Math.round(o.h),onChange:s}),p.createElement(Se,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"s",value:Math.round(o.s*100),onChange:s}),p.createElement(Se,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"v",value:Math.round(o.v*100),onChange:s}),p.createElement("div",{style:i.divider}),p.createElement(Se,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:s}),p.createElement(Se,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:s}),p.createElement(Se,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:s}),p.createElement("div",{style:i.divider}),p.createElement(Se,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"#",value:a.replace("#",""),onChange:s}),p.createElement("div",{style:i.fieldSymbols},p.createElement("div",{style:i.symbol},"°"),p.createElement("div",{style:i.symbol},"%"),p.createElement("div",{style:i.symbol},"%")))},m_=function(t){var r=t.hsl,n=fe({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 p.createElement("div",{style:n.picker})},b_=function(){var t=fe({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 p.createElement("div",{style:t.pointer},p.createElement("div",{style:t.left},p.createElement("div",{style:t.leftInside})),p.createElement("div",{style:t.right},p.createElement("div",{style:t.rightInside})))},Kf=function(t){var r=t.onClick,n=t.label,o=t.children,a=t.active,i=fe({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return p.createElement("div",{style:i.button,onClick:r},n||o)},y_=function(t){var r=t.rgb,n=t.currentColor,o=fe({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 p.createElement("div",null,p.createElement("div",{style:o.label},"new"),p.createElement("div",{style:o.swatches},p.createElement("div",{style:o.new}),p.createElement("div",{style:o.current})),p.createElement("div",{style:o.label},"current"))},x_=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function w_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O_(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 T_(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 Ds=function(e){T_(t,e);function t(r){w_(this,t);var n=O_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return x_(t,[{key:"render",value:function(){var n=this.props,o=n.styles,a=o===void 0?{}:o,i=n.className,s=i===void 0?"":i,l=fe(Tt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},a));return p.createElement("div",{style:l.picker,className:"photoshop-picker "+s},p.createElement("div",{style:l.head},this.props.header),p.createElement("div",{style:l.body,className:"flexbox-fix"},p.createElement("div",{style:l.saturation},p.createElement(ha,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:m_,onChange:this.props.onChange})),p.createElement("div",{style:l.hue},p.createElement(Kr,{direction:"vertical",hsl:this.props.hsl,pointer:b_,onChange:this.props.onChange})),p.createElement("div",{style:l.controls},p.createElement("div",{style:l.top,className:"flexbox-fix"},p.createElement("div",{style:l.previews},p.createElement(y_,{rgb:this.props.rgb,currentColor:this.state.currentColor})),p.createElement("div",{style:l.actions},p.createElement(Kf,{label:"OK",onClick:this.props.onAccept,active:!0}),p.createElement(Kf,{label:"Cancel",onClick:this.props.onCancel}),p.createElement(v_,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(p.Component);Ds.propTypes={header:P.string,styles:P.object},Ds.defaultProps={header:"Color Picker",styles:{}},Ct(Ds);var C_=function(t){var r=t.onChange,n=t.rgb,o=t.hsl,a=t.hex,i=t.disableAlpha,s=fe({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:i}),l=function(c,f){c.hex?gr(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:o.h,s:o.s,l:o.l,a:c.a,source:"rgb"},f))};return p.createElement("div",{style:s.fields,className:"flexbox-fix"},p.createElement("div",{style:s.double},p.createElement(Se,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:l})),p.createElement("div",{style:s.single},p.createElement(Se,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:s.single},p.createElement(Se,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:s.single},p.createElement(Se,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:s.alpha},p.createElement(Se,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},S_=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},Qf=function(t){var r=t.colors,n=t.onClick,o=n===void 0?function(){}:n,a=t.onSwatchHover,i=fe({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(u,c){o({hex:u,source:"hex"},c)};return p.createElement("div",{style:i.colors,className:"flexbox-fix"},r.map(function(l){var u=typeof l=="string"?{color:l}:l,c=""+u.color+(u.title||"");return p.createElement("div",{key:c,style:i.swatchWrap},p.createElement(Ar,S_({},u,{style:i.swatch,onClick:s,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+u.color}})))}))};Qf.propTypes={colors:P.arrayOf(P.oneOfType([P.string,P.shape({color:P.string,title:P.string})])).isRequired};var E_=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},Is=function(t){var r=t.width,n=t.rgb,o=t.hex,a=t.hsv,i=t.hsl,s=t.onChange,l=t.onSwatchHover,u=t.disableAlpha,c=t.presetColors,f=t.renderers,d=t.styles,h=d===void 0?{}:d,m=t.className,g=m===void 0?"":m,v=fe(Tt({default:E_({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:u});return p.createElement("div",{style:v.picker,className:"sketch-picker "+g},p.createElement("div",{style:v.saturation},p.createElement(ha,{style:v.Saturation,hsl:i,hsv:a,onChange:s})),p.createElement("div",{style:v.controls,className:"flexbox-fix"},p.createElement("div",{style:v.sliders},p.createElement("div",{style:v.hue},p.createElement(Kr,{style:v.Hue,hsl:i,onChange:s})),p.createElement("div",{style:v.alpha},p.createElement(Xi,{style:v.Alpha,rgb:n,hsl:i,renderers:f,onChange:s}))),p.createElement("div",{style:v.color},p.createElement(Xr,null),p.createElement("div",{style:v.activeColor}))),p.createElement(C_,{rgb:n,hsl:i,hex:o,onChange:s,disableAlpha:u}),p.createElement(Qf,{colors:c,onClick:s,onSwatchHover:l}))};Is.propTypes={disableAlpha:P.bool,width:P.oneOfType([P.string,P.number]),styles:P.object},Is.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Ct(Is);var bo=function(t){var r=t.hsl,n=t.offset,o=t.onClick,a=o===void 0?function(){}:o,i=t.active,s=t.first,l=t.last,u=fe({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:i,first:s,last:l}),c=function(d){return a({h:r.h,s:.5,l:n,source:"hsl"},d)};return p.createElement("div",{style:u.swatch,onClick:c})},$_=function(t){var r=t.onClick,n=t.hsl,o=fe({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return p.createElement("div",{style:o.swatches},p.createElement("div",{style:o.swatch},p.createElement(bo,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<a&&Math.abs(n.s-.5)<a,onClick:r,first:!0})),p.createElement("div",{style:o.swatch},p.createElement(bo,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<a&&Math.abs(n.s-.5)<a,onClick:r})),p.createElement("div",{style:o.swatch},p.createElement(bo,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<a&&Math.abs(n.s-.5)<a,onClick:r})),p.createElement("div",{style:o.swatch},p.createElement(bo,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<a&&Math.abs(n.s-.5)<a,onClick:r})),p.createElement("div",{style:o.swatch},p.createElement(bo,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<a&&Math.abs(n.s-.5)<a,onClick:r,last:!0})),p.createElement("div",{style:o.clear}))},__=function(){var t=fe({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 p.createElement("div",{style:t.picker})},js=function(t){var r=t.hsl,n=t.onChange,o=t.pointer,a=t.styles,i=a===void 0?{}:a,s=t.className,l=s===void 0?"":s,u=fe(Tt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},i));return p.createElement("div",{style:u.wrap||{},className:"slider-picker "+l},p.createElement("div",{style:u.hue},p.createElement(Kr,{style:u.Hue,hsl:r,pointer:o,onChange:n})),p.createElement("div",{style:u.swatches},p.createElement($_,{hsl:r,onClick:n})))};js.propTypes={styles:P.object},js.defaultProps={pointer:__,styles:{}},Ct(js);var Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});var Jf=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},P_=p,ed=M_(P_);function M_(e){return e&&e.__esModule?e:{default:e}}function k_(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 wa=24,A_=Zf.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,o=n===void 0?wa:n,a=e.height,i=a===void 0?wa:a,s=e.style,l=s===void 0?{}:s,u=k_(e,["fill","width","height","style"]);return ed.default.createElement("svg",Jf({viewBox:"0 0 "+wa+" "+wa,style:Jf({fill:r,width:o,height:i},l)},u),ed.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},D_=function(t){var r=t.color,n=t.onClick,o=n===void 0?function(){}:n,a=t.onSwatchHover,i=t.first,s=t.last,l=t.active,u=fe({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:ms(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:i,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return p.createElement(Ar,{color:r,style:u.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},p.createElement("div",{style:u.check},p.createElement(A_,null)))},I_=function(t){var r=t.onClick,n=t.onSwatchHover,o=t.group,a=t.active,i=fe({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return p.createElement("div",{style:i.group},Ir(o,function(s,l){return p.createElement(D_,{key:s,color:s,active:s.toLowerCase()===a,first:l===0,last:l===o.length-1,onClick:r,onSwatchHover:n})}))},Ls=function(t){var r=t.width,n=t.height,o=t.onChange,a=t.onSwatchHover,i=t.colors,s=t.hex,l=t.styles,u=l===void 0?{}:l,c=t.className,f=c===void 0?"":c,d=fe(Tt({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),h=function(g,v){return o({hex:g,source:"hex"},v)};return p.createElement("div",{style:d.picker,className:"swatches-picker "+f},p.createElement(fo,null,p.createElement("div",{style:d.overflow},p.createElement("div",{style:d.body},Ir(i,function(m){return p.createElement(I_,{key:m.toString(),group:m,active:s,onClick:h,onSwatchHover:a})}),p.createElement("div",{style:d.clear})))))};Ls.propTypes={width:P.oneOfType([P.string,P.number]),height:P.oneOfType([P.string,P.number]),colors:P.arrayOf(P.arrayOf(P.string)),styles:P.object},Ls.defaultProps={width:320,height:240,colors:[[Zr[900],Zr[700],Zr[500],Zr[300],Zr[100]],[Jr[900],Jr[700],Jr[500],Jr[300],Jr[100]],[en[900],en[700],en[500],en[300],en[100]],[tn[900],tn[700],tn[500],tn[300],tn[100]],[rn[900],rn[700],rn[500],rn[300],rn[100]],[nn[900],nn[700],nn[500],nn[300],nn[100]],[on[900],on[700],on[500],on[300],on[100]],[an[900],an[700],an[500],an[300],an[100]],[sn[900],sn[700],sn[500],sn[300],sn[100]],["#194D33",mo[700],mo[500],mo[300],mo[100]],[ln[900],ln[700],ln[500],ln[300],ln[100]],[un[900],un[700],un[500],un[300],un[100]],[cn[900],cn[700],cn[500],cn[300],cn[100]],[fn[900],fn[700],fn[500],fn[300],fn[100]],[dn[900],dn[700],dn[500],dn[300],dn[100]],[pn[900],pn[700],pn[500],pn[300],pn[100]],[hn[900],hn[700],hn[500],hn[300],hn[100]],[gn[900],gn[700],gn[500],gn[300],gn[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Ct(Ls);var Ns=function(t){var r=t.onChange,n=t.onSwatchHover,o=t.hex,a=t.colors,i=t.width,s=t.triangle,l=t.styles,u=l===void 0?{}:l,c=t.className,f=c===void 0?"":c,d=fe(Tt({default:{card:{width:i,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"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),h=function(g,v){gr(g)&&r({hex:g,source:"hex"},v)};return p.createElement("div",{style:d.card,className:"twitter-picker "+f},p.createElement("div",{style:d.triangleShadow}),p.createElement("div",{style:d.triangle}),p.createElement("div",{style:d.body},Ir(a,function(m,g){return p.createElement(Ar,{key:g,color:m,hex:m,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+m}})}),p.createElement("div",{style:d.hash},"#"),p.createElement(Se,{label:null,style:{input:d.input},value:o.replace("#",""),onChange:h}),p.createElement("div",{style:d.clear})))};Ns.propTypes={width:P.oneOfType([P.string,P.number]),triangle:P.oneOf(["hide","top-left","top-right"]),colors:P.arrayOf(P.string),styles:P.object},Ns.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Ct(Ns);var Fs=function(t){var r=fe({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 p.createElement("div",{style:r.picker})};Fs.propTypes={hsl:P.shape({h:P.number,s:P.number,l:P.number,a:P.number})},Fs.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Rs=function(t){var r=fe({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 p.createElement("div",{style:r.picker})};Rs.propTypes={hsl:P.shape({h:P.number,s:P.number,l:P.number,a:P.number})},Rs.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var j_=function(t){var r=t.onChange,n=t.rgb,o=t.hsl,a=t.hex,i=t.hsv,s=function(h,m){if(h.hex)gr(h.hex)&&r({hex:h.hex,source:"hex"},m);else if(h.rgb){var g=h.rgb.split(",");bs(h.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},m)}else if(h.hsv){var v=h.hsv.split(",");bs(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 w=h.hsl.split(",");bs(h.hsl,"hsl")&&(w[2]=w[2].replace("%",""),w[1]=w[1].replace("%",""),w[0]=w[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),r({h:Number(w[0]),s:Number(w[1]),v:Number(w[2]),source:"hsl"},m))}},l=fe({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"}}}),u=n.r+", "+n.g+", "+n.b,c=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",f=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return p.createElement("div",{style:l.wrap,className:"flexbox-fix"},p.createElement("div",{style:l.fields},p.createElement("div",{style:l.double},p.createElement(Se,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:s})),p.createElement("div",{style:l.column},p.createElement("div",{style:l.single},p.createElement(Se,{style:{input:l.input2,label:l.label2},label:"rgb",value:u,onChange:s})),p.createElement("div",{style:l.single},p.createElement(Se,{style:{input:l.input2,label:l.label2},label:"hsv",value:f,onChange:s})),p.createElement("div",{style:l.single},p.createElement(Se,{style:{input:l.input2,label:l.label2},label:"hsl",value:c,onChange:s})))))},Bs=function(t){var r=t.width,n=t.onChange,o=t.rgb,a=t.hsl,i=t.hsv,s=t.hex,l=t.header,u=t.styles,c=u===void 0?{}:u,f=t.className,d=f===void 0?"":f,h=fe(Tt({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("+o.r+", "+o.g+", "+o.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 p.createElement("div",{style:h.picker,className:"google-picker "+d},p.createElement("div",{style:h.head},l),p.createElement("div",{style:h.swatch}),p.createElement("div",{style:h.saturation},p.createElement(ha,{hsl:a,hsv:i,pointer:Fs,onChange:n})),p.createElement("div",{style:h.body},p.createElement("div",{style:h.controls,className:"flexbox-fix"},p.createElement("div",{style:h.hue},p.createElement(Kr,{style:h.Hue,hsl:a,radius:"4px",pointer:Rs,onChange:n}))),p.createElement(j_,{rgb:o,hsl:a,hex:s,hsv:i,onChange:n})))};Bs.propTypes={width:P.oneOfType([P.string,P.number]),styles:P.object,header:P.string},Bs.defaultProps={width:652,styles:{},header:"Color picker"},Ct(Bs);const yo=/^[a-z0-9]+(-[a-z0-9]+)*$/,Oa=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:n,prefix:l,name:s};return t&&!Ta(u)?null:u}const a=o[0],i=a.split("-");if(i.length>1){const s={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!Ta(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:a};return t&&!Ta(s,r)?null:s}return null},Ta=(e,t)=>e?!!((e.provider===""||e.provider.match(yo))&&(t&&e.prefix===""||e.prefix.match(yo))&&e.name.match(yo)):!1,td=Object.freeze({left:0,top:0,width:16,height:16}),Ca=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ws=Object.freeze({...td,...Ca}),Hs=Object.freeze({...Ws,body:"",hidden:!1});function L_(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 rd(e,t){const r=L_(e,t);for(const n in Hs)n in Ca?n in e&&!(n in r)&&(r[n]=Ca[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function N_(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function a(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const s=n[i]&&n[i].parent,l=s&&a(s);l&&(o[i]=[s].concat(l))}return o[i]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(a),o}function F_(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let a={};function i(s){a=rd(n[s]||o[s],a)}return i(t),r.forEach(i),rd(e,a)}function nd(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=N_(e);for(const o in n){const a=n[o];a&&(t(o,F_(e,o,a)),r.push(o))}return r}const R_={provider:"",aliases:{},not_found:{},...td};function zs(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function od(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!zs(e,R_))return null;const r=t.icons;for(const o in r){const a=r[o];if(!o.match(yo)||typeof a.body!="string"||!zs(a,Hs))return null}const n=t.aliases||Object.create(null);for(const o in n){const a=n[o],i=a.parent;if(!o.match(yo)||typeof i!="string"||!r[i]&&!n[i]||!zs(a,Hs))return null}return t}const ad=Object.create(null);function B_(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function jr(e,t){const r=ad[e]||(ad[e]=Object.create(null));return r[t]||(r[t]=B_(e,t))}function Us(e,t){return od(t)?nd(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function W_(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let xo=!1;function id(e){return typeof e=="boolean"&&(xo=e),xo}function H_(e){const t=typeof e=="string"?Oa(e,!0,xo):e;if(t){const r=jr(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function z_(e,t){const r=Oa(e,!0,xo);if(!r)return!1;const n=jr(r.provider,r.prefix);return W_(n,r.name,t)}function U_(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),xo&&!t&&!e.prefix){let o=!1;return od(e)&&(e.prefix="",nd(e,(a,i)=>{i&&z_(a,i)&&(o=!0)})),o}const r=e.prefix;if(!Ta({provider:t,prefix:r,name:"a"}))return!1;const n=jr(t,r);return!!Us(n,e)}const sd=Object.freeze({width:null,height:null}),ld=Object.freeze({...sd,...Ca}),Y_=/(-?[0-9.]*[0-9]+[0-9.]*)/g,G_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ud(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(Y_);if(n===null||!n.length)return e;const o=[];let a=n.shift(),i=G_.test(a);for(;;){if(i){const s=parseFloat(a);isNaN(s)?o.push(a):o.push(Math.ceil(s*t*r)/r)}else o.push(a);if(a=n.shift(),a===void 0)return o.join("");i=!i}}const V_=e=>e==="unset"||e==="undefined"||e==="none";function q_(e,t){const r={...Ws,...e},n={...ld,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(m=>{const g=[],v=m.hFlip,w=m.vFlip;let T=m.rotate;v?w?T+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):w&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let k;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:k=o.height/2+o.top,g.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:k=o.width/2+o.left,g.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}T%2===1&&(o.left!==o.top&&(k=o.left,o.left=o.top,o.top=k),o.width!==o.height&&(k=o.width,o.width=o.height,o.height=k)),g.length&&(a='<g transform="'+g.join(" ")+'">'+a+"</g>")});const i=n.width,s=n.height,l=o.width,u=o.height;let c,f;i===null?(f=s===null?"1em":s==="auto"?u:s,c=ud(f,l/u)):(c=i==="auto"?l:i,f=s===null?ud(c,u/l):s==="auto"?u:s);const d={},h=(m,g)=>{V_(g)||(d[m]=g.toString())};return h("width",c),h("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:d,body:a}}const X_=/\sid="(\S+)"/g,K_="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Q_=0;function Z_(e,t=K_){const r=[];let n;for(;n=X_.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{const i=typeof t=="function"?t(a):t+(Q_++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const Ys=Object.create(null);function J_(e,t){Ys[e]=t}function Gs(e){return Ys[e]||Ys[""]}function Vs(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 qs=Object.create(null),wo=["https://api.simplesvg.com","https://api.unisvg.com"],Sa=[];for(;wo.length>0;)wo.length===1||Math.random()>.5?Sa.push(wo.shift()):Sa.push(wo.pop());qs[""]=Vs({resources:["https://api.iconify.design"].concat(Sa)});function eP(e,t){const r=Vs(t);return r===null?!1:(qs[e]=r,!0)}function Xs(e){return qs[e]}let cd=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function tP(e,t){const r=Xs(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const a=t+".json?icons=";n=r.maxURL-o-r.path.length-a.length}return n}function rP(e){return e===404}const nP=(e,t,r)=>{const n=[],o=tP(e,t),a="icons";let i={type:a,provider:e,prefix:t,icons:[]},s=0;return r.forEach((l,u)=>{s+=l.length+1,s>=o&&u>0&&(n.push(i),i={type:a,provider:e,prefix:t,icons:[]},s=l.length),i.icons.push(l)}),n.push(i),n};function oP(e){if(typeof e=="string"){const t=Xs(e);if(t)return t.path}return"/"}const aP={prepare:nP,send:(e,t,r)=>{if(!cd){r("abort",424);return}let n=oP(t.provider);switch(t.type){case"icons":{const a=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});n+=a+".json?"+l.toString();break}case"custom":{const a=t.uri;n+=a.slice(0,1)==="/"?a.slice(1):a;break}default:r("abort",400);return}let o=503;cd(e+n).then(a=>{const i=a.status;if(i!==200){setTimeout(()=>{r(rP(i)?"abort":"next",i)});return}return o=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?r("abort",a):r("next",o)});return}setTimeout(()=>{r("success",a)})}).catch(()=>{r("next",o)})}};function iP(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,a)=>o.provider!==a.provider?o.provider.localeCompare(a.provider):o.prefix!==a.prefix?o.prefix.localeCompare(a.prefix):o.name.localeCompare(a.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const a=o.provider,i=o.prefix,s=o.name,l=r[a]||(r[a]=Object.create(null)),u=l[i]||(l[i]=jr(a,i));let c;s in u.icons?c=t.loaded:i===""||u.missing.has(s)?c=t.missing:c=t.pending;const f={provider:a,prefix:i,name:s};c.push(f)}),t}function fd(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function sP(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,o=e.prefix;t.forEach(a=>{const i=a.icons,s=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])i.loaded.push({provider:n,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:n,prefix:o,name:u});else return r=!0,!0;return!1}),i.pending.length!==s&&(r||fd([e],a.id),a.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),a.abort))})}))}let lP=0;function uP(e,t,r){const n=lP++,o=fd.bind(null,r,n);if(!t.pending.length)return o;const a={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(a)}),o}function cP(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const a=typeof o=="string"?Oa(o,t,r):o;a&&n.push(a)}),n}var fP={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function dP(e,t,r,n){const o=e.resources.length,a=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let S=e.resources.slice(0);for(i=[];S.length>1;){const j=Math.floor(Math.random()*S.length);i.push(S[j]),S=S.slice(0,j).concat(S.slice(j+1))}i=i.concat(S)}else i=e.resources.slice(a).concat(e.resources.slice(0,a));const s=Date.now();let l="pending",u=0,c,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function m(){f&&(clearTimeout(f),f=null)}function g(){l==="pending"&&(l="aborted"),m(),d.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),d=[]}function v(S,j){j&&(h=[]),typeof S=="function"&&h.push(S)}function w(){return{startTime:s,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:v,abort:g}}function T(){l="failed",h.forEach(S=>{S(void 0,c)})}function k(){d.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),d=[]}function R(S,j,B){const ue=j!=="success";switch(d=d.filter(K=>K!==S),l){case"pending":break;case"failed":if(ue||!e.dataAfterTimeout)return;break;default:return}if(j==="abort"){c=B,T();return}if(ue){c=B,d.length||(i.length?x():T());return}if(m(),k(),!e.random){const K=e.resources.indexOf(S.resource);K!==-1&&K!==e.index&&(e.index=K)}l="completed",h.forEach(K=>{K(B)})}function x(){if(l!=="pending")return;m();const S=i.shift();if(S===void 0){if(d.length){f=setTimeout(()=>{m(),l==="pending"&&(k(),T())},e.timeout);return}T();return}const j={status:"pending",resource:S,callback:(B,ue)=>{R(j,B,ue)}};d.push(j),u++,f=setTimeout(x,e.rotate),r(S,t,j.callback)}return setTimeout(x),w}function dd(e){const t={...fP,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function o(s,l,u){const c=dP(t,s,l,(f,d)=>{n(),u&&u(f,d)});return r.push(c),c}function a(s){return r.find(l=>s(l))||null}return{query:o,find:a,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function pd(){}const Ks=Object.create(null);function pP(e){if(!Ks[e]){const t=Xs(e);if(!t)return;const r=dd(t),n={config:t,redundancy:r};Ks[e]=n}return Ks[e]}function hP(e,t,r){let n,o;if(typeof e=="string"){const a=Gs(e);if(!a)return r(void 0,424),pd;o=a.send;const i=pP(e);i&&(n=i.redundancy)}else{const a=Vs(e);if(a){n=dd(a);const i=e.resources?e.resources[0]:"",s=Gs(i);s&&(o=s.send)}}return!n||!o?(r(void 0,424),pd):n.query(t,o,r)().abort}const hd="iconify2",Oo="iconify",gd=Oo+"-count",vd=Oo+"-version",md=36e5,gP=168;function Qs(e,t){try{return e.getItem(t)}catch{}}function Zs(e,t,r){try{return e.setItem(t,r),!0}catch{}}function bd(e,t){try{e.removeItem(t)}catch{}}function Js(e,t){return Zs(e,gd,t.toString())}function el(e){return parseInt(Qs(e,gd))||0}const Ea={local:!0,session:!0},yd={local:new Set,session:new Set};let tl=!1;function vP(e){tl=e}let $a=typeof window>"u"?{}:window;function xd(e){const t=e+"Storage";try{if($a&&$a[t]&&typeof $a[t].length=="number")return $a[t]}catch{}Ea[e]=!1}function wd(e,t){const r=xd(e);if(!r)return;const n=Qs(r,vd);if(n!==hd){if(n){const s=el(r);for(let l=0;l<s;l++)bd(r,Oo+l.toString())}Zs(r,vd,hd),Js(r,0);return}const o=Math.floor(Date.now()/md)-gP,a=s=>{const l=Oo+s.toString(),u=Qs(r,l);if(typeof u=="string"){try{const c=JSON.parse(u);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>o&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,s))return!0}catch{}bd(r,l)}};let i=el(r);for(let s=i-1;s>=0;s--)a(s)||(s===i-1?(i--,Js(r,i)):yd[e].add(s))}function Od(){if(!tl){vP(!0);for(const e in Ea)wd(e,t=>{const r=t.data,n=t.provider,o=r.prefix,a=jr(n,o);if(!Us(a,r).length)return!1;const i=r.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,i):i,!0})}}function mP(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Ea)wd(n,o=>{const a=o.data;return o.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function bP(e,t){tl||Od();function r(n){let o;if(!Ea[n]||!(o=xd(n)))return;const a=yd[n];let i;if(a.size)a.delete(i=Array.from(a).shift());else if(i=el(o),!Js(o,i+1))return;const s={cached:Math.floor(Date.now()/md),provider:e.provider,data:t};return Zs(o,Oo+i.toString(),JSON.stringify(s))}t.lastModified&&!mP(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Td(){}function yP(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,sP(e)}))}function xP(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,o=e.iconsToLoad;delete e.iconsToLoad;let a;if(!o||!(a=Gs(r)))return;a.prepare(r,n,o).forEach(s=>{hP(r,s,l=>{if(typeof l!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Us(e,l);if(!u.length)return;const c=e.pendingIcons;c&&u.forEach(f=>{c.delete(f)}),bP(e,l)}catch(u){console.error(u)}yP(e)})})}))}const wP=(e,t)=>{const r=cP(e,!0,id()),n=iP(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,Td)}),()=>{l=!1}}const o=Object.create(null),a=[];let i,s;return n.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===s&&u===i)return;i=u,s=c,a.push(jr(u,c));const f=o[u]||(o[u]=Object.create(null));f[c]||(f[c]=[])}),n.pending.forEach(l=>{const{provider:u,prefix:c,name:f}=l,d=jr(u,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[u][c].push(f))}),a.forEach(l=>{const{provider:u,prefix:c}=l;o[u][c].length&&xP(l,o[u][c])}),t?uP(t,n,a):Td};function OP(e,t){const r={...e};for(const n in t){const o=t[n],a=typeof o;n in sd?(o===null||o&&(a==="string"||a==="number"))&&(r[n]=o):a===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const TP=/[\s,]+/;function CP(e,t){t.split(TP).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function SP(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let a=parseFloat(e.slice(0,e.length-r.length));return isNaN(a)?0:(a=a/o,a%1===0?n(a):0)}}return t}function EP(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 $P(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _P(e){return"data:image/svg+xml,"+$P(e)}function PP(e){return'url("'+_P(e)+'")'}let To;function MP(){try{To=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{To=null}}function kP(e){return To===void 0&&MP(),To?To.createHTML(e):e}const Cd={...ld,inline:!1},AP={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},DP={display:"inline-block"},rl={backgroundColor:"currentColor"},Sd={backgroundColor:"transparent"},Ed={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},$d={WebkitMask:rl,mask:rl,background:Sd};for(const e in $d){const t=$d[e];for(const r in Ed)t[e+r]=Ed[r]}const IP={...Cd,inline:!0};function _d(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const jP=(e,t,r,n)=>{const o=r?IP:Cd,a=OP(o,t),i=t.mode||"svg",s={},l=t.style||{},u={...i==="svg"?AP:{},ref:n};for(let w in t){const T=t[w];if(T!==void 0)switch(w){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[w]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&CP(a,T);break;case"color":s.color=T;break;case"rotate":typeof T=="string"?a[w]=SP(T):typeof T=="number"&&(a[w]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete u["aria-hidden"];break;default:o[w]===void 0&&(u[w]=T)}}const c=q_(e,a),f=c.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),i==="svg"){u.style={...s,...l},Object.assign(u,f);let w=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),u.dangerouslySetInnerHTML={__html:kP(Z_(c.body,T?()=>T+"ID"+w++:"iconifyReact"))},p.createElement("svg",u)}const{body:d,width:h,height:m}=e,g=i==="mask"||(i==="bg"?!1:d.indexOf("currentColor")!==-1),v=EP(d,{...f,width:h+"",height:m+""});return u.style={...s,"--svg":PP(v),width:_d(f.width),height:_d(f.height),...DP,...g?rl:Sd,...l},p.createElement("span",u)};if(id(!0),J_("",aP),typeof document<"u"&&typeof window<"u"){Od();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"||!U_(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 o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;eP(r,o)||console.error(n)}catch{console.error(n)}}}}class Pd extends p.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 o;if(typeof n!="string"||(o=Oa(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const a=H_(o);if(!a){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),a!==null&&(this._loading={name:n,abort:wP([o],this._checkIcon.bind(this,!1))}));return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const i=["iconify"];o.prefix!==""&&i.push("iconify--"+o.prefix),o.provider!==""&&i.push("iconify--"+o.provider),this._setData({data:a,classes:i}),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:p.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),jP({...Ws,...r.data},n,t._inline,t._ref)}}const LP=p.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return p.createElement(Pd,n)});p.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return p.createElement(Pd,n)});const ar=p.forwardRef(({icon:e,width:t=20,sx:r,...n},o)=>y.jsx(W.Box,{ref:o,component:LP,icon:e,sx:{width:t,height:t,...r},...n}));ar.displayName="Iconify";const Md=({value:e,onChangeColor:t,...r})=>{const[n,o]=p.useState(null),a=s=>{o(s.currentTarget)},i=()=>o(null);return y.jsxs(y.Fragment,{children:[y.jsx(W.TextField,{...r,value:e,onChange:s=>t(s.target.value),InputProps:{inputProps:{...r.inputProps,maxLength:7},startAdornment:y.jsx(W.InputAdornment,{position:"start",sx:{ml:2},children:y.jsx(W.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:a,children:y.jsx(ar,{icon:"bi:square-fill",color:e,width:25,height:23})})})}}),y.jsx(W.Popover,{open:!!n,anchorEl:n,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:y.jsx(l_,{color:e,onChange:s=>t(s.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}}})})]})},NP=({name:e,rules:t,helperText:r,...n})=>{const{control:o}=_t.useFormContext();return y.jsx(_t.Controller,{name:e,control:o,rules:t,render:({field:{ref:a,onChange:i,...s},fieldState:{error:l}})=>y.jsx(Md,{...s,onChangeColor:i,inputRef:a,fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||r,...n})})};function be(){return be=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},be.apply(this,arguments)}function Me(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ir(e){"@babel/helpers - typeof";return ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(e)}function N(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function F(e){N(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ir(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function nl(e,t){N(2,arguments);var r=F(e),n=Me(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function _a(e,t){N(2,arguments);var r=F(e).getTime(),n=Me(t);return new Date(r+n)}function FP(e,t){N(2,arguments);var r=Me(t);return _a(e,r*1e3)}var RP=6e4;function BP(e,t){N(2,arguments);var r=Me(t);return _a(e,r*RP)}var WP=36e5;function HP(e,t){N(2,arguments);var r=Me(t);return _a(e,r*WP)}function zP(e,t){N(2,arguments);var r=Me(t),n=r*7;return nl(e,n)}function Pa(e,t){N(2,arguments);var r=F(e),n=Me(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function kd(e,t){N(2,arguments);var r=Me(t);return Pa(e,r*12)}function UP(e,t){N(2,arguments);var r=F(e),n=F(t);return r.getFullYear()-n.getFullYear()}function vn(e,t){N(2,arguments);var r=F(e),n=F(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function YP(e,t){N(2,arguments);var r=F(e),n=F(t),o=vn(r,n),a=Math.abs(UP(r,n));r.setFullYear(1584),n.setFullYear(1584);var i=vn(r,n)===-o,s=o*(a-Number(i));return s===0?0:s}function GP(e,t){N(2,arguments);var r=F(e),n=F(t),o=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return o*12+a}function ol(e){N(1,arguments);var t=F(e);return t.setHours(23,59,59,999),t}function al(e){N(1,arguments);var t=F(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function VP(e){N(1,arguments);var t=F(e);return ol(t).getTime()===al(t).getTime()}function il(e,t){N(2,arguments);var r=F(e),n=F(t),o=vn(r,n),a=Math.abs(GP(r,n)),i;if(a<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=vn(r,n)===-o;VP(F(e))&&a===1&&vn(e,n)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}var Ad={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},qP="trunc";function Co(e){return e?Ad[e]:Ad[qP]}function XP(e,t,r){N(2,arguments);var n=il(e,t)/3;return Co(r==null?void 0:r.roundingMethod)(n)}function mn(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 bn(e){N(1,arguments);var t=F(e);return t.setHours(0,0,0,0),t}var KP=864e5;function QP(e,t){N(2,arguments);var r=bn(e),n=bn(t),o=r.getTime()-mn(r),a=n.getTime()-mn(n);return Math.round((o-a)/KP)}function Dd(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 Id(e,t){N(2,arguments);var r=F(e),n=F(t),o=Dd(r,n),a=Math.abs(QP(r,n));r.setDate(r.getDate()-o*a);var i=+(Dd(r,n)===-o),s=o*(a-i);return s===0?0:s}function ZP(e,t,r){N(2,arguments);var n=Id(e,t)/7;return Co(r==null?void 0:r.roundingMethod)(n)}var Ma=6e4,ka=36e5,JP=1e3;function Aa(e,t){return N(2,arguments),F(e).getTime()-F(t).getTime()}function eM(e,t,r){N(2,arguments);var n=Aa(e,t)/ka;return Co(r==null?void 0:r.roundingMethod)(n)}function tM(e,t,r){N(2,arguments);var n=Aa(e,t)/Ma;return Co(r==null?void 0:r.roundingMethod)(n)}function jd(e,t,r){N(2,arguments);var n=Aa(e,t)/1e3;return Co(r==null?void 0:r.roundingMethod)(n)}function rM(e,t){var r;N(1,arguments);var n=e||{},o=F(n.start),a=F(n.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],l=o;l.setHours(0,0,0,0);var u=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=i;)s.push(F(l)),l.setDate(l.getDate()+u),l.setHours(0,0,0,0);return s}var nM={};function zt(){return nM}function sl(e,t){var r,n,o,a,i,s,l,u;N(1,arguments);var c=zt(),f=Me((r=(n=(o=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.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=F(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 ll(e){N(1,arguments);var t=F(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function oM(e){return N(1,arguments),e instanceof Date||ir(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ld(e){if(N(1,arguments),!oM(e)&&typeof e!="number")return!1;var t=F(e);return!isNaN(Number(t))}function Nd(e,t){N(2,arguments);var r=Me(t);return _a(e,-r)}var aM=864e5;function iM(e){N(1,arguments);var t=F(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/aM)+1}function yn(e){N(1,arguments);var t=1,r=F(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function Fd(e){N(1,arguments);var t=F(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=yn(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var i=yn(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function sM(e){N(1,arguments);var t=Fd(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=yn(r);return n}var lM=6048e5;function Rd(e){N(1,arguments);var t=F(e),r=yn(t).getTime()-sM(t).getTime();return Math.round(r/lM)+1}function Lr(e,t){var r,n,o,a,i,s,l,u;N(1,arguments);var c=zt(),f=Me((r=(n=(o=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.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=F(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 ul(e,t){var r,n,o,a,i,s,l,u;N(1,arguments);var c=F(e),f=c.getUTCFullYear(),d=zt(),h=Me((r=(n=(o=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.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 g=Lr(m,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var w=Lr(v,t);return c.getTime()>=g.getTime()?f+1:c.getTime()>=w.getTime()?f:f-1}function uM(e,t){var r,n,o,a,i,s,l,u;N(1,arguments);var c=zt(),f=Me((r=(n=(o=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=ul(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var m=Lr(h,t);return m}var cM=6048e5;function Bd(e,t){N(1,arguments);var r=F(e),n=Lr(r,t).getTime()-uM(r,t).getTime();return Math.round(n/cM)+1}function Te(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var fM={y:function(t,r){var n=t.getUTCFullYear(),o=n>0?n:1-n;return Te(r==="yy"?o%100:o,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Te(n+1,2)},d:function(t,r){return Te(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Te(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Te(t.getUTCHours(),r.length)},m:function(t,r){return Te(t.getUTCMinutes(),r.length)},s:function(t,r){return Te(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,o=t.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,n-3));return Te(a,r.length)}};const vr=fM;var xn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dM={G:function(t,r,n){var o=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var o=t.getUTCFullYear(),a=o>0?o:1-o;return n.ordinalNumber(a,{unit:"year"})}return vr.y(t,r)},Y:function(t,r,n,o){var a=ul(t,o),i=a>0?a:1-a;if(r==="YY"){var s=i%100;return Te(s,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):Te(i,r.length)},R:function(t,r){var n=Fd(t);return Te(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Te(n,r.length)},Q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(o);case"QQ":return Te(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(o);case"qq":return Te(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,r,n){var o=t.getUTCMonth();switch(r){case"M":case"MM":return vr.M(t,r);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(t,r,n){var o=t.getUTCMonth();switch(r){case"L":return String(o+1);case"LL":return Te(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(t,r,n,o){var a=Bd(t,o);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):Te(a,r.length)},I:function(t,r,n){var o=Rd(t);return r==="Io"?n.ordinalNumber(o,{unit:"week"}):Te(o,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):vr.d(t,r)},D:function(t,r,n){var o=iM(t);return r==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):Te(o,r.length)},E:function(t,r,n){var o=t.getUTCDay();switch(r){case"E":case"EE":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"})}},e:function(t,r,n,o){var a=t.getUTCDay(),i=(a-o.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return Te(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,r,n,o){var a=t.getUTCDay(),i=(a-o.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return Te(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,r,n){var o=t.getUTCDay(),a=o===0?7:o;switch(r){case"i":return String(a);case"ii":return Te(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(t,r,n){var o=t.getUTCHours(),a=o/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,r,n){var o=t.getUTCHours(),a;switch(o===12?a=xn.noon:o===0?a=xn.midnight:a=o/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,r,n){var o=t.getUTCHours(),a;switch(o>=17?a=xn.evening:o>=12?a=xn.afternoon:o>=4?a=xn.morning:a=xn.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return vr.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):vr.H(t,r)},K:function(t,r,n){var o=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(o,{unit:"hour"}):Te(o,r.length)},k:function(t,r,n){var o=t.getUTCHours();return o===0&&(o=24),r==="ko"?n.ordinalNumber(o,{unit:"hour"}):Te(o,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):vr.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):vr.s(t,r)},S:function(t,r){return vr.S(t,r)},X:function(t,r,n,o){var a=o._originalDate||t,i=a.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return Hd(i);case"XXXX":case"XX":return Nr(i);case"XXXXX":case"XXX":default:return Nr(i,":")}},x:function(t,r,n,o){var a=o._originalDate||t,i=a.getTimezoneOffset();switch(r){case"x":return Hd(i);case"xxxx":case"xx":return Nr(i);case"xxxxx":case"xxx":default:return Nr(i,":")}},O:function(t,r,n,o){var a=o._originalDate||t,i=a.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Wd(i,":");case"OOOO":default:return"GMT"+Nr(i,":")}},z:function(t,r,n,o){var a=o._originalDate||t,i=a.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Wd(i,":");case"zzzz":default:return"GMT"+Nr(i,":")}},t:function(t,r,n,o){var a=o._originalDate||t,i=Math.floor(a.getTime()/1e3);return Te(i,r.length)},T:function(t,r,n,o){var a=o._originalDate||t,i=a.getTime();return Te(i,r.length)}};function Wd(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),a=n%60;if(a===0)return r+String(o);var i=t||"";return r+String(o)+i+Te(a,2)}function Hd(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Te(Math.abs(e)/60,2)}return Nr(e,t)}function Nr(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e),a=Te(Math.floor(o/60),2),i=Te(o%60,2);return n+a+r+i}const pM=dM;var zd=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"})}},Ud=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"})}},hM=function(t,r){var n=t.match(/(P+)(p+)?/)||[],o=n[1],a=n[2];if(!a)return zd(t,r);var i;switch(o){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",zd(o,r)).replace("{{time}}",Ud(a,r))},gM={p:Ud,P:hM};const cl=gM;var vM=["D","DD"],mM=["YY","YYYY"];function Yd(e){return vM.indexOf(e)!==-1}function Gd(e){return mM.indexOf(e)!==-1}function Da(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 bM={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"}},yM=function(t,r,n){var o,a=bM[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const xM=yM;function wn(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 wM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},OM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},TM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},CM={date:wn({formats:wM,defaultWidth:"full"}),time:wn({formats:OM,defaultWidth:"full"}),dateTime:wn({formats:TM,defaultWidth:"full"})};const SM=CM;var EM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$M=function(t,r,n,o){return EM[t]};const _M=$M;function Vt(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):a;o=e.formattingValues[i]||e.formattingValues[a]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}var PM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kM={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"]},AM={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"]},DM={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"}},IM={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"}},jM=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},LM={ordinalNumber:jM,era:Vt({values:PM,defaultWidth:"wide"}),quarter:Vt({values:MM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Vt({values:kM,defaultWidth:"wide"}),day:Vt({values:AM,defaultWidth:"wide"}),dayPeriod:Vt({values:DM,defaultWidth:"wide",formattingValues:IM,defaultFormattingWidth:"wide"})};const NM=LM;function qt(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?RM(s,function(f){return f.test(i)}):FM(s,function(f){return f.test(i)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=t.slice(i.length);return{value:u,rest:c}}}function FM(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function RM(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Vd(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 o=n[0],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];i=r.valueCallback?r.valueCallback(i):i;var s=t.slice(o.length);return{value:i,rest:s}}}var BM=/^(\d+)(th|st|nd|rd)?/i,WM=/\d+/i,HM={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},zM={any:[/^b/i,/^(a|c)/i]},UM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YM={any:[/1/i,/2/i,/3/i,/4/i]},GM={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},VM={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]},qM={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},XM={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]},KM={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},QM={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}},ZM={ordinalNumber:Vd({matchPattern:BM,parsePattern:WM,valueCallback:function(t){return parseInt(t,10)}}),era:qt({matchPatterns:HM,defaultMatchWidth:"wide",parsePatterns:zM,defaultParseWidth:"any"}),quarter:qt({matchPatterns:UM,defaultMatchWidth:"wide",parsePatterns:YM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:qt({matchPatterns:GM,defaultMatchWidth:"wide",parsePatterns:VM,defaultParseWidth:"any"}),day:qt({matchPatterns:qM,defaultMatchWidth:"wide",parsePatterns:XM,defaultParseWidth:"any"}),dayPeriod:qt({matchPatterns:KM,defaultMatchWidth:"any",parsePatterns:QM,defaultParseWidth:"any"})},JM={code:"en-US",formatDistance:xM,formatLong:SM,formatRelative:_M,localize:NM,match:ZM,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ia=JM;var e6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,t6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r6=/^'([^]*?)'?$/,n6=/''/g,o6=/[a-zA-Z]/;function fl(e,t,r){var n,o,a,i,s,l,u,c,f,d,h,m,g,v,w,T,k,R;N(2,arguments);var x=String(t),S=zt(),j=(n=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:S.locale)!==null&&n!==void 0?n:Ia,B=Me((a=(i=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(u=r.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:S.firstWeekContainsDate)!==null&&i!==void 0?i:(f=S.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ue=Me((h=(m=(g=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(w=r.locale)===null||w===void 0||(T=w.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&g!==void 0?g:S.weekStartsOn)!==null&&m!==void 0?m:(k=S.locale)===null||k===void 0||(R=k.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ue>=0&&ue<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!j.localize)throw new RangeError("locale must contain localize property");if(!j.formatLong)throw new RangeError("locale must contain formatLong property");var K=F(e);if(!Ld(K))throw new RangeError("Invalid time value");var pe=mn(K),Oe=Nd(K,pe),ye={firstWeekContainsDate:B,weekStartsOn:ue,locale:j,_originalDate:K},xe=x.match(t6).map(function(ce){var he=ce[0];if(he==="p"||he==="P"){var De=cl[he];return De(ce,j.formatLong)}return ce}).join("").match(e6).map(function(ce){if(ce==="''")return"'";var he=ce[0];if(he==="'")return a6(ce);var De=pM[he];if(De)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Gd(ce)&&Da(ce,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Yd(ce)&&Da(ce,t,String(e)),De(Oe,ce,j.localize,ye);if(he.match(o6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+he+"`");return ce}).join("");return xe}function a6(e){var t=e.match(r6);return t?t[1].replace(n6,"'"):e}function i6(e){N(1,arguments);var t=F(e),r=t.getDate();return r}function qd(e){N(1,arguments);var t=F(e),r=t.getFullYear(),n=t.getMonth(),o=new Date(0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function s6(e){N(1,arguments);var t=F(e),r=t.getHours();return r}function l6(e){N(1,arguments);var t=F(e),r=t.getMinutes();return r}function u6(e){N(1,arguments);var t=F(e),r=t.getMonth();return r}function c6(e){N(1,arguments);var t=F(e),r=t.getSeconds();return r}function f6(e){N(1,arguments);var t=F(e),r=t.getMilliseconds();return r}function Fr(e,t){var r,n,o,a,i,s,l,u;N(1,arguments);var c=zt(),f=Me((r=(n=(o=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.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=F(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 d6(e,t){var r,n,o,a,i,s,l,u;N(1,arguments);var c=F(e),f=c.getFullYear(),d=zt(),h=Me((r=(n=(o=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.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 g=Fr(m,t),v=new Date(0);v.setFullYear(f,0,h),v.setHours(0,0,0,0);var w=Fr(v,t);return c.getTime()>=g.getTime()?f+1:c.getTime()>=w.getTime()?f:f-1}function p6(e,t){var r,n,o,a,i,s,l,u;N(1,arguments);var c=zt(),f=Me((r=(n=(o=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=d6(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var m=Fr(h,t);return m}var h6=6048e5;function g6(e,t){N(1,arguments);var r=F(e),n=Fr(r,t).getTime()-p6(r,t).getTime();return Math.round(n/h6)+1}function v6(e){return N(1,arguments),F(e).getFullYear()}function dl(e,t){N(2,arguments);var r=F(e),n=F(t);return r.getTime()>n.getTime()}function So(e,t){N(2,arguments);var r=F(e),n=F(t);return r.getTime()<n.getTime()}function m6(e,t){N(2,arguments);var r=F(e),n=F(t);return r.getTime()===n.getTime()}function b6(e,t){N(2,arguments);var r=bn(e),n=bn(t);return r.getTime()===n.getTime()}function y6(e,t){N(2,arguments);var r=F(e),n=F(t);return r.getFullYear()===n.getFullYear()}function x6(e,t){N(2,arguments);var r=F(e),n=F(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Xd(e){N(1,arguments);var t=F(e);return t.setMinutes(0,0,0),t}function w6(e,t){N(2,arguments);var r=Xd(e),n=Xd(t);return r.getTime()===n.getTime()}function Kd(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 O6(e,t){if(e){if(typeof e=="string")return Kd(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 Kd(e,t)}}function Qd(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=O6(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
73
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return a=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function pl(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 V(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hl(e,t){return hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},hl(e,t)}function ke(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&&hl(e,t)}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function T6(){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 C6(e,t){if(t&&(ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function Ae(e){var t=T6();return function(){var n=ja(e),o;if(t){var a=ja(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return C6(this,o)}}function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S6(e,t){if(ir(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ir(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zd(e){var t=S6(e,"string");return ir(t)==="symbol"?t:String(t)}function Jd(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,Zd(n.key),n)}}function $e(e,t,r){return t&&Jd(e.prototype,t),r&&Jd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function U(e,t,r){return t=Zd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E6=10,ep=function(){function e(){Ee(this,e),U(this,"priority",void 0),U(this,"subPriority",0)}return $e(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),$6=function(e){ke(r,e);var t=Ae(r);function r(n,o,a,i,s){var l;return Ee(this,r),l=t.call(this),l.value=n,l.validateValue=o,l.setValue=a,l.priority=i,s&&(l.subPriority=s),l}return $e(r,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,i){return this.setValue(o,a,this.value,i)}}]),r}(ep),_6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",E6),U(V(n),"subPriority",-1),n}return $e(r,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}}]),r}(ep),Ie=function(){function e(){Ee(this,e),U(this,"incompatibleTokens",void 0),U(this,"priority",void 0),U(this,"subPriority",void 0)}return $e(e,[{key:"run",value:function(r,n,o,a){var i=this.parse(r,n,o,a);return i?{setter:new $6(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(r,n,o){return!0}}]),e}(),P6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",140),U(V(n),"incompatibleTokens",["R","u","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"});case"GGGGG":return i.era(o,{width:"narrow"});case"GGGG":default:return i.era(o,{width:"wide"})||i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,i){return a.era=i,o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),ut={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}/},Xt={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 ct(e,t){return e&&{value:t(e.value),rest:e.rest}}function nt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Kt(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,o=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:n*(o*ka+a*Ma+i*JP),rest:t.slice(r[0].length)}}function tp(e){return nt(ut.anyDigitsSigned,e)}function at(e,t){switch(e){case 1:return nt(ut.singleDigit,t);case 2:return nt(ut.twoDigits,t);case 3:return nt(ut.threeDigits,t);case 4:return nt(ut.fourDigits,t);default:return nt(new RegExp("^\\d{1,"+e+"}"),t)}}function La(e,t){switch(e){case 1:return nt(ut.singleDigitSigned,t);case 2:return nt(ut.twoDigitsSigned,t);case 3:return nt(ut.threeDigitsSigned,t);case 4:return nt(ut.fourDigitsSigned,t);default:return nt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function gl(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 rp(e,t){var r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{var a=n+50,i=Math.floor(a/100)*100,s=e>=a%100;o=e+i-(s?100:0)}return r?o:1-o}function np(e){return e%400===0||e%4===0&&e%100!==0}var M6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",130),U(V(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){var s=function(u){return{year:u,isTwoDigitYear:a==="yy"}};switch(a){case"y":return ct(at(4,o),s);case"yo":return ct(i.ordinalNumber(o,{unit:"year"}),s);default:return ct(at(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i){var s=o.getUTCFullYear();if(i.isTwoDigitYear){var l=rp(i.year,s);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var u=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(u,0,1),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),k6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",130),U(V(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){var s=function(u){return{year:u,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return ct(at(4,o),s);case"Yo":return ct(i.ordinalNumber(o,{unit:"year"}),s);default:return ct(at(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i,s){var l=ul(o,s);if(i.isTwoDigitYear){var u=rp(i.year,l);return o.setUTCFullYear(u,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Lr(o,s)}var c=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(c,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Lr(o,s)}}]),r}(Ie),A6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",130),U(V(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a){return La(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),yn(s)}}]),r}(Ie),D6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",130),U(V(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a){return La(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,i){return o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),I6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",120),U(V(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"Q":case"QQ":return at(a.length,o);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(o,{width:"wide",context:"formatting"})||i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),j6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",120),U(V(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"q":case"qq":return at(a.length,o);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(o,{width:"wide",context:"standalone"})||i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),L6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),U(V(n),"priority",110),n}return $e(r,[{key:"parse",value:function(o,a,i){var s=function(u){return u-1};switch(a){case"M":return ct(nt(ut.month,o),s);case"MM":return ct(at(2,o),s);case"Mo":return ct(i.ordinalNumber(o,{unit:"month"}),s);case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(o,{width:"wide",context:"formatting"})||i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),N6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",110),U(V(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){var s=function(u){return u-1};switch(a){case"L":return ct(nt(ut.month,o),s);case"LL":return ct(at(2,o),s);case"Lo":return ct(i.ordinalNumber(o,{unit:"month"}),s);case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(o,{width:"wide",context:"standalone"})||i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),r}(Ie);function F6(e,t,r){N(2,arguments);var n=F(e),o=Me(t),a=Bd(n,r)-o;return n.setUTCDate(n.getUTCDate()-a*7),n}var R6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",100),U(V(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"w":return nt(ut.week,o);case"wo":return i.ordinalNumber(o,{unit:"week"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i,s){return Lr(F6(o,i,s),s)}}]),r}(Ie);function B6(e,t){N(2,arguments);var r=F(e),n=Me(t),o=Rd(r)-n;return r.setUTCDate(r.getUTCDate()-o*7),r}var W6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",100),U(V(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"I":return nt(ut.week,o);case"Io":return i.ordinalNumber(o,{unit:"week"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i){return yn(B6(o,i))}}]),r}(Ie),H6=[31,28,31,30,31,30,31,31,30,31,30,31],z6=[31,29,31,30,31,30,31,31,30,31,30,31],U6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",90),U(V(n),"subPriority",1),U(V(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"d":return nt(ut.date,o);case"do":return i.ordinalNumber(o,{unit:"date"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),s=np(i),l=o.getUTCMonth();return s?a>=1&&a<=z6[l]:a>=1&&a<=H6[l]}},{key:"set",value:function(o,a,i){return o.setUTCDate(i),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),Y6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",90),U(V(n),"subpriority",1),U(V(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"D":case"DD":return nt(ut.dayOfYear,o);case"Do":return i.ordinalNumber(o,{unit:"date"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),s=np(i);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,i){return o.setUTCMonth(0,i),o.setUTCHours(0,0,0,0),o}}]),r}(Ie);function vl(e,t,r){var n,o,a,i,s,l,u,c;N(2,arguments);var f=zt(),d=Me((n=(o=(a=(i=r==null?void 0:r.weekStartsOn)!==null&&i!==void 0?i:r==null||(s=r.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&o!==void 0?o:(u=f.locale)===null||u===void 0||(c=u.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=F(e),m=Me(t),g=h.getUTCDay(),v=m%7,w=(v+7)%7,T=(w<d?7:0)+m-g;return h.setUTCDate(h.getUTCDate()+T),h}var G6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",90),U(V(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=vl(o,i,s),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),V6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",90),U(V(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i,s){var l=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(a){case"e":case"ee":return ct(at(a.length,o),l);case"eo":return ct(i.ordinalNumber(o,{unit:"day"}),l);case"eee":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=vl(o,i,s),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),q6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",90),U(V(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i,s){var l=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(a){case"c":case"cc":return ct(at(a.length,o),l);case"co":return ct(i.ordinalNumber(o,{unit:"day"}),l);case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})||i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=vl(o,i,s),o.setUTCHours(0,0,0,0),o}}]),r}(Ie);function X6(e,t){N(2,arguments);var r=Me(t);r%7===0&&(r=r-7);var n=1,o=F(e),a=o.getUTCDay(),i=r%7,s=(i+7)%7,l=(s<n?7:0)+r-a;return o.setUTCDate(o.getUTCDate()+l),o}var K6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",90),U(V(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){var s=function(u){return u===0?7:u};switch(a){case"i":case"ii":return at(a.length,o);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return ct(i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return ct(i.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ct(i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return ct(i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,i){return o=X6(o,i),o.setUTCHours(0,0,0,0),o}}]),r}(Ie),Q6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",80),U(V(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"a":case"aa":case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(gl(i),0,0,0),o}}]),r}(Ie),Z6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",80),U(V(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"b":case"bb":case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(gl(i),0,0,0),o}}]),r}(Ie),J6=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",80),U(V(n),"incompatibleTokens",["a","b","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(gl(i),0,0,0),o}}]),r}(Ie),ek=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",70),U(V(n),"incompatibleTokens",["H","K","k","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"h":return nt(ut.hour12h,o);case"ho":return i.ordinalNumber(o,{unit:"hour"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,i){var s=o.getUTCHours()>=12;return s&&i<12?o.setUTCHours(i+12,0,0,0):!s&&i===12?o.setUTCHours(0,0,0,0):o.setUTCHours(i,0,0,0),o}}]),r}(Ie),tk=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",70),U(V(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"H":return nt(ut.hour23h,o);case"Ho":return i.ordinalNumber(o,{unit:"hour"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,i){return o.setUTCHours(i,0,0,0),o}}]),r}(Ie),rk=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",70),U(V(n),"incompatibleTokens",["h","H","k","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"K":return nt(ut.hour11h,o);case"Ko":return i.ordinalNumber(o,{unit:"hour"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){var s=o.getUTCHours()>=12;return s&&i<12?o.setUTCHours(i+12,0,0,0):o.setUTCHours(i,0,0,0),o}}]),r}(Ie),nk=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",70),U(V(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"k":return nt(ut.hour24h,o);case"ko":return i.ordinalNumber(o,{unit:"hour"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,i){var s=i<=24?i%24:i;return o.setUTCHours(s,0,0,0),o}}]),r}(Ie),ok=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",60),U(V(n),"incompatibleTokens",["t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"m":return nt(ut.minute,o);case"mo":return i.ordinalNumber(o,{unit:"minute"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCMinutes(i,0,0),o}}]),r}(Ie),ak=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",50),U(V(n),"incompatibleTokens",["t","T"]),n}return $e(r,[{key:"parse",value:function(o,a,i){switch(a){case"s":return nt(ut.second,o);case"so":return i.ordinalNumber(o,{unit:"second"});default:return at(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCSeconds(i,0),o}}]),r}(Ie),ik=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",30),U(V(n),"incompatibleTokens",["t","T"]),n}return $e(r,[{key:"parse",value:function(o,a){var i=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return ct(at(a.length,o),i)}},{key:"set",value:function(o,a,i){return o.setUTCMilliseconds(i),o}}]),r}(Ie),sk=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",10),U(V(n),"incompatibleTokens",["t","T","x"]),n}return $e(r,[{key:"parse",value:function(o,a){switch(a){case"X":return Kt(Xt.basicOptionalMinutes,o);case"XX":return Kt(Xt.basic,o);case"XXXX":return Kt(Xt.basicOptionalSeconds,o);case"XXXXX":return Kt(Xt.extendedOptionalSeconds,o);case"XXX":default:return Kt(Xt.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),r}(Ie),lk=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",10),U(V(n),"incompatibleTokens",["t","T","X"]),n}return $e(r,[{key:"parse",value:function(o,a){switch(a){case"x":return Kt(Xt.basicOptionalMinutes,o);case"xx":return Kt(Xt.basic,o);case"xxxx":return Kt(Xt.basicOptionalSeconds,o);case"xxxxx":return Kt(Xt.extendedOptionalSeconds,o);case"xxx":default:return Kt(Xt.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),r}(Ie),uk=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",40),U(V(n),"incompatibleTokens","*"),n}return $e(r,[{key:"parse",value:function(o){return tp(o)}},{key:"set",value:function(o,a,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),r}(Ie),ck=function(e){ke(r,e);var t=Ae(r);function r(){var n;Ee(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),U(V(n),"priority",20),U(V(n),"incompatibleTokens","*"),n}return $e(r,[{key:"parse",value:function(o){return tp(o)}},{key:"set",value:function(o,a,i){return[new Date(i),{timestampIsSet:!0}]}}]),r}(Ie),fk={G:new P6,y:new M6,Y:new k6,R:new A6,u:new D6,Q:new I6,q:new j6,M:new L6,L:new N6,w:new R6,I:new W6,d:new U6,D:new Y6,E:new G6,e:new V6,c:new q6,i:new K6,a:new Q6,b:new Z6,B:new J6,h:new ek,H:new tk,K:new rk,k:new nk,m:new ok,s:new ak,S:new ik,X:new sk,x:new lk,t:new uk,T:new ck},dk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hk=/^'([^]*?)'?$/,gk=/''/g,vk=/\S/,mk=/[a-zA-Z]/;function bk(e,t,r,n){var o,a,i,s,l,u,c,f,d,h,m,g,v,w,T,k,R,x;N(3,arguments);var S=String(e),j=String(t),B=zt(),ue=(o=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:B.locale)!==null&&o!==void 0?o:Ia;if(!ue.match)throw new RangeError("locale must contain match property");var K=Me((i=(s=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:B.firstWeekContainsDate)!==null&&s!==void 0?s:(d=B.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(K>=1&&K<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pe=Me((m=(g=(v=(w=n==null?void 0:n.weekStartsOn)!==null&&w!==void 0?w:n==null||(T=n.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&v!==void 0?v:B.weekStartsOn)!==null&&g!==void 0?g:(R=B.locale)===null||R===void 0||(x=R.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&m!==void 0?m:0);if(!(pe>=0&&pe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(j==="")return S===""?F(r):new Date(NaN);var Oe={firstWeekContainsDate:K,weekStartsOn:pe,locale:ue},ye=[new _6],xe=j.match(pk).map(function(Y){var q=Y[0];if(q in cl){var ae=cl[q];return ae(Y,ue.formatLong)}return Y}).join("").match(dk),ce=[],he=Qd(xe),De;try{var Ke=function(){var q=De.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&Gd(q)&&Da(q,j,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Yd(q)&&Da(q,j,e);var ae=q[0],me=fk[ae];if(me){var I=me.incompatibleTokens;if(Array.isArray(I)){var Ye=ce.find(function(ft){return I.includes(ft.token)||ft.token===ae});if(Ye)throw new RangeError("The format string mustn't contain `".concat(Ye.fullToken,"` and `").concat(q,"` at the same time"))}else if(me.incompatibleTokens==="*"&&ce.length>0)throw new RangeError("The format string mustn't contain `".concat(q,"` and any other token at the same time"));ce.push({token:ae,fullToken:q});var Z=me.run(S,q,ue.match,Oe);if(!Z)return{v:new Date(NaN)};ye.push(Z.setter),S=Z.rest}else{if(ae.match(mk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ae+"`");if(q==="''"?q="'":ae==="'"&&(q=yk(q)),S.indexOf(q)===0)S=S.slice(q.length);else return{v:new Date(NaN)}}};for(he.s();!(De=he.n()).done;){var rt=Ke();if(ir(rt)==="object")return rt.v}}catch(Y){he.e(Y)}finally{he.f()}if(S.length>0&&vk.test(S))return new Date(NaN);var E=ye.map(function(Y){return Y.priority}).sort(function(Y,q){return q-Y}).filter(function(Y,q,ae){return ae.indexOf(Y)===q}).map(function(Y){return ye.filter(function(q){return q.priority===Y}).sort(function(q,ae){return ae.subPriority-q.subPriority})}).map(function(Y){return Y[0]}),L=F(r);if(isNaN(L.getTime()))return new Date(NaN);var J=Nd(L,mn(L)),ee={},G=Qd(E),ie;try{for(G.s();!(ie=G.n()).done;){var se=ie.value;if(!se.validate(J,Oe))return new Date(NaN);var le=se.set(J,ee,Oe);Array.isArray(le)?(J=le[0],pl(ee,le[1])):J=le}}catch(Y){G.e(Y)}finally{G.f()}return J}function yk(e){return e.match(hk)[1].replace(gk,"'")}function xk(e,t){N(2,arguments);var r=F(e),n=Me(t);return r.setDate(n),r}function wk(e,t){N(2,arguments);var r=F(e),n=Me(t);return r.setHours(n),r}function Ok(e,t){N(2,arguments);var r=F(e),n=Me(t);return r.setMinutes(n),r}function Tk(e,t){N(2,arguments);var r=F(e),n=Me(t),o=r.getFullYear(),a=r.getDate(),i=new Date(0);i.setFullYear(o,n,15),i.setHours(0,0,0,0);var s=qd(i);return r.setMonth(n,Math.min(a,s)),r}function Ck(e,t){N(2,arguments);var r=F(e),n=Me(t);return r.setSeconds(n),r}function Sk(e,t){N(2,arguments);var r=F(e),n=Me(t);return r.setMilliseconds(n),r}function Ek(e,t){N(2,arguments);var r=F(e),n=Me(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function op(e){N(1,arguments);var t=F(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Na(e){N(1,arguments);var t=F(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function $k(e,t){var r;N(1,arguments);var n=Me((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 o=kk(e),a;if(o.date){var i=Ak(o.date,n);a=Dk(i.restDateString,i.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),l=0,u;if(o.time&&(l=Ik(o.time),isNaN(l)))return new Date(NaN);if(o.timezone){if(u=jk(o.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),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+l+u)}var Fa={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},_k=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pk=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Mk=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kk(e){var t={},r=e.split(Fa.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Fa.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Fa.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var o=Fa.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function Ak(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 o=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?o:a*100,restDateString:e.slice((n[1]||n[2]).length)}}function Dk(e,t){if(t===null)return new Date(NaN);var r=e.match(_k);if(!r)return new Date(NaN);var n=!!r[4],o=Eo(r[1]),a=Eo(r[2])-1,i=Eo(r[3]),s=Eo(r[4]),l=Eo(r[5])-1;if(n)return Bk(t,s,l)?Lk(t,s,l):new Date(NaN);var u=new Date(0);return!Fk(t,a,i)||!Rk(t,o)?new Date(NaN):(u.setUTCFullYear(t,a,Math.max(o,i)),u)}function Eo(e){return e?parseInt(e):1}function Ik(e){var t=e.match(Pk);if(!t)return NaN;var r=ml(t[1]),n=ml(t[2]),o=ml(t[3]);return Wk(r,n,o)?r*ka+n*Ma+o*1e3:NaN}function ml(e){return e&&parseFloat(e.replace(",","."))||0}function jk(e){if(e==="Z")return 0;var t=e.match(Mk);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Hk(n,o)?r*(n*ka+o*Ma):NaN}function Lk(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,a=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+a),n}var Nk=[31,null,31,30,31,30,31,31,30,31,30,31];function ap(e){return e%400===0||e%4===0&&e%100!==0}function Fk(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Nk[t]||(ap(e)?29:28))}function Rk(e,t){return t>=1&&t<=(ap(e)?366:365)}function Bk(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function Wk(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function Hk(e,t){return t>=0&&t<=59}function zk(e,t){var r,n;N(1,arguments);var o=F(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),i=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",u=a==="extended"?"-":"",c=a==="extended"?":":"";if(i!=="time"){var f=Te(o.getDate(),2),d=Te(o.getMonth()+1,2),h=Te(o.getFullYear(),4);s="".concat(h).concat(u).concat(d).concat(u).concat(f)}if(i!=="date"){var m=o.getTimezoneOffset();if(m!==0){var g=Math.abs(m),v=Te(Math.floor(g/60),2),w=Te(g%60,2),T=m<0?"+":"-";l="".concat(T).concat(v,":").concat(w)}else l="Z";var k=Te(o.getHours(),2),R=Te(o.getMinutes(),2),x=Te(o.getSeconds(),2),S=s===""?"":"T",j=[k,R,x].join(c);s="".concat(s).concat(S).concat(j).concat(l)}return s}function Uk(e,t){N(2,arguments);var r=F(e).getTime(),n=F(t.start).getTime(),o=F(t.end).getTime();if(!(n<=o))throw new RangeError("Invalid interval");return r>=n&&r<=o}var bl={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},n=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},o=function(l,u){var c=l.match(/(P+)(p+)?/)||[],f=c[1],d=c[2];if(!d)return r(l,u);var h;switch(f){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,u)).replace("{{time}}",n(d,u))},a={p:n,P:o},i=a;t.default=i,e.exports=t.default})(bl,bl.exports);var Yk=bl.exports;const Gk=Xn(Yk),Vk={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"},qk={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 Xk{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=Vk,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=>$k(n),this.toISO=n=>zk(n,{format:"extended"}),this.parse=(n,o)=>n===""?null:bk(n,o,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 o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(o).map(a=>{const i=a[0];if(i==="p"||i==="P"){const s=Gk[i],l=this.locale||Ia;return s(a,l.formatLong,{})}return a}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>Ld(this.date(n)),this.format=(n,o)=>this.formatByString(n,this.formats[o]),this.formatByString=(n,o)=>fl(n,o,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,o,a)=>{switch(a){case"years":return YP(n,this.date(o));case"quarters":return XP(n,this.date(o));case"months":return il(n,this.date(o));case"weeks":return ZP(n,this.date(o));case"days":return Id(n,this.date(o));case"hours":return eM(n,this.date(o));case"minutes":return tM(n,this.date(o));case"seconds":return jd(n,this.date(o));default:return Aa(n,this.date(o))}},this.isEqual=(n,o)=>n===null&&o===null?!0:m6(n,o),this.isSameYear=(n,o)=>y6(n,o),this.isSameMonth=(n,o)=>x6(n,o),this.isSameDay=(n,o)=>b6(n,o),this.isSameHour=(n,o)=>w6(n,o),this.isAfter=(n,o)=>dl(n,o),this.isAfterYear=(n,o)=>dl(n,ll(o)),this.isAfterDay=(n,o)=>dl(n,ol(o)),this.isBefore=(n,o)=>So(n,o),this.isBeforeYear=(n,o)=>So(n,Na(o)),this.isBeforeDay=(n,o)=>So(n,bn(o)),this.isWithinRange=(n,[o,a])=>Uk(n,{start:o,end:a}),this.startOfYear=n=>Na(n),this.startOfMonth=n=>op(n),this.startOfWeek=n=>Fr(n,{locale:this.locale}),this.startOfDay=n=>bn(n),this.endOfYear=n=>ll(n),this.endOfMonth=n=>al(n),this.endOfWeek=n=>sl(n,{locale:this.locale}),this.endOfDay=n=>ol(n),this.addYears=(n,o)=>kd(n,o),this.addMonths=(n,o)=>Pa(n,o),this.addWeeks=(n,o)=>zP(n,o),this.addDays=(n,o)=>nl(n,o),this.addHours=(n,o)=>HP(n,o),this.addMinutes=(n,o)=>BP(n,o),this.addSeconds=(n,o)=>FP(n,o),this.getYear=n=>v6(n),this.getMonth=n=>u6(n),this.getDate=n=>i6(n),this.getHours=n=>s6(n),this.getMinutes=n=>l6(n),this.getSeconds=n=>c6(n),this.getMilliseconds=n=>f6(n),this.setYear=(n,o)=>Ek(n,o),this.setMonth=(n,o)=>Tk(n,o),this.setDate=(n,o)=>xk(n,o),this.setHours=(n,o)=>wk(n,o),this.setMinutes=(n,o)=>Ok(n,o),this.setSeconds=(n,o)=>Ck(n,o),this.setMilliseconds=(n,o)=>Sk(n,o),this.getDaysInMonth=n=>qd(n),this.getNextMonth=n=>Pa(n,1),this.getPreviousMonth=n=>Pa(n,-1),this.getMonthArray=n=>{const a=[Na(n)];for(;a.length<12;){const i=a[a.length-1];a.push(this.getNextMonth(i))}return a},this.mergeDateAndTime=(n,o)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(o)),this.getMinutes(o)),this.getSeconds(o)),this.getWeekdays=()=>{const n=new Date;return rM({start:Fr(n,{locale:this.locale}),end:sl(n,{locale:this.locale})}).map(o=>this.formatByString(o,"EEEEEE"))},this.getWeekArray=n=>{const o=Fr(op(n),{locale:this.locale}),a=sl(al(n),{locale:this.locale});let i=0,s=o;const l=[];for(;So(s,a);){const u=Math.floor(i/7);l[u]=l[u]||[],l[u].push(s),s=nl(s,1),i+=1}return l},this.getWeekNumber=n=>g6(n,{locale:this.locale}),this.getYearRange=(n,o)=>{const a=Na(n),i=ll(o),s=[];let l=a;for(;So(l,i);)s.push(l),l=kd(l,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=be({},qk,r)}}var Kk={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"}},Qk=function(t,r,n){var o,a=Kk[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+o:"há "+o:o};const Zk=Qk;var Jk={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},e8={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},t8={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},r8={date:wn({formats:Jk,defaultWidth:"full"}),time:wn({formats:e8,defaultWidth:"full"}),dateTime:wn({formats:t8,defaultWidth:"full"})};const n8=r8;var o8={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"},a8=function(t,r,n,o){var a=o8[t];return typeof a=="function"?a(r):a};const i8=a8;var s8={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},l8={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},u8={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"]},c8={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"]},f8={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"}},d8={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"}},p8=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},h8={ordinalNumber:p8,era:Vt({values:s8,defaultWidth:"wide"}),quarter:Vt({values:l8,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Vt({values:u8,defaultWidth:"wide"}),day:Vt({values:c8,defaultWidth:"wide"}),dayPeriod:Vt({values:f8,defaultWidth:"wide",formattingValues:d8,defaultFormattingWidth:"wide"})};const g8=h8;var v8=/^(\d+)[ºªo]?/i,m8=/\d+/i,b8={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},y8={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},x8={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},w8={any:[/1/i,/2/i,/3/i,/4/i]},O8={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},T8={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]},C8={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},S8={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]},E8={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},$8={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}},_8={ordinalNumber:Vd({matchPattern:v8,parsePattern:m8,valueCallback:function(t){return parseInt(t,10)}}),era:qt({matchPatterns:b8,defaultMatchWidth:"wide",parsePatterns:y8,defaultParseWidth:"any"}),quarter:qt({matchPatterns:x8,defaultMatchWidth:"wide",parsePatterns:w8,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:qt({matchPatterns:O8,defaultMatchWidth:"wide",parsePatterns:T8,defaultParseWidth:"any"}),day:qt({matchPatterns:C8,defaultMatchWidth:"wide",parsePatterns:S8,defaultParseWidth:"any"}),dayPeriod:qt({matchPatterns:E8,defaultMatchWidth:"any",parsePatterns:$8,defaultParseWidth:"any"})},P8={code:"pt-BR",formatDistance:Zk,formatLong:n8,formatRelative:i8,localize:g8,match:_8,options:{weekStartsOn:0,firstWeekContainsDate:1}};const M8=P8;function On(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function ip(e){if(!On(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ip(e[r])}),t}function sr(e,t,r={clone:!0}){const n=r.clone?be({},e):e;return On(e)&&On(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(On(t[o])&&o in e&&On(e[o])?n[o]=sr(e[o],t[o],r):r.clone?n[o]=On(t[o])?ip(t[o]):t[o]:n[o]=t[o])}),n}const k8="exact-prop: ​";function sp(e){return process.env.NODE_ENV==="production"?e:be({},e,{[k8]: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 Tn(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 yl={exports:{}},We={};/**
53
+ */var yc,Hp;function o3(){if(Hp)return yc;Hp=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 c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return yc=i()?Object.assign:function(o,a){for(var s,c=n(o),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var f in s)t.call(s,f)&&(c[f]=s[f]);if(e){l=e(s);for(var d=0;d<l.length;d++)r.call(s,l[d])&&(c[l[d]]=s[l[d]])}}return c},yc}var bc,Up;function xc(){if(Up)return bc;Up=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bc=e,bc}var wc,Yp;function Gp(){return Yp||(Yp=1,wc=Function.call.bind(Object.prototype.hasOwnProperty)),wc}var Cc,qp;function a3(){if(qp)return Cc;qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xc(),r={},n=Gp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in o)if(n(o,u)){var f;try{if(typeof o[u]!="function"){var d=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=o[u](a,u,c,s,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` 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={})},Cc=i,Cc}var Tc,Xp;function s3(){if(Xp)return Tc;Xp=1;var e=Vp(),t=o3(),r=xc(),n=Gp(),i=a3(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Tc=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(D){var I=D&&(l&&D[l]||D[u]);if(typeof I=="function")return I}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:T,element:P(),elementType:w(),instanceOf:E,node:W(),objectOf:_,oneOf:O,oneOfType:L,shape:ve,exact:ce};function g(D,I){return D===I?D!==0||1/D===1/I:D!==D&&I!==I}function m(D,I){this.message=D,this.data=I&&typeof I=="object"?I:{},this.stack=""}m.prototype=Error.prototype;function y(D){if(process.env.NODE_ENV!=="production")var I={},Z=0;function ne(ue,se,pe,K,Q,te,ye){if(K=K||d,te=te||pe,ye!==r){if(c){var F=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 F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Le=K+":"+pe;!I[Le]&&Z<3&&(o("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+K+"`. 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."),I[Le]=!0,Z++)}}return se[pe]==null?ue?se[pe]===null?new m("The "+Q+" `"+te+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+Q+" `"+te+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:D(se,pe,K,Q,te)}var G=ne.bind(null,!1);return G.isRequired=ne.bind(null,!0),G}function x(D){function I(Z,ne,G,ue,se,pe){var K=Z[ne],Q=ge(K);if(Q!==D){var te=Se(K);return new m("Invalid "+ue+" `"+se+"` of type "+("`"+te+"` supplied to `"+G+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return y(I)}function b(){return y(a)}function T(D){function I(Z,ne,G,ue,se){if(typeof D!="function")return new m("Property `"+se+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var pe=Z[ne];if(!Array.isArray(pe)){var K=ge(pe);return new m("Invalid "+ue+" `"+se+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var Q=0;Q<pe.length;Q++){var te=D(pe,Q,G,ue,se+"["+Q+"]",r);if(te instanceof Error)return te}return null}return y(I)}function P(){function D(I,Z,ne,G,ue){var se=I[Z];if(!s(se)){var pe=ge(se);return new m("Invalid "+G+" `"+ue+"` of type "+("`"+pe+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return y(D)}function w(){function D(I,Z,ne,G,ue){var se=I[Z];if(!e.isValidElementType(se)){var pe=ge(se);return new m("Invalid "+G+" `"+ue+"` of type "+("`"+pe+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return y(D)}function E(D){function I(Z,ne,G,ue,se){if(!(Z[ne]instanceof D)){var pe=D.name||d,K=Me(Z[ne]);return new m("Invalid "+ue+" `"+se+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+pe+"`."))}return null}return y(I)}function O(D){if(!Array.isArray(D))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 I(Z,ne,G,ue,se){for(var pe=Z[ne],K=0;K<D.length;K++)if(g(pe,D[K]))return null;var Q=JSON.stringify(D,function(ye,F){var Le=Se(F);return Le==="symbol"?String(F):F});return new m("Invalid "+ue+" `"+se+"` of value `"+String(pe)+"` "+("supplied to `"+G+"`, expected one of "+Q+"."))}return y(I)}function _(D){function I(Z,ne,G,ue,se){if(typeof D!="function")return new m("Property `"+se+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var pe=Z[ne],K=ge(pe);if(K!=="object")return new m("Invalid "+ue+" `"+se+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var Q in pe)if(n(pe,Q)){var te=D(pe,Q,G,ue,se+"."+Q,r);if(te instanceof Error)return te}return null}return y(I)}function L(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<D.length;I++){var Z=D[I];if(typeof Z!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+We(Z)+" at index "+I+"."),a}function ne(G,ue,se,pe,K){for(var Q=[],te=0;te<D.length;te++){var ye=D[te],F=ye(G,ue,se,pe,K,r);if(F==null)return null;F.data&&n(F.data,"expectedType")&&Q.push(F.data.expectedType)}var Le=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new m("Invalid "+pe+" `"+K+"` supplied to "+("`"+se+"`"+Le+"."))}return y(ne)}function W(){function D(I,Z,ne,G,ue){return q(I[Z])?null:new m("Invalid "+G+" `"+ue+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return y(D)}function de(D,I,Z,ne,G){return new m((D||"React class")+": "+I+" type `"+Z+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function ve(D){function I(Z,ne,G,ue,se){var pe=Z[ne],K=ge(pe);if(K!=="object")return new m("Invalid "+ue+" `"+se+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var Q in D){var te=D[Q];if(typeof te!="function")return de(G,ue,se,Q,Se(te));var ye=te(pe,Q,G,ue,se+"."+Q,r);if(ye)return ye}return null}return y(I)}function ce(D){function I(Z,ne,G,ue,se){var pe=Z[ne],K=ge(pe);if(K!=="object")return new m("Invalid "+ue+" `"+se+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var Q=t({},Z[ne],D);for(var te in Q){var ye=D[te];if(n(D,te)&&typeof ye!="function")return de(G,ue,se,te,Se(ye));if(!ye)return new m("Invalid "+ue+" `"+se+"` key `"+te+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(Z[ne],null," ")+`
54
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var F=ye(pe,te,G,ue,se+"."+te,r);if(F)return F}return null}return y(I)}function q(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(q);if(D===null||s(D))return!0;var I=f(D);if(I){var Z=I.call(D),ne;if(I!==D.entries){for(;!(ne=Z.next()).done;)if(!q(ne.value))return!1}else for(;!(ne=Z.next()).done;){var G=ne.value;if(G&&!q(G[1]))return!1}}else return!1;return!0;default:return!1}}function Y(D,I){return D==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function ge(D){var I=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":Y(I,D)?"symbol":I}function Se(D){if(typeof D>"u"||D===null)return""+D;var I=ge(D);if(I==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return I}function We(D){var I=Se(D);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function Me(D){return!D.constructor||!D.constructor.name?d:D.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Tc}var Sc,Kp;function l3(){if(Kp)return Sc;Kp=1;var e=xc();function t(){}function r(){}return r.resetWarningCache=t,Sc=function(){function n(a,s,c,l,u,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},Sc}if(process.env.NODE_ENV!=="production"){var c3=Vp(),u3=!0;vc.exports=s3()(c3.isElement,u3)}else vc.exports=l3()();var f3=vc.exports;const A=dn(f3),d3="exact-prop: ​";function Zp(e){return process.env.NODE_ENV==="production"?e:_e({},e,{[d3]: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 Gn(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 Ec={exports:{}},Xe={};/**
74
55
  * @license React
75
56
  * react-is.production.min.js
76
57
  *
@@ -78,7 +59,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
78
59
  *
79
60
  * This source code is licensed under the MIT license found in the
80
61
  * LICENSE file in the root directory of this source tree.
81
- */var lp;function A8(){if(lp)return We;lp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=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 g(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case o:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case l:case d:case f:case a:return v;default:return w}}case t:return w}}}return We.ContextConsumer=i,We.ContextProvider=a,We.Element=e,We.ForwardRef=l,We.Fragment=r,We.Lazy=d,We.Memo=f,We.Portal=t,We.Profiler=o,We.StrictMode=n,We.Suspense=u,We.SuspenseList=c,We.isAsyncMode=function(){return!1},We.isConcurrentMode=function(){return!1},We.isContextConsumer=function(v){return g(v)===i},We.isContextProvider=function(v){return g(v)===a},We.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},We.isForwardRef=function(v){return g(v)===l},We.isFragment=function(v){return g(v)===r},We.isLazy=function(v){return g(v)===d},We.isMemo=function(v){return g(v)===f},We.isPortal=function(v){return g(v)===t},We.isProfiler=function(v){return g(v)===o},We.isStrictMode=function(v){return g(v)===n},We.isSuspense=function(v){return g(v)===u},We.isSuspenseList=function(v){return g(v)===c},We.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===u||v===c||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===f||v.$$typeof===a||v.$$typeof===i||v.$$typeof===l||v.$$typeof===m||v.getModuleId!==void 0)},We.typeOf=g,We}var He={};/**
62
+ */var Qp;function h3(){if(Qp)return Xe;Qp=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"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function m(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type,y){case r:case i:case n:case l:case u:return y;default:switch(y=y&&y.$$typeof,y){case s:case a:case c:case d:case f:case o:return y;default:return x}}case t:return x}}}return Xe.ContextConsumer=a,Xe.ContextProvider=o,Xe.Element=e,Xe.ForwardRef=c,Xe.Fragment=r,Xe.Lazy=d,Xe.Memo=f,Xe.Portal=t,Xe.Profiler=i,Xe.StrictMode=n,Xe.Suspense=l,Xe.SuspenseList=u,Xe.isAsyncMode=function(){return!1},Xe.isConcurrentMode=function(){return!1},Xe.isContextConsumer=function(y){return m(y)===a},Xe.isContextProvider=function(y){return m(y)===o},Xe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Xe.isForwardRef=function(y){return m(y)===c},Xe.isFragment=function(y){return m(y)===r},Xe.isLazy=function(y){return m(y)===d},Xe.isMemo=function(y){return m(y)===f},Xe.isPortal=function(y){return m(y)===t},Xe.isProfiler=function(y){return m(y)===i},Xe.isStrictMode=function(y){return m(y)===n},Xe.isSuspense=function(y){return m(y)===l},Xe.isSuspenseList=function(y){return m(y)===u},Xe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===l||y===u||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===f||y.$$typeof===o||y.$$typeof===a||y.$$typeof===c||y.$$typeof===g||y.getModuleId!==void 0)},Xe.typeOf=m,Xe}var Ke={};/**
82
63
  * @license React
83
64
  * react-is.development.js
84
65
  *
@@ -86,27 +67,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
86
67
  *
87
68
  * This source code is licensed under the MIT license found in the
88
69
  * LICENSE file in the root directory of this source tree.
89
- */var up;function D8(){return up||(up=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"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=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,g=!1,v=!1,w=!1,T=!1,k;k=Symbol.for("react.module.reference");function R(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===r||Z===o||T||Z===n||Z===u||Z===c||w||Z===h||m||g||v||typeof Z=="object"&&Z!==null&&(Z.$$typeof===d||Z.$$typeof===f||Z.$$typeof===a||Z.$$typeof===i||Z.$$typeof===l||Z.$$typeof===k||Z.getModuleId!==void 0))}function x(Z){if(typeof Z=="object"&&Z!==null){var ft=Z.$$typeof;switch(ft){case e:var Ut=Z.type;switch(Ut){case r:case o:case n:case u:case c:return Ut;default:var Cr=Ut&&Ut.$$typeof;switch(Cr){case s:case i:case l:case d:case f:case a:return Cr;default:return ft}}case t:return ft}}}var S=i,j=a,B=e,ue=l,K=r,pe=d,Oe=f,ye=t,xe=o,ce=n,he=u,De=c,Ke=!1,rt=!1;function E(Z){return Ke||(Ke=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(Z){return rt||(rt=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(Z){return x(Z)===i}function ee(Z){return x(Z)===a}function G(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function ie(Z){return x(Z)===l}function se(Z){return x(Z)===r}function le(Z){return x(Z)===d}function Y(Z){return x(Z)===f}function q(Z){return x(Z)===t}function ae(Z){return x(Z)===o}function me(Z){return x(Z)===n}function I(Z){return x(Z)===u}function Ye(Z){return x(Z)===c}He.ContextConsumer=S,He.ContextProvider=j,He.Element=B,He.ForwardRef=ue,He.Fragment=K,He.Lazy=pe,He.Memo=Oe,He.Portal=ye,He.Profiler=xe,He.StrictMode=ce,He.Suspense=he,He.SuspenseList=De,He.isAsyncMode=E,He.isConcurrentMode=L,He.isContextConsumer=J,He.isContextProvider=ee,He.isElement=G,He.isForwardRef=ie,He.isFragment=se,He.isLazy=le,He.isMemo=Y,He.isPortal=q,He.isProfiler=ae,He.isStrictMode=me,He.isSuspense=I,He.isSuspenseList=Ye,He.isValidElementType=R,He.typeOf=x}()),He}process.env.NODE_ENV==="production"?yl.exports=A8():yl.exports=D8();var cp=yl.exports;const I8=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function j8(e){const t=`${e}`.match(I8);return t&&t[1]||""}function fp(e,t=""){return e.displayName||e.name||j8(e)||t}function dp(e,t,r){const n=fp(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function L8(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fp(e,"Component");if(typeof e=="object")switch(e.$$typeof){case cp.ForwardRef:return dp(e,e.render,"ForwardRef");case cp.Memo:return dp(e,e.type,"memo");default:return}}}function Cn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const N8=typeof window<"u"?Pe.useLayoutEffect:Pe.useEffect;function pp(e,t){const r=be({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=be({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=be({},a),Object.keys(o).forEach(i=>{r[n][i]=pp(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const hp=e=>e,F8=(()=>{let e=hp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hp}}})(),R8={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function B8(e,t,r="Mui"){const n=R8[t];return n?`${r}-${n}`:`${F8.generate(e)}-${t}`}const Ra="$$material";function lr(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function W8(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 H8(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 z8=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},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(H8(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
90
- `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var i=W8(o);try{i.insertRule(n,i.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 o.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}(),xt="-ms-",Ba="-moz-",je="-webkit-",xl="comm",wl="rule",Ol="decl",U8="@import",gp="@keyframes",Y8="@layer",G8=Math.abs,Wa=String.fromCharCode,V8=Object.assign;function q8(e,t){return yt(e,0)^45?(((t<<2^yt(e,0))<<2^yt(e,1))<<2^yt(e,2))<<2^yt(e,3):0}function vp(e){return e.trim()}function X8(e,t){return(e=t.exec(e))?e[0]:e}function Le(e,t,r){return e.replace(t,r)}function Tl(e,t){return e.indexOf(t)}function yt(e,t){return e.charCodeAt(t)|0}function $o(e,t,r){return e.slice(t,r)}function Qt(e){return e.length}function Cl(e){return e.length}function Ha(e,t){return t.push(e),e}function K8(e,t){return e.map(t).join("")}var za=1,Sn=1,mp=0,St=0,ht=0,En="";function Ua(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:za,column:Sn,length:i,return:""}}function _o(e,t){return V8(Ua("",null,null,"",null,null,0),e,{length:-e.length},t)}function Q8(){return ht}function Z8(){return ht=St>0?yt(En,--St):0,Sn--,ht===10&&(Sn=1,za--),ht}function kt(){return ht=St<mp?yt(En,St++):0,Sn++,ht===10&&(Sn=1,za++),ht}function Zt(){return yt(En,St)}function Ya(){return St}function Po(e,t){return $o(En,e,t)}function Mo(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 bp(e){return za=Sn=1,mp=Qt(En=e),St=0,[]}function yp(e){return En="",e}function Ga(e){return vp(Po(St-1,Sl(e===91?e+2:e===40?e+1:e)))}function J8(e){for(;(ht=Zt())&&ht<33;)kt();return Mo(e)>2||Mo(ht)>3?"":" "}function e7(e,t){for(;--t&&kt()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return Po(e,Ya()+(t<6&&Zt()==32&&kt()==32))}function Sl(e){for(;kt();)switch(ht){case e:return St;case 34:case 39:e!==34&&e!==39&&Sl(ht);break;case 40:e===41&&Sl(e);break;case 92:kt();break}return St}function t7(e,t){for(;kt()&&e+ht!==47+10;)if(e+ht===42+42&&Zt()===47)break;return"/*"+Po(t,St-1)+"*"+Wa(e===47?e:kt())}function r7(e){for(;!Mo(Zt());)kt();return Po(e,St)}function n7(e){return yp(Va("",null,null,null,[""],e=bp(e),0,[0],e))}function Va(e,t,r,n,o,a,i,s,l){for(var u=0,c=0,f=i,d=0,h=0,m=0,g=1,v=1,w=1,T=0,k="",R=o,x=a,S=n,j=k;v;)switch(m=T,T=kt()){case 40:if(m!=108&&yt(j,f-1)==58){Tl(j+=Le(Ga(T),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:j+=Ga(T);break;case 9:case 10:case 13:case 32:j+=J8(m);break;case 92:j+=e7(Ya()-1,7);continue;case 47:switch(Zt()){case 42:case 47:Ha(o7(t7(kt(),Ya()),t,r),l);break;default:j+="/"}break;case 123*g:s[u++]=Qt(j)*w;case 125*g:case 59:case 0:switch(T){case 0:case 125:v=0;case 59+c:w==-1&&(j=Le(j,/\f/g,"")),h>0&&Qt(j)-f&&Ha(h>32?wp(j+";",n,r,f-1):wp(Le(j," ","")+";",n,r,f-2),l);break;case 59:j+=";";default:if(Ha(S=xp(j,t,r,u,c,o,s,k,R=[],x=[],f),a),T===123)if(c===0)Va(j,t,S,S,R,a,f,s,x);else switch(d===99&&yt(j,3)===110?100:d){case 100:case 108:case 109:case 115:Va(e,S,S,n&&Ha(xp(e,S,S,0,0,o,s,k,o,R=[],f),x),o,x,f,s,n?R:x);break;default:Va(j,S,S,S,[""],x,0,s,x)}}u=c=h=0,g=w=1,k=j="",f=i;break;case 58:f=1+Qt(j),h=m;default:if(g<1){if(T==123)--g;else if(T==125&&g++==0&&Z8()==125)continue}switch(j+=Wa(T),T*g){case 38:w=c>0?1:(j+="\f",-1);break;case 44:s[u++]=(Qt(j)-1)*w,w=1;break;case 64:Zt()===45&&(j+=Ga(kt())),d=Zt(),c=f=Qt(k=j+=r7(Ya())),T++;break;case 45:m===45&&Qt(j)==2&&(g=0)}}return a}function xp(e,t,r,n,o,a,i,s,l,u,c){for(var f=o-1,d=o===0?a:[""],h=Cl(d),m=0,g=0,v=0;m<n;++m)for(var w=0,T=$o(e,f+1,f=G8(g=i[m])),k=e;w<h;++w)(k=vp(g>0?d[w]+" "+T:Le(T,/&\f/g,d[w])))&&(l[v++]=k);return Ua(e,t,r,o===0?wl:s,l,u,c)}function o7(e,t,r){return Ua(e,t,r,xl,Wa(Q8()),$o(e,2,-2),0)}function wp(e,t,r,n){return Ua(e,t,r,Ol,$o(e,0,n),$o(e,n+1,-1),n)}function $n(e,t){for(var r="",n=Cl(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function a7(e,t,r,n){switch(e.type){case Y8:if(e.children.length)break;case U8:case Ol:return e.return=e.return||e.value;case xl:return"";case gp:return e.return=e.value+"{"+$n(e.children,n)+"}";case wl:e.value=e.props.join(",")}return Qt(r=$n(e.children,n))?e.return=e.value+"{"+r+"}":""}function i7(e){var t=Cl(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function s7(e){return function(t){t.root||(t=t.return)&&e(t)}}var l7=function(t,r,n){for(var o=0,a=0;o=a,a=Zt(),o===38&&a===12&&(r[n]=1),!Mo(a);)kt();return Po(t,St)},u7=function(t,r){var n=-1,o=44;do switch(Mo(o)){case 0:o===38&&Zt()===12&&(r[n]=1),t[n]+=l7(St-1,r,n);break;case 2:t[n]+=Ga(o);break;case 4:if(o===44){t[++n]=Zt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Wa(o)}while(o=kt());return t},c7=function(t,r){return yp(u7(bp(t),r))},Op=new WeakMap,f7=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=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&&!Op.get(n))&&!o){Op.set(t,!0);for(var a=[],i=c7(r,a),s=n.props,l=0,u=0;l<i.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?i[l].replace(/&\f/g,s[c]):s[c]+" "+i[l]}}},d7=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},p7="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",h7=function(t){return t.type==="comm"&&t.children.indexOf(p7)>-1},g7=function(t){return function(r,n,o){if(!(r.type!=="rule"||t.compat)){var a=r.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var i=!!r.parent,s=i?r.parent.children:o,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<r.line)break;if(u.column<r.column){if(h7(u))return;break}}a.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Tp=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},v7=function(t,r){for(var n=t-1;n>=0;n--)if(!Tp(r[n]))return!0;return!1},Cp=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},m7=function(t,r,n){Tp(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."),Cp(t)):v7(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Cp(t)))};function Sp(e,t){switch(q8(e,t)){case 5103:return je+"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 je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return je+e+Ba+e+xt+e+e;case 6828:case 4268:return je+e+xt+e+e;case 6165:return je+e+xt+"flex-"+e+e;case 5187:return je+e+Le(e,/(\w+).+(:[^]+)/,je+"box-$1$2"+xt+"flex-$1$2")+e;case 5443:return je+e+xt+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return je+e+xt+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return je+e+xt+Le(e,"shrink","negative")+e;case 5292:return je+e+xt+Le(e,"basis","preferred-size")+e;case 6060:return je+"box-"+Le(e,"-grow","")+je+e+xt+Le(e,"grow","positive")+e;case 4554:return je+Le(e,/([^-])(transform)/g,"$1"+je+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,je+"$1"),/(image-set)/,je+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,je+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,je+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+je+e+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,je+"$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(Qt(e)-1-t>6)switch(yt(e,t+1)){case 109:if(yt(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+je+"$2-$3$1"+Ba+(yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Tl(e,"stretch")?Sp(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(yt(e,t+1)!==115)break;case 6444:switch(yt(e,Qt(e)-3-(~Tl(e,"!important")&&10))){case 107:return Le(e,":",":"+je)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+je+(yt(e,14)===45?"inline-":"")+"box$3$1"+je+"$2$3$1"+xt+"$2box$3")+e}break;case 5936:switch(yt(e,t+11)){case 114:return je+e+xt+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return je+e+xt+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return je+e+xt+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return je+e+xt+e+e}return e}var b7=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ol:t.return=Sp(t.value,t.length);break;case gp:return $n([_o(t,{value:Le(t.value,"@","@"+je)})],o);case wl:if(t.length)return K8(t.props,function(a){switch(X8(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $n([_o(t,{props:[Le(a,/:(read-\w+)/,":"+Ba+"$1")]})],o);case"::placeholder":return $n([_o(t,{props:[Le(a,/:(plac\w+)/,":"+je+"input-$1")]}),_o(t,{props:[Le(a,/:(plac\w+)/,":"+Ba+"$1")]}),_o(t,{props:[Le(a,/:(plac\w+)/,xt+"input-$1")]})],o)}return""})}},y7=[b7],x7=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.
91
- 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(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||y7;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),w=1;w<v.length;w++)a[v[w]]=!0;s.push(g)});var l,u=[f7,d7];process.env.NODE_ENV!=="production"&&u.push(g7({get compat(){return m.compat}}),m7);{var c,f=[a7,process.env.NODE_ENV!=="production"?function(g){g.root||(g.return?c.insert(g.return):g.value&&g.type!==xl&&c.insert(g.value+"{}"))}:s7(function(g){c.insert(g)})],d=i7(u.concat(o,f)),h=function(v){return $n(n7(v),d)};l=function(v,w,T,k){c=T,process.env.NODE_ENV!=="production"&&w.map!==void 0&&(c={insert:function(x){T.insert(x+w.map)}}),h(v?v+"{"+w.styles+"}":w.styles),k&&(m.inserted[w.name]=!0)}}var m={key:r,sheet:new z8({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return m.sheet.hydrate(s),m};let El;typeof document=="object"&&(El=x7({key:"css",prepend:!0}));function Ep(e){const{injectFirst:t,children:r}=e;return t&&El?y.jsx(vi.CacheProvider,{value:El,children:r}):r}process.env.NODE_ENV!=="production"&&(Ep.propTypes={children:P.node,injectFirst:P.bool});/**
70
+ */var Jp;function p3(){return Jp||(Jp=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"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,m=!1,y=!1,x=!1,b=!1,T;T=Symbol.for("react.module.reference");function P(ae){return!!(typeof ae=="string"||typeof ae=="function"||ae===r||ae===i||b||ae===n||ae===l||ae===u||x||ae===h||g||m||y||typeof ae=="object"&&ae!==null&&(ae.$$typeof===d||ae.$$typeof===f||ae.$$typeof===o||ae.$$typeof===a||ae.$$typeof===c||ae.$$typeof===T||ae.getModuleId!==void 0))}function w(ae){if(typeof ae=="object"&&ae!==null){var ut=ae.$$typeof;switch(ut){case e:var qt=ae.type;switch(qt){case r:case i:case n:case l:case u:return qt;default:var Nt=qt&&qt.$$typeof;switch(Nt){case s:case a:case c:case d:case f:case o:return Nt;default:return ut}}case t:return ut}}}var E=a,O=o,_=e,L=c,W=r,de=d,ve=f,ce=t,q=i,Y=n,ge=l,Se=u,We=!1,Me=!1;function D(ae){return We||(We=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function I(ae){return Me||(Me=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Z(ae){return w(ae)===a}function ne(ae){return w(ae)===o}function G(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===e}function ue(ae){return w(ae)===c}function se(ae){return w(ae)===r}function pe(ae){return w(ae)===d}function K(ae){return w(ae)===f}function Q(ae){return w(ae)===t}function te(ae){return w(ae)===i}function ye(ae){return w(ae)===n}function F(ae){return w(ae)===l}function Le(ae){return w(ae)===u}Ke.ContextConsumer=E,Ke.ContextProvider=O,Ke.Element=_,Ke.ForwardRef=L,Ke.Fragment=W,Ke.Lazy=de,Ke.Memo=ve,Ke.Portal=ce,Ke.Profiler=q,Ke.StrictMode=Y,Ke.Suspense=ge,Ke.SuspenseList=Se,Ke.isAsyncMode=D,Ke.isConcurrentMode=I,Ke.isContextConsumer=Z,Ke.isContextProvider=ne,Ke.isElement=G,Ke.isForwardRef=ue,Ke.isFragment=se,Ke.isLazy=pe,Ke.isMemo=K,Ke.isPortal=Q,Ke.isProfiler=te,Ke.isStrictMode=ye,Ke.isSuspense=F,Ke.isSuspenseList=Le,Ke.isValidElementType=P,Ke.typeOf=w}()),Ke}process.env.NODE_ENV==="production"?Ec.exports=h3():Ec.exports=p3();var e0=Ec.exports;const g3=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function m3(e){const t=`${e}`.match(g3);return t&&t[1]||""}function t0(e,t=""){return e.displayName||e.name||m3(e)||t}function r0(e,t,r){const n=t0(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function v3(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return t0(e,"Component");if(typeof e=="object")switch(e.$$typeof){case e0.ForwardRef:return r0(e,e.render,"ForwardRef");case e0.Memo:return r0(e,e.type,"memo");default:return}}}function qn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Gn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const y3=typeof window<"u"?be.useLayoutEffect:be.useEffect;function n0(e,t){const r=_e({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=_e({},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]=_e({},o),Object.keys(i).forEach(a=>{r[n][a]=n0(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const i0=e=>e,b3=(()=>{let e=i0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i0}}})(),x3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function w3(e,t,r="Mui"){const n=x3[t];return n?`${r}-${n}`:`${b3.generate(e)}-${t}`}const ja="$$material";function Ir(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 C3(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 T3(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 S3=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(T3(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=C3(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}(),jt="-ms-",Ia="-moz-",Ve="-webkit-",Oc="comm",Pc="rule",Mc="decl",E3="@import",o0="@keyframes",O3="@layer",P3=Math.abs,La=String.fromCharCode,M3=Object.assign;function _3(e,t){return kt(e,0)^45?(((t<<2^kt(e,0))<<2^kt(e,1))<<2^kt(e,2))<<2^kt(e,3):0}function a0(e){return e.trim()}function $3(e,t){return(e=t.exec(e))?e[0]:e}function He(e,t,r){return e.replace(t,r)}function _c(e,t){return e.indexOf(t)}function kt(e,t){return e.charCodeAt(t)|0}function vo(e,t,r){return e.slice(t,r)}function br(e){return e.length}function $c(e){return e.length}function Fa(e,t){return t.push(e),e}function A3(e,t){return e.map(t).join("")}var Ra=1,Xn=1,s0=0,Wt=0,Et=0,Kn="";function Na(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ra,column:Xn,length:a,return:""}}function yo(e,t){return M3(Na("",null,null,"",null,null,0),e,{length:-e.length},t)}function k3(){return Et}function D3(){return Et=Wt>0?kt(Kn,--Wt):0,Xn--,Et===10&&(Xn=1,Ra--),Et}function Kt(){return Et=Wt<s0?kt(Kn,Wt++):0,Xn++,Et===10&&(Xn=1,Ra++),Et}function xr(){return kt(Kn,Wt)}function Ba(){return Wt}function bo(e,t){return vo(Kn,e,t)}function xo(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 l0(e){return Ra=Xn=1,s0=br(Kn=e),Wt=0,[]}function c0(e){return Kn="",e}function za(e){return a0(bo(Wt-1,Ac(e===91?e+2:e===40?e+1:e)))}function j3(e){for(;(Et=xr())&&Et<33;)Kt();return xo(e)>2||xo(Et)>3?"":" "}function I3(e,t){for(;--t&&Kt()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return bo(e,Ba()+(t<6&&xr()==32&&Kt()==32))}function Ac(e){for(;Kt();)switch(Et){case e:return Wt;case 34:case 39:e!==34&&e!==39&&Ac(Et);break;case 40:e===41&&Ac(e);break;case 92:Kt();break}return Wt}function L3(e,t){for(;Kt()&&e+Et!==47+10;)if(e+Et===42+42&&xr()===47)break;return"/*"+bo(t,Wt-1)+"*"+La(e===47?e:Kt())}function F3(e){for(;!xo(xr());)Kt();return bo(e,Wt)}function R3(e){return c0(Wa("",null,null,null,[""],e=l0(e),0,[0],e))}function Wa(e,t,r,n,i,o,a,s,c){for(var l=0,u=0,f=a,d=0,h=0,g=0,m=1,y=1,x=1,b=0,T="",P=i,w=o,E=n,O=T;y;)switch(g=b,b=Kt()){case 40:if(g!=108&&kt(O,f-1)==58){_c(O+=He(za(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:O+=za(b);break;case 9:case 10:case 13:case 32:O+=j3(g);break;case 92:O+=I3(Ba()-1,7);continue;case 47:switch(xr()){case 42:case 47:Fa(N3(L3(Kt(),Ba()),t,r),c);break;default:O+="/"}break;case 123*m:s[l++]=br(O)*x;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:x==-1&&(O=He(O,/\f/g,"")),h>0&&br(O)-f&&Fa(h>32?f0(O+";",n,r,f-1):f0(He(O," ","")+";",n,r,f-2),c);break;case 59:O+=";";default:if(Fa(E=u0(O,t,r,l,u,i,s,T,P=[],w=[],f),o),b===123)if(u===0)Wa(O,t,E,E,P,o,f,s,w);else switch(d===99&&kt(O,3)===110?100:d){case 100:case 108:case 109:case 115:Wa(e,E,E,n&&Fa(u0(e,E,E,0,0,i,s,T,i,P=[],f),w),i,w,f,s,n?P:w);break;default:Wa(O,E,E,E,[""],w,0,s,w)}}l=u=h=0,m=x=1,T=O="",f=a;break;case 58:f=1+br(O),h=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&D3()==125)continue}switch(O+=La(b),b*m){case 38:x=u>0?1:(O+="\f",-1);break;case 44:s[l++]=(br(O)-1)*x,x=1;break;case 64:xr()===45&&(O+=za(Kt())),d=xr(),u=f=br(T=O+=F3(Ba())),b++;break;case 45:g===45&&br(O)==2&&(m=0)}}return o}function u0(e,t,r,n,i,o,a,s,c,l,u){for(var f=i-1,d=i===0?o:[""],h=$c(d),g=0,m=0,y=0;g<n;++g)for(var x=0,b=vo(e,f+1,f=P3(m=a[g])),T=e;x<h;++x)(T=a0(m>0?d[x]+" "+b:He(b,/&\f/g,d[x])))&&(c[y++]=T);return Na(e,t,r,i===0?Pc:s,c,l,u)}function N3(e,t,r){return Na(e,t,r,Oc,La(k3()),vo(e,2,-2),0)}function f0(e,t,r,n){return Na(e,t,r,Mc,vo(e,0,n),vo(e,n+1,-1),n)}function Zn(e,t){for(var r="",n=$c(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function B3(e,t,r,n){switch(e.type){case O3:if(e.children.length)break;case E3:case Mc:return e.return=e.return||e.value;case Oc:return"";case o0:return e.return=e.value+"{"+Zn(e.children,n)+"}";case Pc:e.value=e.props.join(",")}return br(r=Zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function z3(e){var t=$c(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 W3(e){return function(t){t.root||(t=t.return)&&e(t)}}var V3=function(t,r,n){for(var i=0,o=0;i=o,o=xr(),i===38&&o===12&&(r[n]=1),!xo(o);)Kt();return bo(t,Wt)},H3=function(t,r){var n=-1,i=44;do switch(xo(i)){case 0:i===38&&xr()===12&&(r[n]=1),t[n]+=V3(Wt-1,r,n);break;case 2:t[n]+=za(i);break;case 4:if(i===44){t[++n]=xr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=La(i)}while(i=Kt());return t},U3=function(t,r){return c0(H3(l0(t),r))},d0=new WeakMap,Y3=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&&!d0.get(n))&&!i){d0.set(t,!0);for(var o=[],a=U3(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]}}},G3=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},q3="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",X3=function(t){return t.type==="comm"&&t.children.indexOf(q3)>-1},K3=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(X3(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".')})}}}},h0=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Z3=function(t,r){for(var n=t-1;n>=0;n--)if(!h0(r[n]))return!0;return!1},p0=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Q3=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."),p0(t)):Z3(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),p0(t)))};function g0(e,t){switch(_3(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+Ia+e+jt+e+e;case 6828:case 4268:return Ve+e+jt+e+e;case 6165:return Ve+e+jt+"flex-"+e+e;case 5187:return Ve+e+He(e,/(\w+).+(:[^]+)/,Ve+"box-$1$2"+jt+"flex-$1$2")+e;case 5443:return Ve+e+jt+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return Ve+e+jt+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return Ve+e+jt+He(e,"shrink","negative")+e;case 5292:return Ve+e+jt+He(e,"basis","preferred-size")+e;case 6060:return Ve+"box-"+He(e,"-grow","")+Ve+e+jt+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"+jt+"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(kt(e,t+1)){case 109:if(kt(e,t+4)!==45)break;case 102:return He(e,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+Ia+(kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_c(e,"stretch")?g0(He(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(kt(e,t+1)!==115)break;case 6444:switch(kt(e,br(e)-3-(~_c(e,"!important")&&10))){case 107:return He(e,":",":"+Ve)+e;case 101:return He(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(kt(e,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+jt+"$2box$3")+e}break;case 5936:switch(kt(e,t+11)){case 114:return Ve+e+jt+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ve+e+jt+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ve+e+jt+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ve+e+jt+e+e}return e}var J3=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Mc:t.return=g0(t.value,t.length);break;case o0:return Zn([yo(t,{value:He(t.value,"@","@"+Ve)})],i);case Pc:if(t.length)return A3(t.props,function(o){switch($3(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([yo(t,{props:[He(o,/:(read-\w+)/,":"+Ia+"$1")]})],i);case"::placeholder":return Zn([yo(t,{props:[He(o,/:(plac\w+)/,":"+Ve+"input-$1")]}),yo(t,{props:[He(o,/:(plac\w+)/,":"+Ia+"$1")]}),yo(t,{props:[He(o,/:(plac\w+)/,jt+"input-$1")]})],i)}return""})}},e4=[J3],t4=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(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||e4;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(m){for(var y=m.getAttribute("data-emotion").split(" "),x=1;x<y.length;x++)o[y[x]]=!0;s.push(m)});var c,l=[Y3,G3];process.env.NODE_ENV!=="production"&&l.push(K3({get compat(){return g.compat}}),Q3);{var u,f=[B3,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?u.insert(m.return):m.value&&m.type!==Oc&&u.insert(m.value+"{}"))}:W3(function(m){u.insert(m)})],d=z3(l.concat(i,f)),h=function(y){return Zn(R3(y),d)};c=function(y,x,b,T){u=b,process.env.NODE_ENV!=="production"&&x.map!==void 0&&(u={insert:function(w){b.insert(w+x.map)}}),h(y?y+"{"+x.styles+"}":x.styles),T&&(g.inserted[x.name]=!0)}}var g={key:r,sheet:new S3({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return g.sheet.hydrate(s),g};let kc;typeof document=="object"&&(kc=t4({key:"css",prepend:!0}));function m0(e){const{injectFirst:t,children:r}=e;return t&&kc?v.jsx(bl.CacheProvider,{value:kc,children:r}):r}process.env.NODE_ENV!=="production"&&(m0.propTypes={children:A.node,injectFirst:A.bool});/**
92
73
  * @mui/styled-engine v5.13.2
93
74
  *
94
75
  * @license MIT
95
76
  * This source code is licensed under the MIT license found in the
96
77
  * LICENSE file in the root directory of this source tree.
97
- */function w7(e,t){const r=Rh(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
98
- `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const O7=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},T7=["values","unit","step"],C7=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)=>be({},r,{[n.key]:n.val}),{})};function S7(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=lr(e,T7),a=C7(t),i=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const m=i.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(m!==-1&&typeof t[i[m]]=="number"?t[i[m]]:h)-n/100}${r})`}function c(d){return i.indexOf(d)+1<i.length?u(d,i[i.indexOf(d)+1]):s(d)}function f(d){const h=i.indexOf(d);return h===0?s(i[1]):h===i.length-1?l(i[h]):u(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return be({keys:i,values:a,up:s,down:l,between:u,only:c,not:f,unit:r},o)}const E7={borderRadius:4},mr=process.env.NODE_ENV!=="production"?P.oneOfType([P.number,P.string,P.object,P.array]):{};function ko(e,t){return t?sr(e,t,{clone:!1}):e}const $l={xs:0,sm:600,md:900,lg:1200,xl:1536},$p={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$l[e]}px)`};function ur(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||$p;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||$p;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||$l).indexOf(s)!==-1){const l=a.up(s);i[l]=r(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return r(t)}function $7(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function _7(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function qa(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Xa(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=qa(e,r)||n,t&&(o=t(o,n,e)),o}function ze(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,u=qa(l,n)||{};return ur(i,s,f=>{let d=Xa(u,o,f);return f===d&&typeof f=="string"&&(d=Xa(u,o,`${t}${f==="default"?"":Cn(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:mr}:{},a.filterProps=[t],a}function P7(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const M7={m:"margin",p:"padding"},k7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_p={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},A7=P7(e=>{if(e.length>2)if(_p[e])e=_p[e];else return[e];const[t,r]=e.split(""),n=M7[t],o=k7[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Ka=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],D7=[...Ka,...Qa];function Ao(e,t,r,n){var o;const a=(o=qa(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
78
+ */function r4(e,t){const r=wb(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 n4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},i4=["values","unit","step"],o4=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)=>_e({},r,{[n.key]:n.val}),{})};function a4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Ir(e,i4),o=o4(t),a=Object.keys(o);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function c(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function l(d,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-n/100}${r})`}function u(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?c(a[h]):l(d,a[a.indexOf(d)+1]).replace("@media","@media not all and")}return _e({keys:a,values:o,up:s,down:c,between:l,only:u,not:f,unit:r},i)}const s4={borderRadius:4},Jr=process.env.NODE_ENV!=="production"?A.oneOfType([A.number,A.string,A.object,A.array]):{};function wo(e,t){return t?jr(e,t,{clone:!1}):e}const Dc={xs:0,sm:600,md:900,lg:1200,xl:1536},v0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Dc[e]}px)`};function Lr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||v0;return t.reduce((a,s,c)=>(a[o.up(o.keys[c])]=r(t[c]),a),{})}if(typeof t=="object"){const o=n.breakpoints||v0;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Dc).indexOf(s)!==-1){const c=o.up(s);a[c]=r(t[s],s)}else{const c=s;a[c]=t[c]}return a},{})}return r(t)}function l4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function c4(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Va(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 Ha(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Va(e,r)||n,t&&(i=t(i,n,e)),i}function Ze(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],c=a.theme,l=Va(c,n)||{};return Lr(a,s,f=>{let d=Ha(l,i,f);return f===d&&typeof f=="string"&&(d=Ha(l,i,`${t}${f==="default"?"":qn(f)}`,f)),r===!1?d:{[r]:d}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Jr}:{},o.filterProps=[t],o}function u4(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const f4={m:"margin",p:"padding"},d4={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},y0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},h4=u4(e=>{if(e.length>2)if(y0[e])e=y0[e];else return[e];const[t,r]=e.split(""),n=f4[t],i=d4[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),Ua=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ya=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p4=[...Ua,...Ya];function Co(e,t,r,n){var i;const o=(i=Va(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(`
99
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(`
100
- `))),a[i]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
101
- `)),()=>{})}function Pp(e){return Ao(e,"spacing",8,"spacing")}function Do(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 I7(e,t){return r=>e.reduce((n,o)=>(n[o]=Do(t,r),n),{})}function j7(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=A7(r),a=I7(o,n),i=e[r];return ur(e,i,a)}function Mp(e,t){const r=Pp(e.theme);return Object.keys(e).map(n=>j7(e,t,n,r)).reduce(ko,{})}function it(e){return Mp(e,Ka)}it.propTypes=process.env.NODE_ENV!=="production"?Ka.reduce((e,t)=>(e[t]=mr,e),{}):{},it.filterProps=Ka;function st(e){return Mp(e,Qa)}st.propTypes=process.env.NODE_ENV!=="production"?Qa.reduce((e,t)=>(e[t]=mr,e),{}):{},st.filterProps=Qa,process.env.NODE_ENV!=="production"&&D7.reduce((e,t)=>(e[t]=mr,e),{});function L7(e=8){if(e.mui)return e;const t=Pp({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function Za(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?ko(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Jt(e){return typeof e!="number"?e:`${e}px solid`}const N7=ze({prop:"border",themeKey:"borders",transform:Jt}),F7=ze({prop:"borderTop",themeKey:"borders",transform:Jt}),R7=ze({prop:"borderRight",themeKey:"borders",transform:Jt}),B7=ze({prop:"borderBottom",themeKey:"borders",transform:Jt}),W7=ze({prop:"borderLeft",themeKey:"borders",transform:Jt}),H7=ze({prop:"borderColor",themeKey:"palette"}),z7=ze({prop:"borderTopColor",themeKey:"palette"}),U7=ze({prop:"borderRightColor",themeKey:"palette"}),Y7=ze({prop:"borderBottomColor",themeKey:"palette"}),G7=ze({prop:"borderLeftColor",themeKey:"palette"}),Ja=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ao(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Do(t,n)});return ur(e,e.borderRadius,r)}return null};Ja.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:mr}:{},Ja.filterProps=["borderRadius"],Za(N7,F7,R7,B7,W7,H7,z7,U7,Y7,G7,Ja);const ei=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ao(e.theme,"spacing",8,"gap"),r=n=>({gap:Do(t,n)});return ur(e,e.gap,r)}return null};ei.propTypes=process.env.NODE_ENV!=="production"?{gap:mr}:{},ei.filterProps=["gap"];const ti=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ao(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Do(t,n)});return ur(e,e.columnGap,r)}return null};ti.propTypes=process.env.NODE_ENV!=="production"?{columnGap:mr}:{},ti.filterProps=["columnGap"];const ri=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ao(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Do(t,n)});return ur(e,e.rowGap,r)}return null};ri.propTypes=process.env.NODE_ENV!=="production"?{rowGap:mr}:{},ri.filterProps=["rowGap"];const V7=ze({prop:"gridColumn"}),q7=ze({prop:"gridRow"}),X7=ze({prop:"gridAutoFlow"}),K7=ze({prop:"gridAutoColumns"}),Q7=ze({prop:"gridAutoRows"}),Z7=ze({prop:"gridTemplateColumns"}),J7=ze({prop:"gridTemplateRows"}),eA=ze({prop:"gridTemplateAreas"}),tA=ze({prop:"gridArea"});Za(ei,ti,ri,V7,q7,X7,K7,Q7,Z7,J7,eA,tA);function _n(e,t){return t==="grey"?t:e}const rA=ze({prop:"color",themeKey:"palette",transform:_n}),nA=ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_n}),oA=ze({prop:"backgroundColor",themeKey:"palette",transform:_n});Za(rA,nA,oA);function At(e){return e<=1&&e!==0?`${e*100}%`:e}const aA=ze({prop:"width",transform:At}),_l=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])||$l[r]||At(r)}};return ur(e,e.maxWidth,t)}return null};_l.filterProps=["maxWidth"];const iA=ze({prop:"minWidth",transform:At}),sA=ze({prop:"height",transform:At}),lA=ze({prop:"maxHeight",transform:At}),uA=ze({prop:"minHeight",transform:At});ze({prop:"size",cssProperty:"width",transform:At}),ze({prop:"size",cssProperty:"height",transform:At});const cA=ze({prop:"boxSizing"});Za(aA,_l,iA,sA,lA,uA,cA);const Pl={border:{themeKey:"borders",transform:Jt},borderTop:{themeKey:"borders",transform:Jt},borderRight:{themeKey:"borders",transform:Jt},borderBottom:{themeKey:"borders",transform:Jt},borderLeft:{themeKey:"borders",transform:Jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ja},color:{themeKey:"palette",transform:_n},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_n},backgroundColor:{themeKey:"palette",transform:_n},p:{style:st},pt:{style:st},pr:{style:st},pb:{style:st},pl:{style:st},px:{style:st},py:{style:st},padding:{style:st},paddingTop:{style:st},paddingRight:{style:st},paddingBottom:{style:st},paddingLeft:{style:st},paddingX:{style:st},paddingY:{style:st},paddingInline:{style:st},paddingInlineStart:{style:st},paddingInlineEnd:{style:st},paddingBlock:{style:st},paddingBlockStart:{style:st},paddingBlockEnd:{style:st},m:{style:it},mt:{style:it},mr:{style:it},mb:{style:it},ml:{style:it},mx:{style:it},my:{style:it},margin:{style:it},marginTop:{style:it},marginRight:{style:it},marginBottom:{style:it},marginLeft:{style:it},marginX:{style:it},marginY:{style:it},marginInline:{style:it},marginInlineStart:{style:it},marginInlineEnd:{style:it},marginBlock:{style:it},marginBlockStart:{style:it},marginBlockEnd:{style:it},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:ei},rowGap:{style:ri},columnGap:{style:ti},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:At},maxWidth:{style:_l},minWidth:{transform:At},height:{transform:At},maxHeight:{transform:At},minHeight:{transform:At},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fA(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function dA(e,t){return typeof e=="function"?e(t):e}function pA(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=qa(o,u)||{};return f?f(i):ur(i,n,m=>{let g=Xa(d,c,m);return m===g&&typeof m=="string"&&(g=Xa(d,c,`${r}${m==="default"?"":Cn(m)}`,m)),l===!1?g:{[l]:g}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Pl;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=$7(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const m=dA(u[h],a);if(m!=null)if(typeof m=="object")if(i[h])d=ko(d,e(h,m,a,i));else{const g=ur({theme:a},m,v=>({[h]:v}));fA(g,m)?d[h]=t({sx:m,theme:a}):d=ko(d,g)}else d=ko(d,e(h,m,a,i))}),_7(f,d)}return Array.isArray(o)?o.map(s):s(o)}return t}const kp=pA();kp.filterProps=["sx"];const Ml=kp,hA=["breakpoints","palette","spacing","shape"];function kl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=lr(e,hA),s=S7(r),l=L7(o);let u=sr({breakpoints:s,direction:"ltr",components:{},palette:be({mode:"light"},n),spacing:l,shape:be({},E7,a)},i);return u=t.reduce((c,f)=>sr(c,f),u),u.unstable_sxConfig=be({},Pl,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Ml({sx:f,theme:this})},u}function gA(e){return Object.keys(e).length===0}function Al(e=null){const t=Pe.useContext(vi.ThemeContext);return!t||gA(t)?e:t}const vA=kl();function mA(e=vA){return Al(e)}const bA=["variant"];function Ap(e){return e.length===0}function Dp(e){const{variant:t}=e,r=lr(e,bA);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=Ap(n)?e[o]:Cn(e[o]):n+=`${Ap(n)?o:Cn(o)}${Cn(e[o].toString())}`}),n}const yA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xA(e){return Object.keys(e).length===0}function wA(e){return typeof e=="string"&&e.charCodeAt(0)>96}const OA=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,TA=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(o=>{const a=Dp(o.props);n[a]=o.style}),n},CA=(e,t,r,n)=>{var o;const{ownerState:a={}}=e,i=[],s=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&i.push(t[Dp(l.props)])}),i};function ni(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const SA=kl(),Ip=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Io({defaultTheme:e,theme:t,themeId:r}){return xA(t)?e:t[r]||t}function EA(e){return e?(t,r)=>r[e]:null}function $A(e={}){const{themeId:t,defaultTheme:r=SA,rootShouldForwardProp:n=ni,slotShouldForwardProp:o=ni}=e,a=i=>Ml(be({},i,{theme:Io(be({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{O7(i,R=>R.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=EA(Ip(u))}=s,h=lr(s,yA),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=f||!1;let v;process.env.NODE_ENV!=="production"&&l&&(v=`${l}-${Ip(u||"Root")}`);let w=ni;u==="Root"||u==="root"?w=n:u?w=o:wA(i)&&(w=void 0);const T=w7(i,be({shouldForwardProp:w,label:v},h)),k=(R,...x)=>{const S=x?x.map(K=>typeof K=="function"&&K.__emotion_real!==K?pe=>K(be({},pe,{theme:Io(be({},pe,{defaultTheme:r,themeId:t}))})):K):[];let j=R;l&&d&&S.push(K=>{const pe=Io(be({},K,{defaultTheme:r,themeId:t})),Oe=OA(l,pe);if(Oe){const ye={};return Object.entries(Oe).forEach(([xe,ce])=>{ye[xe]=typeof ce=="function"?ce(be({},K,{theme:pe})):ce}),d(K,ye)}return null}),l&&!m&&S.push(K=>{const pe=Io(be({},K,{defaultTheme:r,themeId:t}));return CA(K,TA(l,pe),pe,l)}),g||S.push(a);const B=S.length-x.length;if(Array.isArray(R)&&B>0){const K=new Array(B).fill("");j=[...R,...K],j.raw=[...R.raw,...K]}else typeof R=="function"&&R.__emotion_real!==R&&(j=K=>R(be({},K,{theme:Io(be({},K,{defaultTheme:r,themeId:t}))})));const ue=T(j,...S);if(process.env.NODE_ENV!=="production"){let K;l&&(K=`${l}${Cn(u||"")}`),K===void 0&&(K=`Styled(${L8(i)})`),ue.displayName=K}return i.muiName&&(ue.muiName=i.muiName),ue};return T.withConfig&&(k.withConfig=T.withConfig),k}}function _A(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:pp(t.components[r].defaultProps,n)}function Dl(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 PA(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,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Rr(e){if(e.type)return e;if(e.charAt(0)==="#")return Rr(PA(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.
102
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Tn(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=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(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
103
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tn(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function oi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):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 MA(e){e=Rr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,c=(u+r/30)%12)=>o-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),oi({type:s,values:l})}function jp(e){e=Rr(e);let t=e.type==="hsl"||e.type==="hsla"?Rr(MA(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 Lp(e,t){const r=jp(e),n=jp(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function H(e,t){return e=Rr(e),t=Dl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,oi(e)}function Il(e,t){if(e=Rr(e),t=Dl(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 oi(e)}function jl(e,t){if(e=Rr(e),t=Dl(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 oi(e)}const Np=Pe.createContext(null);process.env.NODE_ENV!=="production"&&(Np.displayName="ThemeContext");const Fp=Np;function Rp(){const e=Pe.useContext(Fp);return process.env.NODE_ENV!=="production"&&Pe.useDebugValue(e),e}const kA=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function AA(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(`
104
- `))),r}return be({},e,t)}function ai(e){const{children:t,theme:r}=e,n=Rp();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(`
105
- `));const o=Pe.useMemo(()=>{const a=n===null?r:AA(n,r);return a!=null&&(a[kA]=n!==null),a},[r,n]);return y.jsx(Fp.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(ai.propTypes={children:P.node,theme:P.oneOfType([P.object,P.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(ai.propTypes=sp(ai.propTypes));const Bp={};function Wp(e,t,r,n=!1){return Pe.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?be({},t,{[e]:a}):a;return n?()=>i:i}return e?be({},t,{[e]:r}):be({},t,r)},[e,t,r,n])}function ii(e){const{children:t,theme:r,themeId:n}=e,o=Al(Bp),a=Rp()||Bp;process.env.NODE_ENV!=="production"&&(o===null&&typeof r=="function"||n&&o&&!o[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(`
106
- `));const i=Wp(n,o,r),s=Wp(n,a,r,!0);return y.jsx(ai,{theme:s,children:y.jsx(vi.ThemeContext.Provider,{value:i,children:t})})}process.env.NODE_ENV!=="production"&&(ii.propTypes={children:P.node,theme:P.oneOfType([P.func,P.object]).isRequired,themeId:P.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(ii.propTypes=sp(ii.propTypes));function DA(e,t){return be({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const jo={black:"#000",white:"#fff"},IA={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"},Pn={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"},Mn={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"},Lo={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"},kn={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"},An={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"},Dn={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"},jA=["mode","contrastThreshold","tonalOffset"],Hp={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:jo.white,default:jo.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}},Ll={text:{primary:jo.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:jo.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 zp(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=jl(e.main,o):t==="dark"&&(e.dark=Il(e.main,a)))}function LA(e="light"){return e==="dark"?{main:kn[200],light:kn[50],dark:kn[400]}:{main:kn[700],light:kn[400],dark:kn[800]}}function NA(e="light"){return e==="dark"?{main:Pn[200],light:Pn[50],dark:Pn[400]}:{main:Pn[500],light:Pn[300],dark:Pn[700]}}function FA(e="light"){return e==="dark"?{main:Mn[500],light:Mn[300],dark:Mn[700]}:{main:Mn[700],light:Mn[400],dark:Mn[800]}}function RA(e="light"){return e==="dark"?{main:An[400],light:An[300],dark:An[700]}:{main:An[700],light:An[500],dark:An[900]}}function BA(e="light"){return e==="dark"?{main:Dn[400],light:Dn[300],dark:Dn[700]}:{main:Dn[800],light:Dn[500],dark:Dn[900]}}function WA(e="light"){return e==="dark"?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:"#ed6c02",light:Lo[500],dark:Lo[900]}}function HA(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=lr(e,jA),a=e.primary||LA(t),i=e.secondary||NA(t),s=e.error||FA(t),l=e.info||RA(t),u=e.success||BA(t),c=e.warning||WA(t);function f(g){const v=Lp(g,Ll.text.primary)>=r?Ll.text.primary:Hp.text.primary;if(process.env.NODE_ENV!=="production"){const w=Lp(g,v);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${v} on ${g}`,"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(`
107
- `))}return v}const d=({color:g,name:v,mainShade:w=500,lightShade:T=300,darkShade:k=700})=>{if(g=be({},g),!g.main&&g[w]&&(g.main=g[w]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
108
- The color object needs to have a \`main\` property or a \`${w}\` property.`:Tn(11,v?` (${v})`:"",w));if(typeof g.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
109
- \`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
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 b0(e){return Co(e,"spacing",8,"spacing")}function To(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 g4(e,t){return r=>e.reduce((n,i)=>(n[i]=To(t,r),n),{})}function m4(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=h4(r),o=g4(i,n),a=e[r];return Lr(e,a,o)}function x0(e,t){const r=b0(e.theme);return Object.keys(e).map(n=>m4(e,t,n,r)).reduce(wo,{})}function mt(e){return x0(e,Ua)}mt.propTypes=process.env.NODE_ENV!=="production"?Ua.reduce((e,t)=>(e[t]=Jr,e),{}):{},mt.filterProps=Ua;function vt(e){return x0(e,Ya)}vt.propTypes=process.env.NODE_ENV!=="production"?Ya.reduce((e,t)=>(e[t]=Jr,e),{}):{},vt.filterProps=Ya,process.env.NODE_ENV!=="production"&&p4.reduce((e,t)=>(e[t]=Jr,e),{});function v4(e=8){if(e.mui)return e;const t=b0({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 Ga(...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]?wo(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 y4=Ze({prop:"border",themeKey:"borders",transform:wr}),b4=Ze({prop:"borderTop",themeKey:"borders",transform:wr}),x4=Ze({prop:"borderRight",themeKey:"borders",transform:wr}),w4=Ze({prop:"borderBottom",themeKey:"borders",transform:wr}),C4=Ze({prop:"borderLeft",themeKey:"borders",transform:wr}),T4=Ze({prop:"borderColor",themeKey:"palette"}),S4=Ze({prop:"borderTopColor",themeKey:"palette"}),E4=Ze({prop:"borderRightColor",themeKey:"palette"}),O4=Ze({prop:"borderBottomColor",themeKey:"palette"}),P4=Ze({prop:"borderLeftColor",themeKey:"palette"}),qa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Co(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:To(t,n)});return Lr(e,e.borderRadius,r)}return null};qa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Jr}:{},qa.filterProps=["borderRadius"],Ga(y4,b4,x4,w4,C4,T4,S4,E4,O4,P4,qa);const Xa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Co(e.theme,"spacing",8,"gap"),r=n=>({gap:To(t,n)});return Lr(e,e.gap,r)}return null};Xa.propTypes=process.env.NODE_ENV!=="production"?{gap:Jr}:{},Xa.filterProps=["gap"];const Ka=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Co(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:To(t,n)});return Lr(e,e.columnGap,r)}return null};Ka.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Jr}:{},Ka.filterProps=["columnGap"];const Za=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Co(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:To(t,n)});return Lr(e,e.rowGap,r)}return null};Za.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Jr}:{},Za.filterProps=["rowGap"];const M4=Ze({prop:"gridColumn"}),_4=Ze({prop:"gridRow"}),$4=Ze({prop:"gridAutoFlow"}),A4=Ze({prop:"gridAutoColumns"}),k4=Ze({prop:"gridAutoRows"}),D4=Ze({prop:"gridTemplateColumns"}),j4=Ze({prop:"gridTemplateRows"}),I4=Ze({prop:"gridTemplateAreas"}),L4=Ze({prop:"gridArea"});Ga(Xa,Ka,Za,M4,_4,$4,A4,k4,D4,j4,I4,L4);function Qn(e,t){return t==="grey"?t:e}const F4=Ze({prop:"color",themeKey:"palette",transform:Qn}),R4=Ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qn}),N4=Ze({prop:"backgroundColor",themeKey:"palette",transform:Qn});Ga(F4,R4,N4);function Zt(e){return e<=1&&e!==0?`${e*100}%`:e}const B4=Ze({prop:"width",transform:Zt}),jc=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])||Dc[r]||Zt(r)}};return Lr(e,e.maxWidth,t)}return null};jc.filterProps=["maxWidth"];const z4=Ze({prop:"minWidth",transform:Zt}),W4=Ze({prop:"height",transform:Zt}),V4=Ze({prop:"maxHeight",transform:Zt}),H4=Ze({prop:"minHeight",transform:Zt});Ze({prop:"size",cssProperty:"width",transform:Zt}),Ze({prop:"size",cssProperty:"height",transform:Zt});const U4=Ze({prop:"boxSizing"});Ga(B4,jc,z4,W4,V4,H4,U4);const Ic={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:qa},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:Xa},rowGap:{style:Za},columnGap:{style:Ka},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zt},maxWidth:{style:jc},minWidth:{transform:Zt},height:{transform:Zt},maxHeight:{transform:Zt},minHeight:{transform:Zt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Y4(...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 G4(e,t){return typeof e=="function"?e(t):e}function q4(){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=Va(i,l)||{};return f?f(a):Lr(a,n,g=>{let m=Ha(d,u,g);return g===m&&typeof g=="string"&&(m=Ha(d,u,`${r}${g==="default"?"":qn(g)}`,g)),c===!1?m:{[c]:m}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:Ic;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=l4(o.breakpoints),f=Object.keys(u);let d=u;return Object.keys(l).forEach(h=>{const g=G4(l[h],o);if(g!=null)if(typeof g=="object")if(a[h])d=wo(d,e(h,g,o,a));else{const m=Lr({theme:o},g,y=>({[h]:y}));Y4(m,g)?d[h]=t({sx:g,theme:o}):d=wo(d,m)}else d=wo(d,e(h,g,o,a))}),c4(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const w0=q4();w0.filterProps=["sx"];const Lc=w0,X4=["breakpoints","palette","spacing","shape"];function Fc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=Ir(e,X4),s=a4(r),c=v4(i);let l=jr({breakpoints:s,direction:"ltr",components:{},palette:_e({mode:"light"},n),spacing:c,shape:_e({},s4,o)},a);return l=t.reduce((u,f)=>jr(u,f),l),l.unstable_sxConfig=_e({},Ic,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return Lc({sx:f,theme:this})},l}function K4(e){return Object.keys(e).length===0}function Rc(e=null){const t=be.useContext(bl.ThemeContext);return!t||K4(t)?e:t}const Z4=Fc();function Q4(e=Z4){return Rc(e)}const J4=["variant"];function C0(e){return e.length===0}function T0(e){const{variant:t}=e,r=Ir(e,J4);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=C0(n)?e[i]:qn(e[i]):n+=`${C0(n)?i:qn(i)}${qn(e[i].toString())}`}),n}const eC=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tC(e){return Object.keys(e).length===0}function rC(e){return typeof e=="string"&&e.charCodeAt(0)>96}const nC=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,iC=(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=T0(i.props);n[o]=i.style}),n},oC=(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[T0(c.props)])}),a};function Qa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const aC=Fc(),S0=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function So({defaultTheme:e,theme:t,themeId:r}){return tC(t)?e:t[r]||t}function sC(e){return e?(t,r)=>r[e]:null}function lC(e={}){const{themeId:t,defaultTheme:r=aC,rootShouldForwardProp:n=Qa,slotShouldForwardProp:i=Qa}=e,o=a=>Lc(_e({},a,{theme:So(_e({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{n4(a,P=>P.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:u,skipSx:f,overridesResolver:d=sC(S0(l))}=s,h=Ir(s,eC),g=u!==void 0?u:l&&l!=="Root"&&l!=="root"||!1,m=f||!1;let y;process.env.NODE_ENV!=="production"&&c&&(y=`${c}-${S0(l||"Root")}`);let x=Qa;l==="Root"||l==="root"?x=n:l?x=i:rC(a)&&(x=void 0);const b=r4(a,_e({shouldForwardProp:x,label:y},h)),T=(P,...w)=>{const E=w?w.map(W=>typeof W=="function"&&W.__emotion_real!==W?de=>W(_e({},de,{theme:So(_e({},de,{defaultTheme:r,themeId:t}))})):W):[];let O=P;c&&d&&E.push(W=>{const de=So(_e({},W,{defaultTheme:r,themeId:t})),ve=nC(c,de);if(ve){const ce={};return Object.entries(ve).forEach(([q,Y])=>{ce[q]=typeof Y=="function"?Y(_e({},W,{theme:de})):Y}),d(W,ce)}return null}),c&&!g&&E.push(W=>{const de=So(_e({},W,{defaultTheme:r,themeId:t}));return oC(W,iC(c,de),de,c)}),m||E.push(o);const _=E.length-w.length;if(Array.isArray(P)&&_>0){const W=new Array(_).fill("");O=[...P,...W],O.raw=[...P.raw,...W]}else typeof P=="function"&&P.__emotion_real!==P&&(O=W=>P(_e({},W,{theme:So(_e({},W,{defaultTheme:r,themeId:t}))})));const L=b(O,...E);if(process.env.NODE_ENV!=="production"){let W;c&&(W=`${c}${qn(l||"")}`),W===void 0&&(W=`Styled(${v3(a)})`),L.displayName=W}return a.muiName&&(L.muiName=a.muiName),L};return b.withConfig&&(T.withConfig=b.withConfig),T}}function cC(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:n0(t.components[r].defaultProps,n)}function Nc(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 uC(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(uC(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().`:Gn(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.`:Gn(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}function Ja(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 fC(e){e=bn(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,u=(l+r/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),Ja({type:s,values:c})}function E0(e){e=bn(e);let t=e.type==="hsl"||e.type==="hsla"?bn(fC(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 O0(e,t){const r=E0(e),n=E0(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function V(e,t){return e=bn(e),t=Nc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ja(e)}function Bc(e,t){if(e=bn(e),t=Nc(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 Ja(e)}function zc(e,t){if(e=bn(e),t=Nc(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 Ja(e)}const P0=be.createContext(null);process.env.NODE_ENV!=="production"&&(P0.displayName="ThemeContext");const M0=P0;function _0(){const e=be.useContext(M0);return process.env.NODE_ENV!=="production"&&be.useDebugValue(e),e}const dC=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function hC(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 _e({},e,t)}function es(e){const{children:t,theme:r}=e,n=_0();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=be.useMemo(()=>{const o=n===null?r:hC(n,r);return o!=null&&(o[dC]=n!==null),o},[r,n]);return v.jsx(M0.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(es.propTypes={children:A.node,theme:A.oneOfType([A.object,A.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(es.propTypes=Zp(es.propTypes));const $0={};function A0(e,t,r,n=!1){return be.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const o=r(i),a=e?_e({},t,{[e]:o}):o;return n?()=>a:a}return e?_e({},t,{[e]:r}):_e({},t,r)},[e,t,r,n])}function ts(e){const{children:t,theme:r,themeId:n}=e,i=Rc($0),o=_0()||$0;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=A0(n,i,r),s=A0(n,o,r,!0);return v.jsx(es,{theme:s,children:v.jsx(bl.ThemeContext.Provider,{value:a,children:t})})}process.env.NODE_ENV!=="production"&&(ts.propTypes={children:A.node,theme:A.oneOfType([A.func,A.object]).isRequired,themeId:A.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(ts.propTypes=Zp(ts.propTypes));function pC(e,t){return _e({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Eo={black:"#000",white:"#fff"},gC={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"},Jn={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"},ei={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"},Oo={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"},ti={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"},ri={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"},ni={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"},mC=["mode","contrastThreshold","tonalOffset"],k0={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:Eo.white,default:Eo.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}},Wc={text:{primary:Eo.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:Eo.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 D0(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=zc(e.main,i):t==="dark"&&(e.dark=Bc(e.main,o)))}function vC(e="light"){return e==="dark"?{main:ti[200],light:ti[50],dark:ti[400]}:{main:ti[700],light:ti[400],dark:ti[800]}}function yC(e="light"){return e==="dark"?{main:Jn[200],light:Jn[50],dark:Jn[400]}:{main:Jn[500],light:Jn[300],dark:Jn[700]}}function bC(e="light"){return e==="dark"?{main:ei[500],light:ei[300],dark:ei[700]}:{main:ei[700],light:ei[400],dark:ei[800]}}function xC(e="light"){return e==="dark"?{main:ri[400],light:ri[300],dark:ri[700]}:{main:ri[700],light:ri[500],dark:ri[900]}}function wC(e="light"){return e==="dark"?{main:ni[400],light:ni[300],dark:ni[700]}:{main:ni[800],light:ni[500],dark:ni[900]}}function CC(e="light"){return e==="dark"?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:"#ed6c02",light:Oo[500],dark:Oo[900]}}function TC(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Ir(e,mC),o=e.primary||vC(t),a=e.secondary||yC(t),s=e.error||bC(t),c=e.info||xC(t),l=e.success||wC(t),u=e.warning||CC(t);function f(m){const y=O0(m,Wc.text.primary)>=r?Wc.text.primary:k0.text.primary;if(process.env.NODE_ENV!=="production"){const x=O0(m,y);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${y} on ${m}`,"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 y}const d=({color:m,name:y,mainShade:x=500,lightShade:b=300,darkShade:T=700})=>{if(m=_e({},m),!m.main&&m[x]&&(m.main=m[x]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
89
+ The color object needs to have a \`main\` property or a \`${x}\` property.`:Gn(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
90
+ \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
110
91
 
111
92
  Did you intend to use one of the following approaches?
112
93
 
@@ -118,7 +99,150 @@ const theme1 = createTheme({ palette: {
118
99
 
119
100
  const theme2 = createTheme({ palette: {
120
101
  primary: { main: green[500] },
121
- } });`:Tn(12,v?` (${v})`:"",JSON.stringify(g.main)));return zp(g,"light",T,n),zp(g,"dark",k,n),g.contrastText||(g.contrastText=f(g.main)),g},h={dark:Ll,light:Hp};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),sr(be({common:be({},jo),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:IA,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),o)}const zA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function UA(e){return Math.round(e*1e5)/1e5}const Up={textTransform:"uppercase"},Yp='"Roboto", "Helvetica", "Arial", sans-serif';function YA(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Yp,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=lr(r,zA);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=o/14,m=f||(w=>`${w/u*h}rem`),g=(w,T,k,R,x)=>be({fontFamily:n,fontWeight:w,fontSize:m(T),lineHeight:k},n===Yp?{letterSpacing:`${UA(R/T)}em`}:{},x,c),v={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,Up),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Up),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sr(be({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},v),d,{clone:!1})}const GA=.2,VA=.14,qA=.12;function tt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${GA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${VA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qA})`].join(",")}const XA=["none",tt(0,2,1,-1,0,1,1,0,0,1,3,0),tt(0,3,1,-2,0,2,2,0,0,1,5,0),tt(0,3,3,-2,0,3,4,0,0,1,8,0),tt(0,2,4,-1,0,4,5,0,0,1,10,0),tt(0,3,5,-1,0,5,8,0,0,1,14,0),tt(0,3,5,-1,0,6,10,0,0,1,18,0),tt(0,4,5,-2,0,7,10,1,0,2,16,1),tt(0,5,5,-3,0,8,10,1,0,3,14,2),tt(0,5,6,-3,0,9,12,1,0,3,16,2),tt(0,6,6,-3,0,10,14,1,0,4,18,3),tt(0,6,7,-4,0,11,15,1,0,4,20,3),tt(0,7,8,-4,0,12,17,2,0,5,22,4),tt(0,7,8,-4,0,13,19,2,0,5,24,4),tt(0,7,9,-4,0,14,21,2,0,5,26,4),tt(0,8,9,-5,0,15,22,2,0,6,28,5),tt(0,8,10,-5,0,16,24,2,0,6,30,5),tt(0,8,11,-5,0,17,26,2,0,6,32,5),tt(0,9,11,-5,0,18,28,2,0,7,34,6),tt(0,9,12,-6,0,19,29,2,0,7,36,6),tt(0,10,13,-6,0,20,31,3,0,8,38,7),tt(0,10,13,-6,0,21,33,3,0,8,40,7),tt(0,10,14,-6,0,22,35,3,0,8,42,7),tt(0,11,14,-7,0,23,36,3,0,9,44,8),tt(0,11,15,-7,0,24,38,3,0,9,46,8)],KA=["duration","easing","delay"],QA={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)"},ZA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gp(e){return`${Math.round(e)}ms`}function JA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function e9(e){const t=be({},QA,e.easing),r=be({},ZA,e.duration);return be({getAutoHeightDuration:JA,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:l=0}=a,u=lr(a,KA);if(process.env.NODE_ENV!=="production"){const c=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!c(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!c(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!c(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
122
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:Gp(i)} ${s} ${typeof l=="string"?l:Gp(l)}`).join(",")}},e,{easing:t,duration:r})}const t9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},r9=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Vp(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=lr(e,r9);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.":Tn(18));const s=HA(n),l=kl(e);let u=sr(l,{mixins:DA(l.breakpoints,r),palette:s,shadows:XA.slice(),typography:YA(s,a),transitions:e9(o),zIndex:be({},t9)});if(u=sr(u,i),u=t.reduce((c,f)=>sr(c,f),u),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 g=d[m];if(c.indexOf(m)!==-1&&Object.keys(g).length>0){if(process.env.NODE_ENV!=="production"){const v=B8("",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}`]:g}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
123
- `))}d[m]={}}}};Object.keys(u.components).forEach(d=>{const h=u.components[d].styleOverrides;h&&d.indexOf("Mui")===0&&f(h,d)})}return u.unstable_sxConfig=be({},Pl,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Ml({sx:f,theme:this})},u}const qp=Vp();function Nl(){const e=mA(qp);return process.env.NODE_ENV!=="production"&&Pe.useDebugValue(e),e[Ra]||e}const Et=$A({themeId:Ra,defaultTheme:qp,rootShouldForwardProp:e=>ni(e)&&e!=="classes"}),n9=["theme"];function Xp(e){let{theme:t}=e,r=lr(e,n9);const n=t[Ra];return y.jsx(ii,be({},r,{themeId:n?Ra:void 0,theme:n||t}))}process.env.NODE_ENV!=="production"&&(Xp.propTypes={children:P.node,theme:P.oneOfType([P.object,P.func]).isRequired});var Kp={exports:{}},Qp={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]},Zp={exports:{}},o9=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")},a9=o9,i9=Array.prototype.concat,s9=Array.prototype.slice,Jp=Zp.exports=function(t){for(var r=[],n=0,o=t.length;n<o;n++){var a=t[n];a9(a)?r=i9.call(r,s9.call(a)):r.push(a)}return r};Jp.wrap=function(e){return function(){return e(Jp(arguments))}};var l9=Zp.exports,No=Qp,Fo=l9,eh=Object.hasOwnProperty,th=Object.create(null);for(var Fl in No)eh.call(No,Fl)&&(th[No[Fl]]=Fl);var Dt=Kp.exports={to:{},get:{}};Dt.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=Dt.get.hsl(e),n="hsl";break;case"hwb":r=Dt.get.hwb(e),n="hwb";break;default:r=Dt.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},Dt.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*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,i=[0,0,0,1],s,l,u;if(s=e.match(r)){for(u=s[2],s=s[1],l=0;l<3;l++){var c=l*2;i[l]=parseInt(s.slice(c,c+2),16)}u&&(i[3]=parseInt(u,16)/255)}else if(s=e.match(t)){for(s=s[1],u=s[3],l=0;l<3;l++)i[l]=parseInt(s[l]+s[l],16);u&&(i[3]=parseInt(u+u,16)/255)}else if(s=e.match(n)){for(l=0;l<3;l++)i[l]=parseInt(s[l+1],0);s[4]&&(s[5]?i[3]=parseFloat(s[4])*.01:i[3]=parseFloat(s[4]))}else if(s=e.match(o)){for(l=0;l<3;l++)i[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?i[3]=parseFloat(s[4])*.01:i[3]=parseFloat(s[4]))}else return(s=e.match(a))?s[1]==="transparent"?[0,0,0,0]:eh.call(No,s[1])?(i=No[s[1]],i[3]=1,i):null:null;for(l=0;l<3;l++)i[l]=br(i[l],0,255);return i[3]=br(i[3],0,1),i},Dt.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]),o=(parseFloat(r[1])%360+360)%360,a=br(parseFloat(r[2]),0,100),i=br(parseFloat(r[3]),0,100),s=br(isNaN(n)?1:n,0,1);return[o,a,i,s]}return null},Dt.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]),o=(parseFloat(r[1])%360+360)%360,a=br(parseFloat(r[2]),0,100),i=br(parseFloat(r[3]),0,100),s=br(isNaN(n)?1:n,0,1);return[o,a,i,s]}return null},Dt.to.hex=function(){var e=Fo(arguments);return"#"+si(e[0])+si(e[1])+si(e[2])+(e[3]<1?si(Math.round(e[3]*255)):"")},Dt.to.rgb=function(){var e=Fo(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]+")"},Dt.to.rgb.percent=function(){var e=Fo(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]+")"},Dt.to.hsl=function(){var e=Fo(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Dt.to.hwb=function(){var e=Fo(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Dt.to.keyword=function(e){return th[e.slice(0,3)]};function br(e,t,r){return Math.min(Math.max(t,e),r)}function si(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var u9=Kp.exports;const Ro=Qp,rh={};for(const e of Object.keys(Ro))rh[Ro[e]]=e;const ne={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 nh=ne;for(const e of Object.keys(ne)){if(!("channels"in ne[e]))throw new Error("missing channels property: "+e);if(!("labels"in ne[e]))throw new Error("missing channel labels property: "+e);if(ne[e].labels.length!==ne[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=ne[e];delete ne[e].channels,delete ne[e].labels,Object.defineProperty(ne[e],"channels",{value:t}),Object.defineProperty(ne[e],"labels",{value:r})}ne.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=a-o;let s,l;a===o?s=0:t===a?s=(r-n)/i:r===a?s=2+(n-t)/i:n===a&&(s=4+(t-r)/i),s=Math.min(s*60,360),s<0&&(s+=360);const u=(o+a)/2;return a===o?l=0:u<=.5?l=i/(a+o):l=i/(2-a-o),[s,l*100,u*100]},ne.rgb.hsv=function(e){let t,r,n,o,a;const i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),f=function(d){return(u-d)/6/c+1/2};return c===0?(o=0,a=0):(a=c/u,t=f(i),r=f(s),n=f(l),i===u?o=n-r:s===u?o=1/3+t-n:l===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,u*100]},ne.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=ne.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,a*100,n*100]},ne.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n),a=(1-t-o)/(1-o)||0,i=(1-r-o)/(1-o)||0,s=(1-n-o)/(1-o)||0;return[a*100,i*100,s*100,o*100]};function c9(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ne.rgb.keyword=function(e){const t=rh[e];if(t)return t;let r=1/0,n;for(const o of Object.keys(Ro)){const a=Ro[o],i=c9(e,a);i<r&&(r=i,n=o)}return n},ne.keyword.rgb=function(e){return Ro[e]},ne.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 o=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,i=t*.0193+r*.1192+n*.9505;return[o*100,a*100,i*100]},ne.rgb.lab=function(e){const t=ne.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*n-16,i=500*(r-n),s=200*(n-o);return[a,i,s]},ne.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,a,i;if(r===0)return i=n*255,[i,i,i];n<.5?o=n*(1+r):o=n+r-n*r;const s=2*n-o,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?i=s+(o-s)*6*a:2*a<1?i=o:3*a<2?i=s+(o-s)*(2/3-a)*6:i=s,l[u]=i*255;return l},ne.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=a<=1?a:2-a;const i=(n+r)/2,s=n===0?2*o/(a+o):2*r/(n+r);return[t,s*100,i*100]},ne.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),i=255*n*(1-r),s=255*n*(1-r*a),l=255*n*(1-r*(1-a));switch(n*=255,o){case 0:return[n,l,i];case 1:return[s,n,i];case 2:return[i,n,l];case 3:return[i,s,n];case 4:return[l,i,n];case 5:return[n,i,s]}},ne.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let a,i;i=(2-r)*n;const s=(2-r)*o;return a=r*o,a/=s<=1?s:2-s,a=a||0,i/=2,[t,a*100,i*100]},ne.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let a;o>1&&(r/=o,n/=o);const i=Math.floor(6*t),s=1-n;a=6*t-i,i&1&&(a=1-a);const l=r+a*(s-r);let u,c,f;switch(i){default:case 6:case 0:u=s,c=l,f=r;break;case 1:u=l,c=s,f=r;break;case 2:u=r,c=s,f=l;break;case 3:u=r,c=l,f=s;break;case 4:u=l,c=r,f=s;break;case 5:u=s,c=r,f=l;break}return[u*255,c*255,f*255]},ne.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,r*(1-o)+o),s=1-Math.min(1,n*(1-o)+o);return[a*255,i*255,s*255]},ne.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,a,i;return o=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,i=t*.0557+r*-.204+n*1.057,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=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[o*255,a*255,i*255]},ne.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 o=116*r-16,a=500*(t-r),i=200*(r-n);return[o,a,i]},ne.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let o,a,i;a=(t+16)/116,o=r/500+a,i=a-n/200;const s=a**3,l=o**3,u=i**3;return a=s>.008856?s:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o*=95.047,a*=100,i*=108.883,[o,a,i]},ne.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);const i=Math.sqrt(r*r+n*n);return[t,i,o]},ne.lch.lab=function(e){const t=e[0],r=e[1],o=e[2]/360*2*Math.PI,a=r*Math.cos(o),i=r*Math.sin(o);return[t,a,i]},ne.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let a=t===null?ne.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(i+=60),i},ne.hsv.ansi16=function(e){return ne.rgb.ansi16(ne.hsv.rgb(e),e[2])},ne.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)},ne.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,o=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,o,a]},ne.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,n,o]},ne.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},ne.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),o=n>>16&255,a=n>>8&255,i=n&255;return[o,a,i]},ne.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),i=o-a;let s,l;return i<1?s=a/(1-i):s=0,i<=0?l=0:o===t?l=(r-n)/i%6:o===r?l=2+(n-t)/i:l=4+(t-r)/i,l/=6,l%=1,[l*360,i*100,s*100]},ne.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]},ne.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]},ne.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 o=[0,0,0],a=t%1*6,i=a%1,s=1-i;let l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-r)*n,[(r*o[0]+l)*255,(r*o[1]+l)*255,(r*o[2]+l)*255]},ne.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]},ne.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]},ne.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]},ne.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,o=n-t;let a=0;return o<1&&(a=(n-o)/(1-o)),[e[0],o*100,a*100]},ne.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},ne.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},ne.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},ne.gray.hsl=function(e){return[0,0,e[0]]},ne.gray.hsv=ne.gray.hsl,ne.gray.hwb=function(e){return[0,100,e[0]]},ne.gray.cmyk=function(e){return[0,0,0,e[0]]},ne.gray.lab=function(e){return[e[0],0,0]},ne.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},ne.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const li=nh;function f9(){const e={},t=Object.keys(li);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function d9(e){const t=f9(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),o=Object.keys(li[n]);for(let a=o.length,i=0;i<a;i++){const s=o[i],l=t[s];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(s))}}return t}function p9(e,t){return function(r){return t(e(r))}}function h9(e,t){const r=[t[e].parent,e];let n=li[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=p9(li[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}var g9=function(e){const t=d9(e),r={},n=Object.keys(t);for(let o=n.length,a=0;a<o;a++){const i=n[a];t[i].parent!==null&&(r[i]=h9(i,t))}return r};const Rl=nh,v9=g9,In={},m9=Object.keys(Rl);function b9(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 y9(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const o=e(r);if(typeof o=="object")for(let a=o.length,i=0;i<a;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}m9.forEach(e=>{In[e]={},Object.defineProperty(In[e],"channels",{value:Rl[e].channels}),Object.defineProperty(In[e],"labels",{value:Rl[e].labels});const t=v9(e);Object.keys(t).forEach(n=>{const o=t[n];In[e][n]=y9(o),In[e][n].raw=b9(o)})});var x9=In;const jn=u9,It=x9,oh=["keyword","gray","hex"],Bl={};for(const e of Object.keys(It))Bl[[...It[e].labels].sort().join("")]=e;const ui={};function mt(e,t){if(!(this instanceof mt))return new mt(e,t);if(t&&t in oh&&(t=null),t&&!(t in It))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 mt)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=jn.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,n=It[this.model].channels,this.color=o.value.slice(0,n),this.valpha=typeof o.value[n]=="number"?o.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=It[this.model].channels;const o=Array.prototype.slice.call(e,0,n);this.color=Wl(o,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 o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=o.sort().join("");if(!(a in Bl))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Bl[a];const{labels:i}=It[this.model],s=[];for(r=0;r<i.length;r++)s.push(e[i[r]]);this.color=Wl(s)}if(ui[this.model])for(n=It[this.model].channels,r=0;r<n;r++){const o=ui[this.model][r];o&&(this.color[r]=o(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}mt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in jn.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return jn.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 jn.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=It[this.model],{labels:r}=It[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 mt([...this.color.map(O9(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new mt([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:lt("rgb",0,vt(255)),green:lt("rgb",1,vt(255)),blue:lt("rgb",2,vt(255)),hue:lt(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:lt("hsl",1,vt(100)),lightness:lt("hsl",2,vt(100)),saturationv:lt("hsv",1,vt(100)),value:lt("hsv",2,vt(100)),chroma:lt("hcg",1,vt(100)),gray:lt("hcg",2,vt(100)),white:lt("hwb",1,vt(100)),wblack:lt("hwb",2,vt(100)),cyan:lt("cmyk",0,vt(100)),magenta:lt("cmyk",1,vt(100)),yellow:lt("cmyk",2,vt(100)),black:lt("cmyk",3,vt(100)),x:lt("xyz",0,vt(95.047)),y:lt("xyz",1,vt(100)),z:lt("xyz",2,vt(108.833)),l:lt("lab",0,vt(100)),a:lt("lab",1),b:lt("lab",2),keyword(e){return e!==void 0?new mt(e):It[this.model].keyword(this.color)},hex(e){return e!==void 0?new mt(e):jn.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new mt(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),jn.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 o=n/255;t[r]=o<=.04045?o/12.92:((o+.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 mt.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(),o=t===void 0?.5:t,a=2*o-1,i=r.alpha()-n.alpha(),s=((a*i===-1?a:(a+i)/(1+a*i))+1)/2,l=1-s;return mt.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(It)){if(oh.includes(e))continue;const{channels:t}=It[e];mt.prototype[e]=function(...r){return this.model===e?new mt(this):r.length>0?new mt(r,e):new mt([...T9(It[this.model][e].raw(this.color)),this.valpha],e)},mt[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=Wl(r,t)),new mt(n,e)}}function w9(e,t){return Number(e.toFixed(t))}function O9(e){return function(t){return w9(t,e)}}function lt(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(ui[n]||(ui[n]=[]))[t]=r;return e=e[0],function(n){let o;return n!==void 0?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function vt(e){return function(t){return Math.max(0,Math.min(e,t))}}function T9(e){return Array.isArray(e)?e:[e]}function Wl(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var C9=mt;const S9=Xn(C9),Ve={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},E9={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},$9={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},_9={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},P9={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},M9={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:Ve[800]},Ln={common:{black:"#000",white:"#fff"},primary:E9,secondary:$9,info:_9,success:P9,warning:M9,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:Ve,divider:H(Ve[500],.24),action:{hover:H(Ve[500],.08),selected:H(Ve[500],.16),disabled:H(Ve[500],.8),disabledBackground:H(Ve[500],.24),focus:H(Ve[500],.24),hoverOpacity:.08,disabledOpacity:.48}},yr=e=>{const t={...Ln,mode:"light",text:{primary:Ve[800],secondary:Ve[600],disabled:Ve[500]},background:{paper:"#fff",default:Ve[100],neutral:Ve[200]},action:{...Ln.action,active:Ve[600]}},r={...Ln,mode:"dark",text:{primary:"#fff",secondary:Ve[500],disabled:Ve[600]},background:{paper:Ve[800],default:Ve[900],neutral:H(Ve[500],.16)},action:{...Ln.action,active:Ve[500]}};return e==="light"?t:r},k9=e=>({lighter:jl(e,.815),light:jl(e,.225),main:e,dark:Il(e,.15),darker:Il(e,.35)}),A9=e=>S9(e).luminosity()<=.55?"#fff":Ve[900],D9=e=>{const t=k9(e);return{...Ln,primary:{...t,contrastText:A9(t.main)},mode:"light",text:{primary:Ve[800],secondary:Ve[600],disabled:Ve[500]},background:{paper:"#fff",default:Ve[100],neutral:Ve[200]},action:{active:Ve[600],...Ln.action}}},ah=yr("light"),I9=ah.grey[500],j9=ah.common.black;function ih(e,t){const r=H(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 ${H(t||yr("light").primary.main,.24)}`,info:`0 8px 16px 0 ${H(yr("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${H(yr("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${H(yr("light").success.main,.24)}`,warning:`0 8px 16px 0 ${H(yr("light").warning.main,.24)}`,error:`0 8px 16px 0 ${H(yr("light").error.main,.24)}`,card:`0 0 2px 0 ${H(e,.2)}, 0 12px 24px -4px ${H(e,.12)}`,dialog:`-40px 40px 80px -8px ${H(e,.24)}`,dropdown:`0 0 2px 0 ${H(e,.24)}, -20px 20px 40px -4px ${H(e,.24)}`}}const L9=(e,t)=>ih(e==="light"?I9:j9,t),N9=()=>y.jsx(W.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"}}}}),F9=["primary","secondary","info","success","warning","error"];function R9(e){const t=e.palette.mode==="light",r=n=>{const o=n.color==="default",a=n.color==="inherit",i=n.variant==="circular",s=n.variant==="extended",l=n.variant==="outlined",u=n.variant==="outlinedExtended",c=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(i||s)&&{...(o||a)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...a&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(l||u)&&{boxShadow:"none",backgroundColor:"transparent",...(o||a)&&{border:`solid 1px ${H(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...o&&{...!t&&{color:e.palette.text.secondary}}},...(c||f)&&{boxShadow:"none",...o&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...a&&{backgroundColor:H(e.palette.grey[500],.08),"&:hover":{backgroundColor:H(e.palette.grey[500],.24)}}}},h=F9.map(v=>({...n.color===v&&{...(i||s)&&{boxShadow:e.customShadows[v],"&:hover":{backgroundColor:e.palette[v].dark}},...(l||u)&&{color:e.palette[v].main,border:`solid 1px ${H(e.palette[v].main,.48)}`,"&:hover":{backgroundColor:H(e.palette[v].main,.08),border:`solid 1px ${e.palette[v].main}`}},...(c||f)&&{color:e.palette[v][t?"dark":"light"],backgroundColor:H(e.palette[v].main,.16),"&:hover":{backgroundColor:H(e.palette[v].main,.32)}}}})),m={"&.Mui-disabled":{...(l||u)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},g={...(s||u||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,g]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function B9(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 W9(e){return y.jsx(W.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 sh(e){return y.jsx(W.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 H9(e){return y.jsx(W.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 z9(e){return y.jsx(W.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 U9(e){return y.jsx(W.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 Y9(e){return y.jsx(W.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 G9(e){return y.jsx(W.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 V9(e){return y.jsx(W.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 q9(e){return y.jsx(W.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 X9(e){return y.jsx(W.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 K9(e){return y.jsx(W.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 Q9(e){return y.jsx(W.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 Z9(e){return y.jsx(W.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 J9(e){return y.jsx(W.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 eD(e){return y.jsx(W.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 tD=["primary","secondary","info","success","warning","error"];function rD(e){const t=e.palette.mode==="light",r=n=>{const o=n.color==="default",a=n.variant==="filled",i=n.variant==="outlined",s=n.variant==="soft",l={...o&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:H(e.palette.grey[500],.48)},...i&&{border:`solid 1px ${H(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:H(e.palette.grey[500],.16),"&:hover":{backgroundColor:H(e.palette.grey[500],.32)}}}};return[...tD.map(c=>({...n.color===c&&{"& .MuiChip-avatar":{color:e.palette[c].lighter,backgroundColor:e.palette[c].dark},...a&&{"& .MuiChip-deleteIcon":{color:H(e.palette[c].contrastText,.56),"&:hover":{color:e.palette[c].contrastText}}},...s&&{color:e.palette[c][t?"dark":"light"],backgroundColor:H(e.palette[c].main,.16),"&:hover":{backgroundColor:H(e.palette[c].main,.32)},"& .MuiChip-deleteIcon":{color:H(e.palette[c][t?"dark":"light"],.48),"&:hover":{color:e.palette[c].dark}}}}})),l]};return{MuiChip:{defaultProps:{deleteIcon:y.jsx(W9,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function nD(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 oD(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function aD(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function iD(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 sD(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 lD=["info","success","warning","error"];function uD(e){const t=e.palette.mode==="light",r=n=>{const o=n.variant==="standard",a=n.variant==="filled",i=n.variant==="outlined";return[...lD.map(l=>({...n.severity===l&&{...o&&{color:e.palette[l][t?"darker":"lighter"],backgroundColor:e.palette[l][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[l][t?"main":"light"]}},...a&&{color:e.palette[l].contrastText,backgroundColor:e.palette[l].main},...i&&{color:e.palette[l][t?"dark":"light"],border:`solid 1px ${e.palette[l].main}`,"& .MuiAlert-icon":{color:e.palette[l].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:y.jsx(H9,{}),success:y.jsx(U9,{}),warning:y.jsx(z9,{}),error:y.jsx(Y9,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function cD(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function fD(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function dD(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:H(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:H(e.palette.grey[500],.08),"&:hover":{backgroundColor:H(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:H(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:H(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 pD(e){return{MuiRadio:{defaultProps:{icon:y.jsx(X9,{}),checkedIcon:y.jsx(K9,{})},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 hD(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${H(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function gD(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 vD(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:H(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 mD(e){return{MuiRating:{defaultProps:{emptyIcon:y.jsx(sh,{}),icon:y.jsx(sh,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:H(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function bD(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 yD=["primary","secondary","info","success","warning","error"];function xD(e){const t=e.palette.mode==="light",r=n=>{const o=n.color==="inherit",a=n.variant==="contained",i=n.variant==="outlined",s=n.variant==="text",l=n.variant==="soft",u=n.size==="small",c=n.size==="large",f={...o&&{...a&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...i&&{borderColor:H(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...l&&{color:e.palette.text.primary,backgroundColor:H(e.palette.grey[500],.08),"&:hover":{backgroundColor:H(e.palette.grey[500],.24)}}}},d=yD.map(g=>({...n.color===g&&{...a&&{"&:hover":{boxShadow:e.customShadows[g]}},...l&&{color:e.palette[g][t?"dark":"light"],backgroundColor:H(e.palette[g].main,.16),"&:hover":{backgroundColor:H(e.palette[g].main,.32)}}}})),h={"&.Mui-disabled":{...l&&{backgroundColor:e.palette.action.disabledBackground}}},m={...u&&{height:30,fontSize:13,...l&&{padding:"4px 10px"}},...c&&{height:48,fontSize:15,...l&&{padding:"8px 22px"}}};return[...d,f,h,m]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function wD(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:H(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 OD(e){return{MuiSelect:{defaultProps:{IconComponent:Q9}}}}function TD(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function CD(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 SD(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function ED(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function $D(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 _D(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function PD(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:H(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const MD=["primary","secondary","info","success","warning","error"];function kD(e){const t=r=>{const n=r.variant==="buffer",o={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...MD.map(i=>({...r.color===i&&{backgroundColor:W.alpha(e.palette[i].main,.24)}})),o]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function AD(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function DD(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:y.jsx(Z9,{sx:{width:20,height:20}}),defaultExpandIcon:y.jsx(J9,{sx:{width:20,height:20}}),defaultEndIcon:y.jsx(eD,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function ID(e){return{MuiCheckbox:{defaultProps:{icon:y.jsx(G9,{}),checkedIcon:y.jsx(V9,{}),indeterminateIcon:y.jsx(q9,{})},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 jD(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 LD(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const ND=["primary","secondary","info","success","warning","error"];function FD(e){const t=e.palette.mode==="light",r=n=>{const o=n.variant==="outlined",a=n.variant==="soft",i={"& .MuiPaginationItem-root":{...o&&{borderColor:H(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...ND.map(l=>({...n.color===l&&{...a&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[l][t?"dark":"light"],backgroundColor:H(e.palette[l].main,.16),"&:hover":{backgroundColor:H(e.palette[l].main,.32)}}}}}})),i]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function RD(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 BD=["primary","secondary","info","success","warning","error"];function WD(e){const t=r=>{const n=r.color==="inherit",o=r.variant==="contained",a=r.variant==="outlined",i=r.variant==="text",s=r.variant==="soft",l=r.orientation==="horizontal",u=r.orientation==="vertical",c={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!a&&{borderStyle:"solid",...n&&{borderColor:H(e.palette.grey[500],.32)},...l&&{borderWidth:"0px 1px 0px 0px"},...u&&{borderWidth:"0px 0px 1px 0px"}}}}},f=BD.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!a&&{...r.color===h&&{...o&&{borderColor:H(e.palette[h].dark,.48)},...i&&{borderColor:H(e.palette[h].main,.48)},...s&&{borderColor:H(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 HD(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:H(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 zD=["primary","secondary","info","success","warning","error"];function UD(e){const t=r=>{const o={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},a=zD.map(s=>({...r.color===s&&{"&:hover":{borderColor:H(e.palette[s].main,.48),backgroundColor:H(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),i={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...a,o,i]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${H(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function YD(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 GD(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 VD(e){return Object.assign(R9(e),nD(e),rD(e),B9(e),oD(e),aD(),dD(e),pD(e),cD(),iD(e),sD(e),fD(),uD(e),wD(e),OD(),xD(e),mD(e),gD(e),vD(e),bD(e),hD(e),ED(e),CD(e),SD(e),TD(),ID(e),$D(e),_D(e),AD(e),DD(e),PD(e),kD(e),jD(e),LD(e),FD(e),WD(e),RD(e),HD(e),YD(e),UD(e),GD())}const lh=yr("light"),qD=lh.grey[500],XD=lh.common.black;function uh(e){const t=H(e,.2),r=H(e,.14),n=H(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 KD=e=>uh(e==="light"?qD:XD);function wt(e){return`${e/16}rem`}function Nn({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:wt(e)},"@media (min-width:900px)":{fontSize:wt(t)},"@media (min-width:1200px)":{fontSize:wt(r)}}}const QD={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:wt(40),...Nn({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:wt(32),...Nn({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:wt(24),...Nn({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:wt(20),...Nn({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:wt(18),...Nn({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:wt(17),...Nn({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:wt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:wt(14)},body1:{lineHeight:1.5,fontSize:wt(16)},body2:{lineHeight:22/14,fontSize:wt(14)},caption:{lineHeight:1.5,fontSize:wt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:wt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:wt(14),textTransform:"capitalize"}},ch=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const o=p.useMemo(()=>({palette:D9(t),typography:QD,shape:{borderRadius:8},direction:r,shadows:KD(n),customShadows:L9(n,t)}),[t,r,n]),a=Vp(o);return a.components=VD(a),y.jsx(Ep,{injectFirst:!0,children:y.jsxs(Xp,{theme:a,children:[y.jsx(W.CssBaseline,{}),y.jsx(N9,{}),e]})})},tL="",rL="",ZD=({themeColor:e,children:t})=>y.jsx(qn.LocalizationProvider,{dateAdapter:Xk,adapterLocale:M8,children:y.jsx(ch,{color:e,children:t})}),Fn=e=>e&&e.charAt(0).toUpperCase(),JD=e=>["A","N","H","L","Q"].includes(Fn(e))?"primary":["F","G","T","I","J"].includes(Fn(e))?"info":["K","D","Y","B","O"].includes(Fn(e))?"success":["P","E","R","S","U"].includes(Fn(e))?"warning":["V","W","X","M","Z"].includes(Fn(e))?"error":"default",fh=p.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:o,...a},i)=>{var d,h;const s=Nl(),l=Fn(t),u=JD(t),c=e||u,f=c==="default"?y.jsxs(W.Avatar,{ref:i,sx:o,...a,children:[t&&l,n]}):y.jsxs(W.Avatar,{ref:i,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,...o},...a,children:[t&&l,n]});return r?y.jsx(W.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});fh.displayName="CustomAvatar";const xr={tiny:24,small:32,medium:40,large:56},dh=p.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:o,...a},i)=>{const s=e==="tiny",l=e==="small",u=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(W.AvatarGroup,{ref:i,max:t?3:r,spacing:(s||l)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...c&&{width:xr.large,height:xr.large,"&:first-of-type":{fontSize:16}},...u&&{width:xr.medium,height:xr.medium},...l&&{width:xr.small,height:xr.small},...s&&{width:xr.tiny,height:xr.tiny}},...t&&{...f},...o},...a,children:n})});dh.displayName="CustomAvatarGroup";const ph=W.styled(W.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),eI=()=>{const e=Wr.useGridApiContext(),{rowHeight:t,paginationModel:r}=Wr.useGridRootProps(),n=(r==null?void 0:r.pageSize)||12,o=Wr.gridColumnsTotalWidthSelector(e),a=Wr.gridColumnPositionsSelector(e),i=p.useMemo(()=>a.filter(u=>u<=o).length,[o,a]),s=e.current.getVisibleColumns().slice(0,i),l=p.useMemo(()=>{const u=[];for(let c=0;c<n;c+=1){for(const f of s)u.push(y.jsx(ph,{sx:{justifyContent:f.align,minWidth:f.cellClassName==="MuiDataGrid-cellCheckbox"?64:void 0},children:y.jsx(W.Skeleton,{width:"100%"})},`column-${c}-${f.field}`));u.push(y.jsx(ph,{},`fill-${c}`))}return u},[n,s]);return y.jsx("div",{style:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:u})=>`${u}px`).join(" ")} 1fr`,gridAutoRows:t},children:l})},tI=({columns:e,...t})=>{const r=[{...Wr.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],n=p.useCallback(o=>({bottom:o.isLastVisible?0:8}),[]);return y.jsx(Wr.DataGridPremium,{columns:r,autoHeight:!0,rowHeight:72,getRowSpacing:n,slots:{loadingOverlay:eI},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:o=>`Agrupar por ${o}`,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:o=>`Parar de agrupar por ${o}`,unpin:"Desafixar",footerRowSelected:o=>`${o} ${o===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"N° de linhas",labelDisplayedRows:o=>`${o.from}-${o.to} de ${o.count}`}},...t})},rI=({name:e,...t})=>{const{control:r}=_t.useFormContext();return y.jsx(_t.Controller,{name:e,control:r,render:({field:{ref:n,...o},fieldState:{error:a}})=>{var i;return y.jsx(qn.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},...o,...t,value:o.value?new Date(o.value):null,slotProps:{textField:{...(i=t.slotProps)==null?void 0:i.textField,error:!!a,helperText:a==null?void 0:a.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},nI=({name:e,label:t,...r})=>{const{control:n,setError:o}=_t.useFormContext();return y.jsx(_t.Controller,{name:e,control:n,render:({field:{value:a,onChange:i},fieldState:{error:s}})=>y.jsx(qn.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...r.localeText},value:[(a==null?void 0:a.startDate)||null,(a==null?void 0:a.endDate)||null],onChange:l=>i({startDate:l[0],endDate:l[1]}),onError:l=>{o(e,{message:l[0]||l[1]||void 0})},...r,slotProps:{textField:({position:l})=>{var u;return{...(u=r.slotProps)==null?void 0:u.textField,error:!!s,helperText:s==null?void 0:s.message,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:l==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`}}},sx:{width:1}})})},oI=({name:e,...t})=>{const{control:r}=_t.useFormContext();return y.jsx(_t.Controller,{name:e,control:r,render:({field:{ref:n,...o},fieldState:{error:a}})=>{var i;return y.jsx(qn.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},...o,...t,value:o.value?new Date(o.value):null,slotProps:{textField:{...(i=t.slotProps)==null?void 0:i.textField,error:!!a,helperText:a==null?void 0:a.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},aI=({children:e,waitBeforeShow:t=500})=>{const[r,n]=p.useState(!1);return p.useEffect(()=>{const o=setTimeout(()=>n(!0),t);return()=>clearTimeout(o)},[t]),r?e:null},hh=({name:e,helperText:t,...r})=>{const{control:n}=_t.useFormContext();return y.jsx(_t.Controller,{name:e,control:n,render:({field:{ref:o,...a},fieldState:{error:i}})=>y.jsx(W.TextField,{...a,inputRef:o,fullWidth:!0,error:!!i,helperText:(i==null?void 0:i.message)||t,...r})})},iI=({id:e,children:t,onSubmit:r,methods:n})=>y.jsx(_t.FormProvider,{...n,children:y.jsx(W.Stack,{component:"form",id:e,onSubmit:r,flex:1,width:1,noValidate:!0,children:t})});var gh={exports:{}};(()=>{var e={296:(o,a,i)=>{var s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof i.g=="object"&&i.g&&i.g.Object===Object&&i.g,h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")(),g=Object.prototype.toString,v=Math.max,w=Math.min,T=function(){return m.Date.now()};function k(x){var S=typeof x;return!!x&&(S=="object"||S=="function")}function R(x){if(typeof x=="number")return x;if(function(B){return typeof B=="symbol"||function(ue){return!!ue&&typeof ue=="object"}(B)&&g.call(B)=="[object Symbol]"}(x))return NaN;if(k(x)){var S=typeof x.valueOf=="function"?x.valueOf():x;x=k(S)?S+"":S}if(typeof x!="string")return x===0?x:+x;x=x.replace(s,"");var j=u.test(x);return j||c.test(x)?f(x.slice(2),j?2:8):l.test(x)?NaN:+x}o.exports=function(x,S,j){var B,ue,K,pe,Oe,ye,xe=0,ce=!1,he=!1,De=!0;if(typeof x!="function")throw new TypeError("Expected a function");function Ke(ee){var G=B,ie=ue;return B=ue=void 0,xe=ee,pe=x.apply(ie,G)}function rt(ee){var G=ee-ye;return ye===void 0||G>=S||G<0||he&&ee-xe>=K}function E(){var ee=T();if(rt(ee))return L(ee);Oe=setTimeout(E,function(G){var ie=S-(G-ye);return he?w(ie,K-(G-xe)):ie}(ee))}function L(ee){return Oe=void 0,De&&B?Ke(ee):(B=ue=void 0,pe)}function J(){var ee=T(),G=rt(ee);if(B=arguments,ue=this,ye=ee,G){if(Oe===void 0)return function(ie){return xe=ie,Oe=setTimeout(E,S),ce?Ke(ie):pe}(ye);if(he)return Oe=setTimeout(E,S),Ke(ye)}return Oe===void 0&&(Oe=setTimeout(E,S)),pe}return S=R(S)||0,k(j)&&(ce=!!j.leading,K=(he="maxWait"in j)?v(R(j.maxWait)||0,S):K,De="trailing"in j?!!j.trailing:De),J.cancel=function(){Oe!==void 0&&clearTimeout(Oe),xe=0,B=ye=ue=Oe=void 0},J.flush=function(){return Oe===void 0?pe:L(T())},J}},96:(o,a,i)=>{var s="Expected a function",l=NaN,u="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,m=parseInt,g=typeof i.g=="object"&&i.g&&i.g.Object===Object&&i.g,v=typeof self=="object"&&self&&self.Object===Object&&self,w=g||v||Function("return this")(),T=Object.prototype.toString,k=Math.max,R=Math.min,x=function(){return w.Date.now()};function S(B){var ue=typeof B;return!!B&&(ue=="object"||ue=="function")}function j(B){if(typeof B=="number")return B;if(function(pe){return typeof pe=="symbol"||function(Oe){return!!Oe&&typeof Oe=="object"}(pe)&&T.call(pe)==u}(B))return l;if(S(B)){var ue=typeof B.valueOf=="function"?B.valueOf():B;B=S(ue)?ue+"":ue}if(typeof B!="string")return B===0?B:+B;B=B.replace(c,"");var K=d.test(B);return K||h.test(B)?m(B.slice(2),K?2:8):f.test(B)?l:+B}o.exports=function(B,ue,K){var pe=!0,Oe=!0;if(typeof B!="function")throw new TypeError(s);return S(K)&&(pe="leading"in K?!!K.leading:pe,Oe="trailing"in K?!!K.trailing:Oe),function(ye,xe,ce){var he,De,Ke,rt,E,L,J=0,ee=!1,G=!1,ie=!0;if(typeof ye!="function")throw new TypeError(s);function se(me){var I=he,Ye=De;return he=De=void 0,J=me,rt=ye.apply(Ye,I)}function le(me){var I=me-L;return L===void 0||I>=xe||I<0||G&&me-J>=Ke}function Y(){var me=x();if(le(me))return q(me);E=setTimeout(Y,function(I){var Ye=xe-(I-L);return G?R(Ye,Ke-(I-J)):Ye}(me))}function q(me){return E=void 0,ie&&he?se(me):(he=De=void 0,rt)}function ae(){var me=x(),I=le(me);if(he=arguments,De=this,L=me,I){if(E===void 0)return function(Ye){return J=Ye,E=setTimeout(Y,xe),ee?se(Ye):rt}(L);if(G)return E=setTimeout(Y,xe),se(L)}return E===void 0&&(E=setTimeout(Y,xe)),rt}return xe=j(xe)||0,S(ce)&&(ee=!!ce.leading,Ke=(G="maxWait"in ce)?k(j(ce.maxWait)||0,xe):Ke,ie="trailing"in ce?!!ce.trailing:ie),ae.cancel=function(){E!==void 0&&clearTimeout(E),J=0,he=L=De=E=void 0},ae.flush=function(){return E===void 0?rt:q(x())},ae}(B,ue,{leading:pe,maxWait:ue,trailing:Oe})}},703:(o,a,i)=>{var s=i(414);function l(){}function u(){}u.resetWarningCache=l,o.exports=function(){function c(h,m,g,v,w,T){if(T!==s){var k=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 k.name="Invariant Violation",k}}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:u,resetWarningCache:l};return d.PropTypes=d,d}},697:(o,a,i)=>{o.exports=i(703)()},414:o=>{o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(o){var a=t[o];if(a!==void 0)return a.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=o=>{var a=o&&o.__esModule?()=>o.default:()=>o;return r.d(a,{a}),a},r.d=(o,a)=>{for(var i in a)r.o(a,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:a[i]})},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=(o,a)=>Object.prototype.hasOwnProperty.call(o,a),r.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{LazyLoadComponent:()=>Z,LazyLoadImage:()=>hi,trackWindowScroll:()=>L});const o=p;var a=r.n(o),i=r(697);const s=Gl;var l=r.n(s);function u(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(_){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},c(_)}function f(_,O){var A=Object.keys(_);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(_);O&&(D=D.filter(function(ge){return Object.getOwnPropertyDescriptor(_,ge).enumerable})),A.push.apply(A,D)}return A}function d(_,O,A){return(O=m(O))in _?Object.defineProperty(_,O,{value:A,enumerable:!0,configurable:!0,writable:!0}):_[O]=A,_}function h(_,O){for(var A=0;A<O.length;A++){var D=O[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,m(D.key),D)}}function m(_){var O=function(A,D){if(c(A)!=="object"||A===null)return A;var ge=A[Symbol.toPrimitive];if(ge!==void 0){var we=ge.call(A,"string");if(c(we)!=="object")return we;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}(_);return c(O)==="symbol"?O:String(O)}function g(_,O){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,D){return A.__proto__=D,A},g(_,O)}function v(_){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)},v(_)}var w=function(_){_.forEach(function(O){O.isIntersecting&&O.target.onVisible()})},T={},k=function(_){(function(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create($&&$.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),$&&g(C,$)})(Ne,_);var O,A,D,ge,we=(D=Ne,ge=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 C,$=v(D);if(ge){var re=v(this).constructor;C=Reflect.construct($,arguments,re)}else C=$.apply(this,arguments);return function(Q,X){if(X&&(c(X)==="object"||typeof X=="function"))return X;if(X!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}(Q)}(this,C)});function Ne(C){var $;if(function(Q,X){if(!(Q instanceof X))throw new TypeError("Cannot call a class as a function")}(this,Ne),($=we.call(this,C)).supportsObserver=!C.scrollPosition&&C.useIntersectionObserver&&u(),$.supportsObserver){var re=C.threshold;$.observer=function(Q){return T[Q]=T[Q]||new IntersectionObserver(w,{rootMargin:Q+"px"}),T[Q]}(re)}return $}return O=Ne,A=[{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 C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,$=this.placeholder.getBoundingClientRect(),re=l().findDOMNode(this.placeholder).style,Q=parseInt(re.getPropertyValue("margin-left"),10)||0,X=parseInt(re.getPropertyValue("margin-top"),10)||0;return{bottom:C.y+$.bottom+X,left:C.x+$.left+Q,right:C.x+$.right+Q,top:C.y+$.top+X}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var C=this.props,$=C.scrollPosition,re=C.threshold,Q=this.getPlaceholderBoundingBox($),X=$.y+window.innerHeight,ve=$.x,Qe=$.x+window.innerWidth,Ue=$.y;return Ue-re<=Q.bottom&&X+re>=Q.top&&ve-re<=Q.right&&Qe+re>=Q.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var C=this,$=this.props,re=$.className,Q=$.height,X=$.placeholder,ve=$.style,Qe=$.width;if(X&&typeof X.type!="function")return a().cloneElement(X,{ref:function(Ge){return C.placeholder=Ge}});var Ue=function(Ge){for(var dt=1;dt<arguments.length;dt++){var ot=arguments[dt]!=null?arguments[dt]:{};dt%2?f(Object(ot),!0).forEach(function(bt){d(Ge,bt,ot[bt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ge,Object.getOwnPropertyDescriptors(ot)):f(Object(ot)).forEach(function(bt){Object.defineProperty(Ge,bt,Object.getOwnPropertyDescriptor(ot,bt))})}return Ge}({display:"inline-block"},ve);return Qe!==void 0&&(Ue.width=Qe),Q!==void 0&&(Ue.height=Q),a().createElement("span",{className:re,ref:function(Ge){return C.placeholder=Ge},style:Ue},X)}}],A&&h(O.prototype,A),Object.defineProperty(O,"prototype",{writable:!1}),Ne}(a().Component);k.propTypes={onVisible:i.PropTypes.func.isRequired,className:i.PropTypes.string,height:i.PropTypes.oneOfType([i.PropTypes.number,i.PropTypes.string]),placeholder:i.PropTypes.element,threshold:i.PropTypes.number,useIntersectionObserver:i.PropTypes.bool,scrollPosition:i.PropTypes.shape({x:i.PropTypes.number.isRequired,y:i.PropTypes.number.isRequired}),width:i.PropTypes.oneOfType([i.PropTypes.number,i.PropTypes.string])},k.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const R=k;var x=r(296),S=r.n(x),j=r(96),B=r.n(j),ue=function(_){var O=getComputedStyle(_,null);return O.getPropertyValue("overflow")+O.getPropertyValue("overflow-y")+O.getPropertyValue("overflow-x")};const K=function(_){if(!(_ instanceof HTMLElement))return window;for(var O=_;O&&O instanceof HTMLElement;){if(/(scroll|auto)/.test(ue(O)))return O;O=O.parentNode}return window};function pe(_){return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},pe(_)}var Oe=["delayMethod","delayTime"];function ye(){return ye=Object.assign?Object.assign.bind():function(_){for(var O=1;O<arguments.length;O++){var A=arguments[O];for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(_[D]=A[D])}return _},ye.apply(this,arguments)}function xe(_,O){for(var A=0;A<O.length;A++){var D=O[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,(ge=function(we,Ne){if(pe(we)!=="object"||we===null)return we;var C=we[Symbol.toPrimitive];if(C!==void 0){var $=C.call(we,"string");if(pe($)!=="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(we)}(D.key),pe(ge)==="symbol"?ge:String(ge)),D)}var ge}function ce(_,O){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,D){return A.__proto__=D,A},ce(_,O)}function he(_,O){if(O&&(pe(O)==="object"||typeof O=="function"))return O;if(O!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return De(_)}function De(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function Ke(_){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)},Ke(_)}var rt=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},E=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const L=function(_){var O=function(A){(function(re,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(Q&&Q.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),Object.defineProperty(re,"prototype",{writable:!1}),Q&&ce(re,Q)})($,A);var D,ge,we,Ne,C=(we=$,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 re,Q=Ke(we);if(Ne){var X=Ke(this).constructor;re=Reflect.construct(Q,arguments,X)}else re=Q.apply(this,arguments);return he(this,re)});function $(re){var Q;if(function(ve,Qe){if(!(ve instanceof Qe))throw new TypeError("Cannot call a class as a function")}(this,$),(Q=C.call(this,re)).useIntersectionObserver=re.useIntersectionObserver&&u(),Q.useIntersectionObserver)return he(Q);var X=Q.onChangeScroll.bind(De(Q));return re.delayMethod==="debounce"?Q.delayedScroll=S()(X,re.delayTime):re.delayMethod==="throttle"&&(Q.delayedScroll=B()(X,re.delayTime)),Q.state={scrollPosition:{x:rt(),y:E()}},Q.baseComponentRef=a().createRef(),Q}return D=$,(ge=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||K(l().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=K(l().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:rt(),y:E()}})}},{key:"render",value:function(){var re=this.props,Q=(re.delayMethod,re.delayTime,function(ve,Qe){if(ve==null)return{};var Ue,Ge,dt=function(bt,cr){if(bt==null)return{};var fr,Br,Ho={},gi=Object.keys(bt);for(Br=0;Br<gi.length;Br++)fr=gi[Br],cr.indexOf(fr)>=0||(Ho[fr]=bt[fr]);return Ho}(ve,Qe);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(ve);for(Ge=0;Ge<ot.length;Ge++)Ue=ot[Ge],Qe.indexOf(Ue)>=0||Object.prototype.propertyIsEnumerable.call(ve,Ue)&&(dt[Ue]=ve[Ue])}return dt}(re,Oe)),X=this.useIntersectionObserver?null:this.state.scrollPosition;return a().createElement(_,ye({forwardRef:this.baseComponentRef,scrollPosition:X},Q))}}])&&xe(D.prototype,ge),Object.defineProperty(D,"prototype",{writable:!1}),$}(a().Component);return O.propTypes={delayMethod:i.PropTypes.oneOf(["debounce","throttle"]),delayTime:i.PropTypes.number,useIntersectionObserver:i.PropTypes.bool},O.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},O};function J(_){return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},J(_)}function ee(_,O){for(var A=0;A<O.length;A++){var D=O[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,(ge=function(we,Ne){if(J(we)!=="object"||we===null)return we;var C=we[Symbol.toPrimitive];if(C!==void 0){var $=C.call(we,"string");if(J($)!=="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(we)}(D.key),J(ge)==="symbol"?ge:String(ge)),D)}var ge}function G(_,O){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,D){return A.__proto__=D,A},G(_,O)}function ie(_){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)},ie(_)}var se=function(_){(function(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create($&&$.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),$&&G(C,$)})(Ne,_);var O,A,D,ge,we=(D=Ne,ge=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 C,$=ie(D);if(ge){var re=ie(this).constructor;C=Reflect.construct($,arguments,re)}else C=$.apply(this,arguments);return function(Q,X){if(X&&(J(X)==="object"||typeof X=="function"))return X;if(X!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}(Q)}(this,C)});function Ne(C){return function($,re){if(!($ instanceof re))throw new TypeError("Cannot call a class as a function")}(this,Ne),we.call(this,C)}return O=Ne,(A=[{key:"render",value:function(){return a().createElement(R,this.props)}}])&&ee(O.prototype,A),Object.defineProperty(O,"prototype",{writable:!1}),Ne}(a().Component);const le=L(se);function Y(_){return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},Y(_)}function q(_,O){for(var A=0;A<O.length;A++){var D=O[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,(ge=function(we,Ne){if(Y(we)!=="object"||we===null)return we;var C=we[Symbol.toPrimitive];if(C!==void 0){var $=C.call(we,"string");if(Y($)!=="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(we)}(D.key),Y(ge)==="symbol"?ge:String(ge)),D)}var ge}function ae(_,O){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,D){return A.__proto__=D,A},ae(_,O)}function me(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function I(_){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)},I(_)}var Ye=function(_){(function(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create($&&$.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),$&&ae(C,$)})(Ne,_);var O,A,D,ge,we=(D=Ne,ge=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 C,$=I(D);if(ge){var re=I(this).constructor;C=Reflect.construct($,arguments,re)}else C=$.apply(this,arguments);return function(Q,X){if(X&&(Y(X)==="object"||typeof X=="function"))return X;if(X!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return me(Q)}(this,C)});function Ne(C){var $;(function(Qe,Ue){if(!(Qe instanceof Ue))throw new TypeError("Cannot call a class as a function")})(this,Ne),$=we.call(this,C);var re=C.afterLoad,Q=C.beforeLoad,X=C.scrollPosition,ve=C.visibleByDefault;return $.state={visible:ve},ve&&(Q(),re()),$.onVisible=$.onVisible.bind(me($)),$.isScrollTracked=!!(X&&Number.isFinite(X.x)&&X.x>=0&&Number.isFinite(X.y)&&X.y>=0),$}return O=Ne,(A=[{key:"componentDidUpdate",value:function(C,$){$.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 C=this.props,$=C.className,re=C.delayMethod,Q=C.delayTime,X=C.height,ve=C.placeholder,Qe=C.scrollPosition,Ue=C.style,Ge=C.threshold,dt=C.useIntersectionObserver,ot=C.width;return this.isScrollTracked||dt&&u()?a().createElement(R,{className:$,height:X,onVisible:this.onVisible,placeholder:ve,scrollPosition:Qe,style:Ue,threshold:Ge,useIntersectionObserver:dt,width:ot}):a().createElement(le,{className:$,delayMethod:re,delayTime:Q,height:X,onVisible:this.onVisible,placeholder:ve,style:Ue,threshold:Ge,width:ot})}}])&&q(O.prototype,A),Object.defineProperty(O,"prototype",{writable:!1}),Ne}(a().Component);Ye.propTypes={afterLoad:i.PropTypes.func,beforeLoad:i.PropTypes.func,useIntersectionObserver:i.PropTypes.bool,visibleByDefault:i.PropTypes.bool},Ye.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const Z=Ye;function ft(_){return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},ft(_)}var Ut=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Cr(_,O){var A=Object.keys(_);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(_);O&&(D=D.filter(function(ge){return Object.getOwnPropertyDescriptor(_,ge).enumerable})),A.push.apply(A,D)}return A}function Bo(_){for(var O=1;O<arguments.length;O++){var A=arguments[O]!=null?arguments[O]:{};O%2?Cr(Object(A),!0).forEach(function(D){Hn(_,D,A[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(A)):Cr(Object(A)).forEach(function(D){Object.defineProperty(_,D,Object.getOwnPropertyDescriptor(A,D))})}return _}function Hn(_,O,A){return(O=Un(O))in _?Object.defineProperty(_,O,{value:A,enumerable:!0,configurable:!0,writable:!0}):_[O]=A,_}function zn(){return zn=Object.assign?Object.assign.bind():function(_){for(var O=1;O<arguments.length;O++){var A=arguments[O];for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(_[D]=A[D])}return _},zn.apply(this,arguments)}function Yl(_,O){for(var A=0;A<O.length;A++){var D=O[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,Un(D.key),D)}}function Un(_){var O=function(A,D){if(ft(A)!=="object"||A===null)return A;var ge=A[Symbol.toPrimitive];if(ge!==void 0){var we=ge.call(A,"string");if(ft(we)!=="object")return we;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}(_);return ft(O)==="symbol"?O:String(O)}function Wo(_,O){return Wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,D){return A.__proto__=D,A},Wo(_,O)}function Yn(_){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)},Yn(_)}var Gn=function(_){(function(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create($&&$.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),$&&Wo(C,$)})(Ne,_);var O,A,D,ge,we=(D=Ne,ge=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 C,$=Yn(D);if(ge){var re=Yn(this).constructor;C=Reflect.construct($,arguments,re)}else C=$.apply(this,arguments);return function(Q,X){if(X&&(ft(X)==="object"||typeof X=="function"))return X;if(X!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}(Q)}(this,C)});function Ne(C){var $;return function(re,Q){if(!(re instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,Ne),($=we.call(this,C)).state={loaded:!1},$}return O=Ne,(A=[{key:"onImageLoad",value:function(){var C=this;return this.state.loaded?null:function($){C.props.onLoad($),C.props.afterLoad(),C.setState({loaded:!0})}}},{key:"getImg",value:function(){var C=this.props,$=(C.afterLoad,C.beforeLoad,C.delayMethod,C.delayTime,C.effect,C.placeholder,C.placeholderSrc,C.scrollPosition,C.threshold,C.useIntersectionObserver,C.visibleByDefault,C.wrapperClassName,C.wrapperProps,function(re,Q){if(re==null)return{};var X,ve,Qe=function(Ge,dt){if(Ge==null)return{};var ot,bt,cr={},fr=Object.keys(Ge);for(bt=0;bt<fr.length;bt++)ot=fr[bt],dt.indexOf(ot)>=0||(cr[ot]=Ge[ot]);return cr}(re,Q);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(re);for(ve=0;ve<Ue.length;ve++)X=Ue[ve],Q.indexOf(X)>=0||Object.prototype.propertyIsEnumerable.call(re,X)&&(Qe[X]=re[X])}return Qe}(C,Ut));return a().createElement("img",zn({},$,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var C=this.props,$=C.beforeLoad,re=C.className,Q=C.delayMethod,X=C.delayTime,ve=C.height,Qe=C.placeholder,Ue=C.scrollPosition,Ge=C.style,dt=C.threshold,ot=C.useIntersectionObserver,bt=C.visibleByDefault,cr=C.width;return a().createElement(Z,{beforeLoad:$,className:re,delayMethod:Q,delayTime:X,height:ve,placeholder:Qe,scrollPosition:Ue,style:Ge,threshold:dt,useIntersectionObserver:ot,visibleByDefault:bt,width:cr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(C){var $=this.props,re=$.effect,Q=$.height,X=$.placeholderSrc,ve=$.width,Qe=$.wrapperClassName,Ue=$.wrapperProps,Ge=this.state.loaded,dt=Ge?" lazy-load-image-loaded":"",ot=Ge||!X?{}:{backgroundImage:"url(".concat(X,")"),backgroundSize:"100% 100%"};return a().createElement("span",zn({className:Qe+" lazy-load-image-background "+re+dt,style:Bo(Bo({},ot),{},{color:"transparent",display:"inline-block",height:Q,width:ve})},Ue),C)}},{key:"render",value:function(){var C=this.props,$=C.effect,re=C.placeholderSrc,Q=C.visibleByDefault,X=C.wrapperClassName,ve=C.wrapperProps,Qe=this.getLazyLoadImage();return($||re)&&!Q||X||ve?this.getWrappedLazyLoadImage(Qe):Qe}}])&&Yl(O.prototype,A),Object.defineProperty(O,"prototype",{writable:!1}),Ne}(a().Component);Gn.propTypes={onLoad:i.PropTypes.func,afterLoad:i.PropTypes.func,beforeLoad:i.PropTypes.func,delayMethod:i.PropTypes.string,delayTime:i.PropTypes.number,effect:i.PropTypes.string,placeholderSrc:i.PropTypes.string,threshold:i.PropTypes.number,useIntersectionObserver:i.PropTypes.bool,visibleByDefault:i.PropTypes.bool,wrapperClassName:i.PropTypes.string,wrapperProps:i.PropTypes.object},Gn.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const hi=Gn})(),gh.exports=n})();var sI=gh.exports;function lI(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 vh=p.forwardRef(({ratio:e,disabledEffect:t=!1,effect:r="blur",sx:n,...o},a)=>{const i=y.jsx(W.Box,{component:sI.LazyLoadImage,wrapperClassName:"wrapper",effect:t?void 0:r,placeholderSrc:t?"/assets/transparent.png":"/assets/placeholder.svg",sx:{width:1,height:1,objectFit:"cover"},...o});return e?y.jsx(W.Box,{ref:a,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:lI(e),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...n},children:i}):y.jsx(W.Box,{ref:a,component:"span",sx:{lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...n},children:i})});vh.displayName="Image";const uI=Et(W.Box)(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=t.variant==="filled",o=t.variant==="outlined",a=t.variant==="soft",i={...t.color==="default"&&{...o&&{backgroundColor:"transparent",color:e.palette.text.primary,border:`1px solid ${H(e.palette.grey[500],.32)}`},...a&&{color:r?e.palette.text.primary:e.palette.common.white,backgroundColor:H(e.palette.grey[500],.16)}}},s={...t.color!=="default"&&{...n&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},...o&&{backgroundColor:"transparent",color:e.palette[t.color].main,border:`1px solid ${e.palette[t.color].main}`},...a&&{color:e.palette[t.color][r?"dark":"light"],backgroundColor:H(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,...i}}),mh=p.forwardRef(({children:e,color:t="default",variant:r="soft",startIcon:n,endIcon:o,sx:a,...i},s)=>{const l=Nl(),u={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return y.jsxs(uI,{ref:s,component:"span",ownerState:{color:t,variant:r},sx:{...n&&{pl:.75},...o&&{pr:.75},...a},theme:l,...i,children:[n&&y.jsxs(W.Box,{sx:{mr:.75,...u},children:[" ",n," "]}),e,o&&y.jsxs(W.Box,{sx:{ml:.75,...u},children:[" ",o," "]})]})});mh.displayName="Label";function cI(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 fI=Et("span")(({arrow:e,theme:t})=>{const o=`solid 1px ${H(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},i={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},s={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},l={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:'""',display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...i,left:20},...e==="bottom-center"&&{...i,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...i,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"&&{...l,top:20},...e==="right-center"&&{...l,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...l,bottom:20}}}),dI=({open:e,children:t,arrow:r="top-right",disabledArrow:n,sx:o,...a})=>{const{style:i,anchorOrigin:s,transformOrigin:l}=cI(r);return y.jsxs(W.Popover,{open:!!e,anchorEl:e,anchorOrigin:s,transformOrigin:l,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...i,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...a,children:[!n&&y.jsx(fI,{arrow:r}),t]})},ci=(e,t=!0)=>{const{pathname:r}=er.useLocation(),n=e?!!er.matchPath({path:e,end:!0},r):!1,o=e?!!er.matchPath({path:e,end:!1},r):!1;return{active:t?o:n,isExternalLink:e.includes("http")}},fi={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},Rn={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22};function Hl(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,o=e==null?void 0:e.imgUrl;return o?{position:"relative",backgroundImage:`url(${o})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:H(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:H(t,n)}}function pI(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,o=e==null?void 0:e.imgUrl,a=e==null?void 0:e.color;return o?{background:`linear-gradient(${t}, ${r||a}, ${n||a}), url(${o})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function hI(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function gI(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const bh={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},vI=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:Hl,bgGradient:pI,filterStyles:gI,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:bh,textGradient:hI},Symbol.toStringTag,{value:"Module"})),mI=Et(W.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:o})=>{const a=o.palette.mode==="light",i=n!==1,s={color:o.palette.primary.main,backgroundColor:H(o.palette.primary.main,o.palette.action.selectedOpacity),...!a&&{color:o.palette.primary.light}},l={color:o.palette.text.primary,backgroundColor:"transparent"},u={color:o.palette.text.primary,backgroundColor:o.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:o.spacing(1,0,.5,0),color:o.palette.text.secondary,borderRadius:o.shape.borderRadius,"&:hover":u,...i&&{flexDirection:"row",padding:o.spacing(1)},...e&&{...s,"&:hover":{...s}},...i&&e&&{...l,"&:hover":{...l}},...r&&!e&&u,...t&&{"&.Mui-disabled":{opacity:.64}}}}),bI=Et(W.ListItemIcon)({marginRight:0,marginBottom:4,width:Rn.NAV_ITEM_MINI,height:Rn.NAV_ITEM_MINI}),yI=Et(W.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,...Hl({color:e.palette.background.default})}})),yh=p.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:o,...a},i)=>{const{title:s,path:l,icon:u,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(mI,{ref:i,open:r,depth:t,active:n,disabled:f,...a,children:[u&&y.jsx(bI,{children:u}),y.jsx(W.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(W.Tooltip,{title:d,arrow:!0,placement:"right",children:y.jsx(ar,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!c&&y.jsx(ar,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>o?y.jsx(W.Link,{href:l,target:"_blank",rel:"noopener",underline:"none",children:m}):y.jsx(W.Link,{component:er.Link,to:l,underline:"none",children:m}))()});yh.displayName="NavItem";const xI=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(xh,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),xh=({data:e,depth:t,hasChild:r})=>{const n=p.useRef(null),{pathname:o}=er.useLocation(),{active:a,isExternalLink:i}=ci(e.path),[s,l]=p.useState(!1);p.useEffect(()=>{s&&c()},[o]),p.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 u=()=>{l(!0)},c=()=>{l(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(yh,{ref:n,item:e,depth:t,open:s,active:a,isExternalLink:i,onMouseEnter:u,onMouseLeave:c}),r&&y.jsx(yI,{open:s,anchorEl:n.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:u,onMouseLeave:c},children:y.jsx(xI,{data:e.children,depth:t})})]})},wI=({items:e,isLastGroup:t})=>y.jsxs(y.Fragment,{children:[e.map(r=>y.jsx(xh,{data:r,depth:1,hasChild:!!r.children},r.title+r.path)),!t&&y.jsx(W.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),OI=({data:e,sx:t,...r})=>y.jsx(W.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...t},...r,children:e.map((n,o)=>y.jsx(wI,{items:n.items,isLastGroup:o+1===e.length},n.subheader))}),TI=p.memo(OI),CI=Et(W.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="caption"})(({active:e,disabled:t,depth:r,caption:n,theme:o})=>{const a=o.palette.mode==="light",i=r!==1,s={color:o.palette.primary.main,backgroundColor:H(o.palette.primary.main,o.palette.action.selectedOpacity),...!a&&{color:o.palette.primary.light}},l={color:o.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:o.spacing(2),paddingRight:o.spacing(1.5),marginBottom:o.spacing(.5),color:o.palette.text.secondary,borderRadius:o.shape.borderRadius,height:fi.H_DASHBOARD_ITEM,...i&&{height:fi.H_DASHBOARD_ITEM_SUB,...r>2&&{paddingLeft:o.spacing(r)},...n&&{height:fi.H_DASHBOARD_ITEM}},...e&&{...s,"&:hover":{...s}},...i&&e&&{...l,"&:hover":{...l}},...t&&{"&.Mui-disabled":{opacity:.64}}}}),wh=Et(W.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:Rn.NAV_ITEM,height:Rn.NAV_ITEM}),SI=Et("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}})),EI=Et(W.ListSubheader)(({theme:e})=>({...e.typography.overline,fontSize:11,paddingTop:e.spacing(3),paddingBottom:e.spacing(1),color:e.palette.text.secondary})),$I=({item:e,depth:t,open:r,active:n,isExternalLink:o,...a})=>{const{title:i,path:s,icon:l,info:u,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(CI,{depth:t,active:n,disabled:f,caption:!!d,...a,children:[l&&y.jsx(wh,{children:l}),h&&y.jsx(wh,{children:y.jsx(SI,{active:n&&h})}),y.jsx(W.ListItemText,{primary:i,secondary:d&&y.jsx(W.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"}}),u&&y.jsx(W.Box,{component:"span",sx:{lineHeight:0},children:u}),!!c&&y.jsx(ar,{width:16,icon:r?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>o?y.jsx(W.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:m}):c?m:y.jsx(W.Link,{component:er.Link,to:s,underline:"none",children:m}))()},_I=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(Oh,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),Oh=({data:e,depth:t,hasChild:r})=>{const{pathname:n}=er.useLocation(),{active:o,isExternalLink:a}=ci(e.path),[i,s]=p.useState(o);p.useEffect(()=>{o||u()},[n]);const l=()=>{s(!i)},u=()=>{s(!1)};return y.jsxs(y.Fragment,{children:[y.jsx($I,{item:e,depth:t,open:i,active:o,isExternalLink:a,onClick:l}),r&&y.jsx(W.Collapse,{in:i,unmountOnExit:!0,children:y.jsx(_I,{data:e.children,depth:t})})]})},PI=({data:e,sx:t,...r})=>y.jsx(W.Stack,{sx:t,...r,children:e.map(n=>{const o=n.subheader||n.items[0].title;return y.jsxs(W.List,{disablePadding:!0,sx:{px:2},children:[n.subheader&&y.jsx(EI,{disableSticky:!0,children:n.subheader}),n.items.map(a=>y.jsx(Oh,{data:a,depth:1,hasChild:!!a.children},a.title+a.path))]},o)})}),MI=Et(W.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:o})=>{const a=o.palette.mode==="light",i=n!==1,s={color:o.palette.primary.main,backgroundColor:H(o.palette.primary.main,o.palette.action.selectedOpacity),...!a&&{color:o.palette.primary.light}},l={color:o.palette.text.primary,backgroundColor:"transparent"},u={color:o.palette.text.primary,backgroundColor:o.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:o.spacing(0,.75),color:o.palette.text.secondary,borderRadius:o.shape.borderRadius,height:fi.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":u,...i&&{width:"100%",margin:0,paddingRight:0,paddingLeft:o.spacing(1)},...e&&{...s,"&:hover":{...s}},...i&&e&&{...l,"&:hover":{...l}},...r&&!e&&u,...t&&{"&.Mui-disabled":{opacity:.64}}}}),kI=Et(W.ListItemIcon)({marginRight:8,flexShrink:0,width:Rn.NAV_ITEM_HORIZONTAL,height:Rn.NAV_ITEM_HORIZONTAL}),AI=Et(W.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,...Hl({color:e.palette.background.default})}})),Th=p.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:o,...a},i)=>{const{title:s,path:l,icon:u,info:c,children:f,disabled:d,caption:h}=e,m=t!==1,g=y.jsxs(MI,{ref:i,open:r,depth:t,active:n,disabled:d,...a,children:[u&&y.jsx(kI,{children:u}),y.jsx(W.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"}}),c&&y.jsx(W.Box,{component:"span",sx:{ml:1,lineHeight:0},children:c}),h&&y.jsx(W.Tooltip,{title:h,arrow:!0,children:y.jsx(W.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:y.jsx(ar,{icon:"eva:info-outline",width:16})})}),!!f&&y.jsx(ar,{icon:m?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>o?y.jsx(W.Link,{href:l,target:"_blank",rel:"noopener",underline:"none",children:g}):y.jsx(W.Link,{component:er.Link,to:l,underline:"none",children:g}))()});Th.displayName="NavItem";const DI=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(Ch,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),Ch=({data:e,depth:t,hasChild:r})=>{const n=p.useRef(null),{pathname:o}=er.useLocation(),{active:a,isExternalLink:i}=ci(e.path),[s,l]=p.useState(!1);p.useEffect(()=>{s&&c()},[o]),p.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 u=()=>{l(!0)},c=()=>{l(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Th,{ref:n,item:e,depth:t,open:s,active:a,isExternalLink:i,onMouseEnter:u,onMouseLeave:c}),r&&y.jsx(AI,{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:u,onMouseLeave:c},children:y.jsx(DI,{data:e.children,depth:t})})]})},II=({items:e})=>y.jsx(y.Fragment,{children:e.map(t=>y.jsx(Ch,{data:t,depth:1,hasChild:!!t.children},t.title+t.path))}),jI=({data:e,sx:t,...r})=>y.jsx(W.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...bh,...t},...r,children:e.map(n=>y.jsx(II,{items:n.items},n.subheader))}),LI=p.memo(jI),NI=e=>{const[t,r]=p.useState(!1);return y.jsx(hh,{...e,type:t?"text":"password",InputProps:{endAdornment:y.jsx(W.InputAdornment,{position:"end",children:y.jsx(W.IconButton,{onClick:()=>r(!t),edge:"end","aria-label":"Mostrar/Ocultar senha",children:y.jsx(ar,{icon:t?"eva:eye-off-fill":"eva:eye-fill"})})})}})},FI=({children:e,container:t})=>Gl.createPortal(e,document.getElementById(t)||document.body);var RI=!!(typeof window<"u"&&window.document&&window.document.createElement),BI=RI;const Sh=Xn(BI);var Bn=function(){return Bn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Bn.apply(this,arguments)},Wn=null,Eh=null;Sh&&window.addEventListener("resize",function(){Eh!==window.devicePixelRatio&&(Eh=window.devicePixelRatio,Wn=null)});function $h(){if(Wn===null){if(typeof document>"u")return Wn=0,Wn;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),Wn=r}return Wn}function _h(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Ph(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Mh=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,o){var a=o.name.match(/data-simplebar-(.+)/);if(a){var i=a[1].replace(/\W+(.)/g,function(s,l){return l.toUpperCase()});switch(o.value){case"true":n[i]=!0;break;case"false":n[i]=!1;break;case void 0:n[i]=!0;break;default:n[i]=o.value}}return n},t);return r};function kh(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Ah(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Dh(e){return".".concat(e.split(" ").join("."))}var WI=Object.freeze({__proto__:null,getElementWindow:_h,getElementDocument:Ph,getOptions:Mh,addClasses:kh,removeClasses:Ah,classNamesToQuery:Dh}),wr=_h,zl=Ph,HI=Mh,Or=kh,Tr=Ah,$t=Dh,di=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 o=wr(n.el);n.scrollXTicking||(o.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(o.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,Or(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(){Tr(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(Or(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){Tr(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(o){n.mouseX=o.clientX,n.mouseY=o.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(o){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,i;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(i=n.isWithinBounds(n.axis.y.track.rect)),(a||i)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(o,"x"):n.onTrackClick(o,"x")),i&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(o,"y"):n.onTrackClick(o,"y"))))}},this.drag=function(o){var a,i,s,l,u,c,f,d,h,m,g;if(!(!n.draggedAxis||!n.contentWrapperEl)){var v,w=n.axis[n.draggedAxis].track,T=(i=(a=w.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&i!==void 0?i:0,k=n.axis[n.draggedAxis].scrollbar,R=(l=(s=n.contentWrapperEl)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,x=parseInt((c=(u=n.elStyles)===null||u===void 0?void 0:u[n.axis[n.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);o.preventDefault(),o.stopPropagation(),n.draggedAxis==="y"?v=o.pageY:v=o.pageX;var S=v-((d=(f=w.rect)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-n.axis[n.draggedAxis].dragOffset;S=n.draggedAxis==="x"&&n.isRtl?((m=(h=w.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-k.size-S:S;var j=S/(T-k.size),B=j*(R-x);n.draggedAxis==="x"&&n.isRtl&&(B=!((g=e.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-B:B),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=B}},this.onEndDrag=function(o){var a=zl(n.el),i=wr(n.el);o.preventDefault(),o.stopPropagation(),Tr(n.el,n.classNames.dragging),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=i.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=Bn(Bn({},e.defaultOptions),r),this.classNames=Bn(Bn({},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=lf(this._onMouseMove,64),this.onWindowResize=po(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=po(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=po(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 o=e.getOffset(r),a=e.getOffset(n);r.scrollLeft=-999;var i=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:o.left!==a.left,isScrollingToNegative:a.left!==i.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:$h()}catch{return $h()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=zl(t),o=wr(t);return{top:r.top+(o.pageYOffset||n.documentElement.scrollTop),left:r.left+(o.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){Sh&&(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($t(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector($t(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector($t(this.classNames.contentEl)),this.offsetEl=this.el.querySelector($t(this.classNames.offset)),this.maskEl=this.el.querySelector($t(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,$t(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector($t(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector($t(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat($t(this.classNames.track)).concat($t(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat($t(this.classNames.track)).concat($t(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector($t(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector($t(this.classNames.scrollbar)))||null,this.options.autoHide||(Or(this.axis.x.scrollbar.el,this.classNames.visible),Or(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=wr(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 o=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){o&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){o=!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=wr(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||r>0,a=this.contentWrapperEl.offsetWidth,i=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 l=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=o?"".concat(r||u,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&u>r,this.axis.y.isOverflowing=l>c,this.axis.x.isOverflowing=i==="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&&u>a-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>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 o=this.contentEl[this.axis[t].scrollSizeAttr],a=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,i=a/o,s;return s=Math.max(~~(i*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var r,n,o;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var i=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,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u=t==="x"&&this.isRtl&&(!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero)?-u:u,t==="x"&&this.isRtl&&(u=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?u:-u);var c=u/(i-l),f=~~((s-a.size)*c);f=t==="x"&&this.isRtl?-f+(s-a.size):f,a.el.style.transform=t==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Or(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&&(Tr(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),Or(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?Or(r.scrollbar.el,this.classNames.hover):Tr(r.scrollbar.el,this.classNames.hover)):(Tr(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Tr(this.axis[t].track.el,this.classNames.hover),Tr(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 o=zl(this.el),a=wr(this.el),i=this.axis[r].scrollbar,s=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=s-(((n=i.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,Or(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,o,a,i,s;r===void 0&&(r="y");var l=this.axis[r];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var u=wr(this.el);this.axis[r].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var c=this.axis[r].scrollbar,f=(a=(o=c.rect)===null||o===void 0?void 0:o[this.axis[r].offsetAttr])!==null&&a!==void 0?a:0,d=parseInt((s=(i=this.elStyles)===null||i===void 0?void 0:i[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,g=m<0?-1:1,v=g===-1?h-d:h+d,w=40,T=function(){n.contentWrapperEl&&(g===-1?h>v&&(h-=w,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,u.requestAnimationFrame(T)):h<v&&(h+=w,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,u.requestAnimationFrame(T)))};T()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=wr(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(o){return n.call(o,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=HI,e.helpers=WI,e}(),jt=function(){return jt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},jt.apply(this,arguments)};function zI(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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var Ih=Pe.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,a=zI(e,["children","scrollableNodeProps"]),i=Pe.useRef(),s=Pe.useRef(),l=Pe.useRef(),u={},c={};Object.keys(a).forEach(function(h){Object.prototype.hasOwnProperty.call(di.defaultOptions,h)?u[h]=a[h]:c[h]=a[h]});var f=jt(jt({},di.defaultOptions.classNames),u.classNames),d=jt(jt({},o),{className:"".concat(f.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||di.defaultOptions.ariaLabel});return Pe.useEffect(function(){var h;return s.current=d.ref?d.ref.current:s.current,i.current&&(h=new di(i.current,jt(jt(jt({},u),s.current&&{scrollableNode:s.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),Pe.createElement("div",jt({"data-simplebar":"init",ref:i},c),Pe.createElement("div",{className:f.wrapper},Pe.createElement("div",{className:f.heightAutoObserverWrapperEl},Pe.createElement("div",{className:f.heightAutoObserverEl})),Pe.createElement("div",{className:f.mask},Pe.createElement("div",{className:f.offset},typeof r=="function"?r({scrollableNodeRef:s,scrollableNodeProps:jt(jt({},d),{ref:s}),contentNodeRef:l,contentNodeProps:{className:f.contentEl,ref:l}}):Pe.createElement("div",jt({},d),Pe.createElement("div",{className:f.contentEl},r)))),Pe.createElement("div",{className:f.placeholder})),Pe.createElement("div",{className:"".concat(f.track," simplebar-horizontal")},Pe.createElement("div",{className:f.scrollbar})),Pe.createElement("div",{className:"".concat(f.track," simplebar-vertical")},Pe.createElement("div",{className:f.scrollbar})))});Ih.displayName="SimpleBar";const UI=Et("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),YI=Et(Ih)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:H(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),GI=({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(W.Box,{sx:{overflowX:"auto",...t},...r,children:e}):y.jsx(UI,{children:y.jsx(YI,{clickOnTrack:!1,sx:t,...r,children:e})})},VI=p.memo(GI),qI=({name:e,...t})=>{const{control:r}=_t.useFormContext();return y.jsx(_t.Controller,{name:e,control:r,render:({field:{ref:n,...o},fieldState:{error:a}})=>{var i;return y.jsx(qn.TimePicker,{ampm:!1,format:"HH:mm",inputRef:n,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...o,...t,value:o.value?new Date(o.value):null,slotProps:{textField:{...(i=t.slotProps)==null?void 0:i.textField,error:!!a,helperText:a==null?void 0:a.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},XI=()=>{const[e,t]=p.useState(!1),[r,n]=p.useState(document.activeElement);return p.useEffect(()=>{const o=i=>n(i.target),a=()=>n(null);return window.addEventListener("focus",o,!0),window.addEventListener("blur",a,!0),t(!0),()=>{window.removeEventListener("focus",o),window.removeEventListener("blur",a)}},[]),{activeElement:r,listenersReady:e}};var KI=Fi;function QI(e,t){return KI(e,t)}var ZI=QI;const JI=Xn(ZI),ej=(e,t)=>JI(e,t),tj=e=>{const t=p.useRef();return ej(e,t.current)||(t.current=e),t.current},rj=(e,t)=>{p.useEffect(e,t.map(tj))},nj=()=>{const e=p.useRef(!0);return e.current?(e.current=!1,!0):e.current};function oj(e,t,r,n,o){const[a,i]=Pe.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return N8(()=>{let s=!0;if(!r)return;const l=r(e),u=()=>{s&&i(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,r]),a}const jh=Pe["useSyncExternalStore"];function aj(e,t,r,n,o){const a=Pe.useCallback(()=>t,[t]),i=Pe.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return a},[a,e,n,o,r]),[s,l]=Pe.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,r,e]);return jh(l,s,i)}function pi(e,t={}){const r=Al(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=_A({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(`
124
- `));let l=typeof e=="function"?e(r):e;l=l.replace(/^@media( ?)/m,"");const c=(jh!==void 0?aj:oj)(l,o,a,i,s);return process.env.NODE_ENV!=="production"&&Pe.useDebugValue({query:l,match:c}),c}const ij=(e,t,r)=>{const n=Nl(),o=pi(n.breakpoints.up(t)),a=pi(n.breakpoints.down(t)),i=pi(n.breakpoints.between(t,r)),s=pi(n.breakpoints.only(t));return e==="up"?o:e==="down"?a:e==="between"?i:s};function sj(e){const[t,r]=p.useState(e||"");return{currentTab:t,onChangeTab:(n,o)=>{r(o)},setCurrentTab:r}}const lj=(e=!1)=>{const[t,r]=p.useState(e),n=p.useCallback(()=>r(o=>!o),[]);return[t,n,r]},uj=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,o=document.createElement("a"),a=`${e.replace(t,"")}.${t}`;o.href=n,o.download=a,o.click()}},Symbol.toStringTag,{value:"Module"}));function cj(e){return pl({},e)}var Lh=1440,fj=2520,Ul=43200,dj=86400;function pj(e,t,r){var n,o;N(2,arguments);var a=zt(),i=(n=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:a.locale)!==null&&n!==void 0?n:Ia;if(!i.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=vn(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l=pl(cj(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),u,c;s>0?(u=F(t),c=F(e)):(u=F(e),c=F(t));var f=jd(c,u),d=(mn(c)-mn(u))/1e3,h=Math.round((f-d)/60),m;if(h<2)return r!=null&&r.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,l):f<10?i.formatDistance("lessThanXSeconds",10,l):f<20?i.formatDistance("lessThanXSeconds",20,l):f<40?i.formatDistance("halfAMinute",0,l):f<60?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",1,l):h===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",h,l);if(h<45)return i.formatDistance("xMinutes",h,l);if(h<90)return i.formatDistance("aboutXHours",1,l);if(h<Lh){var g=Math.round(h/60);return i.formatDistance("aboutXHours",g,l)}else{if(h<fj)return i.formatDistance("xDays",1,l);if(h<Ul){var v=Math.round(h/Lh);return i.formatDistance("xDays",v,l)}else if(h<dj)return m=Math.round(h/Ul),i.formatDistance("aboutXMonths",m,l)}if(m=il(c,u),m<12){var w=Math.round(h/Ul);return i.formatDistance("xMonths",w,l)}else{var T=m%12,k=Math.floor(m/12);return T<3?i.formatDistance("aboutXYears",k,l):T<9?i.formatDistance("overXYears",k,l):i.formatDistance("almostXYears",k+1,l)}}function hj(e,t){return N(1,arguments),pj(e,Date.now(),t)}function gj(e){N(1,arguments);var t=F(e),r=t.getTime();return r}function vj(e,t){const r=t||"dd/MM/yyyy";return e?fl(new Date(e),r):null}function mj(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?fl(new Date(e),r):null}function bj(e){return e?gj(new Date(e)):null}function yj(e){return e?hj(new Date(e),{addSuffix:!0}):null}const xj=Object.freeze(Object.defineProperty({__proto__:null,fDate:vj,fDateTime:mj,fTimestamp:bj,fToNow:yj},Symbol.toStringTag,{value:"Module"}));function wj(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const Oj=Object.freeze(Object.defineProperty({__proto__:null,getRoot:wj},Symbol.toStringTag,{value:"Module"})),Tj=e=>function(r){return y.jsx(p.Suspense,{fallback:y.jsx(W.CircularProgress,{}),children:y.jsx(e,{...r})})};te.ColorPickerField=NP,te.ColorPickerInput=Md,te.Common=ZD,te.CustomAvatar=fh,te.CustomAvatarGroup=dh,te.DataGrid=tI,te.DatePicker=rI,te.DateRangePicker=nI,te.DateTimePicker=oI,te.Delayed=aI,te.Field=hh,te.Form=iI,te.Iconify=ar,te.Image=vh,te.Label=mh,te.MenuPopover=dI,te.NavSectionHorizontal=LI,te.NavSectionMini=TI,te.NavSectionVertical=PI,te.PasswordField=NI,te.Portal=FI,te.Scrollbar=VI,te.ThemeProvider=ch,te.TimePicker=qI,te.cssStyles=vI,te.file=uj,te.formatTime=xj,te.loadable=Tj,te.routes=Oj,te.useActiveElement=XI,te.useActiveLink=ci,te.useDeepCompareEffect=rj,te.useIsMounting=nj,te.useResponsive=ij,te.useTabs=sj,te.useToggle=lj,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
102
+ } });`:Gn(12,y?` (${y})`:"",JSON.stringify(m.main)));return D0(m,"light",b,n),D0(m,"dark",T,n),m.contrastText||(m.contrastText=f(m.main)),m},h={dark:Wc,light:k0};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),jr(_e({common:_e({},Eo),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:u,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:l,name:"success"}),grey:gC,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const SC=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function EC(e){return Math.round(e*1e5)/1e5}const j0={textTransform:"uppercase"},I0='"Roboto", "Helvetica", "Arial", sans-serif';function OC(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=I0,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:f}=r,d=Ir(r,SC);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,g=f||(x=>`${x/l*h}rem`),m=(x,b,T,P,w)=>_e({fontFamily:n,fontWeight:x,fontSize:g(b),lineHeight:T},n===I0?{letterSpacing:`${EC(P/b)}em`}:{},w,u),y={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,j0),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,j0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jr(_e({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},y),d,{clone:!1})}const PC=.2,MC=.14,_C=.12;function lt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${PC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${MC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${_C})`].join(",")}const $C=["none",lt(0,2,1,-1,0,1,1,0,0,1,3,0),lt(0,3,1,-2,0,2,2,0,0,1,5,0),lt(0,3,3,-2,0,3,4,0,0,1,8,0),lt(0,2,4,-1,0,4,5,0,0,1,10,0),lt(0,3,5,-1,0,5,8,0,0,1,14,0),lt(0,3,5,-1,0,6,10,0,0,1,18,0),lt(0,4,5,-2,0,7,10,1,0,2,16,1),lt(0,5,5,-3,0,8,10,1,0,3,14,2),lt(0,5,6,-3,0,9,12,1,0,3,16,2),lt(0,6,6,-3,0,10,14,1,0,4,18,3),lt(0,6,7,-4,0,11,15,1,0,4,20,3),lt(0,7,8,-4,0,12,17,2,0,5,22,4),lt(0,7,8,-4,0,13,19,2,0,5,24,4),lt(0,7,9,-4,0,14,21,2,0,5,26,4),lt(0,8,9,-5,0,15,22,2,0,6,28,5),lt(0,8,10,-5,0,16,24,2,0,6,30,5),lt(0,8,11,-5,0,17,26,2,0,6,32,5),lt(0,9,11,-5,0,18,28,2,0,7,34,6),lt(0,9,12,-6,0,19,29,2,0,7,36,6),lt(0,10,13,-6,0,20,31,3,0,8,38,7),lt(0,10,13,-6,0,21,33,3,0,8,40,7),lt(0,10,14,-6,0,22,35,3,0,8,42,7),lt(0,11,14,-7,0,23,36,3,0,9,44,8),lt(0,11,15,-7,0,24,38,3,0,9,46,8)],AC=["duration","easing","delay"],kC={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)"},DC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function L0(e){return`${Math.round(e)}ms`}function jC(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function IC(e){const t=_e({},kC,e.easing),r=_e({},DC,e.duration);return _e({getAutoHeightDuration:jC,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:c=0}=o,l=Ir(o,AC);if(process.env.NODE_ENV!=="production"){const u=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!u(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!u(c)&&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(u=>`${u} ${typeof a=="string"?a:L0(a)} ${s} ${typeof c=="string"?c:L0(c)}`).join(",")}},e,{easing:t,duration:r})}const LC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},FC=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function F0(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=Ir(e,FC);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.":Gn(18));const s=TC(n),c=Fc(e);let l=jr(c,{mixins:pC(c.breakpoints,r),palette:s,shadows:$C.slice(),typography:OC(s,o),transitions:IC(i),zIndex:_e({},LC)});if(l=jr(l,a),l=t.reduce((u,f)=>jr(u,f),l),process.env.NODE_ENV!=="production"){const u=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,h)=>{let g;for(g in d){const m=d[g];if(u.indexOf(g)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const y=w3("",g);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
104
+ `))}d[g]={}}}};Object.keys(l.components).forEach(d=>{const h=l.components[d].styleOverrides;h&&d.indexOf("Mui")===0&&f(h,d)})}return l.unstable_sxConfig=_e({},Ic,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return Lc({sx:f,theme:this})},l}const R0=F0();function ii(){const e=Q4(R0);return process.env.NODE_ENV!=="production"&&be.useDebugValue(e),e[ja]||e}const _t=lC({themeId:ja,defaultTheme:R0,rootShouldForwardProp:e=>Qa(e)&&e!=="classes"}),RC=["theme"];function N0(e){let{theme:t}=e,r=Ir(e,RC);const n=t[ja];return v.jsx(ts,_e({},r,{themeId:n?ja:void 0,theme:n||t}))}process.env.NODE_ENV!=="production"&&(N0.propTypes={children:A.node,theme:A.oneOfType([A.object,A.func]).isRequired});function NC(e,t,r,n,i){const[o,a]=be.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return y3(()=>{let s=!0;if(!r)return;const c=r(e),l=()=>{s&&a(c.matches)};return l(),c.addListener(l),()=>{s=!1,c.removeListener(l)}},[e,r]),o}const B0=be["useSyncExternalStore"];function BC(e,t,r,n,i){const o=be.useCallback(()=>t,[t]),a=be.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:u}=n(e);return()=>u}return o},[o,e,n,i,r]),[s,c]=be.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const u=r(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[o,r,e]);return B0(c,s,a)}function rs(e,t={}){const r=Rc(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=cC({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 c=typeof e=="function"?e(r):e;c=c.replace(/^@media( ?)/m,"");const u=(B0!==void 0?BC:NC)(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=rs(n.breakpoints.up(t)),o=rs(n.breakpoints.down(t)),a=rs(n.breakpoints.between(t,r)),s=rs(n.breakpoints.only(t));return e==="up"?i:e==="down"?o:e==="between"?a:s},zC=({children:e,disableAnimatedMobile:t=!0,...r})=>z0("down","sm")&&t?v.jsx($.Box,{...r,children:e}):v.jsx($.Box,{component:cr.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:ca(),...r,children:e}),WC=({animate:e,action:t=!1,children:r,...n})=>t?v.jsx($.Box,{component:cr.div,initial:!1,animate:e?"animate":"exit",variants:ca(),...n,children:r}):v.jsx($.Box,{component:cr.div,initial:"initial",animate:"animate",exit:"exit",variants:ca(),...n,children:r}),VC=()=>Promise.resolve().then(()=>Vq).then(e=>e.default),HC=({children:e})=>v.jsx(U5,{strict:!0,features:VC,children:v.jsxs(cr.div,{style:{height:"100%"},children:[" ",e," "]})});var or={},Po={},UC=typeof Qi=="object"&&Qi&&Qi.Object===Object&&Qi,W0=UC,YC=W0,GC=typeof self=="object"&&self&&self.Object===Object&&self,qC=YC||GC||Function("return this")(),Cr=qC,XC=Cr,KC=XC.Symbol,Mo=KC,V0=Mo,H0=Object.prototype,ZC=H0.hasOwnProperty,QC=H0.toString,_o=V0?V0.toStringTag:void 0;function JC(e){var t=ZC.call(e,_o),r=e[_o];try{e[_o]=void 0;var n=!0}catch{}var i=QC.call(e);return n&&(t?e[_o]=r:delete e[_o]),i}var eT=JC,tT=Object.prototype,rT=tT.toString;function nT(e){return rT.call(e)}var iT=nT,U0=Mo,oT=eT,aT=iT,sT="[object Null]",lT="[object Undefined]",Y0=U0?U0.toStringTag:void 0;function cT(e){return e==null?e===void 0?lT:sT:Y0&&Y0 in Object(e)?oT(e):aT(e)}var xn=cT,uT=Array.isArray,ur=uT;function fT(e){return e!=null&&typeof e=="object"}var Fr=fT,dT=xn,hT=ur,pT=Fr,gT="[object String]";function mT(e){return typeof e=="string"||!hT(e)&&pT(e)&&dT(e)==gT}var vT=mT;function yT(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 bT=yT,xT=bT,wT=xT(),CT=wT;function TT(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ST=TT,ET=xn,OT=Fr,PT="[object Arguments]";function MT(e){return OT(e)&&ET(e)==PT}var _T=MT,G0=_T,$T=Fr,q0=Object.prototype,AT=q0.hasOwnProperty,kT=q0.propertyIsEnumerable,DT=G0(function(){return arguments}())?G0:function(e){return $T(e)&&AT.call(e,"callee")&&!kT.call(e,"callee")},X0=DT,ns={exports:{}};function jT(){return!1}var IT=jT;ns.exports,function(e,t){var r=Cr,n=IT,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}(ns,ns.exports);var Vc=ns.exports,LT=9007199254740991,FT=/^(?:0|[1-9]\d*)$/;function RT(e,t){var r=typeof e;return t=t??LT,!!t&&(r=="number"||r!="symbol"&&FT.test(e))&&e>-1&&e%1==0&&e<t}var K0=RT,NT=9007199254740991;function BT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=NT}var Hc=BT,zT=xn,WT=Hc,VT=Fr,HT="[object Arguments]",UT="[object Array]",YT="[object Boolean]",GT="[object Date]",qT="[object Error]",XT="[object Function]",KT="[object Map]",ZT="[object Number]",QT="[object Object]",JT="[object RegExp]",eS="[object Set]",tS="[object String]",rS="[object WeakMap]",nS="[object ArrayBuffer]",iS="[object DataView]",oS="[object Float32Array]",aS="[object Float64Array]",sS="[object Int8Array]",lS="[object Int16Array]",cS="[object Int32Array]",uS="[object Uint8Array]",fS="[object Uint8ClampedArray]",dS="[object Uint16Array]",hS="[object Uint32Array]",ot={};ot[oS]=ot[aS]=ot[sS]=ot[lS]=ot[cS]=ot[uS]=ot[fS]=ot[dS]=ot[hS]=!0,ot[HT]=ot[UT]=ot[nS]=ot[YT]=ot[iS]=ot[GT]=ot[qT]=ot[XT]=ot[KT]=ot[ZT]=ot[QT]=ot[JT]=ot[eS]=ot[tS]=ot[rS]=!1;function pS(e){return VT(e)&&WT(e.length)&&!!ot[zT(e)]}var gS=pS;function mS(e){return function(t){return e(t)}}var Uc=mS,is={exports:{}};is.exports,function(e,t){var r=W0,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}(is,is.exports);var Yc=is.exports,vS=gS,yS=Uc,Z0=Yc,Q0=Z0&&Z0.isTypedArray,bS=Q0?yS(Q0):vS,J0=bS,xS=ST,wS=X0,CS=ur,TS=Vc,SS=K0,ES=J0,OS=Object.prototype,PS=OS.hasOwnProperty;function MS(e,t){var r=CS(e),n=!r&&wS(e),i=!r&&!n&&TS(e),o=!r&&!n&&!i&&ES(e),a=r||n||i||o,s=a?xS(e.length,String):[],c=s.length;for(var l in e)(t||PS.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||SS(l,c)))&&s.push(l);return s}var eg=MS,_S=Object.prototype;function $S(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_S;return e===r}var Gc=$S;function AS(e,t){return function(r){return e(t(r))}}var tg=AS,kS=tg,DS=kS(Object.keys,Object),jS=DS,IS=Gc,LS=jS,FS=Object.prototype,RS=FS.hasOwnProperty;function NS(e){if(!IS(e))return LS(e);var t=[];for(var r in Object(e))RS.call(e,r)&&r!="constructor"&&t.push(r);return t}var BS=NS;function zS(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var oi=zS,WS=xn,VS=oi,HS="[object AsyncFunction]",US="[object Function]",YS="[object GeneratorFunction]",GS="[object Proxy]";function qS(e){if(!VS(e))return!1;var t=WS(e);return t==US||t==YS||t==HS||t==GS}var rg=qS,XS=rg,KS=Hc;function ZS(e){return e!=null&&KS(e.length)&&!XS(e)}var os=ZS,QS=eg,JS=BS,e6=os;function t6(e){return e6(e)?QS(e):JS(e)}var $o=t6,r6=CT,n6=$o;function i6(e,t){return e&&r6(e,t,n6)}var ng=i6;function o6(e){return e}var ig=o6,a6=ig;function s6(e){return typeof e=="function"?e:a6}var l6=s6,c6=ng,u6=l6;function f6(e,t){return e&&c6(e,u6(t))}var qc=f6,d6=tg,h6=d6(Object.getPrototypeOf,Object),Xc=h6,p6=xn,g6=Xc,m6=Fr,v6="[object Object]",y6=Function.prototype,b6=Object.prototype,og=y6.toString,x6=b6.hasOwnProperty,w6=og.call(Object);function C6(e){if(!m6(e)||p6(e)!=v6)return!1;var t=g6(e);if(t===null)return!0;var r=x6.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&og.call(r)==w6}var T6=C6;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 ag=S6;function E6(){this.__data__=[],this.size=0}var O6=E6;function P6(e,t){return e===t||e!==e&&t!==t}var Kc=P6,M6=Kc;function _6(e,t){for(var r=e.length;r--;)if(M6(e[r][0],t))return r;return-1}var as=_6,$6=as,A6=Array.prototype,k6=A6.splice;function D6(e){var t=this.__data__,r=$6(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():k6.call(t,r,1),--this.size,!0}var j6=D6,I6=as;function L6(e){var t=this.__data__,r=I6(t,e);return r<0?void 0:t[r][1]}var F6=L6,R6=as;function N6(e){return R6(this.__data__,e)>-1}var B6=N6,z6=as;function W6(e,t){var r=this.__data__,n=z6(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var V6=W6,H6=O6,U6=j6,Y6=F6,G6=B6,q6=V6;function ai(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])}}ai.prototype.clear=H6,ai.prototype.delete=U6,ai.prototype.get=Y6,ai.prototype.has=G6,ai.prototype.set=q6;var ss=ai,X6=ss;function K6(){this.__data__=new X6,this.size=0}var Z6=K6;function Q6(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var J6=Q6;function e7(e){return this.__data__.get(e)}var t7=e7;function r7(e){return this.__data__.has(e)}var n7=r7,i7=Cr,o7=i7["__core-js_shared__"],a7=o7,Zc=a7,sg=function(){var e=/[^.]+$/.exec(Zc&&Zc.keys&&Zc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function s7(e){return!!sg&&sg in e}var l7=s7,c7=Function.prototype,u7=c7.toString;function f7(e){if(e!=null){try{return u7.call(e)}catch{}try{return e+""}catch{}}return""}var lg=f7,d7=rg,h7=l7,p7=oi,g7=lg,m7=/[\\^$.*+?()[\]{}|]/g,v7=/^\[object .+?Constructor\]$/,y7=Function.prototype,b7=Object.prototype,x7=y7.toString,w7=b7.hasOwnProperty,C7=RegExp("^"+x7.call(w7).replace(m7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T7(e){if(!p7(e)||h7(e))return!1;var t=d7(e)?C7:v7;return t.test(g7(e))}var S7=T7;function E7(e,t){return e==null?void 0:e[t]}var O7=E7,P7=S7,M7=O7;function _7(e,t){var r=M7(e,t);return P7(r)?r:void 0}var wn=_7,$7=wn,A7=Cr,k7=$7(A7,"Map"),Qc=k7,D7=wn,j7=D7(Object,"create"),ls=j7,cg=ls;function I7(){this.__data__=cg?cg(null):{},this.size=0}var L7=I7;function F7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var R7=F7,N7=ls,B7="__lodash_hash_undefined__",z7=Object.prototype,W7=z7.hasOwnProperty;function V7(e){var t=this.__data__;if(N7){var r=t[e];return r===B7?void 0:r}return W7.call(t,e)?t[e]:void 0}var H7=V7,U7=ls,Y7=Object.prototype,G7=Y7.hasOwnProperty;function q7(e){var t=this.__data__;return U7?t[e]!==void 0:G7.call(t,e)}var X7=q7,K7=ls,Z7="__lodash_hash_undefined__";function Q7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=K7&&t===void 0?Z7:t,this}var J7=Q7,eE=L7,tE=R7,rE=H7,nE=X7,iE=J7;function si(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}si.prototype.clear=eE,si.prototype.delete=tE,si.prototype.get=rE,si.prototype.has=nE,si.prototype.set=iE;var oE=si,ug=oE,aE=ss,sE=Qc;function lE(){this.size=0,this.__data__={hash:new ug,map:new(sE||aE),string:new ug}}var cE=lE;function uE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fE=uE,dE=fE;function hE(e,t){var r=e.__data__;return dE(t)?r[typeof t=="string"?"string":"hash"]:r.map}var cs=hE,pE=cs;function gE(e){var t=pE(this,e).delete(e);return this.size-=t?1:0,t}var mE=gE,vE=cs;function yE(e){return vE(this,e).get(e)}var bE=yE,xE=cs;function wE(e){return xE(this,e).has(e)}var CE=wE,TE=cs;function SE(e,t){var r=TE(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var EE=SE,OE=cE,PE=mE,ME=bE,_E=CE,$E=EE;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=OE,li.prototype.delete=PE,li.prototype.get=ME,li.prototype.has=_E,li.prototype.set=$E;var Jc=li,AE=ss,kE=Qc,DE=Jc,jE=200;function IE(e,t){var r=this.__data__;if(r instanceof AE){var n=r.__data__;if(!kE||n.length<jE-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new DE(n)}return r.set(e,t),this.size=r.size,this}var LE=IE,FE=ss,RE=Z6,NE=J6,BE=t7,zE=n7,WE=LE;function ci(e){var t=this.__data__=new FE(e);this.size=t.size}ci.prototype.clear=RE,ci.prototype.delete=NE,ci.prototype.get=BE,ci.prototype.has=zE,ci.prototype.set=WE;var eu=ci,VE="__lodash_hash_undefined__";function HE(e){return this.__data__.set(e,VE),this}var UE=HE;function YE(e){return this.__data__.has(e)}var GE=YE,qE=Jc,XE=UE,KE=GE;function us(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new qE;++t<r;)this.add(e[t])}us.prototype.add=us.prototype.push=XE,us.prototype.has=KE;var ZE=us;function QE(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 JE=QE;function eO(e,t){return e.has(t)}var tO=eO,rO=ZE,nO=JE,iO=tO,oO=1,aO=2;function sO(e,t,r,n,i,o){var a=r&oO,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&aO?new rO:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var g=e[f],m=t[f];if(n)var y=a?n(m,g,f,t,e,o):n(g,m,f,e,t,o);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!nO(t,function(x,b){if(!iO(h,b)&&(g===x||i(g,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(g===m||i(g,m,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var fg=sO,lO=Cr,cO=lO.Uint8Array,dg=cO;function uO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var fO=uO;function dO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var hO=dO,hg=Mo,pg=dg,pO=Kc,gO=fg,mO=fO,vO=hO,yO=1,bO=2,xO="[object Boolean]",wO="[object Date]",CO="[object Error]",TO="[object Map]",SO="[object Number]",EO="[object RegExp]",OO="[object Set]",PO="[object String]",MO="[object Symbol]",_O="[object ArrayBuffer]",$O="[object DataView]",gg=hg?hg.prototype:void 0,tu=gg?gg.valueOf:void 0;function AO(e,t,r,n,i,o,a){switch(r){case $O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _O:return!(e.byteLength!=t.byteLength||!o(new pg(e),new pg(t)));case xO:case wO:case SO:return pO(+e,+t);case CO:return e.name==t.name&&e.message==t.message;case EO:case PO:return e==t+"";case TO:var s=mO;case OO:var c=n&yO;if(s||(s=vO),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;n|=bO,a.set(e,t);var u=gO(s(e),s(t),n,i,o,a);return a.delete(e),u;case MO:if(tu)return tu.call(e)==tu.call(t)}return!1}var kO=AO;function DO(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var mg=DO,jO=mg,IO=ur;function LO(e,t,r){var n=t(e);return IO(e)?n:jO(n,r(e))}var vg=LO;function FO(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 RO=FO;function NO(){return[]}var yg=NO,BO=RO,zO=yg,WO=Object.prototype,VO=WO.propertyIsEnumerable,bg=Object.getOwnPropertySymbols,HO=bg?function(e){return e==null?[]:(e=Object(e),BO(bg(e),function(t){return VO.call(e,t)}))}:zO,ru=HO,UO=vg,YO=ru,GO=$o;function qO(e){return UO(e,GO,YO)}var xg=qO,wg=xg,XO=1,KO=Object.prototype,ZO=KO.hasOwnProperty;function QO(e,t,r,n,i,o){var a=r&XO,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:ZO.call(t,d)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var y=a;++f<c;){d=s[f];var x=e[d],b=t[d];if(n)var T=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(T===void 0?x===b||i(x,b,r,n,o):T)){m=!1;break}y||(y=d=="constructor")}if(m&&!y){var P=e.constructor,w=t.constructor;P!=w&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof w=="function"&&w instanceof w)&&(m=!1)}return o.delete(e),o.delete(t),m}var JO=QO,e9=wn,t9=Cr,r9=e9(t9,"DataView"),n9=r9,i9=wn,o9=Cr,a9=i9(o9,"Promise"),s9=a9,l9=wn,c9=Cr,u9=l9(c9,"Set"),f9=u9,d9=wn,h9=Cr,p9=d9(h9,"WeakMap"),g9=p9,nu=n9,iu=Qc,ou=s9,au=f9,su=g9,Cg=xn,ui=lg,Tg="[object Map]",m9="[object Object]",Sg="[object Promise]",Eg="[object Set]",Og="[object WeakMap]",Pg="[object DataView]",v9=ui(nu),y9=ui(iu),b9=ui(ou),x9=ui(au),w9=ui(su),Cn=Cg;(nu&&Cn(new nu(new ArrayBuffer(1)))!=Pg||iu&&Cn(new iu)!=Tg||ou&&Cn(ou.resolve())!=Sg||au&&Cn(new au)!=Eg||su&&Cn(new su)!=Og)&&(Cn=function(e){var t=Cg(e),r=t==m9?e.constructor:void 0,n=r?ui(r):"";if(n)switch(n){case v9:return Pg;case y9:return Tg;case b9:return Sg;case x9:return Eg;case w9:return Og}return t});var fs=Cn,lu=eu,C9=fg,T9=kO,S9=JO,Mg=fs,_g=ur,$g=Vc,E9=J0,O9=1,Ag="[object Arguments]",kg="[object Array]",ds="[object Object]",P9=Object.prototype,Dg=P9.hasOwnProperty;function M9(e,t,r,n,i,o){var a=_g(e),s=_g(t),c=a?kg:Mg(e),l=s?kg:Mg(t);c=c==Ag?ds:c,l=l==Ag?ds:l;var u=c==ds,f=l==ds,d=c==l;if(d&&$g(e)){if(!$g(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new lu),a||E9(e)?C9(e,t,r,n,i,o):T9(e,t,c,r,n,i,o);if(!(r&O9)){var h=u&&Dg.call(e,"__wrapped__"),g=f&&Dg.call(t,"__wrapped__");if(h||g){var m=h?e.value():e,y=g?t.value():t;return o||(o=new lu),i(m,y,r,n,o)}}return d?(o||(o=new lu),S9(e,t,r,n,i,o)):!1}var _9=M9,$9=_9,jg=Fr;function Ig(e,t,r,n,i){return e===t?!0:e==null||t==null||!jg(e)&&!jg(t)?e!==e&&t!==t:$9(e,t,r,n,Ig,i)}var cu=Ig,A9=eu,k9=cu,D9=1,j9=2;function I9(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 A9;if(n)var d=n(l,u,c,e,t,f);if(!(d===void 0?k9(u,l,D9|j9,n,f):d))return!1}}return!0}var L9=I9,F9=oi;function R9(e){return e===e&&!F9(e)}var Lg=R9,N9=Lg,B9=$o;function z9(e){for(var t=B9(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,N9(i)]}return t}var W9=z9;function V9(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Fg=V9,H9=L9,U9=W9,Y9=Fg;function G9(e){var t=U9(e);return t.length==1&&t[0][2]?Y9(t[0][0],t[0][1]):function(r){return r===e||H9(r,e,t)}}var q9=G9,X9=xn,K9=Fr,Z9="[object Symbol]";function Q9(e){return typeof e=="symbol"||K9(e)&&X9(e)==Z9}var uu=Q9,J9=ur,e8=uu,t8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r8=/^\w*$/;function n8(e,t){if(J9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||e8(e)?!0:r8.test(e)||!t8.test(e)||t!=null&&e in Object(t)}var fu=n8,Rg=Jc,i8="Expected a function";function du(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(i8);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(du.Cache||Rg),r}du.Cache=Rg;var o8=du,a8=o8,s8=500;function l8(e){var t=a8(e,function(n){return r.size===s8&&r.clear(),n}),r=t.cache;return t}var c8=l8,u8=c8,f8=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d8=/\\(\\)?/g,h8=u8(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(f8,function(r,n,i,o){t.push(i?o.replace(d8,"$1"):n||r)}),t}),p8=h8,Ng=Mo,g8=ag,m8=ur,v8=uu,y8=1/0,Bg=Ng?Ng.prototype:void 0,zg=Bg?Bg.toString:void 0;function Wg(e){if(typeof e=="string")return e;if(m8(e))return g8(e,Wg)+"";if(v8(e))return zg?zg.call(e):"";var t=e+"";return t=="0"&&1/e==-y8?"-0":t}var b8=Wg,x8=b8;function w8(e){return e==null?"":x8(e)}var C8=w8,T8=ur,S8=fu,E8=p8,O8=C8;function P8(e,t){return T8(e)?e:S8(e,t)?[e]:E8(O8(e))}var Vg=P8,M8=uu,_8=1/0;function $8(e){if(typeof e=="string"||M8(e))return e;var t=e+"";return t=="0"&&1/e==-_8?"-0":t}var hs=$8,A8=Vg,k8=hs;function D8(e,t){t=A8(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[k8(t[r++])];return r&&r==n?e:void 0}var Hg=D8,j8=Hg;function I8(e,t,r){var n=e==null?void 0:j8(e,t);return n===void 0?r:n}var L8=I8;function F8(e,t){return e!=null&&t in Object(e)}var R8=F8,N8=Vg,B8=X0,z8=ur,W8=K0,V8=Hc,H8=hs;function U8(e,t,r){t=N8(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=H8(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&&V8(i)&&W8(a,i)&&(z8(e)||B8(e)))}var Y8=U8,G8=R8,q8=Y8;function X8(e,t){return e!=null&&q8(e,t,G8)}var K8=X8,Z8=cu,Q8=L8,J8=K8,eP=fu,tP=Lg,rP=Fg,nP=hs,iP=1,oP=2;function aP(e,t){return eP(e)&&tP(t)?rP(nP(e),t):function(r){var n=Q8(r,e);return n===void 0&&n===t?J8(r,e):Z8(t,n,iP|oP)}}var sP=aP;function lP(e){return function(t){return t==null?void 0:t[e]}}var cP=lP,uP=Hg;function fP(e){return function(t){return uP(t,e)}}var dP=fP,hP=cP,pP=dP,gP=fu,mP=hs;function vP(e){return gP(e)?hP(mP(e)):pP(e)}var yP=vP,bP=q9,xP=sP,wP=ig,CP=ur,TP=yP;function SP(e){return typeof e=="function"?e:e==null?wP:typeof e=="object"?CP(e)?xP(e[0],e[1]):bP(e):TP(e)}var EP=SP,OP=os;function PP(e,t){return function(r,n){if(r==null)return r;if(!OP(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 MP=PP,_P=ng,$P=MP,AP=$P(_P),kP=AP,DP=kP,jP=os;function IP(e,t){var r=-1,n=jP(e)?Array(e.length):[];return DP(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var LP=IP,FP=ag,RP=EP,NP=LP,BP=ur;function zP(e,t){var r=BP(e)?FP:NP;return r(e,RP(t))}var WP=zP;Object.defineProperty(Po,"__esModule",{value:!0}),Po.flattenNames=void 0;var VP=vT,HP=ps(VP),UP=qc,YP=ps(UP),GP=T6,qP=ps(GP),XP=WP,KP=ps(XP);function ps(e){return e&&e.__esModule?e:{default:e}}var ZP=Po.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,KP.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,qP.default)(n)?(0,YP.default)(n,function(i,o){i===!0&&r.push(o),r.push(o+"-"+i)}):(0,HP.default)(n)&&r.push(n)}),r};Po.default=ZP;var Ao={};function QP(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var JP=QP,eM=wn,tM=function(){try{var e=eM(Object,"defineProperty");return e({},"",{}),e}catch{}}(),rM=tM,Ug=rM;function nM(e,t,r){t=="__proto__"&&Ug?Ug(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Yg=nM,iM=Yg,oM=Kc,aM=Object.prototype,sM=aM.hasOwnProperty;function lM(e,t,r){var n=e[t];(!(sM.call(e,t)&&oM(n,r))||r===void 0&&!(t in e))&&iM(e,t,r)}var Gg=lM,cM=Gg,uM=Yg;function fM(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?uM(r,s,c):cM(r,s,c)}return r}var gs=fM,dM=gs,hM=$o;function pM(e,t){return e&&dM(t,hM(t),e)}var gM=pM;function mM(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var vM=mM,yM=oi,bM=Gc,xM=vM,wM=Object.prototype,CM=wM.hasOwnProperty;function TM(e){if(!yM(e))return xM(e);var t=bM(e),r=[];for(var n in e)n=="constructor"&&(t||!CM.call(e,n))||r.push(n);return r}var SM=TM,EM=eg,OM=SM,PM=os;function MM(e){return PM(e)?EM(e,!0):OM(e)}var hu=MM,_M=gs,$M=hu;function AM(e,t){return e&&_M(t,$M(t),e)}var kM=AM,ms={exports:{}};ms.exports,function(e,t){var r=Cr,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}(ms,ms.exports);var DM=ms.exports;function jM(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var IM=jM,LM=gs,FM=ru;function RM(e,t){return LM(e,FM(e),t)}var NM=RM,BM=mg,zM=Xc,WM=ru,VM=yg,HM=Object.getOwnPropertySymbols,UM=HM?function(e){for(var t=[];e;)BM(t,WM(e)),e=zM(e);return t}:VM,qg=UM,YM=gs,GM=qg;function qM(e,t){return YM(e,GM(e),t)}var XM=qM,KM=vg,ZM=qg,QM=hu;function JM(e){return KM(e,QM,ZM)}var e_=JM,t_=Object.prototype,r_=t_.hasOwnProperty;function n_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&r_.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var i_=n_,Xg=dg;function o_(e){var t=new e.constructor(e.byteLength);return new Xg(t).set(new Xg(e)),t}var pu=o_,a_=pu;function s_(e,t){var r=t?a_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var l_=s_,c_=/\w*$/;function u_(e){var t=new e.constructor(e.source,c_.exec(e));return t.lastIndex=e.lastIndex,t}var f_=u_,Kg=Mo,Zg=Kg?Kg.prototype:void 0,Qg=Zg?Zg.valueOf:void 0;function d_(e){return Qg?Object(Qg.call(e)):{}}var h_=d_,p_=pu;function g_(e,t){var r=t?p_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var m_=g_,v_=pu,y_=l_,b_=f_,x_=h_,w_=m_,C_="[object Boolean]",T_="[object Date]",S_="[object Map]",E_="[object Number]",O_="[object RegExp]",P_="[object Set]",M_="[object String]",__="[object Symbol]",$_="[object ArrayBuffer]",A_="[object DataView]",k_="[object Float32Array]",D_="[object Float64Array]",j_="[object Int8Array]",I_="[object Int16Array]",L_="[object Int32Array]",F_="[object Uint8Array]",R_="[object Uint8ClampedArray]",N_="[object Uint16Array]",B_="[object Uint32Array]";function z_(e,t,r){var n=e.constructor;switch(t){case $_:return v_(e);case C_:case T_:return new n(+e);case A_:return y_(e,r);case k_:case D_:case j_:case I_:case L_:case F_:case R_:case N_:case B_:return w_(e,r);case S_:return new n;case E_:case M_:return new n(e);case O_:return b_(e);case P_:return new n;case __:return x_(e)}}var W_=z_,V_=oi,Jg=Object.create,H_=function(){function e(){}return function(t){if(!V_(t))return{};if(Jg)return Jg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),U_=H_,Y_=U_,G_=Xc,q_=Gc;function X_(e){return typeof e.constructor=="function"&&!q_(e)?Y_(G_(e)):{}}var K_=X_,Z_=fs,Q_=Fr,J_="[object Map]";function e$(e){return Q_(e)&&Z_(e)==J_}var t$=e$,r$=t$,n$=Uc,em=Yc,tm=em&&em.isMap,i$=tm?n$(tm):r$,o$=i$,a$=fs,s$=Fr,l$="[object Set]";function c$(e){return s$(e)&&a$(e)==l$}var u$=c$,f$=u$,d$=Uc,rm=Yc,nm=rm&&rm.isSet,h$=nm?d$(nm):f$,p$=h$,g$=eu,m$=JP,v$=Gg,y$=gM,b$=kM,x$=DM,w$=IM,C$=NM,T$=XM,S$=xg,E$=e_,O$=fs,P$=i_,M$=W_,_$=K_,$$=ur,A$=Vc,k$=o$,D$=oi,j$=p$,I$=$o,L$=hu,F$=1,R$=2,N$=4,im="[object Arguments]",B$="[object Array]",z$="[object Boolean]",W$="[object Date]",V$="[object Error]",om="[object Function]",H$="[object GeneratorFunction]",U$="[object Map]",Y$="[object Number]",am="[object Object]",G$="[object RegExp]",q$="[object Set]",X$="[object String]",K$="[object Symbol]",Z$="[object WeakMap]",Q$="[object ArrayBuffer]",J$="[object DataView]",eA="[object Float32Array]",tA="[object Float64Array]",rA="[object Int8Array]",nA="[object Int16Array]",iA="[object Int32Array]",oA="[object Uint8Array]",aA="[object Uint8ClampedArray]",sA="[object Uint16Array]",lA="[object Uint32Array]",nt={};nt[im]=nt[B$]=nt[Q$]=nt[J$]=nt[z$]=nt[W$]=nt[eA]=nt[tA]=nt[rA]=nt[nA]=nt[iA]=nt[U$]=nt[Y$]=nt[am]=nt[G$]=nt[q$]=nt[X$]=nt[K$]=nt[oA]=nt[aA]=nt[sA]=nt[lA]=!0,nt[V$]=nt[om]=nt[Z$]=!1;function vs(e,t,r,n,i,o){var a,s=t&F$,c=t&R$,l=t&N$;if(r&&(a=i?r(e,n,i,o):r(e)),a!==void 0)return a;if(!D$(e))return e;var u=$$(e);if(u){if(a=P$(e),!s)return w$(e,a)}else{var f=O$(e),d=f==om||f==H$;if(A$(e))return x$(e,s);if(f==am||f==im||d&&!i){if(a=c||d?{}:_$(e),!s)return c?T$(e,b$(a,e)):C$(e,y$(a,e))}else{if(!nt[f])return i?e:{};a=M$(e,f,s)}}o||(o=new g$);var h=o.get(e);if(h)return h;o.set(e,a),j$(e)?e.forEach(function(y){a.add(vs(y,t,r,y,e,o))}):k$(e)&&e.forEach(function(y,x){a.set(x,vs(y,t,r,x,e,o))});var g=l?c?E$:S$:c?L$:I$,m=u?void 0:g(e);return m$(m||e,function(y,x){m&&(x=y,y=e[x]),v$(a,x,vs(y,t,r,x,e,o))}),a}var cA=vs,uA=cA,fA=1,dA=4;function hA(e){return uA(e,fA|dA)}var pA=hA;Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.mergeClasses=void 0;var gA=qc,mA=sm(gA),vA=pA,yA=sm(vA),bA=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 sm(e){return e&&e.__esModule?e:{default:e}}var xA=Ao.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,yA.default)(t.default)||{};return r.map(function(i){var o=t[i];return o&&(0,mA.default)(o,function(a,s){n[s]||(n[s]={}),n[s]=bA({},n[s],o[s])}),i}),n};Ao.default=xA;var ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.autoprefix=void 0;var wA=qc,lm=TA(wA),CA=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 TA(e){return e&&e.__esModule?e:{default:e}}var SA={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}}},EA=ko.autoprefix=function(t){var r={};return(0,lm.default)(t,function(n,i){var o={};(0,lm.default)(n,function(a,s){var c=SA[s];c?o=CA({},o,c(a)):o[s]=a}),r[i]=o}),r};ko.default=EA;var Do={};Object.defineProperty(Do,"__esModule",{value:!0}),Do.hover=void 0;var OA=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},PA=p,gu=MA(PA);function MA(e){return e&&e.__esModule?e:{default:e}}function _A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cm(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 $A(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 AA=Do.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){$A(i,n);function i(){var o,a,s,c;_A(this,i);for(var l=arguments.length,u=Array(l),f=0;f<l;f++)u[f]=arguments[f];return c=(a=(s=cm(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 gu.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},gu.default.createElement(t,OA({},s.props,s.state)))},a),cm(s,c)}return i}(gu.default.Component)};Do.default=AA;var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.active=void 0;var kA=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},DA=p,mu=jA(DA);function jA(e){return e&&e.__esModule?e:{default:e}}function IA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function um(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 LA(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 FA=jo.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){LA(i,n);function i(){var o,a,s,c;IA(this,i);for(var l=arguments.length,u=Array(l),f=0;f<l;f++)u[f]=arguments[f];return c=(a=(s=um(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 mu.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},mu.default.createElement(t,kA({},s.props,s.state)))},a),um(s,c)}return i}(mu.default.Component)};jo.default=FA;var vu={};Object.defineProperty(vu,"__esModule",{value:!0});var RA=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};vu.default=RA,Object.defineProperty(or,"__esModule",{value:!0}),or.ReactCSS=or.loop=or.handleActive=yu=or.handleHover=or.hover=void 0;var NA=Po,BA=fi(NA),zA=Ao,WA=fi(zA),VA=ko,HA=fi(VA),UA=Do,fm=fi(UA),YA=jo,GA=fi(YA),qA=vu,XA=fi(qA);function fi(e){return e&&e.__esModule?e:{default:e}}or.hover=fm.default;var yu=or.handleHover=fm.default;or.handleActive=GA.default,or.loop=XA.default;var KA=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,BA.default)(n),a=(0,WA.default)(t,o);return(0,HA.default)(a)},Ce=or.default=KA,ZA=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},bu={},QA=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},JA=function(t,r,n,i){var o=t+"-"+r+"-"+n+(i?"-server":"");if(bu[o])return bu[o];var a=QA(t,r,n,i);return bu[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},di=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=Ce({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+JA(r,n,i,o.canvas)+") center left"}}});return p.isValidElement(c)?p.cloneElement(c,dm({},c.props,{style:dm({},c.props.style,l.grid)})):p.createElement("div",{style:l.grid})};di.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ek=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},tk=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 rk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hm(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 nk(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 xu=function(e){nk(t,e);function t(){var r,n,i,o;rk(this,t);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return o=(n=(i=hm(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var u=ZA(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),hm(i,o)}return tk(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,o=Ce({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
+ 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:ek({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return p.createElement("div",{style:o.alpha},p.createElement("div",{style:o.checkboard},p.createElement(di,{renderers:this.props.renderers})),p.createElement("div",{style:o.gradient}),p.createElement("div",{style:o.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("div",{style:o.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:o.slider}))))}}]),t}(p.PureComponent||p.Component),ik=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 ok(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ak(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sk(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 lk(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 ck=1,pm=38,uk=40,fk=[pm,uk],dk=function(t){return fk.indexOf(t)>-1},hk=function(t){return Number(String(t).replace(/%/g,""))},pk=1,De=function(e){lk(t,e);function t(r){ak(this,t);var n=sk(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=hk(i.target.value);if(!isNaN(o)&&dk(i.keyCode)){var a=n.getArrowOffset(),s=i.keyCode===pm?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-"+pk++,n}return ik(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 ok({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||ck}},{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=Ce({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 p.createElement("div",{style:i.wrap},p.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?p.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(p.PureComponent||p.Component),gk=function(t,r,n,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),u=c-(i.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f=void 0;if(u<0)f=359;else if(u>a)f=0;else{var d=-(u*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 g=l*100/o;h=360*g/100}if(n.h!==h)return{h,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},mk=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 vk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gm(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 yk(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 hi=function(e){yk(t,e);function t(){var r,n,i,o;vk(this,t);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return o=(n=(i=gm(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var u=gk(l,i.props.direction,i.props.hsl,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()},n),gm(i,o)}return mk(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=Ce({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 p.createElement("div",{style:a.hue},p.createElement("div",{className:"hue-"+o,style:a.container,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("style",null,`
108
+ .hue-horizontal {
109
+ background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
110
+ 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
111
+ background: -webkit-linear-gradient(to right, #f00 0%, #ff0
112
+ 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
113
+ }
114
+
115
+ .hue-vertical {
116
+ background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
117
+ #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
118
+ background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
119
+ #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
120
+ }
121
+ `),p.createElement("div",{style:a.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:a.slider}))))}}]),t}(p.PureComponent||p.Component);function bk(){this.__data__=[],this.size=0}function Io(e,t){return e===t||e!==e&&t!==t}function ys(e,t){for(var r=e.length;r--;)if(Io(e[r][0],t))return r;return-1}var xk=Array.prototype,wk=xk.splice;function Ck(e){var t=this.__data__,r=ys(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():wk.call(t,r,1),--this.size,!0}function Tk(e){var t=this.__data__,r=ys(t,e);return r<0?void 0:t[r][1]}function Sk(e){return ys(this.__data__,e)>-1}function Ek(e,t){var r=this.__data__,n=ys(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=bk,Rr.prototype.delete=Ck,Rr.prototype.get=Tk,Rr.prototype.has=Sk,Rr.prototype.set=Ek;function Ok(){this.__data__=new Rr,this.size=0}function Pk(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Mk(e){return this.__data__.get(e)}function _k(e){return this.__data__.has(e)}var $k=typeof global=="object"&&global&&global.Object===Object&&global;const mm=$k;var Ak=typeof self=="object"&&self&&self.Object===Object&&self,kk=mm||Ak||Function("return this")();const fr=kk;var Dk=fr.Symbol;const en=Dk;var vm=Object.prototype,jk=vm.hasOwnProperty,Ik=vm.toString,Lo=en?en.toStringTag:void 0;function Lk(e){var t=jk.call(e,Lo),r=e[Lo];try{e[Lo]=void 0;var n=!0}catch{}var i=Ik.call(e);return n&&(t?e[Lo]=r:delete e[Lo]),i}var Fk=Object.prototype,Rk=Fk.toString;function Nk(e){return Rk.call(e)}var Bk="[object Null]",zk="[object Undefined]",ym=en?en.toStringTag:void 0;function Tn(e){return e==null?e===void 0?zk:Bk:ym&&ym in Object(e)?Lk(e):Nk(e)}function ar(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wk="[object AsyncFunction]",Vk="[object Function]",Hk="[object GeneratorFunction]",Uk="[object Proxy]";function wu(e){if(!ar(e))return!1;var t=Tn(e);return t==Vk||t==Hk||t==Wk||t==Uk}var Yk=fr["__core-js_shared__"];const Cu=Yk;var bm=function(){var e=/[^.]+$/.exec(Cu&&Cu.keys&&Cu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Gk(e){return!!bm&&bm in e}var qk=Function.prototype,Xk=qk.toString;function Sn(e){if(e!=null){try{return Xk.call(e)}catch{}try{return e+""}catch{}}return""}var Kk=/[\\^$.*+?()[\]{}|]/g,Zk=/^\[object .+?Constructor\]$/,Qk=Function.prototype,Jk=Object.prototype,eD=Qk.toString,tD=Jk.hasOwnProperty,rD=RegExp("^"+eD.call(tD).replace(Kk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nD(e){if(!ar(e)||Gk(e))return!1;var t=wu(e)?rD:Zk;return t.test(Sn(e))}function iD(e,t){return e==null?void 0:e[t]}function En(e,t){var r=iD(e,t);return nD(r)?r:void 0}var oD=En(fr,"Map");const Fo=oD;var aD=En(Object,"create");const Ro=aD;function sD(){this.__data__=Ro?Ro(null):{},this.size=0}function lD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cD="__lodash_hash_undefined__",uD=Object.prototype,fD=uD.hasOwnProperty;function dD(e){var t=this.__data__;if(Ro){var r=t[e];return r===cD?void 0:r}return fD.call(t,e)?t[e]:void 0}var hD=Object.prototype,pD=hD.hasOwnProperty;function gD(e){var t=this.__data__;return Ro?t[e]!==void 0:pD.call(t,e)}var mD="__lodash_hash_undefined__";function vD(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ro&&t===void 0?mD:t,this}function On(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])}}On.prototype.clear=sD,On.prototype.delete=lD,On.prototype.get=dD,On.prototype.has=gD,On.prototype.set=vD;function yD(){this.size=0,this.__data__={hash:new On,map:new(Fo||Rr),string:new On}}function bD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bs(e,t){var r=e.__data__;return bD(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xD(e){var t=bs(this,e).delete(e);return this.size-=t?1:0,t}function wD(e){return bs(this,e).get(e)}function CD(e){return bs(this,e).has(e)}function TD(e,t){var r=bs(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=yD,Nr.prototype.delete=xD,Nr.prototype.get=wD,Nr.prototype.has=CD,Nr.prototype.set=TD;var SD=200;function ED(e,t){var r=this.__data__;if(r instanceof Rr){var n=r.__data__;if(!Fo||n.length<SD-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 Tr(e){var t=this.__data__=new Rr(e);this.size=t.size}Tr.prototype.clear=Ok,Tr.prototype.delete=Pk,Tr.prototype.get=Mk,Tr.prototype.has=_k,Tr.prototype.set=ED;var OD=function(){try{var e=En(Object,"defineProperty");return e({},"",{}),e}catch{}}();const xs=OD;function Tu(e,t,r){t=="__proto__"&&xs?xs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Su(e,t,r){(r!==void 0&&!Io(e[t],r)||r===void 0&&!(t in e))&&Tu(e,t,r)}function PD(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 MD=PD();const xm=MD;var wm=typeof z=="object"&&z&&!z.nodeType&&z,Cm=wm&&typeof module=="object"&&module&&!module.nodeType&&module,_D=Cm&&Cm.exports===wm,Tm=_D?fr.Buffer:void 0,Sm=Tm?Tm.allocUnsafe:void 0;function $D(e,t){if(t)return e.slice();var r=e.length,n=Sm?Sm(r):new e.constructor(r);return e.copy(n),n}var AD=fr.Uint8Array;const ws=AD;function kD(e){var t=new e.constructor(e.byteLength);return new ws(t).set(new ws(e)),t}function DD(e,t){var r=t?kD(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function jD(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Em=Object.create,ID=function(){function e(){}return function(t){if(!ar(t))return{};if(Em)return Em(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const LD=ID;function Om(e,t){return function(r){return e(t(r))}}var FD=Om(Object.getPrototypeOf,Object);const Pm=FD;var RD=Object.prototype;function Eu(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||RD;return e===r}function ND(e){return typeof e.constructor=="function"&&!Eu(e)?LD(Pm(e)):{}}function tn(e){return e!=null&&typeof e=="object"}var BD="[object Arguments]";function Mm(e){return tn(e)&&Tn(e)==BD}var _m=Object.prototype,zD=_m.hasOwnProperty,WD=_m.propertyIsEnumerable,VD=Mm(function(){return arguments}())?Mm:function(e){return tn(e)&&zD.call(e,"callee")&&!WD.call(e,"callee")};const Cs=VD;var HD=Array.isArray;const Qt=HD;var UD=9007199254740991;function Ou(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=UD}function pi(e){return e!=null&&Ou(e.length)&&!wu(e)}function YD(e){return tn(e)&&pi(e)}function GD(){return!1}var $m=typeof z=="object"&&z&&!z.nodeType&&z,Am=$m&&typeof module=="object"&&module&&!module.nodeType&&module,qD=Am&&Am.exports===$m,km=qD?fr.Buffer:void 0,XD=km?km.isBuffer:void 0,KD=XD||GD;const Ts=KD;var ZD="[object Object]",QD=Function.prototype,JD=Object.prototype,Dm=QD.toString,ej=JD.hasOwnProperty,tj=Dm.call(Object);function rj(e){if(!tn(e)||Tn(e)!=ZD)return!1;var t=Pm(e);if(t===null)return!0;var r=ej.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Dm.call(r)==tj}var nj="[object Arguments]",ij="[object Array]",oj="[object Boolean]",aj="[object Date]",sj="[object Error]",lj="[object Function]",cj="[object Map]",uj="[object Number]",fj="[object Object]",dj="[object RegExp]",hj="[object Set]",pj="[object String]",gj="[object WeakMap]",mj="[object ArrayBuffer]",vj="[object DataView]",yj="[object Float32Array]",bj="[object Float64Array]",xj="[object Int8Array]",wj="[object Int16Array]",Cj="[object Int32Array]",Tj="[object Uint8Array]",Sj="[object Uint8ClampedArray]",Ej="[object Uint16Array]",Oj="[object Uint32Array]",at={};at[yj]=at[bj]=at[xj]=at[wj]=at[Cj]=at[Tj]=at[Sj]=at[Ej]=at[Oj]=!0,at[nj]=at[ij]=at[mj]=at[oj]=at[vj]=at[aj]=at[sj]=at[lj]=at[cj]=at[uj]=at[fj]=at[dj]=at[hj]=at[pj]=at[gj]=!1;function Pj(e){return tn(e)&&Ou(e.length)&&!!at[Tn(e)]}function Mj(e){return function(t){return e(t)}}var jm=typeof z=="object"&&z&&!z.nodeType&&z,No=jm&&typeof module=="object"&&module&&!module.nodeType&&module,_j=No&&No.exports===jm,Pu=_j&&mm.process,$j=function(){try{var e=No&&No.require&&No.require("util").types;return e||Pu&&Pu.binding&&Pu.binding("util")}catch{}}();const Im=$j;var Lm=Im&&Im.isTypedArray,Aj=Lm?Mj(Lm):Pj;const Mu=Aj;function _u(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var kj=Object.prototype,Dj=kj.hasOwnProperty;function jj(e,t,r){var n=e[t];(!(Dj.call(e,t)&&Io(n,r))||r===void 0&&!(t in e))&&Tu(e,t,r)}function Ij(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?Tu(r,s,c):jj(r,s,c)}return r}function Lj(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Fj=9007199254740991,Rj=/^(?:0|[1-9]\d*)$/;function $u(e,t){var r=typeof e;return t=t??Fj,!!t&&(r=="number"||r!="symbol"&&Rj.test(e))&&e>-1&&e%1==0&&e<t}var Nj=Object.prototype,Bj=Nj.hasOwnProperty;function Fm(e,t){var r=Qt(e),n=!r&&Cs(e),i=!r&&!n&&Ts(e),o=!r&&!n&&!i&&Mu(e),a=r||n||i||o,s=a?Lj(e.length,String):[],c=s.length;for(var l in e)(t||Bj.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||$u(l,c)))&&s.push(l);return s}function zj(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Wj=Object.prototype,Vj=Wj.hasOwnProperty;function Hj(e){if(!ar(e))return zj(e);var t=Eu(e),r=[];for(var n in e)n=="constructor"&&(t||!Vj.call(e,n))||r.push(n);return r}function Rm(e){return pi(e)?Fm(e,!0):Hj(e)}function Uj(e){return Ij(e,Rm(e))}function Yj(e,t,r,n,i,o,a){var s=_u(e,r),c=_u(t,r),l=a.get(c);if(l){Su(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&&Ts(c),g=!d&&!h&&Mu(c);u=c,d||h||g?Qt(s)?u=s:YD(s)?u=jD(s):h?(f=!1,u=$D(c,!0)):g?(f=!1,u=DD(c,!0)):u=[]:rj(c)||Cs(c)?(u=s,Cs(s)?u=Uj(s):(!ar(s)||wu(s))&&(u=ND(c))):f=!1}f&&(a.set(c,u),i(u,c,n,o,a),a.delete(c)),Su(e,r,u)}function Nm(e,t,r,n,i){e!==t&&xm(t,function(o,a){if(i||(i=new Tr),ar(o))Yj(e,t,a,r,Nm,n,i);else{var s=n?n(_u(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Su(e,a,s)}},Rm)}function Ss(e){return e}function Gj(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 Bm=Math.max;function qj(e,t,r){return t=Bm(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Bm(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),Gj(e,this,s)}}function Xj(e){return function(){return e}}var Kj=xs?function(e,t){return xs(e,"toString",{configurable:!0,enumerable:!1,value:Xj(t),writable:!0})}:Ss;const Zj=Kj;var Qj=800,Jj=16,eI=Date.now;function tI(e){var t=0,r=0;return function(){var n=eI(),i=Jj-(n-r);if(r=n,i>0){if(++t>=Qj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var rI=tI(Zj);const nI=rI;function iI(e,t){return nI(qj(e,t,Ss),e+"")}function oI(e,t,r){if(!ar(r))return!1;var n=typeof t;return(n=="number"?pi(r)&&$u(t,r.length):n=="string"&&t in r)?Io(r[t],e):!1}function aI(e){return iI(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&&oI(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 sI=aI(function(e,t,r){Nm(e,t,r)});const Vt=sI;var Bo=function(t){var r=t.zDepth,n=t.radius,i=t.background,o=t.children,a=t.styles,s=a===void 0?{}:a,c=Ce(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 p.createElement("div",{style:c.wrap},p.createElement("div",{style:c.bg}),p.createElement("div",{style:c.content},o))};Bo.propTypes={background:A.string,zDepth:A.oneOf([0,1,2,3,4,5]),radius:A.number,styles:A.object},Bo.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var lI=function(){return fr.Date.now()};const Au=lI;var cI=/\s/;function uI(e){for(var t=e.length;t--&&cI.test(e.charAt(t)););return t}var fI=/^\s+/;function dI(e){return e&&e.slice(0,uI(e)+1).replace(fI,"")}var hI="[object Symbol]";function Es(e){return typeof e=="symbol"||tn(e)&&Tn(e)==hI}var zm=0/0,pI=/^[-+]0x[0-9a-f]+$/i,gI=/^0b[01]+$/i,mI=/^0o[0-7]+$/i,vI=parseInt;function Wm(e){if(typeof e=="number")return e;if(Es(e))return zm;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=dI(e);var r=gI.test(e);return r||mI.test(e)?vI(e.slice(2),r?2:8):pI.test(e)?zm:+e}var yI="Expected a function",bI=Math.max,xI=Math.min;function zo(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(yI);t=Wm(t)||0,ar(r)&&(u=!!r.leading,f="maxWait"in r,o=f?bI(Wm(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(E){var O=n,_=i;return n=i=void 0,l=E,a=e.apply(_,O),a}function g(E){return l=E,s=setTimeout(x,t),u?h(E):a}function m(E){var O=E-c,_=E-l,L=t-O;return f?xI(L,o-_):L}function y(E){var O=E-c,_=E-l;return c===void 0||O>=t||O<0||f&&_>=o}function x(){var E=Au();if(y(E))return b(E);s=setTimeout(x,m(E))}function b(E){return s=void 0,d&&n?h(E):(n=i=void 0,a)}function T(){s!==void 0&&clearTimeout(s),l=0,n=c=i=s=void 0}function P(){return s===void 0?a:b(Au())}function w(){var E=Au(),O=y(E);if(n=arguments,i=this,c=E,O){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=T,w.flush=P,w}var wI="Expected a function";function Vm(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(wI);return ar(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),zo(e,t,{leading:n,maxWait:t,trailing:i})}var CI=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"}},TI=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 SI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EI(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 OI(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 Os=function(e){OI(t,e);function t(r){SI(this,t);var n=EI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,CI(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=Vm(function(i,o,a){i(o,a)},50),n}return TI(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=Ce({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:c,circle:l}},{custom:!!this.props.style});return p.createElement("div",{style:u.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("style",null,`
123
+ .saturation-white {
124
+ background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
125
+ background: linear-gradient(to right, #fff, rgba(255,255,255,0));
126
+ }
127
+ .saturation-black {
128
+ background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
129
+ background: linear-gradient(to top, #000, rgba(0,0,0,0));
130
+ }
131
+ `),p.createElement("div",{style:u.white,className:"saturation-white"},p.createElement("div",{style:u.black,className:"saturation-black"}),p.createElement("div",{style:u.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:u.circle}))))}}]),t}(p.PureComponent||p.Component);function PI(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var MI=Om(Object.keys,Object);const _I=MI;var $I=Object.prototype,AI=$I.hasOwnProperty;function kI(e){if(!Eu(e))return _I(e);var t=[];for(var r in Object(e))AI.call(e,r)&&r!="constructor"&&t.push(r);return t}function ku(e){return pi(e)?Fm(e):kI(e)}function DI(e,t){return e&&xm(e,t,ku)}function jI(e,t){return function(r,n){if(r==null)return r;if(!pi(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 II=jI(DI);const Hm=II;function LI(e){return typeof e=="function"?e:Ss}function FI(e,t){var r=Qt(e)?PI:Hm;return r(e,LI(t))}function Ps(e){"@babel/helpers - typeof";return Ps=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},Ps(e)}var RI=/^\s+/,NI=/\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=BI(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=Km(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ym(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ym(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=Um(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Um(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 Gm(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return HI(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:rL[Gm(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+qm(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=he(t);n="#"+qm(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(qI,arguments)},brighten:function(){return this._applyModification(XI,arguments)},darken:function(){return this._applyModification(KI,arguments)},desaturate:function(){return this._applyModification(UI,arguments)},saturate:function(){return this._applyModification(YI,arguments)},greyscale:function(){return this._applyModification(GI,arguments)},spin:function(){return this._applyModification(ZI,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(eL,arguments)},complement:function(){return this._applyCombination(QI,arguments)},monochromatic:function(){return this._applyCombination(tL,arguments)},splitcomplement:function(){return this._applyCombination(JI,arguments)},triad:function(){return this._applyCombination(Xm,[3])},tetrad:function(){return this._applyCombination(Xm,[4])}},he.fromRatio=function(e,t){if(Ps(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Wo(e[n]));e=r}return he(e,t)};function BI(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=aL(e)),Ps(e)=="object"&&(Br(e.r)&&Br(e.g)&&Br(e.b)?(t=zI(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Br(e.h)&&Br(e.s)&&Br(e.v)?(n=Wo(e.s),i=Wo(e.v),t=VI(e.h,n,i),a=!0,s="hsv"):Br(e.h)&&Br(e.s)&&Br(e.l)&&(n=Wo(e.s),o=Wo(e.l),t=WI(e.h,n,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Km(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 zI(e,t,r){return{r:ct(e,255)*255,g:ct(t,255)*255,b:ct(r,255)*255}}function Um(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 WI(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 Ym(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 VI(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 Gm(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 HI(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(Zm(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 qm(e,t,r,n){var i=[dr(Zm(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 UI(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s-=t/100,r.s=Ms(r.s),he(r)}function YI(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s+=t/100,r.s=Ms(r.s),he(r)}function GI(e){return he(e).desaturate(100)}function qI(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l+=t/100,r.l=Ms(r.l),he(r)}function XI(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 KI(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l-=t/100,r.l=Ms(r.l),he(r)}function ZI(e,t){var r=he(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,he(r)}function QI(e){var t=he(e).toHsl();return t.h=(t.h+180)%360,he(t)}function Xm(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 JI(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 eL(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 tL(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=sL(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 Du=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"},rL=he.hexNames=nL(Du);function nL(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Km(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ct(e,t){iL(e)&&(e="100%");var r=oL(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 Ms(e){return Math.min(1,Math.max(0,e))}function Jt(e){return parseInt(e,16)}function iL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function oL(e){return typeof e=="string"&&e.indexOf("%")!=-1}function dr(e){return e.length==1?"0"+e:""+e}function Wo(e){return e<=1&&(e=e*100+"%"),e}function Zm(e){return Math.round(parseFloat(e)*255).toString(16)}function Qm(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 Br(e){return!!hr.CSS_UNIT.exec(e)}function aL(e){e=e.replace(RI,"").replace(NI,"").toLowerCase();var t=!1;if(Du[e])e=Du[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:Qm(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:Qm(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 sL(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 Jm=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,i=0;return FI(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},Vo=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()},ju=function(t){if(!t)return"#fff";var r=Vo(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},Iu=function(t,r){var n=t.replace("°","");return he(r+" ("+n+")")._ok},Ho=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},lL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function cL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uL(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 fL(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){fL(i,n);function i(o){cL(this,i);var a=uL(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return a.handleChange=function(s,c){var l=Jm(s);if(l){var u=Vo(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=Jm(s);if(l){var u=Vo(s,s.h||a.state.oldHue);a.props.onSwatchHover&&a.props.onSwatchHover(u,c)}},a.state=Ho({},Vo(o.color,0)),a.debounce=zo(function(s,c,l){s(c,l)},100),a}return lL(i,[{key:"render",value:function(){var a={};return this.props.onSwatchHover&&(a.onSwatchHover=this.handleSwatchHover),p.createElement(t,Ho({},this.props,this.state,{onChange:this.handleChange},a))}}],[{key:"getDerivedStateFromProps",value:function(a,s){return Ho({},Vo(a.color,s.oldHue))}}]),i}(p.PureComponent||p.Component);return r.propTypes=Ho({},t.propTypes),r.defaultProps=Ho({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},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},hL=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 pL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e1(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 gL(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 mL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){gL(i,n);function i(){var o,a,s,c;pL(this,i);for(var l=arguments.length,u=Array(l),f=0;f<l;f++)u[f]=arguments[f];return c=(a=(s=e1(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),e1(s,c)}return hL(i,[{key:"render",value:function(){return p.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},p.createElement(t,dL({},this.props,this.state)))}}]),i}(p.Component)},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},vL=13,yL=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=Ce({default:{swatch:t1({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,u?d:{})}}),m=function(P){return o(r,P)},y=function(P){return P.keyCode===vL&&o(r,P)},x=function(P){return a(r,P)},b={};return a&&(b.onMouseOver=x),p.createElement("div",t1({style:g.swatch,onClick:m,title:c,tabIndex:0,onKeyDown:y},b),l,h&&p.createElement(di,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Pn=mL(yL);var bL=function(t){var r=t.direction,n=Ce({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 p.createElement("div",{style:n.picker})},xL=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},r1=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=Ce({default:{picker:{position:"relative",width:i,height:o},alpha:{radius:"2px",style:c}}});return p.createElement("div",{style:h.picker,className:"alpha-picker "+d},p.createElement(xu,xL({},h.alpha,{rgb:r,hsl:n,pointer:u,renderers:l,onChange:a,direction:s})))};r1.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:bL},Ht(r1);function n1(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 wL="__lodash_hash_undefined__";function CL(e){return this.__data__.set(e,wL),this}function TL(e){return this.__data__.has(e)}function _s(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Nr;++t<r;)this.add(e[t])}_s.prototype.add=_s.prototype.push=CL,_s.prototype.has=TL;function SL(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 EL(e,t){return e.has(t)}var OL=1,PL=2;function i1(e,t,r,n,i,o){var a=r&OL,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&PL?new _s:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var g=e[f],m=t[f];if(n)var y=a?n(m,g,f,t,e,o):n(g,m,f,e,t,o);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!SL(t,function(x,b){if(!EL(h,b)&&(g===x||i(g,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(g===m||i(g,m,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function ML(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function _L(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var $L=1,AL=2,kL="[object Boolean]",DL="[object Date]",jL="[object Error]",IL="[object Map]",LL="[object Number]",FL="[object RegExp]",RL="[object Set]",NL="[object String]",BL="[object Symbol]",zL="[object ArrayBuffer]",WL="[object DataView]",o1=en?en.prototype:void 0,Lu=o1?o1.valueOf:void 0;function VL(e,t,r,n,i,o,a){switch(r){case WL:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zL:return!(e.byteLength!=t.byteLength||!o(new ws(e),new ws(t)));case kL:case DL:case LL:return Io(+e,+t);case jL:return e.name==t.name&&e.message==t.message;case FL:case NL:return e==t+"";case IL:var s=ML;case RL:var c=n&$L;if(s||(s=_L),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;n|=AL,a.set(e,t);var u=i1(s(e),s(t),n,i,o,a);return a.delete(e),u;case BL:if(Lu)return Lu.call(e)==Lu.call(t)}return!1}function HL(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function UL(e,t,r){var n=t(e);return Qt(e)?n:HL(n,r(e))}function YL(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 GL(){return[]}var qL=Object.prototype,XL=qL.propertyIsEnumerable,a1=Object.getOwnPropertySymbols,KL=a1?function(e){return e==null?[]:(e=Object(e),YL(a1(e),function(t){return XL.call(e,t)}))}:GL;const ZL=KL;function s1(e){return UL(e,ku,ZL)}var QL=1,JL=Object.prototype,eF=JL.hasOwnProperty;function tF(e,t,r,n,i,o){var a=r&QL,s=s1(e),c=s.length,l=s1(t),u=l.length;if(c!=u&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:eF.call(t,d)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var y=a;++f<c;){d=s[f];var x=e[d],b=t[d];if(n)var T=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(T===void 0?x===b||i(x,b,r,n,o):T)){m=!1;break}y||(y=d=="constructor")}if(m&&!y){var P=e.constructor,w=t.constructor;P!=w&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof w=="function"&&w instanceof w)&&(m=!1)}return o.delete(e),o.delete(t),m}var rF=En(fr,"DataView");const Fu=rF;var nF=En(fr,"Promise");const Ru=nF;var iF=En(fr,"Set");const Nu=iF;var oF=En(fr,"WeakMap");const Bu=oF;var l1="[object Map]",aF="[object Object]",c1="[object Promise]",u1="[object Set]",f1="[object WeakMap]",d1="[object DataView]",sF=Sn(Fu),lF=Sn(Fo),cF=Sn(Ru),uF=Sn(Nu),fF=Sn(Bu),Mn=Tn;(Fu&&Mn(new Fu(new ArrayBuffer(1)))!=d1||Fo&&Mn(new Fo)!=l1||Ru&&Mn(Ru.resolve())!=c1||Nu&&Mn(new Nu)!=u1||Bu&&Mn(new Bu)!=f1)&&(Mn=function(e){var t=Tn(e),r=t==aF?e.constructor:void 0,n=r?Sn(r):"";if(n)switch(n){case sF:return d1;case lF:return l1;case cF:return c1;case uF:return u1;case fF:return f1}return t});const h1=Mn;var dF=1,p1="[object Arguments]",g1="[object Array]",$s="[object Object]",hF=Object.prototype,m1=hF.hasOwnProperty;function pF(e,t,r,n,i,o){var a=Qt(e),s=Qt(t),c=a?g1:h1(e),l=s?g1:h1(t);c=c==p1?$s:c,l=l==p1?$s:l;var u=c==$s,f=l==$s,d=c==l;if(d&&Ts(e)){if(!Ts(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new Tr),a||Mu(e)?i1(e,t,r,n,i,o):VL(e,t,c,r,n,i,o);if(!(r&dF)){var h=u&&m1.call(e,"__wrapped__"),g=f&&m1.call(t,"__wrapped__");if(h||g){var m=h?e.value():e,y=g?t.value():t;return o||(o=new Tr),i(m,y,r,n,o)}}return d?(o||(o=new Tr),tF(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:pF(e,t,r,n,zu,i)}var gF=1,mF=2;function vF(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 Tr;if(n)var d=n(l,u,c,e,t,f);if(!(d===void 0?zu(u,l,gF|mF,n,f):d))return!1}}return!0}function v1(e){return e===e&&!ar(e)}function yF(e){for(var t=ku(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,v1(i)]}return t}function y1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function bF(e){var t=yF(e);return t.length==1&&t[0][2]?y1(t[0][0],t[0][1]):function(r){return r===e||vF(r,e,t)}}var xF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wF=/^\w*$/;function Wu(e,t){if(Qt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Es(e)?!0:wF.test(e)||!xF.test(e)||t!=null&&e in Object(t)}var CF="Expected a function";function Vu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(CF);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(Vu.Cache||Nr),r}Vu.Cache=Nr;var TF=500;function SF(e){var t=Vu(e,function(n){return r.size===TF&&r.clear(),n}),r=t.cache;return t}var EF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OF=/\\(\\)?/g,PF=SF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EF,function(r,n,i,o){t.push(i?o.replace(OF,"$1"):n||r)}),t});const MF=PF;var _F=1/0,b1=en?en.prototype:void 0,x1=b1?b1.toString:void 0;function w1(e){if(typeof e=="string")return e;if(Qt(e))return n1(e,w1)+"";if(Es(e))return x1?x1.call(e):"";var t=e+"";return t=="0"&&1/e==-_F?"-0":t}function $F(e){return e==null?"":w1(e)}function C1(e,t){return Qt(e)?e:Wu(e,t)?[e]:MF($F(e))}var AF=1/0;function As(e){if(typeof e=="string"||Es(e))return e;var t=e+"";return t=="0"&&1/e==-AF?"-0":t}function T1(e,t){t=C1(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[As(t[r++])];return r&&r==n?e:void 0}function kF(e,t,r){var n=e==null?void 0:T1(e,t);return n===void 0?r:n}function DF(e,t){return e!=null&&t in Object(e)}function jF(e,t,r){t=C1(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=As(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&&Ou(i)&&$u(a,i)&&(Qt(e)||Cs(e)))}function IF(e,t){return e!=null&&jF(e,t,DF)}var LF=1,FF=2;function RF(e,t){return Wu(e)&&v1(t)?y1(As(e),t):function(r){var n=kF(r,e);return n===void 0&&n===t?IF(r,e):zu(t,n,LF|FF)}}function NF(e){return function(t){return t==null?void 0:t[e]}}function BF(e){return function(t){return T1(t,e)}}function zF(e){return Wu(e)?NF(As(e)):BF(e)}function WF(e){return typeof e=="function"?e:e==null?Ss:typeof e=="object"?Qt(e)?RF(e[0],e[1]):bF(e):zF(e)}function VF(e,t){var r=-1,n=pi(e)?Array(e.length):[];return Hm(e,function(i,o,a){n[++r]=t(i,o,a)}),n}function _n(e,t){var r=Qt(e)?n1:VF;return r(e,WF(t))}var HF=function(t){var r=t.colors,n=t.onClick,i=t.onSwatchHover,o=Ce({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return p.createElement("div",{style:o.swatches},_n(r,function(a){return p.createElement(Pn,{key:a,color:a,style:o.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+a}})}),p.createElement("div",{style:o.clear}))},Hu=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(y,x){rn(y)&&r({hex:y,source:"hex"},x)},g=Ce(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:ju(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 p.createElement("div",{style:g.card,className:"block-picker "+f},p.createElement("div",{style:g.triangle}),p.createElement("div",{style:g.head},d&&p.createElement(di,{borderRadius:"6px 6px 0 0"}),p.createElement("div",{style:g.label},i)),p.createElement("div",{style:g.body},p.createElement(HF,{colors:o,onClick:h,onSwatchHover:n}),p.createElement(De,{style:{input:g.input},value:i,onChange:h})))};Hu.propTypes={width:A.oneOfType([A.string,A.number]),colors:A.arrayOf(A.string),triangle:A.oneOf(["top","hide"]),styles:A.object},Hu.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Ht(Hu);var gi={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"},mi={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"},vi={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"},yi={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"},bi={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"},xi={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"},wi={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"},Ci={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"},Ti={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"},Uo={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"},Si={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"},Ei={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"},Oi={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"},Pi={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"},Mi={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"},_i={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"},$i={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Ai={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},S1=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=Ce({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 p.createElement("div",{style:l.swatch},p.createElement(Pn,{style:l.Swatch,color:r,onClick:n,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+r}}))};S1.defaultProps={circleSize:28,circleSpacing:14};const UF=yu(S1);var Uu=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=Ce(Vt({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-u,marginBottom:-u}}},l)),g=function(y,x){return n({hex:y,source:"hex"},x)};return p.createElement("div",{style:h.card,className:"circle-picker "+d},_n(o,function(m){return p.createElement(UF,{key:m,color:m,onClick:g,onSwatchHover:i,active:a===m.toLowerCase(),circleSize:s,circleSpacing:u})}))};Uu.propTypes={width:A.oneOfType([A.string,A.number]),circleSize:A.number,circleSpacing:A.number,styles:A.object},Uu.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[gi[500],mi[500],vi[500],yi[500],bi[500],xi[500],wi[500],Ci[500],Ti[500],Uo[500],Si[500],Ei[500],Oi[500],Pi[500],Mi[500],_i[500],$i[500],Ai[500]],styles:{}},Ht(Uu);function E1(e){return e===void 0}var O1={};Object.defineProperty(O1,"__esModule",{value:!0});var P1=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},YF=p,M1=GF(YF);function GF(e){return e&&e.__esModule?e:{default:e}}function qF(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,XF=O1.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,c=s===void 0?{}:s,l=qF(e,["fill","width","height","style"]);return M1.default.createElement("svg",P1({viewBox:"0 0 "+ks+" "+ks,style:P1({fill:r,width:i,height:a},c)},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"}))},KF=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 ZF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QF(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 JF(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 _1=function(e){JF(t,e);function t(r){ZF(this,t);var n=QF(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(E1(i.s)?n.props.hsl.s:i.s),l:Number(E1(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 KF(t,[{key:"render",value:function(){var n=this,i=Ce({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=p.createElement("div",{style:i.fields,className:"flexbox-fix"},p.createElement("div",{style:i.field},p.createElement(De,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=p.createElement("div",{style:i.fields,className:"flexbox-fix"},p.createElement("div",{style:i.field},p.createElement(De,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),p.createElement("div",{style:i.field},p.createElement(De,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),p.createElement("div",{style:i.field},p.createElement(De,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),p.createElement("div",{style:i.alpha},p.createElement(De,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=p.createElement("div",{style:i.fields,className:"flexbox-fix"},p.createElement("div",{style:i.field},p.createElement(De,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),p.createElement("div",{style:i.field},p.createElement(De,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:i.field},p.createElement(De,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),p.createElement("div",{style:i.alpha},p.createElement(De,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),p.createElement("div",{style:i.wrap,className:"flexbox-fix"},o,p.createElement("div",{style:i.toggle},p.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},p.createElement(XF,{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}(p.Component);_1.defaultProps={view:"hex"};var $1=function(){var t=Ce({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 p.createElement("div",{style:t.picker})},eR=function(){var t=Ce({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return p.createElement("div",{style:t.picker})},Yu=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,m=Ce(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 p.createElement("div",{style:m.picker,className:"chrome-picker "+h},p.createElement("div",{style:m.saturation},p.createElement(Os,{style:m.Saturation,hsl:a,hsv:s,pointer:eR,onChange:n})),p.createElement("div",{style:m.body},p.createElement("div",{style:m.controls,className:"flexbox-fix"},p.createElement("div",{style:m.color},p.createElement("div",{style:m.swatch},p.createElement("div",{style:m.active}),p.createElement(di,{renderers:l}))),p.createElement("div",{style:m.toggles},p.createElement("div",{style:m.hue},p.createElement(hi,{style:m.Hue,hsl:a,pointer:$1,onChange:n})),p.createElement("div",{style:m.alpha},p.createElement(xu,{style:m.Alpha,rgb:o,hsl:a,pointer:$1,renderers:l,onChange:n})))),p.createElement(_1,{rgb:o,hsl:a,hex:c,view:g,onChange:n,disableAlpha:i})))};Yu.propTypes={width:A.oneOfType([A.string,A.number]),disableAlpha:A.bool,styles:A.object,defaultView:A.oneOf(["hex","rgb","hsl"])},Yu.defaultProps={width:225,disableAlpha:!1,styles:{}};const tR=Ht(Yu);var rR=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.active,s=Ce({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:ju(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 p.createElement(Pn,{style:s.color,color:r,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},p.createElement("div",{style:s.dot}))},nR=function(t){var r=t.hex,n=t.rgb,i=t.onChange,o=Ce({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 p.createElement("div",{style:o.fields,className:"flexbox-fix"},p.createElement("div",{style:o.active}),p.createElement(De,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:r,onChange:a}),p.createElement(De,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:a}),p.createElement(De,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:a}),p.createElement(De,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:a}))},Gu=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=Ce(Vt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),d=function(g,m){g.hex?rn(g.hex)&&r({hex:g.hex,source:"hex"},m):r(g,m)};return p.createElement(Bo,{style:f.Compact,styles:c},p.createElement("div",{style:f.compact,className:"compact-picker "+u},p.createElement("div",null,_n(i,function(h){return p.createElement(rR,{key:h,color:h,active:h.toLowerCase()===o,onClick:d,onSwatchHover:n})}),p.createElement("div",{style:f.clear})),p.createElement(nR,{hex:o,rgb:a,onChange:d})))};Gu.propTypes={colors:A.arrayOf(A.string),styles:A.object},Gu.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(Gu);var iR=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=Ce({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:r});return p.createElement("div",{style:s.swatch},p.createElement(Pn,{color:n,onClick:i,onHover:o,focusStyle:a}))};const oR=yu(iR);var qu=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=Ce(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,m){return i({hex:g,source:"hex"},m)};return p.createElement("div",{style:f.card,className:"github-picker "+u},p.createElement("div",{style:f.triangleShadow}),p.createElement("div",{style:f.triangle}),_n(n,function(h){return p.createElement(oR,{color:h,key:h,onClick:d,onSwatchHover:o})}))};qu.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},qu.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(qu);var aR=function(t){var r=t.direction,n=Ce({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 p.createElement("div",{style:n.picker})},sR=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},Xu=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=Ce(Vt({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},l)),h=function(m){return i({a:1,h:m.h,l:.5,s:1})};return p.createElement("div",{style:d.picker,className:"hue-picker "+f},p.createElement(hi,sR({},d.hue,{hsl:o,pointer:s,onChange:h,direction:a})))};Xu.propTypes={styles:A.object},Xu.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:aR,styles:{}},Ht(Xu);var lR=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=Ce(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 p.createElement(Bo,{styles:a},p.createElement("div",{style:l.material,className:"material-picker "+c},p.createElement(De,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:u}),p.createElement("div",{style:l.split,className:"flexbox-fix"},p.createElement("div",{style:l.third},p.createElement(De,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:u})),p.createElement("div",{style:l.third},p.createElement(De,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:u})),p.createElement("div",{style:l.third},p.createElement(De,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:u})))))};Ht(lR);var cR=function(t){var r=t.onChange,n=t.rgb,i=t.hsv,o=t.hex,a=Ce({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 p.createElement("div",{style:a.fields},p.createElement(De,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),p.createElement(De,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:s}),p.createElement(De,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:s}),p.createElement("div",{style:a.divider}),p.createElement(De,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),p.createElement(De,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),p.createElement(De,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),p.createElement("div",{style:a.divider}),p.createElement(De,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:s}),p.createElement("div",{style:a.fieldSymbols},p.createElement("div",{style:a.symbol},"°"),p.createElement("div",{style:a.symbol},"%"),p.createElement("div",{style:a.symbol},"%")))},uR=function(t){var r=t.hsl,n=Ce({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 p.createElement("div",{style:n.picker})},fR=function(){var t=Ce({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 p.createElement("div",{style:t.pointer},p.createElement("div",{style:t.left},p.createElement("div",{style:t.leftInside})),p.createElement("div",{style:t.right},p.createElement("div",{style:t.rightInside})))},A1=function(t){var r=t.onClick,n=t.label,i=t.children,o=t.active,a=Ce({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 p.createElement("div",{style:a.button,onClick:r},n||i)},dR=function(t){var r=t.rgb,n=t.currentColor,i=Ce({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 p.createElement("div",null,p.createElement("div",{style:i.label},"new"),p.createElement("div",{style:i.swatches},p.createElement("div",{style:i.new}),p.createElement("div",{style:i.current})),p.createElement("div",{style:i.label},"current"))},hR=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 pR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gR(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 mR(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 Ku=function(e){mR(t,e);function t(r){pR(this,t);var n=gR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return hR(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=Ce(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 p.createElement("div",{style:c.picker,className:"photoshop-picker "+s},p.createElement("div",{style:c.head},this.props.header),p.createElement("div",{style:c.body,className:"flexbox-fix"},p.createElement("div",{style:c.saturation},p.createElement(Os,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:uR,onChange:this.props.onChange})),p.createElement("div",{style:c.hue},p.createElement(hi,{direction:"vertical",hsl:this.props.hsl,pointer:fR,onChange:this.props.onChange})),p.createElement("div",{style:c.controls},p.createElement("div",{style:c.top,className:"flexbox-fix"},p.createElement("div",{style:c.previews},p.createElement(dR,{rgb:this.props.rgb,currentColor:this.state.currentColor})),p.createElement("div",{style:c.actions},p.createElement(A1,{label:"OK",onClick:this.props.onAccept,active:!0}),p.createElement(A1,{label:"Cancel",onClick:this.props.onCancel}),p.createElement(cR,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(p.Component);Ku.propTypes={header:A.string,styles:A.object},Ku.defaultProps={header:"Color Picker",styles:{}},Ht(Ku);var vR=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Ce({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 p.createElement("div",{style:s.fields,className:"flexbox-fix"},p.createElement("div",{style:s.double},p.createElement(De,{style:{input:s.input,label:s.label},label:"hex",value:o.replace("#",""),onChange:c})),p.createElement("div",{style:s.single},p.createElement(De,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:s.single},p.createElement(De,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:s.single},p.createElement(De,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:s.alpha},p.createElement(De,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},yR=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},k1=function(t){var r=t.colors,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=Ce({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 p.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 p.createElement("div",{key:u,style:a.swatchWrap},p.createElement(Pn,yR({},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}})))}))};k1.propTypes={colors:A.arrayOf(A.oneOfType([A.string,A.shape({color:A.string,title:A.string})])).isRequired};var bR=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},Zu=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,m=g===void 0?"":g,y=Ce(Vt({default:bR({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 p.createElement("div",{style:y.picker,className:"sketch-picker "+m},p.createElement("div",{style:y.saturation},p.createElement(Os,{style:y.Saturation,hsl:a,hsv:o,onChange:s})),p.createElement("div",{style:y.controls,className:"flexbox-fix"},p.createElement("div",{style:y.sliders},p.createElement("div",{style:y.hue},p.createElement(hi,{style:y.Hue,hsl:a,onChange:s})),p.createElement("div",{style:y.alpha},p.createElement(xu,{style:y.Alpha,rgb:n,hsl:a,renderers:f,onChange:s}))),p.createElement("div",{style:y.color},p.createElement(di,null),p.createElement("div",{style:y.activeColor}))),p.createElement(vR,{rgb:n,hsl:a,hex:i,onChange:s,disableAlpha:l}),p.createElement(k1,{colors:u,onClick:s,onSwatchHover:c}))};Zu.propTypes={disableAlpha:A.bool,width:A.oneOfType([A.string,A.number]),styles:A.object},Zu.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Ht(Zu);var Yo=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=Ce({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 p.createElement("div",{style:l.swatch,onClick:u})},xR=function(t){var r=t.onClick,n=t.hsl,i=Ce({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return p.createElement("div",{style:i.swatches},p.createElement("div",{style:i.swatch},p.createElement(Yo,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:r,first:!0})),p.createElement("div",{style:i.swatch},p.createElement(Yo,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:r})),p.createElement("div",{style:i.swatch},p.createElement(Yo,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:r})),p.createElement("div",{style:i.swatch},p.createElement(Yo,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:r})),p.createElement("div",{style:i.swatch},p.createElement(Yo,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:r,last:!0})),p.createElement("div",{style:i.clear}))},wR=function(){var t=Ce({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 p.createElement("div",{style:t.picker})},Qu=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=Ce(Vt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return p.createElement("div",{style:l.wrap||{},className:"slider-picker "+c},p.createElement("div",{style:l.hue},p.createElement(hi,{style:l.Hue,hsl:r,pointer:i,onChange:n})),p.createElement("div",{style:l.swatches},p.createElement(xR,{hsl:r,onClick:n})))};Qu.propTypes={styles:A.object},Qu.defaultProps={pointer:wR,styles:{}},Ht(Qu);var D1={};Object.defineProperty(D1,"__esModule",{value:!0});var j1=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},CR=p,I1=TR(CR);function TR(e){return e&&e.__esModule?e:{default:e}}function SR(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 Ds=24,ER=D1.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Ds:n,o=e.height,a=o===void 0?Ds:o,s=e.style,c=s===void 0?{}:s,l=SR(e,["fill","width","height","style"]);return I1.default.createElement("svg",j1({viewBox:"0 0 "+Ds+" "+Ds,style:j1({fill:r,width:i,height:a},c)},l),I1.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},OR=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=Ce({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:ju(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 p.createElement(Pn,{color:r,style:l.color,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},p.createElement("div",{style:l.check},p.createElement(ER,null)))},PR=function(t){var r=t.onClick,n=t.onSwatchHover,i=t.group,o=t.active,a=Ce({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return p.createElement("div",{style:a.group},_n(i,function(s,c){return p.createElement(OR,{key:s,color:s,active:s.toLowerCase()===o,first:c===0,last:c===i.length-1,onClick:r,onSwatchHover:n})}))},Ju=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=Ce(Vt({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(m,y){return i({hex:m,source:"hex"},y)};return p.createElement("div",{style:d.picker,className:"swatches-picker "+f},p.createElement(Bo,null,p.createElement("div",{style:d.overflow},p.createElement("div",{style:d.body},_n(a,function(g){return p.createElement(PR,{key:g.toString(),group:g,active:s,onClick:h,onSwatchHover:o})}),p.createElement("div",{style:d.clear})))))};Ju.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},Ju.defaultProps={width:320,height:240,colors:[[gi[900],gi[700],gi[500],gi[300],gi[100]],[mi[900],mi[700],mi[500],mi[300],mi[100]],[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]],[Ci[900],Ci[700],Ci[500],Ci[300],Ci[100]],[Ti[900],Ti[700],Ti[500],Ti[300],Ti[100]],["#194D33",Uo[700],Uo[500],Uo[300],Uo[100]],[Si[900],Si[700],Si[500],Si[300],Si[100]],[Ei[900],Ei[700],Ei[500],Ei[300],Ei[100]],[Oi[900],Oi[700],Oi[500],Oi[300],Oi[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]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Ht(Ju);var 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=Ce(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(m,y){rn(m)&&r({hex:m,source:"hex"},y)};return p.createElement("div",{style:d.card,className:"twitter-picker "+f},p.createElement("div",{style:d.triangleShadow}),p.createElement("div",{style:d.triangle}),p.createElement("div",{style:d.body},_n(o,function(g,m){return p.createElement(Pn,{key:m,color:g,hex:g,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+g}})}),p.createElement("div",{style:d.hash},"#"),p.createElement(De,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:h}),p.createElement("div",{style:d.clear})))};ef.propTypes={width:A.oneOfType([A.string,A.number]),triangle:A.oneOf(["hide","top-left","top-right"]),colors:A.arrayOf(A.string),styles:A.object},ef.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Ht(ef);var tf=function(t){var r=Ce({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 p.createElement("div",{style:r.picker})};tf.propTypes={hsl:A.shape({h:A.number,s:A.number,l:A.number,a:A.number})},tf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var rf=function(t){var r=Ce({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 p.createElement("div",{style:r.picker})};rf.propTypes={hsl:A.shape({h:A.number,s:A.number,l:A.number,a:A.number})},rf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var MR=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 m=h.rgb.split(",");Iu(h.rgb,"rgb")&&r({r:m[0],g:m[1],b:m[2],a:1,source:"rgb"},g)}else if(h.hsv){var y=h.hsv.split(",");Iu(h.hsv,"hsv")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),y[1]==1?y[1]=.01:y[2]==1&&(y[2]=.01),r({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsv"},g))}else if(h.hsl){var x=h.hsl.split(",");Iu(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=Ce({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 p.createElement("div",{style:c.wrap,className:"flexbox-fix"},p.createElement("div",{style:c.fields},p.createElement("div",{style:c.double},p.createElement(De,{style:{input:c.input,label:c.label},label:"hex",value:o,onChange:s})),p.createElement("div",{style:c.column},p.createElement("div",{style:c.single},p.createElement(De,{style:{input:c.input2,label:c.label2},label:"rgb",value:l,onChange:s})),p.createElement("div",{style:c.single},p.createElement(De,{style:{input:c.input2,label:c.label2},label:"hsv",value:f,onChange:s})),p.createElement("div",{style:c.single},p.createElement(De,{style:{input:c.input2,label:c.label2},label:"hsl",value:u,onChange:s})))))},nf=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=Ce(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 p.createElement("div",{style:h.picker,className:"google-picker "+d},p.createElement("div",{style:h.head},c),p.createElement("div",{style:h.swatch}),p.createElement("div",{style:h.saturation},p.createElement(Os,{hsl:o,hsv:a,pointer:tf,onChange:n})),p.createElement("div",{style:h.body},p.createElement("div",{style:h.controls,className:"flexbox-fix"},p.createElement("div",{style:h.hue},p.createElement(hi,{style:h.Hue,hsl:o,radius:"4px",pointer:rf,onChange:n}))),p.createElement(MR,{rgb:i,hsl:o,hex:s,hsv:a,onChange:n})))};nf.propTypes={width:A.oneOfType([A.string,A.number]),styles:A.object,header:A.string},nf.defaultProps={width:652,styles:{},header:"Color picker"},Ht(nf);const Go=/^[a-z0-9]+(-[a-z0-9]+)*$/,js=(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&&!Is(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&&!Is(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:o};return t&&!Is(s,r)?null:s}return null},Is=(e,t)=>e?!!((e.provider===""||e.provider.match(Go))&&(t&&e.prefix===""||e.prefix.match(Go))&&e.name.match(Go)):!1,L1=Object.freeze({left:0,top:0,width:16,height:16}),Ls=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),of=Object.freeze({...L1,...Ls}),af=Object.freeze({...of,body:"",hidden:!1});function _R(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 F1(e,t){const r=_R(e,t);for(const n in af)n in Ls?n in e&&!(n in r)&&(r[n]=Ls[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function $R(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 AR(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=F1(n[s]||i[s],o)}return a(t),r.forEach(a),F1(e,o)}function R1(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=$R(e);for(const i in n){const o=n[i];o&&(t(i,AR(e,i,o)),r.push(i))}return r}const kR={provider:"",aliases:{},not_found:{},...L1};function sf(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function N1(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!sf(e,kR))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(Go)||typeof o.body!="string"||!sf(o,af))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(Go)||typeof a!="string"||!r[a]&&!n[a]||!sf(o,af))return null}return t}const B1=Object.create(null);function DR(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function $n(e,t){const r=B1[e]||(B1[e]=Object.create(null));return r[t]||(r[t]=DR(e,t))}function lf(e,t){return N1(t)?R1(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function jR(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let qo=!1;function z1(e){return typeof e=="boolean"&&(qo=e),qo}function IR(e){const t=typeof e=="string"?js(e,!0,qo):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 LR(e,t){const r=js(e,!0,qo);if(!r)return!1;const n=$n(r.provider,r.prefix);return jR(n,r.name,t)}function FR(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),qo&&!t&&!e.prefix){let i=!1;return N1(e)&&(e.prefix="",R1(e,(o,a)=>{a&&LR(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Is({provider:t,prefix:r,name:"a"}))return!1;const n=$n(t,r);return!!lf(n,e)}const W1=Object.freeze({width:null,height:null}),V1=Object.freeze({...W1,...Ls}),RR=/(-?[0-9.]*[0-9]+[0-9.]*)/g,NR=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function H1(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(RR);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=NR.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 BR=e=>e==="unset"||e==="undefined"||e==="none";function zR(e,t){const r={...of,...e},n={...V1,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(g=>{const m=[],y=g.hFlip,x=g.vFlip;let b=g.rotate;y?x?b+=2:(m.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),m.push("scale(-1 1)"),i.top=i.left=0):x&&(m.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),m.push("scale(1 -1)"),i.top=i.left=0);let T;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:T=i.height/2+i.top,m.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:m.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:T=i.width/2+i.left,m.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}b%2===1&&(i.left!==i.top&&(T=i.left,i.left=i.top,i.top=T),i.width!==i.height&&(T=i.width,i.width=i.height,i.height=T)),m.length&&(o='<g transform="'+m.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=H1(f,c/l)):(u=a==="auto"?c:a,f=s===null?H1(u,l/c):s==="auto"?l:s);const d={},h=(g,m)=>{BR(m)||(d[g]=m.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 WR=/\sid="(\S+)"/g,VR="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let HR=0;function UR(e,t=VR){const r=[];let n;for(;n=WR.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+(HR++).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 cf=Object.create(null);function YR(e,t){cf[e]=t}function uf(e){return cf[e]||cf[""]}function ff(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const df=Object.create(null),Xo=["https://api.simplesvg.com","https://api.unisvg.com"],Fs=[];for(;Xo.length>0;)Xo.length===1||Math.random()>.5?Fs.push(Xo.shift()):Fs.push(Xo.pop());df[""]=ff({resources:["https://api.iconify.design"].concat(Fs)});function GR(e,t){const r=ff(t);return r===null?!1:(df[e]=r,!0)}function hf(e){return df[e]}let U1=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function qR(e,t){const r=hf(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 XR(e){return e===404}const KR=(e,t,r)=>{const n=[],i=qR(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 ZR(e){if(typeof e=="string"){const t=hf(e);if(t)return t.path}return"/"}const QR={prepare:KR,send:(e,t,r)=>{if(!U1){r("abort",424);return}let n=ZR(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;U1(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(XR(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 JR(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 Y1(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function eN(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||Y1([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let tN=0;function rN(e,t,r){const n=tN++,i=Y1.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 nN(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?js(i,t,r):i;o&&n.push(o)}),n}var iN={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function oN(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=e.resources.slice(0);for(a=[];E.length>1;){const O=Math.floor(Math.random()*E.length);a.push(E[O]),E=E.slice(0,O).concat(E.slice(O+1))}a=a.concat(E)}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 m(){c==="pending"&&(c="aborted"),g(),d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function y(E,O){O&&(h=[]),typeof E=="function"&&h.push(E)}function x(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:d.length,subscribe:y,abort:m}}function b(){c="failed",h.forEach(E=>{E(void 0,u)})}function T(){d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function P(E,O,_){const L=O!=="success";switch(d=d.filter(W=>W!==E),c){case"pending":break;case"failed":if(L||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){u=_,b();return}if(L){u=_,d.length||(a.length?w():b());return}if(g(),T(),!e.random){const W=e.resources.indexOf(E.resource);W!==-1&&W!==e.index&&(e.index=W)}c="completed",h.forEach(W=>{W(_)})}function w(){if(c!=="pending")return;g();const E=a.shift();if(E===void 0){if(d.length){f=setTimeout(()=>{g(),c==="pending"&&(T(),b())},e.timeout);return}b();return}const O={status:"pending",resource:E,callback:(_,L)=>{P(O,_,L)}};d.push(O),l++,f=setTimeout(w,e.rotate),r(E,t,O.callback)}return setTimeout(w),x}function G1(e){const t={...iN,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,c,l){const u=oN(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 q1(){}const pf=Object.create(null);function aN(e){if(!pf[e]){const t=hf(e);if(!t)return;const r=G1(t),n={config:t,redundancy:r};pf[e]=n}return pf[e]}function sN(e,t,r){let n,i;if(typeof e=="string"){const o=uf(e);if(!o)return r(void 0,424),q1;i=o.send;const a=aN(e);a&&(n=a.redundancy)}else{const o=ff(e);if(o){n=G1(o);const a=e.resources?e.resources[0]:"",s=uf(a);s&&(i=s.send)}}return!n||!i?(r(void 0,424),q1):n.query(t,i,r)().abort}const X1="iconify2",Ko="iconify",K1=Ko+"-count",Z1=Ko+"-version",Q1=36e5,lN=168;function gf(e,t){try{return e.getItem(t)}catch{}}function mf(e,t,r){try{return e.setItem(t,r),!0}catch{}}function J1(e,t){try{e.removeItem(t)}catch{}}function vf(e,t){return mf(e,K1,t.toString())}function yf(e){return parseInt(gf(e,K1))||0}const Rs={local:!0,session:!0},ev={local:new Set,session:new Set};let bf=!1;function cN(e){bf=e}let Ns=typeof window>"u"?{}:window;function tv(e){const t=e+"Storage";try{if(Ns&&Ns[t]&&typeof Ns[t].length=="number")return Ns[t]}catch{}Rs[e]=!1}function rv(e,t){const r=tv(e);if(!r)return;const n=gf(r,Z1);if(n!==X1){if(n){const s=yf(r);for(let c=0;c<s;c++)J1(r,Ko+c.toString())}mf(r,Z1,X1),vf(r,0);return}const i=Math.floor(Date.now()/Q1)-lN,o=s=>{const c=Ko+s.toString(),l=gf(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{}J1(r,c)}};let a=yf(r);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,vf(r,a)):ev[e].add(s))}function nv(){if(!bf){cN(!0);for(const e in Rs)rv(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=$n(n,i);if(!lf(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function uN(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Rs)rv(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function fN(e,t){bf||nv();function r(n){let i;if(!Rs[n]||!(i=tv(n)))return;const o=ev[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=yf(i),!vf(i,a+1))return;const s={cached:Math.floor(Date.now()/Q1),provider:e.provider,data:t};return mf(i,Ko+a.toString(),JSON.stringify(s))}t.lastModified&&!uN(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function iv(){}function dN(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,eN(e)}))}function hN(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=uf(r)))return;o.prepare(r,n,i).forEach(s=>{sN(r,s,c=>{if(typeof c!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=lf(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),fN(e,c)}catch(l){console.error(l)}dN(e)})})}))}const pN=(e,t)=>{const r=nN(e,!0,z1()),n=JR(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,iv)}),()=>{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&&hN(c,i[l][u])}),t?rN(t,n,o):iv};function gN(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in W1?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const mN=/[\s,]+/;function vN(e,t){t.split(mN).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function yN(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 bN(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 xN(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function wN(e){return"data:image/svg+xml,"+xN(e)}function CN(e){return'url("'+wN(e)+'")'}let Zo;function TN(){try{Zo=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Zo=null}}function SN(e){return Zo===void 0&&TN(),Zo?Zo.createHTML(e):e}const ov={...V1,inline:!1},EN={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ON={display:"inline-block"},xf={backgroundColor:"currentColor"},av={backgroundColor:"transparent"},sv={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},lv={WebkitMask:xf,mask:xf,background:av};for(const e in lv){const t=lv[e];for(const r in sv)t[e+r]=sv[r]}const PN={...ov,inline:!0};function cv(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const MN=(e,t,r,n)=>{const i=r?PN:ov,o=gN(i,t),a=t.mode||"svg",s={},c=t.style||{},l={...a==="svg"?EN:{},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"&&vN(o,b);break;case"color":s.color=b;break;case"rotate":typeof b=="string"?o[x]=yN(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=zR(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:SN(UR(u.body,b?()=>b+"ID"+x++:"iconifyReact"))},p.createElement("svg",l)}const{body:d,width:h,height:g}=e,m=a==="mask"||(a==="bg"?!1:d.indexOf("currentColor")!==-1),y=bN(d,{...f,width:h+"",height:g+""});return l.style={...s,"--svg":CN(y),width:cv(f.width),height:cv(f.height),...ON,...m?xf:av,...c},p.createElement("span",l)};if(z1(!0),YR("",QR),typeof document<"u"&&typeof window<"u"){nv();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"||!FR(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;GR(r,i)||console.error(n)}catch{console.error(n)}}}}class uv extends p.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=js(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const o=IR(i);if(!o){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),o!==null&&(this._loading={name:n,abort:pN([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:p.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),MN({...of,...r.data},n,t._inline,t._ref)}}const _N=p.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return p.createElement(uv,n)});p.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return p.createElement(uv,n)});const It=p.forwardRef(({icon:e,width:t=20,sx:r,...n},i)=>v.jsx($.Box,{ref:i,component:_N,icon:e,sx:{width:t,height:t,...r},...n}));It.displayName="Iconify";const fv=({value:e,onChangeColor:t,...r})=>{const[n,i]=p.useState(null),o=s=>{i(s.currentTarget)},a=()=>i(null);return v.jsxs(v.Fragment,{children:[v.jsx($.TextField,{...r,value:e,onChange:s=>t(s.target.value),InputProps:{inputProps:{...r.inputProps,maxLength:7},startAdornment:v.jsx($.InputAdornment,{position:"start",sx:{ml:2},children:v.jsx($.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:o,children:v.jsx(It,{icon:"bi:square-fill",color:e,width:25,height:23})})})}}),v.jsx($.Popover,{open:!!n,anchorEl:n,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:v.jsx(tR,{color:e,onChange:s=>t(s.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})},$N=({name:e,rules:t,helperText:r,...n})=>{const{control:i}=Dt.useFormContext();return v.jsx(Dt.Controller,{name:e,control:i,rules:t,render:({field:{ref:o,onChange:a,...s},fieldState:{error:c}})=>v.jsx(fv,{...s,onChangeColor:a,inputRef:o,fullWidth:!0,error:!!c,helperText:(c==null?void 0:c.message)||r,...n})})};function Ne(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 zr(e){"@babel/helpers - typeof";return zr=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},zr(e)}function H(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function U(e){H(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||zr(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 wf(e,t){H(2,arguments);var r=U(e),n=Ne(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Bs(e,t){H(2,arguments);var r=U(e).getTime(),n=Ne(t);return new Date(r+n)}function AN(e,t){H(2,arguments);var r=Ne(t);return Bs(e,r*1e3)}var kN=6e4;function DN(e,t){H(2,arguments);var r=Ne(t);return Bs(e,r*kN)}var jN=36e5;function IN(e,t){H(2,arguments);var r=Ne(t);return Bs(e,r*jN)}function LN(e,t){H(2,arguments);var r=Ne(t),n=r*7;return wf(e,n)}function zs(e,t){H(2,arguments);var r=U(e),n=Ne(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 dv(e,t){H(2,arguments);var r=Ne(t);return zs(e,r*12)}function FN(e,t){H(2,arguments);var r=U(e),n=U(t);return r.getFullYear()-n.getFullYear()}function ki(e,t){H(2,arguments);var r=U(e),n=U(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function RN(e,t){H(2,arguments);var r=U(e),n=U(t),i=ki(r,n),o=Math.abs(FN(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=ki(r,n)===-i,s=i*(o-Number(a));return s===0?0:s}function NN(e,t){H(2,arguments);var r=U(e),n=U(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return i*12+o}function Cf(e){H(1,arguments);var t=U(e);return t.setHours(23,59,59,999),t}function Tf(e){H(1,arguments);var t=U(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function BN(e){H(1,arguments);var t=U(e);return Cf(t).getTime()===Tf(t).getTime()}function Sf(e,t){H(2,arguments);var r=U(e),n=U(t),i=ki(r,n),o=Math.abs(NN(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=ki(r,n)===-i;BN(U(e))&&o===1&&ki(e,n)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}var hv={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},zN="trunc";function Qo(e){return e?hv[e]:hv[zN]}function WN(e,t,r){H(2,arguments);var n=Sf(e,t)/3;return Qo(r==null?void 0:r.roundingMethod)(n)}function Di(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 ji(e){H(1,arguments);var t=U(e);return t.setHours(0,0,0,0),t}var VN=864e5;function HN(e,t){H(2,arguments);var r=ji(e),n=ji(t),i=r.getTime()-Di(r),o=n.getTime()-Di(n);return Math.round((i-o)/VN)}function pv(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 gv(e,t){H(2,arguments);var r=U(e),n=U(t),i=pv(r,n),o=Math.abs(HN(r,n));r.setDate(r.getDate()-i*o);var a=+(pv(r,n)===-i),s=i*(o-a);return s===0?0:s}function UN(e,t,r){H(2,arguments);var n=gv(e,t)/7;return Qo(r==null?void 0:r.roundingMethod)(n)}var Ws=6e4,Vs=36e5,YN=1e3;function Hs(e,t){return H(2,arguments),U(e).getTime()-U(t).getTime()}function GN(e,t,r){H(2,arguments);var n=Hs(e,t)/Vs;return Qo(r==null?void 0:r.roundingMethod)(n)}function qN(e,t,r){H(2,arguments);var n=Hs(e,t)/Ws;return Qo(r==null?void 0:r.roundingMethod)(n)}function mv(e,t,r){H(2,arguments);var n=Hs(e,t)/1e3;return Qo(r==null?void 0:r.roundingMethod)(n)}function XN(e,t){var r;H(1,arguments);var n=e||{},i=U(n.start),o=U(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(U(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}var KN={};function pr(){return KN}function Ef(e,t){var r,n,i,o,a,s,c,l;H(1,arguments);var u=pr(),f=Ne((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=U(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 Of(e){H(1,arguments);var t=U(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function ZN(e){return H(1,arguments),e instanceof Date||zr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vv(e){if(H(1,arguments),!ZN(e)&&typeof e!="number")return!1;var t=U(e);return!isNaN(Number(t))}function yv(e,t){H(2,arguments);var r=Ne(t);return Bs(e,-r)}var QN=864e5;function JN(e){H(1,arguments);var t=U(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/QN)+1}function Ii(e){H(1,arguments);var t=1,r=U(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 bv(e){H(1,arguments);var t=U(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Ii(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var a=Ii(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function eB(e){H(1,arguments);var t=bv(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Ii(r);return n}var tB=6048e5;function xv(e){H(1,arguments);var t=U(e),r=Ii(t).getTime()-eB(t).getTime();return Math.round(r/tB)+1}function An(e,t){var r,n,i,o,a,s,c,l;H(1,arguments);var u=pr(),f=Ne((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=U(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 Pf(e,t){var r,n,i,o,a,s,c,l;H(1,arguments);var u=U(e),f=u.getUTCFullYear(),d=pr(),h=Ne((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 m=An(g,t),y=new Date(0);y.setUTCFullYear(f,0,h),y.setUTCHours(0,0,0,0);var x=An(y,t);return u.getTime()>=m.getTime()?f+1:u.getTime()>=x.getTime()?f:f-1}function rB(e,t){var r,n,i,o,a,s,c,l;H(1,arguments);var u=pr(),f=Ne((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=Pf(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 nB=6048e5;function wv(e,t){H(1,arguments);var r=U(e),n=An(r,t).getTime()-rB(r,t).getTime();return Math.round(n/nB)+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 iB={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=iB;var Li={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},oB={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=Pf(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=bv(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=wv(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):$e(o,r.length)},I:function(t,r,n){var i=xv(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=JN(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=Li.noon:i===0?o=Li.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=Li.evening:i>=12?o=Li.afternoon:i>=4?o=Li.morning:o=Li.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 Tv(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 Tv(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"+Cv(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"+Cv(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 Cv(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 Tv(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 aB=oB;var Sv=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"})}},Ev=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"})}},sB=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return Sv(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}}",Sv(i,r)).replace("{{time}}",Ev(o,r))},lB={p:Ev,P:sB};const Mf=lB;var cB=["D","DD"],uB=["YY","YYYY"];function Ov(e){return cB.indexOf(e)!==-1}function Pv(e){return uB.indexOf(e)!==-1}function Us(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 fB={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"}},dB=function(t,r,n){var i,o=fB[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 hB=dB;function Fi(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 pB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mB={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vB={date:Fi({formats:pB,defaultWidth:"full"}),time:Fi({formats:gB,defaultWidth:"full"}),dateTime:Fi({formats:mB,defaultWidth:"full"})};const yB=vB;var bB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xB=function(t,r,n,i){return bB[t]};const wB=xB;function Sr(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 CB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},SB={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"]},EB={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"]},OB={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"}},PB={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"}},MB=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"},_B={ordinalNumber:MB,era:Sr({values:CB,defaultWidth:"wide"}),quarter:Sr({values:TB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Sr({values:SB,defaultWidth:"wide"}),day:Sr({values:EB,defaultWidth:"wide"}),dayPeriod:Sr({values:OB,defaultWidth:"wide",formattingValues:PB,defaultFormattingWidth:"wide"})};const $B=_B;function Er(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)?kB(s,function(f){return f.test(a)}):AB(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 AB(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function kB(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Mv(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 DB=/^(\d+)(th|st|nd|rd)?/i,jB=/\d+/i,IB={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},LB={any:[/^b/i,/^(a|c)/i]},FB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},RB={any:[/1/i,/2/i,/3/i,/4/i]},NB={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},BB={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]},zB={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},WB={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]},VB={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},HB={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}},UB={ordinalNumber:Mv({matchPattern:DB,parsePattern:jB,valueCallback:function(t){return parseInt(t,10)}}),era:Er({matchPatterns:IB,defaultMatchWidth:"wide",parsePatterns:LB,defaultParseWidth:"any"}),quarter:Er({matchPatterns:FB,defaultMatchWidth:"wide",parsePatterns:RB,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Er({matchPatterns:NB,defaultMatchWidth:"wide",parsePatterns:BB,defaultParseWidth:"any"}),day:Er({matchPatterns:zB,defaultMatchWidth:"wide",parsePatterns:WB,defaultParseWidth:"any"}),dayPeriod:Er({matchPatterns:VB,defaultMatchWidth:"any",parsePatterns:HB,defaultParseWidth:"any"})},YB={code:"en-US",formatDistance:hB,formatLong:yB,formatRelative:wB,localize:$B,match:UB,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ys=YB;var GB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XB=/^'([^]*?)'?$/,KB=/''/g,ZB=/[a-zA-Z]/;function _f(e,t,r){var n,i,o,a,s,c,l,u,f,d,h,g,m,y,x,b,T,P;H(2,arguments);var w=String(t),E=pr(),O=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:E.locale)!==null&&n!==void 0?n:Ys,_=Ne((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:E.firstWeekContainsDate)!==null&&a!==void 0?a:(f=E.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=Ne((h=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(x=r.locale)===null||x===void 0||(b=x.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(T=E.locale)===null||T===void 0||(P=T.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&h!==void 0?h:0);if(!(L>=0&&L<=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 W=U(e);if(!vv(W))throw new RangeError("Invalid time value");var de=Di(W),ve=yv(W,de),ce={firstWeekContainsDate:_,weekStartsOn:L,locale:O,_originalDate:W},q=w.match(qB).map(function(Y){var ge=Y[0];if(ge==="p"||ge==="P"){var Se=Mf[ge];return Se(Y,O.formatLong)}return Y}).join("").match(GB).map(function(Y){if(Y==="''")return"'";var ge=Y[0];if(ge==="'")return QB(Y);var Se=aB[ge];if(Se)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Pv(Y)&&Us(Y,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ov(Y)&&Us(Y,t,String(e)),Se(ve,Y,O.localize,ce);if(ge.match(ZB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ge+"`");return Y}).join("");return q}function QB(e){var t=e.match(XB);return t?t[1].replace(KB,"'"):e}function JB(e){H(1,arguments);var t=U(e),r=t.getDate();return r}function _v(e){H(1,arguments);var t=U(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 ez(e){H(1,arguments);var t=U(e),r=t.getHours();return r}function tz(e){H(1,arguments);var t=U(e),r=t.getMinutes();return r}function rz(e){H(1,arguments);var t=U(e),r=t.getMonth();return r}function nz(e){H(1,arguments);var t=U(e),r=t.getSeconds();return r}function iz(e){H(1,arguments);var t=U(e),r=t.getMilliseconds();return r}function Dn(e,t){var r,n,i,o,a,s,c,l;H(1,arguments);var u=pr(),f=Ne((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=U(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 oz(e,t){var r,n,i,o,a,s,c,l;H(1,arguments);var u=U(e),f=u.getFullYear(),d=pr(),h=Ne((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 m=Dn(g,t),y=new Date(0);y.setFullYear(f,0,h),y.setHours(0,0,0,0);var x=Dn(y,t);return u.getTime()>=m.getTime()?f+1:u.getTime()>=x.getTime()?f:f-1}function az(e,t){var r,n,i,o,a,s,c,l;H(1,arguments);var u=pr(),f=Ne((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=oz(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 sz=6048e5;function lz(e,t){H(1,arguments);var r=U(e),n=Dn(r,t).getTime()-az(r,t).getTime();return Math.round(n/sz)+1}function cz(e){return H(1,arguments),U(e).getFullYear()}function $f(e,t){H(2,arguments);var r=U(e),n=U(t);return r.getTime()>n.getTime()}function Jo(e,t){H(2,arguments);var r=U(e),n=U(t);return r.getTime()<n.getTime()}function uz(e,t){H(2,arguments);var r=U(e),n=U(t);return r.getTime()===n.getTime()}function fz(e,t){H(2,arguments);var r=ji(e),n=ji(t);return r.getTime()===n.getTime()}function dz(e,t){H(2,arguments);var r=U(e),n=U(t);return r.getFullYear()===n.getFullYear()}function hz(e,t){H(2,arguments);var r=U(e),n=U(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function $v(e){H(1,arguments);var t=U(e);return t.setMinutes(0,0,0),t}function pz(e,t){H(2,arguments);var r=$v(e),n=$v(t);return r.getTime()===n.getTime()}function Av(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 gz(e,t){if(e){if(typeof e=="string")return Av(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 Av(e,t)}}function kv(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=gz(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 Af(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 oe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kf(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&&kf(e,t)}function Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gs(e)}function mz(){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 vz(e,t){if(t&&(zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(e)}function ze(e){var t=mz();return function(){var n=Gs(e),i;if(t){var o=Gs(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return vz(this,i)}}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yz(e,t){if(zr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dv(e){var t=yz(e,"string");return zr(t)==="symbol"?t:String(t)}function jv(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,Dv(n.key),n)}}function Ie(e,t,r){return t&&jv(e.prototype,t),r&&jv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(e,t,r){return t=Dv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bz=10,Iv=function(){function e(){je(this,e),ee(this,"priority",void 0),ee(this,"subPriority",0)}return Ie(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),xz=function(e){Be(r,e);var t=ze(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 Ie(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}(Iv),wz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",bz),ee(oe(n),"subPriority",-1),n}return Ie(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}(Iv),Ue=function(){function e(){je(this,e),ee(this,"incompatibleTokens",void 0),ee(this,"priority",void 0),ee(this,"subPriority",void 0)}return Ie(e,[{key:"run",value:function(r,n,i,o){var a=this.parse(r,n,i,o);return a?{setter:new xz(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),Cz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",140),ee(oe(n),"incompatibleTokens",["R","u","t","T"]),n}return Ie(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}/},Or={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*Vs+o*Ws+a*YN),rest:t.slice(r[0].length)}}function Lv(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 Df(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 Fv(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 Rv(e){return e%400===0||e%4===0&&e%100!==0}var Tz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",130),ee(oe(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Ie(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=Fv(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),Sz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",130),ee(oe(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Ie(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=Pf(i,s);if(a.isTwoDigitYear){var l=Fv(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),Ez=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",130),ee(oe(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Ie(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),Ii(s)}}]),r}(Ue),Oz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",130),ee(oe(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Ie(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),Pz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",120),ee(oe(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Ie(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),Mz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",120),ee(oe(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Ie(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),_z=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),ee(oe(n),"priority",110),n}return Ie(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),$z=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",110),ee(oe(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Ie(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 Az(e,t,r){H(2,arguments);var n=U(e),i=Ne(t),o=wv(n,r)-i;return n.setUTCDate(n.getUTCDate()-o*7),n}var kz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",100),ee(oe(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Ie(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(Az(i,a,s),s)}}]),r}(Ue);function Dz(e,t){H(2,arguments);var r=U(e),n=Ne(t),i=xv(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var jz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",100),ee(oe(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Ie(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 Ii(Dz(i,a))}}]),r}(Ue),Iz=[31,28,31,30,31,30,31,31,30,31,30,31],Lz=[31,29,31,30,31,30,31,31,30,31,30,31],Fz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",90),ee(oe(n),"subPriority",1),ee(oe(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Ie(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=Rv(a),c=i.getUTCMonth();return s?o>=1&&o<=Lz[c]:o>=1&&o<=Iz[c]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),Rz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",90),ee(oe(n),"subpriority",1),ee(oe(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Ie(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=Rv(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 jf(e,t,r){var n,i,o,a,s,c,l,u;H(2,arguments);var f=pr(),d=Ne((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=U(e),g=Ne(t),m=h.getUTCDay(),y=g%7,x=(y+7)%7,b=(x<d?7:0)+g-m;return h.setUTCDate(h.getUTCDate()+b),h}var Nz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",90),ee(oe(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Ie(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=jf(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),Bz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",90),ee(oe(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Ie(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=jf(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),zz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",90),ee(oe(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Ie(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=jf(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ue);function Wz(e,t){H(2,arguments);var r=Ne(t);r%7===0&&(r=r-7);var n=1,i=U(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 Vz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",90),ee(oe(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Ie(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=Wz(i,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),Hz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",80),ee(oe(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Ie(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(Df(a),0,0,0),i}}]),r}(Ue),Uz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",80),ee(oe(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Ie(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(Df(a),0,0,0),i}}]),r}(Ue),Yz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",80),ee(oe(n),"incompatibleTokens",["a","b","t","T"]),n}return Ie(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(Df(a),0,0,0),i}}]),r}(Ue),Gz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",70),ee(oe(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Ie(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),qz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",70),ee(oe(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Ie(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),Xz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",70),ee(oe(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Ie(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),Kz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",70),ee(oe(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Ie(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),Zz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",60),ee(oe(n),"incompatibleTokens",["t","T"]),n}return Ie(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),Qz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",50),ee(oe(n),"incompatibleTokens",["t","T"]),n}return Ie(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),Jz=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",30),ee(oe(n),"incompatibleTokens",["t","T"]),n}return Ie(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),eW=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",10),ee(oe(n),"incompatibleTokens",["t","T","x"]),n}return Ie(r,[{key:"parse",value:function(i,o){switch(o){case"X":return Pr(Or.basicOptionalMinutes,i);case"XX":return Pr(Or.basic,i);case"XXXX":return Pr(Or.basicOptionalSeconds,i);case"XXXXX":return Pr(Or.extendedOptionalSeconds,i);case"XXX":default:return Pr(Or.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ue),tW=function(e){Be(r,e);var t=ze(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)),ee(oe(n),"priority",10),ee(oe(n),"incompatibleTokens",["t","T","X"]),n}return Ie(r,[{key:"parse",value:function(i,o){switch(o){case"x":return Pr(Or.basicOptionalMinutes,i);case"xx":return Pr(Or.basic,i);case"xxxx":return Pr(Or.basicOptionalSeconds,i);case"xxxxx":return Pr(Or.extendedOptionalSeconds,i);case"xxx":default:return Pr(Or.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=ze(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)),ee(oe(n),"priority",40),ee(oe(n),"incompatibleTokens","*"),n}return Ie(r,[{key:"parse",value:function(i){return Lv(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=ze(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)),ee(oe(n),"priority",20),ee(oe(n),"incompatibleTokens","*"),n}return Ie(r,[{key:"parse",value:function(i){return Lv(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(Ue),iW={G:new Cz,y:new Tz,Y:new Sz,R:new Ez,u:new Oz,Q:new Pz,q:new Mz,M:new _z,L:new $z,w:new kz,I:new jz,d:new Fz,D:new Rz,E:new Nz,e:new Bz,c:new zz,i:new Vz,a:new Hz,b:new Uz,B:new Yz,h:new Gz,H:new qz,K:new Xz,k:new Kz,m:new Zz,s:new Qz,S:new Jz,X:new eW,x:new tW,t:new rW,T:new nW},oW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,aW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sW=/^'([^]*?)'?$/,lW=/''/g,cW=/\S/,uW=/[a-zA-Z]/;function fW(e,t,r,n){var i,o,a,s,c,l,u,f,d,h,g,m,y,x,b,T,P,w;H(3,arguments);var E=String(e),O=String(t),_=pr(),L=(i=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:_.locale)!==null&&i!==void 0?i:Ys;if(!L.match)throw new RangeError("locale must contain match property");var W=Ne((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:_.firstWeekContainsDate)!==null&&s!==void 0?s:(d=_.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var de=Ne((g=(m=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(T=b.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&y!==void 0?y:_.weekStartsOn)!==null&&m!==void 0?m:(P=_.locale)===null||P===void 0||(w=P.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&g!==void 0?g:0);if(!(de>=0&&de<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(O==="")return E===""?U(r):new Date(NaN);var ve={firstWeekContainsDate:W,weekStartsOn:de,locale:L},ce=[new wz],q=O.match(aW).map(function(K){var Q=K[0];if(Q in Mf){var te=Mf[Q];return te(K,L.formatLong)}return K}).join("").match(oW),Y=[],ge=kv(q),Se;try{var We=function(){var Q=Se.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&Pv(Q)&&Us(Q,O,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ov(Q)&&Us(Q,O,e);var te=Q[0],ye=iW[te];if(ye){var F=ye.incompatibleTokens;if(Array.isArray(F)){var Le=Y.find(function(ut){return F.includes(ut.token)||ut.token===te});if(Le)throw new RangeError("The format string mustn't contain `".concat(Le.fullToken,"` and `").concat(Q,"` at the same time"))}else if(ye.incompatibleTokens==="*"&&Y.length>0)throw new RangeError("The format string mustn't contain `".concat(Q,"` and any other token at the same time"));Y.push({token:te,fullToken:Q});var ae=ye.run(E,Q,L.match,ve);if(!ae)return{v:new Date(NaN)};ce.push(ae.setter),E=ae.rest}else{if(te.match(uW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(Q==="''"?Q="'":te==="'"&&(Q=dW(Q)),E.indexOf(Q)===0)E=E.slice(Q.length);else return{v:new Date(NaN)}}};for(ge.s();!(Se=ge.n()).done;){var Me=We();if(zr(Me)==="object")return Me.v}}catch(K){ge.e(K)}finally{ge.f()}if(E.length>0&&cW.test(E))return new Date(NaN);var D=ce.map(function(K){return K.priority}).sort(function(K,Q){return Q-K}).filter(function(K,Q,te){return te.indexOf(K)===Q}).map(function(K){return ce.filter(function(Q){return Q.priority===K}).sort(function(Q,te){return te.subPriority-Q.subPriority})}).map(function(K){return K[0]}),I=U(r);if(isNaN(I.getTime()))return new Date(NaN);var Z=yv(I,Di(I)),ne={},G=kv(D),ue;try{for(G.s();!(ue=G.n()).done;){var se=ue.value;if(!se.validate(Z,ve))return new Date(NaN);var pe=se.set(Z,ne,ve);Array.isArray(pe)?(Z=pe[0],Af(ne,pe[1])):Z=pe}}catch(K){G.e(K)}finally{G.f()}return Z}function dW(e){return e.match(sW)[1].replace(lW,"'")}function hW(e,t){H(2,arguments);var r=U(e),n=Ne(t);return r.setDate(n),r}function pW(e,t){H(2,arguments);var r=U(e),n=Ne(t);return r.setHours(n),r}function gW(e,t){H(2,arguments);var r=U(e),n=Ne(t);return r.setMinutes(n),r}function mW(e,t){H(2,arguments);var r=U(e),n=Ne(t),i=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(i,n,15),a.setHours(0,0,0,0);var s=_v(a);return r.setMonth(n,Math.min(o,s)),r}function vW(e,t){H(2,arguments);var r=U(e),n=Ne(t);return r.setSeconds(n),r}function yW(e,t){H(2,arguments);var r=U(e),n=Ne(t);return r.setMilliseconds(n),r}function bW(e,t){H(2,arguments);var r=U(e),n=Ne(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Nv(e){H(1,arguments);var t=U(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Xs(e){H(1,arguments);var t=U(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function xW(e,t){var r;H(1,arguments);var n=Ne((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=SW(e),o;if(i.date){var a=EW(i.date,n);o=OW(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),c=0,l;if(i.time&&(c=PW(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(l=MW(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 Ks={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},wW=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,CW=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,TW=/^([+-])(\d{2})(?::?(\d{2}))?$/;function SW(e){var t={},r=e.split(Ks.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Ks.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ks.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=Ks.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function EW(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 OW(e,t){if(t===null)return new Date(NaN);var r=e.match(wW);if(!r)return new Date(NaN);var n=!!r[4],i=ea(r[1]),o=ea(r[2])-1,a=ea(r[3]),s=ea(r[4]),c=ea(r[5])-1;if(n)return DW(t,s,c)?_W(t,s,c):new Date(NaN);var l=new Date(0);return!AW(t,o,a)||!kW(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}function ea(e){return e?parseInt(e):1}function PW(e){var t=e.match(CW);if(!t)return NaN;var r=If(t[1]),n=If(t[2]),i=If(t[3]);return jW(r,n,i)?r*Vs+n*Ws+i*1e3:NaN}function If(e){return e&&parseFloat(e.replace(",","."))||0}function MW(e){if(e==="Z")return 0;var t=e.match(TW);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return IW(n,i)?r*(n*Vs+i*Ws):NaN}function _W(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 $W=[31,null,31,30,31,30,31,31,30,31,30,31];function Bv(e){return e%400===0||e%4===0&&e%100!==0}function AW(e,t,r){return t>=0&&t<=11&&r>=1&&r<=($W[t]||(Bv(e)?29:28))}function kW(e,t){return t>=1&&t<=(Bv(e)?366:365)}function DW(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function jW(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function IW(e,t){return t>=0&&t<=59}function LW(e,t){var r,n;H(1,arguments);var i=U(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 m=Math.abs(g),y=$e(Math.floor(m/60),2),x=$e(m%60,2),b=g<0?"+":"-";c="".concat(b).concat(y,":").concat(x)}else c="Z";var T=$e(i.getHours(),2),P=$e(i.getMinutes(),2),w=$e(i.getSeconds(),2),E=s===""?"":"T",O=[T,P,w].join(u);s="".concat(s).concat(E).concat(O).concat(c)}return s}function FW(e,t){H(2,arguments);var r=U(e).getTime(),n=U(t.start).getTime(),i=U(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var Lf={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})(Lf,Lf.exports);var RW=Lf.exports;const NW=dn(RW),BW={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"},zW={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 WW{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=BW,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=>xW(n),this.toISO=n=>LW(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:fW(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=NW[a],c=this.locale||Ys;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=>vv(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>_f(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,o)=>{switch(o){case"years":return RN(n,this.date(i));case"quarters":return WN(n,this.date(i));case"months":return Sf(n,this.date(i));case"weeks":return UN(n,this.date(i));case"days":return gv(n,this.date(i));case"hours":return GN(n,this.date(i));case"minutes":return qN(n,this.date(i));case"seconds":return mv(n,this.date(i));default:return Hs(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:uz(n,i),this.isSameYear=(n,i)=>dz(n,i),this.isSameMonth=(n,i)=>hz(n,i),this.isSameDay=(n,i)=>fz(n,i),this.isSameHour=(n,i)=>pz(n,i),this.isAfter=(n,i)=>$f(n,i),this.isAfterYear=(n,i)=>$f(n,Of(i)),this.isAfterDay=(n,i)=>$f(n,Cf(i)),this.isBefore=(n,i)=>Jo(n,i),this.isBeforeYear=(n,i)=>Jo(n,Xs(i)),this.isBeforeDay=(n,i)=>Jo(n,ji(i)),this.isWithinRange=(n,[i,o])=>FW(n,{start:i,end:o}),this.startOfYear=n=>Xs(n),this.startOfMonth=n=>Nv(n),this.startOfWeek=n=>Dn(n,{locale:this.locale}),this.startOfDay=n=>ji(n),this.endOfYear=n=>Of(n),this.endOfMonth=n=>Tf(n),this.endOfWeek=n=>Ef(n,{locale:this.locale}),this.endOfDay=n=>Cf(n),this.addYears=(n,i)=>dv(n,i),this.addMonths=(n,i)=>zs(n,i),this.addWeeks=(n,i)=>LN(n,i),this.addDays=(n,i)=>wf(n,i),this.addHours=(n,i)=>IN(n,i),this.addMinutes=(n,i)=>DN(n,i),this.addSeconds=(n,i)=>AN(n,i),this.getYear=n=>cz(n),this.getMonth=n=>rz(n),this.getDate=n=>JB(n),this.getHours=n=>ez(n),this.getMinutes=n=>tz(n),this.getSeconds=n=>nz(n),this.getMilliseconds=n=>iz(n),this.setYear=(n,i)=>bW(n,i),this.setMonth=(n,i)=>mW(n,i),this.setDate=(n,i)=>hW(n,i),this.setHours=(n,i)=>pW(n,i),this.setMinutes=(n,i)=>gW(n,i),this.setSeconds=(n,i)=>vW(n,i),this.setMilliseconds=(n,i)=>yW(n,i),this.getDaysInMonth=n=>_v(n),this.getNextMonth=n=>zs(n,1),this.getPreviousMonth=n=>zs(n,-1),this.getMonthArray=n=>{const o=[Xs(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 XN({start:Dn(n,{locale:this.locale}),end:Ef(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=Dn(Nv(n),{locale:this.locale}),o=Ef(Tf(n),{locale:this.locale});let a=0,s=i;const c=[];for(;Jo(s,o);){const l=Math.floor(a/7);c[l]=c[l]||[],c[l].push(s),s=wf(s,1),a+=1}return c},this.getWeekNumber=n=>lz(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const o=Xs(n),a=Of(i),s=[];let c=o;for(;Jo(c,a);)s.push(c),c=dv(c,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=_e({},zW,r)}}var VW={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"}},HW=function(t,r,n){var i,o=VW[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 UW=HW;var YW={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},GW={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},qW={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},XW={date:Fi({formats:YW,defaultWidth:"full"}),time:Fi({formats:GW,defaultWidth:"full"}),dateTime:Fi({formats:qW,defaultWidth:"full"})};const KW=XW;var ZW={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"},QW=function(t,r,n,i){var o=ZW[t];return typeof o=="function"?o(r):o};const JW=QW;var eV={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},tV={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"]},iV={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"}},oV={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"}},aV=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},sV={ordinalNumber:aV,era:Sr({values:eV,defaultWidth:"wide"}),quarter:Sr({values:tV,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Sr({values:rV,defaultWidth:"wide"}),day:Sr({values:nV,defaultWidth:"wide"}),dayPeriod:Sr({values:iV,defaultWidth:"wide",formattingValues:oV,defaultFormattingWidth:"wide"})};const lV=sV;var cV=/^(\d+)[ºªo]?/i,uV=/\d+/i,fV={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},dV={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},hV={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},pV={any:[/1/i,/2/i,/3/i,/4/i]},gV={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},mV={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]},vV={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},yV={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]},bV={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},xV={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}},wV={ordinalNumber:Mv({matchPattern:cV,parsePattern:uV,valueCallback:function(t){return parseInt(t,10)}}),era:Er({matchPatterns:fV,defaultMatchWidth:"wide",parsePatterns:dV,defaultParseWidth:"any"}),quarter:Er({matchPatterns:hV,defaultMatchWidth:"wide",parsePatterns:pV,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Er({matchPatterns:gV,defaultMatchWidth:"wide",parsePatterns:mV,defaultParseWidth:"any"}),day:Er({matchPatterns:vV,defaultMatchWidth:"wide",parsePatterns:yV,defaultParseWidth:"any"}),dayPeriod:Er({matchPatterns:bV,defaultMatchWidth:"any",parsePatterns:xV,defaultParseWidth:"any"})},CV={code:"pt-BR",formatDistance:UW,formatLong:KW,formatRelative:JW,localize:lV,match:wV,options:{weekStartsOn:0,firstWeekContainsDate:1}};const TV=CV;var zv={exports:{}},Wv={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]},Vv={exports:{}},SV=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")},EV=SV,OV=Array.prototype.concat,PV=Array.prototype.slice,Hv=Vv.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var o=t[n];EV(o)?r=OV.call(r,PV.call(o)):r.push(o)}return r};Hv.wrap=function(e){return function(){return e(Hv(arguments))}};var MV=Vv.exports,ta=Wv,ra=MV,Uv=Object.hasOwnProperty,Yv=Object.create(null);for(var Ff in ta)Uv.call(ta,Ff)&&(Yv[ta[Ff]]=Ff);var er=zv.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]:Uv.call(ta,s[1])?(a=ta[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=ra(arguments);return"#"+Zs(e[0])+Zs(e[1])+Zs(e[2])+(e[3]<1?Zs(Math.round(e[3]*255)):"")},er.to.rgb=function(){var e=ra(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=ra(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=ra(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=ra(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 Yv[e.slice(0,3)]};function on(e,t,r){return Math.min(Math.max(t,e),r)}function Zs(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var _V=zv.exports;const na=Wv,Gv={};for(const e of Object.keys(na))Gv[na[e]]=e;const fe={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 qv=fe;for(const e of Object.keys(fe)){if(!("channels"in fe[e]))throw new Error("missing channels property: "+e);if(!("labels"in fe[e]))throw new Error("missing channel labels property: "+e);if(fe[e].labels.length!==fe[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=fe[e];delete fe[e].channels,delete fe[e].labels,Object.defineProperty(fe[e],"channels",{value:t}),Object.defineProperty(fe[e],"labels",{value:r})}fe.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]},fe.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]},fe.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=fe.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]},fe.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 $V(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}fe.rgb.keyword=function(e){const t=Gv[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(na)){const o=na[i],a=$V(e,o);a<r&&(r=a,n=i)}return n},fe.keyword.rgb=function(e){return na[e]},fe.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]},fe.rgb.lab=function(e){const t=fe.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]},fe.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},fe.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]},fe.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]}},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=t===null?fe.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},fe.hsv.ansi16=function(e){return fe.rgb.ansi16(fe.hsv.rgb(e),e[2])},fe.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)},fe.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]},fe.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]},fe.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},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.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]},fe.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},fe.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},fe.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},fe.gray.hsl=function(e){return[0,0,e[0]]},fe.gray.hsv=fe.gray.hsl,fe.gray.hwb=function(e){return[0,100,e[0]]},fe.gray.cmyk=function(e){return[0,0,0,e[0]]},fe.gray.lab=function(e){return[e[0],0,0]},fe.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},fe.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Qs=qv;function AV(){const e={},t=Object.keys(Qs);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function kV(e){const t=AV(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(Qs[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 DV(e,t){return function(r){return t(e(r))}}function jV(e,t){const r=[t[e].parent,e];let n=Qs[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=DV(Qs[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var IV=function(e){const t=kV(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]=jV(a,t))}return r};const Rf=qv,LV=IV,Ri={},FV=Object.keys(Rf);function RV(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 NV(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}FV.forEach(e=>{Ri[e]={},Object.defineProperty(Ri[e],"channels",{value:Rf[e].channels}),Object.defineProperty(Ri[e],"labels",{value:Rf[e].labels});const t=LV(e);Object.keys(t).forEach(n=>{const i=t[n];Ri[e][n]=NV(i),Ri[e][n].raw=RV(i)})});var BV=Ri;const Ni=_V,tr=BV,Xv=["keyword","gray","hex"],Nf={};for(const e of Object.keys(tr))Nf[[...tr[e].labels].sort().join("")]=e;const Js={};function $t(e,t){if(!(this instanceof $t))return new $t(e,t);if(t&&t in Xv&&(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 $t)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ni.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=Bf(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 Nf))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Nf[o];const{labels:a}=tr[this.model],s=[];for(r=0;r<a.length;r++)s.push(e[a[r]]);this.color=Bf(s)}if(Js[this.model])for(n=tr[this.model].channels,r=0;r<n;r++){const i=Js[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)}$t.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Ni.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return Ni.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 Ni.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 $t([...this.color.map(WV(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new $t([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:bt("rgb",0,Pt(255)),green:bt("rgb",1,Pt(255)),blue:bt("rgb",2,Pt(255)),hue:bt(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:bt("hsl",1,Pt(100)),lightness:bt("hsl",2,Pt(100)),saturationv:bt("hsv",1,Pt(100)),value:bt("hsv",2,Pt(100)),chroma:bt("hcg",1,Pt(100)),gray:bt("hcg",2,Pt(100)),white:bt("hwb",1,Pt(100)),wblack:bt("hwb",2,Pt(100)),cyan:bt("cmyk",0,Pt(100)),magenta:bt("cmyk",1,Pt(100)),yellow:bt("cmyk",2,Pt(100)),black:bt("cmyk",3,Pt(100)),x:bt("xyz",0,Pt(95.047)),y:bt("xyz",1,Pt(100)),z:bt("xyz",2,Pt(108.833)),l:bt("lab",0,Pt(100)),a:bt("lab",1),b:bt("lab",2),keyword(e){return e!==void 0?new $t(e):tr[this.model].keyword(this.color)},hex(e){return e!==void 0?new $t(e):Ni.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new $t(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Ni.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 $t.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 $t.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(Xv.includes(e))continue;const{channels:t}=tr[e];$t.prototype[e]=function(...r){return this.model===e?new $t(this):r.length>0?new $t(r,e):new $t([...VV(tr[this.model][e].raw(this.color)),this.valpha],e)},$t[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=Bf(r,t)),new $t(n,e)}}function zV(e,t){return Number(e.toFixed(t))}function WV(e){return function(t){return zV(t,e)}}function bt(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(Js[n]||(Js[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 Pt(e){return function(t){return Math.max(0,Math.min(e,t))}}function VV(e){return Array.isArray(e)?e:[e]}function Bf(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var HV=$t;const UV=dn(HV),et={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},YV={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},GV={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},qV={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},XV={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},KV={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:et[800]},Bi={common:{black:"#000",white:"#fff"},primary:YV,secondary:GV,info:qV,success:XV,warning:KV,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={...Bi,mode:"light",text:{primary:et[800],secondary:et[600],disabled:et[500]},background:{paper:"#fff",default:et[100],neutral:et[200]},action:{...Bi.action,active:et[600]}},r={...Bi,mode:"dark",text:{primary:"#fff",secondary:et[500],disabled:et[600]},background:{paper:et[800],default:et[900],neutral:V(et[500],.16)},action:{...Bi.action,active:et[500]}};return e==="light"?t:r},ZV=e=>({lighter:zc(e,.815),light:zc(e,.225),main:e,dark:Bc(e,.15),darker:Bc(e,.35)}),QV=e=>UV(e).luminosity()<=.55?"#fff":et[900],JV=e=>{const t=ZV(e);return{...Bi,primary:{...t,contrastText:QV(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],...Bi.action}}},Kv=an("light"),eH=Kv.grey[500],tH=Kv.common.black;function Zv(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)=>Zv(e==="light"?eH:tH,t),nH=()=>v.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"}}}}),iH=["primary","secondary","info","success","warning","error"];function oH(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=iH.map(y=>({...n.color===y&&{...(a||s)&&{boxShadow:e.customShadows[y],"&:hover":{backgroundColor:e.palette[y].dark}},...(c||l)&&{color:e.palette[y].main,border:`solid 1px ${V(e.palette[y].main,.48)}`,"&:hover":{backgroundColor:V(e.palette[y].main,.08),border:`solid 1px ${e.palette[y].main}`}},...(u||f)&&{color:e.palette[y][t?"dark":"light"],backgroundColor:V(e.palette[y].main,.16),"&:hover":{backgroundColor:V(e.palette[y].main,.32)}}}})),g={"&.Mui-disabled":{...(c||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},m={...(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,m]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function aH(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 sH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function Qv(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function lH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function cH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function uH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function fH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function dH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function hH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function pH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function gH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function mH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function vH(e){return v.jsx($.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:v.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function yH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function bH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function xH(e){return v.jsx($.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const wH=["primary","secondary","info","success","warning","error"];function CH(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[...wH.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:v.jsx(sH,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function TH(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 SH(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function EH(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function OH(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 PH(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 MH=["info","success","warning","error"];function _H(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",o=n.variant==="filled",a=n.variant==="outlined";return[...MH.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:v.jsx(lH,{}),success:v.jsx(uH,{}),warning:v.jsx(cH,{}),error:v.jsx(fH,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function $H(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function AH(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function kH(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 DH(e){return{MuiRadio:{defaultProps:{icon:v.jsx(gH,{}),checkedIcon:v.jsx(mH,{})},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 jH(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 IH(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 LH(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 FH(e){return{MuiRating:{defaultProps:{emptyIcon:v.jsx(Qv,{}),icon:v.jsx(Qv,{})},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 RH(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 NH=["primary","secondary","info","success","warning","error"];function BH(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=NH.map(m=>({...n.color===m&&{...o&&{"&:hover":{boxShadow:e.customShadows[m]}},...c&&{color:e.palette[m][t?"dark":"light"],backgroundColor:V(e.palette[m].main,.16),"&:hover":{backgroundColor:V(e.palette[m].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 zH(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 WH(e){return{MuiSelect:{defaultProps:{IconComponent:vH}}}}function VH(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function HH(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 UH(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function YH(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function GH(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 qH(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function XH(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:V(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const KH=["primary","secondary","info","success","warning","error"];function ZH(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...KH.map(a=>({...r.color===a&&{backgroundColor:$.alpha(e.palette[a].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function QH(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function JH(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:v.jsx(yH,{sx:{width:20,height:20}}),defaultExpandIcon:v.jsx(bH,{sx:{width:20,height:20}}),defaultEndIcon:v.jsx(xH,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function eU(e){return{MuiCheckbox:{defaultProps:{icon:v.jsx(dH,{}),checkedIcon:v.jsx(hH,{}),indeterminateIcon:v.jsx(pH,{})},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 tU(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 iU(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 oU(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 aU=["primary","secondary","info","success","warning","error"];function sU(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=aU.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 lU(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 cU=["primary","secondary","info","success","warning","error"];function uU(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},o=cU.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 fU(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 dU(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 hU(e){return Object.assign(oH(e),TH(e),CH(e),aH(e),SH(e),EH(),kH(e),DH(e),$H(),OH(e),PH(e),AH(),_H(e),zH(e),WH(),BH(e),FH(e),IH(e),LH(e),RH(e),jH(e),YH(e),HH(e),UH(e),VH(),eU(e),GH(e),qH(e),QH(e),JH(e),XH(e),ZH(e),tU(e),rU(e),iU(e),sU(e),oU(e),lU(e),fU(e),uU(e),dU())}const Jv=an("light"),pU=Jv.grey[500],gU=Jv.common.black;function ey(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 mU=e=>ey(e==="light"?pU:gU);function Lt(e){return`${e/16}rem`}function zi({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 vU={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Lt(40),...zi({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Lt(32),...zi({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Lt(24),...zi({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Lt(20),...zi({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Lt(18),...zi({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Lt(17),...zi({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"}},ty=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=p.useMemo(()=>({palette:JV(t),typography:vU,shape:{borderRadius:8},direction:r,shadows:mU(n),customShadows:rH(n,t)}),[t,r,n]),o=F0(i);return o.components=hU(o),v.jsx(m0,{injectFirst:!0,children:v.jsxs(N0,{theme:o,children:[v.jsx($.CssBaseline,{}),v.jsx(nH,{}),e]})})},EX="",OX="",yU=({themeColor:e,children:t})=>v.jsx(Ki.LocalizationProvider,{dateAdapter:WW,adapterLocale:TV,children:v.jsx(ty,{color:e,children:t})}),Wi=e=>e&&e.charAt(0).toUpperCase(),bU=e=>["A","N","H","L","Q"].includes(Wi(e))?"primary":["F","G","T","I","J"].includes(Wi(e))?"info":["K","D","Y","B","O"].includes(Wi(e))?"success":["P","E","R","S","U"].includes(Wi(e))?"warning":["V","W","X","M","Z"].includes(Wi(e))?"error":"default",ry=p.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...o},a)=>{var d,h;const s=ii(),c=Wi(t),l=bU(t),u=e||l,f=u==="default"?v.jsxs($.Avatar,{ref:a,sx:i,...o,children:[t&&c,n]}):v.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?v.jsx($.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});ry.displayName="CustomAvatar";const sn={tiny:24,small:32,medium:40,large:56},ny=p.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 v.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})});ny.displayName="CustomAvatarGroup";const iy=$.styled($.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),xU=()=>{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=p.useMemo(()=>o.filter(l=>l<=i).length,[i,o]),s=e.current.getVisibleColumns().slice(0,a),c=p.useMemo(()=>{const l=[];for(let u=0;u<n;u+=1){for(const f of s)l.push(v.jsx(iy,{sx:{justifyContent:f.align,minWidth:f.cellClassName==="MuiDataGrid-cellCheckbox"?64:void 0},children:v.jsx($.Skeleton,{width:"100%"})},`column-${u}-${f.field}`));l.push(v.jsx(iy,{},`fill-${u}`))}return l},[n,s]);return v.jsx("div",{style:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:l})=>`${l}px`).join(" ")} 1fr`,gridAutoRows:t},children:c})},wU=({columns:e,...t})=>{const r=[{...Rn.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],n=p.useCallback(i=>({bottom:i.isLastVisible?0:8}),[]);return v.jsx(Rn.DataGridPremium,{columns:r,autoHeight:!0,rowHeight:72,getRowSpacing:n,slots:{loadingOverlay:xU},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})},CU=({name:e,...t})=>{const{control:r}=Dt.useFormContext();return v.jsx(Dt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return v.jsx(Ki.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}}})}})},TU=({name:e,label:t,...r})=>{const{control:n,setError:i}=Dt.useFormContext();return v.jsx(Dt.Controller,{name:e,control:n,render:({field:{value:o,onChange:a},fieldState:{error:s}})=>v.jsx(Ki.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}})})},SU=({name:e,...t})=>{const{control:r}=Dt.useFormContext();return v.jsx(Dt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return v.jsx(Ki.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}}})}})},EU=({children:e,waitBeforeShow:t=500})=>{const[r,n]=p.useState(!1);return p.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null},oy=({name:e,helperText:t,...r})=>{const{control:n}=Dt.useFormContext();return v.jsx(Dt.Controller,{name:e,control:n,render:({field:{ref:i,...o},fieldState:{error:a}})=>v.jsx($.TextField,{...o,inputRef:i,fullWidth:!0,error:!!a,helperText:(a==null?void 0:a.message)||t,...r})})},OU=({id:e,children:t,onSubmit:r,methods:n})=>v.jsx(Dt.FormProvider,{...n,children:v.jsx($.Stack,{component:"form",id:e,onSubmit:r,flex:1,width:1,noValidate:!0,children:t})});var ay={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")(),m=Object.prototype.toString,y=Math.max,x=Math.min,b=function(){return g.Date.now()};function T(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function P(w){if(typeof w=="number")return w;if(function(_){return typeof _=="symbol"||function(L){return!!L&&typeof L=="object"}(_)&&m.call(_)=="[object Symbol]"}(w))return NaN;if(T(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=T(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(s,"");var O=l.test(w);return O||u.test(w)?f(w.slice(2),O?2:8):c.test(w)?NaN:+w}i.exports=function(w,E,O){var _,L,W,de,ve,ce,q=0,Y=!1,ge=!1,Se=!0;if(typeof w!="function")throw new TypeError("Expected a function");function We(ne){var G=_,ue=L;return _=L=void 0,q=ne,de=w.apply(ue,G)}function Me(ne){var G=ne-ce;return ce===void 0||G>=E||G<0||ge&&ne-q>=W}function D(){var ne=b();if(Me(ne))return I(ne);ve=setTimeout(D,function(G){var ue=E-(G-ce);return ge?x(ue,W-(G-q)):ue}(ne))}function I(ne){return ve=void 0,Se&&_?We(ne):(_=L=void 0,de)}function Z(){var ne=b(),G=Me(ne);if(_=arguments,L=this,ce=ne,G){if(ve===void 0)return function(ue){return q=ue,ve=setTimeout(D,E),Y?We(ue):de}(ce);if(ge)return ve=setTimeout(D,E),We(ce)}return ve===void 0&&(ve=setTimeout(D,E)),de}return E=P(E)||0,T(O)&&(Y=!!O.leading,W=(ge="maxWait"in O)?y(P(O.maxWait)||0,E):W,Se="trailing"in O?!!O.trailing:Se),Z.cancel=function(){ve!==void 0&&clearTimeout(ve),q=0,_=ce=L=ve=void 0},Z.flush=function(){return ve===void 0?de:I(b())},Z}},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,m=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,y=typeof self=="object"&&self&&self.Object===Object&&self,x=m||y||Function("return this")(),b=Object.prototype.toString,T=Math.max,P=Math.min,w=function(){return x.Date.now()};function E(_){var L=typeof _;return!!_&&(L=="object"||L=="function")}function O(_){if(typeof _=="number")return _;if(function(de){return typeof de=="symbol"||function(ve){return!!ve&&typeof ve=="object"}(de)&&b.call(de)==l}(_))return c;if(E(_)){var L=typeof _.valueOf=="function"?_.valueOf():_;_=E(L)?L+"":L}if(typeof _!="string")return _===0?_:+_;_=_.replace(u,"");var W=d.test(_);return W||h.test(_)?g(_.slice(2),W?2:8):f.test(_)?c:+_}i.exports=function(_,L,W){var de=!0,ve=!0;if(typeof _!="function")throw new TypeError(s);return E(W)&&(de="leading"in W?!!W.leading:de,ve="trailing"in W?!!W.trailing:ve),function(ce,q,Y){var ge,Se,We,Me,D,I,Z=0,ne=!1,G=!1,ue=!0;if(typeof ce!="function")throw new TypeError(s);function se(ye){var F=ge,Le=Se;return ge=Se=void 0,Z=ye,Me=ce.apply(Le,F)}function pe(ye){var F=ye-I;return I===void 0||F>=q||F<0||G&&ye-Z>=We}function K(){var ye=w();if(pe(ye))return Q(ye);D=setTimeout(K,function(F){var Le=q-(F-I);return G?P(Le,We-(F-Z)):Le}(ye))}function Q(ye){return D=void 0,ue&&ge?se(ye):(ge=Se=void 0,Me)}function te(){var ye=w(),F=pe(ye);if(ge=arguments,Se=this,I=ye,F){if(D===void 0)return function(Le){return Z=Le,D=setTimeout(K,q),ne?se(Le):Me}(I);if(G)return D=setTimeout(K,q),se(I)}return D===void 0&&(D=setTimeout(K,q)),Me}return q=O(q)||0,E(Y)&&(ne=!!Y.leading,We=(G="maxWait"in Y)?T(O(Y.maxWait)||0,q):We,ue="trailing"in Y?!!Y.trailing:ue),te.cancel=function(){D!==void 0&&clearTimeout(D),Z=0,ge=I=Se=D=void 0},te.flush=function(){return D===void 0?Me:Q(w())},te}(_,L,{leading:de,maxWait:L,trailing:ve})}},703:(i,o,a)=>{var s=a(414);function c(){}function l(){}l.resetWarningCache=c,i.exports=function(){function u(h,g,m,y,x,b){if(b!==s){var T=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 T.name="Invariant Violation",T}}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:()=>ae,LazyLoadImage:()=>st,trackWindowScroll:()=>I});const i=p;var o=r.n(i),a=r(697);const s=sd;var c=r.n(s);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function u(k){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},u(k)}function f(k,S){var R=Object.keys(k);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(k);S&&(N=N.filter(function(we){return Object.getOwnPropertyDescriptor(k,we).enumerable})),R.push.apply(R,N)}return R}function d(k,S,R){return(S=g(S))in k?Object.defineProperty(k,S,{value:R,enumerable:!0,configurable:!0,writable:!0}):k[S]=R,k}function h(k,S){for(var R=0;R<S.length;R++){var N=S[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(k,g(N.key),N)}}function g(k){var S=function(R,N){if(u(R)!=="object"||R===null)return R;var we=R[Symbol.toPrimitive];if(we!==void 0){var Ee=we.call(R,"string");if(u(Ee)!=="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(R)}(k);return u(S)==="symbol"?S:String(S)}function m(k,S){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,N){return R.__proto__=N,R},m(k,S)}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},y(k)}var x=function(k){k.forEach(function(S){S.isIntersecting&&S.target.onVisible()})},b={},T=function(k){(function(M,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(j&&j.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),j&&m(M,j)})(Fe,k);var S,R,N,we,Ee=(N=Fe,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 M,j=y(N);if(we){var le=y(this).constructor;M=Reflect.construct(j,arguments,le)}else M=j.apply(this,arguments);return function(ie,re){if(re&&(u(re)==="object"||typeof re=="function"))return re;if(re!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Oe){if(Oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Oe}(ie)}(this,M)});function Fe(M){var j;if(function(ie,re){if(!(ie instanceof re))throw new TypeError("Cannot call a class as a function")}(this,Fe),(j=Ee.call(this,M)).supportsObserver=!M.scrollPosition&&M.useIntersectionObserver&&l(),j.supportsObserver){var le=M.threshold;j.observer=function(ie){return b[ie]=b[ie]||new IntersectionObserver(x,{rootMargin:ie+"px"}),b[ie]}(le)}return j}return S=Fe,R=[{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 M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,j=this.placeholder.getBoundingClientRect(),le=c().findDOMNode(this.placeholder).style,ie=parseInt(le.getPropertyValue("margin-left"),10)||0,re=parseInt(le.getPropertyValue("margin-top"),10)||0;return{bottom:M.y+j.bottom+re,left:M.x+j.left+ie,right:M.x+j.right+ie,top:M.y+j.top+re}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var M=this.props,j=M.scrollPosition,le=M.threshold,ie=this.getPlaceholderBoundingBox(j),re=j.y+window.innerHeight,Oe=j.x,it=j.x+window.innerWidth,Qe=j.y;return Qe-le<=ie.bottom&&re+le>=ie.top&&Oe-le<=ie.right&&it+le>=ie.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var M=this,j=this.props,le=j.className,ie=j.height,re=j.placeholder,Oe=j.style,it=j.width;if(re&&typeof re.type!="function")return o().cloneElement(re,{ref:function(Je){return M.placeholder=Je}});var Qe=function(Je){for(var Ct=1;Ct<arguments.length;Ct++){var pt=arguments[Ct]!=null?arguments[Ct]:{};Ct%2?f(Object(pt),!0).forEach(function(At){d(Je,At,pt[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Je,Object.getOwnPropertyDescriptors(pt)):f(Object(pt)).forEach(function(At){Object.defineProperty(Je,At,Object.getOwnPropertyDescriptor(pt,At))})}return Je}({display:"inline-block"},Oe);return it!==void 0&&(Qe.width=it),ie!==void 0&&(Qe.height=ie),o().createElement("span",{className:le,ref:function(Je){return M.placeholder=Je},style:Qe},re)}}],R&&h(S.prototype,R),Object.defineProperty(S,"prototype",{writable:!1}),Fe}(o().Component);T.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])},T.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const P=T;var w=r(296),E=r.n(w),O=r(96),_=r.n(O),L=function(k){var S=getComputedStyle(k,null);return S.getPropertyValue("overflow")+S.getPropertyValue("overflow-y")+S.getPropertyValue("overflow-x")};const W=function(k){if(!(k instanceof HTMLElement))return window;for(var S=k;S&&S instanceof HTMLElement;){if(/(scroll|auto)/.test(L(S)))return S;S=S.parentNode}return window};function de(k){return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},de(k)}var ve=["delayMethod","delayTime"];function ce(){return ce=Object.assign?Object.assign.bind():function(k){for(var S=1;S<arguments.length;S++){var R=arguments[S];for(var N in R)Object.prototype.hasOwnProperty.call(R,N)&&(k[N]=R[N])}return k},ce.apply(this,arguments)}function q(k,S){for(var R=0;R<S.length;R++){var N=S[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(k,(we=function(Ee,Fe){if(de(Ee)!=="object"||Ee===null)return Ee;var M=Ee[Symbol.toPrimitive];if(M!==void 0){var j=M.call(Ee,"string");if(de(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Ee)}(N.key),de(we)==="symbol"?we:String(we)),N)}var we}function Y(k,S){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,N){return R.__proto__=N,R},Y(k,S)}function ge(k,S){if(S&&(de(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(k)}function Se(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function We(k){return We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},We(k)}var Me=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},D=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const I=function(k){var S=function(R){(function(le,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");le.prototype=Object.create(ie&&ie.prototype,{constructor:{value:le,writable:!0,configurable:!0}}),Object.defineProperty(le,"prototype",{writable:!1}),ie&&Y(le,ie)})(j,R);var N,we,Ee,Fe,M=(Ee=j,Fe=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 le,ie=We(Ee);if(Fe){var re=We(this).constructor;le=Reflect.construct(ie,arguments,re)}else le=ie.apply(this,arguments);return ge(this,le)});function j(le){var ie;if(function(Oe,it){if(!(Oe instanceof it))throw new TypeError("Cannot call a class as a function")}(this,j),(ie=M.call(this,le)).useIntersectionObserver=le.useIntersectionObserver&&l(),ie.useIntersectionObserver)return ge(ie);var re=ie.onChangeScroll.bind(Se(ie));return le.delayMethod==="debounce"?ie.delayedScroll=E()(re,le.delayTime):le.delayMethod==="throttle"&&(ie.delayedScroll=_()(re,le.delayTime)),ie.state={scrollPosition:{x:Me(),y:D()}},ie.baseComponentRef=o().createRef(),ie}return N=j,(we=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||W(c().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=W(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:Me(),y:D()}})}},{key:"render",value:function(){var le=this.props,ie=(le.delayMethod,le.delayTime,function(Oe,it){if(Oe==null)return{};var Qe,Je,Ct=function(At,Vr){if(At==null)return{};var Hr,Fn,la={},yl=Object.keys(At);for(Fn=0;Fn<yl.length;Fn++)Hr=yl[Fn],Vr.indexOf(Hr)>=0||(la[Hr]=At[Hr]);return la}(Oe,it);if(Object.getOwnPropertySymbols){var pt=Object.getOwnPropertySymbols(Oe);for(Je=0;Je<pt.length;Je++)Qe=pt[Je],it.indexOf(Qe)>=0||Object.prototype.propertyIsEnumerable.call(Oe,Qe)&&(Ct[Qe]=Oe[Qe])}return Ct}(le,ve)),re=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(k,ce({forwardRef:this.baseComponentRef,scrollPosition:re},ie))}}])&&q(N.prototype,we),Object.defineProperty(N,"prototype",{writable:!1}),j}(o().Component);return S.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},S.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},S};function Z(k){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},Z(k)}function ne(k,S){for(var R=0;R<S.length;R++){var N=S[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(k,(we=function(Ee,Fe){if(Z(Ee)!=="object"||Ee===null)return Ee;var M=Ee[Symbol.toPrimitive];if(M!==void 0){var j=M.call(Ee,"string");if(Z(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Ee)}(N.key),Z(we)==="symbol"?we:String(we)),N)}var we}function G(k,S){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,N){return R.__proto__=N,R},G(k,S)}function ue(k){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},ue(k)}var se=function(k){(function(M,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(j&&j.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),j&&G(M,j)})(Fe,k);var S,R,N,we,Ee=(N=Fe,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 M,j=ue(N);if(we){var le=ue(this).constructor;M=Reflect.construct(j,arguments,le)}else M=j.apply(this,arguments);return function(ie,re){if(re&&(Z(re)==="object"||typeof re=="function"))return re;if(re!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Oe){if(Oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Oe}(ie)}(this,M)});function Fe(M){return function(j,le){if(!(j instanceof le))throw new TypeError("Cannot call a class as a function")}(this,Fe),Ee.call(this,M)}return S=Fe,(R=[{key:"render",value:function(){return o().createElement(P,this.props)}}])&&ne(S.prototype,R),Object.defineProperty(S,"prototype",{writable:!1}),Fe}(o().Component);const pe=I(se);function K(k){return K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},K(k)}function Q(k,S){for(var R=0;R<S.length;R++){var N=S[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(k,(we=function(Ee,Fe){if(K(Ee)!=="object"||Ee===null)return Ee;var M=Ee[Symbol.toPrimitive];if(M!==void 0){var j=M.call(Ee,"string");if(K(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Ee)}(N.key),K(we)==="symbol"?we:String(we)),N)}var we}function te(k,S){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,N){return R.__proto__=N,R},te(k,S)}function ye(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function F(k){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},F(k)}var Le=function(k){(function(M,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(j&&j.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),j&&te(M,j)})(Fe,k);var S,R,N,we,Ee=(N=Fe,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 M,j=F(N);if(we){var le=F(this).constructor;M=Reflect.construct(j,arguments,le)}else M=j.apply(this,arguments);return function(ie,re){if(re&&(K(re)==="object"||typeof re=="function"))return re;if(re!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ye(ie)}(this,M)});function Fe(M){var j;(function(it,Qe){if(!(it instanceof Qe))throw new TypeError("Cannot call a class as a function")})(this,Fe),j=Ee.call(this,M);var le=M.afterLoad,ie=M.beforeLoad,re=M.scrollPosition,Oe=M.visibleByDefault;return j.state={visible:Oe},Oe&&(ie(),le()),j.onVisible=j.onVisible.bind(ye(j)),j.isScrollTracked=!!(re&&Number.isFinite(re.x)&&re.x>=0&&Number.isFinite(re.y)&&re.y>=0),j}return S=Fe,(R=[{key:"componentDidUpdate",value:function(M,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 M=this.props,j=M.className,le=M.delayMethod,ie=M.delayTime,re=M.height,Oe=M.placeholder,it=M.scrollPosition,Qe=M.style,Je=M.threshold,Ct=M.useIntersectionObserver,pt=M.width;return this.isScrollTracked||Ct&&l()?o().createElement(P,{className:j,height:re,onVisible:this.onVisible,placeholder:Oe,scrollPosition:it,style:Qe,threshold:Je,useIntersectionObserver:Ct,width:pt}):o().createElement(pe,{className:j,delayMethod:le,delayTime:ie,height:re,onVisible:this.onVisible,placeholder:Oe,style:Qe,threshold:Je,width:pt})}}])&&Q(S.prototype,R),Object.defineProperty(S,"prototype",{writable:!1}),Fe}(o().Component);Le.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Le.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const ae=Le;function ut(k){return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},ut(k)}var qt=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Nt(k,S){var R=Object.keys(k);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(k);S&&(N=N.filter(function(we){return Object.getOwnPropertyDescriptor(k,we).enumerable})),R.push.apply(R,N)}return R}function Wr(k){for(var S=1;S<arguments.length;S++){var R=arguments[S]!=null?arguments[S]:{};S%2?Nt(Object(R),!0).forEach(function(N){gr(k,N,R[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(R)):Nt(Object(R)).forEach(function(N){Object.defineProperty(k,N,Object.getOwnPropertyDescriptor(R,N))})}return k}function gr(k,S,R){return(S=fn(S))in k?Object.defineProperty(k,S,{value:R,enumerable:!0,configurable:!0,writable:!0}):k[S]=R,k}function mr(){return mr=Object.assign?Object.assign.bind():function(k){for(var S=1;S<arguments.length;S++){var R=arguments[S];for(var N in R)Object.prototype.hasOwnProperty.call(R,N)&&(k[N]=R[N])}return k},mr.apply(this,arguments)}function sa(k,S){for(var R=0;R<S.length;R++){var N=S[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(k,fn(N.key),N)}}function fn(k){var S=function(R,N){if(ut(R)!=="object"||R===null)return R;var we=R[Symbol.toPrimitive];if(we!==void 0){var Ee=we.call(R,"string");if(ut(Ee)!=="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(R)}(k);return ut(S)==="symbol"?S:String(S)}function Ln(k,S){return Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,N){return R.__proto__=N,R},Ln(k,S)}function X(k){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},X(k)}var me=function(k){(function(M,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(j&&j.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),j&&Ln(M,j)})(Fe,k);var S,R,N,we,Ee=(N=Fe,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 M,j=X(N);if(we){var le=X(this).constructor;M=Reflect.construct(j,arguments,le)}else M=j.apply(this,arguments);return function(ie,re){if(re&&(ut(re)==="object"||typeof re=="function"))return re;if(re!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Oe){if(Oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Oe}(ie)}(this,M)});function Fe(M){var j;return function(le,ie){if(!(le instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,Fe),(j=Ee.call(this,M)).state={loaded:!1},j}return S=Fe,(R=[{key:"onImageLoad",value:function(){var M=this;return this.state.loaded?null:function(j){M.props.onLoad(j),M.props.afterLoad(),M.setState({loaded:!0})}}},{key:"getImg",value:function(){var M=this.props,j=(M.afterLoad,M.beforeLoad,M.delayMethod,M.delayTime,M.effect,M.placeholder,M.placeholderSrc,M.scrollPosition,M.threshold,M.useIntersectionObserver,M.visibleByDefault,M.wrapperClassName,M.wrapperProps,function(le,ie){if(le==null)return{};var re,Oe,it=function(Je,Ct){if(Je==null)return{};var pt,At,Vr={},Hr=Object.keys(Je);for(At=0;At<Hr.length;At++)pt=Hr[At],Ct.indexOf(pt)>=0||(Vr[pt]=Je[pt]);return Vr}(le,ie);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(le);for(Oe=0;Oe<Qe.length;Oe++)re=Qe[Oe],ie.indexOf(re)>=0||Object.prototype.propertyIsEnumerable.call(le,re)&&(it[re]=le[re])}return it}(M,qt));return o().createElement("img",mr({},j,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var M=this.props,j=M.beforeLoad,le=M.className,ie=M.delayMethod,re=M.delayTime,Oe=M.height,it=M.placeholder,Qe=M.scrollPosition,Je=M.style,Ct=M.threshold,pt=M.useIntersectionObserver,At=M.visibleByDefault,Vr=M.width;return o().createElement(ae,{beforeLoad:j,className:le,delayMethod:ie,delayTime:re,height:Oe,placeholder:it,scrollPosition:Qe,style:Je,threshold:Ct,useIntersectionObserver:pt,visibleByDefault:At,width:Vr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(M){var j=this.props,le=j.effect,ie=j.height,re=j.placeholderSrc,Oe=j.width,it=j.wrapperClassName,Qe=j.wrapperProps,Je=this.state.loaded,Ct=Je?" lazy-load-image-loaded":"",pt=Je||!re?{}:{backgroundImage:"url(".concat(re,")"),backgroundSize:"100% 100%"};return o().createElement("span",mr({className:it+" lazy-load-image-background "+le+Ct,style:Wr(Wr({},pt),{},{color:"transparent",display:"inline-block",height:ie,width:Oe})},Qe),M)}},{key:"render",value:function(){var M=this.props,j=M.effect,le=M.placeholderSrc,ie=M.visibleByDefault,re=M.wrapperClassName,Oe=M.wrapperProps,it=this.getLazyLoadImage();return(j||le)&&!ie||re||Oe?this.getWrappedLazyLoadImage(it):it}}])&&sa(S.prototype,R),Object.defineProperty(S,"prototype",{writable:!1}),Fe}(o().Component);me.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},me.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=me})(),ay.exports=n})();var PU=ay.exports;const MU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjAAIAAAQAASDSLW8AAAAASUVORK5CYII=",_U="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyYWRpYWxHcmFkaWVudCBpZD0iYSIgY3g9IjUwJSIgY3k9IjQ2LjgwMTEwMiUiIHI9Ijk1LjQ5NzExMiUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTE5ZWFiIiBzdG9wLW9wYWNpdHk9Ii40OCIvPjwvcmFkaWFsR3JhZGllbnQ+PHBhdGggZD0ibTg4IDg2aDUxMnY1MTJoLTUxMnoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg4IC04NikiLz48L3N2Zz4=";function $U(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 el=p.forwardRef(({ratio:e,disabledEffect:t=!1,effect:r="blur",sx:n,...i},o)=>{const a=v.jsx($.Box,{component:PU.LazyLoadImage,wrapperClassName:"wrapper",effect:t?void 0:r,placeholderSrc:t?MU:_U,sx:{width:1,height:1,objectFit:"cover"},...i});return e?v.jsx($.Box,{ref:o,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:$U(e),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...n},children:a}):v.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})});el.displayName="Image";/*! *****************************************************************************
133
+ Copyright (c) Microsoft Corporation.
134
+
135
+ Permission to use, copy, modify, and/or distribute this software for any
136
+ purpose with or without fee is hereby granted.
137
+
138
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
139
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
140
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
141
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
142
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
143
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
144
+ PERFORMANCE OF THIS SOFTWARE.
145
+ ***************************************************************************** */var zf=function(e,t){return zf=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])},zf(e,t)};function AU(e,t){zf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ft=function(){return Ft=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},Ft.apply(this,arguments)},sy=!1,jn,Wf,Vf,tl,rl,ly,nl,Hf,Uf,Yf,cy,Gf,qf,uy,fy;function Ut(){if(!sy){sy=!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(Gf=/\b(iPhone|iP[ao]d)/.exec(e),qf=/\b(iP[ao]d)/.exec(e),Yf=/Android/i.exec(e),uy=/FBAN\/\w+;/i.exec(e),fy=/Mobile/i.exec(e),cy=!!/Win64/.exec(e),t){jn=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,jn&&document&&document.documentMode&&(jn=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);ly=n?parseFloat(n[1])+4:jn,Wf=t[2]?parseFloat(t[2]):NaN,Vf=t[3]?parseFloat(t[3]):NaN,tl=t[4]?parseFloat(t[4]):NaN,tl?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),rl=t&&t[1]?parseFloat(t[1]):NaN):rl=NaN}else jn=Wf=Vf=rl=tl=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);nl=i?parseFloat(i[1].replace("_",".")):!0}else nl=!1;Hf=!!r[2],Uf=!!r[3]}else nl=Hf=Uf=!1}}var Xf={ie:function(){return Ut()||jn},ieCompatibilityMode:function(){return Ut()||ly>jn},ie64:function(){return Xf.ie()&&cy},firefox:function(){return Ut()||Wf},opera:function(){return Ut()||Vf},webkit:function(){return Ut()||tl},safari:function(){return Xf.webkit()},chrome:function(){return Ut()||rl},windows:function(){return Ut()||Hf},osx:function(){return Ut()||nl},linux:function(){return Ut()||Uf},iphone:function(){return Ut()||Gf},mobile:function(){return Ut()||Gf||qf||Yf||fy},nativeApp:function(){return Ut()||uy},android:function(){return Ut()||Yf},ipad:function(){return Ut()||qf}},kU=Xf,il=!!(typeof window<"u"&&window.document&&window.document.createElement),DU={canUseDOM:il,canUseWorkers:typeof Worker<"u",canUseEventListeners:il&&!!(window.addEventListener||window.attachEvent),canUseViewport:il&&!!window.screen,isInWorker:!il},jU=DU,dy=jU,hy;dy.canUseDOM&&(hy=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
146
+ * Checks if an event is supported in the current execution environment.
147
+ *
148
+ * NOTE: This will not work correctly for non-generic events such as `change`,
149
+ * `reset`, `load`, `error`, and `select`.
150
+ *
151
+ * Borrows from Modernizr.
152
+ *
153
+ * @param {string} eventNameSuffix Event name, e.g. "click".
154
+ * @param {?boolean} capture Check if the capture phase is supported.
155
+ * @return {boolean} True if the event is supported.
156
+ * @internal
157
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
158
+ */function IU(e,t){if(!dy.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&&hy&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var LU=IU,FU=kU,RU=LU,py=10,gy=40,my=800;function vy(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*py,i=r*py,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=gy,i*=gy):(n*=my,i*=my)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}vy.getEventType=function(){return FU.firefox()?"DOMMouseScroll":RU("wheel")?"wheel":"mousewheel"};var NU=vy,BU=NU;const zU=dn(BU);function WU(e,t,r,n,i,o){o===void 0&&(o=0);var a=Vi(e,t,o),s=a.width,c=a.height,l=Math.min(s,r),u=Math.min(c,n);return l>u*i?{width:u*i,height:u}:{width:l,height:l/i}}function VU(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function ol(e,t,r,n,i){i===void 0&&(i=0);var o=Vi(t.width,t.height,i),a=o.width,s=o.height;return{x:yy(e.x,a,r.width,n),y:yy(e.y,s,r.height,n)}}function yy(e,t,r,n){var i=t*n/2-r/2;return al(e,-i,i)}function by(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function xy(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function HU(e,t,r,n,i,o,a){o===void 0&&(o=0),a===void 0&&(a=!0);var s=a?UU:YU,c=Vi(t.width,t.height,o),l=Vi(t.naturalWidth,t.naturalHeight,o),u={x:s(100,((c.width-r.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-r.height/i)/2-e.y/i)/c.height*100),width:s(100,r.width/c.width*100/i),height:s(100,r.height/c.height*100/i)},f=Math.round(s(l.width,u.width*l.width/100)),d=Math.round(s(l.height,u.height*l.height/100)),h=l.width>=l.height*n,g=h?{width:Math.round(d*n),height:d}:{width:f,height:Math.round(f/n)},m=Ft(Ft({},g),{x:Math.round(s(l.width-g.width,u.x*l.width/100)),y:Math.round(s(l.height-g.height,u.y*l.height/100))});return{croppedAreaPercentages:u,croppedAreaPixels:m}}function UU(e,t){return Math.min(e,Math.max(0,t))}function YU(e,t){return t}function GU(e,t,r,n,i,o){var a=Vi(t.width,t.height,r),s=al(n.width/a.width*(100/e.width),i,o),c={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:c,zoom:s}}function qU(e,t,r){var n=VU(t);return r.height>r.width?r.height/(e.height*n):r.width/(e.width*n)}function XU(e,t,r,n,i,o){r===void 0&&(r=0);var a=Vi(t.naturalWidth,t.naturalHeight,r),s=al(qU(e,t,n),i,o),c=n.height>n.width?n.height/e.height:n.width/e.width,l={x:((a.width-e.width)/2-e.x)*c,y:((a.height-e.height)/2-e.y)*c};return{crop:l,zoom:s}}function wy(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function KU(e){return e*Math.PI/180}function Vi(e,t,r){var n=KU(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 al(e,t,r){return Math.min(Math.max(e,t),r)}function sl(){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 ZU=`.reactEasyCrop_Container {
159
+ position: absolute;
160
+ top: 0;
161
+ left: 0;
162
+ right: 0;
163
+ bottom: 0;
164
+ overflow: hidden;
165
+ user-select: none;
166
+ touch-action: none;
167
+ cursor: move;
168
+ display: flex;
169
+ justify-content: center;
170
+ align-items: center;
171
+ }
172
+
173
+ .reactEasyCrop_Image,
174
+ .reactEasyCrop_Video {
175
+ will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
176
+ }
177
+
178
+ .reactEasyCrop_Contain {
179
+ max-width: 100%;
180
+ max-height: 100%;
181
+ margin: auto;
182
+ position: absolute;
183
+ top: 0;
184
+ bottom: 0;
185
+ left: 0;
186
+ right: 0;
187
+ }
188
+ .reactEasyCrop_Cover_Horizontal {
189
+ width: 100%;
190
+ height: auto;
191
+ }
192
+ .reactEasyCrop_Cover_Vertical {
193
+ width: auto;
194
+ height: 100%;
195
+ }
196
+
197
+ .reactEasyCrop_CropArea {
198
+ position: absolute;
199
+ left: 50%;
200
+ top: 50%;
201
+ transform: translate(-50%, -50%);
202
+ border: 1px solid rgba(255, 255, 255, 0.5);
203
+ box-sizing: border-box;
204
+ box-shadow: 0 0 0 9999em;
205
+ color: rgba(0, 0, 0, 0.5);
206
+ overflow: hidden;
207
+ }
208
+
209
+ .reactEasyCrop_CropAreaRound {
210
+ border-radius: 50%;
211
+ }
212
+
213
+ .reactEasyCrop_CropAreaGrid::before {
214
+ content: ' ';
215
+ box-sizing: border-box;
216
+ position: absolute;
217
+ border: 1px solid rgba(255, 255, 255, 0.5);
218
+ top: 0;
219
+ bottom: 0;
220
+ left: 33.33%;
221
+ right: 33.33%;
222
+ border-top: 0;
223
+ border-bottom: 0;
224
+ }
225
+
226
+ .reactEasyCrop_CropAreaGrid::after {
227
+ content: ' ';
228
+ box-sizing: border-box;
229
+ position: absolute;
230
+ border: 1px solid rgba(255, 255, 255, 0.5);
231
+ top: 33.33%;
232
+ bottom: 33.33%;
233
+ left: 0;
234
+ right: 0;
235
+ border-left: 0;
236
+ border-right: 0;
237
+ }
238
+ `,QU=1,JU=3,eY=function(e){AU(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.imageRef=p.createRef(),r.videoRef=p.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=GU(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=XU(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,m=void 0;if(h){var y=r.getObjectFit();switch(y){default:case"contain":m=u>g?{width:r.containerRect.height*g,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/g};break;case"horizontal-cover":m={width:r.containerRect.width,height:r.containerRect.width/g};break;case"vertical-cover":m={width:r.containerRect.height*g,height:r.containerRect.height};break}}else m={width:l.offsetWidth,height:l.offsetHeight};r.mediaSize=Ft(Ft({},m),{naturalWidth:f,naturalHeight:d}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var x=r.props.cropSize?r.props.cropSize:WU(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?ol(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=zU(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=al(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?ol(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?ol(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;return HU(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?ol(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=ZU,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=by(n,i),this.lastPinchRotation=xy(n,i),this.onDragStart(wy(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=wy(i,o);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var s=by(i,o),c=n.props.zoom*(s/n.lastPinchDistance);n.setNewZoom(c,a,{shouldUpdatePosition:!1}),n.lastPinchDistance=s;var l=xy(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,m=n.style,y=m.containerStyle,x=m.cropAreaStyle,b=m.mediaStyle,T=n.classes,P=T.containerClassName,w=T.cropAreaClassName,E=T.mediaClassName,O=this.getObjectFit();return p.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(L){return r.containerRef=L},"data-testid":"container",style:y,className:sl("reactEasyCrop_Container",P)},i?p.createElement("img",Ft({alt:"",className:sl("reactEasyCrop_Image",O==="contain"&&"reactEasyCrop_Contain",O==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",O==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",E)},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&&p.createElement("video",Ft({autoPlay:!0,loop:!0,muted:!0,className:sl("reactEasyCrop_Video",O==="contain"&&"reactEasyCrop_Contain",O==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",O==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",E)},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(_){return p.createElement("source",Ft({key:_.src},_))})),this.state.cropSize&&p.createElement("div",{style:Ft(Ft({},x),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:sl("reactEasyCrop_CropArea",h==="round"&&"reactEasyCrop_CropAreaRound",g&&"reactEasyCrop_CropAreaGrid",w)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:JU,minZoom:QU,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}(p.Component);const tY=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 Cy(e){return e*Math.PI/180}function rY(e,t,r){const n=Cy(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 nY(e,t,r=0,n={horizontal:!1,vertical:!1}){const i=await tY(e),o=document.createElement("canvas"),a=o.getContext("2d");if(!a)return null;const s=Cy(r),{width:c,height:l}=rY(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 Ty=({title:e,open:t,onClose:r,onFileCropped:n,image:{width:i,height:o,aspect:a,imgSrc:s=""}})=>{const[c,l]=p.useState({x:0,y:0}),[u,f]=p.useState(1),d=p.useRef(),h=p.useRef(),g=async(x,b)=>{try{const T=await nY(s,b,0);d.current=new File([T],"image.png",{type:T.type})}catch{n(void 0)}},m=async()=>{n(h.current),r()},y=()=>{n(d.current),h.current=d.current,r()};return v.jsxs($.Dialog,{open:t,scroll:"body",PaperProps:{sx:{maxWidth:"100%"}},children:[v.jsx($.DialogTitle,{children:e}),v.jsx($.DialogContent,{children:v.jsx($.Stack,{position:"relative",alignItems:"center",justifyContent:"center",style:{position:"relative",width:i*1.1,height:o*1.1,margin:"auto"},children:v.jsx(eY,{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"})})}),v.jsxs($.DialogActions,{children:[v.jsxs($.Stack,{direction:"row",gap:3,flex:1,alignItems:"center",maxWidth:200,mr:"auto",children:[v.jsx($.Typography,{variant:"body1",children:"Zoom"}),v.jsx($.Slider,{value:u,onChange:(x,b)=>f(Array.isArray(b)?b[0]:b),min:1,max:5,size:"medium",step:.5})]}),v.jsx($.Button,{variant:"soft",size:"medium",onClick:m,children:"Descartar"}),v.jsx($.Button,{variant:"contained",size:"medium",onClick:y,children:"Salvar"})]})]})},iY=_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}}),Sy=p.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 v.jsxs(iY,{ref:s,component:"span",ownerState:{color:t,variant:r},sx:{...n&&{pl:.75},...i&&{pr:.75},...o},theme:c,...a,children:[n&&v.jsxs($.Box,{sx:{mr:.75,...l},children:[" ",n," "]}),e,i&&v.jsxs($.Box,{sx:{ml:.75,...l},children:[" ",i," "]})]})});Sy.displayName="Label";function oY(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 aY=_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}}}),sY=({open:e,children:t,arrow:r="top-right",disabledArrow:n,sx:i,...o})=>{const{style:a,anchorOrigin:s,transformOrigin:c}=oY(r);return v.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&&v.jsx(aY,{arrow:r}),t]})},ll=(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")}},cl={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},Hi={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22};function ul(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 lY(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 cY(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function uY(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const Ey={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},fY=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:ul,bgGradient:lY,filterStyles:uY,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:Ey,textGradient:cY},Symbol.toStringTag,{value:"Module"})),dY=_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}}}}),hY=_t($.ListItemIcon)({marginRight:0,marginBottom:4,width:Hi.NAV_ITEM_MINI,height:Hi.NAV_ITEM_MINI}),pY=_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,...ul({color:e.palette.background.default})}})),Oy=p.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=v.jsxs(dY,{ref:a,open:r,depth:t,active:n,disabled:f,...o,children:[l&&v.jsx(hY,{children:l}),v.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&&v.jsx($.Tooltip,{title:d,arrow:!0,placement:"right",children:v.jsx(It,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!u&&v.jsx(It,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?v.jsx($.Link,{href:c,target:"_blank",rel:"noopener",underline:"none",children:g}):v.jsx($.Link,{component:_r.Link,to:c,underline:"none",children:g}))()});Oy.displayName="NavItem";const gY=({data:e,depth:t})=>v.jsx(v.Fragment,{children:e.map(r=>v.jsx(Py,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),Py=({data:e,depth:t,hasChild:r})=>{const n=p.useRef(null),{pathname:i}=_r.useLocation(),{active:o,isExternalLink:a}=ll(e.path),[s,c]=p.useState(!1);p.useEffect(()=>{s&&u()},[i]),p.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 v.jsxs(v.Fragment,{children:[v.jsx(Oy,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:u}),r&&v.jsx(pY,{open:s,anchorEl:n.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:u},children:v.jsx(gY,{data:e.children,depth:t})})]})},mY=({items:e,isLastGroup:t})=>v.jsxs(v.Fragment,{children:[e.map(r=>v.jsx(Py,{data:r,depth:1,hasChild:!!r.children},r.title+r.path)),!t&&v.jsx($.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),vY=({data:e,sx:t,...r})=>v.jsx($.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...t},...r,children:e.map((n,i)=>v.jsx(mY,{items:n.items,isLastGroup:i+1===e.length},n.subheader))}),yY=p.memo(vY),bY=_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:cl.H_DASHBOARD_ITEM,...a&&{height:cl.H_DASHBOARD_ITEM_SUB,...r>2&&{paddingLeft:i.spacing(r)},...n&&{height:cl.H_DASHBOARD_ITEM}},...e&&{...s,"&:hover":{...s}},...a&&e&&{...c,"&:hover":{...c}},...t&&{"&.Mui-disabled":{opacity:.64}}}}),My=_t($.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:Hi.NAV_ITEM,height:Hi.NAV_ITEM}),xY=_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}})),wY=_t($.ListSubheader)(({theme:e})=>({...e.typography.overline,fontSize:11,paddingTop:e.spacing(3),paddingBottom:e.spacing(1),color:e.palette.text.secondary})),CY=({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=v.jsxs(bY,{depth:t,active:n,disabled:f,caption:!!d,...o,children:[c&&v.jsx(My,{children:c}),h&&v.jsx(My,{children:v.jsx(xY,{active:n&&h})}),v.jsx($.ListItemText,{primary:a,secondary:d&&v.jsx($.Tooltip,{title:d,placement:"top-start",children:v.jsx("span",{children:d})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),l&&v.jsx($.Box,{component:"span",sx:{lineHeight:0},children:l}),!!u&&v.jsx(It,{width:16,icon:r?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?v.jsx($.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:g}):u?g:v.jsx($.Link,{component:_r.Link,to:s,underline:"none",children:g}))()},TY=({data:e,depth:t})=>v.jsx(v.Fragment,{children:e.map(r=>v.jsx(_y,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),_y=({data:e,depth:t,hasChild:r})=>{const{pathname:n}=_r.useLocation(),{active:i,isExternalLink:o}=ll(e.path),[a,s]=p.useState(i);p.useEffect(()=>{i||l()},[n]);const c=()=>{s(!a)},l=()=>{s(!1)};return v.jsxs(v.Fragment,{children:[v.jsx(CY,{item:e,depth:t,open:a,active:i,isExternalLink:o,onClick:c}),r&&v.jsx($.Collapse,{in:a,unmountOnExit:!0,children:v.jsx(TY,{data:e.children,depth:t})})]})},SY=({data:e,sx:t,...r})=>v.jsx($.Stack,{sx:t,...r,children:e.map(n=>{const i=n.subheader||n.items[0].title;return v.jsxs($.List,{disablePadding:!0,sx:{px:2},children:[n.subheader&&v.jsx(wY,{disableSticky:!0,children:n.subheader}),n.items.map(o=>v.jsx(_y,{data:o,depth:1,hasChild:!!o.children},o.title+o.path))]},i)})}),EY=_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:cl.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}}}}),OY=_t($.ListItemIcon)({marginRight:8,flexShrink:0,width:Hi.NAV_ITEM_HORIZONTAL,height:Hi.NAV_ITEM_HORIZONTAL}),PY=_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,...ul({color:e.palette.background.default})}})),$y=p.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,m=v.jsxs(EY,{ref:a,open:r,depth:t,active:n,disabled:d,...o,children:[l&&v.jsx(OY,{children:l}),v.jsx($.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"}}),u&&v.jsx($.Box,{component:"span",sx:{ml:1,lineHeight:0},children:u}),h&&v.jsx($.Tooltip,{title:h,arrow:!0,children:v.jsx($.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:v.jsx(It,{icon:"eva:info-outline",width:16})})}),!!f&&v.jsx(It,{icon:g?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?v.jsx($.Link,{href:c,target:"_blank",rel:"noopener",underline:"none",children:m}):v.jsx($.Link,{component:_r.Link,to:c,underline:"none",children:m}))()});$y.displayName="NavItem";const MY=({data:e,depth:t})=>v.jsx(v.Fragment,{children:e.map(r=>v.jsx(Ay,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),Ay=({data:e,depth:t,hasChild:r})=>{const n=p.useRef(null),{pathname:i}=_r.useLocation(),{active:o,isExternalLink:a}=ll(e.path),[s,c]=p.useState(!1);p.useEffect(()=>{s&&u()},[i]),p.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 v.jsxs(v.Fragment,{children:[v.jsx($y,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:u}),r&&v.jsx(PY,{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:v.jsx(MY,{data:e.children,depth:t})})]})},_Y=({items:e})=>v.jsx(v.Fragment,{children:e.map(t=>v.jsx(Ay,{data:t,depth:1,hasChild:!!t.children},t.title+t.path))}),$Y=({data:e,sx:t,...r})=>v.jsx($.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...Ey,...t},...r,children:e.map(n=>v.jsx(_Y,{items:n.items},n.subheader))}),AY=p.memo($Y),kY=e=>{const[t,r]=p.useState(!1);return v.jsx(oy,{...e,type:t?"text":"password",InputProps:{endAdornment:v.jsx($.InputAdornment,{position:"end",children:v.jsx($.IconButton,{onClick:()=>r(!t),edge:"end","aria-label":"Mostrar/Ocultar senha",children:v.jsx(It,{icon:t?"eva:eye-off-fill":"eva:eye-fill"})})})}})},DY=({children:e,container:t})=>sd.createPortal(e,document.getElementById(t)||document.body);var jY=!!(typeof window<"u"&&window.document&&window.document.createElement),IY=jY;const ky=dn(IY);var Ui=function(){return Ui=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},Ui.apply(this,arguments)},Yi=null,Dy=null;ky&&window.addEventListener("resize",function(){Dy!==window.devicePixelRatio&&(Dy=window.devicePixelRatio,Yi=null)});function jy(){if(Yi===null){if(typeof document>"u")return Yi=0,Yi;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),Yi=r}return Yi}function Iy(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Ly(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Fy=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 Ry(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Ny(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function By(e){return".".concat(e.split(" ").join("."))}var LY=Object.freeze({__proto__:null,getElementWindow:Iy,getElementDocument:Ly,getOptions:Fy,addClasses:Ry,removeClasses:Ny,classNamesToQuery:By}),ln=Iy,Kf=Ly,FY=Fy,cn=Ry,un=Ny,Yt=By,fl=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,m;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,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,T=n.axis[n.draggedAxis].scrollbar,P=(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"?y=i.pageY:y=i.pageX;var E=y-((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;E=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)-T.size-E:E;var O=E/(b-T.size),_=O*(P-w);n.draggedAxis==="x"&&n.isRtl&&(_=!((m=e.getRtlHelpers())===null||m===void 0)&&m.isScrollingToNegative?-_:_),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=_}},this.onEndDrag=function(i){var o=Kf(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=Ui(Ui({},e.defaultOptions),r),this.classNames=Ui(Ui({},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=Vm(this._onMouseMove,64),this.onWindowResize=zo(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=zo(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=zo(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:jy()}catch{return jy()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Kf(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(){ky&&(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=Kf(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,m=g<0?-1:1,y=m===-1?h-d:h+d,x=40,b=function(){n.contentWrapperEl&&(m===-1?h>y&&(h-=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)):h<y&&(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=FY,e.helpers=LY,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 RY(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 zy=be.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,o=RY(e,["children","scrollableNodeProps"]),a=be.useRef(),s=be.useRef(),c=be.useRef(),l={},u={};Object.keys(o).forEach(function(h){Object.prototype.hasOwnProperty.call(fl.defaultOptions,h)?l[h]=o[h]:u[h]=o[h]});var f=rr(rr({},fl.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||fl.defaultOptions.ariaLabel});return be.useEffect(function(){var h;return s.current=d.ref?d.ref.current:s.current,a.current&&(h=new fl(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})))});zy.displayName="SimpleBar";const NY=_t("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),BY=_t(zy)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:V(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),zY=({children:e,sx:t,...r})=>{const n=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?v.jsx($.Box,{sx:{overflowX:"auto",...t},...r,children:e}):v.jsx(NY,{children:v.jsx(BY,{clickOnTrack:!1,sx:t,...r,children:e})})},WY=p.memo(zY),VY=({name:e,...t})=>{const{control:r}=Dt.useFormContext();return v.jsx(Dt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return v.jsx(Ki.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 Gi(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 qi(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 Wy(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 Vy(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 HY=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 ia(e,t){var r=UY(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 UY(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=HY.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var YY=[".DS_Store","Thumbs.db"];function GY(e){return Gi(this,void 0,void 0,function(){return qi(this,function(t){return dl(e)&&qY(e.dataTransfer)?[2,QY(e.dataTransfer,e.type)]:XY(e)?[2,KY(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,ZY(e)]:[2,[]]})})}function qY(e){return dl(e)}function XY(e){return dl(e)&&dl(e.target)}function dl(e){return typeof e=="object"&&e!==null}function KY(e){return Zf(e.target.files).map(function(t){return ia(t)})}function ZY(e){return Gi(this,void 0,void 0,function(){var t;return qi(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 ia(n)})]}})})}function QY(e,t){return Gi(this,void 0,void 0,function(){var r,n;return qi(this,function(i){switch(i.label){case 0:return e.items?(r=Zf(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(JY))]):[3,2];case 1:return n=i.sent(),[2,Hy(Uy(n))];case 2:return[2,Hy(Zf(e.files).map(function(o){return ia(o)}))]}})})}function Hy(e){return e.filter(function(t){return YY.indexOf(t.name)===-1})}function Zf(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function JY(e){if(typeof e.webkitGetAsEntry!="function")return Yy(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Gy(t):Yy(e)}function Uy(e){return e.reduce(function(t,r){return Vy(Vy([],Wy(t),!1),Wy(Array.isArray(r)?Uy(r):[r]),!1)},[])}function Yy(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=ia(t);return Promise.resolve(r)}function eG(e){return Gi(this,void 0,void 0,function(){return qi(this,function(t){return[2,e.isDirectory?Gy(e):tG(e)]})})}function Gy(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function o(){var a=this;t.readEntries(function(s){return Gi(a,void 0,void 0,function(){var c,l,u;return qi(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(eG)),i.push(u),o(),f.label=6;case 6:return[2]}})})},function(s){n(s)})}o()})}function tG(e){return Gi(this,void 0,void 0,function(){return qi(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var o=ia(i,e.fullPath);r(o)},function(i){n(i)})})]})})}var rG=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 qy(e){return oG(e)||iG(e)||Qy(e)||nG()}function nG(){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 iG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oG(e){if(Array.isArray(e))return Qf(e)}function Xy(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 Ky(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xy(Object(r),!0).forEach(function(n){Zy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zy(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oa(e,t){return lG(e)||sG(e,t)||Qy(e,t)||aG()}function aG(){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 Qy(e,t){if(e){if(typeof e=="string")return Qf(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 Qf(e,t)}}function Qf(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 sG(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 lG(e){if(Array.isArray(e))return e}var cG="file-invalid-type",uG="file-too-large",fG="file-too-small",dG="too-many-files",hG=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:cG,message:"File type must be ".concat(r)}},Jy=function(t){return{code:uG,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},eb=function(t){return{code:fG,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},pG={code:dG,message:"Too many files"};function tb(e,t){var r=e.type==="application/x-moz-file"||rG(e,t);return[r,r?null:hG(t)]}function rb(e,t,r){if(In(e.size))if(In(t)&&In(r)){if(e.size>r)return[!1,Jy(r)];if(e.size<t)return[!1,eb(t)]}else{if(In(t)&&e.size<t)return[!1,eb(t)];if(In(r)&&e.size>r)return[!1,Jy(r)]}return[!0,null]}function In(e){return e!=null}function gG(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(c){var l=tb(c,r),u=oa(l,1),f=u[0],d=rb(c,n,i),h=oa(d,1),g=h[0],m=s?s(c):null;return f&&g&&!m})}function hl(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function pl(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 nb(e){e.preventDefault()}function mG(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function vG(e){return e.indexOf("Edge/")!==-1}function yG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return mG(e)||vG(e)}function Mr(){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!hl(n)&&s&&s.apply(void 0,[n].concat(o)),hl(n)})}}function bG(){return"showOpenFilePicker"in window}function xG(e){if(In(e)){var t=Object.entries(e).filter(function(r){var n=oa(r,2),i=n[0],o=n[1],a=!0;return ib(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(ob))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(r,n){var i=oa(n,2),o=i[0],a=i[1];return Ky(Ky({},r),{},Zy({},o,a))},{});return[{description:"Files",accept:t}]}return e}function wG(e){if(In(e))return Object.entries(e).reduce(function(t,r){var n=oa(r,2),i=n[0],o=n[1];return[].concat(qy(t),[i],qy(o))},[]).filter(function(t){return ib(t)||ob(t)}).join(",")}function CG(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function TG(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ib(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function ob(e){return/^.*\.[\w]+$/.test(e)}var SG=["children"],EG=["open"],OG=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],PG=["refKey","onChange","onClick"];function MG(e){return AG(e)||$G(e)||ab(e)||_G()}function _G(){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 $G(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AG(e){if(Array.isArray(e))return ed(e)}function Jf(e,t){return jG(e)||DG(e,t)||ab(e,t)||kG()}function kG(){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 ab(e,t){if(e){if(typeof e=="string")return ed(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 ed(e,t)}}function ed(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 DG(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 jG(e){if(Array.isArray(e))return e}function sb(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?sb(Object(r),!0).forEach(function(n){td(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function td(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gl(e,t){if(e==null)return{};var r=IG(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 IG(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 rd=p.forwardRef(function(e,t){var r=e.children,n=gl(e,SG),i=ml(n),o=i.open,a=gl(i,EG);return p.useImperativeHandle(t,function(){return{open:o}},[o]),p.createElement(p.Fragment,null,r(ht(ht({},a),{},{open:o})))});rd.displayName="Dropzone";var lb={disabled:!1,getFilesFromEvent:GY,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};rd.defaultProps=lb,rd.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 nd={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ml(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ht(ht({},lb),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,m=t.onFileDialogCancel,y=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,T=t.preventDropOnDocument,P=t.noClick,w=t.noKeyboard,E=t.noDrag,O=t.noDragEventsBubbling,_=t.onError,L=t.validator,W=p.useMemo(function(){return wG(r)},[r]),de=p.useMemo(function(){return xG(r)},[r]),ve=p.useMemo(function(){return typeof y=="function"?y:cb},[y]),ce=p.useMemo(function(){return typeof m=="function"?m:cb},[m]),q=p.useRef(null),Y=p.useRef(null),ge=p.useReducer(LG,nd),Se=Jf(ge,2),We=Se[0],Me=Se[1],D=We.isFocused,I=We.isFileDialogActive,Z=p.useRef(typeof window<"u"&&window.isSecureContext&&x&&bG()),ne=function(){!Z.current&&I&&setTimeout(function(){if(Y.current){var me=Y.current.files;me.length||(Me({type:"closeDialog"}),ce())}},300)};p.useEffect(function(){return window.addEventListener("focus",ne,!1),function(){window.removeEventListener("focus",ne,!1)}},[Y,I,ce,Z]);var G=p.useRef([]),ue=function(me){q.current&&q.current.contains(me.target)||(me.preventDefault(),G.current=[])};p.useEffect(function(){return T&&(document.addEventListener("dragover",nb,!1),document.addEventListener("drop",ue,!1)),function(){T&&(document.removeEventListener("dragover",nb),document.removeEventListener("drop",ue))}},[q,T]),p.useEffect(function(){return!n&&b&&q.current&&q.current.focus(),function(){}},[q,b,n]);var se=p.useCallback(function(X){_?_(X):console.error(X)},[_]),pe=p.useCallback(function(X){X.preventDefault(),X.persist(),mr(X),G.current=[].concat(MG(G.current),[X.target]),pl(X)&&Promise.resolve(i(X)).then(function(me){if(!(hl(X)&&!O)){var st=me.length,k=st>0&&gG({files:me,accept:W,minSize:a,maxSize:o,multiple:s,maxFiles:c,validator:L}),S=st>0&&!k;Me({isDragAccept:k,isDragReject:S,isDragActive:!0,type:"setDraggedFiles"}),l&&l(X)}}).catch(function(me){return se(me)})},[i,l,se,O,W,a,o,s,c,L]),K=p.useCallback(function(X){X.preventDefault(),X.persist(),mr(X);var me=pl(X);if(me&&X.dataTransfer)try{X.dataTransfer.dropEffect="copy"}catch{}return me&&f&&f(X),!1},[f,O]),Q=p.useCallback(function(X){X.preventDefault(),X.persist(),mr(X);var me=G.current.filter(function(k){return q.current&&q.current.contains(k)}),st=me.indexOf(X.target);st!==-1&&me.splice(st,1),G.current=me,!(me.length>0)&&(Me({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),pl(X)&&u&&u(X))},[q,u,O]),te=p.useCallback(function(X,me){var st=[],k=[];X.forEach(function(S){var R=tb(S,W),N=Jf(R,2),we=N[0],Ee=N[1],Fe=rb(S,a,o),M=Jf(Fe,2),j=M[0],le=M[1],ie=L?L(S):null;if(we&&j&&!ie)st.push(S);else{var re=[Ee,le];ie&&(re=re.concat(ie)),k.push({file:S,errors:re.filter(function(Oe){return Oe})})}}),(!s&&st.length>1||s&&c>=1&&st.length>c)&&(st.forEach(function(S){k.push({file:S,errors:[pG]})}),st.splice(0)),Me({acceptedFiles:st,fileRejections:k,type:"setFiles"}),d&&d(st,k,me),k.length>0&&g&&g(k,me),st.length>0&&h&&h(st,me)},[Me,s,W,a,o,c,d,h,g,L]),ye=p.useCallback(function(X){X.preventDefault(),X.persist(),mr(X),G.current=[],pl(X)&&Promise.resolve(i(X)).then(function(me){hl(X)&&!O||te(me,X)}).catch(function(me){return se(me)}),Me({type:"reset"})},[i,te,se,O]),F=p.useCallback(function(){if(Z.current){Me({type:"openDialog"}),ve();var X={multiple:s,types:de};window.showOpenFilePicker(X).then(function(me){return i(me)}).then(function(me){te(me,null),Me({type:"closeDialog"})}).catch(function(me){CG(me)?(ce(me),Me({type:"closeDialog"})):TG(me)?(Z.current=!1,Y.current?(Y.current.value=null,Y.current.click()):se(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."))):se(me)});return}Y.current&&(Me({type:"openDialog"}),ve(),Y.current.value=null,Y.current.click())},[Me,ve,ce,x,te,se,de,s]),Le=p.useCallback(function(X){!q.current||!q.current.isEqualNode(X.target)||(X.key===" "||X.key==="Enter"||X.keyCode===32||X.keyCode===13)&&(X.preventDefault(),F())},[q,F]),ae=p.useCallback(function(){Me({type:"focus"})},[]),ut=p.useCallback(function(){Me({type:"blur"})},[]),qt=p.useCallback(function(){P||(yG()?setTimeout(F,0):F())},[P,F]),Nt=function(me){return n?null:me},Wr=function(me){return w?null:Nt(me)},gr=function(me){return E?null:Nt(me)},mr=function(me){O&&me.stopPropagation()},sa=p.useMemo(function(){return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},me=X.refKey,st=me===void 0?"ref":me,k=X.role,S=X.onKeyDown,R=X.onFocus,N=X.onBlur,we=X.onClick,Ee=X.onDragEnter,Fe=X.onDragOver,M=X.onDragLeave,j=X.onDrop,le=gl(X,OG);return ht(ht(td({onKeyDown:Wr(Mr(S,Le)),onFocus:Wr(Mr(R,ae)),onBlur:Wr(Mr(N,ut)),onClick:Nt(Mr(we,qt)),onDragEnter:gr(Mr(Ee,pe)),onDragOver:gr(Mr(Fe,K)),onDragLeave:gr(Mr(M,Q)),onDrop:gr(Mr(j,ye)),role:typeof k=="string"&&k!==""?k:"presentation"},st,q),!n&&!w?{tabIndex:0}:{}),le)}},[q,Le,ae,ut,qt,pe,K,Q,ye,w,E,n]),fn=p.useCallback(function(X){X.stopPropagation()},[]),Ln=p.useMemo(function(){return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},me=X.refKey,st=me===void 0?"ref":me,k=X.onChange,S=X.onClick,R=gl(X,PG),N=td({accept:W,multiple:s,type:"file",style:{display:"none"},onChange:Nt(Mr(k,ye)),onClick:Nt(Mr(S,fn)),tabIndex:-1},st,Y);return ht(ht({},N),R)}},[Y,r,s,ye,n]);return ht(ht({},We),{},{isFocused:D&&!n,getRootProps:sa,getInputProps:Ln,rootRef:q,inputRef:Y,open:Nt(F)})}function LG(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({},nd),{},{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({},nd);default:return e}}function cb(){}const FG=()=>{const t=ii().palette.primary.main;return v.jsxs(v.Fragment,{children:[v.jsx("defs",{children:v.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[v.jsx("stop",{offset:"0%",stopColor:t}),v.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),v.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},RG=p.memo(FG),NG=({...e})=>{const t=ii(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return v.jsx($.Box,{...e,children:v.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx(RG,{}),v.jsx("defs",{children:v.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[v.jsx("stop",{offset:"0%",stopOpacity:"0"}),v.jsx("stop",{offset:"100%"})]})}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),v.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),v.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),v.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),v.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),v.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),v.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),v.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),v.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),v.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),v.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),v.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),v.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),v.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),v.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},BG=p.memo(NG),zG=["pdf"],WG=["txt"],VG=["psd"],HG=["doc","docx"],UG=["xls","xlsx"],YG=["zip","rar","iso"],GG=["ai","esp"],qG=["ppt","pptx"],XG=["wav","aif","mp3","aac"],KG=["jpg","jpeg","gif","bmp","png","svg"],ZG=["m4v","avi","mpg","mp4","webm"],nr=e=>`/assets/icons/files/${e}.svg`;function ub(e){let t;switch(e==null?void 0:e.includes(Gt(e))){case WG.includes(Gt(e)):t="txt";break;case YG.includes(Gt(e)):t="zip";break;case XG.includes(Gt(e)):t="audio";break;case KG.includes(Gt(e)):t="image";break;case ZG.includes(Gt(e)):t="video";break;case HG.includes(Gt(e)):t="word";break;case UG.includes(Gt(e)):t="excel";break;case qG.includes(Gt(e)):t="powerpoint";break;case zG.includes(Gt(e)):t="pdf";break;case VG.includes(Gt(e)):t="photoshop";break;case GG.includes(Gt(e)):t="illustrator";break;default:t=Gt(e)}return t}function QG(e){let t;switch(ub(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 JG(e){return e.split("/").pop()}function id(e){return typeof e=="string"?{key:e,preview:e,name:JG(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}}const fb=({onDownload:e})=>{const t=ii();return v.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,...ul({opacity:.64,color:t.palette.grey[900]})}},children:v.jsx(It,{icon:"eva:arrow-circle-down-fill",width:24})})},db=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:o})=>{const{name:a="",path:s="",preview:c=""}=id(e),l=ub(s||c),u=l==="image"&&r?v.jsx($.Box,{component:"img",src:c,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...o}}):v.jsx($.Box,{component:"img",src:QG(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?v.jsx($.Tooltip,{title:a,children:v.jsxs($.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[u,n&&v.jsx(fb,{onDownload:n})]})}):v.jsxs(v.Fragment,{children:[u,n&&v.jsx(fb,{onDownload:n})]})};var hb={exports:{}};/*! @preserve
243
+ * numeral.js
244
+ * version : 2.0.6
245
+ * author : Adam Draper
246
+ * license : MIT
247
+ * http://adamwdraper.github.com/Numeral-js/
248
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(Qi,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,m=0,y="",x=1e12,b=1e9,T=1e6,P=1e3,w="",E=!1,O,_,L,W,de,ve,ce;if(l=l||0,_=Math.abs(l),t._.includes(u,"(")?(h=!0,u=u.replace(/[\(|\)]/g,"")):(t._.includes(u,"+")||t._.includes(u,"-"))&&(de=t._.includes(u,"+")?u.indexOf("+"):l<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),t._.includes(u,"a")&&(O=u.match(/a(k|m|b|t)?/),O=O?O[1]:!1,t._.includes(u," a")&&(y=" "),u=u.replace(new RegExp(y+"a[kmbt]?"),""),_>=x&&!O||O==="t"?(y+=d.abbreviations.trillion,l=l/x):_<x&&_>=b&&!O||O==="b"?(y+=d.abbreviations.billion,l=l/b):_<b&&_>=T&&!O||O==="m"?(y+=d.abbreviations.million,l=l/T):(_<T&&_>=P&&!O||O==="k")&&(y+=d.abbreviations.thousand,l=l/P)),t._.includes(u,"[.]")&&(g=!0,u=u.replace("[.]",".")),L=l.toString().split(".")[0],W=u.split(".")[1],ve=u.indexOf(","),m=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,W?(t._.includes(W,"[")?(W=W.replace("]",""),W=W.split("["),w=t._.toFixed(l,W[0].length+W[1].length,f,W[1].length)):w=t._.toFixed(l,W.length,f),L=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",g&&Number(w.slice(1))===0&&(w="")):L=t._.toFixed(l,0,f),y&&!O&&Number(L)>=1e3&&y!==d.abbreviations.trillion)switch(L=String(Number(L)/1e3),y){case d.abbreviations.thousand:y=d.abbreviations.million;break;case d.abbreviations.million:y=d.abbreviations.billion;break;case d.abbreviations.billion:y=d.abbreviations.trillion;break}if(t._.includes(L,"-")&&(L=L.slice(1),E=!0),L.length<m)for(var q=m-L.length;q>0;q--)L="0"+L;return ve>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),u.indexOf(".")===0&&(L=""),ce=L+w+(y||""),h?ce=(h&&E?"(":"")+ce+(h&&E?")":""):de>=0?ce=de===0?(E?"-":"+")+ce:ce+(E?"-":"+"):E&&(ce="-"+ce),ce},stringToNumber:function(l){var u=o[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,g,m;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(m=new RegExp("[^a-zA-Z]"+u.abbreviations[h]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),f.match(m)){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),m,y,x,b;return h.length===2?m=Math.min(Math.max(h[1].length,g),u):m=g,x=Math.pow(10,m),b=(f(l+"e+"+m)/x).toFixed(m),d>u-m&&(y=new RegExp("\\.?0{1,"+(d-(u-m))+"}$"),b=b.replace(y,"")),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,m,y,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,m=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]!==m.thousand&&b[0]!==m.million&&b[0]!==m.billion&&b[0]!==m.trillion))?!1:(y=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(g=l.split(f),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(y):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(y)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(y)&&!!g[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(l,u){var f=this._value,d=l||s.defaultFormat,h,g,m;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)){m=i[h].format;break}m=m||t._.numberToFormat,g=m(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,m){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,m){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 m=r.correctionFactor(f,d);return Math.round(f*m)*Math.round(d*m)/Math.round(m*m)}return this._value=r.reduce([this._value,l],u,1),this},divide:function(l){function u(f,d,h,g){var m=r.correctionFactor(f,d);return Math.round(f*m)/Math.round(d*m)}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,m){var y,x=t._.includes(g,"ib")?u:l,b=t._.includes(g," b")||t._.includes(g," ib")?" ":"",T,P,w;for(g=g.replace(/\s?i?b/,""),T=0;T<=x.suffixes.length;T++)if(P=Math.pow(x.base,T),w=Math.pow(x.base,T+1),h===null||h===0||h>=P&&h<w){b+=x.suffixes[T],P>0&&(h=h/P);break}return y=t._.numberToFormat(h,g,m),y+b},unformat:function(h){var g=t._.stringToNumber(h),m,y;if(g){for(m=l.suffixes.length-1;m>=0;m--){if(t._.includes(h,l.suffixes[m])){y=Math.pow(l.base,m);break}if(t._.includes(h,u.suffixes[m])){y=Math.pow(u.base,m);break}}g*=y||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,m,y;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),y=0;y<h.before.length;y++)switch(m=h.before[y],m){case"$":g=t._.insert(g,d.currency.symbol,y);break;case" ":g=t._.insert(g," ",y+d.currency.symbol.length-1);break}for(y=h.after.length-1;y>=0;y--)switch(m=h.after[y],m){case"$":g=y===h.after.length-1?g+d.currency.symbol:t._.insert(g,d.currency.symbol,-(h.after.length-(1+y)));break;case" ":g=y===h.after.length-1?g+" ":t._.insert(g," ",-(h.after.length-(1+y)+d.currency.symbol.length-1));break}return g}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,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,m,y,x){var b=t._.correctionFactor(g,m),T=g*b*(m*b)/(b*b);return T}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})})(hb);var eq=hb.exports;const aa=dn(eq);function tq(e){return aa(e).format()}function rq(e){const t=e?aa(e).format("$0,0.00"):"";return vl(t,".00")}function nq(e){const t=e?aa(Number(e)/100).format("0.0%"):"";return vl(t,".0")}function iq(e){const t=e?aa(e).format("0.00a"):"";return vl(t,".00")}function od(e){const t=e?aa(e).format("0.0 b"):"";return vl(t,".0")}function vl(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const oq=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:rq,fData:od,fNumber:tq,fPercent:nq,fShortenNumber:iq},Symbol.toStringTag,{value:"Module"})),pb=({fileRejections:e})=>e.length?v.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}=id(t);return v.jsxs($.Box,{sx:{my:1},children:[v.jsxs($.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?od(i):""]}),r.map(o=>v.jsxs($.Box,{component:"span",sx:{typography:"caption"},children:["- ",o.message]},o.code))]},n)})}):null,aq=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?v.jsx(Lp,{initial:!1,children:t.map(i=>{const{key:o,name:a="",size:s=0}=id(i),c=typeof i=="string";return e?v.jsxs($.Stack,{component:cr.div,...Zi().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[v.jsx(db,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&v.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:v.jsx(It,{icon:"eva:close-fill",width:16})})]},o):v.jsxs($.Stack,{component:cr.div,...Zi().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[v.jsx(db,{file:i}),v.jsxs($.Stack,{flexGrow:1,sx:{minWidth:0},children:[v.jsx($.Typography,{variant:"subtitle2",noWrap:!0,children:c?i:a}),v.jsx($.Typography,{variant:"caption",sx:{color:"text.secondary"},children:c?"":od(s)})]}),r&&v.jsx($.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:v.jsx(It,{icon:"eva:close-fill"})})]},o)})}):null,sq=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return v.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:v.jsx(el,{alt:"file preview",src:t,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},lq=_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}})),cq=({header:e,description:t,sx:r,...n})=>v.jsxs($.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[v.jsx(BG,{sx:{width:220}}),v.jsxs("div",{children:[e||v.jsx($.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),t||v.jsxs($.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",v.jsx($.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),gb=({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,placeholderProps:d,placeholderAlt:h,...g})=>{const{getRootProps:m,getInputProps:y,isDragActive:x,isDragReject:b,fileRejections:T}=ml({multiple:t,disabled:e,...g}),P=!!i&&!t,w=a&&t&&a.length>0,E=b||!!r;return v.jsxs($.Box,{sx:{width:1,position:"relative",...f},children:[v.jsxs(lq,{...m(),sx:{...x&&{opacity:.72},...E&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...e&&{opacity:.48,pointerEvents:"none"}},children:[v.jsx("input",{...y()}),h?v.jsx($.Stack,{sx:{...P&&{opacity:0}},children:h}):v.jsx(cq,{sx:{...P&&{opacity:0}},header:d==null?void 0:d.title,description:d==null?void 0:d.description}),P&&v.jsx(sq,{file:i})]}),n&&n,v.jsx(pb,{fileRejections:T}),P&&o&&v.jsx($.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:O=>V(O.palette.common.white,.8),bgcolor:O=>V(O.palette.grey[900],.72),"&:hover":{bgcolor:O=>V(O.palette.grey[900],.48)}},children:v.jsx(It,{icon:"eva:close-fill",width:18})}),w&&v.jsxs(v.Fragment,{children:[v.jsx($.Box,{sx:{my:3},children:v.jsx(aq,{files:a,thumbnail:s,onRemove:l})}),v.jsxs($.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[u&&v.jsx($.Button,{color:"inherit",variant:"outlined",size:"small",onClick:u,children:"Remove all"}),c&&v.jsx($.Button,{size:"small",variant:"contained",onClick:c,children:"Upload files"})]})]})]})},uq=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return v.jsx(el,{alt:"avatar",src:t,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},fq=_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)}`})),dq=_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})})),hq=({error:e,file:t,disabled:r,helperText:n,sx:i,...o})=>{const{getRootProps:a,getInputProps:s,isDragActive:c,isDragReject:l,fileRejections:u}=ml({multiple:!1,disabled:r,...o}),f=!!t,d=l||!!e;return v.jsxs(v.Fragment,{children:[v.jsxs(fq,{...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:[v.jsx("input",{...s()}),f&&v.jsx(uq,{file:t}),v.jsxs(dq,{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:[v.jsx(It,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),v.jsx($.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),n&&n,v.jsx(pb,{fileRejections:u})]})},pq=_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}})),gq=({placeholderAlt:e,error:t,disabled:r,sx:n,...i})=>{const{getRootProps:o,getInputProps:a,isDragActive:s,isDragReject:c}=ml({disabled:r,...i}),l=c||t;return v.jsxs(pq,{...o(),sx:{...s&&{opacity:.72},...l&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[v.jsx("input",{...a()}),e||v.jsx(It,{icon:"eva:cloud-upload-fill",width:28})]})},mb=(e=!1)=>{const[t,r]=p.useState(e),n=p.useCallback(()=>r(i=>!i),[]);return[t,n,r]},vb=({onFileCropped:e,aspect:t,size:{width:r,height:n},label:i,image:o="",...a})=>{const[s,c]=mb(),[l,u]=p.useState(o),f=d=>{d||u(""),e(d)};return v.jsxs(v.Fragment,{children:[v.jsxs($.Stack,{position:"relative",width:1,children:[v.jsx(gb,{...a,onDrop:d=>{if(d.length>0){c(),e(void 0);const h=new FileReader;h.addEventListener("load",()=>{var m;const g=((m=h.result)==null?void 0:m.toString())||"";u(g)}),h.readAsDataURL(d[0])}}}),l&&v.jsx($.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:v.jsx($.IconButton,{color:"primary",onClick:c,children:v.jsx(It,{icon:"ic:round-crop"})})})]}),v.jsx(Ty,{open:s,onClose:c,title:i,image:{width:r,height:n,aspect:t,imgSrc:l},onFileCropped:f})]})};function mq(e,t){const{watch:r,setValue:n}=Dt.useFormContext(),[i,o]=p.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 vq=({name:e,rules:t,helperText:r,aspect:n,label:i,size:o,image:a,...s})=>{const{control:c}=Dt.useFormContext(),{uploadFile:l,file:u}=mq(e);return v.jsx(Dt.Controller,{name:e,control:c,rules:t,render:({fieldState:{error:f}})=>v.jsx(vb,{accept:{"image/*":[]},file:u,onFileCropped:l,error:!!f,disableMultiple:!0,helperText:(!!f||r)&&v.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})})},yq=()=>{const[e,t]=p.useState(!1),[r,n]=p.useState(document.activeElement);return p.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 bq=cu;function xq(e,t){return bq(e,t)}var wq=xq;const Cq=dn(wq),Tq=(e,t)=>Cq(e,t),Sq=e=>{const t=p.useRef();return Tq(e,t.current)||(t.current=e),t.current},Eq=(e,t)=>{p.useEffect(e,t.map(Sq))},Oq=()=>{const e=p.useRef(!0);return e.current?(e.current=!1,!0):e.current};function Pq(e){const[t,r]=p.useState(e||"");return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}const Mq=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 _q(e){return Af({},e)}var yb=1440,$q=2520,ad=43200,Aq=86400;function kq(e,t,r){var n,i;H(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:Ys;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=ki(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Af(_q(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,u;s>0?(l=U(t),u=U(e)):(l=U(e),u=U(t));var f=mv(u,l),d=(Di(u)-Di(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<yb){var m=Math.round(h/60);return a.formatDistance("aboutXHours",m,c)}else{if(h<$q)return a.formatDistance("xDays",1,c);if(h<ad){var y=Math.round(h/yb);return a.formatDistance("xDays",y,c)}else if(h<Aq)return g=Math.round(h/ad),a.formatDistance("aboutXMonths",g,c)}if(g=Sf(u,l),g<12){var x=Math.round(h/ad);return a.formatDistance("xMonths",x,c)}else{var b=g%12,T=Math.floor(g/12);return b<3?a.formatDistance("aboutXYears",T,c):b<9?a.formatDistance("overXYears",T,c):a.formatDistance("almostXYears",T+1,c)}}function Dq(e,t){return H(1,arguments),kq(e,Date.now(),t)}function jq(e){H(1,arguments);var t=U(e),r=t.getTime();return r}function Iq(e,t){const r=t||"dd/MM/yyyy";return e?_f(new Date(e),r):null}function Lq(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?_f(new Date(e),r):null}function Fq(e){return e?jq(new Date(e)):null}function Rq(e){return e?Dq(new Date(e),{addSuffix:!0}):null}const Nq=Object.freeze(Object.defineProperty({__proto__:null,fDate:Iq,fDateTime:Lq,fTimestamp:Fq,fToNow:Rq},Symbol.toStringTag,{value:"Module"}));function Bq(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const zq=Object.freeze(Object.defineProperty({__proto__:null,getRoot:Bq},Symbol.toStringTag,{value:"Module"})),Wq=e=>function(r){return v.jsx(p.Suspense,{fallback:v.jsx($.CircularProgress,{}),children:v.jsx(e,{...r})})},Vq=Object.freeze(Object.defineProperty({__proto__:null,default:Y5},Symbol.toStringTag,{value:"Module"}));z.ColorPickerField=$N,z.ColorPickerInput=fv,z.Common=yU,z.CustomAvatar=ry,z.CustomAvatarGroup=ny,z.DataGrid=wU,z.DatePicker=CU,z.DateRangePicker=TU,z.DateTimePicker=SU,z.Delayed=EU,z.DialogAnimate=G5,z.FabButtonAnimate=Fp,z.Field=oy,z.Form=OU,z.IconButtonAnimate=Rp,z.Iconify=It,z.Image=el,z.ImageCropModal=Ty,z.Label=Sy,z.MenuPopover=sY,z.MotionContainer=WC,z.MotionLazyContainer=HC,z.MotionViewport=zC,z.NavSectionHorizontal=AY,z.NavSectionMini=yY,z.NavSectionVertical=SY,z.PasswordField=kY,z.Portal=DY,z.Scrollbar=WY,z.TRANSITION=ld,z.TextAnimate=q5,z.ThemeProvider=ty,z.TimePicker=VY,z.Upload=gb,z.UploadAvatar=hq,z.UploadBox=gq,z.UploadWithCrop=vb,z.UploadWithCropField=vq,z.cssStyles=fY,z.file=Mq,z.formatNumber=oq,z.formatTime=Nq,z.loadable=Wq,z.routes=zq,z.useActiveElement=yq,z.useActiveLink=ll,z.useDeepCompareEffect=Eq,z.useIsMounting=Oq,z.useResponsive=z0,z.useTabs=Pq,z.useToggle=mb,z.varBgColor=kb,z.varBgKenburns=Db,z.varBgPan=jb,z.varBounce=_b,z.varContainer=ca,z.varFade=Zi,z.varFlip=Ob,z.varHover=Ab,z.varPath=Tb,z.varRotate=$b,z.varScale=Mb,z.varSlide=Pb,z.varTranEnter=Pe,z.varTranExit=Ae,z.varTranHover=Sb,z.varZoom=Eb,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});