@tmf_ciclica/ciclicastorybook 1.2.140 → 1.2.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,29 +1,29 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_mcunf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39{font-size:18px;font-weight:600;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53{font-size:18px;font-weight:600;flex:.5}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._buttonsContainer_mcunf_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._ambitListContainer_mcunf_76{flex:1;width:100%}._ambitSelector_mcunf_2 ._newAmbitButtonContainer_mcunf_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._ambitItem_1qa6u_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:10px;width:100%;padding-bottom:30px;padding-top:30px}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitName_1qa6u_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitDate_1qa6u_35{flex:.5}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38 button:disabled{opacity:.5;cursor:default}._generalButton_phq4n_2{padding:5px 95px;border-radius:100px}._generalButton_phq4n_2:disabled{opacity:.6}._buttonsContainer_1ks7x_2{display:flex;gap:8px}._buttonsContainer_1ks7x_2._vertical_1ks7x_6{flex-direction:column}._buttonsContainer_1ks7x_2._horizontal_1ks7x_9{flex-direction:row}._button_1ks7x_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1ks7x_2:hover{opacity:.8}._button_1ks7x_2._active_1ks7x_25{font-weight:700}._button_1ks7x_2 ._buttonName_1ks7x_28{margin:0 4px}._button_1ks7x_2:disabled{opacity:.5!important;cursor:auto}._left_1l4m4_2{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_1l4m4_2:before{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent transparent #ccc;z-index:-2}._left_1l4m4_2:after{content:"";position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent transparent #fff;z-index:-1}._top_1l4m4_40{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._top_1l4m4_40:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:#ccc transparent transparent transparent;z-index:-2}._top_1l4m4_40:after{content:"";position:absolute;top:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:#fff transparent transparent transparent;z-index:-1}._bottom_1l4m4_79{position:absolute;width:auto;top:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._bottom_1l4m4_79:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent #ccc transparent;z-index:-2}._bottom_1l4m4_79:after{content:"";position:absolute;bottom:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent #fff transparent;z-index:-1}._right_1l4m4_118{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:20px;margin:0;white-space:nowrap;color:#000;z-index:10}._right_1l4m4_118:before{content:"";position:absolute;top:50%;right:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent #ccc transparent transparent;z-index:-2}._right_1l4m4_118:after{content:"";position:absolute;top:50%;right:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent #fff transparent transparent;z-index:-1}._indicatorsCategory_11gdl_2{overflow:hidden;min-height:50px}._indicatorsCategory_11gdl_2 ._title_11gdl_6{align-items:center;gap:10px;cursor:pointer;display:grid;height:50px;grid-template-columns:12px auto}._indicatorsCategory_11gdl_2 ._title_11gdl_6._mainTitle_11gdl_14{border-bottom:1px solid;height:70px}._indicatorsCategory_11gdl_2 ._list_11gdl_18{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._AppliedFiltersContainer_cokx9_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start;flex-wrap:wrap}._AppliedFiltersContainer_cokx9_2 ._AppliedFilterContent_cokx9_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._GeographicalFilters_cn837_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start}._GeographicalFilters_cn837_2 ._AppliedFilterContent_cn837_10{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:20px;border-radius:100px}._layersList_cn837_25{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:column;align-items:flex-start}._layerName_cn837_34{padding-left:25px;cursor:pointer}._checkboxContainer_1nxra_2{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_1nxra_2 input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:1px;background-color:#fff;cursor:pointer}._container_4u41i_2,._container_4u41i_2 span{font-size:14px}._container_4u41i_2 ._unitLabel_4u41i_8{height:40px}._container_4u41i_2 ._slider_4u41i_11{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_4u41i_2 ._thumb_4u41i_17{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_4u41i_2 ._track_4u41i_26{top:0;bottom:0;background:#605b56;border-radius:3px}._container_4u41i_2 ._labels_4u41i_32{display:flex;justify-content:space-between;font-size:14px;margin-top:10px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 label,._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input{cursor:pointer;font-size:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;transition:background-color .2s ease;cursor:pointer;vertical-align:middle}._tematicalFiltersInputContainer_1vm1r_2 ._checkboxContainer_1vm1r_28{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px}._tematicalFiltersInputContainer_1vm1r_2 ._absoluteSliderContainer_1vm1r_37{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:flex-start}._FiltersAmbitContainer_1hv16_2{width:100%;height:100%;padding-left:24px;position:relative;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:start;gap:20px}._FiltersAmbitContainer_1hv16_2 ._FiltersContainer_1hv16_15{width:100%}._FiltersAmbitContainer_1hv16_2 ._FiltersAmbitHeader_1hv16_18{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_1hv16_2 ._FiltersAmbitHeader_1hv16_18 ._FiltersAmbitTitle_1hv16_26{font-size:18px;font-weight:600;border-bottom:1.5px solid #605b56;width:100%;height:70px;display:flex;align-items:center}._FiltersAmbitContainer_1hv16_2 ._FiltersAmbitHeader_1hv16_18 ._FiltersAmbitDescription_1hv16_35{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 0 26px;font-size:16px;font-weight:400}._FiltersAmbitContainer_1hv16_2 ._FiltersAmbitHeader_1hv16_18 ._FiltersAmbitDescription_1hv16_35 ._FiltersAmbitDescriptionTitle_1hv16_46{font-size:18px;font-weight:600}._FiltersAmbitContainer_1hv16_2 ._warning_1hv16_50{color:red}._FiltersAmbitContainer_1hv16_2 ._buttonContainer_1hv16_53{width:100%;margin-left:-24px;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:column;align-items:center;margin-bottom:20px;height:60px}._barChartContainer_1ly7h_2{position:relative;overflow-x:scroll;overflow-y:scroll;scrollbar-width:thin;scrollbar-color:var(--main-color) transparent}._barChartContainer_1ly7h_2::-webkit-scrollbar{height:6px}._barChartContainer_1ly7h_2::-webkit-scrollbar-track{background:transparent}._barChartContainer_1ly7h_2::-webkit-scrollbar-thumb{background-color:var(--main-color);border-radius:3px}._barChartContainer_1ly7h_2::-webkit-scrollbar{display:none}._graphicContainer_1ozwp_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;padding:33px 50px;border-radius:20px}._graphicContainer_1ozwp_2 ._titleContainer_1ozwp_13{display:flex;flex-wrap:nowrap;gap:0;flex-direction:row;align-items:center;justify-content:center;margin-bottom:83px}._indicatorsCategory_arwy3_2{overflow:hidden}._indicatorsCategory_arwy3_2 ._title_arwy3_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px;display:grid;grid-template-columns:12px auto}._indicatorsCategory_arwy3_2 ._list_arwy3_13{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_17b40_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_17b40_2 ._indicatorNameContainer_17b40_11{gap:8px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_17b40_2 ._dot_17b40_17{border-radius:100px;width:13px;height:13px;display:flex;align-items:center;justify-content:center}._indicatorContainer_17b40_2 ._indicatorName_17b40_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_17b40_31{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start}._switchExternalContainer_17b40_31 ._switchType_17b40_39{margin:0;width:100%}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:9px;cursor:pointer}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54 ._customRadious_17b40_64{width:13px;height:13px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54 ._optionText_17b40_71{font-weight:400}._indicatorsSubCategory_1nuug_2{overflow:hidden}._indicatorsSubCategory_1nuug_2 h3{text-align:left;display:grid;gap:10px;grid-template-columns:12px auto}._indicatorsSubCategory_1nuug_2 ._list_1nuug_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_13b3m_2{width:100%;padding-left:30px}._indicatorsList_13b3m_2 ._title_13b3m_6{border-bottom:1px solid;height:70px;display:flex;align-items:center;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_1l2pz_3{width:402px;background-color:#fdfdfd;color:#605b56;border:solid 1.5px #605b56;border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:flexStart;padding:20px;position:relative;overflow-y:scroll}@media (max-width: 500px){._legendContainer_1l2pz_3{width:250px}}._legendContainer_1l2pz_3 ._sectionContainer_1l2pz_24:not(:first-child){margin-top:30px;padding-top:20px;border-top:1px solid #e0e0e0}._legendContainer_1l2pz_3::-webkit-scrollbar{width:8px}._legendContainer_1l2pz_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_1l2pz_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_1l2pz_3 ._closeButton_1l2pz_43{position:absolute;right:20px;top:20px;width:24px;height:24px;border:none;background:transparent;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}._legendContainer_1l2pz_3 ._closeButton_1l2pz_43:before,._legendContainer_1l2pz_3 ._closeButton_1l2pz_43:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_1l2pz_3 ._closeButton_1l2pz_43:before{transform:rotate(45deg)}._legendContainer_1l2pz_3 ._closeButton_1l2pz_43:after{transform:rotate(-45deg)}._legendContainer_1l2pz_3 ._titleContainer_1l2pz_71{border-bottom:solid 1.5px #605b56}._legendContainer_1l2pz_3 ._titleContainer_1l2pz_71 h2{padding-bottom:16px}._legendContainer_1l2pz_3 ._infoContainer_1l2pz_77{padding-top:20px}._legendContainer_1l2pz_3 ._infoContainer_1l2pz_77 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_1l2pz_3 ._titleLegendList_1l2pz_88{padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._gridContainer_1l2pz_93{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._gridContainer_1l2pz_93 ._elementLegendContainer_1l2pz_99{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._gridContainer_1l2pz_93 ._elementLegendContainer_1l2pz_99 ._colorDot_1l2pz_105{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._absoluteValueContainer_1l2pz_111{position:relative}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._absoluteValueContainer_1l2pz_111 ._absoluteValueColor_1l2pz_114{height:130px;width:22px;border-radius:20px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._absoluteValueContainer_1l2pz_111 ._absoluteValueText_1l2pz_119{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._noDataContainer_1l2pz_131{position:relative;margin-top:10px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._noDataContainer_1l2pz_131 ._noData_1l2pz_131{height:22px;width:22px;border-radius:20px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._noDataContainer_1l2pz_131 ._absoluteValueText_1l2pz_119{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_1l2pz_3 ._moreInfoContainer_1l2pz_152{margin-top:30px;padding:8.5px 20px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;border:1.5px solid #605b56;border-radius:25px;font-size:16px;font-weight:600}._logo_1ewa6_2{padding:10px;height:100%}._logo_1ewa6_2 img{height:100%}._mapContainer_84pkf_2{width:100vw;height:100vh}._mapContainer_b0pyr_3{width:100vw;height:100vh;position:absolute;top:0;z-index:0}._FeaturePopUp_4sba4_2{padding:15px;color:#92898a}._FeaturePopUp_4sba4_2 p{margin-bottom:10px;font-weight:600}._FeaturePopUp_4sba4_2 ._title_4sba4_10{font-weight:400;margin-right:5px;color:#92898a}._sectionBar_yf2vy_2{height:70px;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid black;transition:width .3s ease}._leftContent_yf2vy_14{display:flex;align-items:center;gap:12px}._textContainer_yf2vy_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_yf2vy_27{font-size:16px;font-weight:600;color:#605b56}._subtitle_yf2vy_33{font-size:16px;color:#605b56}._rightContent_yf2vy_38{display:flex;align-items:center;gap:8px}._slider_1prh1_2{padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._slider_1prh1_2 ._playButton_1prh1_14,._slider_1prh1_2 ._playButton_1prh1_14._hover_1prh1_17{background-color:transparent!important}._slider_1prh1_2 ._playButton_1prh1_14 img{height:30px;width:30px}._sliderOpen_1prh1_25{right:490px}._sliderResults_1prh1_29{position:absolute;top:75px;right:430px;padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._sliderResults_1prh1_29 ._playButton_1prh1_14,._sliderResults_1prh1_29 ._playButton_1prh1_14._hover_1prh1_17{background-color:transparent!important}._sliderResults_1prh1_29 ._playButton_1prh1_14 img{height:30px;width:30px}._TopNavMenuContainer_12mp4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:fit-content;gap:80px;height:100%}._TopNavMenuContainer_12mp4_2 ._topNavOptions_12mp4_13{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center;border-bottom:5px solid transparent;border-top:5px solid transparent;height:100%}._TopNavMenuContainer_12mp4_2 ._active_12mp4_27{border-bottom:5px solid white}._LogInButton_1vxj5_2{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;padding-left:24px;min-height:100%;flex:1}._elementSelector_1ox68_2 ._header_1ox68_14{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;height:70px}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementName_1ox68_40{font-size:18px;font-weight:600;flex:1}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementName_1ox68_40 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementDate_1ox68_54{font-size:18px;font-weight:600;flex:.5}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementDate_1ox68_54 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1ox68_2 ._header_1ox68_14 ._buttonsContainer_1ox68_68{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2 ._elementListContainer_1ox68_77{flex:1;width:100%}._elementSelector_1ox68_2 ._newElementButtonContainer_1ox68_81{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px;padding-top:50px}._listElement_s4s4h_3{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:5px;width:100%;padding-bottom:30px;padding-top:30px;flex-wrap:wrap;padding-right:15px}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;gap:5px}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementNameContainer_s4s4h_30{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow-wrap:break-word;word-break:break-word}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementName_s4s4h_19{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementDate_s4s4h_47{flex:.5}._listElement_s4s4h_3 ._nameAndEye_s4s4h_50{display:grid!important;grid-template-columns:26px auto;gap:9px!important}._listElement_s4s4h_3 ._elementButtons_s4s4h_55{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_s4s4h_3 ._elementButtons_s4s4h_55 button:disabled{opacity:.5;cursor:default}._listElement_s4s4h_3 ._elementButtons_s4s4h_55 img{display:inline}._break_s4s4h_73{flex-basis:100%;height:0}._moreInfoContainer_s4s4h_78 ._moreInfo_s4s4h_78{display:flex;gap:5px;cursor:pointer}._formContainer_asv64_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start;flex-direction:column}._formContainer_asv64_2 ._categorySelectorContainer_asv64_11{margin-bottom:5px;width:100%}._formContainer_asv64_2 ._formObjectContainer_asv64_15{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:center;flex:1;width:100%;gap:80px}._formContainer_asv64_2 ._buttonContainer_asv64_26{width:100%;margin-top:30px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;gap:20px}._textInputContainer_1o3iy_2{width:100%}._textInputContainer_1o3iy_2 ._labelContainer_1o3iy_5{margin-bottom:25px}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8{background-color:#605b5620;padding:7px;border-radius:4px;position:relative}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 ._showPasswordButton_1o3iy_14{position:absolute;right:15px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 input{width:100%}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26{margin-top:10px;cursor:pointer}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26 button{text-decoration:underline}._errorMessage_1xiyb_2{min-height:25px}._inputsContainer_10t9s_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;gap:30px}._selectInputContainer_zzz6o_2{width:100%;position:relative}._selectInputContainer_zzz6o_2 ._labelContainer_zzz6o_6{margin-bottom:25px}._selectInputContainer_zzz6o_2 ._selectWrapper_zzz6o_9{display:flex;flex-direction:row;gap:15px;align-items:center}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15{position:relative}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._selectInput_zzz6o_2{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;padding:9px 40px 9px 9px;border:1.5px solid #605b56;border-radius:4px;cursor:pointer}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._selectInput_zzz6o_2 ._option_zzz6o_29{cursor:pointer}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._dropdownArrow_zzz6o_32{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}._radioButtonContainer_1e994_2{width:100%}._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%;flex-wrap:wrap;position:relative;gap:15px}@media (width < 768px){._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start}}._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;align-self:flex-start;position:relative}@media (width < 768px){._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{min-width:auto;max-width:215px}}._radioButtonContainer_1e994_2 ._errorContainer_1e994_44{position:absolute;top:-25px;left:0}._radioButtonContainer_1e994_2 ._iconPrivacy_1e994_49{height:100%;padding-right:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._radioButtonContainer_1e994_2 ._radioQuestion_1e994_59{width:100%;flex:1}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;gap:10px;position:relative;height:100%}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label{text-align:left}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label input{margin-right:5px}@media (width < 768px){._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;flex:1}}label,._radioInput_1e994_93{cursor:pointer}._rankingSliderContainer_1dvpb_2{display:grid;width:100%}._rankingSliderContainer_1dvpb_2 ._labelContainer_1dvpb_6{margin-bottom:25px;color:#605b56}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10{width:100%;position:relative;display:flex;gap:14px;align-items:center;flex-wrap:nowrap;justify-content:center;height:48px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._slider_1dvpb_20{height:3px;background:#efefef;border-radius:3px;position:relative;min-width:250px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._thumb_1dvpb_27{height:15px;width:15px;border-radius:50%;top:-100%;transform:translateY(-20%);outline:none}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 span{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:10px;height:20px;position:relative}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 span:before{content:"";background:#efefef;width:10px;height:10px;position:absolute;top:-14.5px;border-radius:50%}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 ._labelsText_1dvpb_64{color:#605b56}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._minLabel_1dvpb_67,._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._maxLabel_1dvpb_68{align-self:baseline;padding-top:10px;color:#605b56;font-size:12px;white-space:nowrap;margin-top:-7px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._minLabel_1dvpb_67{text-align:right}._textDescriptionContainer_163pc_2{margin:10px 0}._textDescriptionText_163pc_6{margin:0}._categorySelector_1guuv_2{min-height:50px;width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:10px;background-color:#efefef;border-radius:10px;padding:5px}._categorySelector_1guuv_2 ._sectionItemActive_1guuv_16{color:#fff}._categorySelector_1guuv_2 ._sectionItem_1guuv_16{border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;padding:5px;min-width:120px;height:100%;position:relative}._categorySelector_1guuv_2 ._sectionItemError_1guuv_32{border:1px solid #e74c3c}._categorySelector_1guuv_2 ._errorDot_1guuv_35{width:8px;height:8px;border-radius:50%;background-color:#e74c3c;display:inline-block;margin-right:6px}._overlay_mnd4j_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}._modal_mnd4j_15{background:#fff;border-radius:12px;position:relative;padding:24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 20px #0003;overflow:hidden;min-width:300px}._closeButton_mnd4j_29{position:absolute;top:3px;right:8px;background:transparent;border:none;font-size:20px;cursor:pointer}._icon_mnd4j_39{width:60px;height:60px;margin-bottom:16px}._message_mnd4j_45{font-size:18px;font-weight:700;margin-bottom:8px}._submessage_mnd4j_51{font-size:14px;color:#666;margin-bottom:20px}._buttonsContainer_mnd4j_57{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap}._buttonWrapper_mnd4j_64{display:inline-flex}._stepsContainer_1cyua_3{display:flex;flex-direction:column;position:relative}._stepWrapper_1cyua_9{display:flex;align-items:center;position:relative;margin-bottom:1.5rem}._stepWrapper_1cyua_9:last-child{margin-bottom:0}._circleContainer_1cyua_19{position:relative}._circle_1cyua_19{width:28px;height:28px;border-radius:50%;border:2px solid #ccc;background-color:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;z-index:1}._active_1cyua_39{color:#fff;border:none}._completed_1cyua_44{background-color:#ccc;color:#fff;border:none}._label_1cyua_50{margin-left:10px;font-size:14px;color:#aaa}._labelActive_1cyua_56{font-weight:700;color:#333}._connector_1cyua_61{position:absolute;left:50%;transform:translate(-50%);top:32px;width:1px;height:calc(100% - 10px);background-color:#ccc;z-index:0}._statusTextContainer_ch14r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:128px;height:31px;border-radius:200px}._statusTextContainer_ch14r_2 span{font-size:16px;color:#605b56}._buttonsContainer_1c7dw_2{padding:5px 7px;background-color:#efefef;border-radius:10px;display:flex;gap:8px}._buttonsContainer_1c7dw_2 ._button_1c7dw_2{border-radius:10px;display:flex;align-items:center;cursor:pointer;padding:4px;color:#605b56}._buttonsContainer_1c7dw_2 ._button_1c7dw_2:hover{opacity:.8}._buttonsContainer_1c7dw_2 ._button_1c7dw_2._active_1c7dw_20{background:#b32f5d;color:#efefef}._switchContainer_194wl_2{display:flex;align-items:center;gap:10px;font-size:12px;justify-content:center}._switchContainer_194wl_2 ._labelRight_194wl_9,._switchContainer_194wl_2 ._labelLeft_194wl_9{white-space:nowrap;color:#605b56}._switchContainer_194wl_2 ._labelLeft_194wl_9{text-align:right}._switch_194wl_2{position:relative;display:inline-block;width:44px;height:24px}._switch_194wl_2 input{opacity:0;width:0;height:0}._switch_194wl_2 ._slider_194wl_28{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#fff;border-radius:24px;transition:background-color .3s;border:2px solid #605b56}._switch_194wl_2 ._slider_194wl_28:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:2.5px;background-color:var(--switch-thumb-color, #ccc);border-radius:50%;transition:transform .3s,background-color .3s}._switch_194wl_2 input:checked+._slider_194wl_28:before{transform:translate(20px)}._switch_194wl_2._disabled_194wl_54{opacity:.5;pointer-events:none}._overlay_1xyw2_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999}._popup_1xyw2_15{background:#fff;padding:2rem;border-radius:12px;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 20px #0003}._gif_1xyw2_25{width:120px;height:auto;margin-bottom:1rem}._message_1xyw2_31{font-size:1.1rem;text-align:center}._container_1pl8d_3{position:relative;display:flex;align-intems:center}._burger_1pl8d_10{position:fixed;top:10px;right:25px;background:none;border:none;cursor:pointer;z-index:1000}._menu_1pl8d_21{position:fixed;top:0;right:0;width:250px;height:100vh;padding:1.5rem;box-shadow:-2px 0 8px #00000026;z-index:999;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1)}._menuOpen_1pl8d_35{transform:translate(0)}._menuClose_1pl8d_40{transform:translate(100%);pointer-events:none}._list_1pl8d_46{list-style:none;padding:0;margin-top:50px;display:flex;flex-direction:column;gap:1rem}._item_1pl8d_56{opacity:0;transform:translate(20px);transition:opacity .3s ease,transform .3s ease;font-size:16px!important}._menuOpen_1pl8d_35 ._item_1pl8d_56{opacity:1;transform:translate(0)}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(1){transition-delay:.05s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(2){transition-delay:.1s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(3){transition-delay:.15s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(4){transition-delay:.2s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(5){transition-delay:.25s}._button_1pl8d_91{background:none;border:none;color:inherit;font-size:18px;cursor:pointer;padding:0}._svgContainer_1rxoe_2{width:100%;box-sizing:border-box;position:relative}._svgContainer_1rxoe_2 ._svg_1rxoe_2{width:100%;height:100%;overflow:visible;display:block}@media (max-width: 768px){._svgContainer_1rxoe_2{padding:10px}}@media (max-width: 480px){._svgContainer_1rxoe_2{padding:5px}}.bar{transition:opacity .2s ease-in-out}.bar:hover{opacity:.8}.x-axis ._domain_1rxoe_31,.y-axis ._domain_1rxoe_31{stroke:#333;stroke-width:1px}.x-axis ._tick_1rxoe_36 line,.y-axis ._tick_1rxoe_36 line{stroke:#333;stroke-width:1px}.x-axis ._tick_1rxoe_36 text,.y-axis ._tick_1rxoe_36 text{fill:#605b56;font-family:Arial,sans-serif}._svgContainer_7fkic_2{width:100%;box-sizing:border-box;position:relative;overflow-x:auto}._svgContainer_7fkic_2 ._svg_7fkic_2{overflow:visible;display:block;max-width:none}@media (max-width: 768px){._svgContainer_7fkic_2{padding:10px}}@media (max-width: 480px){._svgContainer_7fkic_2{padding:5px}}.layer rect{transition:opacity .2s ease-in-out}.layer rect:hover{opacity:.8}.x-axis ._domain_7fkic_32,.y-axis ._domain_7fkic_32{stroke:#333;stroke-width:1px}.x-axis ._tick_7fkic_37 line,.y-axis ._tick_7fkic_37 line{stroke:#333;stroke-width:1px}.x-axis ._tick_7fkic_37 text,.y-axis ._tick_7fkic_37 text{fill:#605b56;font-family:Arial,sans-serif}.y-ticks ._tick_7fkic_37 line{stroke:#e0e0e0;stroke-width:.5px}.grid{opacity:.5}.chart-tooltip{font-family:Arial,sans-serif;box-shadow:0 2px 4px #0003}._externalContainer_1er0i_2{display:grid;grid-template-columns:170px auto;width:100%;padding:20px;grid-column-gap:5px}._externalContainer_1er0i_2._externalSintetic_1er0i_9{grid-template-columns:250px 80px 1fr;row-gap:20px}._externalContainer_1er0i_2 ._titles_1er0i_13{display:flex;flex-wrap:nowrap;justify-content:end;gap:0;flex-direction:column;align-items:end;padding-right:5px}._externalContainer_1er0i_2 ._titles_1er0i_13 ._titleContainer_1er0i_22{display:flex;flex-wrap:nowrap;justify-content:end;gap:0;flex-direction:row;align-items:center;gap:12px;font-size:12px;font-style:normal;font-weight:400;color:#605b56;height:54px}._externalContainer_1er0i_2 ._yearTitles_1er0i_36{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._externalContainer_1er0i_2 ._yearTitles_1er0i_36 ._yearTitle_1er0i_36{transform:rotate(-90deg);color:#605b56;font-size:13px;flex-shrink:0}._externalContainer_1er0i_2 ._yearDatas_1er0i_50{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:center}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58 ._yearDataContent_1er0i_66{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;border-bottom:1px solid #605b56;font-size:9px;color:#605b56;height:54px}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58 ._bigNumber_1er0i_79{font-size:8px}._externalContainer_1er0i_2 ._circle_1er0i_82{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:12px;height:12px;border-radius:50%;flex-shrink:0}._externalContainer_1er0i_2::-webkit-scrollbar{display:none}._totalContainer_1er0i_99{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:center;gap:7px;width:100%}._totalContainer_1er0i_99 ._total_1er0i_99{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;font-size:9px;font-weight:700;color:#605b56;height:54px;text-align:center}._totalTitle_1er0i_124{font-size:11px;color:#605b56;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._speedGraphic_d1k72_2{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-direction:column}._speedGraphic_d1k72_2 svg{width:100%;height:auto;max-width:244px}._percentageBarContainer_lgkme_3{width:100%;font-family:Arial,sans-serif;-webkit-user-select:none;user-select:none}._barContainer_lgkme_10{display:flex;width:100%;height:20px;border-radius:4px;overflow:visible;position:relative}._segment_lgkme_19{height:100%;position:relative;transition:width .05s linear;box-sizing:border-box}._segment_lgkme_19:first-child{border-radius:4px 0 0 4px}._segment_lgkme_19:last-child{border-radius:0 4px 4px 0}._segment_lgkme_19:only-child{border-radius:4px}._handle_lgkme_36{position:absolute;width:14px;height:28px;top:50%;left:0;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #888;border-radius:4px;cursor:ew-resize;z-index:10;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #00000040;touch-action:none}._handle_lgkme_36:before{content:"";width:2px;height:10px;border-left:1px solid #bbb;border-right:1px solid #bbb}._handle_lgkme_36:hover,._handle_lgkme_36:active{border-color:#444;background-color:#f5f5f5}._labelsContainer_lgkme_68{display:flex;width:100%;margin-top:8px}._labelsContainer_lgkme_68 ._labelItem_lgkme_73{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:4px 2px;box-sizing:border-box;font-size:12px;overflow:hidden;min-width:0}._labelsListContainer_lgkme_85{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:18px}._labelsListContainer_lgkme_85 ._labelItem_lgkme_73{display:flex;flex-direction:row;gap:6px;align-items:center;justify-content:flex-start;padding:4px 2px;box-sizing:border-box;font-size:12px;overflow:hidden;min-width:0}._labelColor_lgkme_105{display:inline-block;width:10px;height:10px;border-radius:2px;margin-bottom:2px;flex-shrink:0}._labelText_lgkme_114{font-weight:600;margin-bottom:2px;text-align:center;word-break:break-word;line-height:1.2}._labelValue_lgkme_122{margin-bottom:2px}._labelTranslation_lgkme_126{color:#fff;font-size:11px;font-style:italic}._header_13kbt_2{width:100%;display:flex;align-items:center;position:absolute;top:0;left:0;padding:0 16px;background-color:#fff;border-bottom:1px solid black}._header_13kbt_2 ._leftComponents_13kbt_13,._header_13kbt_2 ._centerComponents_13kbt_14,._header_13kbt_2 ._rightComponents_13kbt_15{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_13kbt_2 ._leftComponents_13kbt_13{left:16px}._header_13kbt_2 ._centerComponents_13kbt_14{left:50%;transform:translate(-50%)}._header_13kbt_2 ._rightComponents_13kbt_15{right:16px}._header_13kbt_2 ._componentsContainer_13kbt_32{height:100%;width:100%}._sidebar_1kaqu_2{position:absolute;top:0;right:0;height:100%;background-color:#fff;box-shadow:-2px 0 5px #0000001a;overflow-x:hidden;overflow-y:auto;transition:width .3s ease;z-index:1000;width:0}._open_1kaqu_16{border-left:1px solid #ddd}._content_1kaqu_20{position:relative;height:100%}._closeButton_1kaqu_25{position:absolute;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease;z-index:10}._closeButton_1kaqu_25:hover{color:#000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- "use strict";var ta=Object.create;var to=Object.defineProperty;var na=Object.getOwnPropertyDescriptor;var ra=Object.getOwnPropertyNames;var oa=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty;var ia=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ra(t))!sa.call(e,o)&&o!==n&&to(e,o,{get:()=>t[o],enumerable:!(r=na(t,o))||r.enumerable});return e};var aa=(e,t,n)=>(n=e!=null?ta(oa(e)):{},ia(t||!e||!e.__esModule?to(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),w=require("react"),oe=require("react-i18next"),Ir=require("framer-motion"),Ss=require("zustand"),ce=require("d3"),la=require("mapbox-gl"),ca=require("react-redux"),Ts=require("react-dom"),or=require("maplibre-gl"),ua=require("pmtiles"),da=require("@reduxjs/toolkit"),no=require("@mui/material"),fa=require("@emotion/react"),pa=require("@emotion/styled"),ks=require("react-router-dom");function js(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=js(w),sr=js(ce),ma="_ambitSelector_mcunf_2",ha="_header_mcunf_13",ga="_nameDateContainer_mcunf_23",ya="_ambitName_mcunf_39",ba="_ambitDate_mcunf_53",va="_buttonsContainer_mcunf_67",xa="_ambitListContainer_mcunf_76",Ca="_newAmbitButtonContainer_mcunf_80",lt={ambitSelector:ma,header:ha,nameDateContainer:ga,ambitName:ya,ambitDate:ba,buttonsContainer:va,ambitListContainer:xa,newAmbitButtonContainer:Ca},_a="_ambitItem_1qa6u_2",wa="_ambitNameDate_1qa6u_16",Sa="_ambitName_1qa6u_16",Ta="_ambitDate_1qa6u_35",ka="_ambitButtons_1qa6u_38",Kt={ambitItem:_a,ambitNameDate:wa,ambitName:Sa,ambitDate:Ta,ambitButtons:ka},ja="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",$a="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ea="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",Na="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Oa="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e",Aa="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e";function La(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hn={exports:{}},gn={exports:{}},ue={};/** @license React v16.13.1
2
+ "use strict";var na=Object.create;var no=Object.defineProperty;var ra=Object.getOwnPropertyDescriptor;var oa=Object.getOwnPropertyNames;var sa=Object.getPrototypeOf,ia=Object.prototype.hasOwnProperty;var aa=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of oa(t))!ia.call(e,o)&&o!==n&&no(e,o,{get:()=>t[o],enumerable:!(r=ra(t,o))||r.enumerable});return e};var la=(e,t,n)=>(n=e!=null?na(sa(e)):{},aa(t||!e||!e.__esModule?no(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),w=require("react"),oe=require("react-i18next"),Pr=require("framer-motion"),Ts=require("zustand"),ce=require("d3"),ca=require("mapbox-gl"),ua=require("react-redux"),ks=require("react-dom"),or=require("maplibre-gl"),da=require("pmtiles"),fa=require("@reduxjs/toolkit"),ro=require("@mui/material"),pa=require("@emotion/react"),ma=require("@emotion/styled"),js=require("react-router-dom");function $s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=$s(w),sr=$s(ce),ha="_ambitSelector_mcunf_2",ga="_header_mcunf_13",ya="_nameDateContainer_mcunf_23",ba="_ambitName_mcunf_39",va="_ambitDate_mcunf_53",xa="_buttonsContainer_mcunf_67",Ca="_ambitListContainer_mcunf_76",_a="_newAmbitButtonContainer_mcunf_80",lt={ambitSelector:ha,header:ga,nameDateContainer:ya,ambitName:ba,ambitDate:va,buttonsContainer:xa,ambitListContainer:Ca,newAmbitButtonContainer:_a},wa="_ambitItem_1qa6u_2",Sa="_ambitNameDate_1qa6u_16",Ta="_ambitName_1qa6u_16",ka="_ambitDate_1qa6u_35",ja="_ambitButtons_1qa6u_38",Kt={ambitItem:wa,ambitNameDate:Sa,ambitName:Ta,ambitDate:ka,ambitButtons:ja},$a="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",Ea="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Na="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",Oa="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Aa="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e",La="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e";function Ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hn={exports:{}},gn={exports:{}},ue={};/** @license React v16.13.1
3
3
  * react-is.production.min.js
4
4
  *
5
5
  * Copyright (c) Facebook, Inc. and its affiliates.
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 ro;function Ma(){if(ro)return ue;ro=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(C){if(typeof C=="object"&&C!==null){var S=C.$$typeof;switch(S){case t:switch(C=C.type,C){case u:case d:case r:case i:case o:case g:return C;default:switch(C=C&&C.$$typeof,C){case c:case h:case b:case p:case a:return C;default:return S}}case n:return S}}}function v(C){return j(C)===d}return ue.AsyncMode=u,ue.ConcurrentMode=d,ue.ContextConsumer=c,ue.ContextProvider=a,ue.Element=t,ue.ForwardRef=h,ue.Fragment=r,ue.Lazy=b,ue.Memo=p,ue.Portal=n,ue.Profiler=i,ue.StrictMode=o,ue.Suspense=g,ue.isAsyncMode=function(C){return v(C)||j(C)===u},ue.isConcurrentMode=v,ue.isContextConsumer=function(C){return j(C)===c},ue.isContextProvider=function(C){return j(C)===a},ue.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ue.isForwardRef=function(C){return j(C)===h},ue.isFragment=function(C){return j(C)===r},ue.isLazy=function(C){return j(C)===b},ue.isMemo=function(C){return j(C)===p},ue.isPortal=function(C){return j(C)===n},ue.isProfiler=function(C){return j(C)===i},ue.isStrictMode=function(C){return j(C)===o},ue.isSuspense=function(C){return j(C)===g},ue.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===i||C===o||C===g||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===p||C.$$typeof===a||C.$$typeof===c||C.$$typeof===h||C.$$typeof===x||C.$$typeof===_||C.$$typeof===T||C.$$typeof===f)},ue.typeOf=j,ue}var de={};/** @license React v16.13.1
9
+ */var oo;function Ra(){if(oo)return ue;oo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(C){if(typeof C=="object"&&C!==null){var S=C.$$typeof;switch(S){case t:switch(C=C.type,C){case u:case d:case r:case i:case o:case g:return C;default:switch(C=C&&C.$$typeof,C){case c:case h:case b:case m:case a:return C;default:return S}}case n:return S}}}function v(C){return j(C)===d}return ue.AsyncMode=u,ue.ConcurrentMode=d,ue.ContextConsumer=c,ue.ContextProvider=a,ue.Element=t,ue.ForwardRef=h,ue.Fragment=r,ue.Lazy=b,ue.Memo=m,ue.Portal=n,ue.Profiler=i,ue.StrictMode=o,ue.Suspense=g,ue.isAsyncMode=function(C){return v(C)||j(C)===u},ue.isConcurrentMode=v,ue.isContextConsumer=function(C){return j(C)===c},ue.isContextProvider=function(C){return j(C)===a},ue.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ue.isForwardRef=function(C){return j(C)===h},ue.isFragment=function(C){return j(C)===r},ue.isLazy=function(C){return j(C)===b},ue.isMemo=function(C){return j(C)===m},ue.isPortal=function(C){return j(C)===n},ue.isProfiler=function(C){return j(C)===i},ue.isStrictMode=function(C){return j(C)===o},ue.isSuspense=function(C){return j(C)===g},ue.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===i||C===o||C===g||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===m||C.$$typeof===a||C.$$typeof===c||C.$$typeof===h||C.$$typeof===x||C.$$typeof===_||C.$$typeof===T||C.$$typeof===f)},ue.typeOf=j,ue}var de={};/** @license React v16.13.1
10
10
  * react-is.development.js
11
11
  *
12
12
  * Copyright (c) Facebook, Inc. and its affiliates.
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */var oo;function Ra(){return oo||(oo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(D){return typeof D=="string"||typeof D=="function"||D===r||D===d||D===i||D===o||D===g||D===y||typeof D=="object"&&D!==null&&(D.$$typeof===b||D.$$typeof===p||D.$$typeof===a||D.$$typeof===c||D.$$typeof===h||D.$$typeof===x||D.$$typeof===_||D.$$typeof===T||D.$$typeof===f)}function v(D){if(typeof D=="object"&&D!==null){var se=D.$$typeof;switch(se){case t:var Le=D.type;switch(Le){case u:case d:case r:case i:case o:case g:return Le;default:var Xe=Le&&Le.$$typeof;switch(Xe){case c:case h:case b:case p:case a:return Xe;default:return se}}case n:return se}}}var C=u,S=d,$=c,A=a,E=t,B=h,I=r,m=b,N=p,k=n,V=i,z=o,Y=g,W=!1;function ae(D){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(D)||v(D)===u}function R(D){return v(D)===d}function L(D){return v(D)===c}function J(D){return v(D)===a}function K(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function P(D){return v(D)===h}function Z(D){return v(D)===r}function te(D){return v(D)===b}function G(D){return v(D)===p}function U(D){return v(D)===n}function re(D){return v(D)===i}function ee(D){return v(D)===o}function le(D){return v(D)===g}de.AsyncMode=C,de.ConcurrentMode=S,de.ContextConsumer=$,de.ContextProvider=A,de.Element=E,de.ForwardRef=B,de.Fragment=I,de.Lazy=m,de.Memo=N,de.Portal=k,de.Profiler=V,de.StrictMode=z,de.Suspense=Y,de.isAsyncMode=ae,de.isConcurrentMode=R,de.isContextConsumer=L,de.isContextProvider=J,de.isElement=K,de.isForwardRef=P,de.isFragment=Z,de.isLazy=te,de.isMemo=G,de.isPortal=U,de.isProfiler=re,de.isStrictMode=ee,de.isSuspense=le,de.isValidElementType=j,de.typeOf=v}()),de}var so;function $s(){return so||(so=1,process.env.NODE_ENV==="production"?gn.exports=Ma():gn.exports=Ra()),gn.exports}/*
16
+ */var so;function Da(){return so||(so=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(I){return typeof I=="string"||typeof I=="function"||I===r||I===d||I===i||I===o||I===g||I===y||typeof I=="object"&&I!==null&&(I.$$typeof===b||I.$$typeof===m||I.$$typeof===a||I.$$typeof===c||I.$$typeof===h||I.$$typeof===x||I.$$typeof===_||I.$$typeof===T||I.$$typeof===f)}function v(I){if(typeof I=="object"&&I!==null){var se=I.$$typeof;switch(se){case t:var Le=I.type;switch(Le){case u:case d:case r:case i:case o:case g:return Le;default:var Xe=Le&&Le.$$typeof;switch(Xe){case c:case h:case b:case m:case a:return Xe;default:return se}}case n:return se}}}var C=u,S=d,$=c,A=a,E=t,B=h,D=r,p=b,N=m,k=n,F=i,z=o,Y=g,W=!1;function ae(I){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(I)||v(I)===u}function R(I){return v(I)===d}function L(I){return v(I)===c}function J(I){return v(I)===a}function K(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function P(I){return v(I)===h}function Z(I){return v(I)===r}function te(I){return v(I)===b}function G(I){return v(I)===m}function U(I){return v(I)===n}function re(I){return v(I)===i}function ee(I){return v(I)===o}function le(I){return v(I)===g}de.AsyncMode=C,de.ConcurrentMode=S,de.ContextConsumer=$,de.ContextProvider=A,de.Element=E,de.ForwardRef=B,de.Fragment=D,de.Lazy=p,de.Memo=N,de.Portal=k,de.Profiler=F,de.StrictMode=z,de.Suspense=Y,de.isAsyncMode=ae,de.isConcurrentMode=R,de.isContextConsumer=L,de.isContextProvider=J,de.isElement=K,de.isForwardRef=P,de.isFragment=Z,de.isLazy=te,de.isMemo=G,de.isPortal=U,de.isProfiler=re,de.isStrictMode=ee,de.isSuspense=le,de.isValidElementType=j,de.typeOf=v}()),de}var io;function Es(){return io||(io=1,process.env.NODE_ENV==="production"?gn.exports=Ra():gn.exports=Da()),gn.exports}/*
17
17
  object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
- */var ir,io;function Da(){if(io)return ir;io=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ir=o()?Object.assign:function(i,a){for(var c,u=r(i),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var g in c)t.call(c,g)&&(u[g]=c[g]);if(e){d=e(c);for(var y=0;y<d.length;y++)n.call(c,d[y])&&(u[d[y]]=c[d[y]])}}return u},ir}var ar,ao;function Pr(){if(ao)return ar;ao=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ar=e,ar}var lr,lo;function Es(){return lo||(lo=1,lr=Function.call.bind(Object.prototype.hasOwnProperty)),lr}var cr,co;function Ia(){if(co)return cr;co=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Pr(),n={},r=Es();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in i)if(r(i,h)){var g;try{if(typeof i[h]!="function"){var y=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}g=i[h](a,h,u,c,null,t)}catch(b){g=b}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var p=d?d():"";e("Failed "+c+" type: "+g.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},cr=o,cr}var ur,uo;function Pa(){if(uo)return ur;uo=1;var e=$s(),t=Da(),n=Pr(),r=Es(),o=Ia(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return ur=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(R){var L=R&&(d&&R[d]||R[h]);if(typeof L=="function")return L}var y="<<anonymous>>",p={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:T(),arrayOf:j,element:v(),elementType:C(),instanceOf:S,node:B(),objectOf:A,oneOf:$,oneOfType:E,shape:m,exact:N};function b(R,L){return R===L?R!==0||1/R===1/L:R!==R&&L!==L}function f(R,L){this.message=R,this.data=L&&typeof L=="object"?L:{},this.stack=""}f.prototype=Error.prototype;function x(R){if(process.env.NODE_ENV!=="production")var L={},J=0;function K(Z,te,G,U,re,ee,le){if(U=U||y,ee=ee||G,le!==n){if(u){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=U+":"+G;!L[se]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+U+"`. 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[se]=!0,J++)}}return te[G]==null?Z?te[G]===null?new f("The "+re+" `"+ee+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new f("The "+re+" `"+ee+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:R(te,G,U,re,ee)}var P=K.bind(null,!1);return P.isRequired=K.bind(null,!0),P}function _(R){function L(J,K,P,Z,te,G){var U=J[K],re=z(U);if(re!==R){var ee=Y(U);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+ee+"` supplied to `"+P+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return x(L)}function T(){return x(a)}function j(R){function L(J,K,P,Z,te){if(typeof R!="function")return new f("Property `"+te+"` of component `"+P+"` has invalid PropType notation inside arrayOf.");var G=J[K];if(!Array.isArray(G)){var U=z(G);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+P+"`, expected an array."))}for(var re=0;re<G.length;re++){var ee=R(G,re,P,Z,te+"["+re+"]",n);if(ee instanceof Error)return ee}return null}return x(L)}function v(){function R(L,J,K,P,Z){var te=L[J];if(!c(te)){var G=z(te);return new f("Invalid "+P+" `"+Z+"` of type "+("`"+G+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return x(R)}function C(){function R(L,J,K,P,Z){var te=L[J];if(!e.isValidElementType(te)){var G=z(te);return new f("Invalid "+P+" `"+Z+"` of type "+("`"+G+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return x(R)}function S(R){function L(J,K,P,Z,te){if(!(J[K]instanceof R)){var G=R.name||y,U=ae(J[K]);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+P+"`, expected ")+("instance of `"+G+"`."))}return null}return x(L)}function $(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function L(J,K,P,Z,te){for(var G=J[K],U=0;U<R.length;U++)if(b(G,R[U]))return null;var re=JSON.stringify(R,function(le,D){var se=Y(D);return se==="symbol"?String(D):D});return new f("Invalid "+Z+" `"+te+"` of value `"+String(G)+"` "+("supplied to `"+P+"`, expected one of "+re+"."))}return x(L)}function A(R){function L(J,K,P,Z,te){if(typeof R!="function")return new f("Property `"+te+"` of component `"+P+"` has invalid PropType notation inside objectOf.");var G=J[K],U=z(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+P+"`, expected an object."));for(var re in G)if(r(G,re)){var ee=R(G,re,P,Z,te+"."+re,n);if(ee instanceof Error)return ee}return null}return x(L)}function E(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var L=0;L<R.length;L++){var J=R[L];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(J)+" at index "+L+"."),a}function K(P,Z,te,G,U){for(var re=[],ee=0;ee<R.length;ee++){var le=R[ee],D=le(P,Z,te,G,U,n);if(D==null)return null;D.data&&r(D.data,"expectedType")&&re.push(D.data.expectedType)}var se=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new f("Invalid "+G+" `"+U+"` supplied to "+("`"+te+"`"+se+"."))}return x(K)}function B(){function R(L,J,K,P,Z){return k(L[J])?null:new f("Invalid "+P+" `"+Z+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return x(R)}function I(R,L,J,K,P){return new f((R||"React class")+": "+L+" type `"+J+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+P+"`.")}function m(R){function L(J,K,P,Z,te){var G=J[K],U=z(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type `"+U+"` "+("supplied to `"+P+"`, expected `object`."));for(var re in R){var ee=R[re];if(typeof ee!="function")return I(P,Z,te,re,Y(ee));var le=ee(G,re,P,Z,te+"."+re,n);if(le)return le}return null}return x(L)}function N(R){function L(J,K,P,Z,te){var G=J[K],U=z(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type `"+U+"` "+("supplied to `"+P+"`, expected `object`."));var re=t({},J[K],R);for(var ee in re){var le=R[ee];if(r(R,ee)&&typeof le!="function")return I(P,Z,te,ee,Y(le));if(!le)return new f("Invalid "+Z+" `"+te+"` key `"+ee+"` supplied to `"+P+"`.\nBad object: "+JSON.stringify(J[K],null," ")+`
21
- Valid keys: `+JSON.stringify(Object.keys(R),null," "));var D=le(G,ee,P,Z,te+"."+ee,n);if(D)return D}return null}return x(L)}function k(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(k);if(R===null||c(R))return!0;var L=g(R);if(L){var J=L.call(R),K;if(L!==R.entries){for(;!(K=J.next()).done;)if(!k(K.value))return!1}else for(;!(K=J.next()).done;){var P=K.value;if(P&&!k(P[1]))return!1}}else return!1;return!0;default:return!1}}function V(R,L){return R==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function z(R){var L=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":V(L,R)?"symbol":L}function Y(R){if(typeof R>"u"||R===null)return""+R;var L=z(R);if(L==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return L}function W(R){var L=Y(R);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function ae(R){return!R.constructor||!R.constructor.name?y:R.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},ur}var dr,fo;function Ba(){if(fo)return dr;fo=1;var e=Pr();function t(){}function n(){}return n.resetWarningCache=t,dr=function(){function r(a,c,u,d,h,g){if(g!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},dr}var po;function Fa(){if(po)return hn.exports;if(po=1,process.env.NODE_ENV!=="production"){var e=$s(),t=!0;hn.exports=Pa()(e.isElement,t)}else hn.exports=Ba()();return hn.exports}var Va=Fa();const s=La(Va),Ns=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isActive:i,activeColor:a,fontColor:c,moreInfo:u})=>{const{name:d,created_at:h,id:g,isBeingProcessed:y}=e;return l.jsxs("div",{className:Kt.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[l.jsxs("div",{className:Kt.ambitNameDate,onClick:()=>o(g),children:[l.jsxs("div",{className:Kt.ambitName,children:[l.jsx("img",{style:{marginRight:9},src:i?Oa:Aa}),l.jsx("span",{style:{color:i?a:c},children:d})]}),l.jsx("div",{className:Kt.ambitDate,children:h?new Date(h).toLocaleDateString():""})]}),l.jsxs("div",{className:Kt.ambitButtons,children:[y&&l.jsx("img",{src:Na}),l.jsx("button",{onClick:()=>r(g),disabled:e.is_default,children:l.jsx("img",{src:Ea})}),l.jsx("button",{onClick:()=>t(g),children:l.jsx("img",{src:$a})}),l.jsx("button",{onClick:()=>n(g),disabled:e.is_default,children:l.jsx("img",{src:ja})})]})]})};Ns.propTypes={ambit:s.shape({name:s.string.isRequired,created_at:s.string,id:s.string.isRequired,isBeingProcessed:s.bool}).isRequired,onClickCopy:s.func.isRequired,onClickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,isBeingProcessed:s.bool,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.object};const mo="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",za="_generalButton_phq4n_2",qa={generalButton:za},ln=({children:e,onClick:t,fontColor:n="#605B56",borderColor:r="#605B56",backgroundColor:o="#fff",type:i="button",containerStyles:a={},disabled:c=!1})=>l.jsx("button",{className:qa.generalButton,style:{color:n,border:`1.5px solid ${r}`,background:o,...a},onClick:t,type:i,disabled:c,children:e}),Os=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,newAmbitLabel:a="New field",buttonContainerStyles:c={},containerStyles:u={},onCLickNewAmbit:d=()=>console.log("New ambit clicked"),onClickCopy:h=b=>console.log(`Copy ambit: ${b}`),onCLickDelete:g=b=>console.log(`Delete ambit: ${b}`),onClickFilters:y=b=>console.log(`Filters clicked: ${b}`),onClickAmbit:p=b=>console.log(`OnCLickAmbit: ${b}`)})=>{const{t:b}=oe.useTranslation(),[f,x]=w.useState(e);w.useEffect(()=>{e&&x(e)},[e]);const _=T=>{if(f&&f.length>0){let j=[...f];j.sort((v,C)=>v[T].localeCompare(C[T])),x(j)}};return l.jsxs("div",{className:lt.ambitSelector,style:{color:n,...u},children:[l.jsxs("div",{className:lt.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsxs("div",{className:lt.nameDateContainer,children:[l.jsx("div",{className:lt.ambitName,children:l.jsxs("button",{onClick:()=>_("name"),children:[l.jsx("span",{children:b(o)}),l.jsx("img",{src:mo})]})}),l.jsx("div",{className:lt.ambitDate,children:l.jsxs("button",{onClick:()=>_("date"),children:[l.jsx("span",{children:b(i)}),l.jsx("img",{src:mo})]})})]}),l.jsx("div",{className:lt.buttonsContainer})]}),l.jsx("div",{className:lt.ambitListContainer,children:f&&f.length>0&&f.map(T=>l.jsx(Ns,{isActive:t==T.id,ambit:T,fontColor:n,activeColor:r,onClickCopy:h,onClickDelete:g,onClickFilters:y,onClickAmbit:p},`ambitKey${T.id}`))}),l.jsx("div",{className:lt.newAmbitButtonContainer,children:l.jsx(ln,{style:{...c},onClick:d,borderColor:"grey",children:b(a)})})]})};Os.propTypes={ambitList:s.arrayOf(s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired})).isRequired,activeAmbitId:s.string,fontColor:s.string,activeColor:s.string,onClickCopy:s.func.isRequired,onCLickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,nameLabel:s.string,dateLabel:s.string,newAmbitLabel:s.string,buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewAmbit:s.func};const Wa="_buttonsContainer_1ks7x_2",Ua="_vertical_1ks7x_6",Za="_horizontal_1ks7x_9",Ha="_button_1ks7x_2",Ka="_active_1ks7x_25",Ga="_buttonName_1ks7x_28",yt={buttonsContainer:Wa,vertical:Ua,horizontal:Za,button:Ha,active:Ka,buttonName:Ga},Ya="_left_1l4m4_2",Xa="_top_1l4m4_40",Qa="_bottom_1l4m4_79",Ja="_right_1l4m4_118",el={left:Ya,top:Xa,bottom:Qa,right:Ja},et=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=oe.useTranslation();return l.jsx("div",{className:`tooltip ${el[t]}`,style:n,children:r(e)})};et.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const As=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=oe.useTranslation();return l.jsx("div",{className:`${yt.buttonsContainer} ${t==="vertical"&&yt.vertical}
22
- ${t==="horizontal"&&yt.horizontal}`,children:e.map((c,u)=>{const{icon:d,activeIcon:h,isActive:g,name:y,onClick:p,disabled:b}=c,f=l.jsxs(l.Fragment,{children:[n&&r==="left"&&l.jsx("span",{className:yt.buttonName,children:a(y)}),l.jsx("img",{src:g?h:d,alt:a(y)}),n&&r==="right"&&l.jsx("span",{className:yt.buttonName,children:a(y)})]});return l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:p,className:`${yt.button}
23
- ${g&&yt.active}`,disabled:b,children:f}),o&&l.jsx(et,{text:y,position:i})]},u)})})};As.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func,disabled:s.bool})).isRequired,orientation:s.oneOf(["horizontal","vertical"]),showName:s.bool,namePosition:s.oneOf(["left","right"]),useTooltip:s.bool,tooltipPosition:s.oneOf(["top","bottom","left","right"])};const tl="_indicatorsCategory_11gdl_2",nl="_title_11gdl_6",rl="_mainTitle_11gdl_14",yn={indicatorsCategory:tl,title:nl,mainTitle:rl},ht=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:c,showBottomBar:u=!0,titleMarginChildren:d=15,mainTitle:h=!1})=>{const{t:g}=oe.useTranslation();return l.jsxs(Ir.motion.div,{className:yn.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&u?`1px solid ${o}`:"0px",minHeight:h?"70px":"50px"},children:[l.jsxs("h2",{style:{...c},className:`${yn.title} ${h&&yn.mainTitle}`,onClick:t,children:[l.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),l.jsx("span",{style:{color:e?o:r},children:g(i)})]}),l.jsx("div",{className:yn.content,style:{padding:h?"20px 0px":"0px"},children:n})]})};ht.propTypes={isOpen:s.bool,onClick:s.func,children:s.node,color:s.string,activeColor:s.string,title:s.string,height:s.number,showBottomBar:s.bool,titleFontStyles:s.object};const ol=()=>l.jsx("div",{children:"EditAmbit"}),sl="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",il="_AppliedFiltersContainer_cokx9_2",al="_AppliedFilterContent_cokx9_11",ho={AppliedFiltersContainer:il,AppliedFilterContent:al},ye=Ss.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null})),Ls=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:i,fontColor:a="#605B56"})=>{const{t:c}=oe.useTranslation(),{tematicalFiltersSelected:u,activeFiltersType:d}=ye(y=>y),h=y=>{ye.setState(p=>({tematicalFiltersSelected:p.tematicalFiltersSelected.filter(b=>b.code!==y)}))},g=()=>{d=="applied"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"applied"}))};return l.jsx(ht,{isOpen:n,onClick:g,title:e?c(e):"Applied Filters",activeColor:i,mainTitle:!0,color:a,children:l.jsx("div",{className:ho.AppliedFiltersContainer,children:u==null?void 0:u.map((y,p)=>l.jsxs("div",{className:ho.AppliedFilterContent,style:{color:r,background:o},children:[c(y.name),l.jsx("img",{src:sl,alt:"CloseIcon",onClick:()=>h(y.code),style:{cursor:"pointer"}})]},p))})})};Ls.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,indicators:s.arrayOf(s.shape({title:s.string.isRequired,Codename:s.string.isRequired})),activeColor:s.string};const ll="_layersList_cn837_25",cl="_layerName_cn837_34",go={layersList:ll,layerName:cl},Ms=({title:e,isOpen:t=!0,fontColor:n="#605B56",backgroundColor:r="#605B5680",activeColor:o,geoLayers:i=[],onGeoLayersChange:a})=>{const{t:c}=oe.useTranslation(),{activeFiltersType:u}=ye(g=>g),d=()=>{u==="geographical"?ye.setState({activeFiltersType:null}):ye.setState({activeFiltersType:"geographical"})},h=g=>{const y=i.map(p=>({...p,active:p.name===g.name}));a==null||a(y)};return l.jsx(ht,{isOpen:u==="geographical",onClick:d,title:e?c(e):"Geographical Filters",activeColor:o,color:n,mainTitle:!0,children:l.jsx("div",{className:go.layersList,children:i.map(g=>l.jsx("div",{className:go.layerName,style:{color:g.active?o:n,fontWeight:g.active?"bold":"normal"},onClick:()=>h(g),children:c(g.name)},g.name))})})};Ms.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,activeColor:s.string};const ul="_checkboxContainer_1nxra_2",dl={checkboxContainer:ul},Rs=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=oe.useTranslation(),{title:a}=r||{},{fontColor:c,inputsColor:u}=ye(d=>d);return l.jsxs("div",{style:{...t,color:n},role:"checkbox",className:dl.checkboxContainer,onClick:e,children:[l.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?u:c}`,backgroundColor:o?u:"white"}}),l.jsx("span",{className:"checkmark",children:i(a)})]})};Rs.propTypes={onClick:s.func,value:s.bool,containerStyles:s.object,color:s.string,indicator:s.shape({title:s.string,codename:s.array}),checkedColor:s.string};function Sr(e,t){return Sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Sr(e,t)}function fl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sr(e,t)}function fr(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function pr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function bn(e){return e!==null&&e.length===1?e[0]:e.slice()}function vn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function bt(e,t){return Tr(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function Tr(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let kr=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=c=>{c.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=c=>{o.setState({pending:!0});const u=o.getMousePosition(c),d=o.getDiffPosition(u[0]),h=o.getValueFromPosition(d);o.move(h)},o.onTouchMove=c=>{if(c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);if(o.isScrolling===void 0){const g=u[0]-o.startPosition[0],y=u[1]-o.startPosition[1];o.isScrolling=Math.abs(y)>Math.abs(g)}if(o.isScrolling)return void o.setState({index:-1});const d=o.getDiffPosition(u[0]),h=o.getValueFromPosition(d);o.move(h)},o.onKeyDown=c=>{if(!(c.ctrlKey||c.shiftKey||c.altKey||c.metaKey))switch(o.setState({pending:!0}),c.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":c.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":c.preventDefault(),o.moveUpByStep();break;case"Home":c.preventDefault(),o.move(o.props.min);break;case"End":c.preventDefault(),o.move(o.props.max);break;case"PageDown":c.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":c.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=c=>{if(!o.props.disabled&&c.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const u=o.getMousePosition(c);o.forceValueFromPosition(u[0],d=>{o.start(d,u[0]),vn(o.getMouseEventMap())})}fr(c)}},o.onSliderClick=c=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const u=o.getMousePosition(c),d=bt(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(d)}},o.createOnKeyDown=c=>u=>{o.props.disabled||(o.start(c),vn(o.getKeyDownEventMap()),fr(u))},o.createOnMouseDown=c=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});const d=o.getMousePosition(u);o.start(c,d[0]),vn(o.getMouseEventMap()),fr(u)},o.createOnTouchStart=c=>u=>{if(o.props.disabled||u.touches.length>1)return;o.setState({pending:!0});const d=o.getTouchPosition(u);o.startPosition=d,o.isScrolling=void 0,o.start(c,d[0]),vn(o.getTouchEventMap()),function(h){h.stopPropagation&&h.stopPropagation()}(u)},o.handleResize=()=>{const c=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(c)},o.renderThumb=(c,u)=>{const d=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),h={ref:y=>{o["thumb"+u]=y},key:o.props.thumbClassName+"-"+u,className:d,style:c,onMouseDown:o.createOnMouseDown(u),onTouchStart:o.createOnTouchStart(u),onFocus:o.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[u],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[u]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[u]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},g={index:u,value:bn(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(h["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(g)),o.props.renderThumb(h,g)},o.renderTrack=(c,u,d)=>{const h={key:o.props.trackClassName+"-"+c,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+c,style:o.buildTrackStyle(u,o.state.upperBound-d)},g={index:c,value:bn(o.state.value)};return o.props.renderTrack(h,g)};let i=pr(r.value);i.length||(i=pr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let c=0;c<i.length;c+=1)i[c]=bt(i[c],r),a.push(c);return o.resizeObserver=null,o.resizeElementRef=w.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}fl(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,o){const i=pr(r.value);return i.length?o.pending?null:{value:i.map(a=>bt(a,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(o){Object.keys(o).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,o[i],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return bn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,c=a.length;for(let u=0;u<c;u+=1){const d=this.calcOffset(a[u]),h=Math.abs(r-d);h<o&&(o=h,i=u)}return i},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const o=r.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const o=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return bt(this.state.startValue+o,this.props)},n.getDiffPosition=function(r){let o=r-this.state.startPosition;return this.props.invert&&(o*=-1),o},n.resize=function(){const{slider:r,thumb0:o}=this;if(!r||!o)return;const i=this.sizeKey(),a=r.getBoundingClientRect(),c=r[i],u=a[this.posMaxKey()],d=a[this.posMinKey()],h=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],g=c-h,y=Math.abs(u-d);this.state.upperBound===g&&this.state.sliderLength===y&&this.state.thumbSize===h||this.setState({upperBound:g,sliderLength:y,thumbSize:h})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,i=o.getBoundingClientRect(),a=i[this.posMaxKey()],c=i[this.posMinKey()];let u=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:c));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),c=bt(this.calcValue(i),this.props),u=this.state.value.slice();u[a]=c;for(let d=0;d<u.length-1;d+=1)if(u[d+1]-u[d]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{o(a),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const i=this["thumb"+r];i&&i.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(r),1),a.push(r),this.setState(c=>({startValue:c.value[r],startPosition:o!==void 0?o:c.startPosition,index:r,zIndices:a}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=bt(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(i,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=bt(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(i,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:i}=this.state,{length:a}=o,c=o[i];if(r===c)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:d,min:h,minDistance:g}=this.props;if(!u){if(i>0){const y=o[i-1];r<y+g&&(r=y+g)}if(i<a-1){const y=o[i+1];r>y-g&&(r=y-g)}}o[i]=r,u&&a>1&&(r>c?(this.pushSucceeding(o,g,i),function(y,p,b,f){for(let x=0;x<y;x+=1){const _=f-x*b;p[y-1-x]>_&&(p[y-1-x]=_)}}(a,o,g,d)):r<c&&(this.pushPreceding(o,g,i),function(y,p,b,f){for(let x=0;x<y;x+=1){const _=f+x*b;p[x]<_&&(p[x]=_)}}(a,o,g,h))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,c;for(a=i,c=r[a]+o;r[a+1]!==null&&c>r[a+1];a+=1,c=r[a]+o)r[a+1]=Tr(c,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,c=r[a]-o;r[a-1]!==null&&c<r[a-1];a-=1,c=r[a]-o)r[a-1]=Tr(c,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](bn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return i[this.posMinKey()]=r+"px",i},n.buildTrackStyle=function(r,o){const i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=r,i[this.posMaxKey()]=o,i},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,i=[];for(let c=0;c<o;c+=1)i[c]=this.buildThumbStyle(r[c],c);const a=[];for(let c=0;c<o;c+=1)a[c]=this.renderThumb(i[c],c);return a},n.renderTracks=function(r){const o=[],i=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let a=0;a<i;a+=1)o.push(this.renderTrack(a+1,r[a],r[a+1]));return o.push(this.renderTrack(i+1,r[i],this.state.upperBound)),o},n.renderMarks=function(){let{marks:r}=this.props;const o=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:o}).map((i,a)=>a):typeof r=="number"&&(r=Array.from({length:o}).map((i,a)=>a).filter(i=>i%r==0)),r.map(parseFloat).sort((i,a)=>i-a).map(i=>{const a=this.calcOffset(i),c={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(c)})},n.render=function(){const r=[],{value:o}=this.state,i=o.length;for(let d=0;d<i;d+=1)r[d]=this.calcOffset(o[d],d);const a=this.props.withTracks?this.renderTracks(r):null,c=this.renderThumbs(r),u=this.props.marks?this.renderMarks():null;return w.createElement("div",{ref:d=>{this.slider=d,this.resizeElementRef.current=d},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,c,u)},t}(w.Component);kr.displayName="ReactSlider",kr.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>w.createElement("div",e),renderTrack:e=>w.createElement("div",e),renderMark:e=>w.createElement("span",e)};var jr=kr;const pl="_container_4u41i_2",ml="_unitLabel_4u41i_8",hl="_slider_4u41i_11",gl="_thumb_4u41i_17",yl="_track_4u41i_26",bl="_labels_4u41i_32",Et={container:pl,unitLabel:ml,slider:hl,thumb:gl,track:yl,labels:bl},Ds=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",defaultValue:c,isDate:u})=>{const{t:d}=oe.useTranslation(),h=u?new Date(e).getTime():null,g=u?new Date(t).getTime():null,[y,p]=w.useState(u?[h,g]:[e,t]),b=f=>{p(f),r==null||r({min:f[0],max:f[1]})};return w.useEffect(()=>{c||p(u?[h,g]:[e,t])},[c,u]),l.jsxs("div",{className:Et.container,style:{width:`${o}px`,color:`${a}`},children:[l.jsx("div",{className:Et.unitLabel,children:l.jsx("span",{children:d(i)})}),l.jsx(jr,{className:Et.slider,thumbClassName:Et.thumb,trackClassName:Et.track,min:u?h:e,max:u?g:t,step:u?(g-h)/30:n,value:y,onAfterChange:b,withTracks:!0,pearling:!u,minDistance:u?0:.1}),l.jsxs("div",{className:Et.labels,children:[l.jsx("span",{children:u?new Date(y[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[0]}),l.jsx("span",{children:u?new Date(y[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[1]})]})]})};Ds.propTypes={min:s.number,max:s.number,step:s.number,initialMin:s.number,initialMax:s.number,onChange:s.func,width:s.number,unit:s.string,fontColor:s.string,value:s.arrayOf(s.number)};const vl="_tematicalFiltersInputContainer_1vm1r_2",xl="_inputTypeContainer_1vm1r_2",Cl="_checkboxContainer_1vm1r_28",_l="_absoluteSliderContainer_1vm1r_37",xn={tematicalFiltersInputContainer:vl,inputTypeContainer:xl,checkboxContainer:Cl,absoluteSliderContainer:_l},Br=({indicator:e,activeColor:t})=>{const[n,r]=w.useState(),{type:o,name:i,values:a,minValue:c,maxValue:u,unit:d,step:h,disabled:g,isDate:y}=e||{},p=w.useMemo(()=>o=="cat"||n=="cat",[n,o]),b=w.useMemo(()=>o=="abs"||n=="abs",[n,o]),{tematicalFiltersSelected:f,selectedIndicator:x,fontColor:_,inputsColor:T}=ye(C=>C),j=C=>{if(C){const{min:S,max:$,valueClicked:A,allValues:E}=C||{},{code:B,type:I,source:m}=e||{},N=b?"abs":p?"cat":"both";let k=B[0];I=="both"&&(k=N=="cat"?B[1]:B[0]),N=="cat"?ye.setState(V=>{let z=V.tematicalFiltersSelected.find(Y=>Y.code===k);if(z){let Y=[z.values];return z.values.includes(A)?Y=z.values.filter(W=>W!==A):Y=[...z.values,A],Y.length==E.length?{tematicalFiltersSelected:V.tematicalFiltersSelected.filter(W=>W.code!==k)}:{tematicalFiltersSelected:V.tematicalFiltersSelected.map(W=>W.code===k?{...W,values:Y}:W)}}else{let Y=(E||[]).map((W,ae)=>ae);return{tematicalFiltersSelected:[...f,{type:"cat",code:k,values:Y.filter(W=>W!==A),name:e.name,source:m,isDate:y}]}}}):N=="abs"&&ye.setState(V=>{let z=V.tematicalFiltersSelected.find(Y=>Y.code===k);if(S==e.minValue&&$==e.maxValue)return{tematicalFiltersSelected:V.tematicalFiltersSelected.filter(Y=>Y.code!==k)};if(z){let Y={...z,min:S,max:$,type:N,isDate:y};return{tematicalFiltersSelected:V.tematicalFiltersSelected.map(W=>W.code===k?Y:W)}}else return{tematicalFiltersSelected:[...f,{type:N,code:k,min:S,max:$,name:e.name,source:e.source}]}})}},v=w.useMemo(()=>{const C={};if((f==null?void 0:f.length)>0)for(const S of f)S.type==="cat"?C[S.code]=new Set(S.values):C[S.code]=[S.min,S.max];return C},[f]);return l.jsx("div",{className:xn.tematicalFiltersInputContainer,children:l.jsxs(ht,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:g?.5:1},title:i,isOpen:x==`id${i}`,onClick:()=>{g||ye.setState(()=>({selectedIndicator:x==`id${i}`?"":`id${i}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:_,activeColor:t,children:[o=="both"&&l.jsxs("div",{className:xn.inputTypeContainer,style:{color:_},children:[l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{r("abs")},style:{marginRight:4,backgroundColor:n=="abs"?T:"white",border:`1.5px solid ${n=="abs"?T:_}`}}),"Absoluto"]}),l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{r("cat")},style:{marginRight:4,backgroundColor:n=="cat"?T:"white",border:`1.5px solid ${n=="cat"?T:_}`}}),"Categórico"]})]}),p&&l.jsx("div",{className:xn.checkboxContainer,children:(a||[]).map((C,S)=>{var $;return l.jsx(Rs,{onClick:()=>j({valueClicked:S,allValues:a}),indicator:C,value:(($=v[e.code[o=="both"?1:0]])==null?void 0:$.has(S))||!v[e.code[o=="both"?1:0]]},`checkbox-${S}`)})}),(b||o=="glb")&&l.jsx("div",{className:xn.absoluteSliderContainer,children:l.jsx(Ds,{onChange:j,min:c,max:u,unit:d,defaultValue:v[e.code[0]]?v[e.code[0]]:"",isDate:y,step:h})})]})})};Br.propTypes={indicator:s.shape({name:s.string,type:s.string,code:s.arrayOf(s.string),values:s.arrayOf(s.shape({codename:s.oneOfType(s.array,s.string),title:s.string}))}),activeColor:s.string};const Is=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:r}=ye(a=>a),{name:o,indicators:i}=e||{};return l.jsx(ht,{title:o,isOpen:r==`id${o}`,onClick:()=>{ye.setState(a=>({activeSubcategory:a.activeSubcategory===`id${o}`?"":`id${o}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:t,activeColor:n,children:i==null?void 0:i.map((a,c)=>l.jsx(Br,{indicator:a,fontColor:t,activeColor:n},`indicatorSub-${c}`))})};Is.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))}),activeColor:s.string};const Ps=({category:e,activeColor:t})=>{const{name:n,subcategories:r,indicators:o}=e||{},{activeCategory:i,fontColor:a}=ye(c=>c);return e&&l.jsx(ht,{onClick:()=>{ye.setState(c=>({activeCategory:i===`id${n}`?"":`id${n}`}))},title:n,isOpen:i===`id${n}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:t,children:r?r.map((c,u)=>l.jsx(Is,{subcategory:c,fontColor:a,activeColor:t},`subcategory-${u}`)):o&&o.map((c,u)=>l.jsx(Br,{indicator:c,fontColor:a,activeColor:t},`indicator-${u}`))})};Ps.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array}),activeColor:s.string};const $r=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56",activeColor:i,isExtra:a=!1})=>{const{tematicalFiltersSelected:c,activeFiltersType:u}=ye(g=>g),{t:d}=oe.useTranslation();w.useEffect(()=>{r&&ye.setState(()=>({fontColor:r}))},[r]),w.useEffect(()=>{o&&ye.setState(()=>({inputsColor:o}))},[o]);const h=()=>{a?u==a?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:a})):u=="tematical"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"tematical"}))};return l.jsx(ht,{isOpen:a&&u==a||!a&&u=="tematical",title:n?d(n):"Tematical filters",color:r,activeColor:i,onClick:h,mainTitle:!0,children:e==null?void 0:e.map((g,y)=>l.jsx(Ps,{category:g,fontColor:r,activeColor:i},`category-${y}`))})};$r.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.object),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string,activeColor:s.string};const wl="_FiltersAmbitContainer_1hv16_2",Sl="_FiltersContainer_1hv16_15",Tl="_FiltersAmbitHeader_1hv16_18",kl="_FiltersAmbitTitle_1hv16_26",jl="_FiltersAmbitDescription_1hv16_35",$l="_FiltersAmbitDescriptionTitle_1hv16_46",El="_warning_1hv16_50",Nl="_buttonContainer_1hv16_53",ct={FiltersAmbitContainer:wl,FiltersContainer:Sl,FiltersAmbitHeader:Tl,FiltersAmbitTitle:kl,FiltersAmbitDescription:jl,FiltersAmbitDescriptionTitle:$l,warning:El,buttonContainer:Nl},Bs=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:i,backgroundColor:a,onChangeAppliedFilters:c,saveAmbit:u,namePlaceholder:d,descPlaceholder:h,filtersTypes:g=["geographical","tematical"],nameRequiredText:y,geoLayers:p=[],onGeoLayersChange:b,onlyFilters:f=!1,descriptionRequired:x=!1,extraLists:_=!1})=>{const{t:T}=oe.useTranslation(),{tematicalFiltersSelected:j,activeFiltersType:v}=ye(m=>m),[C,S]=w.useState(e||null),[$,A]=w.useState(t||null),[E,B]=w.useState(!1);w.useEffect(()=>{ye.setState({tematicalFiltersSelected:n||[]})},[n]),w.useRef(!1),w.useEffect(()=>{c(j)},[j]);const I=()=>{x?C&&$?u({name:C,description:$}):B(!0):C?u({name:C,description:$}):B(!0)};return w.useEffect(()=>{if(g.includes("geographical")&&v!="geographical"&&p.length>0){const m=p.map(N=>({...N,active:!1}));b==null||b(m)}},[v]),l.jsxs("div",{className:ct.FiltersAmbitContainer,children:[l.jsxs("div",{className:ct.FiltersContainer,children:[!f&&l.jsxs("div",{className:ct.FiltersAmbitHeader,children:[l.jsx("div",{className:ct.FiltersAmbitTitle,children:l.jsx("input",{type:"text",onChange:m=>{B(!1),S(m.target.value)},value:C,placeholder:T(d)})}),l.jsx("div",{className:ct.FiltersAmbitDescription,children:l.jsx("div",{className:ct.FiltersAmbitDescriptionTitle,children:l.jsx("textarea",{value:$,onChange:m=>{x&&B(!1),A(m.target.value)},placeholder:T(h)})})})]}),l.jsx(Ls,{title:T("applied_filters"),isOpen:v=="applied",textColor:i||"#fff",backgroundColor:a||"#605B5680",activeColor:o}),g.includes("geographical")&&l.jsx(Ms,{title:"geo_filters",activeColor:o,geoLayers:p,onGeoLayersChange:b}),g.includes("extra")&&_.map(m=>l.jsx($r,{indicators:m.indicators,inputsColor:o,textColor:i,title:m.title,activeColor:o,isExtra:m.title})),g.includes("tematical")&&l.jsx($r,{indicators:r,inputsColor:o,textColor:i,title:"tematical_filters",activeColor:o,isExtra:!1})]}),!f&&l.jsxs("div",{className:ct.buttonContainer,children:[E&&l.jsx("div",{className:ct.warning,children:T(y)}),l.jsx(ln,{onClick:()=>I(),children:T("save_ambit")})]})]})};Bs.propTypes={indicators:s.arrayOf(s.object).isRequired,ambitName:s.string,ambitDescription:s.string,defaultFilters:s.arrayOf(s.object),activeColor:s.string,backgroundColor:s.string,textColor:s.string,onChangeAppliedFilters:s.func,saveAmbit:s.func,namePlaceholder:s.string,descPlaceholder:s.string,filtersTypes:s.arrayOf(s.string).isRequired,nameRequiredText:s.string,extraLists:s.arrayOf(s.object)};const Ol="_barChartContainer_1ly7h_2",yo={barChartContainer:Ol},Fr=({data:e,barHeight:t=25,gap:n=23,fontColor:r="#605B56",leftPadding:o=200,numberOfDivisions:i=7,maxValue:a=null,orientation:c="horizontal",horizontalPadding:u=c=="vertical"?50:20,verticalPadding:d=10,xLabelPadding:h=c=="vertical"?50:40,containerWidth:g=700,containerHeight:y=500,mainColor:p="#000"})=>{const{xScale:b,yScale:f,ticks:x,height:_,chartWidth:T,svgWidth:j,svgHeight:v,contentWidth:C}=w.useMemo(()=>{if(e&&e.length>0){const S=sr.max(e,A=>A.value)||1,$=a||S;if(c==="vertical"){const A=e.length*(t+n)+u*2,E=Math.max(A,g||0),B=y,m=sr.scaleLinear().domain([0,$]).range([B-100,d]),N=Array.from({length:i+1},(k,V)=>$/i*V);return{yScale:m,ticks:N,height:B,chartWidth:E,svgWidth:E,svgHeight:B,contentWidth:A}}else{const A=e.length*(t+n);console.log("barsHeight: ",A);const E=A+d*2+h+30,B=g+o+u*2,I=sr.scaleLinear().domain([0,$]).range([0,g-u*2]),m=Array.from({length:i+1},(N,k)=>$/i*k);return{xScale:I,ticks:m,height:E,chartWidth:g,svgWidth:B,svgHeight:E,contentWidth:B}}}else return{xScale:null,yScale:null,ticks:[],height:0,svgHeight:0}},[e,i,t,n,u,d,a,c,o,g,y]);return c==="vertical"?l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":p},className:yo.barChartContainer,children:l.jsx("svg",{width:j,height:v,style:{display:"block",width:j,height:v,maxWidth:"none","--main-color":p},children:l.jsxs("g",{transform:`translate(${u}, 0)`,children:[l.jsx("g",{children:x.map((S,$)=>{const A=f(S);return l.jsxs("g",{children:[l.jsx("line",{x1:0,x2:T-u*2,y1:A,y2:A,stroke:"#ccc"}),l.jsx("text",{x:-10,y:A+4,textAnchor:"end",fontSize:10,fill:r,children:parseInt(S)})]},$)})}),e&&e.length>0&&e.map((S,$)=>{const A=f(0)-f(S.value),E=$*(t+n),B=f(S.value);return l.jsxs("g",{children:[l.jsx("rect",{x:E,y:B,width:t,height:A,fill:S.color,rx:0}),l.jsx("text",{x:E+t/2,y:_-h,textAnchor:"start",fill:r,fontSize:12,transform:`rotate(-90, ${E+t/2}, ${_-h})`,children:S.title})]},$)})]})})}):(console.log("svgHeight: ",v),l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":p},className:yo.barChartContainer,children:l.jsx("svg",{width:j,height:v,style:{minWidth:"100%",height:v,width:C,maxWidth:"none"},children:l.jsxs("g",{transform:`translate(0,${d})`,children:[l.jsx("g",{transform:`translate(${o+u}, 0)`,children:x.map((S,$)=>{const A=b(S);return l.jsxs("g",{transform:`translate(${A}, 0)`,children:[l.jsx("line",{y1:0,y2:e.length*(t+n),stroke:"#ccc"}),l.jsx("text",{y:e.length*(t+n)+30,textAnchor:"middle",fontSize:10,fill:r,children:parseInt(S)})]},$)})}),e&&e.length>0&&e.map((S,$)=>{const A=b(S.value),E=$*(t+n);return console.log("y: ",E),l.jsxs("g",{transform:`translate(${o+u}, ${E})`,children:[l.jsx("text",{x:-24,y:t/2+5,textAnchor:"end",fill:r,fontSize:12,children:S.title}),l.jsx("rect",{width:A,height:t,fill:S.color,rx:0})]},$)})]})})}))};Fr.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),length:s.number,barHeight:s.number,gap:s.number,verticalPadding:s.number,horizontalPadding:s.number,numberOfDivisions:s.number,fontColor:s.string,leftPadding:s.number,maxValue:s.number,orientation:s.oneOf(["horizontal","vertical"]),xLabelPadding:s.number,containerWidth:s.number,containerHeight:s.number,minBarWidth:s.number};const Al="_graphicContainer_1ozwp_2",Ll="_titleContainer_1ozwp_13",bo={graphicContainer:Al,titleContainer:Ll},Fs=({data:e,graphLength:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:c=7,leftPadding:u=-200,orientation:d="horizontal",xLabelPadding:h=0,mainColor:g})=>{const{t:y}=oe.useTranslation();return l.jsxs("div",{className:bo.graphicContainer,style:{...n||{},paddingBottom:40},children:[l.jsx("div",{className:bo.titleContainer,children:l.jsx("h2",{children:y(o)})}),l.jsx(Fr,{data:e,length:t,fontColor:i,maxValue:a,numberOfDivisions:c,leftPadding:u,orientation:d,xLabelPadding:h,mainColor:g})]})};Fs.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphLength:s.number,containerStyle:s.object,fontColor:s.string,mainColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number,xLabelPadding:s.number};const Ml="_indicatorsCategory_arwy3_2",Rl="_title_arwy3_5",Dl="_list_arwy3_13",Cn={indicatorsCategory:Ml,title:Rl,list:Dl},Il="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e",Pl="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e",Bl="_indicatorContainer_17b40_2",Fl="_indicatorNameContainer_17b40_11",Vl="_dot_17b40_17",zl="_indicatorName_17b40_11",ql="_switchExternalContainer_17b40_31",Wl="_switchType_17b40_39",Ul="_switchTypeOptions_17b40_43",Zl="_optionContainer_17b40_54",Hl="_customRadious_17b40_64",Kl="_optionText_17b40_71",Oe={indicatorContainer:Bl,indicatorNameContainer:Fl,dot:Vl,indicatorName:zl,switchExternalContainer:ql,switchType:Wl,switchTypeOptions:Ul,optionContainer:Zl,customRadious:Hl,optionText:Kl},Vr=({indicator:e,values:t=[],activeColor:n,defaultColor:r="#92898A",activeIndicator:o,activeIndicatorType:i,onClickIndicator:a,multiple:c=!1,onChangeType:u})=>{const{t:d}=oe.useTranslation(),{name:h,type:g,disabled:y}=e,[p,b]=w.useState(!1);w.useEffect(()=>{o&&b(c?o.some(_=>_.name==String(h)):o.name==h)},[o]);const f=()=>l.jsx("div",{className:Oe.switchExternalContainer,children:l.jsx("div",{className:Oe.switchType,children:l.jsxs("div",{className:Oe.switchTypeOptions,children:[l.jsxs("div",{className:Oe.optionContainer,onClick:()=>u("cat"),children:[l.jsx("span",{className:`${Oe.customRadious}`,style:{backgroundColor:i==="cat"?n:"transparent",borderColor:i==="cat"?n:r}}),l.jsx("h4",{className:Oe.optionText,style:{color:i==="cat"?n:r},children:d("indicators.cat")})]}),l.jsxs("div",{className:Oe.optionContainer,onClick:()=>u("abs"),children:[l.jsx("span",{className:`${Oe.customRadious}`,style:{backgroundColor:i==="abs"?n:"transparent",borderColor:i==="abs"?n:r}}),l.jsx("h4",{className:Oe.optionText,style:{color:i==="abs"?n:r},children:d("indicators.abs")})]})]})})}),x=()=>l.jsx("div",{className:Oe.switchExternalContainer,children:l.jsx("div",{className:Oe.switchType,children:l.jsx("div",{className:Oe.switchTypeOptions,children:t.map((_,T)=>l.jsxs("div",{className:Oe.optionContainer,children:[l.jsx("span",{className:Oe.customRadious}),l.jsx("h4",{children:d(_.unit)})]},T))})})});return l.jsxs("div",{className:Oe.indicatorContainer,children:[l.jsxs("div",{className:Oe.indicatorNameContainer,onClick:()=>!y&&a({indicator:e}),children:[l.jsx("div",{style:{border:p?`1px solid ${n}`:`1px solid ${r}`,opacity:y?.5:1,backgroundColor:p?n:"transparent"},className:Oe.dot,children:c&&l.jsx("img",{src:p?Pl:Il,alt:""})}),l.jsx("h4",{className:Oe.indicatorName,style:{color:p?n:r,opacity:y?.5:1},children:l.jsx(oe.Trans,{i18nKey:h,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})})]}),(o==null?void 0:o.name)===h&&g==="both"&&l.jsx("div",{children:f()}),(o==null?void 0:o.name)===h&&g==="twoUnits"&&l.jsx("div",{children:x()})]})};Vr.propTypes={indicator:s.shape({name:s.string,type:s.string}),values:s.oneOfType([s.bool,s.array]),activeColor:s.string,defaultColor:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickIndicator:s.func};const Gl="_indicatorsSubCategory_1nuug_2",Yl="_list_1nuug_11",vo={indicatorsSubCategory:Gl,list:Yl},Vs=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:i,id:a,activeIndicator:c,onClickIndicator:u,multiple:d,activeIndicatorType:h,onChangeType:g})=>{const{t:y}=oe.useTranslation(),[p,b]=w.useState(!1);return w.useEffect(()=>{b(o==a)},[o,a]),l.jsxs(Ir.motion.div,{className:vo.indicatorsSubCategory,initial:{height:"43px"},animate:{height:p?"auto":"43px"},transition:{duration:.4},children:[l.jsx("button",{onClick:()=>i(a),children:l.jsxs("h3",{style:{color:p?r:n},children:[l.jsx("span",{style:{color:p?r:n},children:p?"-":"+"}),l.jsx("span",{style:{color:p?r:n},children:y(e)})]})}),t&&l.jsx("div",{className:vo.list,children:t==null?void 0:t.map((f,x)=>l.jsx(Vr,{indicator:f,defaultColor:n,activeColor:r,activeIndicator:c,onClickIndicator:u,multiple:d,activeIndicatorType:h,onChangeType:g},"indicator"+x))})]})};Vs.propTypes={subcName:s.string,indicators:s.array,activeColor:s.string,defaultColor:s.string,activeSubCategory:s.string,id:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickSubCategory:s.func,onClickIndicator:s.func};const zs=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:i,activeSubCategory:a,onClickSubCategory:c,activeIndicator:u,onClickIndicator:d,multiple:h,activeIndicatorType:g,onChangeType:y})=>{var x;const{t:p}=oe.useTranslation(),[b,f]=w.useState(!1);return w.useEffect(()=>{f(i===t)},[i,t]),l.jsxs(Ir.motion.div,{className:Cn.indicatorsCategory,initial:{height:"53px"},animate:{height:b?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:b?`1px solid ${n}`:"0px",marginBottom:b?"20px":"0px"},children:[l.jsxs("h2",{className:`${Cn.title}`,onClick:()=>o(t),children:[l.jsx("span",{className:Cn.plus,style:{color:b?n:r},children:b?"-":"+"}),l.jsx("span",{style:{color:b?n:r},children:p(e.name)})]}),e.subcategories?e.subcategories.map(({name:_,subcategory:T,indicators:j},v)=>l.jsx(Vs,{id:T,activeSubCategory:a,subcName:_,onClickSubCategory:c,activeIndicator:u,onClickIndicator:d,multiple:h,activeColor:n,defaultColor:r,indicators:j,activeIndicatorType:g,onChangeType:y},`subcKey ${v}`)):l.jsx("div",{className:Cn.list,children:(x=e.indicators)==null?void 0:x.map((_,T)=>l.jsx(Vr,{indicator:_,values:_.type=="twoUnits"&&_.values,activeColor:n,defaultColor:r,activeIndicator:u,onClickIndicator:d,multiple:h,activeIndicatorType:g,onChangeType:y},`indicator${T}`))})]})};zs.propTypes={cat:s.object,id:s.string,onChange:s.func,onClickCategory:s.func,activeCategory:s.string,activeSubCategory:s.string,onClickSubCategory:s.func,onClickIndicator:s.func,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,activeColor:s.string,defaultColor:s.string};const Xl="_indicatorsList_13b3m_2",Ql="_title_13b3m_6",xo={indicatorsList:Xl,title:Ql},qs=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:c})=>{const{t:u}=oe.useTranslation(),[d,h]=w.useState(),[g,y]=w.useState(),[p,b]=w.useState(),f=v=>{h(d==v?null:v)},x=v=>{y(g==v?null:v)},_=({indicator:v})=>{T(v)},T=v=>{if(!o)b((p==null?void 0:p.name)==v.name?null:v);else{let C=p&&p.length>0?[...p]:[];b(C!=null&&C.some(S=>S.name==v.name)?C.filter(S=>S.name!=String(v.name)):[...C,v]),v.type=="both"&&a("cat")}};w.useEffect(()=>{r&&typeof r=="function"&&p&&r({activeIndicator:p})},[p]),w.useLayoutEffect(()=>{if(i&&!p)if(o&&i&&Array.isArray(i)){let v=p&&p.length>0?[...p]:[];b([...v,...i]),j(i[0].name)}else T(i),j(i.name)},[]),w.useEffect(()=>{if(i!=p)if(o&&i&&Array.isArray(i)){let v=p&&p.length>0?[...p]:[];b([...v,...i]),j(i[0].name)}else T(i),j(i.name)},[i]);const j=v=>{const C=e.find(S=>{if(S.subcategories){let $=S.subcategories.find(A=>A.indicators.find(E=>E.name==v));if($)return y($.subcategory),$}else return S.indicators.some($=>$.name==v)});C&&h(C.category)};return l.jsxs("div",{className:xo.indicatorsList,children:[l.jsx("h2",{className:xo.title,style:{color:n},children:u("indicators.indicators")}),e.map((v,C)=>l.jsx(zs,{id:v.category,cat:v,onClickCategory:f,activeCategory:d,onClickSubCategory:x,activeSubCategory:g,onClickIndicator:_,activeIndicator:p,activeColor:t,defaultColor:n,multiple:o,onChange:r,onChangeType:a,activeIndicatorType:c},`categoryKey${C}`))]})};qs.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,changeIndType:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array]),activeIndicatorType:s.string};const Jl="_langSelector_o9enq_2",ec="_currentLang_o9enq_14",tc="_arrow_o9enq_26",nc="_prevImg_o9enq_29",rc="_langMenu_o9enq_33",Nt={langSelector:Jl,currentLang:ec,arrow:tc,prevImg:nc,langMenu:rc},Ws=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=w.useState(!1),{i18n:i}=oe.useTranslation(),a=e.find(u=>u.code==i.language),c=u=>{i.changeLanguage(u),o(!1)};return l.jsxs("div",{className:Nt.langSelector,children:[l.jsxs("div",{className:Nt.currentLang,onClick:()=>{o(!r)},children:[n&&l.jsx("img",{className:Nt.prevImg,src:n}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),l.jsx("img",{src:t,className:Nt.arrow})]}),r&&l.jsx("div",{className:Nt.langMenu,children:e.map(u=>l.jsx("button",{className:(a==null?void 0:a.code)==u.code?Nt.active:"",onClick:()=>c(u.code),children:u.title},u.code))})]})};Ws.propTypes={langs:s.arrayOf(s.shape({code:s.string,title:s.string,titleSelected:s.string})),color:s.string,bckColor:s.string,hoverColor:s.string,arrow:s.object,imgPrev:s.object};const oc="_legendContainer_1l2pz_3",sc="_closeButton_1l2pz_43",ic="_titleContainer_1l2pz_71",ac="_infoContainer_1l2pz_77",lc="_titleLegendList_1l2pz_88",cc="_legendListContainer_1l2pz_93",uc="_gridContainer_1l2pz_93",dc="_elementLegendContainer_1l2pz_99",fc="_colorDot_1l2pz_105",pc="_absoluteValueContainer_1l2pz_111",mc="_absoluteValueColor_1l2pz_114",hc="_absoluteValueText_1l2pz_119",gc="_noDataContainer_1l2pz_131",yc="_noData_1l2pz_131",bc="_moreInfoContainer_1l2pz_152",$e={legendContainer:oc,closeButton:sc,titleContainer:ic,infoContainer:ac,titleLegendList:lc,legendListContainer:cc,gridContainer:uc,elementLegendContainer:dc,colorDot:fc,absoluteValueContainer:pc,absoluteValueColor:mc,absoluteValueText:hc,noDataContainer:gc,noData:yc,moreInfoContainer:bc},Us=({containerStyles:e,title:t,infoList:n,legendItems:r,onClickMoreInfo:o,buttonTitle:i,onClickClose:a})=>{const{t:c}=oe.useTranslation();return l.jsxs("div",{style:e?{...e}:{},className:`${$e.legendContainer}`,children:[l.jsx("button",{className:$e.closeButton,onClick:a}),t&&l.jsx("div",{className:$e.titleContainer,style:{marginBottom:(!n||n.length==0)&&"15px"},children:l.jsx("h2",{children:t})}),n&&n.length>0&&l.jsx("div",{className:$e.infoContainer,children:l.jsx("ul",{children:n.map(({title:u,value:d})=>l.jsxs("li",{children:[l.jsx("h3",{className:$e.title,children:`${u}:`}),l.jsxs("span",{className:$e.value,children:["  ",d]})]},t))})}),r&&r.length>0&&r.map((u,d)=>l.jsxs("div",{children:[l.jsx("h3",{className:$e.titleLegendList,style:{marginTop:n&&n.length>0&&d===0?"30px":d>0?"20px":"0px"},children:u.title&&l.jsx(oe.Trans,{i18nKey:u.title,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})}),l.jsxs("div",{className:$e.legendListContainer,children:[u.absolute?l.jsxs("div",{className:$e.absoluteValueContainer,children:[l.jsx("div",{className:$e.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${u.absolute.maxColor} 0%, ${u.absolute.midColor?`${u.absolute.midColor} 50%,`:""} ${u.absolute.minColor} 100%)`}}),l.jsxs("div",{className:$e.absoluteValueText,children:[l.jsxs("span",{children:[u.absolute.maxValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.moreText)]}),u.absolute.midValue&&l.jsxs("span",{children:[u.absolute.midValue," ",c(u.absolute.unit)]}),l.jsxs("span",{children:[u.absolute.minValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.lessText)]})]})]}):u.categories&&u.categories.length>0&&l.jsx("div",{className:$e.gridContainer,children:u.categories.map(({title:h,color:g},y)=>l.jsxs("div",{className:$e.elementLegendContainer,children:[l.jsx("div",{className:$e.colorDot,style:{backgroundColor:g}}),l.jsxs("div",{className:$e.titleLegendElement,children:[c(h)," "]})]},y))}),u.absolute&&u.absolute.noDataColor&&l.jsxs("div",{className:$e.noDataContainer,children:[l.jsx("div",{className:$e.noData,style:{background:u.absolute.noDataColor}}),l.jsx("div",{className:$e.absoluteValueText,children:l.jsx("span",{children:c(u.absolute.noDataText)})})]})]})]},d)),o&&l.jsx("button",{className:$e.moreInfoContainer,onClick:o,children:i||c("moreInformation")})]})};Us.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendItems:s.arrayOf(s.shape({title:s.string,categories:s.arrayOf(s.shape({title:s.string,color:s.string})),absolute:s.shape({maxColor:s.string,minColor:s.string,midColor:s.string,maxValue:s.number,minValue:s.number,midValue:s.number,unit:s.string,noDataColor:s.string,noDataText:s.string})})),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const vc="_logo_1ewa6_2",Co={logo:vc},Zs=({src:e,alt:t,href:n})=>{const{t:r}=oe.useTranslation(),o=l.jsx("img",{src:e,alt:r(t)});return n?l.jsx("div",{className:Co.logo,children:l.jsx("a",{href:n,children:o})}):l.jsx("div",{className:Co.logo,children:o})};Zs.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const xc=Q.createContext(null);function Cc(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===i}function Ve(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ve(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Ve(e[o],t[o]))return!1;return!0}return!1}function _c(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function _o(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Ve(n,r)||t.setProjection(n)}function wo(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function So(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const wc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function To(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const i=t[r.ref];if(i){o=o||Object.assign({},r),delete o.ref;for(const a of wc)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const ko={version:8,sources:{},layers:[]},jo={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},mr={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},$o={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Sc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Tc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class zt{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const i=this.props[$o[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[jo[o.type]];i&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),i(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const i=this.props[mr[o.type]];i&&i(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),i=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=zt.savedMaps.pop();if(!r)return null;const o=r.map,i=o.getContainer();for(n.className=i.className;i.childNodes.length>0;)n.appendChild(i.childNodes[0]);o._container=n;const a=o._resizeObserver;a&&(a.disconnect(),a.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:c}=t;return c&&(c.bounds?o.fitBounds(c.bounds,{...c.fitBoundsOptions,duration:0}):r._updateViewState(c,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=ko}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||kc()||null,container:t,style:To(r)},i=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const h=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=h,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const c=a._render;a._render=h=>{this._inRender=!0,c.call(a,h),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=h=>{u.call(a._renderTaskQueue,h),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const d=a.fire;a.fire=this._fireEvent.bind(this,d),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),_o(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const h in jo)a.on(h,this._onPointerEvent);for(const h in mr)a.on(h,this._onCameraEvent);for(const h in $o)a.on(h,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),zt.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const n=_c(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:i,pitch:a,bearing:c}=o,u=r.isMoving();u&&(o.cameraElevationReference="sea");const d=So(o,{...wo(r.transform),...t});if(u&&(o.cameraElevationReference="ground"),d&&n){const h=this._deferredEvents;h.move=!0,h.zoom||(h.zoom=i!==o.zoom),h.rotate||(h.rotate=c!==o.bearing),h.pitch||(h.pitch=a!==o.pitch)}return u||So(r.transform,t),d}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of Sc)if(i in t&&!Ve(t[i],n[i])){o=!0;const a=r[`set${i[0].toUpperCase()}${i.slice(1)}`];a==null||a.call(r,t[i])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=ko,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(To(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Ve(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Ve(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Ve(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){var r,o;const i=this._map;let a=!1;for(const c of Tc){const u=(r=t[c])!==null&&r!==void 0?r:!0,d=(o=n[c])!==null&&o!==void 0?o:!0;Ve(u,d)||(a=!0,u?i[c].enable(u):i[c].disable())}return a}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var n;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const i=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,c=this._queryRenderedFeatures(t.point),u=c.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=c,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,i=o.transform,a=typeof n=="string"?n:n.type;return a==="move"&&this._updateViewState(this.props,!1),a in mr&&(typeof n=="object"&&(n.viewState=wo(i)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=i,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{_o(this._renderTransform,n),t.transform=n}}}zt.savedMaps=[];function kc(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const jc=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function $c(e){if(!e)return null;const t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const o=t.transform;t.transform=e.transform;const i=t.project(r);return t.transform=o,i},unproject:r=>{const o=t.transform;t.transform=e.transform;const i=t.unproject(r);return t.transform=o,i},queryTerrainElevation:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(r,o);return t.transform=i,a},queryRenderedFeatures:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(r,o);return t.transform=i,a}};for(const r of Ec(t))!(r in n)&&!jc.includes(r)&&(n[r]=t[r].bind(t));return n}function Ec(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const Nc=typeof document<"u"?w.useLayoutEffect:w.useEffect,Oc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Ac(e,t){for(const r of Oc)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const Wt=Q.createContext(null);function Lc(e,t,n){const r=w.useContext(xc),[o,i]=w.useState(null),a=w.useRef(),{current:c}=w.useRef({mapLib:null,map:null});w.useEffect(()=>{const h=e.mapLib;let g=!0,y;return Promise.resolve(h||n).then(p=>{if(!g)return;if(!p)throw new Error("Invalid mapLib");const b="Map"in p?p:p.default;if(!b.Map)throw new Error("Invalid mapLib");if(Ac(b,e),!b.supported||b.supported(e))e.reuseMaps&&(y=zt.reuse(e,a.current)),y||(y=new zt(b.Map,e,a.current)),c.map=$c(y),c.mapLib=b,i(y),r==null||r.onMapMount(c.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(p=>{const{onError:b}=e;b?b({type:"error",target:null,originalEvent:null,error:p}):console.error(p)}),()=>{g=!1,y&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?y.recycle():y.destroy())}},[]),Nc(()=>{o&&o.setProps(e)}),w.useImperativeHandle(t,()=>c.map,[o]);const u=w.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),d={height:"100%"};return Q.createElement("div",{id:e.id,ref:a,style:u},o&&Q.createElement(Wt.Provider,{value:c},Q.createElement("div",{"mapboxgl-children":"",style:d},e.children)))}const Mc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function jt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Mc.test(r)?n[r]=`${o}px`:n[r]=o}}function Rc(e,t){const{map:n,mapLib:r}=w.useContext(Wt),o=w.useRef({props:e});o.current.props=e;const i=w.useMemo(()=>{let f=!1;Q.Children.forEach(e.children,T=>{T&&(f=!0)});const x={...e,element:f?document.createElement("div"):null},_=new r.Marker(x);return _.setLngLat([e.longitude,e.latitude]),_.getElement().addEventListener("click",T=>{var j,v;(v=(j=o.current.props).onClick)===null||v===void 0||v.call(j,{type:"click",target:_,originalEvent:T})}),_.on("dragstart",T=>{var j,v;const C=T;C.lngLat=i.getLngLat(),(v=(j=o.current.props).onDragStart)===null||v===void 0||v.call(j,C)}),_.on("drag",T=>{var j,v;const C=T;C.lngLat=i.getLngLat(),(v=(j=o.current.props).onDrag)===null||v===void 0||v.call(j,C)}),_.on("dragend",T=>{var j,v;const C=T;C.lngLat=i.getLngLat(),(v=(j=o.current.props).onDragEnd)===null||v===void 0||v.call(j,C)}),_},[]);w.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:c,offset:u,style:d,draggable:h=!1,popup:g=null,rotation:y=0,rotationAlignment:p="auto",pitchAlignment:b="auto"}=e;return w.useEffect(()=>{jt(i.getElement(),d)},[d]),w.useImperativeHandle(t,()=>i,[]),(i.getLngLat().lng!==a||i.getLngLat().lat!==c)&&i.setLngLat([a,c]),u&&!Cc(i.getOffset(),u)&&i.setOffset(u),i.isDraggable()!==h&&i.setDraggable(h),i.getRotation()!==y&&i.setRotation(y),i.getRotationAlignment()!==p&&i.setRotationAlignment(p),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==g&&i.setPopup(g),Ts.createPortal(e.children,i.getElement())}w.memo(w.forwardRef(Rc));function Eo(e){return new Set(e?e.trim().split(/\s+/):[])}function Dc(e,t){const{map:n,mapLib:r}=w.useContext(Wt),o=w.useMemo(()=>document.createElement("div"),[]),i=w.useRef({props:e});i.current.props=e;const a=w.useMemo(()=>{const c={...e},u=new r.Popup(c);return u.setLngLat([e.longitude,e.latitude]),u.once("open",d=>{var h,g;(g=(h=i.current.props).onOpen)===null||g===void 0||g.call(h,d)}),u},[]);if(w.useEffect(()=>{const c=u=>{var d,h;(h=(d=i.current.props).onClose)===null||h===void 0||h.call(d,u)};return a.on("close",c),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",c),a.isOpen()&&a.remove()}},[]),w.useEffect(()=>{jt(a.getElement(),e.style)},[e.style]),w.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Ve(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){const c=Eo(a.options.className),u=Eo(e.className);for(const d of c)u.has(d)||a.removeClassName(d);for(const d of u)c.has(d)||a.addClassName(d);a.options.className=e.className}return Ts.createPortal(e.children,o)}const Ic=w.memo(w.forwardRef(Dc));function cn(e,t,n,r){const o=w.useContext(Wt),i=w.useMemo(()=>e(o),[]);return w.useEffect(()=>{const a=t,c=null,u=typeof t=="function"?t:null,{map:d}=o;return d.hasControl(i)||(d.addControl(i,a==null?void 0:a.position),c&&c(o)),()=>{u&&u(o),d.hasControl(i)&&d.removeControl(i)}},[]),i}function Pc(e){const t=cn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return w.useEffect(()=>{jt(t._container,e.style)},[e.style]),null}w.memo(Pc);function Bc(e){const t=cn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return w.useEffect(()=>{jt(t._controlContainer,e.style)},[e.style]),null}w.memo(Bc);function Fc(e,t){const n=w.useRef({props:e}),r=cn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=c=>{i._container.hasChildNodes()||a(c)},i.on("geolocate",c=>{var u,d;(d=(u=n.current.props).onGeolocate)===null||d===void 0||d.call(u,c)}),i.on("error",c=>{var u,d;(d=(u=n.current.props).onError)===null||d===void 0||d.call(u,c)}),i.on("outofmaxbounds",c=>{var u,d;(d=(u=n.current.props).onOutOfMaxBounds)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationstart",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationStart)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationend",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationEnd)===null||d===void 0||d.call(u,c)}),i},{position:e.position});return n.current.props=e,w.useImperativeHandle(t,()=>r,[]),w.useEffect(()=>{jt(r._container,e.style)},[e.style]),null}w.memo(w.forwardRef(Fc));function Vc(e){const t=cn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return w.useEffect(()=>{jt(t._container,e.style)},[e.style]),null}const zc=w.memo(Vc);function qc(e){const t=cn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=w.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),w.useEffect(()=>{jt(t._container,o)},[o]),null}w.memo(qc);function Dn(e,t){if(!e)throw new Error(t)}function Wc(e,t,n,r){if(Dn(n.id===r.id,"layer id changed"),Dn(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:c,maxzoom:u,beforeId:d}=n;if(d!==r.beforeId&&e.moveLayer(t,d),o!==r.layout){const h=r.layout||{};for(const g in o)Ve(o[g],h[g])||e.setLayoutProperty(t,g,o[g]);for(const g in h)o.hasOwnProperty(g)||e.setLayoutProperty(t,g,void 0)}if(i!==r.paint){const h=r.paint||{};for(const g in i)Ve(i[g],h[g])||e.setPaintProperty(t,g,i[g]);for(const g in h)i.hasOwnProperty(g)||e.setPaintProperty(t,g,void 0)}Ve(a,r.filter)||e.setFilter(t,a),(c!==r.minzoom||u!==r.maxzoom)&&e.setLayerZoomRange(t,c,u)}function Uc(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let Zc=0;function Hc(e){const t=w.useContext(Wt).map.getMap(),n=w.useRef(e),[,r]=w.useState(0),o=w.useMemo(()=>e.id||`jsx-layer-${Zc++}`,[]);if(w.useEffect(()=>{if(t){const a=()=>r(c=>c+1);return t.on("styledata",a),a(),()=>{t.off("styledata",a),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{Wc(t,o,e,n.current)}catch(a){console.warn(a)}else Uc(t,o,e);return n.current=e,null}let Kc=0;function Gc(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function Yc(e,t,n){Dn(t.id===n.id,"source id changed"),Dn(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Ve(n[a],t[a])&&(r=a,o++);if(!o)return;const i=t.type;i==="geojson"?e.setData(t.data):i==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&o===1&&r==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&r==="url"?e.setUrl(t.url):"setTiles"in e&&r==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}function Xc(e){const t=w.useContext(Wt).map.getMap(),n=w.useRef(e),[,r]=w.useState(0),o=w.useMemo(()=>e.id||`jsx-source-${Kc++}`,[]);w.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(c=>c+1),0);return t.on("styledata",a),a(),()=>{var c;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const u=(c=t.getStyle())===null||c===void 0?void 0:c.layers;if(u)for(const d of u)d.source===o&&t.removeLayer(d.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?Yc(i,e,n.current):i=Gc(t,o,e),n.current=e,i&&Q.Children.map(e.children,a=>a&&w.cloneElement(a,{source:o}))||null}const Qc=import("mapbox-gl"),Hs=Q.forwardRef(function(t,n){return Lc(t,n,Qc)}),Ks=Ic,Gs=zc,Ys=Hc,Xs=Xc,Jc="_mapContainer_84pkf_2",e0={mapContainer:Jc};la.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const Qs=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],popUp:u=!1,sources:d=[],layers:h=[]})=>{const g=w.useRef(),[y,p]=w.useState(null),b=ca.useSelector(f=>f.mapState.showTexts);return w.useEffect(()=>{if(g.current){const f=g.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(b?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[b]),l.jsx("div",{className:`${e0.mapContainer}`,style:i,children:l.jsxs(Hs,{initialViewState:e,ref:g,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[d.length&&d.map((f,x)=>l.jsx(Xs,{...f,children:h.length&&h.map((_,T)=>{if(_.sourceId==f.id)return l.jsx(Ys,{..._.layer,beforeId:o},T)})},x)),l.jsx(Gs,{position:"bottom-right",visualizePitch:!0}),u&&y&&l.jsx(Ks,{longitude:u.longitude,latitude:u.latitude,anchor:u.anchor,onClose:()=>p(null),children:u.content})]})})};Qs.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.object,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.shape({latitude:s.number,longitude:s.number,anchor:s.string,content:s.element}),textsUrl:s.string,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minZoom:s.number,maxZoom:s.number,paint:s.object})}))};const t0="_mapContainer_b0pyr_3",n0={mapContainer:t0},r0="_FeaturePopUp_4sba4_2",o0="_title_4sba4_10",No={FeaturePopUp:r0,title:o0},s0=({props:e})=>{const{t}=oe.useTranslation();return l.jsx("div",{className:No.FeaturePopUp,children:e.map(n=>l.jsxs("p",{children:[l.jsxs("span",{className:No.title,children:[l.jsx(oe.Trans,{i18nKey:n.name,components:{sup:l.jsx("sup",{})},shouldUnescape:!0}),":"]}),isNaN(n.value)?l.jsx(l.Fragment,{children:t(n.value)}):l.jsxs(l.Fragment,{children:[n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]})]}))})},Js=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],sources:u=[],layers:d=[],popUpParams:h,onClosePopUp:g,showTexts:y,hash:p=!1})=>{const b=w.useRef();return w.useEffect(()=>{if(b.current){const f=b.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(y?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[y]),w.useEffect(()=>{let f=new ua.Protocol;return or.addProtocol("pmtiles",f.tile),()=>{or.removeProtocol("pmtiles")}},[]),l.jsx("div",{className:`${n0.mapContainer}`,style:i,children:l.jsxs(Hs,{mapLib:or,initialViewState:e,ref:b,hash:p,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[u.length&&u.map((f,x)=>l.jsx(Xs,{...f,children:d.length&&d.map((_,T)=>{if(_.sourceId==f.id)return l.jsx(Ys,{..._.layer,beforeId:o,filter:_.filters?_.filters:["all"],layout:{visibility:_.layer.visibility||"visible"}},T)})},x)),l.jsx(Gs,{position:"bottom-right",visualizePitch:!0}),h&&l.jsx(Ks,{longitude:h.lng,latitude:h.lat,onClose:g,children:l.jsx(s0,{props:h.props})})]})})};Js.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.string,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.bool,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minzoom:s.number,maxzoom:s.number,paint:s.object,visibility:s.string}),filters:s.array})),showTexts:s.bool,popUpParams:s.object,onClosePopUp:s.func};const i0="_sectionBar_yf2vy_2",a0="_leftContent_yf2vy_14",l0="_textContainer_yf2vy_20",c0="_title_yf2vy_27",u0="_subtitle_yf2vy_33",d0="_rightContent_yf2vy_38",vt={sectionBar:i0,leftContent:a0,textContainer:l0,title:c0,subtitle:u0,rightContent:d0},ei=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o,width:i,titleColor:a="#605b56",subTitleColor:c="#605b56",borderTop:u=!1})=>{const{t:d}=oe.useTranslation();return l.jsxs("div",{className:vt.sectionBar,style:{width:i&&i,borderTop:u?"1px solid #000":"0px"},children:[l.jsxs("div",{className:vt.leftContent,children:[e&&l.jsx("img",{src:e,alt:"Icono",className:vt.icon}),l.jsxs("div",{className:vt.textContainer,children:[l.jsx("div",{className:vt.title,style:{color:a},children:d(t)}),n&&l.jsx("div",{className:vt.subtitle,style:{color:c},children:n})]})]}),l.jsx("div",{className:vt.rightContent,children:r})]})};ei.propTypes={leftIcon:s.string,title:s.string.isRequired,subtitle:s.string,rightContent:s.node,mainColor:s.string,width:s.oneOfType([s.string,s.number]),borderTop:s.bool};const f0=da.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(e,t)=>{e.showTexts=t.payload},setYear:(e,t)=>{e.sliderSelectedYear=t.payload},setActiveIndicatorKey:(e,t)=>{e.activeIndicatorKey=t.payload},setActiveIndicatorType:(e,t)=>{e.activeIndicatorType=t.payload},setActiveIndicatorUnit:(e,t)=>{e.activeIndicatorUnit=t.payload}}}),{setShowTexts:xp,setYear:Cp,setActiveIndicatorKey:_p,setActiveIndicatorType:wp,setActiveIndicatorUnit:Sp}=f0.actions,p0="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e",m0="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e";function ti(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ti(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ti(e))&&(r&&(r+=" "),r+=t);return r}function Oo(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function h0(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",c=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const g0=Q.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const y0=()=>Q.useContext(g0)??!1;function ni(...e){const t=Q.useRef(void 0),n=Q.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return Q.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function on(e){return typeof e=="string"}function b0(e,t,n){return e===void 0||on(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function An(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Ao(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function v0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const p=pt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return p.length>0&&(f.className=p),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=An({...o,...r}),c=Ao(r),u=Ao(o),d=t(a),h=pt(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...d,...n,...u,...c};return h.length>0&&(y.className=h),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:d.ref}}function x0(e,t,n){return typeof e=="function"?e(t,n):e}function ut(e){var g;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:x0(n,r),{props:c,internalRef:u}=v0({...i,externalSlotProps:a}),d=ni(u,a==null?void 0:a.ref,(g=e.additionalProps)==null?void 0:g.ref);return b0(t,{...c,ref:d},r)}function Ln(e){return e&&e.ownerDocument||document}function C0(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=Q.useRef(t!==void 0),[a,c]=Q.useState(n),u=i?t:a;if(process.env.NODE_ENV!=="production"){Q.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
20
+ */var ir,ao;function Ia(){if(ao)return ir;ao=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ir=o()?Object.assign:function(i,a){for(var c,u=r(i),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var g in c)t.call(c,g)&&(u[g]=c[g]);if(e){d=e(c);for(var y=0;y<d.length;y++)n.call(c,d[y])&&(u[d[y]]=c[d[y]])}}return u},ir}var ar,lo;function Br(){if(lo)return ar;lo=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ar=e,ar}var lr,co;function Ns(){return co||(co=1,lr=Function.call.bind(Object.prototype.hasOwnProperty)),lr}var cr,uo;function Pa(){if(uo)return cr;uo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Br(),n={},r=Ns();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in i)if(r(i,h)){var g;try{if(typeof i[h]!="function"){var y=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}g=i[h](a,h,u,c,null,t)}catch(b){g=b}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var m=d?d():"";e("Failed "+c+" type: "+g.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},cr=o,cr}var ur,fo;function Ba(){if(fo)return ur;fo=1;var e=Es(),t=Ia(),n=Br(),r=Ns(),o=Pa(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return ur=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(R){var L=R&&(d&&R[d]||R[h]);if(typeof L=="function")return L}var y="<<anonymous>>",m={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:T(),arrayOf:j,element:v(),elementType:C(),instanceOf:S,node:B(),objectOf:A,oneOf:$,oneOfType:E,shape:p,exact:N};function b(R,L){return R===L?R!==0||1/R===1/L:R!==R&&L!==L}function f(R,L){this.message=R,this.data=L&&typeof L=="object"?L:{},this.stack=""}f.prototype=Error.prototype;function x(R){if(process.env.NODE_ENV!=="production")var L={},J=0;function K(Z,te,G,U,re,ee,le){if(U=U||y,ee=ee||G,le!==n){if(u){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 se=U+":"+G;!L[se]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+U+"`. 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[se]=!0,J++)}}return te[G]==null?Z?te[G]===null?new f("The "+re+" `"+ee+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new f("The "+re+" `"+ee+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:R(te,G,U,re,ee)}var P=K.bind(null,!1);return P.isRequired=K.bind(null,!0),P}function _(R){function L(J,K,P,Z,te,G){var U=J[K],re=z(U);if(re!==R){var ee=Y(U);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+ee+"` supplied to `"+P+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return x(L)}function T(){return x(a)}function j(R){function L(J,K,P,Z,te){if(typeof R!="function")return new f("Property `"+te+"` of component `"+P+"` has invalid PropType notation inside arrayOf.");var G=J[K];if(!Array.isArray(G)){var U=z(G);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+P+"`, expected an array."))}for(var re=0;re<G.length;re++){var ee=R(G,re,P,Z,te+"["+re+"]",n);if(ee instanceof Error)return ee}return null}return x(L)}function v(){function R(L,J,K,P,Z){var te=L[J];if(!c(te)){var G=z(te);return new f("Invalid "+P+" `"+Z+"` of type "+("`"+G+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return x(R)}function C(){function R(L,J,K,P,Z){var te=L[J];if(!e.isValidElementType(te)){var G=z(te);return new f("Invalid "+P+" `"+Z+"` of type "+("`"+G+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return x(R)}function S(R){function L(J,K,P,Z,te){if(!(J[K]instanceof R)){var G=R.name||y,U=ae(J[K]);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+P+"`, expected ")+("instance of `"+G+"`."))}return null}return x(L)}function $(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function L(J,K,P,Z,te){for(var G=J[K],U=0;U<R.length;U++)if(b(G,R[U]))return null;var re=JSON.stringify(R,function(le,I){var se=Y(I);return se==="symbol"?String(I):I});return new f("Invalid "+Z+" `"+te+"` of value `"+String(G)+"` "+("supplied to `"+P+"`, expected one of "+re+"."))}return x(L)}function A(R){function L(J,K,P,Z,te){if(typeof R!="function")return new f("Property `"+te+"` of component `"+P+"` has invalid PropType notation inside objectOf.");var G=J[K],U=z(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+P+"`, expected an object."));for(var re in G)if(r(G,re)){var ee=R(G,re,P,Z,te+"."+re,n);if(ee instanceof Error)return ee}return null}return x(L)}function E(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var L=0;L<R.length;L++){var J=R[L];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(J)+" at index "+L+"."),a}function K(P,Z,te,G,U){for(var re=[],ee=0;ee<R.length;ee++){var le=R[ee],I=le(P,Z,te,G,U,n);if(I==null)return null;I.data&&r(I.data,"expectedType")&&re.push(I.data.expectedType)}var se=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new f("Invalid "+G+" `"+U+"` supplied to "+("`"+te+"`"+se+"."))}return x(K)}function B(){function R(L,J,K,P,Z){return k(L[J])?null:new f("Invalid "+P+" `"+Z+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return x(R)}function D(R,L,J,K,P){return new f((R||"React class")+": "+L+" type `"+J+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+P+"`.")}function p(R){function L(J,K,P,Z,te){var G=J[K],U=z(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type `"+U+"` "+("supplied to `"+P+"`, expected `object`."));for(var re in R){var ee=R[re];if(typeof ee!="function")return D(P,Z,te,re,Y(ee));var le=ee(G,re,P,Z,te+"."+re,n);if(le)return le}return null}return x(L)}function N(R){function L(J,K,P,Z,te){var G=J[K],U=z(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type `"+U+"` "+("supplied to `"+P+"`, expected `object`."));var re=t({},J[K],R);for(var ee in re){var le=R[ee];if(r(R,ee)&&typeof le!="function")return D(P,Z,te,ee,Y(le));if(!le)return new f("Invalid "+Z+" `"+te+"` key `"+ee+"` supplied to `"+P+"`.\nBad object: "+JSON.stringify(J[K],null," ")+`
21
+ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var I=le(G,ee,P,Z,te+"."+ee,n);if(I)return I}return null}return x(L)}function k(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(k);if(R===null||c(R))return!0;var L=g(R);if(L){var J=L.call(R),K;if(L!==R.entries){for(;!(K=J.next()).done;)if(!k(K.value))return!1}else for(;!(K=J.next()).done;){var P=K.value;if(P&&!k(P[1]))return!1}}else return!1;return!0;default:return!1}}function F(R,L){return R==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function z(R){var L=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":F(L,R)?"symbol":L}function Y(R){if(typeof R>"u"||R===null)return""+R;var L=z(R);if(L==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return L}function W(R){var L=Y(R);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function ae(R){return!R.constructor||!R.constructor.name?y:R.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},ur}var dr,po;function Va(){if(po)return dr;po=1;var e=Br();function t(){}function n(){}return n.resetWarningCache=t,dr=function(){function r(a,c,u,d,h,g){if(g!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},dr}var mo;function Fa(){if(mo)return hn.exports;if(mo=1,process.env.NODE_ENV!=="production"){var e=Es(),t=!0;hn.exports=Ba()(e.isElement,t)}else hn.exports=Va()();return hn.exports}var za=Fa();const s=Ma(za),Os=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isActive:i,activeColor:a,fontColor:c,moreInfo:u})=>{const{name:d,created_at:h,id:g,isBeingProcessed:y}=e;return l.jsxs("div",{className:Kt.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[l.jsxs("div",{className:Kt.ambitNameDate,onClick:()=>o(g),children:[l.jsxs("div",{className:Kt.ambitName,children:[l.jsx("img",{style:{marginRight:9},src:i?Aa:La}),l.jsx("span",{style:{color:i?a:c},children:d})]}),l.jsx("div",{className:Kt.ambitDate,children:h?new Date(h).toLocaleDateString():""})]}),l.jsxs("div",{className:Kt.ambitButtons,children:[y&&l.jsx("img",{src:Oa}),l.jsx("button",{onClick:()=>r(g),disabled:e.is_default,children:l.jsx("img",{src:Na})}),l.jsx("button",{onClick:()=>t(g),children:l.jsx("img",{src:Ea})}),l.jsx("button",{onClick:()=>n(g),disabled:e.is_default,children:l.jsx("img",{src:$a})})]})]})};Os.propTypes={ambit:s.shape({name:s.string.isRequired,created_at:s.string,id:s.string.isRequired,isBeingProcessed:s.bool}).isRequired,onClickCopy:s.func.isRequired,onClickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,isBeingProcessed:s.bool,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.object};const ho="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",qa="_generalButton_phq4n_2",Wa={generalButton:qa},ln=({children:e,onClick:t,fontColor:n="#605B56",borderColor:r="#605B56",backgroundColor:o="#fff",type:i="button",containerStyles:a={},disabled:c=!1})=>l.jsx("button",{className:Wa.generalButton,style:{color:n,border:`1.5px solid ${r}`,background:o,...a},onClick:t,type:i,disabled:c,children:e}),As=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,newAmbitLabel:a="New field",buttonContainerStyles:c={},containerStyles:u={},onCLickNewAmbit:d=()=>console.log("New ambit clicked"),onClickCopy:h=b=>console.log(`Copy ambit: ${b}`),onCLickDelete:g=b=>console.log(`Delete ambit: ${b}`),onClickFilters:y=b=>console.log(`Filters clicked: ${b}`),onClickAmbit:m=b=>console.log(`OnCLickAmbit: ${b}`)})=>{const{t:b}=oe.useTranslation(),[f,x]=w.useState(e);w.useEffect(()=>{e&&x(e)},[e]);const _=T=>{if(f&&f.length>0){let j=[...f];j.sort((v,C)=>v[T].localeCompare(C[T])),x(j)}};return l.jsxs("div",{className:lt.ambitSelector,style:{color:n,...u},children:[l.jsxs("div",{className:lt.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsxs("div",{className:lt.nameDateContainer,children:[l.jsx("div",{className:lt.ambitName,children:l.jsxs("button",{onClick:()=>_("name"),children:[l.jsx("span",{children:b(o)}),l.jsx("img",{src:ho})]})}),l.jsx("div",{className:lt.ambitDate,children:l.jsxs("button",{onClick:()=>_("date"),children:[l.jsx("span",{children:b(i)}),l.jsx("img",{src:ho})]})})]}),l.jsx("div",{className:lt.buttonsContainer})]}),l.jsx("div",{className:lt.ambitListContainer,children:f&&f.length>0&&f.map(T=>l.jsx(Os,{isActive:t==T.id,ambit:T,fontColor:n,activeColor:r,onClickCopy:h,onClickDelete:g,onClickFilters:y,onClickAmbit:m},`ambitKey${T.id}`))}),l.jsx("div",{className:lt.newAmbitButtonContainer,children:l.jsx(ln,{style:{...c},onClick:d,borderColor:"grey",children:b(a)})})]})};As.propTypes={ambitList:s.arrayOf(s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired})).isRequired,activeAmbitId:s.string,fontColor:s.string,activeColor:s.string,onClickCopy:s.func.isRequired,onCLickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,nameLabel:s.string,dateLabel:s.string,newAmbitLabel:s.string,buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewAmbit:s.func};const Ua="_buttonsContainer_1ks7x_2",Za="_vertical_1ks7x_6",Ha="_horizontal_1ks7x_9",Ka="_button_1ks7x_2",Ga="_active_1ks7x_25",Ya="_buttonName_1ks7x_28",yt={buttonsContainer:Ua,vertical:Za,horizontal:Ha,button:Ka,active:Ga,buttonName:Ya},Xa="_left_1l4m4_2",Qa="_top_1l4m4_40",Ja="_bottom_1l4m4_79",el="_right_1l4m4_118",tl={left:Xa,top:Qa,bottom:Ja,right:el},et=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=oe.useTranslation();return l.jsx("div",{className:`tooltip ${tl[t]}`,style:n,children:r(e)})};et.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const Ls=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=oe.useTranslation();return l.jsx("div",{className:`${yt.buttonsContainer} ${t==="vertical"&&yt.vertical}
22
+ ${t==="horizontal"&&yt.horizontal}`,children:e.map((c,u)=>{const{icon:d,activeIcon:h,isActive:g,name:y,onClick:m,disabled:b}=c,f=l.jsxs(l.Fragment,{children:[n&&r==="left"&&l.jsx("span",{className:yt.buttonName,children:a(y)}),l.jsx("img",{src:g?h:d,alt:a(y)}),n&&r==="right"&&l.jsx("span",{className:yt.buttonName,children:a(y)})]});return l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:m,className:`${yt.button}
23
+ ${g&&yt.active}`,disabled:b,children:f}),o&&l.jsx(et,{text:y,position:i})]},u)})})};Ls.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func,disabled:s.bool})).isRequired,orientation:s.oneOf(["horizontal","vertical"]),showName:s.bool,namePosition:s.oneOf(["left","right"]),useTooltip:s.bool,tooltipPosition:s.oneOf(["top","bottom","left","right"])};const nl="_indicatorsCategory_11gdl_2",rl="_title_11gdl_6",ol="_mainTitle_11gdl_14",yn={indicatorsCategory:nl,title:rl,mainTitle:ol},ht=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:c,showBottomBar:u=!0,titleMarginChildren:d=15,mainTitle:h=!1})=>{const{t:g}=oe.useTranslation();return l.jsxs(Pr.motion.div,{className:yn.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&u?`1px solid ${o}`:"0px",minHeight:h?"70px":"50px"},children:[l.jsxs("h2",{style:{...c},className:`${yn.title} ${h&&yn.mainTitle}`,onClick:t,children:[l.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),l.jsx("span",{style:{color:e?o:r},children:g(i)})]}),l.jsx("div",{className:yn.content,style:{padding:h?"20px 0px":"0px"},children:n})]})};ht.propTypes={isOpen:s.bool,onClick:s.func,children:s.node,color:s.string,activeColor:s.string,title:s.string,height:s.number,showBottomBar:s.bool,titleFontStyles:s.object};const sl=()=>l.jsx("div",{children:"EditAmbit"}),il="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",al="_AppliedFiltersContainer_cokx9_2",ll="_AppliedFilterContent_cokx9_11",go={AppliedFiltersContainer:al,AppliedFilterContent:ll},ye=Ts.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null})),Ms=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:i,fontColor:a="#605B56"})=>{const{t:c}=oe.useTranslation(),{tematicalFiltersSelected:u,activeFiltersType:d}=ye(y=>y),h=y=>{ye.setState(m=>({tematicalFiltersSelected:m.tematicalFiltersSelected.filter(b=>b.code!==y)}))},g=()=>{d=="applied"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"applied"}))};return l.jsx(ht,{isOpen:n,onClick:g,title:e?c(e):"Applied Filters",activeColor:i,mainTitle:!0,color:a,children:l.jsx("div",{className:go.AppliedFiltersContainer,children:u==null?void 0:u.map((y,m)=>l.jsxs("div",{className:go.AppliedFilterContent,style:{color:r,background:o},children:[c(y.name),l.jsx("img",{src:il,alt:"CloseIcon",onClick:()=>h(y.code),style:{cursor:"pointer"}})]},m))})})};Ms.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,indicators:s.arrayOf(s.shape({title:s.string.isRequired,Codename:s.string.isRequired})),activeColor:s.string};const cl="_layersList_cn837_25",ul="_layerName_cn837_34",yo={layersList:cl,layerName:ul},Rs=({title:e,isOpen:t=!0,fontColor:n="#605B56",backgroundColor:r="#605B5680",activeColor:o,geoLayers:i=[],onGeoLayersChange:a})=>{const{t:c}=oe.useTranslation(),{activeFiltersType:u}=ye(g=>g),d=()=>{u==="geographical"?ye.setState({activeFiltersType:null}):ye.setState({activeFiltersType:"geographical"})},h=g=>{const y=i.map(m=>({...m,active:m.name===g.name}));a==null||a(y)};return l.jsx(ht,{isOpen:u==="geographical",onClick:d,title:e?c(e):"Geographical Filters",activeColor:o,color:n,mainTitle:!0,children:l.jsx("div",{className:yo.layersList,children:i.map(g=>l.jsx("div",{className:yo.layerName,style:{color:g.active?o:n,fontWeight:g.active?"bold":"normal"},onClick:()=>h(g),children:c(g.name)},g.name))})})};Rs.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,activeColor:s.string};const dl="_checkboxContainer_1nxra_2",fl={checkboxContainer:dl},Ds=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=oe.useTranslation(),{title:a}=r||{},{fontColor:c,inputsColor:u}=ye(d=>d);return l.jsxs("div",{style:{...t,color:n},role:"checkbox",className:fl.checkboxContainer,onClick:e,children:[l.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?u:c}`,backgroundColor:o?u:"white"}}),l.jsx("span",{className:"checkmark",children:i(a)})]})};Ds.propTypes={onClick:s.func,value:s.bool,containerStyles:s.object,color:s.string,indicator:s.shape({title:s.string,codename:s.array}),checkedColor:s.string};function Tr(e,t){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Tr(e,t)}function pl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tr(e,t)}function fr(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function pr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function bn(e){return e!==null&&e.length===1?e[0]:e.slice()}function vn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function bt(e,t){return kr(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function kr(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let jr=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=c=>{c.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=c=>{o.setState({pending:!0});const u=o.getMousePosition(c),d=o.getDiffPosition(u[0]),h=o.getValueFromPosition(d);o.move(h)},o.onTouchMove=c=>{if(c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);if(o.isScrolling===void 0){const g=u[0]-o.startPosition[0],y=u[1]-o.startPosition[1];o.isScrolling=Math.abs(y)>Math.abs(g)}if(o.isScrolling)return void o.setState({index:-1});const d=o.getDiffPosition(u[0]),h=o.getValueFromPosition(d);o.move(h)},o.onKeyDown=c=>{if(!(c.ctrlKey||c.shiftKey||c.altKey||c.metaKey))switch(o.setState({pending:!0}),c.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":c.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":c.preventDefault(),o.moveUpByStep();break;case"Home":c.preventDefault(),o.move(o.props.min);break;case"End":c.preventDefault(),o.move(o.props.max);break;case"PageDown":c.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":c.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=c=>{if(!o.props.disabled&&c.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const u=o.getMousePosition(c);o.forceValueFromPosition(u[0],d=>{o.start(d,u[0]),vn(o.getMouseEventMap())})}fr(c)}},o.onSliderClick=c=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const u=o.getMousePosition(c),d=bt(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(d)}},o.createOnKeyDown=c=>u=>{o.props.disabled||(o.start(c),vn(o.getKeyDownEventMap()),fr(u))},o.createOnMouseDown=c=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});const d=o.getMousePosition(u);o.start(c,d[0]),vn(o.getMouseEventMap()),fr(u)},o.createOnTouchStart=c=>u=>{if(o.props.disabled||u.touches.length>1)return;o.setState({pending:!0});const d=o.getTouchPosition(u);o.startPosition=d,o.isScrolling=void 0,o.start(c,d[0]),vn(o.getTouchEventMap()),function(h){h.stopPropagation&&h.stopPropagation()}(u)},o.handleResize=()=>{const c=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(c)},o.renderThumb=(c,u)=>{const d=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),h={ref:y=>{o["thumb"+u]=y},key:o.props.thumbClassName+"-"+u,className:d,style:c,onMouseDown:o.createOnMouseDown(u),onTouchStart:o.createOnTouchStart(u),onFocus:o.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[u],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[u]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[u]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},g={index:u,value:bn(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(h["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(g)),o.props.renderThumb(h,g)},o.renderTrack=(c,u,d)=>{const h={key:o.props.trackClassName+"-"+c,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+c,style:o.buildTrackStyle(u,o.state.upperBound-d)},g={index:c,value:bn(o.state.value)};return o.props.renderTrack(h,g)};let i=pr(r.value);i.length||(i=pr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let c=0;c<i.length;c+=1)i[c]=bt(i[c],r),a.push(c);return o.resizeObserver=null,o.resizeElementRef=w.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}pl(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,o){const i=pr(r.value);return i.length?o.pending?null:{value:i.map(a=>bt(a,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(o){Object.keys(o).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,o[i],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return bn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,c=a.length;for(let u=0;u<c;u+=1){const d=this.calcOffset(a[u]),h=Math.abs(r-d);h<o&&(o=h,i=u)}return i},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const o=r.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const o=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return bt(this.state.startValue+o,this.props)},n.getDiffPosition=function(r){let o=r-this.state.startPosition;return this.props.invert&&(o*=-1),o},n.resize=function(){const{slider:r,thumb0:o}=this;if(!r||!o)return;const i=this.sizeKey(),a=r.getBoundingClientRect(),c=r[i],u=a[this.posMaxKey()],d=a[this.posMinKey()],h=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],g=c-h,y=Math.abs(u-d);this.state.upperBound===g&&this.state.sliderLength===y&&this.state.thumbSize===h||this.setState({upperBound:g,sliderLength:y,thumbSize:h})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,i=o.getBoundingClientRect(),a=i[this.posMaxKey()],c=i[this.posMinKey()];let u=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:c));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),c=bt(this.calcValue(i),this.props),u=this.state.value.slice();u[a]=c;for(let d=0;d<u.length-1;d+=1)if(u[d+1]-u[d]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{o(a),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const i=this["thumb"+r];i&&i.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(r),1),a.push(r),this.setState(c=>({startValue:c.value[r],startPosition:o!==void 0?o:c.startPosition,index:r,zIndices:a}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=bt(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(i,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=bt(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(i,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:i}=this.state,{length:a}=o,c=o[i];if(r===c)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:d,min:h,minDistance:g}=this.props;if(!u){if(i>0){const y=o[i-1];r<y+g&&(r=y+g)}if(i<a-1){const y=o[i+1];r>y-g&&(r=y-g)}}o[i]=r,u&&a>1&&(r>c?(this.pushSucceeding(o,g,i),function(y,m,b,f){for(let x=0;x<y;x+=1){const _=f-x*b;m[y-1-x]>_&&(m[y-1-x]=_)}}(a,o,g,d)):r<c&&(this.pushPreceding(o,g,i),function(y,m,b,f){for(let x=0;x<y;x+=1){const _=f+x*b;m[x]<_&&(m[x]=_)}}(a,o,g,h))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,c;for(a=i,c=r[a]+o;r[a+1]!==null&&c>r[a+1];a+=1,c=r[a]+o)r[a+1]=kr(c,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,c=r[a]-o;r[a-1]!==null&&c<r[a-1];a-=1,c=r[a]-o)r[a-1]=kr(c,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](bn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return i[this.posMinKey()]=r+"px",i},n.buildTrackStyle=function(r,o){const i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=r,i[this.posMaxKey()]=o,i},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,i=[];for(let c=0;c<o;c+=1)i[c]=this.buildThumbStyle(r[c],c);const a=[];for(let c=0;c<o;c+=1)a[c]=this.renderThumb(i[c],c);return a},n.renderTracks=function(r){const o=[],i=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let a=0;a<i;a+=1)o.push(this.renderTrack(a+1,r[a],r[a+1]));return o.push(this.renderTrack(i+1,r[i],this.state.upperBound)),o},n.renderMarks=function(){let{marks:r}=this.props;const o=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:o}).map((i,a)=>a):typeof r=="number"&&(r=Array.from({length:o}).map((i,a)=>a).filter(i=>i%r==0)),r.map(parseFloat).sort((i,a)=>i-a).map(i=>{const a=this.calcOffset(i),c={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(c)})},n.render=function(){const r=[],{value:o}=this.state,i=o.length;for(let d=0;d<i;d+=1)r[d]=this.calcOffset(o[d],d);const a=this.props.withTracks?this.renderTracks(r):null,c=this.renderThumbs(r),u=this.props.marks?this.renderMarks():null;return w.createElement("div",{ref:d=>{this.slider=d,this.resizeElementRef.current=d},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,c,u)},t}(w.Component);jr.displayName="ReactSlider",jr.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>w.createElement("div",e),renderTrack:e=>w.createElement("div",e),renderMark:e=>w.createElement("span",e)};var $r=jr;const ml="_container_4u41i_2",hl="_unitLabel_4u41i_8",gl="_slider_4u41i_11",yl="_thumb_4u41i_17",bl="_track_4u41i_26",vl="_labels_4u41i_32",Et={container:ml,unitLabel:hl,slider:gl,thumb:yl,track:bl,labels:vl},Is=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",defaultValue:c,isDate:u})=>{const{t:d}=oe.useTranslation(),h=u?new Date(e).getTime():null,g=u?new Date(t).getTime():null,[y,m]=w.useState(u?[h,g]:[e,t]),b=f=>{m(f),r==null||r({min:f[0],max:f[1]})};return w.useEffect(()=>{c||m(u?[h,g]:[e,t])},[c,u]),l.jsxs("div",{className:Et.container,style:{width:`${o}px`,color:`${a}`},children:[l.jsx("div",{className:Et.unitLabel,children:l.jsx("span",{children:d(i)})}),l.jsx($r,{className:Et.slider,thumbClassName:Et.thumb,trackClassName:Et.track,min:u?h:e,max:u?g:t,step:u?(g-h)/30:n,value:y,onAfterChange:b,withTracks:!0,pearling:!u,minDistance:u?0:.1}),l.jsxs("div",{className:Et.labels,children:[l.jsx("span",{children:u?new Date(y[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[0]}),l.jsx("span",{children:u?new Date(y[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[1]})]})]})};Is.propTypes={min:s.number,max:s.number,step:s.number,initialMin:s.number,initialMax:s.number,onChange:s.func,width:s.number,unit:s.string,fontColor:s.string,value:s.arrayOf(s.number)};const xl="_tematicalFiltersInputContainer_1vm1r_2",Cl="_inputTypeContainer_1vm1r_2",_l="_checkboxContainer_1vm1r_28",wl="_absoluteSliderContainer_1vm1r_37",xn={tematicalFiltersInputContainer:xl,inputTypeContainer:Cl,checkboxContainer:_l,absoluteSliderContainer:wl},Vr=({indicator:e,activeColor:t})=>{const[n,r]=w.useState(),{type:o,name:i,values:a,minValue:c,maxValue:u,unit:d,step:h,disabled:g,isDate:y}=e||{},m=w.useMemo(()=>o=="cat"||n=="cat",[n,o]),b=w.useMemo(()=>o=="abs"||n=="abs",[n,o]),{tematicalFiltersSelected:f,selectedIndicator:x,fontColor:_,inputsColor:T}=ye(C=>C),j=C=>{if(C){const{min:S,max:$,valueClicked:A,allValues:E}=C||{},{code:B,type:D,source:p}=e||{},N=b?"abs":m?"cat":"both";let k=B[0];D=="both"&&(k=N=="cat"?B[1]:B[0]),N=="cat"?ye.setState(F=>{let z=F.tematicalFiltersSelected.find(Y=>Y.code===k);if(z){let Y=[z.values];return z.values.includes(A)?Y=z.values.filter(W=>W!==A):Y=[...z.values,A],Y.length==E.length?{tematicalFiltersSelected:F.tematicalFiltersSelected.filter(W=>W.code!==k)}:{tematicalFiltersSelected:F.tematicalFiltersSelected.map(W=>W.code===k?{...W,values:Y}:W)}}else{let Y=(E||[]).map((W,ae)=>ae);return{tematicalFiltersSelected:[...f,{type:"cat",code:k,values:Y.filter(W=>W!==A),name:e.name,source:p,isDate:y}]}}}):N=="abs"&&ye.setState(F=>{let z=F.tematicalFiltersSelected.find(Y=>Y.code===k);if(S==e.minValue&&$==e.maxValue)return{tematicalFiltersSelected:F.tematicalFiltersSelected.filter(Y=>Y.code!==k)};if(z){let Y={...z,min:S,max:$,type:N,isDate:y};return{tematicalFiltersSelected:F.tematicalFiltersSelected.map(W=>W.code===k?Y:W)}}else return{tematicalFiltersSelected:[...f,{type:N,code:k,min:S,max:$,name:e.name,source:e.source}]}})}},v=w.useMemo(()=>{const C={};if((f==null?void 0:f.length)>0)for(const S of f)S.type==="cat"?C[S.code]=new Set(S.values):C[S.code]=[S.min,S.max];return C},[f]);return l.jsx("div",{className:xn.tematicalFiltersInputContainer,children:l.jsxs(ht,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:g?.5:1},title:i,isOpen:x==`id${i}`,onClick:()=>{g||ye.setState(()=>({selectedIndicator:x==`id${i}`?"":`id${i}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:_,activeColor:t,children:[o=="both"&&l.jsxs("div",{className:xn.inputTypeContainer,style:{color:_},children:[l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{r("abs")},style:{marginRight:4,backgroundColor:n=="abs"?T:"white",border:`1.5px solid ${n=="abs"?T:_}`}}),"Absoluto"]}),l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{r("cat")},style:{marginRight:4,backgroundColor:n=="cat"?T:"white",border:`1.5px solid ${n=="cat"?T:_}`}}),"Categórico"]})]}),m&&l.jsx("div",{className:xn.checkboxContainer,children:(a||[]).map((C,S)=>{var $;return l.jsx(Ds,{onClick:()=>j({valueClicked:S,allValues:a}),indicator:C,value:(($=v[e.code[o=="both"?1:0]])==null?void 0:$.has(S))||!v[e.code[o=="both"?1:0]]},`checkbox-${S}`)})}),(b||o=="glb")&&l.jsx("div",{className:xn.absoluteSliderContainer,children:l.jsx(Is,{onChange:j,min:c,max:u,unit:d,defaultValue:v[e.code[0]]?v[e.code[0]]:"",isDate:y,step:h})})]})})};Vr.propTypes={indicator:s.shape({name:s.string,type:s.string,code:s.arrayOf(s.string),values:s.arrayOf(s.shape({codename:s.oneOfType(s.array,s.string),title:s.string}))}),activeColor:s.string};const Ps=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:r}=ye(a=>a),{name:o,indicators:i}=e||{};return l.jsx(ht,{title:o,isOpen:r==`id${o}`,onClick:()=>{ye.setState(a=>({activeSubcategory:a.activeSubcategory===`id${o}`?"":`id${o}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:t,activeColor:n,children:i==null?void 0:i.map((a,c)=>l.jsx(Vr,{indicator:a,fontColor:t,activeColor:n},`indicatorSub-${c}`))})};Ps.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))}),activeColor:s.string};const Bs=({category:e,activeColor:t})=>{const{name:n,subcategories:r,indicators:o}=e||{},{activeCategory:i,fontColor:a}=ye(c=>c);return e&&l.jsx(ht,{onClick:()=>{ye.setState(c=>({activeCategory:i===`id${n}`?"":`id${n}`}))},title:n,isOpen:i===`id${n}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:t,children:r?r.map((c,u)=>l.jsx(Ps,{subcategory:c,fontColor:a,activeColor:t},`subcategory-${u}`)):o&&o.map((c,u)=>l.jsx(Vr,{indicator:c,fontColor:a,activeColor:t},`indicator-${u}`))})};Bs.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array}),activeColor:s.string};const Er=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56",activeColor:i,isExtra:a=!1})=>{const{tematicalFiltersSelected:c,activeFiltersType:u}=ye(g=>g),{t:d}=oe.useTranslation();w.useEffect(()=>{r&&ye.setState(()=>({fontColor:r}))},[r]),w.useEffect(()=>{o&&ye.setState(()=>({inputsColor:o}))},[o]);const h=()=>{a?u==a?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:a})):u=="tematical"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"tematical"}))};return l.jsx(ht,{isOpen:a&&u==a||!a&&u=="tematical",title:n?d(n):"Tematical filters",color:r,activeColor:i,onClick:h,mainTitle:!0,children:e==null?void 0:e.map((g,y)=>l.jsx(Bs,{category:g,fontColor:r,activeColor:i},`category-${y}`))})};Er.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.object),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string,activeColor:s.string};const Sl="_FiltersAmbitContainer_1hv16_2",Tl="_FiltersContainer_1hv16_15",kl="_FiltersAmbitHeader_1hv16_18",jl="_FiltersAmbitTitle_1hv16_26",$l="_FiltersAmbitDescription_1hv16_35",El="_FiltersAmbitDescriptionTitle_1hv16_46",Nl="_warning_1hv16_50",Ol="_buttonContainer_1hv16_53",ct={FiltersAmbitContainer:Sl,FiltersContainer:Tl,FiltersAmbitHeader:kl,FiltersAmbitTitle:jl,FiltersAmbitDescription:$l,FiltersAmbitDescriptionTitle:El,warning:Nl,buttonContainer:Ol},Vs=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:i,backgroundColor:a,onChangeAppliedFilters:c,saveAmbit:u,namePlaceholder:d,descPlaceholder:h,filtersTypes:g=["geographical","tematical"],nameRequiredText:y,geoLayers:m=[],onGeoLayersChange:b,onlyFilters:f=!1,descriptionRequired:x=!1,extraLists:_=!1})=>{const{t:T}=oe.useTranslation(),{tematicalFiltersSelected:j,activeFiltersType:v}=ye(p=>p),[C,S]=w.useState(e||null),[$,A]=w.useState(t||null),[E,B]=w.useState(!1);w.useEffect(()=>{ye.setState({tematicalFiltersSelected:n||[]})},[n]),w.useRef(!1),w.useEffect(()=>{c(j)},[j]);const D=()=>{x?C&&$?u({name:C,description:$}):B(!0):C?u({name:C,description:$}):B(!0)};return w.useEffect(()=>{if(g.includes("geographical")&&v!="geographical"&&m.length>0){const p=m.map(N=>({...N,active:!1}));b==null||b(p)}},[v]),l.jsxs("div",{className:ct.FiltersAmbitContainer,children:[l.jsxs("div",{className:ct.FiltersContainer,children:[!f&&l.jsxs("div",{className:ct.FiltersAmbitHeader,children:[l.jsx("div",{className:ct.FiltersAmbitTitle,children:l.jsx("input",{type:"text",onChange:p=>{B(!1),S(p.target.value)},value:C,placeholder:T(d)})}),l.jsx("div",{className:ct.FiltersAmbitDescription,children:l.jsx("div",{className:ct.FiltersAmbitDescriptionTitle,children:l.jsx("textarea",{value:$,onChange:p=>{x&&B(!1),A(p.target.value)},placeholder:T(h)})})})]}),l.jsx(Ms,{title:T("applied_filters"),isOpen:v=="applied",textColor:i||"#fff",backgroundColor:a||"#605B5680",activeColor:o}),g.includes("geographical")&&l.jsx(Rs,{title:"geo_filters",activeColor:o,geoLayers:m,onGeoLayersChange:b}),g.includes("extra")&&_.map(p=>l.jsx(Er,{indicators:p.indicators,inputsColor:o,textColor:i,title:p.title,activeColor:o,isExtra:p.title})),g.includes("tematical")&&l.jsx(Er,{indicators:r,inputsColor:o,textColor:i,title:"tematical_filters",activeColor:o,isExtra:!1})]}),!f&&l.jsxs("div",{className:ct.buttonContainer,children:[E&&l.jsx("div",{className:ct.warning,children:T(y)}),l.jsx(ln,{onClick:()=>D(),children:T("save_ambit")})]})]})};Vs.propTypes={indicators:s.arrayOf(s.object).isRequired,ambitName:s.string,ambitDescription:s.string,defaultFilters:s.arrayOf(s.object),activeColor:s.string,backgroundColor:s.string,textColor:s.string,onChangeAppliedFilters:s.func,saveAmbit:s.func,namePlaceholder:s.string,descPlaceholder:s.string,filtersTypes:s.arrayOf(s.string).isRequired,nameRequiredText:s.string,extraLists:s.arrayOf(s.object)};const Al="_barChartContainer_1ly7h_2",bo={barChartContainer:Al},Fr=({data:e,barHeight:t=25,gap:n=23,fontColor:r="#605B56",leftPadding:o=200,numberOfDivisions:i=7,maxValue:a=null,orientation:c="horizontal",horizontalPadding:u=c=="vertical"?50:20,verticalPadding:d=10,xLabelPadding:h=c=="vertical"?50:40,containerWidth:g=700,containerHeight:y=500,mainColor:m="#000"})=>{const{xScale:b,yScale:f,ticks:x,height:_,chartWidth:T,svgWidth:j,svgHeight:v,contentWidth:C}=w.useMemo(()=>{if(e&&e.length>0){const S=sr.max(e,A=>A.value)||1,$=a||S;if(c==="vertical"){const A=e.length*(t+n)+u*2,E=Math.max(A,g||0),B=y,p=sr.scaleLinear().domain([0,$]).range([B-100,d]),N=Array.from({length:i+1},(k,F)=>$/i*F);return{yScale:p,ticks:N,height:B,chartWidth:E,svgWidth:E,svgHeight:B,contentWidth:A}}else{const A=e.length*(t+n);console.log("barsHeight: ",A);const E=A+d*2+h+30,B=g+o+u*2,D=sr.scaleLinear().domain([0,$]).range([0,g-u*2]),p=Array.from({length:i+1},(N,k)=>$/i*k);return{xScale:D,ticks:p,height:E,chartWidth:g,svgWidth:B,svgHeight:E,contentWidth:B}}}else return{xScale:null,yScale:null,ticks:[],height:0,svgHeight:0}},[e,i,t,n,u,d,a,c,o,g,y]);return c==="vertical"?l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":m},className:bo.barChartContainer,children:l.jsx("svg",{width:j,height:v,style:{display:"block",width:j,height:v,maxWidth:"none","--main-color":m},children:l.jsxs("g",{transform:`translate(${u}, 0)`,children:[l.jsx("g",{children:x.map((S,$)=>{const A=f(S);return l.jsxs("g",{children:[l.jsx("line",{x1:0,x2:T-u*2,y1:A,y2:A,stroke:"#ccc"}),l.jsx("text",{x:-10,y:A+4,textAnchor:"end",fontSize:10,fill:r,children:parseInt(S)})]},$)})}),e&&e.length>0&&e.map((S,$)=>{const A=f(0)-f(S.value),E=$*(t+n),B=f(S.value);return l.jsxs("g",{children:[l.jsx("rect",{x:E,y:B,width:t,height:A,fill:S.color,rx:0}),l.jsx("text",{x:E+t/2,y:_-h,textAnchor:"start",fill:r,fontSize:12,transform:`rotate(-90, ${E+t/2}, ${_-h})`,children:S.title})]},$)})]})})}):(console.log("svgHeight: ",v),l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":m},className:bo.barChartContainer,children:l.jsx("svg",{width:j,height:v,style:{minWidth:"100%",height:v,width:C,maxWidth:"none"},children:l.jsxs("g",{transform:`translate(0,${d})`,children:[l.jsx("g",{transform:`translate(${o+u}, 0)`,children:x.map((S,$)=>{const A=b(S);return l.jsxs("g",{transform:`translate(${A}, 0)`,children:[l.jsx("line",{y1:0,y2:e.length*(t+n),stroke:"#ccc"}),l.jsx("text",{y:e.length*(t+n)+30,textAnchor:"middle",fontSize:10,fill:r,children:parseInt(S)})]},$)})}),e&&e.length>0&&e.map((S,$)=>{const A=b(S.value),E=$*(t+n);return console.log("y: ",E),l.jsxs("g",{transform:`translate(${o+u}, ${E})`,children:[l.jsx("text",{x:-24,y:t/2+5,textAnchor:"end",fill:r,fontSize:12,children:S.title}),l.jsx("rect",{width:A,height:t,fill:S.color,rx:0})]},$)})]})})}))};Fr.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),length:s.number,barHeight:s.number,gap:s.number,verticalPadding:s.number,horizontalPadding:s.number,numberOfDivisions:s.number,fontColor:s.string,leftPadding:s.number,maxValue:s.number,orientation:s.oneOf(["horizontal","vertical"]),xLabelPadding:s.number,containerWidth:s.number,containerHeight:s.number,minBarWidth:s.number};const Ll="_graphicContainer_1ozwp_2",Ml="_titleContainer_1ozwp_13",vo={graphicContainer:Ll,titleContainer:Ml},Fs=({data:e,graphLength:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:c=7,leftPadding:u=-200,orientation:d="horizontal",xLabelPadding:h=0,mainColor:g})=>{const{t:y}=oe.useTranslation();return l.jsxs("div",{className:vo.graphicContainer,style:{...n||{},paddingBottom:40},children:[l.jsx("div",{className:vo.titleContainer,children:l.jsx("h2",{children:y(o)})}),l.jsx(Fr,{data:e,length:t,fontColor:i,maxValue:a,numberOfDivisions:c,leftPadding:u,orientation:d,xLabelPadding:h,mainColor:g})]})};Fs.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphLength:s.number,containerStyle:s.object,fontColor:s.string,mainColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number,xLabelPadding:s.number};const Rl="_indicatorsCategory_arwy3_2",Dl="_title_arwy3_5",Il="_list_arwy3_13",Cn={indicatorsCategory:Rl,title:Dl,list:Il},Pl="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e",Bl="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e",Vl="_indicatorContainer_17b40_2",Fl="_indicatorNameContainer_17b40_11",zl="_dot_17b40_17",ql="_indicatorName_17b40_11",Wl="_switchExternalContainer_17b40_31",Ul="_switchType_17b40_39",Zl="_switchTypeOptions_17b40_43",Hl="_optionContainer_17b40_54",Kl="_customRadious_17b40_64",Gl="_optionText_17b40_71",Oe={indicatorContainer:Vl,indicatorNameContainer:Fl,dot:zl,indicatorName:ql,switchExternalContainer:Wl,switchType:Ul,switchTypeOptions:Zl,optionContainer:Hl,customRadious:Kl,optionText:Gl},zr=({indicator:e,values:t=[],activeColor:n,defaultColor:r="#92898A",activeIndicator:o,activeIndicatorType:i,onClickIndicator:a,multiple:c=!1,onChangeType:u})=>{const{t:d}=oe.useTranslation(),{name:h,type:g,disabled:y}=e,[m,b]=w.useState(!1);w.useEffect(()=>{o&&b(c?o.some(_=>_.name==String(h)):o.name==h)},[o]);const f=()=>l.jsx("div",{className:Oe.switchExternalContainer,children:l.jsx("div",{className:Oe.switchType,children:l.jsxs("div",{className:Oe.switchTypeOptions,children:[l.jsxs("div",{className:Oe.optionContainer,onClick:()=>u("cat"),children:[l.jsx("span",{className:`${Oe.customRadious}`,style:{backgroundColor:i==="cat"?n:"transparent",borderColor:i==="cat"?n:r}}),l.jsx("h4",{className:Oe.optionText,style:{color:i==="cat"?n:r},children:d("indicators.cat")})]}),l.jsxs("div",{className:Oe.optionContainer,onClick:()=>u("abs"),children:[l.jsx("span",{className:`${Oe.customRadious}`,style:{backgroundColor:i==="abs"?n:"transparent",borderColor:i==="abs"?n:r}}),l.jsx("h4",{className:Oe.optionText,style:{color:i==="abs"?n:r},children:d("indicators.abs")})]})]})})}),x=()=>l.jsx("div",{className:Oe.switchExternalContainer,children:l.jsx("div",{className:Oe.switchType,children:l.jsx("div",{className:Oe.switchTypeOptions,children:t.map((_,T)=>l.jsxs("div",{className:Oe.optionContainer,children:[l.jsx("span",{className:Oe.customRadious}),l.jsx("h4",{children:d(_.unit)})]},T))})})});return l.jsxs("div",{className:Oe.indicatorContainer,children:[l.jsxs("div",{className:Oe.indicatorNameContainer,onClick:()=>!y&&a({indicator:e}),children:[l.jsx("div",{style:{border:m?`1px solid ${n}`:`1px solid ${r}`,opacity:y?.5:1,backgroundColor:m?n:"transparent"},className:Oe.dot,children:c&&l.jsx("img",{src:m?Bl:Pl,alt:""})}),l.jsx("h4",{className:Oe.indicatorName,style:{color:m?n:r,opacity:y?.5:1},children:l.jsx(oe.Trans,{i18nKey:h,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})})]}),(o==null?void 0:o.name)===h&&g==="both"&&l.jsx("div",{children:f()}),(o==null?void 0:o.name)===h&&g==="twoUnits"&&l.jsx("div",{children:x()})]})};zr.propTypes={indicator:s.shape({name:s.string,type:s.string}),values:s.oneOfType([s.bool,s.array]),activeColor:s.string,defaultColor:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickIndicator:s.func};const Yl="_indicatorsSubCategory_1nuug_2",Xl="_list_1nuug_11",xo={indicatorsSubCategory:Yl,list:Xl},zs=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:i,id:a,activeIndicator:c,onClickIndicator:u,multiple:d,activeIndicatorType:h,onChangeType:g})=>{const{t:y}=oe.useTranslation(),[m,b]=w.useState(!1);return w.useEffect(()=>{b(o==a)},[o,a]),l.jsxs(Pr.motion.div,{className:xo.indicatorsSubCategory,initial:{height:"43px"},animate:{height:m?"auto":"43px"},transition:{duration:.4},children:[l.jsx("button",{onClick:()=>i(a),children:l.jsxs("h3",{style:{color:m?r:n},children:[l.jsx("span",{style:{color:m?r:n},children:m?"-":"+"}),l.jsx("span",{style:{color:m?r:n},children:y(e)})]})}),t&&l.jsx("div",{className:xo.list,children:t==null?void 0:t.map((f,x)=>l.jsx(zr,{indicator:f,defaultColor:n,activeColor:r,activeIndicator:c,onClickIndicator:u,multiple:d,activeIndicatorType:h,onChangeType:g},"indicator"+x))})]})};zs.propTypes={subcName:s.string,indicators:s.array,activeColor:s.string,defaultColor:s.string,activeSubCategory:s.string,id:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickSubCategory:s.func,onClickIndicator:s.func};const qs=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:i,activeSubCategory:a,onClickSubCategory:c,activeIndicator:u,onClickIndicator:d,multiple:h,activeIndicatorType:g,onChangeType:y})=>{var x;const{t:m}=oe.useTranslation(),[b,f]=w.useState(!1);return w.useEffect(()=>{f(i===t)},[i,t]),l.jsxs(Pr.motion.div,{className:Cn.indicatorsCategory,initial:{height:"53px"},animate:{height:b?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:b?`1px solid ${n}`:"0px",marginBottom:b?"20px":"0px"},children:[l.jsxs("h2",{className:`${Cn.title}`,onClick:()=>o(t),children:[l.jsx("span",{className:Cn.plus,style:{color:b?n:r},children:b?"-":"+"}),l.jsx("span",{style:{color:b?n:r},children:m(e.name)})]}),e.subcategories?e.subcategories.map(({name:_,subcategory:T,indicators:j},v)=>l.jsx(zs,{id:T,activeSubCategory:a,subcName:_,onClickSubCategory:c,activeIndicator:u,onClickIndicator:d,multiple:h,activeColor:n,defaultColor:r,indicators:j,activeIndicatorType:g,onChangeType:y},`subcKey ${v}`)):l.jsx("div",{className:Cn.list,children:(x=e.indicators)==null?void 0:x.map((_,T)=>l.jsx(zr,{indicator:_,values:_.type=="twoUnits"&&_.values,activeColor:n,defaultColor:r,activeIndicator:u,onClickIndicator:d,multiple:h,activeIndicatorType:g,onChangeType:y},`indicator${T}`))})]})};qs.propTypes={cat:s.object,id:s.string,onChange:s.func,onClickCategory:s.func,activeCategory:s.string,activeSubCategory:s.string,onClickSubCategory:s.func,onClickIndicator:s.func,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,activeColor:s.string,defaultColor:s.string};const Ql="_indicatorsList_13b3m_2",Jl="_title_13b3m_6",Co={indicatorsList:Ql,title:Jl},Ws=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:c})=>{const{t:u}=oe.useTranslation(),[d,h]=w.useState(),[g,y]=w.useState(),[m,b]=w.useState(),f=v=>{h(d==v?null:v)},x=v=>{y(g==v?null:v)},_=({indicator:v})=>{T(v)},T=v=>{if(!o)b((m==null?void 0:m.name)==v.name?null:v);else{let C=m&&m.length>0?[...m]:[];b(C!=null&&C.some(S=>S.name==v.name)?C.filter(S=>S.name!=String(v.name)):[...C,v]),v.type=="both"&&a("cat")}};w.useEffect(()=>{r&&typeof r=="function"&&m&&r({activeIndicator:m})},[m]),w.useLayoutEffect(()=>{if(i&&!m)if(o&&i&&Array.isArray(i)){let v=m&&m.length>0?[...m]:[];b([...v,...i]),j(i[0].name)}else T(i),j(i.name)},[]),w.useEffect(()=>{if(i!=m)if(o&&i&&Array.isArray(i)){let v=m&&m.length>0?[...m]:[];b([...v,...i]),j(i[0].name)}else T(i),j(i.name)},[i]);const j=v=>{const C=e.find(S=>{if(S.subcategories){let $=S.subcategories.find(A=>A.indicators.find(E=>E.name==v));if($)return y($.subcategory),$}else return S.indicators.some($=>$.name==v)});C&&h(C.category)};return l.jsxs("div",{className:Co.indicatorsList,children:[l.jsx("h2",{className:Co.title,style:{color:n},children:u("indicators.indicators")}),e.map((v,C)=>l.jsx(qs,{id:v.category,cat:v,onClickCategory:f,activeCategory:d,onClickSubCategory:x,activeSubCategory:g,onClickIndicator:_,activeIndicator:m,activeColor:t,defaultColor:n,multiple:o,onChange:r,onChangeType:a,activeIndicatorType:c},`categoryKey${C}`))]})};Ws.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,changeIndType:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array]),activeIndicatorType:s.string};const ec="_langSelector_o9enq_2",tc="_currentLang_o9enq_14",nc="_arrow_o9enq_26",rc="_prevImg_o9enq_29",oc="_langMenu_o9enq_33",Nt={langSelector:ec,currentLang:tc,arrow:nc,prevImg:rc,langMenu:oc},Us=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=w.useState(!1),{i18n:i}=oe.useTranslation(),a=e.find(u=>u.code==i.language),c=u=>{i.changeLanguage(u),o(!1)};return l.jsxs("div",{className:Nt.langSelector,children:[l.jsxs("div",{className:Nt.currentLang,onClick:()=>{o(!r)},children:[n&&l.jsx("img",{className:Nt.prevImg,src:n}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),l.jsx("img",{src:t,className:Nt.arrow})]}),r&&l.jsx("div",{className:Nt.langMenu,children:e.map(u=>l.jsx("button",{className:(a==null?void 0:a.code)==u.code?Nt.active:"",onClick:()=>c(u.code),children:u.title},u.code))})]})};Us.propTypes={langs:s.arrayOf(s.shape({code:s.string,title:s.string,titleSelected:s.string})),color:s.string,bckColor:s.string,hoverColor:s.string,arrow:s.object,imgPrev:s.object};const sc="_legendContainer_1l2pz_3",ic="_closeButton_1l2pz_43",ac="_titleContainer_1l2pz_71",lc="_infoContainer_1l2pz_77",cc="_titleLegendList_1l2pz_88",uc="_legendListContainer_1l2pz_93",dc="_gridContainer_1l2pz_93",fc="_elementLegendContainer_1l2pz_99",pc="_colorDot_1l2pz_105",mc="_absoluteValueContainer_1l2pz_111",hc="_absoluteValueColor_1l2pz_114",gc="_absoluteValueText_1l2pz_119",yc="_noDataContainer_1l2pz_131",bc="_noData_1l2pz_131",vc="_moreInfoContainer_1l2pz_152",$e={legendContainer:sc,closeButton:ic,titleContainer:ac,infoContainer:lc,titleLegendList:cc,legendListContainer:uc,gridContainer:dc,elementLegendContainer:fc,colorDot:pc,absoluteValueContainer:mc,absoluteValueColor:hc,absoluteValueText:gc,noDataContainer:yc,noData:bc,moreInfoContainer:vc},Zs=({containerStyles:e,title:t,infoList:n,legendItems:r,onClickMoreInfo:o,buttonTitle:i,onClickClose:a})=>{const{t:c}=oe.useTranslation();return l.jsxs("div",{style:e?{...e}:{},className:`${$e.legendContainer}`,children:[l.jsx("button",{className:$e.closeButton,onClick:a}),t&&l.jsx("div",{className:$e.titleContainer,style:{marginBottom:(!n||n.length==0)&&"15px"},children:l.jsx("h2",{children:t})}),n&&n.length>0&&l.jsx("div",{className:$e.infoContainer,children:l.jsx("ul",{children:n.map(({title:u,value:d})=>l.jsxs("li",{children:[l.jsx("h3",{className:$e.title,children:`${u}:`}),l.jsxs("span",{className:$e.value,children:["  ",d]})]},t))})}),r&&r.length>0&&r.map((u,d)=>l.jsxs("div",{children:[l.jsx("h3",{className:$e.titleLegendList,style:{marginTop:n&&n.length>0&&d===0?"30px":d>0?"20px":"0px"},children:u.title&&l.jsx(oe.Trans,{i18nKey:u.title,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})}),l.jsxs("div",{className:$e.legendListContainer,children:[u.absolute?l.jsxs("div",{className:$e.absoluteValueContainer,children:[l.jsx("div",{className:$e.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${u.absolute.maxColor} 0%, ${u.absolute.midColor?`${u.absolute.midColor} 50%,`:""} ${u.absolute.minColor} 100%)`}}),l.jsxs("div",{className:$e.absoluteValueText,children:[l.jsxs("span",{children:[u.absolute.maxValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.moreText)]}),u.absolute.midValue&&l.jsxs("span",{children:[u.absolute.midValue," ",c(u.absolute.unit)]}),l.jsxs("span",{children:[u.absolute.minValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.lessText)]})]})]}):u.categories&&u.categories.length>0&&l.jsx("div",{className:$e.gridContainer,children:u.categories.map(({title:h,color:g},y)=>l.jsxs("div",{className:$e.elementLegendContainer,children:[l.jsx("div",{className:$e.colorDot,style:{backgroundColor:g}}),l.jsxs("div",{className:$e.titleLegendElement,children:[c(h)," "]})]},y))}),u.absolute&&u.absolute.noDataColor&&l.jsxs("div",{className:$e.noDataContainer,children:[l.jsx("div",{className:$e.noData,style:{background:u.absolute.noDataColor}}),l.jsx("div",{className:$e.absoluteValueText,children:l.jsx("span",{children:c(u.absolute.noDataText)})})]})]})]},d)),o&&l.jsx("button",{className:$e.moreInfoContainer,onClick:o,children:i||c("moreInformation")})]})};Zs.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendItems:s.arrayOf(s.shape({title:s.string,categories:s.arrayOf(s.shape({title:s.string,color:s.string})),absolute:s.shape({maxColor:s.string,minColor:s.string,midColor:s.string,maxValue:s.number,minValue:s.number,midValue:s.number,unit:s.string,noDataColor:s.string,noDataText:s.string})})),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const xc="_logo_1ewa6_2",_o={logo:xc},Hs=({src:e,alt:t,href:n})=>{const{t:r}=oe.useTranslation(),o=l.jsx("img",{src:e,alt:r(t)});return n?l.jsx("div",{className:_o.logo,children:l.jsx("a",{href:n,children:o})}):l.jsx("div",{className:_o.logo,children:o})};Hs.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const Cc=Q.createContext(null);function _c(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===i}function Fe(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Fe(e[o],t[o]))return!1;return!0}return!1}function wc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function wo(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Fe(n,r)||t.setProjection(n)}function So(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function To(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const Sc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ko(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const i=t[r.ref];if(i){o=o||Object.assign({},r),delete o.ref;for(const a of Sc)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const jo={version:8,sources:{},layers:[]},$o={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},mr={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Eo={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Tc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],kc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class zt{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const i=this.props[Eo[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[$o[o.type]];i&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),i(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const i=this.props[mr[o.type]];i&&i(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),i=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=zt.savedMaps.pop();if(!r)return null;const o=r.map,i=o.getContainer();for(n.className=i.className;i.childNodes.length>0;)n.appendChild(i.childNodes[0]);o._container=n;const a=o._resizeObserver;a&&(a.disconnect(),a.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:c}=t;return c&&(c.bounds?o.fitBounds(c.bounds,{...c.fitBoundsOptions,duration:0}):r._updateViewState(c,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=jo}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||jc()||null,container:t,style:ko(r)},i=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const h=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=h,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const c=a._render;a._render=h=>{this._inRender=!0,c.call(a,h),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=h=>{u.call(a._renderTaskQueue,h),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const d=a.fire;a.fire=this._fireEvent.bind(this,d),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),wo(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const h in $o)a.on(h,this._onPointerEvent);for(const h in mr)a.on(h,this._onCameraEvent);for(const h in Eo)a.on(h,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),zt.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const n=wc(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:i,pitch:a,bearing:c}=o,u=r.isMoving();u&&(o.cameraElevationReference="sea");const d=To(o,{...So(r.transform),...t});if(u&&(o.cameraElevationReference="ground"),d&&n){const h=this._deferredEvents;h.move=!0,h.zoom||(h.zoom=i!==o.zoom),h.rotate||(h.rotate=c!==o.bearing),h.pitch||(h.pitch=a!==o.pitch)}return u||To(r.transform,t),d}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of Tc)if(i in t&&!Fe(t[i],n[i])){o=!0;const a=r[`set${i[0].toUpperCase()}${i.slice(1)}`];a==null||a.call(r,t[i])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=jo,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(ko(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Fe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Fe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Fe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){var r,o;const i=this._map;let a=!1;for(const c of kc){const u=(r=t[c])!==null&&r!==void 0?r:!0,d=(o=n[c])!==null&&o!==void 0?o:!0;Fe(u,d)||(a=!0,u?i[c].enable(u):i[c].disable())}return a}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var n;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const i=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,c=this._queryRenderedFeatures(t.point),u=c.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=c,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,i=o.transform,a=typeof n=="string"?n:n.type;return a==="move"&&this._updateViewState(this.props,!1),a in mr&&(typeof n=="object"&&(n.viewState=So(i)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=i,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{wo(this._renderTransform,n),t.transform=n}}}zt.savedMaps=[];function jc(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const $c=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Ec(e){if(!e)return null;const t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const o=t.transform;t.transform=e.transform;const i=t.project(r);return t.transform=o,i},unproject:r=>{const o=t.transform;t.transform=e.transform;const i=t.unproject(r);return t.transform=o,i},queryTerrainElevation:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(r,o);return t.transform=i,a},queryRenderedFeatures:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(r,o);return t.transform=i,a}};for(const r of Nc(t))!(r in n)&&!$c.includes(r)&&(n[r]=t[r].bind(t));return n}function Nc(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const Oc=typeof document<"u"?w.useLayoutEffect:w.useEffect,Ac=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Lc(e,t){for(const r of Ac)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const Wt=Q.createContext(null);function Mc(e,t,n){const r=w.useContext(Cc),[o,i]=w.useState(null),a=w.useRef(),{current:c}=w.useRef({mapLib:null,map:null});w.useEffect(()=>{const h=e.mapLib;let g=!0,y;return Promise.resolve(h||n).then(m=>{if(!g)return;if(!m)throw new Error("Invalid mapLib");const b="Map"in m?m:m.default;if(!b.Map)throw new Error("Invalid mapLib");if(Lc(b,e),!b.supported||b.supported(e))e.reuseMaps&&(y=zt.reuse(e,a.current)),y||(y=new zt(b.Map,e,a.current)),c.map=Ec(y),c.mapLib=b,i(y),r==null||r.onMapMount(c.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(m=>{const{onError:b}=e;b?b({type:"error",target:null,originalEvent:null,error:m}):console.error(m)}),()=>{g=!1,y&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?y.recycle():y.destroy())}},[]),Oc(()=>{o&&o.setProps(e)}),w.useImperativeHandle(t,()=>c.map,[o]);const u=w.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),d={height:"100%"};return Q.createElement("div",{id:e.id,ref:a,style:u},o&&Q.createElement(Wt.Provider,{value:c},Q.createElement("div",{"mapboxgl-children":"",style:d},e.children)))}const Rc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function jt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Rc.test(r)?n[r]=`${o}px`:n[r]=o}}function Dc(e,t){const{map:n,mapLib:r}=w.useContext(Wt),o=w.useRef({props:e});o.current.props=e;const i=w.useMemo(()=>{let f=!1;Q.Children.forEach(e.children,T=>{T&&(f=!0)});const x={...e,element:f?document.createElement("div"):null},_=new r.Marker(x);return _.setLngLat([e.longitude,e.latitude]),_.getElement().addEventListener("click",T=>{var j,v;(v=(j=o.current.props).onClick)===null||v===void 0||v.call(j,{type:"click",target:_,originalEvent:T})}),_.on("dragstart",T=>{var j,v;const C=T;C.lngLat=i.getLngLat(),(v=(j=o.current.props).onDragStart)===null||v===void 0||v.call(j,C)}),_.on("drag",T=>{var j,v;const C=T;C.lngLat=i.getLngLat(),(v=(j=o.current.props).onDrag)===null||v===void 0||v.call(j,C)}),_.on("dragend",T=>{var j,v;const C=T;C.lngLat=i.getLngLat(),(v=(j=o.current.props).onDragEnd)===null||v===void 0||v.call(j,C)}),_},[]);w.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:c,offset:u,style:d,draggable:h=!1,popup:g=null,rotation:y=0,rotationAlignment:m="auto",pitchAlignment:b="auto"}=e;return w.useEffect(()=>{jt(i.getElement(),d)},[d]),w.useImperativeHandle(t,()=>i,[]),(i.getLngLat().lng!==a||i.getLngLat().lat!==c)&&i.setLngLat([a,c]),u&&!_c(i.getOffset(),u)&&i.setOffset(u),i.isDraggable()!==h&&i.setDraggable(h),i.getRotation()!==y&&i.setRotation(y),i.getRotationAlignment()!==m&&i.setRotationAlignment(m),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==g&&i.setPopup(g),ks.createPortal(e.children,i.getElement())}w.memo(w.forwardRef(Dc));function No(e){return new Set(e?e.trim().split(/\s+/):[])}function Ic(e,t){const{map:n,mapLib:r}=w.useContext(Wt),o=w.useMemo(()=>document.createElement("div"),[]),i=w.useRef({props:e});i.current.props=e;const a=w.useMemo(()=>{const c={...e},u=new r.Popup(c);return u.setLngLat([e.longitude,e.latitude]),u.once("open",d=>{var h,g;(g=(h=i.current.props).onOpen)===null||g===void 0||g.call(h,d)}),u},[]);if(w.useEffect(()=>{const c=u=>{var d,h;(h=(d=i.current.props).onClose)===null||h===void 0||h.call(d,u)};return a.on("close",c),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",c),a.isOpen()&&a.remove()}},[]),w.useEffect(()=>{jt(a.getElement(),e.style)},[e.style]),w.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Fe(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){const c=No(a.options.className),u=No(e.className);for(const d of c)u.has(d)||a.removeClassName(d);for(const d of u)c.has(d)||a.addClassName(d);a.options.className=e.className}return ks.createPortal(e.children,o)}const Pc=w.memo(w.forwardRef(Ic));function cn(e,t,n,r){const o=w.useContext(Wt),i=w.useMemo(()=>e(o),[]);return w.useEffect(()=>{const a=t,c=null,u=typeof t=="function"?t:null,{map:d}=o;return d.hasControl(i)||(d.addControl(i,a==null?void 0:a.position),c&&c(o)),()=>{u&&u(o),d.hasControl(i)&&d.removeControl(i)}},[]),i}function Bc(e){const t=cn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return w.useEffect(()=>{jt(t._container,e.style)},[e.style]),null}w.memo(Bc);function Vc(e){const t=cn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return w.useEffect(()=>{jt(t._controlContainer,e.style)},[e.style]),null}w.memo(Vc);function Fc(e,t){const n=w.useRef({props:e}),r=cn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=c=>{i._container.hasChildNodes()||a(c)},i.on("geolocate",c=>{var u,d;(d=(u=n.current.props).onGeolocate)===null||d===void 0||d.call(u,c)}),i.on("error",c=>{var u,d;(d=(u=n.current.props).onError)===null||d===void 0||d.call(u,c)}),i.on("outofmaxbounds",c=>{var u,d;(d=(u=n.current.props).onOutOfMaxBounds)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationstart",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationStart)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationend",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationEnd)===null||d===void 0||d.call(u,c)}),i},{position:e.position});return n.current.props=e,w.useImperativeHandle(t,()=>r,[]),w.useEffect(()=>{jt(r._container,e.style)},[e.style]),null}w.memo(w.forwardRef(Fc));function zc(e){const t=cn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return w.useEffect(()=>{jt(t._container,e.style)},[e.style]),null}const qc=w.memo(zc);function Wc(e){const t=cn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=w.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),w.useEffect(()=>{jt(t._container,o)},[o]),null}w.memo(Wc);function Dn(e,t){if(!e)throw new Error(t)}function Uc(e,t,n,r){if(Dn(n.id===r.id,"layer id changed"),Dn(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:c,maxzoom:u,beforeId:d}=n;if(d!==r.beforeId&&e.moveLayer(t,d),o!==r.layout){const h=r.layout||{};for(const g in o)Fe(o[g],h[g])||e.setLayoutProperty(t,g,o[g]);for(const g in h)o.hasOwnProperty(g)||e.setLayoutProperty(t,g,void 0)}if(i!==r.paint){const h=r.paint||{};for(const g in i)Fe(i[g],h[g])||e.setPaintProperty(t,g,i[g]);for(const g in h)i.hasOwnProperty(g)||e.setPaintProperty(t,g,void 0)}Fe(a,r.filter)||e.setFilter(t,a),(c!==r.minzoom||u!==r.maxzoom)&&e.setLayerZoomRange(t,c,u)}function Zc(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let Hc=0;function Kc(e){const t=w.useContext(Wt).map.getMap(),n=w.useRef(e),[,r]=w.useState(0),o=w.useMemo(()=>e.id||`jsx-layer-${Hc++}`,[]);if(w.useEffect(()=>{if(t){const a=()=>r(c=>c+1);return t.on("styledata",a),a(),()=>{t.off("styledata",a),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{Uc(t,o,e,n.current)}catch(a){console.warn(a)}else Zc(t,o,e);return n.current=e,null}let Gc=0;function Yc(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function Xc(e,t,n){Dn(t.id===n.id,"source id changed"),Dn(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Fe(n[a],t[a])&&(r=a,o++);if(!o)return;const i=t.type;i==="geojson"?e.setData(t.data):i==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&o===1&&r==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&r==="url"?e.setUrl(t.url):"setTiles"in e&&r==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}function Qc(e){const t=w.useContext(Wt).map.getMap(),n=w.useRef(e),[,r]=w.useState(0),o=w.useMemo(()=>e.id||`jsx-source-${Gc++}`,[]);w.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(c=>c+1),0);return t.on("styledata",a),a(),()=>{var c;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const u=(c=t.getStyle())===null||c===void 0?void 0:c.layers;if(u)for(const d of u)d.source===o&&t.removeLayer(d.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?Xc(i,e,n.current):i=Yc(t,o,e),n.current=e,i&&Q.Children.map(e.children,a=>a&&w.cloneElement(a,{source:o}))||null}const Jc=import("mapbox-gl"),Ks=Q.forwardRef(function(t,n){return Mc(t,n,Jc)}),Gs=Pc,Ys=qc,Xs=Kc,Qs=Qc,e0="_mapContainer_84pkf_2",t0={mapContainer:e0};ca.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const Js=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],popUp:u=!1,sources:d=[],layers:h=[]})=>{const g=w.useRef(),[y,m]=w.useState(null),b=ua.useSelector(f=>f.mapState.showTexts);return w.useEffect(()=>{if(g.current){const f=g.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(b?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[b]),l.jsx("div",{className:`${t0.mapContainer}`,style:i,children:l.jsxs(Ks,{initialViewState:e,ref:g,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[d.length&&d.map((f,x)=>l.jsx(Qs,{...f,children:h.length&&h.map((_,T)=>{if(_.sourceId==f.id)return l.jsx(Xs,{..._.layer,beforeId:o},T)})},x)),l.jsx(Ys,{position:"bottom-right",visualizePitch:!0}),u&&y&&l.jsx(Gs,{longitude:u.longitude,latitude:u.latitude,anchor:u.anchor,onClose:()=>m(null),children:u.content})]})})};Js.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.object,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.shape({latitude:s.number,longitude:s.number,anchor:s.string,content:s.element}),textsUrl:s.string,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minZoom:s.number,maxZoom:s.number,paint:s.object})}))};const n0="_mapContainer_b0pyr_3",r0={mapContainer:n0},o0="_FeaturePopUp_4sba4_2",s0="_title_4sba4_10",Oo={FeaturePopUp:o0,title:s0},i0=({props:e})=>{const{t}=oe.useTranslation();return l.jsx("div",{className:Oo.FeaturePopUp,children:e.map(n=>l.jsxs("p",{children:[l.jsxs("span",{className:Oo.title,children:[l.jsx(oe.Trans,{i18nKey:n.name,components:{sup:l.jsx("sup",{})},shouldUnescape:!0}),":"]}),n.type&&n.type=="html"?l.jsx("span",{dangerouslySetInnerHTML:{__html:n.value}}):isNaN(n.value)?l.jsx(l.Fragment,{children:t(n.value)}):l.jsxs(l.Fragment,{children:[n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]})]}))})},ei=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],sources:u=[],layers:d=[],popUpParams:h,onClosePopUp:g,showTexts:y,hash:m=!1})=>{const b=w.useRef();return w.useEffect(()=>{if(b.current){const f=b.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(y?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[y]),w.useEffect(()=>{let f=new da.Protocol;return or.addProtocol("pmtiles",f.tile),()=>{or.removeProtocol("pmtiles")}},[]),l.jsx("div",{className:`${r0.mapContainer}`,style:i,children:l.jsxs(Ks,{mapLib:or,initialViewState:e,ref:b,hash:m,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[u.length&&u.map((f,x)=>l.jsx(Qs,{...f,children:d.length&&d.map((_,T)=>{if(_.sourceId==f.id)return l.jsx(Xs,{..._.layer,beforeId:o,filter:_.filters?_.filters:["all"],layout:{visibility:_.layer.visibility||"visible"}},T)})},x)),l.jsx(Ys,{position:"bottom-right",visualizePitch:!0}),h&&l.jsx(Gs,{longitude:h.lng,latitude:h.lat,onClose:g,children:l.jsx(i0,{props:h.props})})]})})};ei.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.string,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.bool,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minzoom:s.number,maxzoom:s.number,paint:s.object,visibility:s.string}),filters:s.array})),showTexts:s.bool,popUpParams:s.object,onClosePopUp:s.func};const a0="_sectionBar_yf2vy_2",l0="_leftContent_yf2vy_14",c0="_textContainer_yf2vy_20",u0="_title_yf2vy_27",d0="_subtitle_yf2vy_33",f0="_rightContent_yf2vy_38",vt={sectionBar:a0,leftContent:l0,textContainer:c0,title:u0,subtitle:d0,rightContent:f0},ti=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o,width:i,titleColor:a="#605b56",subTitleColor:c="#605b56",borderTop:u=!1})=>{const{t:d}=oe.useTranslation();return l.jsxs("div",{className:vt.sectionBar,style:{width:i&&i,borderTop:u?"1px solid #000":"0px"},children:[l.jsxs("div",{className:vt.leftContent,children:[e&&l.jsx("img",{src:e,alt:"Icono",className:vt.icon}),l.jsxs("div",{className:vt.textContainer,children:[l.jsx("div",{className:vt.title,style:{color:a},children:d(t)}),n&&l.jsx("div",{className:vt.subtitle,style:{color:c},children:n})]})]}),l.jsx("div",{className:vt.rightContent,children:r})]})};ti.propTypes={leftIcon:s.string,title:s.string.isRequired,subtitle:s.string,rightContent:s.node,mainColor:s.string,width:s.oneOfType([s.string,s.number]),borderTop:s.bool};const p0=fa.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(e,t)=>{e.showTexts=t.payload},setYear:(e,t)=>{e.sliderSelectedYear=t.payload},setActiveIndicatorKey:(e,t)=>{e.activeIndicatorKey=t.payload},setActiveIndicatorType:(e,t)=>{e.activeIndicatorType=t.payload},setActiveIndicatorUnit:(e,t)=>{e.activeIndicatorUnit=t.payload}}}),{setShowTexts:Cp,setYear:_p,setActiveIndicatorKey:wp,setActiveIndicatorType:Sp,setActiveIndicatorUnit:Tp}=p0.actions,m0="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e",h0="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e";function ni(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ni(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ni(e))&&(r&&(r+=" "),r+=t);return r}function Ao(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function g0(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",c=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const y0=Q.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const b0=()=>Q.useContext(y0)??!1;function ri(...e){const t=Q.useRef(void 0),n=Q.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return Q.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function on(e){return typeof e=="string"}function v0(e,t,n){return e===void 0||on(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function An(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Lo(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function x0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=pt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return m.length>0&&(f.className=m),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=An({...o,...r}),c=Lo(r),u=Lo(o),d=t(a),h=pt(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...d,...n,...u,...c};return h.length>0&&(y.className=h),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:d.ref}}function C0(e,t,n){return typeof e=="function"?e(t,n):e}function ut(e){var g;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:C0(n,r),{props:c,internalRef:u}=x0({...i,externalSlotProps:a}),d=ri(u,a==null?void 0:a.ref,(g=e.additionalProps)==null?void 0:g.ref);return v0(t,{...c,ref:d},r)}function Ln(e){return e&&e.ownerDocument||document}function _0(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=Q.useRef(t!==void 0),[a,c]=Q.useState(n),u=i?t:a;if(process.env.NODE_ENV!=="production"){Q.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
24
24
  `))},[o,r,t]);const{current:h}=Q.useRef(n);Q.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(h)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
25
- `))},[JSON.stringify(n)])}const d=Q.useCallback(h=>{i||c(h)},[]);return[u,d]}const ri=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function hr(e){const t=Q.useRef(e);return ri(()=>{t.current=e}),Q.useRef((...n)=>(0,t.current)(...n)).current}function Lo(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
26
- `))}return!1}const _0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ft(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function w0(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const S0=2;function Ot(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function oi(e,t){return e-t}function Mo(e,t){const{index:n}=e.reduce((r,o,i)=>{const a=Math.abs(t-o);return r===null||a<r.distance||a===r.distance?{distance:a,index:i}:r},null)??{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function In(e,t,n){return(e-t)*100/(n-t)}function T0(e,t,n){return(n-t)*e+t}function k0(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function j0(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(k0(t)))}function Ro({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(oi)}function wn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,a;const r=Ln(e.current);(!((o=e.current)!=null&&o.contains(r.activeElement))||Number((i=r==null?void 0:r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?w0(e,t):!1}const $0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},E0=e=>e;let Tn;function Do(){return Tn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Tn=CSS.supports("touch-action","none"):Tn=!0),Tn}function N0(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:c=100,min:u=0,name:d,onChange:h,onChangeCommitted:g,orientation:y="horizontal",rootRef:p,scale:b=E0,step:f=1,shiftStep:x=10,tabIndex:_,value:T}=e,j=Q.useRef(void 0),[v,C]=Q.useState(-1),[S,$]=Q.useState(-1),[A,E]=Q.useState(!1),B=Q.useRef(0),I=Q.useRef(null),[m,N]=C0({controlled:T,default:n??u,name:"Slider"}),k=h&&((M,F,H)=>{const ie=M.nativeEvent||M,ge=new ie.constructor(ie.type,ie);Object.defineProperty(ge,"target",{writable:!0,value:{value:F,name:d}}),I.current=F,h(ge,F,H)}),V=Array.isArray(m);let z=V?m.slice().sort(oi):[m];z=z.map(M=>M==null?u:Ft(M,u,c));const Y=a===!0&&f!==null?[...Array(Math.floor((c-u)/f)+1)].map((M,F)=>({value:u+f*F})):a||[],W=Y.map(M=>M.value),[ae,R]=Q.useState(-1),L=Q.useRef(null),J=ni(p,L),K=M=>F=>{var ie;const H=Number(F.currentTarget.getAttribute("data-index"));Lo(F.target)&&R(H),$(H),(ie=M==null?void 0:M.onFocus)==null||ie.call(M,F)},P=M=>F=>{var H;Lo(F.target)||R(-1),$(-1),(H=M==null?void 0:M.onBlur)==null||H.call(M,F)},Z=(M,F)=>{const H=Number(M.currentTarget.getAttribute("data-index")),ie=z[H],ge=W.indexOf(ie);let X=F;if(Y&&f==null){const Ne=W[W.length-1];X>=Ne?X=Ne:X<=W[0]?X=W[0]:X=X<ie?W[ge-1]:W[ge+1]}if(X=Ft(X,u,c),V){o&&(X=Ft(X,z[H-1]||-1/0,z[H+1]||1/0));const Ne=X;X=Ro({values:z,newValue:X,index:H});let Re=H;o||(Re=X.indexOf(Ne)),wn({sliderRef:L,activeIndex:Re})}N(X),R(H),k&&!Sn(X,m)&&k(M,X,H),g&&g(M,I.current??X)},te=M=>F=>{var H;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(F.key)){F.preventDefault();const ie=Number(F.currentTarget.getAttribute("data-index")),ge=z[ie];let X=null;if(f!=null){const Ne=F.shiftKey?x:f;switch(F.key){case"ArrowUp":X=Ot(ge,Ne,1,u,c);break;case"ArrowRight":X=Ot(ge,Ne,i?-1:1,u,c);break;case"ArrowDown":X=Ot(ge,Ne,-1,u,c);break;case"ArrowLeft":X=Ot(ge,Ne,i?1:-1,u,c);break;case"PageUp":X=Ot(ge,x,1,u,c);break;case"PageDown":X=Ot(ge,x,-1,u,c);break;case"Home":X=u;break;case"End":X=c;break}}else if(Y){const Ne=W[W.length-1],Re=W.indexOf(ge),je=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],We=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];je.includes(F.key)?Re===0?X=W[0]:X=W[Re-1]:We.includes(F.key)&&(Re===W.length-1?X=Ne:X=W[Re+1])}X!=null&&Z(F,X)}(H=M==null?void 0:M.onKeyDown)==null||H.call(M,F)};ri(()=>{var M;r&&L.current.contains(document.activeElement)&&((M=document.activeElement)==null||M.blur())},[r]),r&&v!==-1&&C(-1),r&&ae!==-1&&R(-1);const G=M=>F=>{var H;(H=M.onChange)==null||H.call(M,F),Z(F,F.target.valueAsNumber)},U=Q.useRef(void 0);let re=y;i&&y==="horizontal"&&(re+="-reverse");const ee=({finger:M,move:F=!1})=>{const{current:H}=L,{width:ie,height:ge,bottom:X,left:Ne}=H.getBoundingClientRect();let Re;re.startsWith("vertical")?Re=(X-M.y)/ge:Re=(M.x-Ne)/ie,re.includes("-reverse")&&(Re=1-Re);let je;if(je=T0(Re,u,c),f)je=j0(je,f,u);else{const Ht=Mo(W,je);je=W[Ht]}je=Ft(je,u,c);let We=0;if(V){F?We=U.current:We=Mo(z,je),o&&(je=Ft(je,z[We-1]||-1/0,z[We+1]||1/0));const Ht=je;je=Ro({values:z,newValue:je,index:We}),o&&F||(We=je.indexOf(Ht),U.current=We)}return{newValue:je,activeIndex:We}},le=hr(M=>{const F=_n(M,j);if(!F)return;if(B.current+=1,M.type==="mousemove"&&M.buttons===0){D(M);return}const{newValue:H,activeIndex:ie}=ee({finger:F,move:!0});wn({sliderRef:L,activeIndex:ie,setActive:C}),N(H),!A&&B.current>S0&&E(!0),k&&!Sn(H,m)&&k(M,H,ie)}),D=hr(M=>{const F=_n(M,j);if(E(!1),!F)return;const{newValue:H}=ee({finger:F,move:!0});C(-1),M.type==="touchend"&&$(-1),g&&g(M,I.current??H),j.current=void 0,Le()}),se=hr(M=>{if(r)return;Do()||M.preventDefault();const F=M.changedTouches[0];F!=null&&(j.current=F.identifier);const H=_n(M,j);if(H!==!1){const{newValue:ge,activeIndex:X}=ee({finger:H});wn({sliderRef:L,activeIndex:X,setActive:C}),N(ge),k&&!Sn(ge,m)&&k(M,ge,X)}B.current=0;const ie=Ln(L.current);ie.addEventListener("touchmove",le,{passive:!0}),ie.addEventListener("touchend",D,{passive:!0})}),Le=Q.useCallback(()=>{const M=Ln(L.current);M.removeEventListener("mousemove",le),M.removeEventListener("mouseup",D),M.removeEventListener("touchmove",le),M.removeEventListener("touchend",D)},[D,le]);Q.useEffect(()=>{const{current:M}=L;return M.addEventListener("touchstart",se,{passive:Do()}),()=>{M.removeEventListener("touchstart",se),Le()}},[Le,se]),Q.useEffect(()=>{r&&Le()},[r,Le]);const Xe=M=>F=>{var ge;if((ge=M.onMouseDown)==null||ge.call(M,F),r||F.defaultPrevented||F.button!==0)return;F.preventDefault();const H=_n(F,j);if(H!==!1){const{newValue:X,activeIndex:Ne}=ee({finger:H});wn({sliderRef:L,activeIndex:Ne,setActive:C}),N(X),k&&!Sn(X,m)&&k(F,X,Ne)}B.current=0;const ie=Ln(L.current);ie.addEventListener("mousemove",le,{passive:!0}),ie.addEventListener("mouseup",D)},q=In(V?z[0]:u,u,c),ne=In(z[z.length-1],u,c)-q,Ce=(M={})=>{const F=An(M),H={onMouseDown:Xe(F||{})},ie={...F,...H};return{...M,ref:J,...ie}},be=M=>F=>{var ie;(ie=M.onMouseOver)==null||ie.call(M,F);const H=Number(F.currentTarget.getAttribute("data-index"));$(H)},Ee=M=>F=>{var H;(H=M.onMouseLeave)==null||H.call(M,F),$(-1)},Be=(M={})=>{const F=An(M),H={onMouseOver:be(F||{}),onMouseLeave:Ee(F||{})};return{...M,...F,...H}},Ge=M=>({pointerEvents:v!==-1&&v!==M?"none":void 0});let ve;return y==="vertical"&&(ve=i?"vertical-rl":"vertical-lr"),{active:v,axis:re,axisProps:$0,dragging:A,focusedThumbIndex:ae,getHiddenInputProps:(M={})=>{const F=An(M),H={onChange:G(F||{}),onFocus:K(F||{}),onBlur:P(F||{}),onKeyDown:te(F||{})},ie={...F,...H};return{tabIndex:_,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(c),"aria-valuemin":b(u),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...M,...ie,style:{..._0,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ve}}},getRootProps:Ce,getThumbProps:Be,marks:Y,open:S,range:V,rootRef:J,trackLeap:ne,trackOffset:q,values:z,getThumbStyle:Ge}}function Tt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Ye(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var kn={exports:{}},me={};/**
25
+ `))},[JSON.stringify(n)])}const d=Q.useCallback(h=>{i||c(h)},[]);return[u,d]}const oi=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function hr(e){const t=Q.useRef(e);return oi(()=>{t.current=e}),Q.useRef((...n)=>(0,t.current)(...n)).current}function Mo(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
26
+ `))}return!1}const w0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Vt(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function S0(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const T0=2;function Ot(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function si(e,t){return e-t}function Ro(e,t){const{index:n}=e.reduce((r,o,i)=>{const a=Math.abs(t-o);return r===null||a<r.distance||a===r.distance?{distance:a,index:i}:r},null)??{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function In(e,t,n){return(e-t)*100/(n-t)}function k0(e,t,n){return(n-t)*e+t}function j0(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function $0(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(j0(t)))}function Do({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(si)}function wn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,a;const r=Ln(e.current);(!((o=e.current)!=null&&o.contains(r.activeElement))||Number((i=r==null?void 0:r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?S0(e,t):!1}const E0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},N0=e=>e;let Tn;function Io(){return Tn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Tn=CSS.supports("touch-action","none"):Tn=!0),Tn}function O0(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:c=100,min:u=0,name:d,onChange:h,onChangeCommitted:g,orientation:y="horizontal",rootRef:m,scale:b=N0,step:f=1,shiftStep:x=10,tabIndex:_,value:T}=e,j=Q.useRef(void 0),[v,C]=Q.useState(-1),[S,$]=Q.useState(-1),[A,E]=Q.useState(!1),B=Q.useRef(0),D=Q.useRef(null),[p,N]=_0({controlled:T,default:n??u,name:"Slider"}),k=h&&((M,V,H)=>{const ie=M.nativeEvent||M,ge=new ie.constructor(ie.type,ie);Object.defineProperty(ge,"target",{writable:!0,value:{value:V,name:d}}),D.current=V,h(ge,V,H)}),F=Array.isArray(p);let z=F?p.slice().sort(si):[p];z=z.map(M=>M==null?u:Vt(M,u,c));const Y=a===!0&&f!==null?[...Array(Math.floor((c-u)/f)+1)].map((M,V)=>({value:u+f*V})):a||[],W=Y.map(M=>M.value),[ae,R]=Q.useState(-1),L=Q.useRef(null),J=ri(m,L),K=M=>V=>{var ie;const H=Number(V.currentTarget.getAttribute("data-index"));Mo(V.target)&&R(H),$(H),(ie=M==null?void 0:M.onFocus)==null||ie.call(M,V)},P=M=>V=>{var H;Mo(V.target)||R(-1),$(-1),(H=M==null?void 0:M.onBlur)==null||H.call(M,V)},Z=(M,V)=>{const H=Number(M.currentTarget.getAttribute("data-index")),ie=z[H],ge=W.indexOf(ie);let X=V;if(Y&&f==null){const Ne=W[W.length-1];X>=Ne?X=Ne:X<=W[0]?X=W[0]:X=X<ie?W[ge-1]:W[ge+1]}if(X=Vt(X,u,c),F){o&&(X=Vt(X,z[H-1]||-1/0,z[H+1]||1/0));const Ne=X;X=Do({values:z,newValue:X,index:H});let Re=H;o||(Re=X.indexOf(Ne)),wn({sliderRef:L,activeIndex:Re})}N(X),R(H),k&&!Sn(X,p)&&k(M,X,H),g&&g(M,D.current??X)},te=M=>V=>{var H;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(V.key)){V.preventDefault();const ie=Number(V.currentTarget.getAttribute("data-index")),ge=z[ie];let X=null;if(f!=null){const Ne=V.shiftKey?x:f;switch(V.key){case"ArrowUp":X=Ot(ge,Ne,1,u,c);break;case"ArrowRight":X=Ot(ge,Ne,i?-1:1,u,c);break;case"ArrowDown":X=Ot(ge,Ne,-1,u,c);break;case"ArrowLeft":X=Ot(ge,Ne,i?1:-1,u,c);break;case"PageUp":X=Ot(ge,x,1,u,c);break;case"PageDown":X=Ot(ge,x,-1,u,c);break;case"Home":X=u;break;case"End":X=c;break}}else if(Y){const Ne=W[W.length-1],Re=W.indexOf(ge),je=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],We=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];je.includes(V.key)?Re===0?X=W[0]:X=W[Re-1]:We.includes(V.key)&&(Re===W.length-1?X=Ne:X=W[Re+1])}X!=null&&Z(V,X)}(H=M==null?void 0:M.onKeyDown)==null||H.call(M,V)};oi(()=>{var M;r&&L.current.contains(document.activeElement)&&((M=document.activeElement)==null||M.blur())},[r]),r&&v!==-1&&C(-1),r&&ae!==-1&&R(-1);const G=M=>V=>{var H;(H=M.onChange)==null||H.call(M,V),Z(V,V.target.valueAsNumber)},U=Q.useRef(void 0);let re=y;i&&y==="horizontal"&&(re+="-reverse");const ee=({finger:M,move:V=!1})=>{const{current:H}=L,{width:ie,height:ge,bottom:X,left:Ne}=H.getBoundingClientRect();let Re;re.startsWith("vertical")?Re=(X-M.y)/ge:Re=(M.x-Ne)/ie,re.includes("-reverse")&&(Re=1-Re);let je;if(je=k0(Re,u,c),f)je=$0(je,f,u);else{const Ht=Ro(W,je);je=W[Ht]}je=Vt(je,u,c);let We=0;if(F){V?We=U.current:We=Ro(z,je),o&&(je=Vt(je,z[We-1]||-1/0,z[We+1]||1/0));const Ht=je;je=Do({values:z,newValue:je,index:We}),o&&V||(We=je.indexOf(Ht),U.current=We)}return{newValue:je,activeIndex:We}},le=hr(M=>{const V=_n(M,j);if(!V)return;if(B.current+=1,M.type==="mousemove"&&M.buttons===0){I(M);return}const{newValue:H,activeIndex:ie}=ee({finger:V,move:!0});wn({sliderRef:L,activeIndex:ie,setActive:C}),N(H),!A&&B.current>T0&&E(!0),k&&!Sn(H,p)&&k(M,H,ie)}),I=hr(M=>{const V=_n(M,j);if(E(!1),!V)return;const{newValue:H}=ee({finger:V,move:!0});C(-1),M.type==="touchend"&&$(-1),g&&g(M,D.current??H),j.current=void 0,Le()}),se=hr(M=>{if(r)return;Io()||M.preventDefault();const V=M.changedTouches[0];V!=null&&(j.current=V.identifier);const H=_n(M,j);if(H!==!1){const{newValue:ge,activeIndex:X}=ee({finger:H});wn({sliderRef:L,activeIndex:X,setActive:C}),N(ge),k&&!Sn(ge,p)&&k(M,ge,X)}B.current=0;const ie=Ln(L.current);ie.addEventListener("touchmove",le,{passive:!0}),ie.addEventListener("touchend",I,{passive:!0})}),Le=Q.useCallback(()=>{const M=Ln(L.current);M.removeEventListener("mousemove",le),M.removeEventListener("mouseup",I),M.removeEventListener("touchmove",le),M.removeEventListener("touchend",I)},[I,le]);Q.useEffect(()=>{const{current:M}=L;return M.addEventListener("touchstart",se,{passive:Io()}),()=>{M.removeEventListener("touchstart",se),Le()}},[Le,se]),Q.useEffect(()=>{r&&Le()},[r,Le]);const Xe=M=>V=>{var ge;if((ge=M.onMouseDown)==null||ge.call(M,V),r||V.defaultPrevented||V.button!==0)return;V.preventDefault();const H=_n(V,j);if(H!==!1){const{newValue:X,activeIndex:Ne}=ee({finger:H});wn({sliderRef:L,activeIndex:Ne,setActive:C}),N(X),k&&!Sn(X,p)&&k(V,X,Ne)}B.current=0;const ie=Ln(L.current);ie.addEventListener("mousemove",le,{passive:!0}),ie.addEventListener("mouseup",I)},q=In(F?z[0]:u,u,c),ne=In(z[z.length-1],u,c)-q,Ce=(M={})=>{const V=An(M),H={onMouseDown:Xe(V||{})},ie={...V,...H};return{...M,ref:J,...ie}},be=M=>V=>{var ie;(ie=M.onMouseOver)==null||ie.call(M,V);const H=Number(V.currentTarget.getAttribute("data-index"));$(H)},Ee=M=>V=>{var H;(H=M.onMouseLeave)==null||H.call(M,V),$(-1)},Be=(M={})=>{const V=An(M),H={onMouseOver:be(V||{}),onMouseLeave:Ee(V||{})};return{...M,...V,...H}},Ge=M=>({pointerEvents:v!==-1&&v!==M?"none":void 0});let ve;return y==="vertical"&&(ve=i?"vertical-rl":"vertical-lr"),{active:v,axis:re,axisProps:E0,dragging:A,focusedThumbIndex:ae,getHiddenInputProps:(M={})=>{const V=An(M),H={onChange:G(V||{}),onFocus:K(V||{}),onBlur:P(V||{}),onKeyDown:te(V||{})},ie={...V,...H};return{tabIndex:_,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(c),"aria-valuemin":b(u),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...M,...ie,style:{...w0,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ve}}},getRootProps:Ce,getThumbProps:Be,marks:Y,open:S,range:F,rootRef:J,trackLeap:ne,trackOffset:q,values:z,getThumbStyle:Ge}}function Tt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Ye(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var kn={exports:{}},me={};/**
27
27
  * @license React
28
28
  * react-is.production.js
29
29
  *
@@ -31,7 +31,7 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var D=le(G,ee,P,Z,te+"."
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var Io;function O0(){if(Io)return me;Io=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case n:case o:case r:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case g:case h:return f;case i:return f;default:return x}}case t:return x}}}return me.ContextConsumer=i,me.ContextProvider=a,me.Element=e,me.ForwardRef=c,me.Fragment=n,me.Lazy=g,me.Memo=h,me.Portal=t,me.Profiler=o,me.StrictMode=r,me.Suspense=u,me.SuspenseList=d,me.isContextConsumer=function(f){return b(f)===i},me.isContextProvider=function(f){return b(f)===a},me.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},me.isForwardRef=function(f){return b(f)===c},me.isFragment=function(f){return b(f)===n},me.isLazy=function(f){return b(f)===g},me.isMemo=function(f){return b(f)===h},me.isPortal=function(f){return b(f)===t},me.isProfiler=function(f){return b(f)===o},me.isStrictMode=function(f){return b(f)===r},me.isSuspense=function(f){return b(f)===u},me.isSuspenseList=function(f){return b(f)===d},me.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===h||f.$$typeof===a||f.$$typeof===i||f.$$typeof===c||f.$$typeof===p||f.getModuleId!==void 0)},me.typeOf=b,me}var he={};/**
34
+ */var Po;function A0(){if(Po)return me;Po=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case n:case o:case r:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case g:case h:return f;case i:return f;default:return x}}case t:return x}}}return me.ContextConsumer=i,me.ContextProvider=a,me.Element=e,me.ForwardRef=c,me.Fragment=n,me.Lazy=g,me.Memo=h,me.Portal=t,me.Profiler=o,me.StrictMode=r,me.Suspense=u,me.SuspenseList=d,me.isContextConsumer=function(f){return b(f)===i},me.isContextProvider=function(f){return b(f)===a},me.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},me.isForwardRef=function(f){return b(f)===c},me.isFragment=function(f){return b(f)===n},me.isLazy=function(f){return b(f)===g},me.isMemo=function(f){return b(f)===h},me.isPortal=function(f){return b(f)===t},me.isProfiler=function(f){return b(f)===o},me.isStrictMode=function(f){return b(f)===r},me.isSuspense=function(f){return b(f)===u},me.isSuspenseList=function(f){return b(f)===d},me.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===h||f.$$typeof===a||f.$$typeof===i||f.$$typeof===c||f.$$typeof===m||f.getModuleId!==void 0)},me.typeOf=b,me}var he={};/**
35
35
  * @license React
36
36
  * react-is.development.js
37
37
  *
@@ -39,21 +39,21 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var D=le(G,ee,P,Z,te+"."
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */var Po;function A0(){return Po||(Po=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case t:switch(f=f.type,f){case r:case i:case o:case d:case h:case p:return f;default:switch(f=f&&f.$$typeof,f){case c:case u:case y:case g:return f;case a:return f;default:return x}}case n:return x}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");he.ContextConsumer=a,he.ContextProvider=c,he.Element=t,he.ForwardRef=u,he.Fragment=r,he.Lazy=y,he.Memo=g,he.Portal=n,he.Profiler=i,he.StrictMode=o,he.Suspense=d,he.SuspenseList=h,he.isContextConsumer=function(f){return e(f)===a},he.isContextProvider=function(f){return e(f)===c},he.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},he.isForwardRef=function(f){return e(f)===u},he.isFragment=function(f){return e(f)===r},he.isLazy=function(f){return e(f)===y},he.isMemo=function(f){return e(f)===g},he.isPortal=function(f){return e(f)===n},he.isProfiler=function(f){return e(f)===i},he.isStrictMode=function(f){return e(f)===o},he.isSuspense=function(f){return e(f)===d},he.isSuspenseList=function(f){return e(f)===h},he.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===d||f===h||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===g||f.$$typeof===c||f.$$typeof===a||f.$$typeof===u||f.$$typeof===b||f.getModuleId!==void 0)},he.typeOf=e}()),he}var Bo;function L0(){return Bo||(Bo=1,process.env.NODE_ENV==="production"?kn.exports=O0():kn.exports=A0()),kn.exports}var Pn=L0();function st(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function si(e){if(Q.isValidElement(e)||Pn.isValidElementType(e)||!st(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=si(e[n])}),t}function qe(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return st(e)&&st(t)&&Object.keys(t).forEach(o=>{Q.isValidElement(t[o])||Pn.isValidElementType(t[o])?r[o]=t[o]:st(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&st(e[o])?r[o]=qe(e[o],t[o],n):n.clone?r[o]=st(t[o])?si(t[o]):t[o]:r[o]=t[o]}),r}function sn(e,t){return t?qe(e,t,{clone:!1}):e}const gt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Fo(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,c;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function M0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function R0(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
43
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function D0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...c)=>t(e.breakpoints.up(...c),a),i.down=(...c)=>t(e.breakpoints.down(...c),a),i.between=(...c)=>t(e.breakpoints.between(...c),a),i.only=(...c)=>t(e.breakpoints.only(...c),a),i.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Vn={xs:0,sm:600,md:900,lg:1200,xl:1536},Vo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vn[e]}px)`},I0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Vn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function at(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Vo;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Vo;return Object.keys(t).reduce((a,c)=>{if(M0(i.keys,c)){const u=R0(r.containerQueries?r:I0,c);u&&(a[u]=n(t[c],c))}else if(Object.keys(i.values||Vn).includes(c)){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function P0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function zo(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function zn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Bn(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=zn(e,n)||r,t&&(o=t(o,r,e)),o}function Se(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,d=zn(u,r)||{};return at(a,c,g=>{let y=Bn(d,o,g);return g===y&&typeof g=="string"&&(y=Bn(d,o,`${t}${g==="default"?"":Ye(g)}`,g)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:gt}:{},i.filterProps=[t],i}function B0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const F0={m:"margin",p:"padding"},V0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z0=B0(e=>{if(e.length>2)if(qo[e])e=qo[e];else return[e];const[t,n]=e.split(""),r=F0[t],o=V0[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),qn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],q0=[...qn,...Wn];function un(e,t,n,r){const o=zn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);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(`
42
+ */var Bo;function L0(){return Bo||(Bo=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case t:switch(f=f.type,f){case r:case i:case o:case d:case h:case m:return f;default:switch(f=f&&f.$$typeof,f){case c:case u:case y:case g:return f;case a:return f;default:return x}}case n:return x}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");he.ContextConsumer=a,he.ContextProvider=c,he.Element=t,he.ForwardRef=u,he.Fragment=r,he.Lazy=y,he.Memo=g,he.Portal=n,he.Profiler=i,he.StrictMode=o,he.Suspense=d,he.SuspenseList=h,he.isContextConsumer=function(f){return e(f)===a},he.isContextProvider=function(f){return e(f)===c},he.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},he.isForwardRef=function(f){return e(f)===u},he.isFragment=function(f){return e(f)===r},he.isLazy=function(f){return e(f)===y},he.isMemo=function(f){return e(f)===g},he.isPortal=function(f){return e(f)===n},he.isProfiler=function(f){return e(f)===i},he.isStrictMode=function(f){return e(f)===o},he.isSuspense=function(f){return e(f)===d},he.isSuspenseList=function(f){return e(f)===h},he.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===d||f===h||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===g||f.$$typeof===c||f.$$typeof===a||f.$$typeof===u||f.$$typeof===b||f.getModuleId!==void 0)},he.typeOf=e}()),he}var Vo;function M0(){return Vo||(Vo=1,process.env.NODE_ENV==="production"?kn.exports=A0():kn.exports=L0()),kn.exports}var Pn=M0();function st(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ii(e){if(Q.isValidElement(e)||Pn.isValidElementType(e)||!st(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ii(e[n])}),t}function qe(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return st(e)&&st(t)&&Object.keys(t).forEach(o=>{Q.isValidElement(t[o])||Pn.isValidElementType(t[o])?r[o]=t[o]:st(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&st(e[o])?r[o]=qe(e[o],t[o],n):n.clone?r[o]=st(t[o])?ii(t[o]):t[o]:r[o]=t[o]}),r}function sn(e,t){return t?qe(e,t,{clone:!1}):e}const gt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Fo(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,c;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function R0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function D0(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
43
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function I0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...c)=>t(e.breakpoints.up(...c),a),i.down=(...c)=>t(e.breakpoints.down(...c),a),i.between=(...c)=>t(e.breakpoints.between(...c),a),i.only=(...c)=>t(e.breakpoints.only(...c),a),i.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Fn={xs:0,sm:600,md:900,lg:1200,xl:1536},zo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fn[e]}px)`},P0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Fn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function at(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||zo;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||zo;return Object.keys(t).reduce((a,c)=>{if(R0(i.keys,c)){const u=D0(r.containerQueries?r:P0,c);u&&(a[u]=n(t[c],c))}else if(Object.keys(i.values||Fn).includes(c)){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function B0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function qo(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function zn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Bn(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=zn(e,n)||r,t&&(o=t(o,r,e)),o}function Se(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,d=zn(u,r)||{};return at(a,c,g=>{let y=Bn(d,o,g);return g===y&&typeof g=="string"&&(y=Bn(d,o,`${t}${g==="default"?"":Ye(g)}`,g)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:gt}:{},i.filterProps=[t],i}function V0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const F0={m:"margin",p:"padding"},z0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},q0=V0(e=>{if(e.length>2)if(Wo[e])e=Wo[e];else return[e];const[t,n]=e.split(""),r=F0[t],o=z0[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),qn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],W0=[...qn,...Wn];function un(e,t,n,r){const o=zn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);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(`
44
44
  `)):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(`
45
45
  `)));const c=o[a];return i>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}: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(`
46
- `)),()=>{})}function zr(e){return un(e,"spacing",8,"spacing")}function dn(e,t){return typeof t=="string"||t==null?t:e(t)}function W0(e,t){return n=>e.reduce((r,o)=>(r[o]=dn(t,n),r),{})}function U0(e,t,n,r){if(!t.includes(n))return null;const o=z0(n),i=W0(o,r),a=e[n];return at(e,a,i)}function ii(e,t){const n=zr(e.theme);return Object.keys(e).map(r=>U0(e,t,r,n)).reduce(sn,{})}function _e(e){return ii(e,qn)}_e.propTypes=process.env.NODE_ENV!=="production"?qn.reduce((e,t)=>(e[t]=gt,e),{}):{};_e.filterProps=qn;function we(e){return ii(e,Wn)}we.propTypes=process.env.NODE_ENV!=="production"?Wn.reduce((e,t)=>(e[t]=gt,e),{}):{};we.filterProps=Wn;process.env.NODE_ENV!=="production"&&q0.reduce((e,t)=>(e[t]=gt,e),{});function Un(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?sn(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function Ke(e,t){return Se({prop:e,themeKey:"borders",transform:t})}const Z0=Ke("border",Ze),H0=Ke("borderTop",Ze),K0=Ke("borderRight",Ze),G0=Ke("borderBottom",Ze),Y0=Ke("borderLeft",Ze),X0=Ke("borderColor"),Q0=Ke("borderTopColor"),J0=Ke("borderRightColor"),e2=Ke("borderBottomColor"),t2=Ke("borderLeftColor"),n2=Ke("outline",Ze),r2=Ke("outlineColor"),Zn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=un(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:dn(t,r)});return at(e,e.borderRadius,n)}return null};Zn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:gt}:{};Zn.filterProps=["borderRadius"];Un(Z0,H0,K0,G0,Y0,X0,Q0,J0,e2,t2,Zn,n2,r2);const Hn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=un(e.theme,"spacing",8,"gap"),n=r=>({gap:dn(t,r)});return at(e,e.gap,n)}return null};Hn.propTypes=process.env.NODE_ENV!=="production"?{gap:gt}:{};Hn.filterProps=["gap"];const Kn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=un(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:dn(t,r)});return at(e,e.columnGap,n)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:gt}:{};Kn.filterProps=["columnGap"];const Gn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=un(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:dn(t,r)});return at(e,e.rowGap,n)}return null};Gn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:gt}:{};Gn.filterProps=["rowGap"];const o2=Se({prop:"gridColumn"}),s2=Se({prop:"gridRow"}),i2=Se({prop:"gridAutoFlow"}),a2=Se({prop:"gridAutoColumns"}),l2=Se({prop:"gridAutoRows"}),c2=Se({prop:"gridTemplateColumns"}),u2=Se({prop:"gridTemplateRows"}),d2=Se({prop:"gridTemplateAreas"}),f2=Se({prop:"gridArea"});Un(Hn,Kn,Gn,o2,s2,i2,a2,l2,c2,u2,d2,f2);function Vt(e,t){return t==="grey"?t:e}const p2=Se({prop:"color",themeKey:"palette",transform:Vt}),m2=Se({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vt}),h2=Se({prop:"backgroundColor",themeKey:"palette",transform:Vt});Un(p2,m2,h2);function ze(e){return e<=1&&e!==0?`${e*100}%`:e}const g2=Se({prop:"width",transform:ze}),qr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Vn[n];return r?((u=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ze(n)}};return at(e,e.maxWidth,t)}return null};qr.filterProps=["maxWidth"];const y2=Se({prop:"minWidth",transform:ze}),b2=Se({prop:"height",transform:ze}),v2=Se({prop:"maxHeight",transform:ze}),x2=Se({prop:"minHeight",transform:ze});Se({prop:"size",cssProperty:"width",transform:ze});Se({prop:"size",cssProperty:"height",transform:ze});const C2=Se({prop:"boxSizing"});Un(g2,qr,y2,b2,v2,x2,C2);const Yn={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zn},color:{themeKey:"palette",transform:Vt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vt},backgroundColor:{themeKey:"palette",transform:Vt},p:{style:we},pt:{style:we},pr:{style:we},pb:{style:we},pl:{style:we},px:{style:we},py:{style:we},padding:{style:we},paddingTop:{style:we},paddingRight:{style:we},paddingBottom:{style:we},paddingLeft:{style:we},paddingX:{style:we},paddingY:{style:we},paddingInline:{style:we},paddingInlineStart:{style:we},paddingInlineEnd:{style:we},paddingBlock:{style:we},paddingBlockStart:{style:we},paddingBlockEnd:{style:we},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},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:Hn},rowGap:{style:Gn},columnGap:{style:Kn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ze},maxWidth:{style:qr},minWidth:{transform:ze},height:{transform:ze},maxHeight:{transform:ze},minHeight:{transform:ze},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function _2(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function w2(e,t){return typeof e=="function"?e(t):e}function S2(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:h,style:g}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=zn(o,d)||{};return g?g(a):at(a,r,b=>{let f=Bn(y,h,b);return b===f&&typeof b=="string"&&(f=Bn(y,h,`${n}${b==="default"?"":Ye(b)}`,b)),u===!1?f:{[u]:f}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Yn;function c(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const h=P0(o.breakpoints),g=Object.keys(h);let y=h;return Object.keys(d).forEach(p=>{const b=w2(d[p],o);if(b!=null)if(typeof b=="object")if(a[p])y=sn(y,e(p,b,o,a));else{const f=at({theme:o},b,x=>({[p]:x}));_2(f,b)?y[p]=t({sx:b,theme:o,nested:!0}):y=sn(y,f)}else y=sn(y,e(p,b,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Fo(o,zo(g,y))}:Fo(o,zo(g,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const qt=S2();qt.filterProps=["sx"];function T2(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var k2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function j2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $2=/[A-Z]|^ms/g,E2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ai=function(t){return t.charCodeAt(1)===45},Wo=function(t){return t!=null&&typeof t!="boolean"},gr=j2(function(e){return ai(e)?e:e.replace($2,"-$&").toLowerCase()}),Uo=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(E2,function(r,o,i){return ft={name:o,styles:i,next:ft},o})}return k2[t]!==1&&!ai(t)&&typeof n=="number"&&n!==0?n+"px":n};function Fn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ft={name:o.name,styles:o.styles,next:ft},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ft={name:a.name,styles:a.styles,next:ft},a=a.next;var c=i.styles+";";return c}return N2(e,t,n)}}var u=n;return u}function N2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Fn(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;Wo(c)&&(r+=gr(i)+":"+Uo(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Wo(a[u])&&(r+=gr(i)+":"+Uo(i,a[u])+";");else{var d=Fn(e,t,a);switch(i){case"animation":case"animationName":{r+=gr(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var Zo=/label:\s*([^\s;{]+)\s*(;|$)/g,ft;function O2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ft=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Fn(n,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=Fn(n,t,e[c]),r){var u=i;o+=u[c]}Zo.lastIndex=0;for(var d="",h;(h=Zo.exec(o))!==null;)d+="-"+h[1];var g=T2(o)+d;return{name:g,styles:o,next:ft}}/**
46
+ `)),()=>{})}function qr(e){return un(e,"spacing",8,"spacing")}function dn(e,t){return typeof t=="string"||t==null?t:e(t)}function U0(e,t){return n=>e.reduce((r,o)=>(r[o]=dn(t,n),r),{})}function Z0(e,t,n,r){if(!t.includes(n))return null;const o=q0(n),i=U0(o,r),a=e[n];return at(e,a,i)}function ai(e,t){const n=qr(e.theme);return Object.keys(e).map(r=>Z0(e,t,r,n)).reduce(sn,{})}function _e(e){return ai(e,qn)}_e.propTypes=process.env.NODE_ENV!=="production"?qn.reduce((e,t)=>(e[t]=gt,e),{}):{};_e.filterProps=qn;function we(e){return ai(e,Wn)}we.propTypes=process.env.NODE_ENV!=="production"?Wn.reduce((e,t)=>(e[t]=gt,e),{}):{};we.filterProps=Wn;process.env.NODE_ENV!=="production"&&W0.reduce((e,t)=>(e[t]=gt,e),{});function Un(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?sn(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function Ke(e,t){return Se({prop:e,themeKey:"borders",transform:t})}const H0=Ke("border",Ze),K0=Ke("borderTop",Ze),G0=Ke("borderRight",Ze),Y0=Ke("borderBottom",Ze),X0=Ke("borderLeft",Ze),Q0=Ke("borderColor"),J0=Ke("borderTopColor"),e2=Ke("borderRightColor"),t2=Ke("borderBottomColor"),n2=Ke("borderLeftColor"),r2=Ke("outline",Ze),o2=Ke("outlineColor"),Zn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=un(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:dn(t,r)});return at(e,e.borderRadius,n)}return null};Zn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:gt}:{};Zn.filterProps=["borderRadius"];Un(H0,K0,G0,Y0,X0,Q0,J0,e2,t2,n2,Zn,r2,o2);const Hn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=un(e.theme,"spacing",8,"gap"),n=r=>({gap:dn(t,r)});return at(e,e.gap,n)}return null};Hn.propTypes=process.env.NODE_ENV!=="production"?{gap:gt}:{};Hn.filterProps=["gap"];const Kn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=un(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:dn(t,r)});return at(e,e.columnGap,n)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:gt}:{};Kn.filterProps=["columnGap"];const Gn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=un(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:dn(t,r)});return at(e,e.rowGap,n)}return null};Gn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:gt}:{};Gn.filterProps=["rowGap"];const s2=Se({prop:"gridColumn"}),i2=Se({prop:"gridRow"}),a2=Se({prop:"gridAutoFlow"}),l2=Se({prop:"gridAutoColumns"}),c2=Se({prop:"gridAutoRows"}),u2=Se({prop:"gridTemplateColumns"}),d2=Se({prop:"gridTemplateRows"}),f2=Se({prop:"gridTemplateAreas"}),p2=Se({prop:"gridArea"});Un(Hn,Kn,Gn,s2,i2,a2,l2,c2,u2,d2,f2,p2);function Ft(e,t){return t==="grey"?t:e}const m2=Se({prop:"color",themeKey:"palette",transform:Ft}),h2=Se({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ft}),g2=Se({prop:"backgroundColor",themeKey:"palette",transform:Ft});Un(m2,h2,g2);function ze(e){return e<=1&&e!==0?`${e*100}%`:e}const y2=Se({prop:"width",transform:ze}),Wr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Fn[n];return r?((u=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ze(n)}};return at(e,e.maxWidth,t)}return null};Wr.filterProps=["maxWidth"];const b2=Se({prop:"minWidth",transform:ze}),v2=Se({prop:"height",transform:ze}),x2=Se({prop:"maxHeight",transform:ze}),C2=Se({prop:"minHeight",transform:ze});Se({prop:"size",cssProperty:"width",transform:ze});Se({prop:"size",cssProperty:"height",transform:ze});const _2=Se({prop:"boxSizing"});Un(y2,Wr,b2,v2,x2,C2,_2);const Yn={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zn},color:{themeKey:"palette",transform:Ft},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ft},backgroundColor:{themeKey:"palette",transform:Ft},p:{style:we},pt:{style:we},pr:{style:we},pb:{style:we},pl:{style:we},px:{style:we},py:{style:we},padding:{style:we},paddingTop:{style:we},paddingRight:{style:we},paddingBottom:{style:we},paddingLeft:{style:we},paddingX:{style:we},paddingY:{style:we},paddingInline:{style:we},paddingInlineStart:{style:we},paddingInlineEnd:{style:we},paddingBlock:{style:we},paddingBlockStart:{style:we},paddingBlockEnd:{style:we},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},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:Hn},rowGap:{style:Gn},columnGap:{style:Kn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ze},maxWidth:{style:Wr},minWidth:{transform:ze},height:{transform:ze},maxHeight:{transform:ze},minHeight:{transform:ze},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function w2(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function S2(e,t){return typeof e=="function"?e(t):e}function T2(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:h,style:g}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=zn(o,d)||{};return g?g(a):at(a,r,b=>{let f=Bn(y,h,b);return b===f&&typeof b=="string"&&(f=Bn(y,h,`${n}${b==="default"?"":Ye(b)}`,b)),u===!1?f:{[u]:f}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Yn;function c(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const h=B0(o.breakpoints),g=Object.keys(h);let y=h;return Object.keys(d).forEach(m=>{const b=S2(d[m],o);if(b!=null)if(typeof b=="object")if(a[m])y=sn(y,e(m,b,o,a));else{const f=at({theme:o},b,x=>({[m]:x}));w2(f,b)?y[m]=t({sx:b,theme:o,nested:!0}):y=sn(y,f)}else y=sn(y,e(m,b,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Fo(o,qo(g,y))}:Fo(o,qo(g,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const qt=T2();qt.filterProps=["sx"];function k2(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var j2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function $2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var E2=/[A-Z]|^ms/g,N2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,li=function(t){return t.charCodeAt(1)===45},Uo=function(t){return t!=null&&typeof t!="boolean"},gr=$2(function(e){return li(e)?e:e.replace(E2,"-$&").toLowerCase()}),Zo=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(N2,function(r,o,i){return ft={name:o,styles:i,next:ft},o})}return j2[t]!==1&&!li(t)&&typeof n=="number"&&n!==0?n+"px":n};function Vn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ft={name:o.name,styles:o.styles,next:ft},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ft={name:a.name,styles:a.styles,next:ft},a=a.next;var c=i.styles+";";return c}return O2(e,t,n)}}var u=n;return u}function O2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Vn(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;Uo(c)&&(r+=gr(i)+":"+Zo(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Uo(a[u])&&(r+=gr(i)+":"+Zo(i,a[u])+";");else{var d=Vn(e,t,a);switch(i){case"animation":case"animationName":{r+=gr(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var Ho=/label:\s*([^\s;{]+)\s*(;|$)/g,ft;function A2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ft=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Vn(n,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=Vn(n,t,e[c]),r){var u=i;o+=u[c]}Ho.lastIndex=0;for(var d="",h;(h=Ho.exec(o))!==null;)d+="-"+h[1];var g=k2(o)+d;return{name:g,styles:o,next:ft}}/**
47
47
  * @mui/styled-engine v7.3.10
48
48
  *
49
49
  * @license MIT
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
- */function A2(e,t){const n=pa(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
53
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function L2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ho=[];function St(e){return Ho[0]=e,O2(Ho)}const M2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function R2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=M2(t),a=Object.keys(i);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,p){const b=a.indexOf(p);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:p)-r/100}${n})`}function h(y){return a.indexOf(y)+1<a.length?d(y,a[a.indexOf(y)+1]):c(y)}function g(y){const p=a.indexOf(y);return p===0?c(a[1]):p===a.length-1?u(a[p]):d(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:u,between:d,only:h,not:g,unit:n,...o}}const D2={borderRadius:4};function li(e=8,t=zr({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function I2(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function ci(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=R2(n),u=li(o);let d=qe({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...D2,...i}},a);return d=D0(d),d.applyStyles=I2,d=t.reduce((h,g)=>qe(h,g),d),d.unstable_sxConfig={...Yn,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(g){return qt({sx:g,theme:this})},d}const Ko=e=>e,P2=()=>{let e=Ko;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ko}}},B2=P2(),F2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Wr(e,t,n="Mui"){const r=F2[t];return r?`${n}-${r}`:`${B2.generate(e)}-${t}`}function V2(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Wr(e,o,n)}),r}function ui(e,t=""){return e.displayName||e.name||t}function Go(e,t,n){const r=ui(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function z2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ui(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Pn.ForwardRef:return Go(e,e.render,"ForwardRef");case Pn.Memo:return Go(e,e.type,"memo");default:return}}}function di(e){const{variants:t,...n}=e,r={variants:t,style:St(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=St(o.style))}),r}const q2=ci();function yr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function wt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function W2(e){return e?(t,n)=>n[e]:null}function U2(e,t,n){e.theme=G2(e.theme)?n:e.theme[t]||e.theme}function Mn(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Mn(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?wt(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?wt(St(a),n):a}return fi(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?wt(St(r.style),n):r.style:n?wt(St(r),n):r}function fi(e,t,n=[],r=void 0){var i;let o;e:for(let a=0;a<t.length;a+=1){const c=t[a];if(typeof c.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(o))continue}else for(const u in c.props)if(e[u]!==c.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==c.props[u])continue e;typeof c.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?wt(St(c.style(o)),r):c.style(o))):n.push(r?wt(St(c.style),r):c.style)}return n}function Z2(e={}){const{themeId:t,defaultTheme:n=q2,rootShouldForwardProp:r=yr,slotShouldForwardProp:o=yr}=e;function i(c){U2(c,t,n)}return(c,u={})=>{L2(c,S=>S.filter($=>$!==qt));const{name:d,slot:h,skipVariantsResolver:g,skipSx:y,overridesResolver:p=W2(pi(h)),...b}=u,f=d&&d.startsWith("Mui")||h?"components":"custom",x=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,_=y||!1;let T=yr;h==="Root"||h==="root"?T=r:h?T=o:Y2(c)&&(T=void 0);const j=A2(c,{shouldForwardProp:T,label:K2(d,h),...b}),v=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(A){return Mn(A,S,A.theme.modularCssLayers?f:void 0)};if(st(S)){const $=di(S);return function(E){return $.variants?Mn(E,$,E.theme.modularCssLayers?f:void 0):E.theme.modularCssLayers?wt($.style,f):$.style}}return S},C=(...S)=>{const $=[],A=S.map(v),E=[];if($.push(i),d&&p&&E.push(function(N){var Y,W;const V=(W=(Y=N.theme.components)==null?void 0:Y[d])==null?void 0:W.styleOverrides;if(!V)return null;const z={};for(const ae in V)z[ae]=Mn(N,V[ae],N.theme.modularCssLayers?"theme":void 0);return p(N,z)}),d&&!x&&E.push(function(N){var z,Y;const k=N.theme,V=(Y=(z=k==null?void 0:k.components)==null?void 0:z[d])==null?void 0:Y.variants;return V?fi(N,V,[],N.theme.modularCssLayers?"theme":void 0):null}),_||E.push(qt),Array.isArray(A[0])){const m=A.shift(),N=new Array($.length).fill(""),k=new Array(E.length).fill("");let V;V=[...N,...m,...k],V.raw=[...N,...m.raw,...k],$.unshift(V)}const B=[...$,...A,...E],I=j(...B);return c.muiName&&(I.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=H2(d,h,c)),I};return j.withConfig&&(C.withConfig=j.withConfig),C}}function H2(e,t,n){return e?`${e}${Ye(t||"")}`:`Styled(${z2(n)})`}function K2(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${pi(t||"Root")}`),n}function G2(e){for(const t in e)return!1;return!0}function Y2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function pi(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Er(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],c=t[i];if(!c)r[i]=a||{};else if(!a)r[i]=c;else{r[i]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;r[i][d]=Er(a[d],c[d],n)}}}else i==="className"&&n&&t.className?r.className=pt(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Ur(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Ft(e,t,n)}function X2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function mt(e){if(e.type)return e;if(e.charAt(0)==="#")return mt(X2(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
52
+ */function L2(e,t){const n=ma(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
53
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function M2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ko=[];function St(e){return Ko[0]=e,A2(Ko)}const R2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function D2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=R2(t),a=Object.keys(i);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,m){const b=a.indexOf(m);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:m)-r/100}${n})`}function h(y){return a.indexOf(y)+1<a.length?d(y,a[a.indexOf(y)+1]):c(y)}function g(y){const m=a.indexOf(y);return m===0?c(a[1]):m===a.length-1?u(a[m]):d(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:u,between:d,only:h,not:g,unit:n,...o}}const I2={borderRadius:4};function ci(e=8,t=qr({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function P2(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function ui(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=D2(n),u=ci(o);let d=qe({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...I2,...i}},a);return d=I0(d),d.applyStyles=P2,d=t.reduce((h,g)=>qe(h,g),d),d.unstable_sxConfig={...Yn,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(g){return qt({sx:g,theme:this})},d}const Go=e=>e,B2=()=>{let e=Go;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Go}}},V2=B2(),F2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ur(e,t,n="Mui"){const r=F2[t];return r?`${n}-${r}`:`${V2.generate(e)}-${t}`}function z2(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ur(e,o,n)}),r}function di(e,t=""){return e.displayName||e.name||t}function Yo(e,t,n){const r=di(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function q2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return di(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Pn.ForwardRef:return Yo(e,e.render,"ForwardRef");case Pn.Memo:return Yo(e,e.type,"memo");default:return}}}function fi(e){const{variants:t,...n}=e,r={variants:t,style:St(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=St(o.style))}),r}const W2=ui();function yr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function wt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function U2(e){return e?(t,n)=>n[e]:null}function Z2(e,t,n){e.theme=Y2(e.theme)?n:e.theme[t]||e.theme}function Mn(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Mn(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?wt(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?wt(St(a),n):a}return pi(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?wt(St(r.style),n):r.style:n?wt(St(r),n):r}function pi(e,t,n=[],r=void 0){var i;let o;e:for(let a=0;a<t.length;a+=1){const c=t[a];if(typeof c.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(o))continue}else for(const u in c.props)if(e[u]!==c.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==c.props[u])continue e;typeof c.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?wt(St(c.style(o)),r):c.style(o))):n.push(r?wt(St(c.style),r):c.style)}return n}function H2(e={}){const{themeId:t,defaultTheme:n=W2,rootShouldForwardProp:r=yr,slotShouldForwardProp:o=yr}=e;function i(c){Z2(c,t,n)}return(c,u={})=>{M2(c,S=>S.filter($=>$!==qt));const{name:d,slot:h,skipVariantsResolver:g,skipSx:y,overridesResolver:m=U2(mi(h)),...b}=u,f=d&&d.startsWith("Mui")||h?"components":"custom",x=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,_=y||!1;let T=yr;h==="Root"||h==="root"?T=r:h?T=o:X2(c)&&(T=void 0);const j=L2(c,{shouldForwardProp:T,label:G2(d,h),...b}),v=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(A){return Mn(A,S,A.theme.modularCssLayers?f:void 0)};if(st(S)){const $=fi(S);return function(E){return $.variants?Mn(E,$,E.theme.modularCssLayers?f:void 0):E.theme.modularCssLayers?wt($.style,f):$.style}}return S},C=(...S)=>{const $=[],A=S.map(v),E=[];if($.push(i),d&&m&&E.push(function(N){var Y,W;const F=(W=(Y=N.theme.components)==null?void 0:Y[d])==null?void 0:W.styleOverrides;if(!F)return null;const z={};for(const ae in F)z[ae]=Mn(N,F[ae],N.theme.modularCssLayers?"theme":void 0);return m(N,z)}),d&&!x&&E.push(function(N){var z,Y;const k=N.theme,F=(Y=(z=k==null?void 0:k.components)==null?void 0:z[d])==null?void 0:Y.variants;return F?pi(N,F,[],N.theme.modularCssLayers?"theme":void 0):null}),_||E.push(qt),Array.isArray(A[0])){const p=A.shift(),N=new Array($.length).fill(""),k=new Array(E.length).fill("");let F;F=[...N,...p,...k],F.raw=[...N,...p.raw,...k],$.unshift(F)}const B=[...$,...A,...E],D=j(...B);return c.muiName&&(D.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(D.displayName=K2(d,h,c)),D};return j.withConfig&&(C.withConfig=j.withConfig),C}}function K2(e,t,n){return e?`${e}${Ye(t||"")}`:`Styled(${q2(n)})`}function G2(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${mi(t||"Root")}`),n}function Y2(e){for(const t in e)return!1;return!0}function X2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function mi(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Nr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],c=t[i];if(!c)r[i]=a||{};else if(!a)r[i]=c;else{r[i]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;r[i][d]=Nr(a[d],c[d],n)}}}else i==="className"&&n&&t.className?r.className=pt(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Zr(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Vt(e,t,n)}function Q2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function mt(e){if(e.type)return e;if(e.charAt(0)==="#")return mt(Q2(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
54
54
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Tt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
55
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Q2=e=>{const t=mt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},tn=(e,t)=>{try{return Q2(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Xn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function mi(e){e=mt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,h=(d+n/30)%12)=>o-i*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Xn({type:c,values:u})}function Nr(e){e=mt(e);let t=e.type==="hsl"||e.type==="hsla"?mt(mi(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Yo(e,t){const n=Nr(e),r=Nr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function hi(e,t){return e=mt(e),t=Ur(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xn(e)}function xt(e,t,n){try{return hi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Qn(e,t){if(e=mt(e),t=Ur(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xn(e)}function fe(e,t,n){try{return Qn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Jn(e,t){if(e=mt(e),t=Ur(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xn(e)}function pe(e,t,n){try{return Jn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function J2(e,t=.15){return Nr(e)>.5?Qn(e,t):Jn(e,t)}function jn(e,t,n){try{return J2(e,t)}catch{return e}}const eu=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function tu(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Er(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Er(o,r,t.components.mergeClassNameAndStyle):r}function nu({props:e,name:t}){const n=Q.useContext(eu);return tu({props:e,name:t,theme:{components:n}})}const Xo={theme:void 0};function ru(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Xo.theme=o.theme,i=di(e(Xo)),t=i,n=o.theme),i}}function ou(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Qo=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},su=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...i,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,c],Array.isArray(u)?[...a,c]:a):t([...i,c],u,a))})}r(e)},iu=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function br(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return su(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const h=`--${n?`${n}-`:""}${c.join("-")}`,g=iu(c,u);Object.assign(o,{[h]:g}),Qo(i,c,`var(${h})`,d),Qo(a,c,`var(${h}, ${g})`,d)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function au(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...d}=e,{vars:h,css:g,varsWithDefaults:y}=br(d,t);let p=y;const b={},{[u]:f,...x}=a;if(Object.entries(x||{}).forEach(([v,C])=>{const{vars:S,css:$,varsWithDefaults:A}=br(C,t);p=qe(p,A),b[v]={css:$,vars:S}}),f){const{css:v,vars:C,varsWithDefaults:S}=br(f,t);p=qe(p,S),b[u]={css:v,vars:C}}function _(v,C){var $,A;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),v){if(S==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((A=($=a[v])==null?void 0:$.palette)==null?void 0:A.mode)||v})`]:{":root":C}};if(S)return e.defaultColorScheme===v?`:root, ${S.replace("%s",String(v))}`:S.replace("%s",String(v))}return":root"}return{vars:p,generateThemeVars:()=>{let v={...h};return Object.entries(b).forEach(([,{vars:C}])=>{v=qe(v,C)}),v},generateStyleSheets:()=>{var E,B;const v=[],C=e.defaultColorScheme||"light";function S(I,m){Object.keys(m).length&&v.push(typeof I=="string"?{[I]:{...m}}:I)}S(n(void 0,{...g}),g);const{[C]:$,...A}=b;if($){const{css:I}=$,m=(B=(E=a[C])==null?void 0:E.palette)==null?void 0:B.mode,N=!r&&m?{colorScheme:m,...I}:{...I};S(n(C,{...N}),N)}return Object.entries(A).forEach(([I,{css:m}])=>{var V,z;const N=(z=(V=a[I])==null?void 0:V.palette)==null?void 0:z.mode,k=!r&&N?{colorScheme:N,...m}:{...m};S(n(I,{...k}),k)}),i&&v.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),v}}}function lu(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const an={black:"#000",white:"#fff"},cu={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"},At={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Lt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Gt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Mt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Rt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Dt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function gi(){return{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:an.white,default:an.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}}}const yi=gi();function bi(){return{text:{primary:an.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:an.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}}}const Or=bi();function Jo(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Jn(e.main,o):t==="dark"&&(e.dark=Qn(e.main,i)))}function es(e,t,n,r,o){const i=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function uu(e="light"){return e==="dark"?{main:Mt[200],light:Mt[50],dark:Mt[400]}:{main:Mt[700],light:Mt[400],dark:Mt[800]}}function du(e="light"){return e==="dark"?{main:At[200],light:At[50],dark:At[400]}:{main:At[500],light:At[300],dark:At[700]}}function fu(e="light"){return e==="dark"?{main:Lt[500],light:Lt[300],dark:Lt[700]}:{main:Lt[700],light:Lt[400],dark:Lt[800]}}function pu(e="light"){return e==="dark"?{main:Rt[400],light:Rt[300],dark:Rt[700]}:{main:Rt[700],light:Rt[500],dark:Rt[900]}}function mu(e="light"){return e==="dark"?{main:Dt[400],light:Dt[300],dark:Dt[700]}:{main:Dt[800],light:Dt[500],dark:Dt[900]}}function hu(e="light"){return e==="dark"?{main:Gt[400],light:Gt[300],dark:Gt[700]}:{main:"#ed6c02",light:Gt[500],dark:Gt[900]}}function gu(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Zr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||uu(t),c=e.secondary||du(t),u=e.error||fu(t),d=e.info||pu(t),h=e.success||mu(t),g=e.warning||hu(t);function y(x){if(o)return gu(x);const _=Yo(x,Or.text.primary)>=n?Or.text.primary:yi.text.primary;if(process.env.NODE_ENV!=="production"){const T=Yo(x,_);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${_} on ${x}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
56
- `))}return _}const p=({color:x,name:_,mainShade:T=500,lightShade:j=300,darkShade:v=700})=>{if(x={...x},!x.main&&x[T]&&(x.main=x[T]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
55
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const J2=e=>{const t=mt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},tn=(e,t)=>{try{return J2(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Xn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function hi(e){e=mt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,h=(d+n/30)%12)=>o-i*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Xn({type:c,values:u})}function Or(e){e=mt(e);let t=e.type==="hsl"||e.type==="hsla"?mt(hi(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xo(e,t){const n=Or(e),r=Or(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function gi(e,t){return e=mt(e),t=Zr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xn(e)}function xt(e,t,n){try{return gi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Qn(e,t){if(e=mt(e),t=Zr(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xn(e)}function fe(e,t,n){try{return Qn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Jn(e,t){if(e=mt(e),t=Zr(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xn(e)}function pe(e,t,n){try{return Jn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function eu(e,t=.15){return Or(e)>.5?Qn(e,t):Jn(e,t)}function jn(e,t,n){try{return eu(e,t)}catch{return e}}const tu=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function nu(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Nr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Nr(o,r,t.components.mergeClassNameAndStyle):r}function ru({props:e,name:t}){const n=Q.useContext(tu);return nu({props:e,name:t,theme:{components:n}})}const Qo={theme:void 0};function ou(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Qo.theme=o.theme,i=fi(e(Qo)),t=i,n=o.theme),i}}function su(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Jo=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},iu=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...i,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,c],Array.isArray(u)?[...a,c]:a):t([...i,c],u,a))})}r(e)},au=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function br(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return iu(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const h=`--${n?`${n}-`:""}${c.join("-")}`,g=au(c,u);Object.assign(o,{[h]:g}),Jo(i,c,`var(${h})`,d),Jo(a,c,`var(${h}, ${g})`,d)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function lu(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...d}=e,{vars:h,css:g,varsWithDefaults:y}=br(d,t);let m=y;const b={},{[u]:f,...x}=a;if(Object.entries(x||{}).forEach(([v,C])=>{const{vars:S,css:$,varsWithDefaults:A}=br(C,t);m=qe(m,A),b[v]={css:$,vars:S}}),f){const{css:v,vars:C,varsWithDefaults:S}=br(f,t);m=qe(m,S),b[u]={css:v,vars:C}}function _(v,C){var $,A;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),v){if(S==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((A=($=a[v])==null?void 0:$.palette)==null?void 0:A.mode)||v})`]:{":root":C}};if(S)return e.defaultColorScheme===v?`:root, ${S.replace("%s",String(v))}`:S.replace("%s",String(v))}return":root"}return{vars:m,generateThemeVars:()=>{let v={...h};return Object.entries(b).forEach(([,{vars:C}])=>{v=qe(v,C)}),v},generateStyleSheets:()=>{var E,B;const v=[],C=e.defaultColorScheme||"light";function S(D,p){Object.keys(p).length&&v.push(typeof D=="string"?{[D]:{...p}}:D)}S(n(void 0,{...g}),g);const{[C]:$,...A}=b;if($){const{css:D}=$,p=(B=(E=a[C])==null?void 0:E.palette)==null?void 0:B.mode,N=!r&&p?{colorScheme:p,...D}:{...D};S(n(C,{...N}),N)}return Object.entries(A).forEach(([D,{css:p}])=>{var F,z;const N=(z=(F=a[D])==null?void 0:F.palette)==null?void 0:z.mode,k=!r&&N?{colorScheme:N,...p}:{...p};S(n(D,{...k}),k)}),i&&v.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),v}}}function cu(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const an={black:"#000",white:"#fff"},uu={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"},At={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Lt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Gt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Mt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Rt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Dt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function yi(){return{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:an.white,default:an.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}}}const bi=yi();function vi(){return{text:{primary:an.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:an.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}}}const Ar=vi();function es(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Jn(e.main,o):t==="dark"&&(e.dark=Qn(e.main,i)))}function ts(e,t,n,r,o){const i=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function du(e="light"){return e==="dark"?{main:Mt[200],light:Mt[50],dark:Mt[400]}:{main:Mt[700],light:Mt[400],dark:Mt[800]}}function fu(e="light"){return e==="dark"?{main:At[200],light:At[50],dark:At[400]}:{main:At[500],light:At[300],dark:At[700]}}function pu(e="light"){return e==="dark"?{main:Lt[500],light:Lt[300],dark:Lt[700]}:{main:Lt[700],light:Lt[400],dark:Lt[800]}}function mu(e="light"){return e==="dark"?{main:Rt[400],light:Rt[300],dark:Rt[700]}:{main:Rt[700],light:Rt[500],dark:Rt[900]}}function hu(e="light"){return e==="dark"?{main:Dt[400],light:Dt[300],dark:Dt[700]}:{main:Dt[800],light:Dt[500],dark:Dt[900]}}function gu(e="light"){return e==="dark"?{main:Gt[400],light:Gt[300],dark:Gt[700]}:{main:"#ed6c02",light:Gt[500],dark:Gt[900]}}function yu(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Hr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||du(t),c=e.secondary||fu(t),u=e.error||pu(t),d=e.info||mu(t),h=e.success||hu(t),g=e.warning||gu(t);function y(x){if(o)return yu(x);const _=Xo(x,Ar.text.primary)>=n?Ar.text.primary:bi.text.primary;if(process.env.NODE_ENV!=="production"){const T=Xo(x,_);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${_} on ${x}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
56
+ `))}return _}const m=({color:x,name:_,mainShade:T=500,lightShade:j=300,darkShade:v=700})=>{if(x={...x},!x.main&&x[T]&&(x.main=x[T]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
57
57
  The color object needs to have a \`main\` property or a \`${T}\` property.`:Tt(11,_?` (${_})`:"",T));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
58
58
  \`color.main\` should be a string, but \`${JSON.stringify(x.main)}\` was provided instead.
59
59
 
@@ -67,21 +67,21 @@ const theme1 = createTheme({ palette: {
67
67
 
68
68
  const theme2 = createTheme({ palette: {
69
69
  primary: { main: green[500] },
70
- } });`:Tt(12,_?` (${_})`:"",JSON.stringify(x.main)));return o?(es(o,x,"light",j,r),es(o,x,"dark",v,r)):(Jo(x,"light",j,r),Jo(x,"dark",v,r)),x.contrastText||(x.contrastText=y(x.main)),x};let b;return t==="light"?b=gi():t==="dark"&&(b=bi()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),qe({common:{...an},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:u,name:"error"}),warning:p({color:g,name:"warning"}),info:p({color:d,name:"info"}),success:p({color:h,name:"success"}),grey:cu,contrastThreshold:n,getContrastText:y,augmentColor:p,tonalOffset:r,...b},i)}function yu(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function bu(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vu(e){return Math.round(e*1e5)/1e5}const ts={textTransform:"uppercase"},ns='"Roboto", "Helvetica", "Arial", sans-serif';function xu(e,t){const{fontFamily:n=ns,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h,...g}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="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 y=r/14,p=h||(x=>`${x/u*y}rem`),b=(x,_,T,j,v)=>({fontFamily:n,fontWeight:x,fontSize:p(_),lineHeight:T,...n===ns?{letterSpacing:`${vu(j/_)}em`}:{},...v,...d}),f={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,ts),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,ts),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qe({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...f},g,{clone:!1})}const Cu=.2,_u=.14,wu=.12;function xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${_u})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wu})`].join(",")}const Su=["none",xe(0,2,1,-1,0,1,1,0,0,1,3,0),xe(0,3,1,-2,0,2,2,0,0,1,5,0),xe(0,3,3,-2,0,3,4,0,0,1,8,0),xe(0,2,4,-1,0,4,5,0,0,1,10,0),xe(0,3,5,-1,0,5,8,0,0,1,14,0),xe(0,3,5,-1,0,6,10,0,0,1,18,0),xe(0,4,5,-2,0,7,10,1,0,2,16,1),xe(0,5,5,-3,0,8,10,1,0,3,14,2),xe(0,5,6,-3,0,9,12,1,0,3,16,2),xe(0,6,6,-3,0,10,14,1,0,4,18,3),xe(0,6,7,-4,0,11,15,1,0,4,20,3),xe(0,7,8,-4,0,12,17,2,0,5,22,4),xe(0,7,8,-4,0,13,19,2,0,5,24,4),xe(0,7,9,-4,0,14,21,2,0,5,26,4),xe(0,8,9,-5,0,15,22,2,0,6,28,5),xe(0,8,10,-5,0,16,24,2,0,6,30,5),xe(0,8,11,-5,0,17,26,2,0,6,32,5),xe(0,9,11,-5,0,18,28,2,0,7,34,6),xe(0,9,12,-6,0,19,29,2,0,7,36,6),xe(0,10,13,-6,0,20,31,3,0,8,38,7),xe(0,10,13,-6,0,21,33,3,0,8,40,7),xe(0,10,14,-6,0,22,35,3,0,8,42,7),xe(0,11,14,-7,0,23,36,3,0,9,44,8),xe(0,11,15,-7,0,24,38,3,0,9,46,8)],Tu={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)"},ku={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rs(e){return`${Math.round(e)}ms`}function ju(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function $u(e){const t={...Tu,...e.easing},n={...ku,...e.duration};return{getAutoHeightDuration:ju,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const h=y=>typeof y=="string",g=y=>!Number.isNaN(parseFloat(y));!h(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(a)&&!h(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),h(c)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!h(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
71
- `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof a=="string"?a:rs(a)} ${c} ${typeof u=="string"?u:rs(u)}`).join(",")},...e,easing:t,duration:n}}const Eu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Nu(e){return st(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function vi(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,c]=o[i];!Nu(c)||a.startsWith("unstable_")?delete r[a]:st(c)&&(r[a]={...c},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
70
+ } });`:Tt(12,_?` (${_})`:"",JSON.stringify(x.main)));return o?(ts(o,x,"light",j,r),ts(o,x,"dark",v,r)):(es(x,"light",j,r),es(x,"dark",v,r)),x.contrastText||(x.contrastText=y(x.main)),x};let b;return t==="light"?b=yi():t==="dark"&&(b=vi()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),qe({common:{...an},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:g,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:h,name:"success"}),grey:uu,contrastThreshold:n,getContrastText:y,augmentColor:m,tonalOffset:r,...b},i)}function bu(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function vu(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function xu(e){return Math.round(e*1e5)/1e5}const ns={textTransform:"uppercase"},rs='"Roboto", "Helvetica", "Arial", sans-serif';function Cu(e,t){const{fontFamily:n=rs,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h,...g}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="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 y=r/14,m=h||(x=>`${x/u*y}rem`),b=(x,_,T,j,v)=>({fontFamily:n,fontWeight:x,fontSize:m(_),lineHeight:T,...n===rs?{letterSpacing:`${xu(j/_)}em`}:{},...v,...d}),f={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,ns),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,ns),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qe({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...f},g,{clone:!1})}const _u=.2,wu=.14,Su=.12;function xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_u})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Su})`].join(",")}const Tu=["none",xe(0,2,1,-1,0,1,1,0,0,1,3,0),xe(0,3,1,-2,0,2,2,0,0,1,5,0),xe(0,3,3,-2,0,3,4,0,0,1,8,0),xe(0,2,4,-1,0,4,5,0,0,1,10,0),xe(0,3,5,-1,0,5,8,0,0,1,14,0),xe(0,3,5,-1,0,6,10,0,0,1,18,0),xe(0,4,5,-2,0,7,10,1,0,2,16,1),xe(0,5,5,-3,0,8,10,1,0,3,14,2),xe(0,5,6,-3,0,9,12,1,0,3,16,2),xe(0,6,6,-3,0,10,14,1,0,4,18,3),xe(0,6,7,-4,0,11,15,1,0,4,20,3),xe(0,7,8,-4,0,12,17,2,0,5,22,4),xe(0,7,8,-4,0,13,19,2,0,5,24,4),xe(0,7,9,-4,0,14,21,2,0,5,26,4),xe(0,8,9,-5,0,15,22,2,0,6,28,5),xe(0,8,10,-5,0,16,24,2,0,6,30,5),xe(0,8,11,-5,0,17,26,2,0,6,32,5),xe(0,9,11,-5,0,18,28,2,0,7,34,6),xe(0,9,12,-6,0,19,29,2,0,7,36,6),xe(0,10,13,-6,0,20,31,3,0,8,38,7),xe(0,10,13,-6,0,21,33,3,0,8,40,7),xe(0,10,14,-6,0,22,35,3,0,8,42,7),xe(0,11,14,-7,0,23,36,3,0,9,44,8),xe(0,11,15,-7,0,24,38,3,0,9,46,8)],ku={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)"},ju={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function os(e){return`${Math.round(e)}ms`}function $u(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Eu(e){const t={...ku,...e.easing},n={...ju,...e.duration};return{getAutoHeightDuration:$u,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const h=y=>typeof y=="string",g=y=>!Number.isNaN(parseFloat(y));!h(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(a)&&!h(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),h(c)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!h(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
71
+ `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof a=="string"?a:os(a)} ${c} ${typeof u=="string"?u:os(u)}`).join(",")},...e,easing:t,duration:n}}const Nu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ou(e){return st(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function xi(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,c]=o[i];!Ou(c)||a.startsWith("unstable_")?delete r[a]:st(c)&&(r[a]={...c},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
72
72
 
73
73
  const theme = ${JSON.stringify(t,null,2)};
74
74
 
75
75
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
76
76
  theme.transitions = createTransitions(theme.transitions || {});
77
77
 
78
- export default theme;`}function os(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ou=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Au(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:hi(t,Ou(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${os(n)})`:Jn(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${os(n)})`:Qn(t,n)}})}function Ar(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:c={},shape:u,colorSpace:d,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Tt(20));const g=Zr({...i,colorSpace:d}),y=ci(e);let p=qe(y,{mixins:bu(y.breakpoints,r),palette:g,shadows:Su.slice(),typography:xu(g,c),transitions:$u(a),zIndex:{...Eu}});if(p=qe(p,h),p=t.reduce((b,f)=>qe(b,f),p),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(x,_)=>{let T;for(T in x){const j=x[T];if(b.includes(T)&&Object.keys(j).length>0){if(process.env.NODE_ENV!=="production"){const v=Wr("",T);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:j}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
79
- `))}x[T]={}}}};Object.keys(p.components).forEach(x=>{const _=p.components[x].styleOverrides;_&&x.startsWith("Mui")&&f(_,x)})}return p.unstable_sxConfig={...Yn,...h==null?void 0:h.unstable_sxConfig},p.unstable_sx=function(f){return qt({sx:f,theme:this})},p.toRuntimeSource=vi,Au(p),p}function Lu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Mu=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Lu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function xi(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ci(e){return e==="dark"?Mu:[]}function Ru(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Zr({...t,colorSpace:o});return{palette:a,opacity:{...xi(a.mode),...n},overlays:r||Ci(a.mode),...i}}function Du(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Iu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Pu=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Iu(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Bu(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function O(e,t,n){!e[t]&&n&&(e[t]=n)}function nn(e){return typeof e!="string"||!e.startsWith("hsl")?e:mi(e)}function nt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tn(nn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
80
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Fu(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Qe=e=>{try{return e()}catch{}},Vu=(e="mui")=>ou(e);function vr(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=Ru({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...c}=Ar({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...xi(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Ci(i)},c}function zu(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=Du,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,g=Object.keys(n)[0],y=r||(n.light&&g!=="light"?"light":g),p=Vu(i),{[y]:b,light:f,dark:x,..._}=n,T={..._};let j=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(j=!0),!j)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:Tt(21,y));let v;a&&(v="oklch");const C=vr(v,T,j,h,y);f&&!T.light&&vr(v,T,f,void 0,"light"),x&&!T.dark&&vr(v,T,x,void 0,"dark");let S={defaultColorScheme:y,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:p,colorSchemes:T,font:{...yu(C.typography),...C.font},spacing:Fu(h.spacing)};Object.keys(S.colorSchemes).forEach(I=>{const m=S.colorSchemes[I].palette,N=V=>{const z=V.split("-"),Y=z[1],W=z[2];return p(V,m[Y][W])};m.mode==="light"&&(O(m.common,"background","#fff"),O(m.common,"onBackground","#000")),m.mode==="dark"&&(O(m.common,"background","#000"),O(m.common,"onBackground","#fff"));function k(V,z,Y){if(v){let W;return V===xt&&(W=`transparent ${((1-Y)*100).toFixed(0)}%`),V===fe&&(W=`#000 ${(Y*100).toFixed(0)}%`),V===pe&&(W=`#fff ${(Y*100).toFixed(0)}%`),`color-mix(in ${v}, ${z}, ${W})`}return V(z,Y)}if(Bu(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){O(m.Alert,"errorColor",k(fe,a?p("palette-error-light"):m.error.light,.6)),O(m.Alert,"infoColor",k(fe,a?p("palette-info-light"):m.info.light,.6)),O(m.Alert,"successColor",k(fe,a?p("palette-success-light"):m.success.light,.6)),O(m.Alert,"warningColor",k(fe,a?p("palette-warning-light"):m.warning.light,.6)),O(m.Alert,"errorFilledBg",N("palette-error-main")),O(m.Alert,"infoFilledBg",N("palette-info-main")),O(m.Alert,"successFilledBg",N("palette-success-main")),O(m.Alert,"warningFilledBg",N("palette-warning-main")),O(m.Alert,"errorFilledColor",Qe(()=>m.getContrastText(m.error.main))),O(m.Alert,"infoFilledColor",Qe(()=>m.getContrastText(m.info.main))),O(m.Alert,"successFilledColor",Qe(()=>m.getContrastText(m.success.main))),O(m.Alert,"warningFilledColor",Qe(()=>m.getContrastText(m.warning.main))),O(m.Alert,"errorStandardBg",k(pe,a?p("palette-error-light"):m.error.light,.9)),O(m.Alert,"infoStandardBg",k(pe,a?p("palette-info-light"):m.info.light,.9)),O(m.Alert,"successStandardBg",k(pe,a?p("palette-success-light"):m.success.light,.9)),O(m.Alert,"warningStandardBg",k(pe,a?p("palette-warning-light"):m.warning.light,.9)),O(m.Alert,"errorIconColor",N("palette-error-main")),O(m.Alert,"infoIconColor",N("palette-info-main")),O(m.Alert,"successIconColor",N("palette-success-main")),O(m.Alert,"warningIconColor",N("palette-warning-main")),O(m.AppBar,"defaultBg",N("palette-grey-100")),O(m.Avatar,"defaultBg",N("palette-grey-400")),O(m.Button,"inheritContainedBg",N("palette-grey-300")),O(m.Button,"inheritContainedHoverBg",N("palette-grey-A100")),O(m.Chip,"defaultBorder",N("palette-grey-400")),O(m.Chip,"defaultAvatarColor",N("palette-grey-700")),O(m.Chip,"defaultIconColor",N("palette-grey-700")),O(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),O(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),O(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),O(m.LinearProgress,"primaryBg",k(pe,a?p("palette-primary-main"):m.primary.main,.62)),O(m.LinearProgress,"secondaryBg",k(pe,a?p("palette-secondary-main"):m.secondary.main,.62)),O(m.LinearProgress,"errorBg",k(pe,a?p("palette-error-main"):m.error.main,.62)),O(m.LinearProgress,"infoBg",k(pe,a?p("palette-info-main"):m.info.main,.62)),O(m.LinearProgress,"successBg",k(pe,a?p("palette-success-main"):m.success.main,.62)),O(m.LinearProgress,"warningBg",k(pe,a?p("palette-warning-light"):m.warning.main,.62)),O(m.Skeleton,"bg",v?k(xt,a?p("palette-text-primary"):m.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),O(m.Slider,"primaryTrack",k(pe,a?p("palette-primary-main"):m.primary.main,.62)),O(m.Slider,"secondaryTrack",k(pe,a?p("palette-secondary-main"):m.secondary.main,.62)),O(m.Slider,"errorTrack",k(pe,a?p("palette-error-main"):m.error.main,.62)),O(m.Slider,"infoTrack",k(pe,a?p("palette-info-main"):m.info.main,.62)),O(m.Slider,"successTrack",k(pe,a?p("palette-success-main"):m.success.main,.62)),O(m.Slider,"warningTrack",k(pe,a?p("palette-warning-main"):m.warning.main,.62));const V=v?k(fe,a?p("palette-background-default"):m.background.default,.6825):jn(m.background.default,.8);O(m.SnackbarContent,"bg",V),O(m.SnackbarContent,"color",Qe(()=>v?Or.text.primary:m.getContrastText(V))),O(m.SpeedDialAction,"fabHoverBg",jn(m.background.paper,.15)),O(m.StepConnector,"border",N("palette-grey-400")),O(m.StepContent,"border",N("palette-grey-400")),O(m.Switch,"defaultColor",N("palette-common-white")),O(m.Switch,"defaultDisabledColor",N("palette-grey-100")),O(m.Switch,"primaryDisabledColor",k(pe,a?p("palette-primary-main"):m.primary.main,.62)),O(m.Switch,"secondaryDisabledColor",k(pe,a?p("palette-secondary-main"):m.secondary.main,.62)),O(m.Switch,"errorDisabledColor",k(pe,a?p("palette-error-main"):m.error.main,.62)),O(m.Switch,"infoDisabledColor",k(pe,a?p("palette-info-main"):m.info.main,.62)),O(m.Switch,"successDisabledColor",k(pe,a?p("palette-success-main"):m.success.main,.62)),O(m.Switch,"warningDisabledColor",k(pe,a?p("palette-warning-main"):m.warning.main,.62)),O(m.TableCell,"border",k(pe,xt(a?p("palette-divider"):m.divider,1),.88)),O(m.Tooltip,"bg",k(xt,a?p("palette-grey-700"):m.grey[700],.92))}if(m.mode==="dark"){O(m.Alert,"errorColor",k(pe,a?p("palette-error-light"):m.error.light,.6)),O(m.Alert,"infoColor",k(pe,a?p("palette-info-light"):m.info.light,.6)),O(m.Alert,"successColor",k(pe,a?p("palette-success-light"):m.success.light,.6)),O(m.Alert,"warningColor",k(pe,a?p("palette-warning-light"):m.warning.light,.6)),O(m.Alert,"errorFilledBg",N("palette-error-dark")),O(m.Alert,"infoFilledBg",N("palette-info-dark")),O(m.Alert,"successFilledBg",N("palette-success-dark")),O(m.Alert,"warningFilledBg",N("palette-warning-dark")),O(m.Alert,"errorFilledColor",Qe(()=>m.getContrastText(m.error.dark))),O(m.Alert,"infoFilledColor",Qe(()=>m.getContrastText(m.info.dark))),O(m.Alert,"successFilledColor",Qe(()=>m.getContrastText(m.success.dark))),O(m.Alert,"warningFilledColor",Qe(()=>m.getContrastText(m.warning.dark))),O(m.Alert,"errorStandardBg",k(fe,a?p("palette-error-light"):m.error.light,.9)),O(m.Alert,"infoStandardBg",k(fe,a?p("palette-info-light"):m.info.light,.9)),O(m.Alert,"successStandardBg",k(fe,a?p("palette-success-light"):m.success.light,.9)),O(m.Alert,"warningStandardBg",k(fe,a?p("palette-warning-light"):m.warning.light,.9)),O(m.Alert,"errorIconColor",N("palette-error-main")),O(m.Alert,"infoIconColor",N("palette-info-main")),O(m.Alert,"successIconColor",N("palette-success-main")),O(m.Alert,"warningIconColor",N("palette-warning-main")),O(m.AppBar,"defaultBg",N("palette-grey-900")),O(m.AppBar,"darkBg",N("palette-background-paper")),O(m.AppBar,"darkColor",N("palette-text-primary")),O(m.Avatar,"defaultBg",N("palette-grey-600")),O(m.Button,"inheritContainedBg",N("palette-grey-800")),O(m.Button,"inheritContainedHoverBg",N("palette-grey-700")),O(m.Chip,"defaultBorder",N("palette-grey-700")),O(m.Chip,"defaultAvatarColor",N("palette-grey-300")),O(m.Chip,"defaultIconColor",N("palette-grey-300")),O(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),O(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),O(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),O(m.LinearProgress,"primaryBg",k(fe,a?p("palette-primary-main"):m.primary.main,.5)),O(m.LinearProgress,"secondaryBg",k(fe,a?p("palette-secondary-main"):m.secondary.main,.5)),O(m.LinearProgress,"errorBg",k(fe,a?p("palette-error-main"):m.error.main,.5)),O(m.LinearProgress,"infoBg",k(fe,a?p("palette-info-main"):m.info.main,.5)),O(m.LinearProgress,"successBg",k(fe,a?p("palette-success-main"):m.success.main,.5)),O(m.LinearProgress,"warningBg",k(fe,a?p("palette-warning-main"):m.warning.main,.5)),O(m.Skeleton,"bg",v?k(xt,a?p("palette-text-primary"):m.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),O(m.Slider,"primaryTrack",k(fe,a?p("palette-primary-main"):m.primary.main,.5)),O(m.Slider,"secondaryTrack",k(fe,a?p("palette-secondary-main"):m.secondary.main,.5)),O(m.Slider,"errorTrack",k(fe,a?p("palette-error-main"):m.error.main,.5)),O(m.Slider,"infoTrack",k(fe,a?p("palette-info-main"):m.info.main,.5)),O(m.Slider,"successTrack",k(fe,a?p("palette-success-main"):m.success.main,.5)),O(m.Slider,"warningTrack",k(fe,a?p("palette-warning-light"):m.warning.main,.5));const V=v?k(pe,a?p("palette-background-default"):m.background.default,.985):jn(m.background.default,.98);O(m.SnackbarContent,"bg",V),O(m.SnackbarContent,"color",Qe(()=>v?yi.text.primary:m.getContrastText(V))),O(m.SpeedDialAction,"fabHoverBg",jn(m.background.paper,.15)),O(m.StepConnector,"border",N("palette-grey-600")),O(m.StepContent,"border",N("palette-grey-600")),O(m.Switch,"defaultColor",N("palette-grey-300")),O(m.Switch,"defaultDisabledColor",N("palette-grey-600")),O(m.Switch,"primaryDisabledColor",k(fe,a?p("palette-primary-main"):m.primary.main,.55)),O(m.Switch,"secondaryDisabledColor",k(fe,a?p("palette-secondary-main"):m.secondary.main,.55)),O(m.Switch,"errorDisabledColor",k(fe,a?p("palette-error-main"):m.error.main,.55)),O(m.Switch,"infoDisabledColor",k(fe,a?p("palette-info-main"):m.info.main,.55)),O(m.Switch,"successDisabledColor",k(fe,a?p("palette-success-main"):m.success.main,.55)),O(m.Switch,"warningDisabledColor",k(fe,a?p("palette-warning-light"):m.warning.main,.55)),O(m.TableCell,"border",k(fe,xt(a?p("palette-divider"):m.divider,1),.68)),O(m.Tooltip,"bg",k(xt,a?p("palette-grey-700"):m.grey[700],.92))}a||(nt(m.background,"default"),nt(m.background,"paper"),nt(m.common,"background"),nt(m.common,"onBackground"),nt(m,"divider")),Object.keys(m).forEach(V=>{const z=m[V];V!=="tonalOffset"&&!a&&z&&typeof z=="object"&&(z.main&&O(m[V],"mainChannel",tn(nn(z.main))),z.light&&O(m[V],"lightChannel",tn(nn(z.light))),z.dark&&O(m[V],"darkChannel",tn(nn(z.dark))),z.contrastText&&O(m[V],"contrastTextChannel",tn(nn(z.contrastText))),V==="text"&&(nt(m[V],"primary"),nt(m[V],"secondary")),V==="action"&&(z.active&&nt(m[V],"active"),z.selected&&nt(m[V],"selected")))})}),S=t.reduce((I,m)=>qe(I,m),S);const $={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:Pu(S),enableContrastVars:a},{vars:A,generateThemeVars:E,generateStyleSheets:B}=au(S,$);return S.vars=A,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([I,m])=>{S[I]=m}),S.generateThemeVars=E,S.generateStyleSheets=B,S.generateSpacing=function(){return li(h.spacing,zr(this))},S.getColorSchemeSelector=lu(u),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=c,S.unstable_sxConfig={...Yn,...h==null?void 0:h.unstable_sxConfig},S.unstable_sx=function(m){return qt({sx:m,theme:this})},S.toRuntimeSource=vi,S}function ss(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Zr({...n===!0?{}:n.palette,mode:t})})}function qu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,c=i||"light",u=o==null?void 0:o[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ar(e,...t);let h=n;"palette"in e||d[c]&&(d[c]!==!0?h=d[c].palette:c==="dark"&&(h={mode:"dark"}));const g=Ar({...e,palette:h},...t);return g.defaultColorScheme=c,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},ss(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},ss(g,"light",d.light)),g}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),zu({...a,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Wu=qu(),Uu="$$material";function Hr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zu=e=>Hr(e)&&e!=="classes",$t=Z2({themeId:Uu,defaultTheme:Wu,rootShouldForwardProp:Zu}),Ut=ru;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Hu(e){return nu(e)}const Ku=e=>!e||!on(e);function Gu(e){return typeof e.main=="string"}function Yu(e,t=[]){if(!Gu(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Kr(e=[]){return([,t])=>t&&Yu(t,e)}function Xu(e){return Wr("MuiSlider",e)}const He=V2("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Qu=e=>{const{open:t}=e;return{offset:pt(t&&He.valueLabelOpen),circle:He.valueLabelCircle,label:He.valueLabelLabel}};function _i(e){const{children:t,className:n,value:r}=e,o=Qu(e);return t?Q.cloneElement(t,{className:t.props.className},l.jsxs(Q.Fragment,{children:[t.props.children,l.jsx("span",{className:pt(o.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:o.circle,children:l.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(_i.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function is(e){return e}const Ju=$t("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ye(n.color)}`],n.size!=="medium"&&t[`size${Ye(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ut(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${He.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${He.dragging}`]:{[`& .${He.thumb}, & .${He.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Kr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),e1=$t("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),t1=$t("span",{name:"MuiSlider",slot:"Track"})(Ut(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Kr()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),n1=$t("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ye(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ye(n.size)}`]]}})(Ut(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${He.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Kr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${He.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${He.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),wi=$t(_i,{name:"MuiSlider",slot:"ValueLabel"})(Ut(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(wi.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const r1=$t("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Hr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ut(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),o1=$t("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Hr(e)&&e!=="markLabelActive"})(Ut(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),s1=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:c,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",c&&`color${Ye(c)}`,u&&`size${Ye(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Ye(u)}`,c&&`thumbColor${Ye(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return h0(d,Xu,a)},i1=({children:e})=>e,Si=Q.forwardRef(function(t,n){const r=Hu({props:t,name:"MuiSlider"}),o=y0(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":c,component:u="span",components:d={},componentsProps:h={},color:g="primary",classes:y,className:p,disableSwap:b=!1,disabled:f=!1,getAriaLabel:x,getAriaValueText:_,marks:T=!1,max:j=100,min:v=0,name:C,onChange:S,onChangeCommitted:$,orientation:A="horizontal",shiftStep:E=10,size:B="medium",step:I=1,scale:m=is,slotProps:N,slots:k,tabIndex:V,track:z="normal",value:Y,valueLabelDisplay:W="off",valueLabelFormat:ae=is,...R}=r,L={...r,isRtl:o,max:j,min:v,classes:y,disabled:f,disableSwap:b,orientation:A,marks:T,color:g,size:B,step:I,shiftStep:E,scale:m,track:z,valueLabelDisplay:W,valueLabelFormat:ae},{axisProps:J,getRootProps:K,getHiddenInputProps:P,getThumbProps:Z,open:te,active:G,axis:U,focusedThumbIndex:re,range:ee,dragging:le,marks:D,values:se,trackOffset:Le,trackLeap:Xe,getThumbStyle:q}=N0({...L,rootRef:n});L.marked=D.length>0&&D.some(Te=>Te.label),L.dragging=le,L.focusedThumbIndex=re;const ne=s1(L),Ce=(k==null?void 0:k.root)??d.Root??Ju,be=(k==null?void 0:k.rail)??d.Rail??e1,Ee=(k==null?void 0:k.track)??d.Track??t1,Be=(k==null?void 0:k.thumb)??d.Thumb??n1,Ge=(k==null?void 0:k.valueLabel)??d.ValueLabel??wi,ve=(k==null?void 0:k.mark)??d.Mark??r1,Fe=(k==null?void 0:k.markLabel)??d.MarkLabel??o1,M=(k==null?void 0:k.input)??d.Input??"input",F=(N==null?void 0:N.root)??h.root,H=(N==null?void 0:N.rail)??h.rail,ie=(N==null?void 0:N.track)??h.track,ge=(N==null?void 0:N.thumb)??h.thumb,X=(N==null?void 0:N.valueLabel)??h.valueLabel,Ne=(N==null?void 0:N.mark)??h.mark,Re=(N==null?void 0:N.markLabel)??h.markLabel,je=(N==null?void 0:N.input)??h.input,We=ut({elementType:Ce,getSlotProps:K,externalSlotProps:F,externalForwardedProps:R,additionalProps:{...Ku(Ce)&&{as:u}},ownerState:{...L,...F==null?void 0:F.ownerState},className:[ne.root,p]}),Ht=ut({elementType:be,externalSlotProps:H,ownerState:L,className:ne.rail}),Qi=ut({elementType:Ee,externalSlotProps:ie,additionalProps:{style:{...J[U].offset(Le),...J[U].leap(Xe)}},ownerState:{...L,...ie==null?void 0:ie.ownerState},className:ne.track}),er=ut({elementType:Be,getSlotProps:Z,externalSlotProps:ge,ownerState:{...L,...ge==null?void 0:ge.ownerState},className:ne.thumb}),Ji=ut({elementType:Ge,externalSlotProps:X,ownerState:{...L,...X==null?void 0:X.ownerState},className:ne.valueLabel}),tr=ut({elementType:ve,externalSlotProps:Ne,ownerState:L,className:ne.mark}),nr=ut({elementType:Fe,externalSlotProps:Re,ownerState:L,className:ne.markLabel}),ea=ut({elementType:M,getSlotProps:P,externalSlotProps:je,ownerState:L});return l.jsxs(Ce,{...We,children:[l.jsx(be,{...Ht}),l.jsx(Ee,{...Qi}),D.filter(Te=>Te.value>=v&&Te.value<=j).map((Te,Ae)=>{const rr=In(Te.value,v,j),mn=J[U].offset(rr);let tt;return z===!1?tt=se.includes(Te.value):tt=z==="normal"&&(ee?Te.value>=se[0]&&Te.value<=se[se.length-1]:Te.value<=se[0])||z==="inverted"&&(ee?Te.value<=se[0]||Te.value>=se[se.length-1]:Te.value>=se[0]),l.jsxs(Q.Fragment,{children:[l.jsx(ve,{"data-index":Ae,...tr,...!on(ve)&&{markActive:tt},style:{...mn,...tr.style},className:pt(tr.className,tt&&ne.markActive)}),Te.label!=null?l.jsx(Fe,{"aria-hidden":!0,"data-index":Ae,...nr,...!on(Fe)&&{markLabelActive:tt},style:{...mn,...nr.style},className:pt(ne.markLabel,nr.className,tt&&ne.markLabelActive),children:Te.label}):null]},Ae)}),se.map((Te,Ae)=>{const rr=In(Te,v,j),mn=J[U].offset(rr),tt=W==="off"?i1:Ge;return l.jsx(tt,{...!on(tt)&&{valueLabelFormat:ae,valueLabelDisplay:W,value:typeof ae=="function"?ae(m(Te),Ae):ae,index:Ae,open:te===Ae||G===Ae||W==="on",disabled:f},...Ji,children:l.jsx(Be,{"data-index":Ae,...er,className:pt(ne.thumb,er.className,G===Ae&&ne.active,re===Ae&&ne.focusVisible),style:{...mn,...q(Ae),...er.style},children:l.jsx(M,{"data-index":Ae,"aria-label":x?x(Ae):i,"aria-valuenow":m(Te),"aria-labelledby":c,"aria-valuetext":_?_(m(Te),Ae):a,value:se[Ae],...ea})})},Ae)})]})});process.env.NODE_ENV!=="production"&&(Si.propTypes={"aria-label":Oo(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":s.string,"aria-valuetext":Oo(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Mark:s.elementType,MarkLabel:s.elementType,Rail:s.elementType,Root:s.elementType,Thumb:s.elementType,Track:s.elementType,ValueLabel:s.elementType}),componentsProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),defaultValue:s.oneOfType([s.arrayOf(s.number),s.number]),disabled:s.bool,disableSwap:s.bool,getAriaLabel:s.func,getAriaValueText:s.func,marks:s.oneOfType([s.arrayOf(s.shape({label:s.node,value:s.number.isRequired})),s.bool]),max:s.number,min:s.number,name:s.string,onChange:s.func,onChangeCommitted:s.func,orientation:s.oneOf(["horizontal","vertical"]),scale:s.func,shiftStep:s.number,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),slots:s.shape({input:s.elementType,mark:s.elementType,markLabel:s.elementType,rail:s.elementType,root:s.elementType,thumb:s.elementType,track:s.elementType,valueLabel:s.elementType}),step:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,track:s.oneOf(["inverted","normal",!1]),value:s.oneOfType([s.arrayOf(s.number),s.number]),valueLabelDisplay:s.oneOf(["auto","off","on"]),valueLabelFormat:s.oneOfType([s.func,s.string])});const a1="_slider_1prh1_2",l1="_playButton_1prh1_14",c1="_sliderOpen_1prh1_25",u1="_sliderResults_1prh1_29",Yt={slider:a1,playButton:l1,sliderOpen:c1,sliderResults:u1},Ti=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,marcas:o=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:c=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const h=o||((v,C)=>{const S=[];S.push({label:"",value:v});const $=Math.ceil(v/10)*10;for(let A=$;A<C;A+=10)S.push({label:"",value:A});return S[S.length-1].value!==C&&S.push({label:"",value:C}),S})(n,r),[g,y]=w.useState(t);w.useEffect(()=>{y(t)},[t]);const p=(v,C)=>{y(C),u(C)},[b,f]=w.useState(!1);w.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),w.useEffect(()=>{c===!1&&f(!1)},[c]);const x=()=>{f(!0)},_=()=>{f(!1)};((v,C,S=[])=>{const $=w.useRef();w.useEffect(()=>{$.current=v},[v]),w.useEffect(()=>{function A(){$.current()}{let E=setInterval(A,C);return()=>clearInterval(E)}},[C,...S])})(()=>{b&&y(v=>{const C=v+1;return C>r?(u(n),n):(u(C),C)})},1e3,[n,r,b]);const j=no.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return l.jsx(fa.ThemeProvider,{theme:j,children:l.jsxs(no.Box,{sx:{width:400},className:`${e?Yt.sliderResults:Yt.slider} ${a?Yt.sliderOpen:""}`,style:{zIndex:i},children:[n,l.jsx(Si,{"aria-label":"TimeSlider",value:g,valueLabelDisplay:"on",step:1,marks:h,min:n,max:r,onChange:p,color:"primary",size:"small"}),r,!b&&l.jsx("button",{className:Yt.playButton,onClick:x,children:l.jsx("img",{src:p0,alt:"Play"})}),b&&l.jsx("button",{className:Yt.playButton,onClick:_,children:l.jsx("img",{src:m0,alt:"Pause"})})]})})};Ti.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,marcas:s.arrayOf(s.shape({label:s.string,value:s.number})),zIndex:s.number,rightBarOpen:s.bool,onChange:s.func};const d1="_TopNavMenuContainer_12mp4_2",f1="_topNavOptions_12mp4_13",p1="_active_12mp4_27",xr={TopNavMenuContainer:d1,topNavOptions:f1,active:p1},ki=({options:e=[],containerStyles:t,borderColor:n="red",textColor:r="white",onChangeNavLink:o=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=oe.useTranslation();return l.jsx("div",{className:xr.TopNavMenuContainer,style:{...t},children:e.map((a,c)=>l.jsx(ks.NavLink,{to:a.url,className:({isActive:u})=>`${xr.topNavOptions} ${u?xr.active:""} `,onClick:()=>o(a.url),style:({isActive:u})=>({color:r,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},c))})};ki.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const m1="_LogInButton_1vxj5_2",h1={LogInButton:m1},ji=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:r,userName:o="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:c=()=>{console.log("Logout clicked")}})=>{const{t:u}=oe.useTranslation();return l.jsx("div",{style:{...r},className:`${h1.LogInButton} link ${e}`,onClick:i?c:a,children:i?o||u(n):u(t)})};ji.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const g1="_elementSelector_1ox68_2",y1="_header_1ox68_14",b1="_nameDateContainer_1ox68_24",v1="_elementName_1ox68_40",x1="_elementDate_1ox68_54",C1="_buttonsContainer_1ox68_68",_1="_elementListContainer_1ox68_77",w1="_newElementButtonContainer_1ox68_81",rt={elementSelector:g1,header:y1,nameDateContainer:b1,elementName:v1,elementDate:x1,buttonsContainer:C1,elementListContainer:_1,newElementButtonContainer:w1},S1="_listElement_s4s4h_3",T1="_elementNameDate_s4s4h_19",k1="_elementNameContainer_s4s4h_30",j1="_elementName_s4s4h_19",$1="_elementDate_s4s4h_47",E1="_nameAndEye_s4s4h_50",N1="_elementButtons_s4s4h_55",O1="_moreInfoContainer_s4s4h_78",A1="_moreInfo_s4s4h_78",Ue={listElement:S1,elementNameDate:T1,elementNameContainer:k1,elementName:j1,elementDate:$1,nameAndEye:E1,elementButtons:N1,break:"_break_s4s4h_73",moreInfoContainer:O1,moreInfo:A1},L1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",M1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",R1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",D1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e",P1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";var as;function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(null,arguments)}var F1=function(t){return Q.createElement("svg",Lr({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),as||(as=Q.createElement("g",{fill:"currentColor"},Q.createElement("path",{d:"M12.95.408C7.659.408 2.849 2.772.083 6.726a.47.47 0 0 0 0 .532c2.761 3.955 7.571 6.313 12.867 6.313s10.106-2.358 12.867-6.313a.47.47 0 0 0 0-.532C23.05 2.772 18.24.408 12.95.408m0 10.814A4.24 4.24 0 0 1 8.718 6.99a4.24 4.24 0 0 1 4.232-4.232 4.24 4.24 0 0 1 4.232 4.232 4.24 4.24 0 0 1-4.232 4.232"}),Q.createElement("path",{d:"M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"}))))};const V1="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",$i=({listelement:e,onClickElement:t,isActive:n,activeColor:r,fontColor:o,moreInfo:i,columns:a,elementButtons:c,processTooltip:u,defaultTooltip:d,showEye:h=!0})=>{const{name:g,created_at:y,id:p,isBeingProcessed:b}=e,[f,x]=w.useState(!1),{t:_}=oe.useTranslation();w.useEffect(()=>{console.log("elementButtons: ",c)},[c]);const T=c&&c.edit&&!e.is_default&&!e.is_baseline,j=c&&c.trash&&!e.is_default&&!e.is_baseline;return l.jsxs("div",{className:Ue.listElement,style:{borderBottom:`1px solid ${o}`},children:[l.jsx("div",{className:Ue.elementNameDate,onClick:()=>t(p),children:Object.keys(a).map((v,C)=>v==="name"?l.jsx("div",{className:Ue.elementNameContainer,children:l.jsxs("div",{className:`${Ue.elementName} ${h&&Ue.nameAndEye}`,children:[h&&(n?l.jsx(F1,{style:{color:r,marginRight:9}}):l.jsx("img",{style:{marginRight:9},src:V1,alt:"eye"})),l.jsx("span",{style:{color:n?r:o},children:g})]})},`col${C}`):v=="data"?l.jsx("div",{className:Ue.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${C}data`):l.jsx("div",{className:Ue.elementDate,children:e[v]},`col${C}other`))}),l.jsxs("div",{className:Ue.elementButtons,children:[e.processing&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:D1}),l.jsx(et,{text:u,position:"left"})]}),c.filter&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.filter.onclick(e),disabled:c.filter.disabled||!1,children:l.jsx("img",{src:R1})}),l.jsx(et,{text:c.filter.tooltiptext,position:"left"})]}),c.copy&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.copy.onclick(e),disabled:c.copy.disabled||!1,children:l.jsx("img",{src:M1})}),l.jsx(et,{text:c.copy.tooltiptext,position:"left"})]}),T&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.edit.onclick(e),disabled:c.edit.disabled||!1,children:l.jsx("img",{src:P1})}),l.jsx(et,{text:c.edit.tooltiptext,position:"left"})]}),c.info&&e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.info.onclick(e),disabled:c.info.disabled||!1,children:l.jsx("img",{src:B1})}),l.jsx(et,{text:c.info.tooltiptext,position:"left"})]}),j&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.trash.onclick(e),disabled:c.trash.disabled||!1,children:l.jsx("img",{src:L1})}),l.jsx(et,{text:c.trash.tooltiptext,position:"left"})]}),e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:I1}),l.jsx(et,{text:d,position:"left"})]})]}),i&&l.jsx("div",{className:Ue.break}),i&&l.jsxs("div",{className:Ue.moreInfoContainer,children:[l.jsxs("div",{className:Ue.moreInfo,onClick:()=>x(!f),children:[l.jsx("span",{children:f?"-":"+"}),_(i.label)]}),i&&f&&l.jsx("div",{className:Ue.moreInfoInfo,children:e[i.info]})]})]})};$i.propTypes={listelement:s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired,isBeingProcessed:s.bool}).isRequired,onClickElement:s.func.isRequired,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.any,columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const ls="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ei=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:r,buttonContainerStyles:o={},containerStyles:i={},newElementButton:a,onClickElement:c=b=>console.log(`OnCLickElement: ${b}`),columns:u,elementButtons:d,moreInfo:h=!1,processTooltip:g,defaultTooltip:y,showEye:p=!0})=>{const{t:b}=oe.useTranslation(),[f,x]=w.useState(e);w.useEffect(()=>{e&&x(e)},[e]);const _=v=>{if(typeof v!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(v))return new Date(v);const C=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(v);if(C)return new Date(`${C[3]}-${C[2]}-${C[1]}`);const S=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(v);return S?parseInt(S[1])>12?new Date(`${S[3]}-${S[2]}-${S[1]}`):new Date(`${S[3]}-${S[1]}-${S[2]}`):null},T=v=>_(v)!==null,j=v=>{if(!f||f.length===0)return;let C=[...f];const S=C.find(A=>A[v]!==null&&A[v]!==void 0),$=S?T(S[v]):!1;C.sort((A,E)=>{const B=A[v],I=E[v];if(B==null&&I==null)return 0;if(B==null)return 1;if(I==null)return-1;if($){const k=_(B),V=_(I);return!k&&!V?0:k?V?k-V:-1:1}const m=String(B||"").trim(),N=String(I||"").trim();return m.localeCompare(N)}),x(C)};return l.jsxs("div",{className:rt.elementSelector,style:{color:n,...i},children:[l.jsxs("div",{className:rt.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsx("div",{className:rt.nameDateContainer,children:Object.keys(u).map(v=>v==="name"?l.jsx("div",{className:rt.elementName,children:l.jsxs("button",{onClick:()=>j("name"),children:[l.jsx("span",{children:b(u.name)}),l.jsx("img",{src:ls,alt:"order arrow"})]})},v):v==="data"?l.jsx("div",{className:rt.elementDate,children:l.jsxs("button",{onClick:()=>j("created_at"),children:[l.jsx("span",{children:b(u.data)}),l.jsx("img",{src:ls,alt:"order arrow"})]})},v):l.jsx("div",{className:rt.elementDate,children:l.jsx("span",{children:b(u[v])})},v))}),l.jsx("div",{className:rt.buttonsContainer})]}),l.jsx("div",{className:rt.elementListContainer,children:f&&f.length>0&&f.map(v=>l.jsx($i,{isActive:t==v.id,listelement:v,fontColor:n,activeColor:r,onClickElement:c,columns:u,elementButtons:d,moreInfo:h,processTooltip:g,defaultTooltip:y,showEye:p},`elementKey${v.id}`))}),a&&l.jsx("div",{className:rt.newElementButtonContainer,children:l.jsx(ln,{style:{...o},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:b(a.label)})})]})};Ei.propTypes={elementsList:s.arrayOf(s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired})).isRequired,activeElementId:s.any,fontColor:s.string,activeColor:s.string,onClickElement:s.func.isRequired,newElementButton:s.shape({label:s.string,onClick:s.func}),columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewElement:s.func,moreInfo:s.shape({label:s.string,info:s.any}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const z1="_formContainer_asv64_2",q1="_categorySelectorContainer_asv64_11",W1="_formObjectContainer_asv64_15",U1="_buttonContainer_asv64_26",Xt={formContainer:z1,categorySelectorContainer:q1,formObjectContainer:W1,buttonContainer:U1},It={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var Z1=e=>e.type==="checkbox",rn=e=>e instanceof Date,Gr=e=>e==null;const Ni=e=>typeof e=="object";var kt=e=>!Gr(e)&&!Array.isArray(e)&&Ni(e)&&!rn(e),H1=e=>kt(e)&&e.target?Z1(e.target)?e.target.checked:e.target.value:e,K1=(e,t)=>t.split(".").some((n,r,o)=>!isNaN(Number(n))&&e.has(o.slice(0,r).join("."))),G1=e=>{const t=e.constructor&&e.constructor.prototype;return kt(t)&&t.hasOwnProperty("isPrototypeOf")},Y1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Oi(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(Y1&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(kt(e)&&G1(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Oi(e[o]));return r}var Ai=e=>/^\w*$/.test(e),Mr=e=>e===void 0,X1=e=>Array.isArray(e)?e.filter(Boolean):[],Li=e=>X1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Pe=(e,t,n)=>{if(!t||!kt(e))return n;const r=(Ai(t)?[t]:Li(t)).reduce((o,i)=>Gr(o)?o:o[i],e);return Mr(r)||r===e?Mr(e[t])?n:e[t]:r},Cr=e=>typeof e=="boolean",$n=e=>typeof e=="function",cs=(e,t,n)=>{let r=-1;const o=Ai(t)?[t]:Li(t),i=o.length,a=i-1;for(;++r<i;){const c=o[r];let u=n;if(r!==a){const d=e[c];u=kt(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=u,e=e[c]}};const us={BLUR:"blur",CHANGE:"change"},ds={all:"all"},Mi=w.createContext(null);Mi.displayName="HookFormControlContext";const Yr=()=>w.useContext(Mi);var Q1=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==ds.all&&(t._proxyFormState[a]=!r||ds.all),n&&(n[a]=!0),e[a]}});return o};const Ri=typeof window<"u"?w.useLayoutEffect:w.useEffect;function J1(e){const t=Yr(),{control:n=t,disabled:r,name:o,exact:i}=e||{},[a,c]=w.useState(n._formState),u=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ri(()=>n._subscribe({name:o,formState:u.current,exact:i,callback:d=>{!r&&c({...n._formState,...d})}}),[o,r,i]),w.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),w.useMemo(()=>Q1(a,n,u.current,!1),[a,n])}var ed=e=>typeof e=="string",fs=(e,t,n,r,o)=>ed(e)?Pe(n,e,o):Array.isArray(e)?e.map(i=>Pe(n,i)):n,ps=e=>Gr(e)||!Ni(e);function Rn(e,t,n=new WeakSet){if(ps(e)||ps(t))return Object.is(e,t);if(rn(e)&&rn(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const c=t[i];if(rn(a)&&rn(c)||(kt(a)||Array.isArray(a))&&(kt(c)||Array.isArray(c))?!Rn(a,c,n):!Object.is(a,c))return!1}}return!0}function td(e){const t=Yr(),{control:n=t,name:r,defaultValue:o,disabled:i,exact:a,compute:c}=e||{},u=w.useRef(o),d=w.useRef(c),h=w.useRef(void 0),g=w.useRef(n),y=w.useRef(r);d.current=c;const[p,b]=w.useState(()=>{const v=n._getWatch(r,u.current);return d.current?d.current(v):v}),f=w.useCallback(v=>{const C=fs(r,n._names,v||n._formValues,!1,u.current);return d.current?d.current(C):C},[n._formValues,n._names,r]),x=w.useCallback(v=>{if(!i){const C=fs(r,n._names,v||n._formValues,!1,u.current);if(d.current){const S=d.current(C);Rn(S,h.current)||(b(S),h.current=S)}else b(C)}},[n._formValues,n._names,i,r]);Ri(()=>((g.current!==n||!Rn(y.current,r))&&(g.current=n,y.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:v=>{x(v.values)}})),[n,a,r,x]),w.useEffect(()=>n._removeUnmounted());const _=g.current!==n,T=y.current,j=w.useMemo(()=>{if(i)return null;const v=!_&&!Rn(T,r);return _||v?f():null},[i,_,r,T,f]);return j!==null?j:p}function nd(e){const t=Yr(),{name:n,disabled:r,control:o=t,shouldUnregister:i,defaultValue:a,exact:c=!0}=e,u=K1(o._names.array,n),d=w.useMemo(()=>Pe(o._formValues,n,Pe(o._defaultValues,n,a)),[o,n,a]),h=td({control:o,name:n,defaultValue:d,exact:c}),g=J1({control:o,name:n,exact:c}),y=w.useRef(e),p=w.useRef(void 0),b=w.useRef(o.register(n,{...e.rules,value:h,...Cr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const f=w.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Pe(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!Pe(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Pe(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Pe(g.validatingFields,n)},error:{enumerable:!0,get:()=>Pe(g.errors,n)}}),[g,n]),x=w.useCallback(v=>b.current.onChange({target:{value:H1(v),name:n},type:us.CHANGE}),[n]),_=w.useCallback(()=>b.current.onBlur({target:{value:Pe(o._formValues,n),name:n},type:us.BLUR}),[n,o._formValues]),T=w.useCallback(v=>{const C=Pe(o._fields,n);C&&C._f&&v&&(C._f.ref={focus:()=>$n(v.focus)&&v.focus(),select:()=>$n(v.select)&&v.select(),setCustomValidity:S=>$n(v.setCustomValidity)&&v.setCustomValidity(S),reportValidity:()=>$n(v.reportValidity)&&v.reportValidity()})},[o._fields,n]),j=w.useMemo(()=>({name:n,value:h,...Cr(r)||g.disabled?{disabled:g.disabled||r}:{},onChange:x,onBlur:_,ref:T}),[n,r,g.disabled,x,_,T,h]);return w.useEffect(()=>{const v=o._options.shouldUnregister||i,C=p.current;C&&C!==n&&!u&&o.unregister(C),o.register(n,{...y.current.rules,...Cr(y.current.disabled)?{disabled:y.current.disabled}:{}});const S=($,A)=>{const E=Pe(o._fields,$);E&&E._f&&(E._f.mount=A)};if(S(n,!0),v){const $=Oi(Pe(o._options.defaultValues,n,y.current.defaultValue));cs(o._defaultValues,n,$),Mr(Pe(o._formValues,n))&&cs(o._formValues,n,$)}return!u&&o.register(n),p.current=n,()=>{(u?v&&!o._state.action:v)?o.unregister(n):S(n,!1)}},[n,o,u,i]),w.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),w.useMemo(()=>({field:j,formState:g,fieldState:f}),[j,g,f])}const fn=e=>e.render(nd(e)),rd=w.createContext(null);rd.displayName="HookFormContext";const od="_textInputContainer_1o3iy_2",sd="_labelContainer_1o3iy_5",id="_inputContainer_1o3iy_8",ad="_showPasswordButton_1o3iy_14",ld="_forgotPassButton_1o3iy_26",Qt={textInputContainer:od,labelContainer:sd,inputContainer:id,showPasswordButton:ad,forgotPassButton:ld},cd="_errorMessage_1xiyb_2",ud={errorMessage:cd},Zt=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:r}=oe.useTranslation();return l.jsx("div",{className:ud.errorMessage,style:{color:t,...n},children:e?r(e):""})},dd="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205763'%3e%3cpath%20id='Vector'%20d='M12.95%200C7.659%200%202.84899%202.3634%200.0832465%206.31776C-0.0277488%206.47963%20-0.0277488%206.68776%200.0832465%206.84962C2.84439%2010.804%207.65437%2013.1628%2012.95%2013.1628C18.2456%2013.1628%2023.0556%2010.804%2025.8168%206.84962C25.9278%206.68775%2025.9278%206.47963%2025.8168%206.31776C23.051%202.36339%2018.241%200%2012.95%200ZM12.95%2010.8132C10.619%2010.8132%208.71812%208.91238%208.71812%206.58139C8.71812%204.25041%2010.619%202.34951%2012.95%202.34951C15.281%202.34951%2017.1819%204.25038%2017.1819%206.58139C17.1819%208.91241%2015.281%2010.8132%2012.95%2010.8132Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%209.88816C14.7777%209.88816%2016.2583%208.40763%2016.2583%206.58129C16.2583%204.75495%2014.7777%203.27441%2012.9514%203.27441C11.1251%203.27441%209.64453%204.75495%209.64453%206.58129C9.64453%208.40763%2011.1251%209.88816%2012.9514%209.88816Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",fd="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205995'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",pn=Ss.create(e=>({errorColor:"red"})),Rr=({input:e,reactHookFormInstance:t})=>{const{code:n,type:r,label:o,maxLength:i,required:a,validateFunction:c,placeholder:u,errorColor:d="red",width:h=325,onClickForgotPass:g=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:p=()=>{}}=e,{t:b}=oe.useTranslation(),{control:f,trigger:x,clearErrors:_}=t,{errorColor:T}=pn(S=>S),[j,v]=w.useState(!1);w.useRef(a);const C=()=>r?r==="password"&&j?"text":r:"text";return l.jsx(fn,{name:n,control:f,rules:{required:a?`${b(o)} ${b("errorMessages.required")}`:!1,maxLength:i||void 0,validate:c||void 0},render:({field:S,fieldState:$})=>{var I;const{onChange:A,...E}=S,B=m=>{A(m),p&&p(m)};return l.jsxs("div",{className:Qt.textInputContainer,children:[l.jsxs("h3",{className:Qt.labelContainer,children:[b(o)," ",a&&l.jsx("label",{style:{color:$.error?d:""},children:"*"})]}),l.jsxs("div",{style:{position:"relative",width:h},className:Qt.inputContainer,children:[l.jsx("input",{...E,type:C(),onChange:B,placeholder:u?b(u):"",maxLength:i||void 0}),r=="password"&&l.jsx("button",{onClick:()=>v(!j),type:"button",className:Qt.showPasswordButton,children:l.jsx("img",{src:j?fd:dd,alt:b("show-password")})})]}),r=="password"&&l.jsx("div",{className:Qt.forgotPassButton,children:l.jsx("button",{onClick:g,children:b(y)})}),l.jsx(Zt,{errorMessage:(I=$.error)==null?void 0:I.message,errorColor:T||d})]})}})},pd="_inputsContainer_10t9s_2",Pt={inputsContainer:pd},md="_selectInputContainer_zzz6o_2",hd="_labelContainer_zzz6o_6",gd="_selectWrapper_zzz6o_9",yd="_inputContainer_zzz6o_15",bd="_selectInput_zzz6o_2",vd="_option_zzz6o_29",xd="_dropdownArrow_zzz6o_32",De={selectInputContainer:md,labelContainer:hd,selectWrapper:gd,inputContainer:yd,selectInput:bd,option:vd,dropdownArrow:xd},ms="data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Di=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,type:o,label:i,maxLength:a,required:c,validateFunction:u,placeholder:d,errorColor:h="red",width:g=325,options:y=[]}=e,{t:p}=oe.useTranslation(),{control:b,trigger:f,clearErrors:x}=t||{},{errorColor:_}=pn(v=>v);w.useRef(c);const[T,j]=w.useState(null);return w.useEffect(()=>{T&&n&&n(T)},[T,n]),t?l.jsx(fn,{name:r,control:b,rules:{required:c?`${p(i)} ${p("errorMessages.required")}`:!1,validate:u?v=>{let C=t.getValues();return u(v,C)}:void 0},render:({field:v,fieldState:C})=>{var $;const S=y.find(A=>A.value===v.value);return l.jsxs("div",{className:De.selectInputContainer,children:[i&&l.jsxs("h3",{className:De.labelContainer,children:[p(i)," ",c&&l.jsx("label",{style:{color:C.error?h:""},children:"*"})]}),l.jsxs("div",{className:De.selectWrapper,children:[l.jsxs("div",{className:De.inputContainer,style:{width:g},children:[l.jsxs("select",{...v,value:v.value??"",onChange:A=>{const E=A.target.value,B=y.every(I=>typeof I.value=="number")?Number(E):E;v.onChange(B)},className:De.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:p(d||"selectOption")}),y.map((A,E)=>l.jsx("option",{value:A.value,className:De.option,children:p(A.label)},E))]}),l.jsx("img",{src:ms,alt:"Open",className:De.dropdownArrow})]}),S&&S.description&&l.jsx("div",{className:De.optionDescription,children:p(S.description)})]}),l.jsx(Zt,{errorMessage:($=C.error)==null?void 0:$.message,errorColor:_||h})]})}}):l.jsxs("div",{className:De.selectInputContainer,children:[i&&l.jsxs("h3",{className:De.labelContainer,children:[p(i)," ",c&&l.jsx("label",{children:"*"})]}),l.jsxs("div",{className:De.inputContainer,style:{width:g},children:[l.jsxs("select",{value:T??"",onChange:v=>{const C=v.target.value,S=y.every($=>typeof $.value=="number")?Number(C):C;j(S)},className:De.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:p(d||"selectOption")}),y.map((v,C)=>l.jsx("option",{value:v.value,className:De.option,children:p(v.label)},C))]}),l.jsx("img",{src:ms,alt:"Open",className:De.dropdownArrow})]}),(()=>{const v=y.find(C=>C.value===T);return v&&v.description?l.jsx("div",{className:De.optionDescription,children:p(v.description)}):null})()]})},Cd="_radioButtonContainer_1e994_2",_d="_wholeInputContainer_1e994_5",wd="_questionContainer_1e994_27",Sd="_radioQuestion_1e994_59",Td="_inputContainer_1e994_63",kd="_radioInput_1e994_93",Ct={radioButtonContainer:Cd,wholeInputContainer:_d,questionContainer:wd,radioQuestion:Sd,inputContainer:Td,radioInput:kd},Ii=({input:e,reactHookFormInstance:t})=>{const{code:n,label:r,required:o,validateFunction:i,errorColor:a="red",options:c=[],multi:u=!1}=e,{t:d}=oe.useTranslation(),{control:h,trigger:g,clearErrors:y}=t,{errorColor:p}=pn(x=>x),b=({options:x,onChange:_,actualValue:T})=>{if(u&&T&&T.length>0){let j=T.filter(v=>v!==x);_(j)}},f=({options:x,onChange:_,actualValue:T})=>{u?T&&T.length>0?_([...T,x]):_([x]):_(x)};return w.useRef(o),l.jsx(fn,{control:h,name:n,rules:{validate:x=>o&&(x==null||x==="")?`${d(r)} ${d("errorMessages.required")}`:null},render:({formState:{errors:x},field:{onChange:_,onBlur:T,value:j,ref:v},fieldState:C})=>{var S;return l.jsx("div",{id:n+"id",className:Ct.radioButtonContainer,children:l.jsxs("div",{className:Ct.wholeInputContainer,children:[r&&l.jsx("div",{className:Ct.questionContainer,children:l.jsxs("h3",{htmlFor:n+"id",className:`${Ct.radioQuestion} ${o&&Ct.required}`,children:[d(r)," ",o&&l.jsx("label",{style:{color:C.error?a:""},children:"*"})]})}),l.jsxs("div",{className:Ct.inputContainer,children:[c.map(({label:$,value:A,disabled:E=!1,italicLabel:B},I)=>{const m=j&&u?j.isArray&&(j==null?void 0:j.length)>0&&j.some(N=>N===A):j===A;return l.jsxs("label",{children:[l.jsx("input",{type:"radio",checked:m,onChange:()=>{u?m?b({actualValue:j,options:c,onChange:_}):f({actualValue:j,options:c,onChange:_}):_(A)},className:Ct.radioInput}),l.jsx("span",{className:"radio-custom"}),d($)]},`inputRadio ${I}`)}),l.jsx(Zt,{errorMessage:(S=C.error)==null?void 0:S.message,errorColor:p||a})]})]})})}})},jd="_rankingSliderContainer_1dvpb_2",$d="_labelContainer_1dvpb_6",Ed="_inputContainer_1dvpb_10",Nd="_slider_1dvpb_20",Od="_thumb_1dvpb_27",Ad="_labels_1dvpb_37",Ld="_minLabel_1dvpb_67",Md="_maxLabel_1dvpb_68",ke={rankingSliderContainer:jd,labelContainer:$d,inputContainer:Ed,slider:Nd,thumb:Od,labels:Ad,minLabel:Ld,maxLabel:Md},Xr=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,label:o,minValue:i=1,maxValue:a=5,defValue:c=3,thumbColor:u="#B32F5D",required:d,errorColor:h="red",labelWidth:g="300px",sliderWidth:y="300px",minText:p,maxText:b,disabled:f=!1,marks:x=Array.from({length:a-i+1},(E,B)=>i+B),showMarksNumber:_=!0}=e,{t:T}=oe.useTranslation(),{control:j,trigger:v,clearErrors:C}=t||{};w.useRef(d);const{errorColorForm:S}=pn(E=>E),[$,A]=w.useState(c);return t?l.jsx(fn,{name:r,control:j,defaultValue:c,rules:{required:d?`${T(o)} ${T("errorMessages.required")}`:!1},render:({field:E,fieldState:B})=>{var I;return l.jsxs("div",{className:ke.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&l.jsx("p",{className:ke.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:T(o)}),l.jsxs("div",{className:ke.inputContainer,children:[p&&l.jsx("div",{className:ke.minLabel,children:T(p)}),l.jsxs("div",{children:[l.jsx(jr,{min:i,max:a,step:1,value:E.value??c,onChange:m=>{E.onChange(m)},marks:!0,className:ke.slider,thumbClassName:ke.thumb,renderThumb:m=>l.jsx("div",{...m,style:{...m.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:ke.track,markClassName:ke.mark,disabled:f}),x&&l.jsx("div",{className:ke.labels,children:x.map(m=>l.jsx("span",{children:_&&m},m))})]}),b&&l.jsx("div",{className:ke.maxLabel,children:T(b)})]}),l.jsx(Zt,{errorMessage:(I=B.error)==null?void 0:I.message,errorColor:S||h})]})}}):l.jsxs("div",{className:ke.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&l.jsx("p",{className:ke.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:T(o)}),l.jsxs("div",{className:ke.inputContainer,children:[p&&l.jsx("div",{className:ke.minLabel,children:T(p)}),l.jsxs("div",{children:[l.jsx(jr,{min:i,max:a,step:1,value:$,onChange:E=>{A(E),n&&n(E)},marks:!0,className:ke.slider,thumbClassName:ke.thumb,renderThumb:E=>l.jsx("div",{...E,style:{...E.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:ke.track,markClassName:ke.mark,disabled:f}),x&&l.jsx("div",{className:ke.labels,children:x.map(E=>l.jsx("span",{children:_&&E},E))})]}),b&&l.jsx("div",{className:ke.maxLabel,children:T(b)})]})]})};Xr.propTypes={input:s.shape({code:s.string,label:s.string,minValue:s.number,maxValue:s.number,defValue:s.number,thumbColor:s.string,required:s.bool,errorColor:s.string,labelWidth:s.string,sliderWidth:s.string,minText:s.string,maxText:s.string}),reactHookFormInstance:s.object};const Rd="_textDescriptionContainer_163pc_2",Dd="_textDescriptionText_163pc_6",hs={textDescriptionContainer:Rd,textDescriptionText:Dd},Id=({input:e,inputContainerStyles:t})=>l.jsx("div",{className:hs.textDescriptionContainer,style:{margin:"10px 0",...t},children:l.jsx("p",{className:hs.textDescriptionText,children:e.text})}),Jt=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:r}=n,o=r(),i=w.useMemo(()=>e==null?void 0:e.map(a=>{const c=typeof a.required=="function"?a.required(o):a.required;return{...a,required:c}}),[e,o]);return l.jsx("div",{className:Pt.inputsContainer,children:i==null?void 0:i.map((a,c)=>{const{inputType:u}=a;switch(u){case It.text:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Rr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.password:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Rr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.select:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Di,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.radioList:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Ii,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.rankingSlider:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Xr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.textDescription:return l.jsx(Id,{input:a,inputContainerStyles:t},`${a.code}${c}`);default:return l.jsx("div",{children:l.jsx("h4",{children:"Default"})},`${a.code}${c}`)}})})},Pd="_categorySelector_1guuv_2",Bd="_sectionItemActive_1guuv_16",Fd="_sectionItem_1guuv_16",Vd="_sectionItemError_1guuv_32",en={categorySelector:Pd,sectionItemActive:Bd,sectionItem:Fd,sectionItemError:Vd},Dr=({categories:e,onChange:t,activeCategory:n,activeColor:r,containerStyles:o={},categoriesWithErrors:i=[]})=>{const{t:a}=oe.useTranslation(),c=u=>{t(u)};return l.jsx("div",{className:en.categorySelector,style:o?{...o}:{},children:e.map((u,d)=>{const{id:h,label:g}=u,y=n==h,p=i.includes(h);return l.jsx("button",{className:`${en.sectionItem} ${y?en.sectionItemActive:""} ${p?en.sectionItemError:""}`,type:"button",style:{backgroundColor:y?r:"inherit"},onClick:()=>c(h),children:l.jsx("span",{style:{color:y?"white":"inherit"},className:en.sectionLabel,children:a(g)})},`keySection${d}`)})})},zd=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:r,generalError:o,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:c={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:h="Select Category",activeCategory:g=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:p=[],onSubmit:b=f=>console.log("Form submitted with: ",f)})=>{const{t:f}=oe.useTranslation(),{handleSubmit:x,control:_}=e;w.useEffect(()=>{i&&pn.setState(()=>({errorColor:i}))},[i]);const T=w.useMemo(()=>t?t.filter(E=>E.category).map(E=>{var B;return{id:E.categoryId,label:E.category,hasSubcategories:((B=E.subcategories)==null?void 0:B.length)>0}}):[],[t]),j=E=>{const B=t==null?void 0:t.find(I=>I.categoryId===E);return(B==null?void 0:B.subcategories)||[]},[v,C]=w.useState(g||d||null),[S,$]=w.useState(null);w.useEffect(()=>{!v&&T.length>0&&C(T[0].id)},[T,v]),w.useEffect(()=>{const E=j(v);!S&&(E==null?void 0:E.length)>0&&$(E[0].id)},[v,S,t]);const A=(E,B)=>{var I;if(((I=E.subcategories)==null?void 0:I.length)>0){const m=E.subcategories;return l.jsxs("div",{children:[l.jsx("div",{className:Xt.categorySelectorContainer,children:l.jsx(Dr,{activeCategory:S,categories:m,categoriesWithErrors:p,onChange:N=>$(N),activeColor:y})},E.categoryId),m.map((N,k)=>{const V=!S||N.id===S;return n?l.jsx("div",{style:{display:V?"block":"none",width:"100%"},children:l.jsx(n,{title:N.label,children:l.jsx(Jt,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},N.id)},`${N.id}${k}`):l.jsxs("div",{style:{width:"100%",display:V?"block":"none"},children:[l.jsx("h3",{style:{marginBottom:15},children:f(N.label)}),l.jsx(Jt,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},`${N.id}${k}`)})]})}return n?l.jsx(n,{title:E.category,children:l.jsx(Jt,{inputs:E.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},E.categoryId):l.jsxs("div",{style:{width:"100%"},children:[l.jsx("h2",{children:f(E.category)}),l.jsx(Jt,{inputs:E.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},E.categoryId)};return l.jsxs("form",{className:Xt.formContainer,onSubmit:x(b),children:[u&&T.length>0&&l.jsx("div",{className:Xt.categorySelectorContainer,children:l.jsx(Dr,{activeCategory:v,categories:T,categoriesWithErrors:p,onChange:E=>{C(E),$(null)},activeColor:y})}),l.jsx("div",{className:Xt.formObjectContainer,children:t==null?void 0:t.map((E,B)=>{const I=E.categoryId===v;return E.category?l.jsx("div",{style:{width:"100%",display:I?"block":"none"},children:A(E)},E.categoryId):l.jsx(Jt,{inputs:E.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e},`no-category-${B}`)})}),l.jsxs("div",{className:Xt.buttonContainer,children:[l.jsx(ln,{containerStyles:c,type:"submit",children:f(a)}),l.jsx(Zt,{errorMessage:o,errorColor:i})]})]})},qd="_overlay_mnd4j_2",Wd="_modal_mnd4j_15",Ud="_closeButton_mnd4j_29",Zd="_icon_mnd4j_39",Hd="_message_mnd4j_45",Kd="_submessage_mnd4j_51",Gd="_buttonsContainer_mnd4j_57",Yd="_buttonWrapper_mnd4j_64",dt={overlay:qd,modal:Wd,closeButton:Ud,icon:Zd,message:Hd,submessage:Kd,buttonsContainer:Gd,buttonWrapper:Yd},Pi=({onClose:e,icon:t,message:n,submessage:r,buttons:o,maxHeight:i="450px",maxWidth:a="450px"})=>l.jsx("div",{className:dt.overlay,children:l.jsxs("div",{className:dt.modal,style:{maxHeight:i,maxWidth:a},children:[l.jsx("button",{className:dt.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&l.jsx("img",{src:t,alt:"icon",className:dt.icon}),l.jsx("p",{className:dt.message,children:n}),r&&l.jsx("p",{className:dt.submessage,children:r}),o.length>0&&l.jsx("div",{className:dt.buttonsContainer,children:o.map((c,u)=>l.jsx("div",{className:dt.buttonWrapper,children:c},u))})]})});Pi.propTypes={onClose:s.func.isRequired,icon:s.string,message:s.string.isRequired,submessage:s.string,buttons:s.arrayOf(s.node),maxHeight:s.string,maxWidth:s.string};const Xd="_stepsContainer_1cyua_3",Qd="_stepWrapper_1cyua_9",Jd="_circleContainer_1cyua_19",ef="_circle_1cyua_19",tf="_active_1cyua_39",nf="_completed_1cyua_44",rf="_label_1cyua_50",of="_labelActive_1cyua_56",sf="_connector_1cyua_61",ot={stepsContainer:Xd,stepWrapper:Qd,circleContainer:Jd,circle:ef,active:tf,completed:nf,label:rf,labelActive:of,connector:sf},Qr=({steps:e,activeColor:t})=>l.jsx("div",{className:ot.stepsContainer,children:e.map((n,r)=>{const o=n.status==="active",i=n.status==="completed";return l.jsxs("div",{className:ot.stepWrapper,children:[l.jsxs("div",{className:ot.circleContainer,children:[l.jsx("div",{className:`${ot.circle}
78
+ export default theme;`}function ss(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Au=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Lu(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:gi(t,Au(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${ss(n)})`:Jn(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${ss(n)})`:Qn(t,n)}})}function Lr(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:c={},shape:u,colorSpace:d,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Tt(20));const g=Hr({...i,colorSpace:d}),y=ui(e);let m=qe(y,{mixins:vu(y.breakpoints,r),palette:g,shadows:Tu.slice(),typography:Cu(g,c),transitions:Eu(a),zIndex:{...Nu}});if(m=qe(m,h),m=t.reduce((b,f)=>qe(b,f),m),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(x,_)=>{let T;for(T in x){const j=x[T];if(b.includes(T)&&Object.keys(j).length>0){if(process.env.NODE_ENV!=="production"){const v=Ur("",T);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:j}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
79
+ `))}x[T]={}}}};Object.keys(m.components).forEach(x=>{const _=m.components[x].styleOverrides;_&&x.startsWith("Mui")&&f(_,x)})}return m.unstable_sxConfig={...Yn,...h==null?void 0:h.unstable_sxConfig},m.unstable_sx=function(f){return qt({sx:f,theme:this})},m.toRuntimeSource=xi,Lu(m),m}function Mu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Ru=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Mu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ci(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function _i(e){return e==="dark"?Ru:[]}function Du(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Hr({...t,colorSpace:o});return{palette:a,opacity:{...Ci(a.mode),...n},overlays:r||_i(a.mode),...i}}function Iu(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Pu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Bu=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Pu(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Vu(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function O(e,t,n){!e[t]&&n&&(e[t]=n)}function nn(e){return typeof e!="string"||!e.startsWith("hsl")?e:hi(e)}function nt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tn(nn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
80
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Fu(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Qe=e=>{try{return e()}catch{}},zu=(e="mui")=>su(e);function vr(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=Du({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...c}=Lr({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...Ci(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||_i(i)},c}function qu(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=Iu,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,g=Object.keys(n)[0],y=r||(n.light&&g!=="light"?"light":g),m=zu(i),{[y]:b,light:f,dark:x,..._}=n,T={..._};let j=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(j=!0),!j)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:Tt(21,y));let v;a&&(v="oklch");const C=vr(v,T,j,h,y);f&&!T.light&&vr(v,T,f,void 0,"light"),x&&!T.dark&&vr(v,T,x,void 0,"dark");let S={defaultColorScheme:y,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:m,colorSchemes:T,font:{...bu(C.typography),...C.font},spacing:Fu(h.spacing)};Object.keys(S.colorSchemes).forEach(D=>{const p=S.colorSchemes[D].palette,N=F=>{const z=F.split("-"),Y=z[1],W=z[2];return m(F,p[Y][W])};p.mode==="light"&&(O(p.common,"background","#fff"),O(p.common,"onBackground","#000")),p.mode==="dark"&&(O(p.common,"background","#000"),O(p.common,"onBackground","#fff"));function k(F,z,Y){if(v){let W;return F===xt&&(W=`transparent ${((1-Y)*100).toFixed(0)}%`),F===fe&&(W=`#000 ${(Y*100).toFixed(0)}%`),F===pe&&(W=`#fff ${(Y*100).toFixed(0)}%`),`color-mix(in ${v}, ${z}, ${W})`}return F(z,Y)}if(Vu(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){O(p.Alert,"errorColor",k(fe,a?m("palette-error-light"):p.error.light,.6)),O(p.Alert,"infoColor",k(fe,a?m("palette-info-light"):p.info.light,.6)),O(p.Alert,"successColor",k(fe,a?m("palette-success-light"):p.success.light,.6)),O(p.Alert,"warningColor",k(fe,a?m("palette-warning-light"):p.warning.light,.6)),O(p.Alert,"errorFilledBg",N("palette-error-main")),O(p.Alert,"infoFilledBg",N("palette-info-main")),O(p.Alert,"successFilledBg",N("palette-success-main")),O(p.Alert,"warningFilledBg",N("palette-warning-main")),O(p.Alert,"errorFilledColor",Qe(()=>p.getContrastText(p.error.main))),O(p.Alert,"infoFilledColor",Qe(()=>p.getContrastText(p.info.main))),O(p.Alert,"successFilledColor",Qe(()=>p.getContrastText(p.success.main))),O(p.Alert,"warningFilledColor",Qe(()=>p.getContrastText(p.warning.main))),O(p.Alert,"errorStandardBg",k(pe,a?m("palette-error-light"):p.error.light,.9)),O(p.Alert,"infoStandardBg",k(pe,a?m("palette-info-light"):p.info.light,.9)),O(p.Alert,"successStandardBg",k(pe,a?m("palette-success-light"):p.success.light,.9)),O(p.Alert,"warningStandardBg",k(pe,a?m("palette-warning-light"):p.warning.light,.9)),O(p.Alert,"errorIconColor",N("palette-error-main")),O(p.Alert,"infoIconColor",N("palette-info-main")),O(p.Alert,"successIconColor",N("palette-success-main")),O(p.Alert,"warningIconColor",N("palette-warning-main")),O(p.AppBar,"defaultBg",N("palette-grey-100")),O(p.Avatar,"defaultBg",N("palette-grey-400")),O(p.Button,"inheritContainedBg",N("palette-grey-300")),O(p.Button,"inheritContainedHoverBg",N("palette-grey-A100")),O(p.Chip,"defaultBorder",N("palette-grey-400")),O(p.Chip,"defaultAvatarColor",N("palette-grey-700")),O(p.Chip,"defaultIconColor",N("palette-grey-700")),O(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),O(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),O(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),O(p.LinearProgress,"primaryBg",k(pe,a?m("palette-primary-main"):p.primary.main,.62)),O(p.LinearProgress,"secondaryBg",k(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),O(p.LinearProgress,"errorBg",k(pe,a?m("palette-error-main"):p.error.main,.62)),O(p.LinearProgress,"infoBg",k(pe,a?m("palette-info-main"):p.info.main,.62)),O(p.LinearProgress,"successBg",k(pe,a?m("palette-success-main"):p.success.main,.62)),O(p.LinearProgress,"warningBg",k(pe,a?m("palette-warning-light"):p.warning.main,.62)),O(p.Skeleton,"bg",v?k(xt,a?m("palette-text-primary"):p.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),O(p.Slider,"primaryTrack",k(pe,a?m("palette-primary-main"):p.primary.main,.62)),O(p.Slider,"secondaryTrack",k(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),O(p.Slider,"errorTrack",k(pe,a?m("palette-error-main"):p.error.main,.62)),O(p.Slider,"infoTrack",k(pe,a?m("palette-info-main"):p.info.main,.62)),O(p.Slider,"successTrack",k(pe,a?m("palette-success-main"):p.success.main,.62)),O(p.Slider,"warningTrack",k(pe,a?m("palette-warning-main"):p.warning.main,.62));const F=v?k(fe,a?m("palette-background-default"):p.background.default,.6825):jn(p.background.default,.8);O(p.SnackbarContent,"bg",F),O(p.SnackbarContent,"color",Qe(()=>v?Ar.text.primary:p.getContrastText(F))),O(p.SpeedDialAction,"fabHoverBg",jn(p.background.paper,.15)),O(p.StepConnector,"border",N("palette-grey-400")),O(p.StepContent,"border",N("palette-grey-400")),O(p.Switch,"defaultColor",N("palette-common-white")),O(p.Switch,"defaultDisabledColor",N("palette-grey-100")),O(p.Switch,"primaryDisabledColor",k(pe,a?m("palette-primary-main"):p.primary.main,.62)),O(p.Switch,"secondaryDisabledColor",k(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),O(p.Switch,"errorDisabledColor",k(pe,a?m("palette-error-main"):p.error.main,.62)),O(p.Switch,"infoDisabledColor",k(pe,a?m("palette-info-main"):p.info.main,.62)),O(p.Switch,"successDisabledColor",k(pe,a?m("palette-success-main"):p.success.main,.62)),O(p.Switch,"warningDisabledColor",k(pe,a?m("palette-warning-main"):p.warning.main,.62)),O(p.TableCell,"border",k(pe,xt(a?m("palette-divider"):p.divider,1),.88)),O(p.Tooltip,"bg",k(xt,a?m("palette-grey-700"):p.grey[700],.92))}if(p.mode==="dark"){O(p.Alert,"errorColor",k(pe,a?m("palette-error-light"):p.error.light,.6)),O(p.Alert,"infoColor",k(pe,a?m("palette-info-light"):p.info.light,.6)),O(p.Alert,"successColor",k(pe,a?m("palette-success-light"):p.success.light,.6)),O(p.Alert,"warningColor",k(pe,a?m("palette-warning-light"):p.warning.light,.6)),O(p.Alert,"errorFilledBg",N("palette-error-dark")),O(p.Alert,"infoFilledBg",N("palette-info-dark")),O(p.Alert,"successFilledBg",N("palette-success-dark")),O(p.Alert,"warningFilledBg",N("palette-warning-dark")),O(p.Alert,"errorFilledColor",Qe(()=>p.getContrastText(p.error.dark))),O(p.Alert,"infoFilledColor",Qe(()=>p.getContrastText(p.info.dark))),O(p.Alert,"successFilledColor",Qe(()=>p.getContrastText(p.success.dark))),O(p.Alert,"warningFilledColor",Qe(()=>p.getContrastText(p.warning.dark))),O(p.Alert,"errorStandardBg",k(fe,a?m("palette-error-light"):p.error.light,.9)),O(p.Alert,"infoStandardBg",k(fe,a?m("palette-info-light"):p.info.light,.9)),O(p.Alert,"successStandardBg",k(fe,a?m("palette-success-light"):p.success.light,.9)),O(p.Alert,"warningStandardBg",k(fe,a?m("palette-warning-light"):p.warning.light,.9)),O(p.Alert,"errorIconColor",N("palette-error-main")),O(p.Alert,"infoIconColor",N("palette-info-main")),O(p.Alert,"successIconColor",N("palette-success-main")),O(p.Alert,"warningIconColor",N("palette-warning-main")),O(p.AppBar,"defaultBg",N("palette-grey-900")),O(p.AppBar,"darkBg",N("palette-background-paper")),O(p.AppBar,"darkColor",N("palette-text-primary")),O(p.Avatar,"defaultBg",N("palette-grey-600")),O(p.Button,"inheritContainedBg",N("palette-grey-800")),O(p.Button,"inheritContainedHoverBg",N("palette-grey-700")),O(p.Chip,"defaultBorder",N("palette-grey-700")),O(p.Chip,"defaultAvatarColor",N("palette-grey-300")),O(p.Chip,"defaultIconColor",N("palette-grey-300")),O(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),O(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),O(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),O(p.LinearProgress,"primaryBg",k(fe,a?m("palette-primary-main"):p.primary.main,.5)),O(p.LinearProgress,"secondaryBg",k(fe,a?m("palette-secondary-main"):p.secondary.main,.5)),O(p.LinearProgress,"errorBg",k(fe,a?m("palette-error-main"):p.error.main,.5)),O(p.LinearProgress,"infoBg",k(fe,a?m("palette-info-main"):p.info.main,.5)),O(p.LinearProgress,"successBg",k(fe,a?m("palette-success-main"):p.success.main,.5)),O(p.LinearProgress,"warningBg",k(fe,a?m("palette-warning-main"):p.warning.main,.5)),O(p.Skeleton,"bg",v?k(xt,a?m("palette-text-primary"):p.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),O(p.Slider,"primaryTrack",k(fe,a?m("palette-primary-main"):p.primary.main,.5)),O(p.Slider,"secondaryTrack",k(fe,a?m("palette-secondary-main"):p.secondary.main,.5)),O(p.Slider,"errorTrack",k(fe,a?m("palette-error-main"):p.error.main,.5)),O(p.Slider,"infoTrack",k(fe,a?m("palette-info-main"):p.info.main,.5)),O(p.Slider,"successTrack",k(fe,a?m("palette-success-main"):p.success.main,.5)),O(p.Slider,"warningTrack",k(fe,a?m("palette-warning-light"):p.warning.main,.5));const F=v?k(pe,a?m("palette-background-default"):p.background.default,.985):jn(p.background.default,.98);O(p.SnackbarContent,"bg",F),O(p.SnackbarContent,"color",Qe(()=>v?bi.text.primary:p.getContrastText(F))),O(p.SpeedDialAction,"fabHoverBg",jn(p.background.paper,.15)),O(p.StepConnector,"border",N("palette-grey-600")),O(p.StepContent,"border",N("palette-grey-600")),O(p.Switch,"defaultColor",N("palette-grey-300")),O(p.Switch,"defaultDisabledColor",N("palette-grey-600")),O(p.Switch,"primaryDisabledColor",k(fe,a?m("palette-primary-main"):p.primary.main,.55)),O(p.Switch,"secondaryDisabledColor",k(fe,a?m("palette-secondary-main"):p.secondary.main,.55)),O(p.Switch,"errorDisabledColor",k(fe,a?m("palette-error-main"):p.error.main,.55)),O(p.Switch,"infoDisabledColor",k(fe,a?m("palette-info-main"):p.info.main,.55)),O(p.Switch,"successDisabledColor",k(fe,a?m("palette-success-main"):p.success.main,.55)),O(p.Switch,"warningDisabledColor",k(fe,a?m("palette-warning-light"):p.warning.main,.55)),O(p.TableCell,"border",k(fe,xt(a?m("palette-divider"):p.divider,1),.68)),O(p.Tooltip,"bg",k(xt,a?m("palette-grey-700"):p.grey[700],.92))}a||(nt(p.background,"default"),nt(p.background,"paper"),nt(p.common,"background"),nt(p.common,"onBackground"),nt(p,"divider")),Object.keys(p).forEach(F=>{const z=p[F];F!=="tonalOffset"&&!a&&z&&typeof z=="object"&&(z.main&&O(p[F],"mainChannel",tn(nn(z.main))),z.light&&O(p[F],"lightChannel",tn(nn(z.light))),z.dark&&O(p[F],"darkChannel",tn(nn(z.dark))),z.contrastText&&O(p[F],"contrastTextChannel",tn(nn(z.contrastText))),F==="text"&&(nt(p[F],"primary"),nt(p[F],"secondary")),F==="action"&&(z.active&&nt(p[F],"active"),z.selected&&nt(p[F],"selected")))})}),S=t.reduce((D,p)=>qe(D,p),S);const $={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:Bu(S),enableContrastVars:a},{vars:A,generateThemeVars:E,generateStyleSheets:B}=lu(S,$);return S.vars=A,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([D,p])=>{S[D]=p}),S.generateThemeVars=E,S.generateStyleSheets=B,S.generateSpacing=function(){return ci(h.spacing,qr(this))},S.getColorSchemeSelector=cu(u),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=c,S.unstable_sxConfig={...Yn,...h==null?void 0:h.unstable_sxConfig},S.unstable_sx=function(p){return qt({sx:p,theme:this})},S.toRuntimeSource=xi,S}function is(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Hr({...n===!0?{}:n.palette,mode:t})})}function Wu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,c=i||"light",u=o==null?void 0:o[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Lr(e,...t);let h=n;"palette"in e||d[c]&&(d[c]!==!0?h=d[c].palette:c==="dark"&&(h={mode:"dark"}));const g=Lr({...e,palette:h},...t);return g.defaultColorScheme=c,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},is(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},is(g,"light",d.light)),g}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),qu({...a,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Uu=Wu(),Zu="$$material";function Kr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hu=e=>Kr(e)&&e!=="classes",$t=H2({themeId:Zu,defaultTheme:Uu,rootShouldForwardProp:Hu}),Ut=ou;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ku(e){return ru(e)}const Gu=e=>!e||!on(e);function Yu(e){return typeof e.main=="string"}function Xu(e,t=[]){if(!Yu(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Gr(e=[]){return([,t])=>t&&Xu(t,e)}function Qu(e){return Ur("MuiSlider",e)}const He=z2("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ju=e=>{const{open:t}=e;return{offset:pt(t&&He.valueLabelOpen),circle:He.valueLabelCircle,label:He.valueLabelLabel}};function wi(e){const{children:t,className:n,value:r}=e,o=Ju(e);return t?Q.cloneElement(t,{className:t.props.className},l.jsxs(Q.Fragment,{children:[t.props.children,l.jsx("span",{className:pt(o.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:o.circle,children:l.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(wi.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function as(e){return e}const e1=$t("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ye(n.color)}`],n.size!=="medium"&&t[`size${Ye(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ut(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${He.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${He.dragging}`]:{[`& .${He.thumb}, & .${He.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Gr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),t1=$t("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),n1=$t("span",{name:"MuiSlider",slot:"Track"})(Ut(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Gr()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),r1=$t("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ye(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ye(n.size)}`]]}})(Ut(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${He.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Gr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${He.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${He.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Si=$t(wi,{name:"MuiSlider",slot:"ValueLabel"})(Ut(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Si.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const o1=$t("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Kr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ut(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),s1=$t("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Kr(e)&&e!=="markLabelActive"})(Ut(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),i1=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:c,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",c&&`color${Ye(c)}`,u&&`size${Ye(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Ye(u)}`,c&&`thumbColor${Ye(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return g0(d,Qu,a)},a1=({children:e})=>e,Ti=Q.forwardRef(function(t,n){const r=Ku({props:t,name:"MuiSlider"}),o=b0(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":c,component:u="span",components:d={},componentsProps:h={},color:g="primary",classes:y,className:m,disableSwap:b=!1,disabled:f=!1,getAriaLabel:x,getAriaValueText:_,marks:T=!1,max:j=100,min:v=0,name:C,onChange:S,onChangeCommitted:$,orientation:A="horizontal",shiftStep:E=10,size:B="medium",step:D=1,scale:p=as,slotProps:N,slots:k,tabIndex:F,track:z="normal",value:Y,valueLabelDisplay:W="off",valueLabelFormat:ae=as,...R}=r,L={...r,isRtl:o,max:j,min:v,classes:y,disabled:f,disableSwap:b,orientation:A,marks:T,color:g,size:B,step:D,shiftStep:E,scale:p,track:z,valueLabelDisplay:W,valueLabelFormat:ae},{axisProps:J,getRootProps:K,getHiddenInputProps:P,getThumbProps:Z,open:te,active:G,axis:U,focusedThumbIndex:re,range:ee,dragging:le,marks:I,values:se,trackOffset:Le,trackLeap:Xe,getThumbStyle:q}=O0({...L,rootRef:n});L.marked=I.length>0&&I.some(Te=>Te.label),L.dragging=le,L.focusedThumbIndex=re;const ne=i1(L),Ce=(k==null?void 0:k.root)??d.Root??e1,be=(k==null?void 0:k.rail)??d.Rail??t1,Ee=(k==null?void 0:k.track)??d.Track??n1,Be=(k==null?void 0:k.thumb)??d.Thumb??r1,Ge=(k==null?void 0:k.valueLabel)??d.ValueLabel??Si,ve=(k==null?void 0:k.mark)??d.Mark??o1,Ve=(k==null?void 0:k.markLabel)??d.MarkLabel??s1,M=(k==null?void 0:k.input)??d.Input??"input",V=(N==null?void 0:N.root)??h.root,H=(N==null?void 0:N.rail)??h.rail,ie=(N==null?void 0:N.track)??h.track,ge=(N==null?void 0:N.thumb)??h.thumb,X=(N==null?void 0:N.valueLabel)??h.valueLabel,Ne=(N==null?void 0:N.mark)??h.mark,Re=(N==null?void 0:N.markLabel)??h.markLabel,je=(N==null?void 0:N.input)??h.input,We=ut({elementType:Ce,getSlotProps:K,externalSlotProps:V,externalForwardedProps:R,additionalProps:{...Gu(Ce)&&{as:u}},ownerState:{...L,...V==null?void 0:V.ownerState},className:[ne.root,m]}),Ht=ut({elementType:be,externalSlotProps:H,ownerState:L,className:ne.rail}),Ji=ut({elementType:Ee,externalSlotProps:ie,additionalProps:{style:{...J[U].offset(Le),...J[U].leap(Xe)}},ownerState:{...L,...ie==null?void 0:ie.ownerState},className:ne.track}),er=ut({elementType:Be,getSlotProps:Z,externalSlotProps:ge,ownerState:{...L,...ge==null?void 0:ge.ownerState},className:ne.thumb}),ea=ut({elementType:Ge,externalSlotProps:X,ownerState:{...L,...X==null?void 0:X.ownerState},className:ne.valueLabel}),tr=ut({elementType:ve,externalSlotProps:Ne,ownerState:L,className:ne.mark}),nr=ut({elementType:Ve,externalSlotProps:Re,ownerState:L,className:ne.markLabel}),ta=ut({elementType:M,getSlotProps:P,externalSlotProps:je,ownerState:L});return l.jsxs(Ce,{...We,children:[l.jsx(be,{...Ht}),l.jsx(Ee,{...Ji}),I.filter(Te=>Te.value>=v&&Te.value<=j).map((Te,Ae)=>{const rr=In(Te.value,v,j),mn=J[U].offset(rr);let tt;return z===!1?tt=se.includes(Te.value):tt=z==="normal"&&(ee?Te.value>=se[0]&&Te.value<=se[se.length-1]:Te.value<=se[0])||z==="inverted"&&(ee?Te.value<=se[0]||Te.value>=se[se.length-1]:Te.value>=se[0]),l.jsxs(Q.Fragment,{children:[l.jsx(ve,{"data-index":Ae,...tr,...!on(ve)&&{markActive:tt},style:{...mn,...tr.style},className:pt(tr.className,tt&&ne.markActive)}),Te.label!=null?l.jsx(Ve,{"aria-hidden":!0,"data-index":Ae,...nr,...!on(Ve)&&{markLabelActive:tt},style:{...mn,...nr.style},className:pt(ne.markLabel,nr.className,tt&&ne.markLabelActive),children:Te.label}):null]},Ae)}),se.map((Te,Ae)=>{const rr=In(Te,v,j),mn=J[U].offset(rr),tt=W==="off"?a1:Ge;return l.jsx(tt,{...!on(tt)&&{valueLabelFormat:ae,valueLabelDisplay:W,value:typeof ae=="function"?ae(p(Te),Ae):ae,index:Ae,open:te===Ae||G===Ae||W==="on",disabled:f},...ea,children:l.jsx(Be,{"data-index":Ae,...er,className:pt(ne.thumb,er.className,G===Ae&&ne.active,re===Ae&&ne.focusVisible),style:{...mn,...q(Ae),...er.style},children:l.jsx(M,{"data-index":Ae,"aria-label":x?x(Ae):i,"aria-valuenow":p(Te),"aria-labelledby":c,"aria-valuetext":_?_(p(Te),Ae):a,value:se[Ae],...ta})})},Ae)})]})});process.env.NODE_ENV!=="production"&&(Ti.propTypes={"aria-label":Ao(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":s.string,"aria-valuetext":Ao(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Mark:s.elementType,MarkLabel:s.elementType,Rail:s.elementType,Root:s.elementType,Thumb:s.elementType,Track:s.elementType,ValueLabel:s.elementType}),componentsProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),defaultValue:s.oneOfType([s.arrayOf(s.number),s.number]),disabled:s.bool,disableSwap:s.bool,getAriaLabel:s.func,getAriaValueText:s.func,marks:s.oneOfType([s.arrayOf(s.shape({label:s.node,value:s.number.isRequired})),s.bool]),max:s.number,min:s.number,name:s.string,onChange:s.func,onChangeCommitted:s.func,orientation:s.oneOf(["horizontal","vertical"]),scale:s.func,shiftStep:s.number,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),slots:s.shape({input:s.elementType,mark:s.elementType,markLabel:s.elementType,rail:s.elementType,root:s.elementType,thumb:s.elementType,track:s.elementType,valueLabel:s.elementType}),step:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,track:s.oneOf(["inverted","normal",!1]),value:s.oneOfType([s.arrayOf(s.number),s.number]),valueLabelDisplay:s.oneOf(["auto","off","on"]),valueLabelFormat:s.oneOfType([s.func,s.string])});const l1="_slider_1prh1_2",c1="_playButton_1prh1_14",u1="_sliderOpen_1prh1_25",d1="_sliderResults_1prh1_29",Yt={slider:l1,playButton:c1,sliderOpen:u1,sliderResults:d1},ki=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,marcas:o=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:c=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const h=o||((v,C)=>{const S=[];S.push({label:"",value:v});const $=Math.ceil(v/10)*10;for(let A=$;A<C;A+=10)S.push({label:"",value:A});return S[S.length-1].value!==C&&S.push({label:"",value:C}),S})(n,r),[g,y]=w.useState(t);w.useEffect(()=>{y(t)},[t]);const m=(v,C)=>{y(C),u(C)},[b,f]=w.useState(!1);w.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),w.useEffect(()=>{c===!1&&f(!1)},[c]);const x=()=>{f(!0)},_=()=>{f(!1)};((v,C,S=[])=>{const $=w.useRef();w.useEffect(()=>{$.current=v},[v]),w.useEffect(()=>{function A(){$.current()}{let E=setInterval(A,C);return()=>clearInterval(E)}},[C,...S])})(()=>{b&&y(v=>{const C=v+1;return C>r?(u(n),n):(u(C),C)})},1e3,[n,r,b]);const j=ro.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return l.jsx(pa.ThemeProvider,{theme:j,children:l.jsxs(ro.Box,{sx:{width:400},className:`${e?Yt.sliderResults:Yt.slider} ${a?Yt.sliderOpen:""}`,style:{zIndex:i},children:[n,l.jsx(Ti,{"aria-label":"TimeSlider",value:g,valueLabelDisplay:"on",step:1,marks:h,min:n,max:r,onChange:m,color:"primary",size:"small"}),r,!b&&l.jsx("button",{className:Yt.playButton,onClick:x,children:l.jsx("img",{src:m0,alt:"Play"})}),b&&l.jsx("button",{className:Yt.playButton,onClick:_,children:l.jsx("img",{src:h0,alt:"Pause"})})]})})};ki.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,marcas:s.arrayOf(s.shape({label:s.string,value:s.number})),zIndex:s.number,rightBarOpen:s.bool,onChange:s.func};const f1="_TopNavMenuContainer_12mp4_2",p1="_topNavOptions_12mp4_13",m1="_active_12mp4_27",xr={TopNavMenuContainer:f1,topNavOptions:p1,active:m1},ji=({options:e=[],containerStyles:t,borderColor:n="red",textColor:r="white",onChangeNavLink:o=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=oe.useTranslation();return l.jsx("div",{className:xr.TopNavMenuContainer,style:{...t},children:e.map((a,c)=>l.jsx(js.NavLink,{to:a.url,className:({isActive:u})=>`${xr.topNavOptions} ${u?xr.active:""} `,onClick:()=>o(a.url),style:({isActive:u})=>({color:r,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},c))})};ji.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const h1="_LogInButton_1vxj5_2",g1={LogInButton:h1},$i=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:r,userName:o="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:c=()=>{console.log("Logout clicked")}})=>{const{t:u}=oe.useTranslation();return l.jsx("div",{style:{...r},className:`${g1.LogInButton} link ${e}`,onClick:i?c:a,children:i?o||u(n):u(t)})};$i.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const y1="_elementSelector_1ox68_2",b1="_header_1ox68_14",v1="_nameDateContainer_1ox68_24",x1="_elementName_1ox68_40",C1="_elementDate_1ox68_54",_1="_buttonsContainer_1ox68_68",w1="_elementListContainer_1ox68_77",S1="_newElementButtonContainer_1ox68_81",rt={elementSelector:y1,header:b1,nameDateContainer:v1,elementName:x1,elementDate:C1,buttonsContainer:_1,elementListContainer:w1,newElementButtonContainer:S1},T1="_listElement_s4s4h_3",k1="_elementNameDate_s4s4h_19",j1="_elementNameContainer_s4s4h_30",$1="_elementName_s4s4h_19",E1="_elementDate_s4s4h_47",N1="_nameAndEye_s4s4h_50",O1="_elementButtons_s4s4h_55",A1="_moreInfoContainer_s4s4h_78",L1="_moreInfo_s4s4h_78",Ue={listElement:T1,elementNameDate:k1,elementNameContainer:j1,elementName:$1,elementDate:E1,nameAndEye:N1,elementButtons:O1,break:"_break_s4s4h_73",moreInfoContainer:A1,moreInfo:L1},M1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",R1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",D1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",I1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",P1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e",B1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";var ls;function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mr.apply(null,arguments)}var F1=function(t){return Q.createElement("svg",Mr({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),ls||(ls=Q.createElement("g",{fill:"currentColor"},Q.createElement("path",{d:"M12.95.408C7.659.408 2.849 2.772.083 6.726a.47.47 0 0 0 0 .532c2.761 3.955 7.571 6.313 12.867 6.313s10.106-2.358 12.867-6.313a.47.47 0 0 0 0-.532C23.05 2.772 18.24.408 12.95.408m0 10.814A4.24 4.24 0 0 1 8.718 6.99a4.24 4.24 0 0 1 4.232-4.232 4.24 4.24 0 0 1 4.232 4.232 4.24 4.24 0 0 1-4.232 4.232"}),Q.createElement("path",{d:"M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"}))))};const z1="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",Ei=({listelement:e,onClickElement:t,isActive:n,activeColor:r,fontColor:o,moreInfo:i,columns:a,elementButtons:c,processTooltip:u,defaultTooltip:d,showEye:h=!0})=>{const{name:g,created_at:y,id:m,isBeingProcessed:b}=e,[f,x]=w.useState(!1),{t:_}=oe.useTranslation();w.useEffect(()=>{console.log("elementButtons: ",c)},[c]);const T=c&&c.edit&&!e.is_default&&!e.is_baseline,j=c&&c.trash&&!e.is_default&&!e.is_baseline;return l.jsxs("div",{className:Ue.listElement,style:{borderBottom:`1px solid ${o}`},children:[l.jsx("div",{className:Ue.elementNameDate,onClick:()=>t(m),children:Object.keys(a).map((v,C)=>v==="name"?l.jsx("div",{className:Ue.elementNameContainer,children:l.jsxs("div",{className:`${Ue.elementName} ${h&&Ue.nameAndEye}`,children:[h&&(n?l.jsx(F1,{style:{color:r,marginRight:9}}):l.jsx("img",{style:{marginRight:9},src:z1,alt:"eye"})),l.jsx("span",{style:{color:n?r:o},children:g})]})},`col${C}`):v=="data"?l.jsx("div",{className:Ue.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${C}data`):l.jsx("div",{className:Ue.elementDate,children:e[v]},`col${C}other`))}),l.jsxs("div",{className:Ue.elementButtons,children:[e.processing&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:I1}),l.jsx(et,{text:u,position:"left"})]}),c.filter&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.filter.onclick(e),disabled:c.filter.disabled||!1,children:l.jsx("img",{src:D1})}),l.jsx(et,{text:c.filter.tooltiptext,position:"left"})]}),c.copy&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.copy.onclick(e),disabled:c.copy.disabled||!1,children:l.jsx("img",{src:R1})}),l.jsx(et,{text:c.copy.tooltiptext,position:"left"})]}),T&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.edit.onclick(e),disabled:c.edit.disabled||!1,children:l.jsx("img",{src:B1})}),l.jsx(et,{text:c.edit.tooltiptext,position:"left"})]}),c.info&&e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.info.onclick(e),disabled:c.info.disabled||!1,children:l.jsx("img",{src:V1})}),l.jsx(et,{text:c.info.tooltiptext,position:"left"})]}),j&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.trash.onclick(e),disabled:c.trash.disabled||!1,children:l.jsx("img",{src:M1})}),l.jsx(et,{text:c.trash.tooltiptext,position:"left"})]}),e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:P1}),l.jsx(et,{text:d,position:"left"})]})]}),i&&l.jsx("div",{className:Ue.break}),i&&l.jsxs("div",{className:Ue.moreInfoContainer,children:[l.jsxs("div",{className:Ue.moreInfo,onClick:()=>x(!f),children:[l.jsx("span",{children:f?"-":"+"}),_(i.label)]}),i&&f&&l.jsx("div",{className:Ue.moreInfoInfo,children:e[i.info]})]})]})};Ei.propTypes={listelement:s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired,isBeingProcessed:s.bool}).isRequired,onClickElement:s.func.isRequired,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.any,columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const cs="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ni=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:r,buttonContainerStyles:o={},containerStyles:i={},newElementButton:a,onClickElement:c=b=>console.log(`OnCLickElement: ${b}`),columns:u,elementButtons:d,moreInfo:h=!1,processTooltip:g,defaultTooltip:y,showEye:m=!0})=>{const{t:b}=oe.useTranslation(),[f,x]=w.useState(e);w.useEffect(()=>{e&&x(e)},[e]);const _=v=>{if(typeof v!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(v))return new Date(v);const C=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(v);if(C)return new Date(`${C[3]}-${C[2]}-${C[1]}`);const S=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(v);return S?parseInt(S[1])>12?new Date(`${S[3]}-${S[2]}-${S[1]}`):new Date(`${S[3]}-${S[1]}-${S[2]}`):null},T=v=>_(v)!==null,j=v=>{if(!f||f.length===0)return;let C=[...f];const S=C.find(A=>A[v]!==null&&A[v]!==void 0),$=S?T(S[v]):!1;C.sort((A,E)=>{const B=A[v],D=E[v];if(B==null&&D==null)return 0;if(B==null)return 1;if(D==null)return-1;if($){const k=_(B),F=_(D);return!k&&!F?0:k?F?k-F:-1:1}const p=String(B||"").trim(),N=String(D||"").trim();return p.localeCompare(N)}),x(C)};return l.jsxs("div",{className:rt.elementSelector,style:{color:n,...i},children:[l.jsxs("div",{className:rt.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsx("div",{className:rt.nameDateContainer,children:Object.keys(u).map(v=>v==="name"?l.jsx("div",{className:rt.elementName,children:l.jsxs("button",{onClick:()=>j("name"),children:[l.jsx("span",{children:b(u.name)}),l.jsx("img",{src:cs,alt:"order arrow"})]})},v):v==="data"?l.jsx("div",{className:rt.elementDate,children:l.jsxs("button",{onClick:()=>j("created_at"),children:[l.jsx("span",{children:b(u.data)}),l.jsx("img",{src:cs,alt:"order arrow"})]})},v):l.jsx("div",{className:rt.elementDate,children:l.jsx("span",{children:b(u[v])})},v))}),l.jsx("div",{className:rt.buttonsContainer})]}),l.jsx("div",{className:rt.elementListContainer,children:f&&f.length>0&&f.map(v=>l.jsx(Ei,{isActive:t==v.id,listelement:v,fontColor:n,activeColor:r,onClickElement:c,columns:u,elementButtons:d,moreInfo:h,processTooltip:g,defaultTooltip:y,showEye:m},`elementKey${v.id}`))}),a&&l.jsx("div",{className:rt.newElementButtonContainer,children:l.jsx(ln,{style:{...o},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:b(a.label)})})]})};Ni.propTypes={elementsList:s.arrayOf(s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired})).isRequired,activeElementId:s.any,fontColor:s.string,activeColor:s.string,onClickElement:s.func.isRequired,newElementButton:s.shape({label:s.string,onClick:s.func}),columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewElement:s.func,moreInfo:s.shape({label:s.string,info:s.any}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const q1="_formContainer_asv64_2",W1="_categorySelectorContainer_asv64_11",U1="_formObjectContainer_asv64_15",Z1="_buttonContainer_asv64_26",Xt={formContainer:q1,categorySelectorContainer:W1,formObjectContainer:U1,buttonContainer:Z1},It={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var H1=e=>e.type==="checkbox",rn=e=>e instanceof Date,Yr=e=>e==null;const Oi=e=>typeof e=="object";var kt=e=>!Yr(e)&&!Array.isArray(e)&&Oi(e)&&!rn(e),K1=e=>kt(e)&&e.target?H1(e.target)?e.target.checked:e.target.value:e,G1=(e,t)=>t.split(".").some((n,r,o)=>!isNaN(Number(n))&&e.has(o.slice(0,r).join("."))),Y1=e=>{const t=e.constructor&&e.constructor.prototype;return kt(t)&&t.hasOwnProperty("isPrototypeOf")},X1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ai(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(X1&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(kt(e)&&Y1(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Ai(e[o]));return r}var Li=e=>/^\w*$/.test(e),Rr=e=>e===void 0,Q1=e=>Array.isArray(e)?e.filter(Boolean):[],Mi=e=>Q1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Pe=(e,t,n)=>{if(!t||!kt(e))return n;const r=(Li(t)?[t]:Mi(t)).reduce((o,i)=>Yr(o)?o:o[i],e);return Rr(r)||r===e?Rr(e[t])?n:e[t]:r},Cr=e=>typeof e=="boolean",$n=e=>typeof e=="function",us=(e,t,n)=>{let r=-1;const o=Li(t)?[t]:Mi(t),i=o.length,a=i-1;for(;++r<i;){const c=o[r];let u=n;if(r!==a){const d=e[c];u=kt(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=u,e=e[c]}};const ds={BLUR:"blur",CHANGE:"change"},fs={all:"all"},Ri=w.createContext(null);Ri.displayName="HookFormControlContext";const Xr=()=>w.useContext(Ri);var J1=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==fs.all&&(t._proxyFormState[a]=!r||fs.all),n&&(n[a]=!0),e[a]}});return o};const Di=typeof window<"u"?w.useLayoutEffect:w.useEffect;function ed(e){const t=Xr(),{control:n=t,disabled:r,name:o,exact:i}=e||{},[a,c]=w.useState(n._formState),u=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Di(()=>n._subscribe({name:o,formState:u.current,exact:i,callback:d=>{!r&&c({...n._formState,...d})}}),[o,r,i]),w.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),w.useMemo(()=>J1(a,n,u.current,!1),[a,n])}var td=e=>typeof e=="string",ps=(e,t,n,r,o)=>td(e)?Pe(n,e,o):Array.isArray(e)?e.map(i=>Pe(n,i)):n,ms=e=>Yr(e)||!Oi(e);function Rn(e,t,n=new WeakSet){if(ms(e)||ms(t))return Object.is(e,t);if(rn(e)&&rn(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const c=t[i];if(rn(a)&&rn(c)||(kt(a)||Array.isArray(a))&&(kt(c)||Array.isArray(c))?!Rn(a,c,n):!Object.is(a,c))return!1}}return!0}function nd(e){const t=Xr(),{control:n=t,name:r,defaultValue:o,disabled:i,exact:a,compute:c}=e||{},u=w.useRef(o),d=w.useRef(c),h=w.useRef(void 0),g=w.useRef(n),y=w.useRef(r);d.current=c;const[m,b]=w.useState(()=>{const v=n._getWatch(r,u.current);return d.current?d.current(v):v}),f=w.useCallback(v=>{const C=ps(r,n._names,v||n._formValues,!1,u.current);return d.current?d.current(C):C},[n._formValues,n._names,r]),x=w.useCallback(v=>{if(!i){const C=ps(r,n._names,v||n._formValues,!1,u.current);if(d.current){const S=d.current(C);Rn(S,h.current)||(b(S),h.current=S)}else b(C)}},[n._formValues,n._names,i,r]);Di(()=>((g.current!==n||!Rn(y.current,r))&&(g.current=n,y.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:v=>{x(v.values)}})),[n,a,r,x]),w.useEffect(()=>n._removeUnmounted());const _=g.current!==n,T=y.current,j=w.useMemo(()=>{if(i)return null;const v=!_&&!Rn(T,r);return _||v?f():null},[i,_,r,T,f]);return j!==null?j:m}function rd(e){const t=Xr(),{name:n,disabled:r,control:o=t,shouldUnregister:i,defaultValue:a,exact:c=!0}=e,u=G1(o._names.array,n),d=w.useMemo(()=>Pe(o._formValues,n,Pe(o._defaultValues,n,a)),[o,n,a]),h=nd({control:o,name:n,defaultValue:d,exact:c}),g=ed({control:o,name:n,exact:c}),y=w.useRef(e),m=w.useRef(void 0),b=w.useRef(o.register(n,{...e.rules,value:h,...Cr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const f=w.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Pe(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!Pe(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Pe(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Pe(g.validatingFields,n)},error:{enumerable:!0,get:()=>Pe(g.errors,n)}}),[g,n]),x=w.useCallback(v=>b.current.onChange({target:{value:K1(v),name:n},type:ds.CHANGE}),[n]),_=w.useCallback(()=>b.current.onBlur({target:{value:Pe(o._formValues,n),name:n},type:ds.BLUR}),[n,o._formValues]),T=w.useCallback(v=>{const C=Pe(o._fields,n);C&&C._f&&v&&(C._f.ref={focus:()=>$n(v.focus)&&v.focus(),select:()=>$n(v.select)&&v.select(),setCustomValidity:S=>$n(v.setCustomValidity)&&v.setCustomValidity(S),reportValidity:()=>$n(v.reportValidity)&&v.reportValidity()})},[o._fields,n]),j=w.useMemo(()=>({name:n,value:h,...Cr(r)||g.disabled?{disabled:g.disabled||r}:{},onChange:x,onBlur:_,ref:T}),[n,r,g.disabled,x,_,T,h]);return w.useEffect(()=>{const v=o._options.shouldUnregister||i,C=m.current;C&&C!==n&&!u&&o.unregister(C),o.register(n,{...y.current.rules,...Cr(y.current.disabled)?{disabled:y.current.disabled}:{}});const S=($,A)=>{const E=Pe(o._fields,$);E&&E._f&&(E._f.mount=A)};if(S(n,!0),v){const $=Ai(Pe(o._options.defaultValues,n,y.current.defaultValue));us(o._defaultValues,n,$),Rr(Pe(o._formValues,n))&&us(o._formValues,n,$)}return!u&&o.register(n),m.current=n,()=>{(u?v&&!o._state.action:v)?o.unregister(n):S(n,!1)}},[n,o,u,i]),w.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),w.useMemo(()=>({field:j,formState:g,fieldState:f}),[j,g,f])}const fn=e=>e.render(rd(e)),od=w.createContext(null);od.displayName="HookFormContext";const sd="_textInputContainer_1o3iy_2",id="_labelContainer_1o3iy_5",ad="_inputContainer_1o3iy_8",ld="_showPasswordButton_1o3iy_14",cd="_forgotPassButton_1o3iy_26",Qt={textInputContainer:sd,labelContainer:id,inputContainer:ad,showPasswordButton:ld,forgotPassButton:cd},ud="_errorMessage_1xiyb_2",dd={errorMessage:ud},Zt=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:r}=oe.useTranslation();return l.jsx("div",{className:dd.errorMessage,style:{color:t,...n},children:e?r(e):""})},fd="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205763'%3e%3cpath%20id='Vector'%20d='M12.95%200C7.659%200%202.84899%202.3634%200.0832465%206.31776C-0.0277488%206.47963%20-0.0277488%206.68776%200.0832465%206.84962C2.84439%2010.804%207.65437%2013.1628%2012.95%2013.1628C18.2456%2013.1628%2023.0556%2010.804%2025.8168%206.84962C25.9278%206.68775%2025.9278%206.47963%2025.8168%206.31776C23.051%202.36339%2018.241%200%2012.95%200ZM12.95%2010.8132C10.619%2010.8132%208.71812%208.91238%208.71812%206.58139C8.71812%204.25041%2010.619%202.34951%2012.95%202.34951C15.281%202.34951%2017.1819%204.25038%2017.1819%206.58139C17.1819%208.91241%2015.281%2010.8132%2012.95%2010.8132Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%209.88816C14.7777%209.88816%2016.2583%208.40763%2016.2583%206.58129C16.2583%204.75495%2014.7777%203.27441%2012.9514%203.27441C11.1251%203.27441%209.64453%204.75495%209.64453%206.58129C9.64453%208.40763%2011.1251%209.88816%2012.9514%209.88816Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",pd="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205995'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",pn=Ts.create(e=>({errorColor:"red"})),Dr=({input:e,reactHookFormInstance:t})=>{const{code:n,type:r,label:o,maxLength:i,required:a,validateFunction:c,placeholder:u,errorColor:d="red",width:h=325,onClickForgotPass:g=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:m=()=>{}}=e,{t:b}=oe.useTranslation(),{control:f,trigger:x,clearErrors:_}=t,{errorColor:T}=pn(S=>S),[j,v]=w.useState(!1);w.useRef(a);const C=()=>r?r==="password"&&j?"text":r:"text";return l.jsx(fn,{name:n,control:f,rules:{required:a?`${b(o)} ${b("errorMessages.required")}`:!1,maxLength:i||void 0,validate:c||void 0},render:({field:S,fieldState:$})=>{var D;const{onChange:A,...E}=S,B=p=>{A(p),m&&m(p)};return l.jsxs("div",{className:Qt.textInputContainer,children:[l.jsxs("h3",{className:Qt.labelContainer,children:[b(o)," ",a&&l.jsx("label",{style:{color:$.error?d:""},children:"*"})]}),l.jsxs("div",{style:{position:"relative",width:h},className:Qt.inputContainer,children:[l.jsx("input",{...E,type:C(),onChange:B,placeholder:u?b(u):"",maxLength:i||void 0}),r=="password"&&l.jsx("button",{onClick:()=>v(!j),type:"button",className:Qt.showPasswordButton,children:l.jsx("img",{src:j?pd:fd,alt:b("show-password")})})]}),r=="password"&&l.jsx("div",{className:Qt.forgotPassButton,children:l.jsx("button",{onClick:g,children:b(y)})}),l.jsx(Zt,{errorMessage:(D=$.error)==null?void 0:D.message,errorColor:T||d})]})}})},md="_inputsContainer_10t9s_2",Pt={inputsContainer:md},hd="_selectInputContainer_zzz6o_2",gd="_labelContainer_zzz6o_6",yd="_selectWrapper_zzz6o_9",bd="_inputContainer_zzz6o_15",vd="_selectInput_zzz6o_2",xd="_option_zzz6o_29",Cd="_dropdownArrow_zzz6o_32",De={selectInputContainer:hd,labelContainer:gd,selectWrapper:yd,inputContainer:bd,selectInput:vd,option:xd,dropdownArrow:Cd},hs="data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Ii=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,type:o,label:i,maxLength:a,required:c,validateFunction:u,placeholder:d,errorColor:h="red",width:g=325,options:y=[]}=e,{t:m}=oe.useTranslation(),{control:b,trigger:f,clearErrors:x}=t||{},{errorColor:_}=pn(v=>v);w.useRef(c);const[T,j]=w.useState(null);return w.useEffect(()=>{T&&n&&n(T)},[T,n]),t?l.jsx(fn,{name:r,control:b,rules:{required:c?`${m(i)} ${m("errorMessages.required")}`:!1,validate:u?v=>{let C=t.getValues();return u(v,C)}:void 0},render:({field:v,fieldState:C})=>{var $;const S=y.find(A=>A.value===v.value);return l.jsxs("div",{className:De.selectInputContainer,children:[i&&l.jsxs("h3",{className:De.labelContainer,children:[m(i)," ",c&&l.jsx("label",{style:{color:C.error?h:""},children:"*"})]}),l.jsxs("div",{className:De.selectWrapper,children:[l.jsxs("div",{className:De.inputContainer,style:{width:g},children:[l.jsxs("select",{...v,value:v.value??"",onChange:A=>{const E=A.target.value,B=y.every(D=>typeof D.value=="number")?Number(E):E;v.onChange(B)},className:De.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((A,E)=>l.jsx("option",{value:A.value,className:De.option,children:m(A.label)},E))]}),l.jsx("img",{src:hs,alt:"Open",className:De.dropdownArrow})]}),S&&S.description&&l.jsx("div",{className:De.optionDescription,children:m(S.description)})]}),l.jsx(Zt,{errorMessage:($=C.error)==null?void 0:$.message,errorColor:_||h})]})}}):l.jsxs("div",{className:De.selectInputContainer,children:[i&&l.jsxs("h3",{className:De.labelContainer,children:[m(i)," ",c&&l.jsx("label",{children:"*"})]}),l.jsxs("div",{className:De.inputContainer,style:{width:g},children:[l.jsxs("select",{value:T??"",onChange:v=>{const C=v.target.value,S=y.every($=>typeof $.value=="number")?Number(C):C;j(S)},className:De.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((v,C)=>l.jsx("option",{value:v.value,className:De.option,children:m(v.label)},C))]}),l.jsx("img",{src:hs,alt:"Open",className:De.dropdownArrow})]}),(()=>{const v=y.find(C=>C.value===T);return v&&v.description?l.jsx("div",{className:De.optionDescription,children:m(v.description)}):null})()]})},_d="_radioButtonContainer_1e994_2",wd="_wholeInputContainer_1e994_5",Sd="_questionContainer_1e994_27",Td="_radioQuestion_1e994_59",kd="_inputContainer_1e994_63",jd="_radioInput_1e994_93",Ct={radioButtonContainer:_d,wholeInputContainer:wd,questionContainer:Sd,radioQuestion:Td,inputContainer:kd,radioInput:jd},Pi=({input:e,reactHookFormInstance:t})=>{const{code:n,label:r,required:o,validateFunction:i,errorColor:a="red",options:c=[],multi:u=!1}=e,{t:d}=oe.useTranslation(),{control:h,trigger:g,clearErrors:y}=t,{errorColor:m}=pn(x=>x),b=({options:x,onChange:_,actualValue:T})=>{if(u&&T&&T.length>0){let j=T.filter(v=>v!==x);_(j)}},f=({options:x,onChange:_,actualValue:T})=>{u?T&&T.length>0?_([...T,x]):_([x]):_(x)};return w.useRef(o),l.jsx(fn,{control:h,name:n,rules:{validate:x=>o&&(x==null||x==="")?`${d(r)} ${d("errorMessages.required")}`:null},render:({formState:{errors:x},field:{onChange:_,onBlur:T,value:j,ref:v},fieldState:C})=>{var S;return l.jsx("div",{id:n+"id",className:Ct.radioButtonContainer,children:l.jsxs("div",{className:Ct.wholeInputContainer,children:[r&&l.jsx("div",{className:Ct.questionContainer,children:l.jsxs("h3",{htmlFor:n+"id",className:`${Ct.radioQuestion} ${o&&Ct.required}`,children:[d(r)," ",o&&l.jsx("label",{style:{color:C.error?a:""},children:"*"})]})}),l.jsxs("div",{className:Ct.inputContainer,children:[c.map(({label:$,value:A,disabled:E=!1,italicLabel:B},D)=>{const p=j&&u?j.isArray&&(j==null?void 0:j.length)>0&&j.some(N=>N===A):j===A;return l.jsxs("label",{children:[l.jsx("input",{type:"radio",checked:p,onChange:()=>{u?p?b({actualValue:j,options:c,onChange:_}):f({actualValue:j,options:c,onChange:_}):_(A)},className:Ct.radioInput}),l.jsx("span",{className:"radio-custom"}),d($)]},`inputRadio ${D}`)}),l.jsx(Zt,{errorMessage:(S=C.error)==null?void 0:S.message,errorColor:m||a})]})]})})}})},$d="_rankingSliderContainer_1dvpb_2",Ed="_labelContainer_1dvpb_6",Nd="_inputContainer_1dvpb_10",Od="_slider_1dvpb_20",Ad="_thumb_1dvpb_27",Ld="_labels_1dvpb_37",Md="_minLabel_1dvpb_67",Rd="_maxLabel_1dvpb_68",ke={rankingSliderContainer:$d,labelContainer:Ed,inputContainer:Nd,slider:Od,thumb:Ad,labels:Ld,minLabel:Md,maxLabel:Rd},Qr=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,label:o,minValue:i=1,maxValue:a=5,defValue:c=3,thumbColor:u="#B32F5D",required:d,errorColor:h="red",labelWidth:g="300px",sliderWidth:y="300px",minText:m,maxText:b,disabled:f=!1,marks:x=Array.from({length:a-i+1},(E,B)=>i+B),showMarksNumber:_=!0}=e,{t:T}=oe.useTranslation(),{control:j,trigger:v,clearErrors:C}=t||{};w.useRef(d);const{errorColorForm:S}=pn(E=>E),[$,A]=w.useState(c);return t?l.jsx(fn,{name:r,control:j,defaultValue:c,rules:{required:d?`${T(o)} ${T("errorMessages.required")}`:!1},render:({field:E,fieldState:B})=>{var D;return l.jsxs("div",{className:ke.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&l.jsx("p",{className:ke.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:T(o)}),l.jsxs("div",{className:ke.inputContainer,children:[m&&l.jsx("div",{className:ke.minLabel,children:T(m)}),l.jsxs("div",{children:[l.jsx($r,{min:i,max:a,step:1,value:E.value??c,onChange:p=>{E.onChange(p)},marks:!0,className:ke.slider,thumbClassName:ke.thumb,renderThumb:p=>l.jsx("div",{...p,style:{...p.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:ke.track,markClassName:ke.mark,disabled:f}),x&&l.jsx("div",{className:ke.labels,children:x.map(p=>l.jsx("span",{children:_&&p},p))})]}),b&&l.jsx("div",{className:ke.maxLabel,children:T(b)})]}),l.jsx(Zt,{errorMessage:(D=B.error)==null?void 0:D.message,errorColor:S||h})]})}}):l.jsxs("div",{className:ke.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&l.jsx("p",{className:ke.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:T(o)}),l.jsxs("div",{className:ke.inputContainer,children:[m&&l.jsx("div",{className:ke.minLabel,children:T(m)}),l.jsxs("div",{children:[l.jsx($r,{min:i,max:a,step:1,value:$,onChange:E=>{A(E),n&&n(E)},marks:!0,className:ke.slider,thumbClassName:ke.thumb,renderThumb:E=>l.jsx("div",{...E,style:{...E.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:ke.track,markClassName:ke.mark,disabled:f}),x&&l.jsx("div",{className:ke.labels,children:x.map(E=>l.jsx("span",{children:_&&E},E))})]}),b&&l.jsx("div",{className:ke.maxLabel,children:T(b)})]})]})};Qr.propTypes={input:s.shape({code:s.string,label:s.string,minValue:s.number,maxValue:s.number,defValue:s.number,thumbColor:s.string,required:s.bool,errorColor:s.string,labelWidth:s.string,sliderWidth:s.string,minText:s.string,maxText:s.string}),reactHookFormInstance:s.object};const Dd="_textDescriptionContainer_163pc_2",Id="_textDescriptionText_163pc_6",gs={textDescriptionContainer:Dd,textDescriptionText:Id},Pd=({input:e,inputContainerStyles:t})=>l.jsx("div",{className:gs.textDescriptionContainer,style:{margin:"10px 0",...t},children:l.jsx("p",{className:gs.textDescriptionText,children:e.text})}),Jt=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:r}=n,o=r(),i=w.useMemo(()=>e==null?void 0:e.map(a=>{const c=typeof a.required=="function"?a.required(o):a.required;return{...a,required:c}}),[e,o]);return l.jsx("div",{className:Pt.inputsContainer,children:i==null?void 0:i.map((a,c)=>{const{inputType:u}=a;switch(u){case It.text:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Dr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.password:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Dr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.select:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Ii,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.radioList:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Pi,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.rankingSlider:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Qr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case It.textDescription:return l.jsx(Pd,{input:a,inputContainerStyles:t},`${a.code}${c}`);default:return l.jsx("div",{children:l.jsx("h4",{children:"Default"})},`${a.code}${c}`)}})})},Bd="_categorySelector_1guuv_2",Vd="_sectionItemActive_1guuv_16",Fd="_sectionItem_1guuv_16",zd="_sectionItemError_1guuv_32",en={categorySelector:Bd,sectionItemActive:Vd,sectionItem:Fd,sectionItemError:zd},Ir=({categories:e,onChange:t,activeCategory:n,activeColor:r,containerStyles:o={},categoriesWithErrors:i=[]})=>{const{t:a}=oe.useTranslation(),c=u=>{t(u)};return l.jsx("div",{className:en.categorySelector,style:o?{...o}:{},children:e.map((u,d)=>{const{id:h,label:g}=u,y=n==h,m=i.includes(h);return l.jsx("button",{className:`${en.sectionItem} ${y?en.sectionItemActive:""} ${m?en.sectionItemError:""}`,type:"button",style:{backgroundColor:y?r:"inherit"},onClick:()=>c(h),children:l.jsx("span",{style:{color:y?"white":"inherit"},className:en.sectionLabel,children:a(g)})},`keySection${d}`)})})},qd=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:r,generalError:o,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:c={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:h="Select Category",activeCategory:g=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:m=[],onSubmit:b=f=>console.log("Form submitted with: ",f)})=>{const{t:f}=oe.useTranslation(),{handleSubmit:x,control:_}=e;w.useEffect(()=>{i&&pn.setState(()=>({errorColor:i}))},[i]);const T=w.useMemo(()=>t?t.filter(E=>E.category).map(E=>{var B;return{id:E.categoryId,label:E.category,hasSubcategories:((B=E.subcategories)==null?void 0:B.length)>0}}):[],[t]),j=E=>{const B=t==null?void 0:t.find(D=>D.categoryId===E);return(B==null?void 0:B.subcategories)||[]},[v,C]=w.useState(g||d||null),[S,$]=w.useState(null);w.useEffect(()=>{!v&&T.length>0&&C(T[0].id)},[T,v]),w.useEffect(()=>{const E=j(v);!S&&(E==null?void 0:E.length)>0&&$(E[0].id)},[v,S,t]);const A=(E,B)=>{var D;if(((D=E.subcategories)==null?void 0:D.length)>0){const p=E.subcategories;return l.jsxs("div",{children:[l.jsx("div",{className:Xt.categorySelectorContainer,children:l.jsx(Ir,{activeCategory:S,categories:p,categoriesWithErrors:m,onChange:N=>$(N),activeColor:y})},E.categoryId),p.map((N,k)=>{const F=!S||N.id===S;return n?l.jsx("div",{style:{display:F?"block":"none",width:"100%"},children:l.jsx(n,{title:N.label,children:l.jsx(Jt,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},N.id)},`${N.id}${k}`):l.jsxs("div",{style:{width:"100%",display:F?"block":"none"},children:[l.jsx("h3",{style:{marginBottom:15},children:f(N.label)}),l.jsx(Jt,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},`${N.id}${k}`)})]})}return n?l.jsx(n,{title:E.category,children:l.jsx(Jt,{inputs:E.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},E.categoryId):l.jsxs("div",{style:{width:"100%"},children:[l.jsx("h2",{children:f(E.category)}),l.jsx(Jt,{inputs:E.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},E.categoryId)};return l.jsxs("form",{className:Xt.formContainer,onSubmit:x(b),children:[u&&T.length>0&&l.jsx("div",{className:Xt.categorySelectorContainer,children:l.jsx(Ir,{activeCategory:v,categories:T,categoriesWithErrors:m,onChange:E=>{C(E),$(null)},activeColor:y})}),l.jsx("div",{className:Xt.formObjectContainer,children:t==null?void 0:t.map((E,B)=>{const D=E.categoryId===v;return E.category?l.jsx("div",{style:{width:"100%",display:D?"block":"none"},children:A(E)},E.categoryId):l.jsx(Jt,{inputs:E.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e},`no-category-${B}`)})}),l.jsxs("div",{className:Xt.buttonContainer,children:[l.jsx(ln,{containerStyles:c,type:"submit",children:f(a)}),l.jsx(Zt,{errorMessage:o,errorColor:i})]})]})},Wd="_overlay_mnd4j_2",Ud="_modal_mnd4j_15",Zd="_closeButton_mnd4j_29",Hd="_icon_mnd4j_39",Kd="_message_mnd4j_45",Gd="_submessage_mnd4j_51",Yd="_buttonsContainer_mnd4j_57",Xd="_buttonWrapper_mnd4j_64",dt={overlay:Wd,modal:Ud,closeButton:Zd,icon:Hd,message:Kd,submessage:Gd,buttonsContainer:Yd,buttonWrapper:Xd},Bi=({onClose:e,icon:t,message:n,submessage:r,buttons:o,maxHeight:i="450px",maxWidth:a="450px"})=>l.jsx("div",{className:dt.overlay,children:l.jsxs("div",{className:dt.modal,style:{maxHeight:i,maxWidth:a},children:[l.jsx("button",{className:dt.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&l.jsx("img",{src:t,alt:"icon",className:dt.icon}),l.jsx("p",{className:dt.message,children:n}),r&&l.jsx("p",{className:dt.submessage,children:r}),o.length>0&&l.jsx("div",{className:dt.buttonsContainer,children:o.map((c,u)=>l.jsx("div",{className:dt.buttonWrapper,children:c},u))})]})});Bi.propTypes={onClose:s.func.isRequired,icon:s.string,message:s.string.isRequired,submessage:s.string,buttons:s.arrayOf(s.node),maxHeight:s.string,maxWidth:s.string};const Qd="_stepsContainer_1cyua_3",Jd="_stepWrapper_1cyua_9",ef="_circleContainer_1cyua_19",tf="_circle_1cyua_19",nf="_active_1cyua_39",rf="_completed_1cyua_44",of="_label_1cyua_50",sf="_labelActive_1cyua_56",af="_connector_1cyua_61",ot={stepsContainer:Qd,stepWrapper:Jd,circleContainer:ef,circle:tf,active:nf,completed:rf,label:of,labelActive:sf,connector:af},Jr=({steps:e,activeColor:t})=>l.jsx("div",{className:ot.stepsContainer,children:e.map((n,r)=>{const o=n.status==="active",i=n.status==="completed";return l.jsxs("div",{className:ot.stepWrapper,children:[l.jsxs("div",{className:ot.circleContainer,children:[l.jsx("div",{className:`${ot.circle}
81
81
  ${o?ot.active:""}
82
- ${i?ot.completed:""}`,style:o?{backgroundColor:t}:{},onClick:n.onClick,children:r+1}),r<e.length-1&&l.jsx("div",{className:ot.connector})]}),l.jsx("div",{className:`${ot.label} ${o?ot.labelActive:""}`,children:n.name})]},r)})});Qr.propTypes={steps:s.arrayOf(s.shape({name:s.string.isRequired,onClick:s.func,status:s.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:s.string};Qr.defaultProps={activeColor:"#C2185B"};const af="_statusTextContainer_ch14r_2",lf={statusTextContainer:af},Jr=({text:e,color:t})=>l.jsx("div",{className:lf.statusTextContainer,style:{background:t},children:l.jsx("span",{children:e})});Jr.propTypes={text:s.string,color:s.string};Jr.defaultProps={color:"#C2185B"};const cf="_buttonsContainer_1c7dw_2",uf="_button_1c7dw_2",df="_active_1c7dw_20",En={buttonsContainer:cf,button:uf,active:df},Bi=({buttons:e=[]})=>{const{t}=oe.useTranslation();return l.jsx("div",{className:`${En.buttonsContainer}`,children:e.map((n,r)=>{const{isActive:o,name:i,onClick:a}=n;return l.jsx("div",{children:l.jsx("button",{onClick:a,className:`${En.button}
83
- ${o&&En.active}`,children:l.jsx("span",{className:En.buttonName,children:t(i)})})},r)})})};Bi.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const ff="_switchContainer_194wl_2",pf="_labelRight_194wl_9",mf="_labelLeft_194wl_9",hf="_slider_194wl_28",gf="_disabled_194wl_54",Bt={switchContainer:ff,labelRight:pf,labelLeft:mf,switch:"_switch_194wl_2",slider:hf,disabled:gf},Fi=({input:e,reactHookFormInstance:t,onChange:n,onoff:r=!0})=>{const{code:o,labelLeft:i,labelRight:a,defValue:c=!1,colorOn:u="#5A514D",disabled:d=!1,width:h=240}=e,{t:g}=oe.useTranslation(),{control:y}=t||{},[p,b]=w.useState(c),f=_=>{b(_),n&&n(_)},x=(_,T)=>l.jsxs("div",{className:Bt.switchContainer,style:{width:`${h}px`},children:[i&&l.jsx("span",{className:Bt.labelLeft,style:{width:`${(h-74)/2}px`},children:g(i)}),l.jsxs("label",{className:`${Bt.switch} ${d?Bt.disabled:""}`,children:[l.jsx("input",{type:"checkbox",checked:!!_,onChange:()=>T(!_),disabled:d}),l.jsx("span",{className:Bt.slider,style:{"--switch-thumb-color":r?_?u:"#ccc":u}})]}),a&&l.jsx("span",{className:Bt.labelRight,style:{width:`${(h-74)/2}px`},children:g(a)})]});return t?l.jsx(fn,{name:o,control:y,defaultValue:c,render:({field:_})=>x(_.value,_.onChange)}):x(p,f)};Fi.propTypes={input:s.shape({code:s.string,labelLeft:s.string,labelRight:s.string,defValue:s.bool,colorOn:s.string,disabled:s.bool}),reactHookFormInstance:s.object,onChange:s.func};const yf="_overlay_1xyw2_2",bf="_popup_1xyw2_15",vf="_gif_1xyw2_25",xf="_message_1xyw2_31",Nn={overlay:yf,popup:bf,gif:vf,message:xf},Vi=({gifSrc:e,message:t})=>l.jsx("div",{className:Nn.overlay,children:l.jsxs("div",{className:Nn.popup,children:[e&&l.jsx("img",{src:e,alt:"loading animation",className:Nn.gif}),t&&l.jsx("p",{className:Nn.message,children:t})]})});Vi.propTypes={gifSrc:s.string,message:s.string};const Cf="_container_1pl8d_3",_f="_burger_1pl8d_10",wf="_menu_1pl8d_21",Sf="_menuOpen_1pl8d_35",Tf="_menuClose_1pl8d_40",kf="_list_1pl8d_46",jf="_item_1pl8d_56",$f="_button_1pl8d_91",Je={container:Cf,burger:_f,menu:wf,menuOpen:Sf,menuClose:Tf,list:kf,item:jf,button:$f},eo=({options:e,backgroundColor:t,textColor:n,iconColor:r})=>{const[o,i]=w.useState(!1),a=()=>i(b=>!b),c=()=>i(!1),u=7,d=o?11:0,h=o?13:0,g=o?-11.51666:0,y=o?-13:0,p="0.35s";return l.jsxs("div",{className:Je.container,children:[l.jsx("button",{onClick:a,className:Je.burger,children:l.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[l.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${p} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"9",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${h}px, ${g}px)`,transition:`transform ${p} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${y}px, ${g}px)`,transition:`transform ${p} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{opacity:o?1:0,transition:`opacity ${p} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"20",r:"10",fill:r})}),l.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:o?1:0,transition:`opacity ${p} cubic-bezier(0.42, 0, 0.58, 1)`},children:[l.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),l.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),l.jsx("div",{className:`${Je.menu} ${o?Je.menuOpen:Je.menuClose}`,style:{backgroundColor:t,color:n},children:l.jsx("ul",{className:Je.list,children:e.map((b,f)=>l.jsxs("li",{className:Je.item,children:[b.url&&l.jsx(ks.NavLink,{to:b.url,className:({isActive:x})=>`${Je.link} ${x?Je.active:""}`,onClick:c,style:{color:n},children:b.name}),b.onclick&&l.jsx("button",{className:Je.button,onClick:()=>{b.onclick(),c()},children:b.name}),b.component&&b.component]},f))})})]})};eo.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};eo.defaultProps={backgroundColor:"#ffffff",textColor:"#000000",iconColor:"#000000"};const Ef="_svgContainer_1rxoe_2",Nf="_svg_1rxoe_2",gs={svgContainer:Ef,svg:Nf},zi=({data:e,keys:t,colors:n,width:r="100%",height:o=300,margin:i={top:20,right:20,bottom:60,left:60},className:a="",showXAxisLabels:c=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:h=-90,yAxisTickFormat:g=v=>v.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:p=.05,animationDuration:b=750,onBarHover:f,onBarClick:x,title:_,xAxisLabel:T,yAxisLabel:j})=>{const v=w.useRef(),C=w.useRef(),[S,$]=w.useState({width:0,height:0});return w.useEffect(()=>{const A=()=>{if(C.current){const E=C.current.getBoundingClientRect().width;$({width:typeof r=="number"?r:E,height:o})}};return A(),window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[r,o]),w.useEffect(()=>{if(!e||e.length===0||S.width===0)return;const A=ce.select(v.current),E=S.width,B=S.height,I=E-i.left-i.right,m=B-i.top-i.bottom;if(I<=0||m<=0)return;const N=e.map(P=>P.anyo||P.year||P.x),k=t,V=ce.min(e,P=>ce.min(k,Z=>P[Z]))||0,z=ce.max(e,P=>ce.max(k,Z=>P[Z]))||0,Y=ce.scaleBand().domain(N).rangeRound([0,I]).paddingInner(y),W=ce.scaleBand().domain(k).rangeRound([0,Y.bandwidth()]).padding(p),ae=ce.scaleLinear().domain([Math.min(0,V),z]).nice().rangeRound([m,0]),R=ce.scaleOrdinal().domain(k).range(Array.isArray(n)?n:Object.values(n||{}));A.selectAll("*").remove();const L=A.append("g").attr("transform",`translate(${i.left},${i.top})`);_&&A.append("text").attr("x",E/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),d&&L.append("g").attr("class","grid").selectAll("line").data(ae.ticks()).enter().append("line").attr("x1",0).attr("x2",I).attr("y1",P=>ae(P)).attr("y2",P=>ae(P)).style("stroke","#e0e0e0").style("stroke-width",.5),c&&(L.append("g").attr("transform",`translate(0,${m})`).call(ce.axisBottom(Y).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${h})`).style("text-anchor",h<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),T&&L.append("text").attr("transform",`translate(${I/2}, ${m+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(T)),u&&(L.append("g").call(ce.axisLeft(ae).ticks(6).tickFormat(g)).attr("class","y-axis").call(P=>P.select(".domain").remove()),j&&L.append("text").attr("transform","rotate(-90)").attr("y",0-i.left).attr("x",0-m/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(j));const K=L.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",P=>`translate(${Y(P.anyo||P.year||P.x)},0)`).selectAll(".bar").data(P=>k.map(Z=>({key:Z,value:P[Z],data:P}))).enter().append("rect").attr("class","bar").attr("x",P=>W(P.key)).attr("y",m).attr("width",W.bandwidth()).attr("height",0).attr("fill",P=>R(P.key)).style("cursor",f||x?"pointer":"default");K.transition().duration(b).attr("y",P=>ae(Math.max(0,P.value))).attr("height",P=>Math.abs(ae(P.value)-ae(0))),f&&K.on("mouseover",function(P,Z){ce.select(this).style("opacity",.8),f(P,Z)}).on("mouseout",function(P,Z){ce.select(this).style("opacity",1)}),x&&K.on("click",x)},[e,t,n,S,i,y,p,c,u,d,h,g,b,f,x,_,T,j]),l.jsx("div",{ref:C,className:`${gs.svgContainer} ${a}`,style:{width:r,height:o+i.top+i.bottom},children:l.jsx("svg",{ref:v,className:gs.svg,width:S.width,height:S.height})})};zi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,groupPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string};const Of="_svgContainer_7fkic_2",Af="_svg_7fkic_2",ys={svgContainer:Of,svg:Af},qi=({data:e,keys:t,colors:n,lineData:r=null,width:o="100%",height:i=300,margin:a={top:20,right:20,bottom:60,left:60},className:c="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:h=!0,xAxisTickRotation:g=-90,yAxisTickFormat:y=E=>E.toLocaleString("es-ES"),barPadding:p=.4,animationDuration:b=750,onBarHover:f,onBarClick:x,title:_,xAxisLabel:T,yAxisLabel:j,stackOrder:v="reverse",showTooltip:C=!0,reverseKeys:S=!0,minBarSlotWidth:$=60,wrapXAxisLabels:A=!0})=>{const E=w.useRef(),B=w.useRef();w.useRef();const[I,m]=w.useState({containerWidth:0,height:0}),{t:N}=oe.useTranslation();return w.useEffect(()=>{const k=()=>{if(B.current){const V=B.current.getBoundingClientRect().width;m({containerWidth:typeof o=="number"?o:V,height:i})}};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[o,i]),w.useEffect(()=>{if(!e||e.length===0||I.containerWidth===0)return;const k=ce.select(E.current),{containerWidth:V,height:z}=I,Y=V-a.left-a.right,W=e.length*$,ae=Math.max(Y,W),R=ae+a.left+a.right,L=z-a.top-a.bottom;if(ae<=0||L<=0)return;k.attr("width",R).attr("height",z);const J=S?[...t].reverse():t,K=[];e.forEach(q=>{const ne=q.any||q.year||q.x,Ce=J.map(ve=>({key:ve,value:Number(q[ve])||0,data:q})),be=Ce.filter(ve=>ve.value<0),Ee=Ce.filter(ve=>ve.value>=0);let Be=0;be.forEach(ve=>{const Fe=Be,M=Be+ve.value,F=Math.abs(M-Fe);K.push({key:ve.key,value:ve.value,y0:Math.max(Fe,M),y1:Math.min(Fe,M),height:F,data:ve.data,xKey:ne}),Be=M});let Ge=0;Ee.forEach(ve=>{const Fe=Ge,M=Ge+ve.value,F=M-Fe;K.push({key:ve.key,value:ve.value,y0:Math.min(Fe,M),y1:Math.max(Fe,M),height:F,data:ve.data,xKey:ne}),Ge=M})});const P=[ce.min(K,q=>Math.min(q.y0,q.y1))||0,ce.max(K,q=>Math.max(q.y0,q.y1))||0];let Z=[0,0];r&&r.length>0&&(Z=[ce.min(r)||0,ce.max(r)||0]);const te=[Math.min(P[0],Z[0]),Math.max(P[1],Z[1])],G=ce.scaleBand().domain(e.map(q=>q.any||q.year||q.x)).range([0,ae]).padding(p),U=ce.scaleLinear().domain([te[0],te[1]]).nice(6).range([L,0]),re=ce.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})),ee=r&&r.length>0?e.map((q,ne)=>{const Ce=G(q.any||q.year||q.x)+G.bandwidth()/2,be=U(r[ne]||0);return{x:Ce,y:be}}):[];k.selectAll("*").remove();const le=k.append("g").attr("transform",`translate(${a.left},${a.top})`);_&&k.append("text").attr("x",svgWidth/2).attr("y",a.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),h&&le.append("g").attr("class","grid").selectAll("line").data(U.ticks(6)).enter().append("line").attr("x1",0).attr("x2",ae).attr("y1",q=>U(q)).attr("y2",q=>U(q)).style("stroke","#e0e0e0").style("stroke-width",.5);const D=(q,ne=12)=>{if(!A||q.length<=ne)return[q];const Ce=Math.floor(q.length/2);let be=Ce;for(let Ee=Ce;Ee>=0;Ee--)if(q[Ee]===" "){be=Ee;break}if(be===Ce){for(let Ee=Ce;Ee<q.length;Ee++)if(q[Ee]===" "){be=Ee;break}}return be===Ce&&(be=Ce),[q.substring(0,be),q.substring(be+1)]};u&&(le.append("g").attr("class","x-axis").attr("transform",`translate(0, ${L})`).call(ce.axisBottom(G).tickSizeOuter(0)).selectAll("text").remove(),le.append("g").attr("class","x-axis-labels").attr("transform",`translate(0, ${L})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",be=>`translate(${G(be.any||be.year||be.x)+G.bandwidth()/2}, 0)`).each(function(be){const Ee=String(be.any||be.year||be.x),Be=D(Ee),Ge=ce.select(this);if(Be.length===1)Ge.append("text").attr("y",19).style("text-anchor",g===0?"middle":g<0?"end":"start").style("font-size","12px").style("fill","#605B56").attr("transform",g!==0?`rotate(${g} 0 15)`:null).text(Be[0]);else{const M=-(Be.length*14/2)+14/2;Be.forEach((F,H)=>{Ge.append("text").attr("x",M+H*14).attr("y",19).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${g} ${M+H*14} 15)`).text(F)})}}),T&&le.append("text").attr("transform",`translate(${ae/2}, ${L+a.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(T)),d&&(le.append("g").attr("class","y-axis").call(ce.axisLeft(U).ticks(6).tickFormat(y)).call(q=>q.select(".domain").remove()),le.append("g").attr("class","y-ticks").attr("transform",`translate(${ae}, 0)`).call(ce.axisLeft(U).ticks(6).tickSizeInner(ae)).call(q=>q.select(".domain").remove()).call(q=>q.selectAll(".tick text").remove()),j&&le.append("text").attr("transform","rotate(-90)").attr("y",0-a.left).attr("x",0-L/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(j));let se;C&&(se=ce.select("body").append("div").attr("class","chart-tooltip").style("position","absolute").style("visibility","hidden").style("background","rgba(0, 0, 0, 0.8)").style("color","white").style("padding","8px").style("border-radius","4px").style("font-size","12px").style("pointer-events","none").style("z-index","1000"));const Le=le.selectAll(".segment").data(K,q=>`${q.xKey}-${q.key}`);Le.exit().remove();const Xe=Le.enter().append("rect").attr("class","segment").attr("x",q=>G(q.xKey)).attr("width",G.bandwidth()).attr("y",q=>U(0)).attr("height",0).attr("fill",q=>re(q.key)).style("cursor",f||x||C?"pointer":"default").merge(Le);if(Xe.transition().duration(b).attr("x",q=>G(q.xKey)).attr("y",q=>Math.min(U(q.y0),U(q.y1))).attr("height",q=>Math.abs(U(q.y1)-U(q.y0))),(C||f)&&Xe.on("mouseover",function(q,ne){const Ce=ne.value;C&&se&&se.style("visibility","visible").html(`
82
+ ${i?ot.completed:""}`,style:o?{backgroundColor:t}:{},onClick:n.onClick,children:r+1}),r<e.length-1&&l.jsx("div",{className:ot.connector})]}),l.jsx("div",{className:`${ot.label} ${o?ot.labelActive:""}`,children:n.name})]},r)})});Jr.propTypes={steps:s.arrayOf(s.shape({name:s.string.isRequired,onClick:s.func,status:s.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:s.string};Jr.defaultProps={activeColor:"#C2185B"};const lf="_statusTextContainer_ch14r_2",cf={statusTextContainer:lf},eo=({text:e,color:t})=>l.jsx("div",{className:cf.statusTextContainer,style:{background:t},children:l.jsx("span",{children:e})});eo.propTypes={text:s.string,color:s.string};eo.defaultProps={color:"#C2185B"};const uf="_buttonsContainer_1c7dw_2",df="_button_1c7dw_2",ff="_active_1c7dw_20",En={buttonsContainer:uf,button:df,active:ff},Vi=({buttons:e=[]})=>{const{t}=oe.useTranslation();return l.jsx("div",{className:`${En.buttonsContainer}`,children:e.map((n,r)=>{const{isActive:o,name:i,onClick:a}=n;return l.jsx("div",{children:l.jsx("button",{onClick:a,className:`${En.button}
83
+ ${o&&En.active}`,children:l.jsx("span",{className:En.buttonName,children:t(i)})})},r)})})};Vi.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const pf="_switchContainer_194wl_2",mf="_labelRight_194wl_9",hf="_labelLeft_194wl_9",gf="_slider_194wl_28",yf="_disabled_194wl_54",Bt={switchContainer:pf,labelRight:mf,labelLeft:hf,switch:"_switch_194wl_2",slider:gf,disabled:yf},Fi=({input:e,reactHookFormInstance:t,onChange:n,onoff:r=!0})=>{const{code:o,labelLeft:i,labelRight:a,defValue:c=!1,colorOn:u="#5A514D",disabled:d=!1,width:h=240}=e,{t:g}=oe.useTranslation(),{control:y}=t||{},[m,b]=w.useState(c),f=_=>{b(_),n&&n(_)},x=(_,T)=>l.jsxs("div",{className:Bt.switchContainer,style:{width:`${h}px`},children:[i&&l.jsx("span",{className:Bt.labelLeft,style:{width:`${(h-74)/2}px`},children:g(i)}),l.jsxs("label",{className:`${Bt.switch} ${d?Bt.disabled:""}`,children:[l.jsx("input",{type:"checkbox",checked:!!_,onChange:()=>T(!_),disabled:d}),l.jsx("span",{className:Bt.slider,style:{"--switch-thumb-color":r?_?u:"#ccc":u}})]}),a&&l.jsx("span",{className:Bt.labelRight,style:{width:`${(h-74)/2}px`},children:g(a)})]});return t?l.jsx(fn,{name:o,control:y,defaultValue:c,render:({field:_})=>x(_.value,_.onChange)}):x(m,f)};Fi.propTypes={input:s.shape({code:s.string,labelLeft:s.string,labelRight:s.string,defValue:s.bool,colorOn:s.string,disabled:s.bool}),reactHookFormInstance:s.object,onChange:s.func};const bf="_overlay_1xyw2_2",vf="_popup_1xyw2_15",xf="_gif_1xyw2_25",Cf="_message_1xyw2_31",Nn={overlay:bf,popup:vf,gif:xf,message:Cf},zi=({gifSrc:e,message:t})=>l.jsx("div",{className:Nn.overlay,children:l.jsxs("div",{className:Nn.popup,children:[e&&l.jsx("img",{src:e,alt:"loading animation",className:Nn.gif}),t&&l.jsx("p",{className:Nn.message,children:t})]})});zi.propTypes={gifSrc:s.string,message:s.string};const _f="_container_1pl8d_3",wf="_burger_1pl8d_10",Sf="_menu_1pl8d_21",Tf="_menuOpen_1pl8d_35",kf="_menuClose_1pl8d_40",jf="_list_1pl8d_46",$f="_item_1pl8d_56",Ef="_button_1pl8d_91",Je={container:_f,burger:wf,menu:Sf,menuOpen:Tf,menuClose:kf,list:jf,item:$f,button:Ef},to=({options:e,backgroundColor:t,textColor:n,iconColor:r})=>{const[o,i]=w.useState(!1),a=()=>i(b=>!b),c=()=>i(!1),u=7,d=o?11:0,h=o?13:0,g=o?-11.51666:0,y=o?-13:0,m="0.35s";return l.jsxs("div",{className:Je.container,children:[l.jsx("button",{onClick:a,className:Je.burger,children:l.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[l.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"9",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${h}px, ${g}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${y}px, ${g}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{opacity:o?1:0,transition:`opacity ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"20",r:"10",fill:r})}),l.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:o?1:0,transition:`opacity ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:[l.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),l.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),l.jsx("div",{className:`${Je.menu} ${o?Je.menuOpen:Je.menuClose}`,style:{backgroundColor:t,color:n},children:l.jsx("ul",{className:Je.list,children:e.map((b,f)=>l.jsxs("li",{className:Je.item,children:[b.url&&l.jsx(js.NavLink,{to:b.url,className:({isActive:x})=>`${Je.link} ${x?Je.active:""}`,onClick:c,style:{color:n},children:b.name}),b.onclick&&l.jsx("button",{className:Je.button,onClick:()=>{b.onclick(),c()},children:b.name}),b.component&&b.component]},f))})})]})};to.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};to.defaultProps={backgroundColor:"#ffffff",textColor:"#000000",iconColor:"#000000"};const Nf="_svgContainer_1rxoe_2",Of="_svg_1rxoe_2",ys={svgContainer:Nf,svg:Of},qi=({data:e,keys:t,colors:n,width:r="100%",height:o=300,margin:i={top:20,right:20,bottom:60,left:60},className:a="",showXAxisLabels:c=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:h=-90,yAxisTickFormat:g=v=>v.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:m=.05,animationDuration:b=750,onBarHover:f,onBarClick:x,title:_,xAxisLabel:T,yAxisLabel:j})=>{const v=w.useRef(),C=w.useRef(),[S,$]=w.useState({width:0,height:0});return w.useEffect(()=>{const A=()=>{if(C.current){const E=C.current.getBoundingClientRect().width;$({width:typeof r=="number"?r:E,height:o})}};return A(),window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[r,o]),w.useEffect(()=>{if(!e||e.length===0||S.width===0)return;const A=ce.select(v.current),E=S.width,B=S.height,D=E-i.left-i.right,p=B-i.top-i.bottom;if(D<=0||p<=0)return;const N=e.map(P=>P.anyo||P.year||P.x),k=t,F=ce.min(e,P=>ce.min(k,Z=>P[Z]))||0,z=ce.max(e,P=>ce.max(k,Z=>P[Z]))||0,Y=ce.scaleBand().domain(N).rangeRound([0,D]).paddingInner(y),W=ce.scaleBand().domain(k).rangeRound([0,Y.bandwidth()]).padding(m),ae=ce.scaleLinear().domain([Math.min(0,F),z]).nice().rangeRound([p,0]),R=ce.scaleOrdinal().domain(k).range(Array.isArray(n)?n:Object.values(n||{}));A.selectAll("*").remove();const L=A.append("g").attr("transform",`translate(${i.left},${i.top})`);_&&A.append("text").attr("x",E/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),d&&L.append("g").attr("class","grid").selectAll("line").data(ae.ticks()).enter().append("line").attr("x1",0).attr("x2",D).attr("y1",P=>ae(P)).attr("y2",P=>ae(P)).style("stroke","#e0e0e0").style("stroke-width",.5),c&&(L.append("g").attr("transform",`translate(0,${p})`).call(ce.axisBottom(Y).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${h})`).style("text-anchor",h<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),T&&L.append("text").attr("transform",`translate(${D/2}, ${p+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(T)),u&&(L.append("g").call(ce.axisLeft(ae).ticks(6).tickFormat(g)).attr("class","y-axis").call(P=>P.select(".domain").remove()),j&&L.append("text").attr("transform","rotate(-90)").attr("y",0-i.left).attr("x",0-p/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(j));const K=L.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",P=>`translate(${Y(P.anyo||P.year||P.x)},0)`).selectAll(".bar").data(P=>k.map(Z=>({key:Z,value:P[Z],data:P}))).enter().append("rect").attr("class","bar").attr("x",P=>W(P.key)).attr("y",p).attr("width",W.bandwidth()).attr("height",0).attr("fill",P=>R(P.key)).style("cursor",f||x?"pointer":"default");K.transition().duration(b).attr("y",P=>ae(Math.max(0,P.value))).attr("height",P=>Math.abs(ae(P.value)-ae(0))),f&&K.on("mouseover",function(P,Z){ce.select(this).style("opacity",.8),f(P,Z)}).on("mouseout",function(P,Z){ce.select(this).style("opacity",1)}),x&&K.on("click",x)},[e,t,n,S,i,y,m,c,u,d,h,g,b,f,x,_,T,j]),l.jsx("div",{ref:C,className:`${ys.svgContainer} ${a}`,style:{width:r,height:o+i.top+i.bottom},children:l.jsx("svg",{ref:v,className:ys.svg,width:S.width,height:S.height})})};qi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,groupPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string};const Af="_svgContainer_7fkic_2",Lf="_svg_7fkic_2",bs={svgContainer:Af,svg:Lf},Wi=({data:e,keys:t,colors:n,lineData:r=null,width:o="100%",height:i=300,margin:a={top:20,right:20,bottom:60,left:60},className:c="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:h=!0,xAxisTickRotation:g=-90,yAxisTickFormat:y=E=>E.toLocaleString("es-ES"),barPadding:m=.4,animationDuration:b=750,onBarHover:f,onBarClick:x,title:_,xAxisLabel:T,yAxisLabel:j,stackOrder:v="reverse",showTooltip:C=!0,reverseKeys:S=!0,minBarSlotWidth:$=60,wrapXAxisLabels:A=!0})=>{const E=w.useRef(),B=w.useRef();w.useRef();const[D,p]=w.useState({containerWidth:0,height:0}),{t:N}=oe.useTranslation();return w.useEffect(()=>{const k=()=>{if(B.current){const F=B.current.getBoundingClientRect().width;p({containerWidth:typeof o=="number"?o:F,height:i})}};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[o,i]),w.useEffect(()=>{if(!e||e.length===0||D.containerWidth===0)return;const k=ce.select(E.current),{containerWidth:F,height:z}=D,Y=F-a.left-a.right,W=e.length*$,ae=Math.max(Y,W),R=ae+a.left+a.right,L=z-a.top-a.bottom;if(ae<=0||L<=0)return;k.attr("width",R).attr("height",z);const J=S?[...t].reverse():t,K=[];e.forEach(q=>{const ne=q.any||q.year||q.x,Ce=J.map(ve=>({key:ve,value:Number(q[ve])||0,data:q})),be=Ce.filter(ve=>ve.value<0),Ee=Ce.filter(ve=>ve.value>=0);let Be=0;be.forEach(ve=>{const Ve=Be,M=Be+ve.value,V=Math.abs(M-Ve);K.push({key:ve.key,value:ve.value,y0:Math.max(Ve,M),y1:Math.min(Ve,M),height:V,data:ve.data,xKey:ne}),Be=M});let Ge=0;Ee.forEach(ve=>{const Ve=Ge,M=Ge+ve.value,V=M-Ve;K.push({key:ve.key,value:ve.value,y0:Math.min(Ve,M),y1:Math.max(Ve,M),height:V,data:ve.data,xKey:ne}),Ge=M})});const P=[ce.min(K,q=>Math.min(q.y0,q.y1))||0,ce.max(K,q=>Math.max(q.y0,q.y1))||0];let Z=[0,0];r&&r.length>0&&(Z=[ce.min(r)||0,ce.max(r)||0]);const te=[Math.min(P[0],Z[0]),Math.max(P[1],Z[1])],G=ce.scaleBand().domain(e.map(q=>q.any||q.year||q.x)).range([0,ae]).padding(m),U=ce.scaleLinear().domain([te[0],te[1]]).nice(6).range([L,0]),re=ce.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})),ee=r&&r.length>0?e.map((q,ne)=>{const Ce=G(q.any||q.year||q.x)+G.bandwidth()/2,be=U(r[ne]||0);return{x:Ce,y:be}}):[];k.selectAll("*").remove();const le=k.append("g").attr("transform",`translate(${a.left},${a.top})`);_&&k.append("text").attr("x",svgWidth/2).attr("y",a.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),h&&le.append("g").attr("class","grid").selectAll("line").data(U.ticks(6)).enter().append("line").attr("x1",0).attr("x2",ae).attr("y1",q=>U(q)).attr("y2",q=>U(q)).style("stroke","#e0e0e0").style("stroke-width",.5);const I=(q,ne=12)=>{if(!A||q.length<=ne)return[q];const Ce=Math.floor(q.length/2);let be=Ce;for(let Ee=Ce;Ee>=0;Ee--)if(q[Ee]===" "){be=Ee;break}if(be===Ce){for(let Ee=Ce;Ee<q.length;Ee++)if(q[Ee]===" "){be=Ee;break}}return be===Ce&&(be=Ce),[q.substring(0,be),q.substring(be+1)]};u&&(le.append("g").attr("class","x-axis").attr("transform",`translate(0, ${L})`).call(ce.axisBottom(G).tickSizeOuter(0)).selectAll("text").remove(),le.append("g").attr("class","x-axis-labels").attr("transform",`translate(0, ${L})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",be=>`translate(${G(be.any||be.year||be.x)+G.bandwidth()/2}, 0)`).each(function(be){const Ee=String(be.any||be.year||be.x),Be=I(Ee),Ge=ce.select(this);if(Be.length===1)Ge.append("text").attr("y",19).style("text-anchor",g===0?"middle":g<0?"end":"start").style("font-size","12px").style("fill","#605B56").attr("transform",g!==0?`rotate(${g} 0 15)`:null).text(Be[0]);else{const M=-(Be.length*14/2)+14/2;Be.forEach((V,H)=>{Ge.append("text").attr("x",M+H*14).attr("y",19).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${g} ${M+H*14} 15)`).text(V)})}}),T&&le.append("text").attr("transform",`translate(${ae/2}, ${L+a.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(T)),d&&(le.append("g").attr("class","y-axis").call(ce.axisLeft(U).ticks(6).tickFormat(y)).call(q=>q.select(".domain").remove()),le.append("g").attr("class","y-ticks").attr("transform",`translate(${ae}, 0)`).call(ce.axisLeft(U).ticks(6).tickSizeInner(ae)).call(q=>q.select(".domain").remove()).call(q=>q.selectAll(".tick text").remove()),j&&le.append("text").attr("transform","rotate(-90)").attr("y",0-a.left).attr("x",0-L/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(j));let se;C&&(se=ce.select("body").append("div").attr("class","chart-tooltip").style("position","absolute").style("visibility","hidden").style("background","rgba(0, 0, 0, 0.8)").style("color","white").style("padding","8px").style("border-radius","4px").style("font-size","12px").style("pointer-events","none").style("z-index","1000"));const Le=le.selectAll(".segment").data(K,q=>`${q.xKey}-${q.key}`);Le.exit().remove();const Xe=Le.enter().append("rect").attr("class","segment").attr("x",q=>G(q.xKey)).attr("width",G.bandwidth()).attr("y",q=>U(0)).attr("height",0).attr("fill",q=>re(q.key)).style("cursor",f||x||C?"pointer":"default").merge(Le);if(Xe.transition().duration(b).attr("x",q=>G(q.xKey)).attr("y",q=>Math.min(U(q.y0),U(q.y1))).attr("height",q=>Math.abs(U(q.y1)-U(q.y0))),(C||f)&&Xe.on("mouseover",function(q,ne){const Ce=ne.value;C&&se&&se.style("visibility","visible").html(`
84
84
  <strong>${N(ne.key)}</strong><br/>
85
85
  ${ne.xKey}<br/>
86
86
  ${y(Ce)}
87
- `),ce.select(this).style("opacity",.8),f&&f(q,{key:ne.key,value:Ce,data:ne.data})}).on("mousemove",function(q){C&&se&&se.style("top",q.pageY-10+"px").style("left",q.pageX+10+"px")}).on("mouseout",function(){C&&se&&se.style("visibility","hidden"),ce.select(this).style("opacity",1)}),x&&Xe.on("click",function(q,ne){const Ce=ne.value;x(q,{key:ne.key,value:Ce,data:ne.data})}),ee&&ee.length>1){const q=ce.line().x(ne=>ne.x).y(ne=>ne.y).curve(ce.curveMonotoneX);le.append("path").datum(ee).attr("class","line").attr("d",q).attr("fill","none").attr("stroke","#ff6b6b").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round"),le.selectAll(".line-point").data(ee).enter().append("circle").attr("class","line-point").attr("cx",ne=>ne.x).attr("cy",ne=>ne.y).attr("r",4).attr("fill","#ff6b6b").attr("stroke","white").attr("stroke-width",1)}return()=>{se&&se.remove()}},[e,t,n,r,I,a,p,u,d,h,g,y,b,f,x,_,T,j,v,C,S,A]),l.jsx("div",{ref:B,className:`${ys.svgContainer} ${c}`,style:{width:o,height:i+a.top+a.bottom,overflowX:"auto"},children:l.jsx("svg",{ref:E,className:ys.svg})})};qi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),lineData:s.arrayOf(s.number),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string,stackOrder:s.oneOf(["reverse","ascending","descending","insideOut","none"]),showTooltip:s.bool,reverseKeys:s.bool,minBarSlotWidth:s.number,wrapXAxisLabels:s.bool};const Lf="_externalContainer_1er0i_2",Mf="_externalSintetic_1er0i_9",Rf="_titles_1er0i_13",Df="_titleContainer_1er0i_22",If="_yearTitles_1er0i_36",Pf="_yearTitle_1er0i_36",Bf="_yearDatas_1er0i_50",Ff="_yearDataContainer_1er0i_58",Vf="_yearDataContent_1er0i_66",zf="_bigNumber_1er0i_79",qf="_circle_1er0i_82",Wf="_totalContainer_1er0i_99",Uf="_total_1er0i_99",Ie={externalContainer:Lf,externalSintetic:Mf,titles:Rf,titleContainer:Df,yearTitles:If,yearTitle:Pf,yearDatas:Bf,yearDataContainer:Ff,yearDataContent:Vf,bigNumber:zf,circle:qf,totalContainer:Wf,total:Uf},Zf=e=>{if(e>=1e3||e<=-1e3)return parseInt(e.toFixed());if(e>=100||e<=-100)return parseFloat(e.toFixed(1));if(e>=10||e<=-10)return parseFloat(e.toFixed(2));if(e>0||e<0)return parseFloat(e.toFixed(3));if(e===0)return e},Hf=(e,t)=>{let n=0;return t.forEach(r=>{r[e]&&(n+=r[e])}),n},Wi=({data:e,keys:t,colors:n,locales:r,total:o=!1,years:i=!1,activeGraphics:a="ind",units:c={},translate:u,getTotal:d=Hf,columnWidth:h=50})=>{const g=u||(p=>p),y=p=>p==="demanda_red"||p==="reduccio_demanda_red"?(c.demanda||"").replace("(","").replace(")",""):c[p]||"";return l.jsxs("div",{className:`${Ie.externalContainer} ${a==="sin"?Ie.externalSintetic:""}`,children:[i===!0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{}),l.jsx("div",{className:Ie.yearTitles,children:e.map((p,b)=>l.jsx("div",{className:Ie.yearTitle,style:{width:h},children:p.anyo},b))})]}),l.jsx("div",{className:Ie.titles,children:t.map((p,b)=>l.jsxs("div",{className:Ie.titleContainer,children:[g(r[p]),a!=="sin"&&l.jsx("span",{className:Ie.circle,style:{background:n[p]}})]},b))}),o===!0&&l.jsx("div",{className:Ie.totalContainer,children:t.map((p,b)=>{var f;return l.jsxs("div",{className:`${Ie.total} ${d(p,e)>9999||d(p,e)<-9999?Ie.bigNumber:""}`,children:[(f=d(p,e))==null?void 0:f.toLocaleString("es-ES")," ",y(p)]},b)})}),l.jsx("div",{className:Ie.yearDatas,children:e.map((p,b)=>l.jsx("div",{className:Ie.yearDataContainer,style:{width:h},children:t.map((f,x)=>{var _,T;return isNaN(p[f])?null:l.jsx("div",{className:`${Ie.yearDataContent} ${p[f]>9999||p[f]<-9999?Ie.bigNumber:""}`,children:p[f]<1e4||p[f]>-1e4?(_=Zf(p[f]))==null?void 0:_.toLocaleString("es-ES"):(T=p[f])==null?void 0:T.toLocaleString("es-ES")},x)})},b))})]})};Wi.propTypes={data:s.arrayOf(s.shape({anyo:s.oneOfType([s.string,s.number]).isRequired})).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.objectOf(s.string).isRequired,locales:s.objectOf(s.string).isRequired,total:s.bool,years:s.bool,activeGraphics:s.oneOf(["ind","sin"]),units:s.objectOf(s.string),translate:s.func,getTotal:s.func,columnWidth:s.number};const Kf="_speedGraphic_d1k72_2",_r={speedGraphic:Kf},Ui=({minValue:e=0,maxValue:t=100,value:n=50,title:r=!1,percent:o=!1,unit:i=!1,greenColor:a="#00CF1E",orangeColor:c="#FFAC00",redColor:u="#FF1E37"})=>{n<e&&(n=e),n>t&&(n=t);const d=(n-e)/(t-e),h=270+d*180,g=o?Math.round(d*100):n;return l.jsxs("div",{className:_r.speedGraphic,children:[l.jsxs("svg",{width:"244",height:"130",viewBox:"0 0 244 130",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M0 122C0 111.944 1.2433 101.927 3.70162 92.1756L26.2619 97.8633C24.2724 105.755 23.2662 113.862 23.2662 122H0Z",fill:a}),l.jsx("path",{d:"M16.3442 61.0012C21.3714 52.2936 27.4557 44.2409 34.4588 37.0263L51.1534 53.2313C45.4859 59.0701 40.5619 65.5871 36.4934 72.6341L16.3442 61.0012Z",fill:a}),l.jsx("path",{d:"M60.9088 16.3976C69.6119 11.3628 78.9041 7.42322 88.5739 4.66843L94.9485 27.0443C87.1228 29.2737 79.6027 32.462 72.5592 36.5367L60.9088 16.3976Z",fill:c}),l.jsx("path",{d:"M121.797 0.000169508C131.851 -0.0165912 141.869 1.20965 151.623 3.65101L145.974 26.2209C138.08 24.2451 129.972 23.2527 121.835 23.2663L121.797 0.000169508Z",fill:c}),l.jsx("path",{d:"M182.623 16.1279C191.348 21.124 199.422 27.1797 206.662 34.157L190.516 50.9092C184.657 45.2625 178.123 40.3617 171.061 36.3183L182.623 16.1279Z",fill:u}),l.jsx("path",{d:"M227.238 60.2836C232.325 68.9568 236.319 78.2255 239.131 87.8788L216.794 94.3859C214.518 86.5735 211.285 79.0725 207.169 72.0533L227.238 60.2836Z",fill:u}),l.jsx("path",{d:"M4.15505 90.4316C6.75674 80.7194 10.5491 71.3662 15.4458 62.5846L35.7663 73.9155C31.8035 81.0224 28.7343 88.5919 26.6288 96.4519L4.15505 90.4316Z",fill:a}),l.jsx("path",{d:"M35.733 35.733C42.8426 28.6233 50.8039 22.4198 59.4357 17.2636L71.3671 37.2375C64.3814 41.4104 57.9384 46.4308 52.1846 52.1846L35.733 35.733Z",fill:a}),l.jsx("path",{d:"M90.3004 4.19027C100.01 1.57776 110.005 0.175523 120.058 0.0154601L120.428 23.2787C112.292 23.4082 104.203 24.543 96.3457 26.6573L90.3004 4.19027Z",fill:c}),l.jsx("path",{d:"M153.423 4.11614C163.138 6.70584 172.496 10.4866 181.284 15.3725L169.978 35.707C162.866 31.7529 155.293 28.6932 147.43 26.5973L153.423 4.11614Z",fill:c}),l.jsx("path",{d:"M239.602 89.538C242.532 100.152 244.011 111.114 244 122.125L220.734 122.101C220.743 113.19 219.546 104.319 217.175 95.7287L239.602 89.538Z",fill:u}),l.jsx("path",{d:"M207.769 35.2376C214.919 42.3062 221.168 50.2316 226.374 58.8336L206.469 70.8798C202.256 63.9183 197.199 57.5043 191.412 51.7837L207.769 35.2376Z",fill:u}),l.jsx("g",{transform:`rotate(${h} 122 122)`,children:l.jsx("path",{id:"aguja",d:"M121 119.5V33",stroke:"#605B56","stroke-width":"2"})})]}),l.jsxs("div",{className:_r.value,children:[g,o&&"%",i&&i]}),r&&l.jsx("div",{className:_r.title,children:r})]})};Ui.propTypes={minValue:s.number.isRequired,maxValue:s.number.isRequired,value:s.number.isRequired,percent:s.bool,title:s.string,unit:s.string,greenColor:s.string,orangeColor:s.string,redColor:s.string};const wr="#ffffff",Gf="#ffffff";function it(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function bs(e,t,n,r,o,i){if(Math.abs(i-o)>=359.99)return n===0?`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`:[`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`,`M ${e-n} ${t} A ${n} ${n} 0 1 0 ${e+n} ${t} A ${n} ${n} 0 1 0 ${e-n} ${t} Z`].join(" ");const a=it(e,t,r,o),c=it(e,t,r,i),u=i-o>180?1:0;if(n===0)return`M ${e} ${t} L ${a.x} ${a.y} A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y} Z`;const d=it(e,t,n,i),h=it(e,t,n,o);return[`M ${a.x} ${a.y}`,`A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y}`,`L ${d.x} ${d.y}`,`A ${n} ${n} 0 ${u} 0 ${h.x} ${h.y}`,"Z"].join(" ")}function Yf(e){const t=e.reduce((r,o)=>r+(o.value||0),0);let n=0;return e.map(r=>{const o=r.value/t*360,i=n;return n+=o,{...r,sa:i,ea:n}})}function vs(e,t,n,r,o){const i=n+(r-n)/2,a=it(e,t,o,i);return{tx:a.x-e,ty:a.y-t}}const Zi=({type:e="cheese",data:t=[],title:n,size:r=260,donutThickness:o=56,gapWidth:i=3,gapColor:a,backgroundColor:c="transparent",fontColor:u="black",fontColorInside:d="white",containerStyles:h={},alignLeft:g=!1})=>{const[y,p]=w.useState(null),b=r/2,f=r/2,x=r/2-14,_=e==="donut"?x-o:0,T=e==="donut"?x-o/2:x*.62,j=w.useMemo(()=>Yf(t),[t]),v=y!==null?j[y]:null,C=j.some($=>$.ea-$.sa>=359.99),S=a||(c==="transparent"?Gf:c);return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",padding:"0px",background:c,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...h},children:[l.jsxs("div",{style:{minHeight:"40px",display:"flex",flexDirection:"column",gap:"2px"},children:[n&&l.jsx("h2",{style:{margin:0,color:u,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.5px"},children:n}),l.jsx("div",{style:{height:"22px",display:"flex",alignItems:"center",gap:"8px",transition:"opacity 0.15s",opacity:v?1:0},children:v&&l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"50%",background:v.color||wr,flexShrink:0}}),l.jsxs("span",{style:{color:u,fontSize:"14px",fontWeight:"600"},children:[v.title," — ",v.value,"%"]})]})})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:g?"flex-start":"center",gap:"16px"},children:[l.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{overflow:"visible"},children:[j.map(($,A)=>{const E=y===A,{tx:B,ty:I}=E&&!C?vs(b,f,$.sa,$.ea,10):{tx:0,ty:0};return l.jsx("g",{transform:`translate(${B}, ${I})`,style:{transition:"transform 0.18s ease",pointerEvents:"none"},children:l.jsx("path",{d:bs(b,f,_,x,$.sa,$.ea),fill:$.color||wr,style:{filter:E?"brightness(1.25)":"brightness(1)",transition:"filter 0.18s ease"}})},A)}),!C&&j.map(($,A)=>{const E=it(b,f,x,$.sa),B=e==="cheese"?b:it(b,f,_,$.sa).x,I=e==="cheese"?f:it(b,f,_,$.sa).y;return l.jsx("line",{x1:B,y1:I,x2:E.x,y2:E.y,stroke:S,strokeWidth:i,strokeLinecap:"butt",style:{pointerEvents:"none"}},`gap-${A}`)}),j.map(($,A)=>{if($.ea-$.sa<20)return null;const E=y===A,{tx:B,ty:I}=E&&!C?vs(b,f,$.sa,$.ea,10):{tx:0,ty:0},m=$.sa+($.ea-$.sa)/2,N=it(b,f,T,m);return l.jsxs("text",{x:N.x+B,y:N.y+I,textAnchor:"middle",dominantBaseline:"middle",fill:d,fontSize:"14",fontWeight:"700",fontFamily:"'Segoe UI', sans-serif",pointerEvents:"none",style:{transition:"x 0.18s ease, y 0.18s ease"},children:[$.value,"%"]},`lbl-${A}`)}),j.map(($,A)=>l.jsx("path",{d:bs(b,f,_,x,$.sa,$.ea),fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>p(A),onMouseLeave:()=>p(null)},`hit-${A}`))]}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px 24px",justifyContent:g?"flex-start":"center"},children:t.map(($,A)=>l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",opacity:y===null||y===A?1:.4,transition:"opacity 0.15s"},onMouseEnter:()=>p(A),onMouseLeave:()=>p(null),children:[l.jsx("span",{style:{width:"32px",height:"14px",borderRadius:"3px",background:$.color||wr,flexShrink:0}}),l.jsx("span",{style:{color:u,fontSize:"13px",fontWeight:"400"},children:$.title})]},A))})]})]})};Zi.propTypes={type:s.oneOf(["cheese","donut"]),data:s.arrayOf(s.shape({value:s.number.isRequired,title:s.string.isRequired,color:s.string})).isRequired,title:s.string,size:s.number,donutThickness:s.number,gapWidth:s.number,gapColor:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,containerStyles:s.object,alignLeft:s.bool};const xs=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],Hi=({data:e=[],title:t,backgroundColor:n="#0d3d4a",fontColor:r="#ffffff",barHeight:o=52,animated:i=!0,borderRadius:a,containerStyles:c={},fontColorInside:u="white",borderFontColorInside:d})=>{const[h,g]=w.useState(i?0:1);w.useEffect(()=>{if(!i)return;const b=requestAnimationFrame(()=>g(1));return()=>cancelAnimationFrame(b)},[i]);const y=Math.max(...e.map(b=>b.value),1),p=a??"6px";return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0px",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",minWidth:"420px",...c},children:[t&&l.jsx("h2",{style:{margin:"0 0 20px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"18px"},children:e.map((b,f)=>{const x=b.color||xs[f%xs.length],_=b.value/y*100*h;return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("span",{style:{color:r,fontSize:"14px",fontWeight:"400",opacity:.9},children:b.title}),l.jsxs("div",{style:{position:"relative",height:`${o}px`,background:"transparent",borderRadius:p,overflow:"hidden"},children:[l.jsx("div",{style:{position:"absolute",left:0,top:0,height:"100%",width:`${_}%`,background:x,borderRadius:p,transition:i?"width 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none"}}),l.jsx("span",{style:{position:"absolute",left:"14px",top:"50%",transform:"translateY(-50%)",color:u||n,fontSize:"18px",fontWeight:"700",pointerEvents:"none",letterSpacing:"-0.3px",...d?{WebkitTextStroke:`1px ${d}`,paintOrder:"stroke fill"}:{}},children:b.value})]})]},f)})})]})};Hi.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})),title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barHeight:s.number,animated:s.bool,borderRadius:s.oneOfType([s.string,s.number]),containerStyles:s.object};const Cs=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],Ki=({data:e=[],title:t,backgroundColor:n="black",fontColor:r="#ffffff",fontColorInside:o="#0d3d4a",borderFontColorInside:i,barWidth:a=52,maxBarHeight:c=200,animated:u=!0,separatorColor:d,containerStyles:h={}})=>{const[g,y]=w.useState(u?0:1);w.useEffect(()=>{if(!u)return;const x=requestAnimationFrame(()=>requestAnimationFrame(()=>y(1)));return()=>cancelAnimationFrame(x)},[u]);const p=Math.max(...e.map(x=>x.value),1),b=d||(r==="#ffffff"?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.15)"),f={fontSize:"15px",fontWeight:"700",letterSpacing:"-0.3px",lineHeight:1,pointerEvents:"none",whiteSpace:"nowrap",...i?{WebkitTextStroke:`1px ${i}`,paintOrder:"stroke fill"}:{}};return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...h},children:[t&&l.jsx("h2",{style:{margin:"0 0 24px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:0},children:[l.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:"12px",height:`${c}px`},children:e.map((x,_)=>{const T=x.color||Cs[_%Cs.length],j=x.value===0,v=j?0:x.value/p*c*g;return l.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:`${a}px`,height:"100%"},children:j?l.jsx("span",{style:{...f,color:o,marginBottom:"6px"},children:x.value}):l.jsx("div",{style:{position:"relative",width:"100%",height:`${v}px`,background:T,borderRadius:"6px 6px 0 0",transition:u?"height 0.85s cubic-bezier(0.16, 1, 0.3, 1)":"none",display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"10px"},children:l.jsx("span",{style:{...f,color:o},children:x.value})})},_)})}),l.jsx("div",{style:{height:"1.5px",background:b,borderRadius:"1px"}}),l.jsx("div",{style:{display:"flex",gap:"12px",marginTop:"10px"},children:e.map((x,_)=>l.jsx("div",{style:{width:`${a}px`,textAlign:"center",color:r,fontSize:"13px",fontWeight:"400",opacity:.8,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:x.title},_))})]})]})};Ki.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})).isRequired,title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barWidth:s.number,maxBarHeight:s.number,animated:s.bool,separatorColor:s.string,containerStyles:s.object};const Xf="_percentageBarContainer_lgkme_3",Qf="_barContainer_lgkme_10",Jf="_segment_lgkme_19",ep="_handle_lgkme_36",tp="_labelsContainer_lgkme_68",np="_labelItem_lgkme_73",rp="_labelsListContainer_lgkme_85",op="_labelColor_lgkme_105",sp="_labelText_lgkme_114",ip="_labelValue_lgkme_122",ap="_labelTranslation_lgkme_126",Me={percentageBarContainer:Xf,barContainer:Qf,segment:Jf,handle:ep,labelsContainer:tp,labelItem:np,labelsListContainer:rp,labelColor:op,labelText:sp,labelValue:ip,labelTranslation:ap},lp=2,_s=(e,t=100)=>e.map(n=>n.value/t*100),ws=(e,t)=>{try{const r=new Function("x",`return (${t})`)(e);return isNaN(r)?"N/A":r.toFixed(2)}catch{return"N/A"}},Gi=({items:e,showLabels:t="bar",showTranslations:n=!0,onChange:r,minPercentage:o=lp,maxValue:i=100,labelTextColor:a,labelValueColor:c})=>{const[u,d]=w.useState(()=>_s(e,i)),h=w.useRef(null),g=w.useRef(null);w.useEffect(()=>{e&&e.length>0&&d(_s(e,i))},[e,i]);const y=w.useCallback(f=>{if(!h.current||!g.current)return;const{dividerIndex:x}=h.current,_=g.current.getBoundingClientRect(),T=(f.touches?f.touches[0].clientX:f.clientX)-_.left,j=Math.max(0,Math.min(100,T/_.width*100));d(v=>{const C=[...v],S=v.slice(0,x).reduce((B,I)=>B+I,0),$=S+v[x]+v[x+1];let A=j-S,E=$-j;if(A<o&&(A=o,E=$-S-o),E<o&&(E=o,A=$-S-o),C[x]=A,C[x+1]=E,r)try{r(e.map((B,I)=>({...B,value:C[I]/100*i})))}catch(B){console.error("PercentageBar onChange error:",B)}return C})},[o,r,e,i]),p=w.useCallback(()=>{h.current&&(h.current=null,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",p),d(f=>(r&&r(e.map((x,_)=>({...x,value:f[_]/100*i}))),f)))},[y,r,e,i]),b=(f,x)=>{x.preventDefault(),h.current={dividerIndex:f},document.addEventListener("mousemove",y),document.addEventListener("mouseup",p),document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",p)};return l.jsxs("div",{className:Me.percentageBarContainer,children:[l.jsx("div",{className:Me.barContainer,ref:g,children:e.map((f,x)=>{var _;return l.jsx("div",{className:Me.segment,style:{width:`${u[x]}%`,backgroundColor:f.color||"#ccc"},children:x>0&&l.jsx("div",{className:Me.handle,onMouseDown:T=>b(x-1,T),onTouchStart:T=>b(x-1,T),role:"slider","aria-label":`Divisor entre ${(_=e[x-1])==null?void 0:_.title} y ${f.title}`,"aria-valuenow":Math.round(u[x]),tabIndex:0})},f.id??x)})}),t==="bar"&&l.jsx("div",{className:Me.labelsContainer,children:e.map((f,x)=>l.jsxs("div",{className:Me.labelItem,style:{width:`${u[x]}%`},children:[l.jsx("span",{className:Me.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Me.labelText,style:{color:a||"#fff"},children:f.title}),l.jsxs("span",{className:Me.labelValue,style:{color:c||"#fff"},children:[u[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Me.labelTranslation,children:["(",ws(u[x],f.translationFormula),")"]})]},f.id??x))}),t==="list"&&l.jsx("div",{className:Me.labelsListContainer,children:e.map((f,x)=>l.jsxs("div",{className:Me.labelItem,children:[l.jsx("span",{className:Me.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Me.labelText,children:f.title}),l.jsxs("span",{className:Me.labelValue,children:[u[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Me.labelTranslation,children:["(",ws(u[x],f.translationFormula),")"]})]},f.id??x))})]})};Gi.propTypes={items:s.arrayOf(s.shape({id:s.oneOfType([s.string,s.number]),title:s.string.isRequired,value:s.number.isRequired,color:s.string.isRequired,translationFormula:s.string})).isRequired,showLabels:s.string,showTranslations:s.bool,onChange:s.func,minPercentage:s.number,maxValue:s.number,labelTextColor:s.string,labelValueColor:s.string};const cp="_header_13kbt_2",up="_leftComponents_13kbt_13",dp="_centerComponents_13kbt_14",fp="_rightComponents_13kbt_15",pp="_componentsContainer_13kbt_32",_t={header:cp,leftComponents:up,centerComponents:dp,rightComponents:fp,componentsContainer:pp},Yi=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[],zIndex:o=10,height:i=60,backgroundColor:a="#605B56",isFooter:c=!1})=>l.jsxs("div",{className:_t.header,style:{...e,zIndex:o,height:i,backgroundColor:a,top:c?"auto":0,bottom:c?0:"auto"},children:[l.jsx("div",{className:_t.leftComponents,children:t.map((u,d)=>l.jsx("div",{className:_t.componentsContainer,children:u},d))}),l.jsx("div",{className:_t.centerComponents,children:n.map((u,d)=>l.jsx("div",{className:_t.componentsContainer,children:u},d))}),l.jsx("div",{className:_t.rightComponents,children:r.map((u,d)=>l.jsx("div",{className:_t.componentsContainer,children:u},d))})]});Yi.propTypes={leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node),cssProps:s.object,zIndex:s.number,height:s.number,backgroundColor:s.string,isFooter:s.bool};const mp="_sidebar_1kaqu_2",hp="_open_1kaqu_16",gp="_content_1kaqu_20",yp="_closeButton_1kaqu_25",On={sidebar:mp,open:hp,content:gp,closeButton:yp},bp="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%203699'%3e%3cpath%20id='Vector%20223'%20d='M1%201L18.1566%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector%20224'%20d='M18.1575%201L1.00083%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",Xi=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return l.jsx("div",{className:`${On.sidebar} ${n?On.open:""}`,style:{width:n?e:0},children:n&&l.jsxs("div",{className:On.content,children:[l.jsx("button",{className:On.closeButton,onClick:o,children:l.jsx("img",{src:bp,alt:"Close Sidebar"})}),t]})})};Xi.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=Os;exports.BarChart=Fr;exports.BurgerMenu=eo;exports.ButtonsBar=Bi;exports.ButtonsList=As;exports.CategorySelector=Dr;exports.DropdownList=ht;exports.EditAmbit=ol;exports.ErrorMessage=Zt;exports.FiltersAmbit=Bs;exports.Form=zd;exports.GeneralButton=ln;exports.Graphic=Fs;exports.GraphicLegend=Wi;exports.Groupedbarchart=zi;exports.HeaderSection=Yi;exports.HorizontalBarChart=Hi;exports.IndicatorsList=qs;exports.LangSelector=Ws;exports.Legend=Us;exports.ListSelector=Ei;exports.Loader=Vi;exports.LogInButton=ji;exports.LogoApp=Zs;exports.MapboxMap=Qs;exports.MaplibreMap=Js;exports.ModalAlert=Pi;exports.PercentageBar=Gi;exports.PieChart=Zi;exports.RadioButtonInput=Ii;exports.RankingSlider=Xr;exports.RightSidebar=Xi;exports.SectionBar=ei;exports.SelectInput=Di;exports.SpeedGraphic=Ui;exports.Stackedbarchart=qi;exports.StatusText=Jr;exports.Steps=Qr;exports.Switch=Fi;exports.TextInput=Rr;exports.TimeSlider=Ti;exports.Tooltip=et;exports.TopNavMenu=ki;exports.VerticalBarChart=Ki;
87
+ `),ce.select(this).style("opacity",.8),f&&f(q,{key:ne.key,value:Ce,data:ne.data})}).on("mousemove",function(q){C&&se&&se.style("top",q.pageY-10+"px").style("left",q.pageX+10+"px")}).on("mouseout",function(){C&&se&&se.style("visibility","hidden"),ce.select(this).style("opacity",1)}),x&&Xe.on("click",function(q,ne){const Ce=ne.value;x(q,{key:ne.key,value:Ce,data:ne.data})}),ee&&ee.length>1){const q=ce.line().x(ne=>ne.x).y(ne=>ne.y).curve(ce.curveMonotoneX);le.append("path").datum(ee).attr("class","line").attr("d",q).attr("fill","none").attr("stroke","#ff6b6b").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round"),le.selectAll(".line-point").data(ee).enter().append("circle").attr("class","line-point").attr("cx",ne=>ne.x).attr("cy",ne=>ne.y).attr("r",4).attr("fill","#ff6b6b").attr("stroke","white").attr("stroke-width",1)}return()=>{se&&se.remove()}},[e,t,n,r,D,a,m,u,d,h,g,y,b,f,x,_,T,j,v,C,S,A]),l.jsx("div",{ref:B,className:`${bs.svgContainer} ${c}`,style:{width:o,height:i+a.top+a.bottom,overflowX:"auto"},children:l.jsx("svg",{ref:E,className:bs.svg})})};Wi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),lineData:s.arrayOf(s.number),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string,stackOrder:s.oneOf(["reverse","ascending","descending","insideOut","none"]),showTooltip:s.bool,reverseKeys:s.bool,minBarSlotWidth:s.number,wrapXAxisLabels:s.bool};const Mf="_externalContainer_1er0i_2",Rf="_externalSintetic_1er0i_9",Df="_titles_1er0i_13",If="_titleContainer_1er0i_22",Pf="_yearTitles_1er0i_36",Bf="_yearTitle_1er0i_36",Vf="_yearDatas_1er0i_50",Ff="_yearDataContainer_1er0i_58",zf="_yearDataContent_1er0i_66",qf="_bigNumber_1er0i_79",Wf="_circle_1er0i_82",Uf="_totalContainer_1er0i_99",Zf="_total_1er0i_99",Ie={externalContainer:Mf,externalSintetic:Rf,titles:Df,titleContainer:If,yearTitles:Pf,yearTitle:Bf,yearDatas:Vf,yearDataContainer:Ff,yearDataContent:zf,bigNumber:qf,circle:Wf,totalContainer:Uf,total:Zf},Hf=e=>{if(e>=1e3||e<=-1e3)return parseInt(e.toFixed());if(e>=100||e<=-100)return parseFloat(e.toFixed(1));if(e>=10||e<=-10)return parseFloat(e.toFixed(2));if(e>0||e<0)return parseFloat(e.toFixed(3));if(e===0)return e},Kf=(e,t)=>{let n=0;return t.forEach(r=>{r[e]&&(n+=r[e])}),n},Ui=({data:e,keys:t,colors:n,locales:r,total:o=!1,years:i=!1,activeGraphics:a="ind",units:c={},translate:u,getTotal:d=Kf,columnWidth:h=50})=>{const g=u||(m=>m),y=m=>m==="demanda_red"||m==="reduccio_demanda_red"?(c.demanda||"").replace("(","").replace(")",""):c[m]||"";return l.jsxs("div",{className:`${Ie.externalContainer} ${a==="sin"?Ie.externalSintetic:""}`,children:[i===!0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{}),l.jsx("div",{className:Ie.yearTitles,children:e.map((m,b)=>l.jsx("div",{className:Ie.yearTitle,style:{width:h},children:m.anyo},b))})]}),l.jsx("div",{className:Ie.titles,children:t.map((m,b)=>l.jsxs("div",{className:Ie.titleContainer,children:[g(r[m]),a!=="sin"&&l.jsx("span",{className:Ie.circle,style:{background:n[m]}})]},b))}),o===!0&&l.jsx("div",{className:Ie.totalContainer,children:t.map((m,b)=>{var f;return l.jsxs("div",{className:`${Ie.total} ${d(m,e)>9999||d(m,e)<-9999?Ie.bigNumber:""}`,children:[(f=d(m,e))==null?void 0:f.toLocaleString("es-ES")," ",y(m)]},b)})}),l.jsx("div",{className:Ie.yearDatas,children:e.map((m,b)=>l.jsx("div",{className:Ie.yearDataContainer,style:{width:h},children:t.map((f,x)=>{var _,T;return isNaN(m[f])?null:l.jsx("div",{className:`${Ie.yearDataContent} ${m[f]>9999||m[f]<-9999?Ie.bigNumber:""}`,children:m[f]<1e4||m[f]>-1e4?(_=Hf(m[f]))==null?void 0:_.toLocaleString("es-ES"):(T=m[f])==null?void 0:T.toLocaleString("es-ES")},x)})},b))})]})};Ui.propTypes={data:s.arrayOf(s.shape({anyo:s.oneOfType([s.string,s.number]).isRequired})).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.objectOf(s.string).isRequired,locales:s.objectOf(s.string).isRequired,total:s.bool,years:s.bool,activeGraphics:s.oneOf(["ind","sin"]),units:s.objectOf(s.string),translate:s.func,getTotal:s.func,columnWidth:s.number};const Gf="_speedGraphic_d1k72_2",_r={speedGraphic:Gf},Zi=({minValue:e=0,maxValue:t=100,value:n=50,title:r=!1,percent:o=!1,unit:i=!1,greenColor:a="#00CF1E",orangeColor:c="#FFAC00",redColor:u="#FF1E37"})=>{n<e&&(n=e),n>t&&(n=t);const d=(n-e)/(t-e),h=270+d*180,g=o?Math.round(d*100):n;return l.jsxs("div",{className:_r.speedGraphic,children:[l.jsxs("svg",{width:"244",height:"130",viewBox:"0 0 244 130",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M0 122C0 111.944 1.2433 101.927 3.70162 92.1756L26.2619 97.8633C24.2724 105.755 23.2662 113.862 23.2662 122H0Z",fill:a}),l.jsx("path",{d:"M16.3442 61.0012C21.3714 52.2936 27.4557 44.2409 34.4588 37.0263L51.1534 53.2313C45.4859 59.0701 40.5619 65.5871 36.4934 72.6341L16.3442 61.0012Z",fill:a}),l.jsx("path",{d:"M60.9088 16.3976C69.6119 11.3628 78.9041 7.42322 88.5739 4.66843L94.9485 27.0443C87.1228 29.2737 79.6027 32.462 72.5592 36.5367L60.9088 16.3976Z",fill:c}),l.jsx("path",{d:"M121.797 0.000169508C131.851 -0.0165912 141.869 1.20965 151.623 3.65101L145.974 26.2209C138.08 24.2451 129.972 23.2527 121.835 23.2663L121.797 0.000169508Z",fill:c}),l.jsx("path",{d:"M182.623 16.1279C191.348 21.124 199.422 27.1797 206.662 34.157L190.516 50.9092C184.657 45.2625 178.123 40.3617 171.061 36.3183L182.623 16.1279Z",fill:u}),l.jsx("path",{d:"M227.238 60.2836C232.325 68.9568 236.319 78.2255 239.131 87.8788L216.794 94.3859C214.518 86.5735 211.285 79.0725 207.169 72.0533L227.238 60.2836Z",fill:u}),l.jsx("path",{d:"M4.15505 90.4316C6.75674 80.7194 10.5491 71.3662 15.4458 62.5846L35.7663 73.9155C31.8035 81.0224 28.7343 88.5919 26.6288 96.4519L4.15505 90.4316Z",fill:a}),l.jsx("path",{d:"M35.733 35.733C42.8426 28.6233 50.8039 22.4198 59.4357 17.2636L71.3671 37.2375C64.3814 41.4104 57.9384 46.4308 52.1846 52.1846L35.733 35.733Z",fill:a}),l.jsx("path",{d:"M90.3004 4.19027C100.01 1.57776 110.005 0.175523 120.058 0.0154601L120.428 23.2787C112.292 23.4082 104.203 24.543 96.3457 26.6573L90.3004 4.19027Z",fill:c}),l.jsx("path",{d:"M153.423 4.11614C163.138 6.70584 172.496 10.4866 181.284 15.3725L169.978 35.707C162.866 31.7529 155.293 28.6932 147.43 26.5973L153.423 4.11614Z",fill:c}),l.jsx("path",{d:"M239.602 89.538C242.532 100.152 244.011 111.114 244 122.125L220.734 122.101C220.743 113.19 219.546 104.319 217.175 95.7287L239.602 89.538Z",fill:u}),l.jsx("path",{d:"M207.769 35.2376C214.919 42.3062 221.168 50.2316 226.374 58.8336L206.469 70.8798C202.256 63.9183 197.199 57.5043 191.412 51.7837L207.769 35.2376Z",fill:u}),l.jsx("g",{transform:`rotate(${h} 122 122)`,children:l.jsx("path",{id:"aguja",d:"M121 119.5V33",stroke:"#605B56","stroke-width":"2"})})]}),l.jsxs("div",{className:_r.value,children:[g,o&&"%",i&&i]}),r&&l.jsx("div",{className:_r.title,children:r})]})};Zi.propTypes={minValue:s.number.isRequired,maxValue:s.number.isRequired,value:s.number.isRequired,percent:s.bool,title:s.string,unit:s.string,greenColor:s.string,orangeColor:s.string,redColor:s.string};const wr="#ffffff",Yf="#ffffff";function it(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function vs(e,t,n,r,o,i){if(Math.abs(i-o)>=359.99)return n===0?`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`:[`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`,`M ${e-n} ${t} A ${n} ${n} 0 1 0 ${e+n} ${t} A ${n} ${n} 0 1 0 ${e-n} ${t} Z`].join(" ");const a=it(e,t,r,o),c=it(e,t,r,i),u=i-o>180?1:0;if(n===0)return`M ${e} ${t} L ${a.x} ${a.y} A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y} Z`;const d=it(e,t,n,i),h=it(e,t,n,o);return[`M ${a.x} ${a.y}`,`A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y}`,`L ${d.x} ${d.y}`,`A ${n} ${n} 0 ${u} 0 ${h.x} ${h.y}`,"Z"].join(" ")}function Xf(e){const t=e.reduce((r,o)=>r+(o.value||0),0);let n=0;return e.map(r=>{const o=r.value/t*360,i=n;return n+=o,{...r,sa:i,ea:n}})}function xs(e,t,n,r,o){const i=n+(r-n)/2,a=it(e,t,o,i);return{tx:a.x-e,ty:a.y-t}}const Hi=({type:e="cheese",data:t=[],title:n,size:r=260,donutThickness:o=56,gapWidth:i=3,gapColor:a,backgroundColor:c="transparent",fontColor:u="black",fontColorInside:d="white",containerStyles:h={},alignLeft:g=!1})=>{const[y,m]=w.useState(null),b=r/2,f=r/2,x=r/2-14,_=e==="donut"?x-o:0,T=e==="donut"?x-o/2:x*.62,j=w.useMemo(()=>Xf(t),[t]),v=y!==null?j[y]:null,C=j.some($=>$.ea-$.sa>=359.99),S=a||(c==="transparent"?Yf:c);return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",padding:"0px",background:c,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...h},children:[l.jsxs("div",{style:{minHeight:"40px",display:"flex",flexDirection:"column",gap:"2px"},children:[n&&l.jsx("h2",{style:{margin:0,color:u,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.5px"},children:n}),l.jsx("div",{style:{height:"22px",display:"flex",alignItems:"center",gap:"8px",transition:"opacity 0.15s",opacity:v?1:0},children:v&&l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"50%",background:v.color||wr,flexShrink:0}}),l.jsxs("span",{style:{color:u,fontSize:"14px",fontWeight:"600"},children:[v.title," — ",v.value,"%"]})]})})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:g?"flex-start":"center",gap:"16px"},children:[l.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{overflow:"visible"},children:[j.map(($,A)=>{const E=y===A,{tx:B,ty:D}=E&&!C?xs(b,f,$.sa,$.ea,10):{tx:0,ty:0};return l.jsx("g",{transform:`translate(${B}, ${D})`,style:{transition:"transform 0.18s ease",pointerEvents:"none"},children:l.jsx("path",{d:vs(b,f,_,x,$.sa,$.ea),fill:$.color||wr,style:{filter:E?"brightness(1.25)":"brightness(1)",transition:"filter 0.18s ease"}})},A)}),!C&&j.map(($,A)=>{const E=it(b,f,x,$.sa),B=e==="cheese"?b:it(b,f,_,$.sa).x,D=e==="cheese"?f:it(b,f,_,$.sa).y;return l.jsx("line",{x1:B,y1:D,x2:E.x,y2:E.y,stroke:S,strokeWidth:i,strokeLinecap:"butt",style:{pointerEvents:"none"}},`gap-${A}`)}),j.map(($,A)=>{if($.ea-$.sa<20)return null;const E=y===A,{tx:B,ty:D}=E&&!C?xs(b,f,$.sa,$.ea,10):{tx:0,ty:0},p=$.sa+($.ea-$.sa)/2,N=it(b,f,T,p);return l.jsxs("text",{x:N.x+B,y:N.y+D,textAnchor:"middle",dominantBaseline:"middle",fill:d,fontSize:"14",fontWeight:"700",fontFamily:"'Segoe UI', sans-serif",pointerEvents:"none",style:{transition:"x 0.18s ease, y 0.18s ease"},children:[$.value,"%"]},`lbl-${A}`)}),j.map(($,A)=>l.jsx("path",{d:vs(b,f,_,x,$.sa,$.ea),fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>m(A),onMouseLeave:()=>m(null)},`hit-${A}`))]}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px 24px",justifyContent:g?"flex-start":"center"},children:t.map(($,A)=>l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",opacity:y===null||y===A?1:.4,transition:"opacity 0.15s"},onMouseEnter:()=>m(A),onMouseLeave:()=>m(null),children:[l.jsx("span",{style:{width:"32px",height:"14px",borderRadius:"3px",background:$.color||wr,flexShrink:0}}),l.jsx("span",{style:{color:u,fontSize:"13px",fontWeight:"400"},children:$.title})]},A))})]})]})};Hi.propTypes={type:s.oneOf(["cheese","donut"]),data:s.arrayOf(s.shape({value:s.number.isRequired,title:s.string.isRequired,color:s.string})).isRequired,title:s.string,size:s.number,donutThickness:s.number,gapWidth:s.number,gapColor:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,containerStyles:s.object,alignLeft:s.bool};const Cs=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],Ki=({data:e=[],title:t,backgroundColor:n="#0d3d4a",fontColor:r="#ffffff",barHeight:o=52,animated:i=!0,borderRadius:a,containerStyles:c={},fontColorInside:u="white",borderFontColorInside:d})=>{const[h,g]=w.useState(i?0:1);w.useEffect(()=>{if(!i)return;const b=requestAnimationFrame(()=>g(1));return()=>cancelAnimationFrame(b)},[i]);const y=Math.max(...e.map(b=>b.value),1),m=a??"6px";return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0px",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",minWidth:"420px",...c},children:[t&&l.jsx("h2",{style:{margin:"0 0 20px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"18px"},children:e.map((b,f)=>{const x=b.color||Cs[f%Cs.length],_=b.value/y*100*h;return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("span",{style:{color:r,fontSize:"14px",fontWeight:"400",opacity:.9},children:b.title}),l.jsxs("div",{style:{position:"relative",height:`${o}px`,background:"transparent",borderRadius:m,overflow:"hidden"},children:[l.jsx("div",{style:{position:"absolute",left:0,top:0,height:"100%",width:`${_}%`,background:x,borderRadius:m,transition:i?"width 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none"}}),l.jsx("span",{style:{position:"absolute",left:"14px",top:"50%",transform:"translateY(-50%)",color:u||n,fontSize:"18px",fontWeight:"700",pointerEvents:"none",letterSpacing:"-0.3px",...d?{WebkitTextStroke:`1px ${d}`,paintOrder:"stroke fill"}:{}},children:b.value})]})]},f)})})]})};Ki.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})),title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barHeight:s.number,animated:s.bool,borderRadius:s.oneOfType([s.string,s.number]),containerStyles:s.object};const _s=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],Gi=({data:e=[],title:t,backgroundColor:n="black",fontColor:r="#ffffff",fontColorInside:o="#0d3d4a",borderFontColorInside:i,barWidth:a=52,maxBarHeight:c=200,animated:u=!0,separatorColor:d,containerStyles:h={}})=>{const[g,y]=w.useState(u?0:1);w.useEffect(()=>{if(!u)return;const x=requestAnimationFrame(()=>requestAnimationFrame(()=>y(1)));return()=>cancelAnimationFrame(x)},[u]);const m=Math.max(...e.map(x=>x.value),1),b=d||(r==="#ffffff"?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.15)"),f={fontSize:"15px",fontWeight:"700",letterSpacing:"-0.3px",lineHeight:1,pointerEvents:"none",whiteSpace:"nowrap",...i?{WebkitTextStroke:`1px ${i}`,paintOrder:"stroke fill"}:{}};return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...h},children:[t&&l.jsx("h2",{style:{margin:"0 0 24px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:0},children:[l.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:"12px",height:`${c}px`},children:e.map((x,_)=>{const T=x.color||_s[_%_s.length],j=x.value===0,v=j?0:x.value/m*c*g;return l.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:`${a}px`,height:"100%"},children:j?l.jsx("span",{style:{...f,color:o,marginBottom:"6px"},children:x.value}):l.jsx("div",{style:{position:"relative",width:"100%",height:`${v}px`,background:T,borderRadius:"6px 6px 0 0",transition:u?"height 0.85s cubic-bezier(0.16, 1, 0.3, 1)":"none",display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"10px"},children:l.jsx("span",{style:{...f,color:o},children:x.value})})},_)})}),l.jsx("div",{style:{height:"1.5px",background:b,borderRadius:"1px"}}),l.jsx("div",{style:{display:"flex",gap:"12px",marginTop:"10px"},children:e.map((x,_)=>l.jsx("div",{style:{width:`${a}px`,textAlign:"center",color:r,fontSize:"13px",fontWeight:"400",opacity:.8,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:x.title},_))})]})]})};Gi.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})).isRequired,title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barWidth:s.number,maxBarHeight:s.number,animated:s.bool,separatorColor:s.string,containerStyles:s.object};const Qf="_percentageBarContainer_lgkme_3",Jf="_barContainer_lgkme_10",ep="_segment_lgkme_19",tp="_handle_lgkme_36",np="_labelsContainer_lgkme_68",rp="_labelItem_lgkme_73",op="_labelsListContainer_lgkme_85",sp="_labelColor_lgkme_105",ip="_labelText_lgkme_114",ap="_labelValue_lgkme_122",lp="_labelTranslation_lgkme_126",Me={percentageBarContainer:Qf,barContainer:Jf,segment:ep,handle:tp,labelsContainer:np,labelItem:rp,labelsListContainer:op,labelColor:sp,labelText:ip,labelValue:ap,labelTranslation:lp},cp=2,ws=e=>{const t=e.reduce((n,r)=>n+r.value,0);return t===0?e.map(()=>100/e.length):e.map(n=>n.value/t*100)},Sr=(e,t=100)=>e.map(n=>n.value/t*100),Ss=(e,t)=>{try{const r=new Function("x",`return (${t})`)(e);return isNaN(r)?"N/A":r.toFixed(2)}catch{return"N/A"}},Yi=({items:e,showLabels:t="bar",showTranslations:n=!0,onChange:r,minPercentage:o=cp,maxValue:i=100,labelTextColor:a,labelValueColor:c})=>{const[u,d]=w.useState(()=>ws(e)),h=w.useRef(null),g=w.useRef(null);w.useEffect(()=>{e&&e.length>0&&d(ws(e))},[e]);const y=w.useCallback(f=>{if(!h.current||!g.current)return;const{dividerIndex:x}=h.current,_=g.current.getBoundingClientRect(),T=(f.touches?f.touches[0].clientX:f.clientX)-_.left,j=Math.max(0,Math.min(100,T/_.width*100));d(v=>{const C=[...v],S=v.slice(0,x).reduce((B,D)=>B+D,0),$=S+v[x]+v[x+1];let A=j-S,E=$-j;if(A<o&&(A=o,E=$-S-o),E<o&&(E=o,A=$-S-o),C[x]=A,C[x+1]=E,r)try{const B=e.reduce((D,p)=>D+p.value,0);r(e.map((D,p)=>({...D,value:C[p]/100*B})))}catch(B){console.error("PercentageBar onChange error:",B)}return C})},[o,r,e]),m=w.useCallback(()=>{h.current&&(h.current=null,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",m),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",m),d(f=>{if(r){const x=e.reduce((_,T)=>_+T.value,0);r(e.map((_,T)=>({..._,value:f[T]/100*x})))}return f}))},[y,r,e]),b=(f,x)=>{x.preventDefault(),h.current={dividerIndex:f},document.addEventListener("mousemove",y),document.addEventListener("mouseup",m),document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",m)};return l.jsxs("div",{className:Me.percentageBarContainer,children:[l.jsx("div",{className:Me.barContainer,ref:g,children:e.map((f,x)=>{var _;return l.jsx("div",{className:Me.segment,style:{width:`${u[x]}%`,backgroundColor:f.color||"#ccc"},children:x>0&&l.jsx("div",{className:Me.handle,onMouseDown:T=>b(x-1,T),onTouchStart:T=>b(x-1,T),role:"slider","aria-label":`Divisor entre ${(_=e[x-1])==null?void 0:_.title} y ${f.title}`,"aria-valuenow":Math.round(u[x]),tabIndex:0})},f.id??x)})}),t==="bar"&&l.jsx("div",{className:Me.labelsContainer,children:e.map((f,x)=>l.jsxs("div",{className:Me.labelItem,style:{width:`${u[x]}%`},children:[l.jsx("span",{className:Me.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Me.labelText,style:{color:a||"#fff"},children:f.title}),l.jsxs("span",{className:Me.labelValue,style:{color:c||"#fff"},children:[Sr(e,i)[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Me.labelTranslation,children:["(",Ss(u[x],f.translationFormula),")"]})]},f.id??x))}),t==="list"&&l.jsx("div",{className:Me.labelsListContainer,children:e.map((f,x)=>l.jsxs("div",{className:Me.labelItem,children:[l.jsx("span",{className:Me.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Me.labelText,children:f.title}),l.jsxs("span",{className:Me.labelValue,children:[Sr(e,i)[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Me.labelTranslation,children:["(",Ss(Sr(e,i)[x],f.translationFormula),")"]})]},f.id??x))})]})};Yi.propTypes={items:s.arrayOf(s.shape({id:s.oneOfType([s.string,s.number]),title:s.string.isRequired,value:s.number.isRequired,color:s.string.isRequired,translationFormula:s.string})).isRequired,showLabels:s.string,showTranslations:s.bool,onChange:s.func,minPercentage:s.number,maxValue:s.number,labelTextColor:s.string,labelValueColor:s.string};const up="_header_13kbt_2",dp="_leftComponents_13kbt_13",fp="_centerComponents_13kbt_14",pp="_rightComponents_13kbt_15",mp="_componentsContainer_13kbt_32",_t={header:up,leftComponents:dp,centerComponents:fp,rightComponents:pp,componentsContainer:mp},Xi=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[],zIndex:o=10,height:i=60,backgroundColor:a="#605B56",isFooter:c=!1})=>l.jsxs("div",{className:_t.header,style:{...e,zIndex:o,height:i,backgroundColor:a,top:c?"auto":0,bottom:c?0:"auto"},children:[l.jsx("div",{className:_t.leftComponents,children:t.map((u,d)=>l.jsx("div",{className:_t.componentsContainer,children:u},d))}),l.jsx("div",{className:_t.centerComponents,children:n.map((u,d)=>l.jsx("div",{className:_t.componentsContainer,children:u},d))}),l.jsx("div",{className:_t.rightComponents,children:r.map((u,d)=>l.jsx("div",{className:_t.componentsContainer,children:u},d))})]});Xi.propTypes={leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node),cssProps:s.object,zIndex:s.number,height:s.number,backgroundColor:s.string,isFooter:s.bool};const hp="_sidebar_1kaqu_2",gp="_open_1kaqu_16",yp="_content_1kaqu_20",bp="_closeButton_1kaqu_25",On={sidebar:hp,open:gp,content:yp,closeButton:bp},vp="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%203699'%3e%3cpath%20id='Vector%20223'%20d='M1%201L18.1566%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector%20224'%20d='M18.1575%201L1.00083%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",Qi=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return l.jsx("div",{className:`${On.sidebar} ${n?On.open:""}`,style:{width:n?e:0},children:n&&l.jsxs("div",{className:On.content,children:[l.jsx("button",{className:On.closeButton,onClick:o,children:l.jsx("img",{src:vp,alt:"Close Sidebar"})}),t]})})};Qi.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=As;exports.BarChart=Fr;exports.BurgerMenu=to;exports.ButtonsBar=Vi;exports.ButtonsList=Ls;exports.CategorySelector=Ir;exports.DropdownList=ht;exports.EditAmbit=sl;exports.ErrorMessage=Zt;exports.FiltersAmbit=Vs;exports.Form=qd;exports.GeneralButton=ln;exports.Graphic=Fs;exports.GraphicLegend=Ui;exports.Groupedbarchart=qi;exports.HeaderSection=Xi;exports.HorizontalBarChart=Ki;exports.IndicatorsList=Ws;exports.LangSelector=Us;exports.Legend=Zs;exports.ListSelector=Ni;exports.Loader=zi;exports.LogInButton=$i;exports.LogoApp=Hs;exports.MapboxMap=Js;exports.MaplibreMap=ei;exports.ModalAlert=Bi;exports.PercentageBar=Yi;exports.PieChart=Hi;exports.RadioButtonInput=Pi;exports.RankingSlider=Qr;exports.RightSidebar=Qi;exports.SectionBar=ti;exports.SelectInput=Ii;exports.SpeedGraphic=Zi;exports.Stackedbarchart=Wi;exports.StatusText=eo;exports.Steps=Jr;exports.Switch=Fi;exports.TextInput=Dr;exports.TimeSlider=ki;exports.Tooltip=et;exports.TopNavMenu=ji;exports.VerticalBarChart=Gi;