@tmf_ciclica/ciclicastorybook 1.1.2 → 1.1.3

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,4 +1,4 @@
1
- "use strict";var ys=Object.create;var jo=Object.defineProperty;var vs=Object.getOwnPropertyDescriptor;var bs=Object.getOwnPropertyNames;var _s=Object.getPrototypeOf,Cs=Object.prototype.hasOwnProperty;var xs=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bs(t))!Cs.call(e,o)&&o!==n&&jo(e,o,{get:()=>t[o],enumerable:!(r=vs(t,o))||r.enumerable});return e};var Mo=(e,t,n)=>(n=e!=null?ys(_s(e)):{},xs(t||!e||!e.__esModule?jo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),Oe=require("react-i18next"),ho=require("framer-motion"),Es=require("zustand"),Ss=require("d3"),Ts=require("mapbox-gl"),kn=require("react-redux"),hr=require("react-dom"),Lo=require("maplibre-gl"),Ki=require("@reduxjs/toolkit"),No=require("@mui/material"),on=require("@emotion/react"),ws=require("@emotion/styled"),ks=require("react-router-dom");function Zi(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 X=Zi(v),Io=Zi(Ss);function Gi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Wn={exports:{}},_n={};/**
1
+ "use strict";var ys=Object.create;var jo=Object.defineProperty;var vs=Object.getOwnPropertyDescriptor;var bs=Object.getOwnPropertyNames;var _s=Object.getPrototypeOf,Cs=Object.prototype.hasOwnProperty;var xs=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bs(t))!Cs.call(e,o)&&o!==n&&jo(e,o,{get:()=>t[o],enumerable:!(r=vs(t,o))||r.enumerable});return e};var Mo=(e,t,n)=>(n=e!=null?ys(_s(e)):{},xs(t||!e||!e.__esModule?jo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),Oe=require("react-i18next"),ho=require("framer-motion"),Es=require("zustand"),Ss=require("d3"),Ts=require("mapbox-gl"),kn=require("react-redux"),hr=require("react-dom"),Lo=require("maplibre-gl"),Ki=require("@reduxjs/toolkit"),No=require("@mui/material"),on=require("@emotion/react"),ws=require("@emotion/styled"),ks=require("react-router-dom");function Zi(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 X=Zi(b),Io=Zi(Ss);function Gi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Wn={exports:{}},_n={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Do;function Os(){if(Do)return _n;Do=1;var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,u){var m,d={},p=null,_=null;u!==void 0&&(p=""+u),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(_=c.ref);for(m in c)r.call(c,m)&&!i.hasOwnProperty(m)&&(d[m]=c[m]);if(l&&l.defaultProps)for(m in c=l.defaultProps,c)d[m]===void 0&&(d[m]=c[m]);return{$$typeof:t,type:l,key:p,ref:_,props:d,_owner:o.current}}return _n.Fragment=n,_n.jsx=a,_n.jsxs=a,_n}var Cn={};/**
9
+ */var Do;function Os(){if(Do)return _n;Do=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,u){var m,f={},p=null,v=null;u!==void 0&&(p=""+u),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(v=c.ref);for(m in c)r.call(c,m)&&!i.hasOwnProperty(m)&&(f[m]=c[m]);if(l&&l.defaultProps)for(m in c=l.defaultProps,c)f[m]===void 0&&(f[m]=c[m]);return{$$typeof:t,type:l,key:p,ref:v,props:f,_owner:o.current}}return _n.Fragment=n,_n.jsx=a,_n.jsxs=a,_n}var Cn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,43 +14,43 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Fo;function Rs(){return Fo||(Fo=1,process.env.NODE_ENV!=="production"&&function(){var e=v,t=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),b=Symbol.iterator,f="@@iterator";function x(g){if(g===null||typeof g!="object")return null;var O=b&&g[b]||g[f];return typeof O=="function"?O:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(g){{for(var O=arguments.length,I=new Array(O>1?O-1:0),te=1;te<O;te++)I[te-1]=arguments[te];k("error",g,I)}}function k(g,O,I){{var te=E.ReactDebugCurrentFrame,J=te.getStackAddendum();J!==""&&(O+="%s",I=I.concat([J]));var oe=I.map(function(ue){return String(ue)});oe.unshift("Warning: "+O),Function.prototype.apply.call(console[g],console,oe)}}var j=!1,C=!1,z=!1,y=!1,w=!1,S;S=Symbol.for("react.module.reference");function A(g){return!!(typeof g=="string"||typeof g=="function"||g===r||g===i||w||g===o||g===u||g===m||y||g===_||j||C||z||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===a||g.$$typeof===l||g.$$typeof===c||g.$$typeof===S||g.getModuleId!==void 0))}function N(g,O,I){var te=g.displayName;if(te)return te;var J=O.displayName||O.name||"";return J!==""?I+"("+J+")":I}function H(g){return g.displayName||"Context"}function V(g){if(g==null)return null;if(typeof g.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case m:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var O=g;return H(O)+".Consumer";case a:var I=g;return H(I._context)+".Provider";case c:return N(g,g.render,"ForwardRef");case d:var te=g.displayName||null;return te!==null?te:V(g.type)||"Memo";case p:{var J=g,oe=J._payload,ue=J._init;try{return V(ue(oe))}catch{return null}}}return null}var ce=Object.assign,Y=0,ie,re,we,Pe,R,M,Q;function q(){}q.__reactDisabledLog=!0;function F(){{if(Y===0){ie=console.log,re=console.info,we=console.warn,Pe=console.error,R=console.group,M=console.groupCollapsed,Q=console.groupEnd;var g={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Y++}}function ee(){{if(Y--,Y===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},g,{value:ie}),info:ce({},g,{value:re}),warn:ce({},g,{value:we}),error:ce({},g,{value:Pe}),group:ce({},g,{value:R}),groupCollapsed:ce({},g,{value:M}),groupEnd:ce({},g,{value:Q})})}Y<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=E.ReactCurrentDispatcher,K;function U(g,O,I){{if(K===void 0)try{throw Error()}catch(J){var te=J.stack.trim().match(/\n( *(at )?)/);K=te&&te[1]||""}return`
18
- `+K+g}}var G=!1,ne;{var be=typeof WeakMap=="function"?WeakMap:Map;ne=new be}function P(g,O){if(!g||G)return"";{var I=ne.get(g);if(I!==void 0)return I}var te;G=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=Z.current,Z.current=null,F();try{if(O){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Ke){te=Ke}Reflect.construct(g,[],ue)}else{try{ue.call()}catch(Ke){te=Ke}g.call(ue.prototype)}}else{try{throw Error()}catch(Ke){te=Ke}g()}}catch(Ke){if(Ke&&te&&typeof Ke.stack=="string"){for(var le=Ke.stack.split(`
17
+ */var Fo;function Rs(){return Fo||(Fo=1,process.env.NODE_ENV!=="production"&&function(){var e=b,t=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),_=Symbol.iterator,d="@@iterator";function x(g){if(g===null||typeof g!="object")return null;var w=_&&g[_]||g[d];return typeof w=="function"?w:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(g){{for(var w=arguments.length,I=new Array(w>1?w-1:0),te=1;te<w;te++)I[te-1]=arguments[te];A("error",g,I)}}function A(g,w,I){{var te=E.ReactDebugCurrentFrame,J=te.getStackAddendum();J!==""&&(w+="%s",I=I.concat([J]));var oe=I.map(function(ue){return String(ue)});oe.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,oe)}}var O=!1,C=!1,F=!1,y=!1,T=!1,S;S=Symbol.for("react.module.reference");function P(g){return!!(typeof g=="string"||typeof g=="function"||g===r||g===i||T||g===o||g===u||g===m||y||g===v||O||C||F||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===a||g.$$typeof===l||g.$$typeof===c||g.$$typeof===S||g.getModuleId!==void 0))}function N(g,w,I){var te=g.displayName;if(te)return te;var J=w.displayName||w.name||"";return J!==""?I+"("+J+")":I}function H(g){return g.displayName||"Context"}function V(g){if(g==null)return null;if(typeof g.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case m:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var w=g;return H(w)+".Consumer";case a:var I=g;return H(I._context)+".Provider";case c:return N(g,g.render,"ForwardRef");case f:var te=g.displayName||null;return te!==null?te:V(g.type)||"Memo";case p:{var J=g,oe=J._payload,ue=J._init;try{return V(ue(oe))}catch{return null}}}return null}var ce=Object.assign,Y=0,ie,re,we,Pe,k,M,Q;function q(){}q.__reactDisabledLog=!0;function B(){{if(Y===0){ie=console.log,re=console.info,we=console.warn,Pe=console.error,k=console.group,M=console.groupCollapsed,Q=console.groupEnd;var g={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Y++}}function ee(){{if(Y--,Y===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},g,{value:ie}),info:ce({},g,{value:re}),warn:ce({},g,{value:we}),error:ce({},g,{value:Pe}),group:ce({},g,{value:k}),groupCollapsed:ce({},g,{value:M}),groupEnd:ce({},g,{value:Q})})}Y<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=E.ReactCurrentDispatcher,K;function U(g,w,I){{if(K===void 0)try{throw Error()}catch(J){var te=J.stack.trim().match(/\n( *(at )?)/);K=te&&te[1]||""}return`
18
+ `+K+g}}var G=!1,ne;{var be=typeof WeakMap=="function"?WeakMap:Map;ne=new be}function $(g,w){if(!g||G)return"";{var I=ne.get(g);if(I!==void 0)return I}var te;G=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=Z.current,Z.current=null,B();try{if(w){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Ke){te=Ke}Reflect.construct(g,[],ue)}else{try{ue.call()}catch(Ke){te=Ke}g.call(ue.prototype)}}else{try{throw Error()}catch(Ke){te=Ke}g()}}catch(Ke){if(Ke&&te&&typeof Ke.stack=="string"){for(var le=Ke.stack.split(`
19
19
  `),Se=te.stack.split(`
20
20
  `),Me=le.length-1,Ne=Se.length-1;Me>=1&&Ne>=0&&le[Me]!==Se[Ne];)Ne--;for(;Me>=1&&Ne>=0;Me--,Ne--)if(le[Me]!==Se[Ne]){if(Me!==1||Ne!==1)do if(Me--,Ne--,Ne<0||le[Me]!==Se[Ne]){var ot=`
21
- `+le[Me].replace(" at new "," at ");return g.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",g.displayName)),typeof g=="function"&&ne.set(g,ot),ot}while(Me>=1&&Ne>=0);break}}}finally{G=!1,Z.current=oe,ee(),Error.prepareStackTrace=J}var Ht=g?g.displayName||g.name:"",$t=Ht?U(Ht):"";return typeof g=="function"&&ne.set(g,$t),$t}function _e(g,O,I){return P(g,!1)}function ae(g){var O=g.prototype;return!!(O&&O.isReactComponent)}function se(g,O,I){if(g==null)return"";if(typeof g=="function")return P(g,ae(g));if(typeof g=="string")return U(g);switch(g){case u:return U("Suspense");case m:return U("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case c:return _e(g.render);case d:return se(g.type,O,I);case p:{var te=g,J=te._payload,oe=te._init;try{return se(oe(J),O,I)}catch{}}}return""}var Re=Object.prototype.hasOwnProperty,Ue={},qe=E.ReactDebugCurrentFrame;function dt(g){if(g){var O=g._owner,I=se(g.type,g._source,O?O.type:null);qe.setExtraStackFrame(I)}else qe.setExtraStackFrame(null)}function De(g,O,I,te,J){{var oe=Function.call.bind(Re);for(var ue in g)if(oe(g,ue)){var le=void 0;try{if(typeof g[ue]!="function"){var Se=Error((te||"React class")+": "+I+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}le=g[ue](O,ue,te,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){le=Me}le&&!(le instanceof Error)&&(dt(J),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",I,ue,typeof le),dt(null)),le instanceof Error&&!(le.message in Ue)&&(Ue[le.message]=!0,dt(J),T("Failed %s type: %s",I,le.message),dt(null))}}}var Ct=Array.isArray;function At(g){return Ct(g)}function pn(g){{var O=typeof Symbol=="function"&&Symbol.toStringTag,I=O&&g[Symbol.toStringTag]||g.constructor.name||"Object";return I}}function hn(g){try{return gn(g),!1}catch{return!0}}function gn(g){return""+g}function Bt(g){if(hn(g))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pn(g)),gn(g)}var xt=E.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0},D,W;function fe(g){if(Re.call(g,"ref")){var O=Object.getOwnPropertyDescriptor(g,"ref").get;if(O&&O.isReactWarning)return!1}return g.ref!==void 0}function me(g){if(Re.call(g,"key")){var O=Object.getOwnPropertyDescriptor(g,"key").get;if(O&&O.isReactWarning)return!1}return g.key!==void 0}function de(g,O){typeof g.ref=="string"&&xt.current}function Je(g,O){{var I=function(){D||(D=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function rt(g,O){{var I=function(){W||(W=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var pe=function(g,O,I,te,J,oe,ue){var le={$$typeof:t,type:g,key:O,ref:I,props:ue,_owner:oe};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function Ye(g,O,I,te,J){{var oe,ue={},le=null,Se=null;I!==void 0&&(Bt(I),le=""+I),me(O)&&(Bt(O.key),le=""+O.key),fe(O)&&(Se=O.ref,de(O,J));for(oe in O)Re.call(O,oe)&&!$.hasOwnProperty(oe)&&(ue[oe]=O[oe]);if(g&&g.defaultProps){var Me=g.defaultProps;for(oe in Me)ue[oe]===void 0&&(ue[oe]=Me[oe])}if(le||Se){var Ne=typeof g=="function"?g.displayName||g.name||"Unknown":g;le&&Je(ue,Ne),Se&&rt(ue,Ne)}return pe(g,le,Se,J,te,xt.current,ue)}}var ft=E.ReactCurrentOwner,yn=E.ReactDebugCurrentFrame;function yt(g){if(g){var O=g._owner,I=se(g.type,g._source,O?O.type:null);yn.setExtraStackFrame(I)}else yn.setExtraStackFrame(null)}var zt;zt=!1;function Pt(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Vt(){{if(ft.current){var g=V(ft.current.type);if(g)return`
21
+ `+le[Me].replace(" at new "," at ");return g.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",g.displayName)),typeof g=="function"&&ne.set(g,ot),ot}while(Me>=1&&Ne>=0);break}}}finally{G=!1,Z.current=oe,ee(),Error.prepareStackTrace=J}var Ht=g?g.displayName||g.name:"",$t=Ht?U(Ht):"";return typeof g=="function"&&ne.set(g,$t),$t}function _e(g,w,I){return $(g,!1)}function ae(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function se(g,w,I){if(g==null)return"";if(typeof g=="function")return $(g,ae(g));if(typeof g=="string")return U(g);switch(g){case u:return U("Suspense");case m:return U("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case c:return _e(g.render);case f:return se(g.type,w,I);case p:{var te=g,J=te._payload,oe=te._init;try{return se(oe(J),w,I)}catch{}}}return""}var Re=Object.prototype.hasOwnProperty,Ue={},qe=E.ReactDebugCurrentFrame;function dt(g){if(g){var w=g._owner,I=se(g.type,g._source,w?w.type:null);qe.setExtraStackFrame(I)}else qe.setExtraStackFrame(null)}function De(g,w,I,te,J){{var oe=Function.call.bind(Re);for(var ue in g)if(oe(g,ue)){var le=void 0;try{if(typeof g[ue]!="function"){var Se=Error((te||"React class")+": "+I+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}le=g[ue](w,ue,te,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){le=Me}le&&!(le instanceof Error)&&(dt(J),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",I,ue,typeof le),dt(null)),le instanceof Error&&!(le.message in Ue)&&(Ue[le.message]=!0,dt(J),R("Failed %s type: %s",I,le.message),dt(null))}}}var Ct=Array.isArray;function At(g){return Ct(g)}function pn(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,I=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return I}}function hn(g){try{return gn(g),!1}catch{return!0}}function gn(g){return""+g}function Bt(g){if(hn(g))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pn(g)),gn(g)}var xt=E.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0},D,W;function fe(g){if(Re.call(g,"ref")){var w=Object.getOwnPropertyDescriptor(g,"ref").get;if(w&&w.isReactWarning)return!1}return g.ref!==void 0}function me(g){if(Re.call(g,"key")){var w=Object.getOwnPropertyDescriptor(g,"key").get;if(w&&w.isReactWarning)return!1}return g.key!==void 0}function de(g,w){typeof g.ref=="string"&&xt.current}function Je(g,w){{var I=function(){D||(D=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function rt(g,w){{var I=function(){W||(W=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var pe=function(g,w,I,te,J,oe,ue){var le={$$typeof:t,type:g,key:w,ref:I,props:ue,_owner:oe};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function Ye(g,w,I,te,J){{var oe,ue={},le=null,Se=null;I!==void 0&&(Bt(I),le=""+I),me(w)&&(Bt(w.key),le=""+w.key),fe(w)&&(Se=w.ref,de(w,J));for(oe in w)Re.call(w,oe)&&!j.hasOwnProperty(oe)&&(ue[oe]=w[oe]);if(g&&g.defaultProps){var Me=g.defaultProps;for(oe in Me)ue[oe]===void 0&&(ue[oe]=Me[oe])}if(le||Se){var Ne=typeof g=="function"?g.displayName||g.name||"Unknown":g;le&&Je(ue,Ne),Se&&rt(ue,Ne)}return pe(g,le,Se,J,te,xt.current,ue)}}var ft=E.ReactCurrentOwner,yn=E.ReactDebugCurrentFrame;function yt(g){if(g){var w=g._owner,I=se(g.type,g._source,w?w.type:null);yn.setExtraStackFrame(I)}else yn.setExtraStackFrame(null)}var zt;zt=!1;function Pt(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Vt(){{if(ft.current){var g=V(ft.current.type);if(g)return`
22
22
 
23
- Check the render method of \``+g+"`."}return""}}function Vn(g){return""}var Ut={};function Ar(g){{var O=Vt();if(!O){var I=typeof g=="string"?g:g.displayName||g.name;I&&(O=`
23
+ Check the render method of \``+g+"`."}return""}}function Vn(g){return""}var Ut={};function Ar(g){{var w=Vt();if(!w){var I=typeof g=="string"?g:g.displayName||g.name;I&&(w=`
24
24
 
25
- Check the top-level render call using <`+I+">.")}return O}}function qt(g,O){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Ar(O);if(Ut[I])return;Ut[I]=!0;var te="";g&&g._owner&&g._owner!==ft.current&&(te=" It was passed a child from "+V(g._owner.type)+"."),yt(g),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,te),yt(null)}}function Wt(g,O){{if(typeof g!="object")return;if(At(g))for(var I=0;I<g.length;I++){var te=g[I];Pt(te)&&qt(te,O)}else if(Pt(g))g._store&&(g._store.validated=!0);else if(g){var J=x(g);if(typeof J=="function"&&J!==g.entries)for(var oe=J.call(g),ue;!(ue=oe.next()).done;)Pt(ue.value)&&qt(ue.value,O)}}}function vn(g){{var O=g.type;if(O==null||typeof O=="string")return;var I;if(typeof O=="function")I=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===c||O.$$typeof===d))I=O.propTypes;else return;if(I){var te=V(O);De(I,g.props,"prop",te,g)}else if(O.PropTypes!==void 0&&!zt){zt=!0;var J=V(O);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pr(g){{for(var O=Object.keys(g.props),I=0;I<O.length;I++){var te=O[I];if(te!=="children"&&te!=="key"){yt(g),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),yt(null);break}}g.ref!==null&&(yt(g),T("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var Un={};function qn(g,O,I,te,J,oe){{var ue=A(g);if(!ue){var le="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Se=Vn();Se?le+=Se:le+=Vt();var Me;g===null?Me="null":At(g)?Me="array":g!==void 0&&g.$$typeof===t?(Me="<"+(V(g.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof g,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,le)}var Ne=Ye(g,O,I,J,oe);if(Ne==null)return Ne;if(ue){var ot=O.children;if(ot!==void 0)if(te)if(At(ot)){for(var Ht=0;Ht<ot.length;Ht++)Wt(ot[Ht],g);Object.freeze&&Object.freeze(ot)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Wt(ot,g)}if(Re.call(O,"key")){var $t=V(g),Ke=Object.keys(O).filter(function(gs){return gs!=="key"}),Lr=Ke.length>0?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Un[$t+Lr]){var hs=Ke.length>0?"{"+Ke.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+I+">.")}return w}}function qt(g,w){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Ar(w);if(Ut[I])return;Ut[I]=!0;var te="";g&&g._owner&&g._owner!==ft.current&&(te=" It was passed a child from "+V(g._owner.type)+"."),yt(g),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,te),yt(null)}}function Wt(g,w){{if(typeof g!="object")return;if(At(g))for(var I=0;I<g.length;I++){var te=g[I];Pt(te)&&qt(te,w)}else if(Pt(g))g._store&&(g._store.validated=!0);else if(g){var J=x(g);if(typeof J=="function"&&J!==g.entries)for(var oe=J.call(g),ue;!(ue=oe.next()).done;)Pt(ue.value)&&qt(ue.value,w)}}}function vn(g){{var w=g.type;if(w==null||typeof w=="string")return;var I;if(typeof w=="function")I=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===f))I=w.propTypes;else return;if(I){var te=V(w);De(I,g.props,"prop",te,g)}else if(w.PropTypes!==void 0&&!zt){zt=!0;var J=V(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pr(g){{for(var w=Object.keys(g.props),I=0;I<w.length;I++){var te=w[I];if(te!=="children"&&te!=="key"){yt(g),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),yt(null);break}}g.ref!==null&&(yt(g),R("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var Un={};function qn(g,w,I,te,J,oe){{var ue=P(g);if(!ue){var le="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Se=Vn();Se?le+=Se:le+=Vt();var Me;g===null?Me="null":At(g)?Me="array":g!==void 0&&g.$$typeof===t?(Me="<"+(V(g.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof g,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,le)}var Ne=Ye(g,w,I,J,oe);if(Ne==null)return Ne;if(ue){var ot=w.children;if(ot!==void 0)if(te)if(At(ot)){for(var Ht=0;Ht<ot.length;Ht++)Wt(ot[Ht],g);Object.freeze&&Object.freeze(ot)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Wt(ot,g)}if(Re.call(w,"key")){var $t=V(g),Ke=Object.keys(w).filter(function(gs){return gs!=="key"}),Lr=Ke.length>0?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Un[$t+Lr]){var hs=Ke.length>0?"{"+Ke.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Lr,$t,hs,$t),Un[$t+Lr]=!0}}return g===r?Pr(Ne):vn(Ne),Ne}}function $r(g,O,I){return qn(g,O,I,!0)}function jr(g,O,I){return qn(g,O,I,!1)}var Mr=jr,bn=$r;Cn.Fragment=r,Cn.jsx=Mr,Cn.jsxs=bn}()),Cn}var Bo;function As(){return Bo||(Bo=1,process.env.NODE_ENV==="production"?Wn.exports=Os():Wn.exports=Rs()),Wn.exports}var h=As();const Ps="_ambitSelector_f07c1_2",$s="_header_f07c1_13",js="_nameDateContainer_f07c1_23",Ms="_ambitName_f07c1_39",Ls="_ambitDate_f07c1_48",Ns="_buttonsContainer_f07c1_51",Yt={ambitSelector:Ps,header:$s,nameDateContainer:js,ambitName:Ms,ambitDate:Ls,buttonsContainer:Ns},Is="_ambitItem_1ueih_2",Ds="_ambitNameDate_1ueih_16",Fs="_ambitName_1ueih_16",Bs="_ambitDate_1ueih_35",zs="_ambitButtons_1ueih_38",xn={ambitItem:Is,ambitNameDate:Ds,ambitName:Fs,ambitDate:Bs,ambitButtons:zs},Vs="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",Us="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",zo="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",qs="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",Ws="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";var Hn={exports:{}},Yn={exports:{}},ye={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,Lr,$t,hs,$t),Un[$t+Lr]=!0}}return g===r?Pr(Ne):vn(Ne),Ne}}function $r(g,w,I){return qn(g,w,I,!0)}function jr(g,w,I){return qn(g,w,I,!1)}var Mr=jr,bn=$r;Cn.Fragment=r,Cn.jsx=Mr,Cn.jsxs=bn}()),Cn}var Bo;function As(){return Bo||(Bo=1,process.env.NODE_ENV==="production"?Wn.exports=Os():Wn.exports=Rs()),Wn.exports}var h=As();const Ps="_ambitSelector_f07c1_2",$s="_header_f07c1_13",js="_nameDateContainer_f07c1_23",Ms="_ambitName_f07c1_39",Ls="_ambitDate_f07c1_48",Ns="_buttonsContainer_f07c1_51",Yt={ambitSelector:Ps,header:$s,nameDateContainer:js,ambitName:Ms,ambitDate:Ls,buttonsContainer:Ns},Is="_ambitItem_1ueih_2",Ds="_ambitNameDate_1ueih_16",Fs="_ambitName_1ueih_16",Bs="_ambitDate_1ueih_35",zs="_ambitButtons_1ueih_38",xn={ambitItem:Is,ambitNameDate:Ds,ambitName:Fs,ambitDate:Bs,ambitButtons:zs},Vs="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",Us="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",zo="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",qs="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",Ws="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";var Hn={exports:{}},Yn={exports:{}},ye={};/** @license React v16.13.1
31
31
  * react-is.production.min.js
32
32
  *
33
33
  * Copyright (c) Facebook, Inc. and its affiliates.
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var Vo;function Hs(){if(Vo)return ye;Vo=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,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,_=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=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(C){if(typeof C=="object"&&C!==null){var z=C.$$typeof;switch(z){case t:switch(C=C.type,C){case c:case u:case r:case i:case o:case d:return C;default:switch(C=C&&C.$$typeof,C){case l:case m:case b:case _:case a:return C;default:return z}}case n:return z}}}function j(C){return k(C)===u}return ye.AsyncMode=c,ye.ConcurrentMode=u,ye.ContextConsumer=l,ye.ContextProvider=a,ye.Element=t,ye.ForwardRef=m,ye.Fragment=r,ye.Lazy=b,ye.Memo=_,ye.Portal=n,ye.Profiler=i,ye.StrictMode=o,ye.Suspense=d,ye.isAsyncMode=function(C){return j(C)||k(C)===c},ye.isConcurrentMode=j,ye.isContextConsumer=function(C){return k(C)===l},ye.isContextProvider=function(C){return k(C)===a},ye.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ye.isForwardRef=function(C){return k(C)===m},ye.isFragment=function(C){return k(C)===r},ye.isLazy=function(C){return k(C)===b},ye.isMemo=function(C){return k(C)===_},ye.isPortal=function(C){return k(C)===n},ye.isProfiler=function(C){return k(C)===i},ye.isStrictMode=function(C){return k(C)===o},ye.isSuspense=function(C){return k(C)===d},ye.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===i||C===o||C===d||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===_||C.$$typeof===a||C.$$typeof===l||C.$$typeof===m||C.$$typeof===x||C.$$typeof===E||C.$$typeof===T||C.$$typeof===f)},ye.typeOf=k,ye}var ve={};/** @license React v16.13.1
37
+ */var Vo;function Hs(){if(Vo)return ye;Vo=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,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function A(C){if(typeof C=="object"&&C!==null){var F=C.$$typeof;switch(F){case t:switch(C=C.type,C){case c:case u:case r:case i:case o:case f:return C;default:switch(C=C&&C.$$typeof,C){case l:case m:case _:case v:case a:return C;default:return F}}case n:return F}}}function O(C){return A(C)===u}return ye.AsyncMode=c,ye.ConcurrentMode=u,ye.ContextConsumer=l,ye.ContextProvider=a,ye.Element=t,ye.ForwardRef=m,ye.Fragment=r,ye.Lazy=_,ye.Memo=v,ye.Portal=n,ye.Profiler=i,ye.StrictMode=o,ye.Suspense=f,ye.isAsyncMode=function(C){return O(C)||A(C)===c},ye.isConcurrentMode=O,ye.isContextConsumer=function(C){return A(C)===l},ye.isContextProvider=function(C){return A(C)===a},ye.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ye.isForwardRef=function(C){return A(C)===m},ye.isFragment=function(C){return A(C)===r},ye.isLazy=function(C){return A(C)===_},ye.isMemo=function(C){return A(C)===v},ye.isPortal=function(C){return A(C)===n},ye.isProfiler=function(C){return A(C)===i},ye.isStrictMode=function(C){return A(C)===o},ye.isSuspense=function(C){return A(C)===f},ye.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===i||C===o||C===f||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===_||C.$$typeof===v||C.$$typeof===a||C.$$typeof===l||C.$$typeof===m||C.$$typeof===x||C.$$typeof===E||C.$$typeof===R||C.$$typeof===d)},ye.typeOf=A,ye}var ve={};/** @license React v16.13.1
38
38
  * react-is.development.js
39
39
  *
40
40
  * Copyright (c) Facebook, Inc. and its affiliates.
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var Uo;function Ys(){return Uo||(Uo=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,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,_=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=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(P){return typeof P=="string"||typeof P=="function"||P===r||P===u||P===i||P===o||P===d||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===_||P.$$typeof===a||P.$$typeof===l||P.$$typeof===m||P.$$typeof===x||P.$$typeof===E||P.$$typeof===T||P.$$typeof===f)}function j(P){if(typeof P=="object"&&P!==null){var _e=P.$$typeof;switch(_e){case t:var ae=P.type;switch(ae){case c:case u:case r:case i:case o:case d:return ae;default:var se=ae&&ae.$$typeof;switch(se){case l:case m:case b:case _:case a:return se;default:return _e}}case n:return _e}}}var C=c,z=u,y=l,w=a,S=t,A=m,N=r,H=b,V=_,ce=n,Y=i,ie=o,re=d,we=!1;function Pe(P){return we||(we=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(P)||j(P)===c}function R(P){return j(P)===u}function M(P){return j(P)===l}function Q(P){return j(P)===a}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function F(P){return j(P)===m}function ee(P){return j(P)===r}function Z(P){return j(P)===b}function K(P){return j(P)===_}function U(P){return j(P)===n}function G(P){return j(P)===i}function ne(P){return j(P)===o}function be(P){return j(P)===d}ve.AsyncMode=C,ve.ConcurrentMode=z,ve.ContextConsumer=y,ve.ContextProvider=w,ve.Element=S,ve.ForwardRef=A,ve.Fragment=N,ve.Lazy=H,ve.Memo=V,ve.Portal=ce,ve.Profiler=Y,ve.StrictMode=ie,ve.Suspense=re,ve.isAsyncMode=Pe,ve.isConcurrentMode=R,ve.isContextConsumer=M,ve.isContextProvider=Q,ve.isElement=q,ve.isForwardRef=F,ve.isFragment=ee,ve.isLazy=Z,ve.isMemo=K,ve.isPortal=U,ve.isProfiler=G,ve.isStrictMode=ne,ve.isSuspense=be,ve.isValidElementType=k,ve.typeOf=j}()),ve}var qo;function Ji(){return qo||(qo=1,process.env.NODE_ENV==="production"?Yn.exports=Hs():Yn.exports=Ys()),Yn.exports}/*
44
+ */var Uo;function Ys(){return Uo||(Uo=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,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function A($){return typeof $=="string"||typeof $=="function"||$===r||$===u||$===i||$===o||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===_||$.$$typeof===v||$.$$typeof===a||$.$$typeof===l||$.$$typeof===m||$.$$typeof===x||$.$$typeof===E||$.$$typeof===R||$.$$typeof===d)}function O($){if(typeof $=="object"&&$!==null){var _e=$.$$typeof;switch(_e){case t:var ae=$.type;switch(ae){case c:case u:case r:case i:case o:case f:return ae;default:var se=ae&&ae.$$typeof;switch(se){case l:case m:case _:case v:case a:return se;default:return _e}}case n:return _e}}}var C=c,F=u,y=l,T=a,S=t,P=m,N=r,H=_,V=v,ce=n,Y=i,ie=o,re=f,we=!1;function Pe($){return we||(we=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k($)||O($)===c}function k($){return O($)===u}function M($){return O($)===l}function Q($){return O($)===a}function q($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function B($){return O($)===m}function ee($){return O($)===r}function Z($){return O($)===_}function K($){return O($)===v}function U($){return O($)===n}function G($){return O($)===i}function ne($){return O($)===o}function be($){return O($)===f}ve.AsyncMode=C,ve.ConcurrentMode=F,ve.ContextConsumer=y,ve.ContextProvider=T,ve.Element=S,ve.ForwardRef=P,ve.Fragment=N,ve.Lazy=H,ve.Memo=V,ve.Portal=ce,ve.Profiler=Y,ve.StrictMode=ie,ve.Suspense=re,ve.isAsyncMode=Pe,ve.isConcurrentMode=k,ve.isContextConsumer=M,ve.isContextProvider=Q,ve.isElement=q,ve.isForwardRef=B,ve.isFragment=ee,ve.isLazy=Z,ve.isMemo=K,ve.isPortal=U,ve.isProfiler=G,ve.isStrictMode=ne,ve.isSuspense=be,ve.isValidElementType=A,ve.typeOf=O}()),ve}var qo;function Ji(){return qo||(qo=1,process.env.NODE_ENV==="production"?Yn.exports=Hs():Yn.exports=Ys()),Yn.exports}/*
45
45
  object-assign
46
46
  (c) Sindre Sorhus
47
47
  @license MIT
48
- */var Nr,Wo;function Ks(){if(Wo)return Nr;Wo=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={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(m){u[m]=m}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nr=o()?Object.assign:function(i,a){for(var l,c=r(i),u,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var d in l)t.call(l,d)&&(c[d]=l[d]);if(e){u=e(l);for(var p=0;p<u.length;p++)n.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},Nr}var Ir,Ho;function go(){if(Ho)return Ir;Ho=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ir=e,Ir}var Dr,Yo;function Xi(){return Yo||(Yo=1,Dr=Function.call.bind(Object.prototype.hasOwnProperty)),Dr}var Fr,Ko;function Zs(){if(Ko)return Fr;Ko=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=go(),n={},r=Xi();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var d;try{if(typeof i[m]!="function"){var p=Error((c||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=i[m](a,m,c,l,null,t)}catch(b){d=b}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var _=u?u():"";e("Failed "+l+" type: "+d.message+(_??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Fr=o,Fr}var Br,Zo;function Gs(){if(Zo)return Br;Zo=1;var e=Ji(),t=Ks(),n=go(),r=Xi(),o=Zs(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Br=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(R){var M=R&&(u&&R[u]||R[m]);if(typeof M=="function")return M}var p="<<anonymous>>",_={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:T(),arrayOf:k,element:j(),elementType:C(),instanceOf:z,node:A(),objectOf:w,oneOf:y,oneOfType:S,shape:H,exact:V};function b(R,M){return R===M?R!==0||1/R===1/M:R!==R&&M!==M}function f(R,M){this.message=R,this.data=M&&typeof M=="object"?M:{},this.stack=""}f.prototype=Error.prototype;function x(R){if(process.env.NODE_ENV!=="production")var M={},Q=0;function q(ee,Z,K,U,G,ne,be){if(U=U||p,ne=ne||K,be!==n){if(c){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _e=U+":"+K;!M[_e]&&Q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ne+"` 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."),M[_e]=!0,Q++)}}return Z[K]==null?ee?Z[K]===null?new f("The "+G+" `"+ne+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new f("The "+G+" `"+ne+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:R(Z,K,U,G,ne)}var F=q.bind(null,!1);return F.isRequired=q.bind(null,!0),F}function E(R){function M(Q,q,F,ee,Z,K){var U=Q[q],G=ie(U);if(G!==R){var ne=re(U);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+F+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return x(M)}function T(){return x(a)}function k(R){function M(Q,q,F,ee,Z){if(typeof R!="function")return new f("Property `"+Z+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var K=Q[q];if(!Array.isArray(K)){var U=ie(K);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected an array."))}for(var G=0;G<K.length;G++){var ne=R(K,G,F,ee,Z+"["+G+"]",n);if(ne instanceof Error)return ne}return null}return x(M)}function j(){function R(M,Q,q,F,ee){var Z=M[Q];if(!l(Z)){var K=ie(Z);return new f("Invalid "+F+" `"+ee+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return x(R)}function C(){function R(M,Q,q,F,ee){var Z=M[Q];if(!e.isValidElementType(Z)){var K=ie(Z);return new f("Invalid "+F+" `"+ee+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return x(R)}function z(R){function M(Q,q,F,ee,Z){if(!(Q[q]instanceof R)){var K=R.name||p,U=Pe(Q[q]);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected ")+("instance of `"+K+"`."))}return null}return x(M)}function y(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 M(Q,q,F,ee,Z){for(var K=Q[q],U=0;U<R.length;U++)if(b(K,R[U]))return null;var G=JSON.stringify(R,function(be,P){var _e=re(P);return _e==="symbol"?String(P):P});return new f("Invalid "+ee+" `"+Z+"` of value `"+String(K)+"` "+("supplied to `"+F+"`, expected one of "+G+"."))}return x(M)}function w(R){function M(Q,q,F,ee,Z){if(typeof R!="function")return new f("Property `"+Z+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected an object."));for(var G in K)if(r(K,G)){var ne=R(K,G,F,ee,Z+"."+G,n);if(ne instanceof Error)return ne}return null}return x(M)}function S(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 M=0;M<R.length;M++){var Q=R[M];if(typeof Q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+we(Q)+" at index "+M+"."),a}function q(F,ee,Z,K,U){for(var G=[],ne=0;ne<R.length;ne++){var be=R[ne],P=be(F,ee,Z,K,U,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&G.push(P.data.expectedType)}var _e=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new f("Invalid "+K+" `"+U+"` supplied to "+("`"+Z+"`"+_e+"."))}return x(q)}function A(){function R(M,Q,q,F,ee){return ce(M[Q])?null:new f("Invalid "+F+" `"+ee+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return x(R)}function N(R,M,Q,q,F){return new f((R||"React class")+": "+M+" type `"+Q+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function H(R){function M(Q,q,F,ee,Z){var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type `"+U+"` "+("supplied to `"+F+"`, expected `object`."));for(var G in R){var ne=R[G];if(typeof ne!="function")return N(F,ee,Z,G,re(ne));var be=ne(K,G,F,ee,Z+"."+G,n);if(be)return be}return null}return x(M)}function V(R){function M(Q,q,F,ee,Z){var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type `"+U+"` "+("supplied to `"+F+"`, expected `object`."));var G=t({},Q[q],R);for(var ne in G){var be=R[ne];if(r(R,ne)&&typeof be!="function")return N(F,ee,Z,ne,re(be));if(!be)return new f("Invalid "+ee+" `"+Z+"` key `"+ne+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(Q[q],null," ")+`
49
- Valid keys: `+JSON.stringify(Object.keys(R),null," "));var P=be(K,ne,F,ee,Z+"."+ne,n);if(P)return P}return null}return x(M)}function ce(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(ce);if(R===null||l(R))return!0;var M=d(R);if(M){var Q=M.call(R),q;if(M!==R.entries){for(;!(q=Q.next()).done;)if(!ce(q.value))return!1}else for(;!(q=Q.next()).done;){var F=q.value;if(F&&!ce(F[1]))return!1}}else return!1;return!0;default:return!1}}function Y(R,M){return R==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function ie(R){var M=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":Y(M,R)?"symbol":M}function re(R){if(typeof R>"u"||R===null)return""+R;var M=ie(R);if(M==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return M}function we(R){var M=re(R);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function Pe(R){return!R.constructor||!R.constructor.name?p:R.constructor.name}return _.checkPropTypes=o,_.resetWarningCache=o.resetWarningCache,_.PropTypes=_,_},Br}var zr,Go;function Js(){if(Go)return zr;Go=1;var e=go();function t(){}function n(){}return n.resetWarningCache=t,zr=function(){function r(a,l,c,u,m,d){if(d!==e){var p=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 p.name="Invariant Violation",p}}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},zr}var Jo;function Xs(){if(Jo)return Hn.exports;if(Jo=1,process.env.NODE_ENV!=="production"){var e=Ji(),t=!0;Hn.exports=Gs()(e.isElement,t)}else Hn.exports=Js()();return Hn.exports}var Qs=Xs();const s=Gi(Qs),Qi=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isBeingProcessed:i,isActive:a,activeColor:l,fontColor:c,moreInfo:u})=>{const{name:m,date:d,id:p}=e;return h.jsxs("div",{className:xn.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[h.jsxs("div",{className:xn.ambitNameDate,onClick:()=>o(p),children:[h.jsxs("div",{className:xn.ambitName,children:[h.jsx("img",{src:a?qs:Ws}),h.jsx("span",{style:{color:a?l:c},children:m})]}),h.jsx("div",{className:xn.ambitDate,children:new Date(d).toLocaleDateString()})]}),h.jsxs("div",{className:xn.ambitButtons,children:[i&&h.jsx("img",{src:zo}),h.jsx("button",{onClick:()=>r(p),children:h.jsx("img",{src:zo})}),h.jsx("button",{onClick:()=>t(p),children:h.jsx("img",{src:Us})}),h.jsx("button",{onClick:()=>n(p),children:h.jsx("img",{src:Vs})})]})]})};Qi.propTypes={ambit:s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired}).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 el="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",ea=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,onClickCopy:a=m=>console.log(`Copy ambit: ${m}`),onCLickDelete:l=m=>console.log(`Delete ambit: ${m}`),onClickFilters:c=m=>console.log(`Filters clicked: ${m}`),onClickAmbit:u=m=>console.log(`OnCLickAmbit: ${m}`)})=>{const{t:m}=Oe.useTranslation();return h.jsxs("div",{className:Yt.ambitSelector,style:{color:n},children:[h.jsxs("div",{className:Yt.header,style:{borderBottom:`1px solid ${n}`},children:[h.jsxs("div",{className:Yt.nameDateContainer,children:[h.jsx("div",{className:Yt.ambitName,children:h.jsx("span",{children:m(o)})}),h.jsx("div",{className:Yt.ambitDate,children:h.jsx("span",{children:m(i)})})]}),h.jsx("div",{className:Yt.buttonsContainer})]}),e&&e.length>0&&e.map(d=>h.jsx(Qi,{isActive:t==d.id,ambit:d,fontColor:n,activeColor:r,onClickCopy:a,onClickDelete:l,onClickFilters:c,onClickAmbit:u},`ambitKey${d.id}`))]})};ea.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};const tl="_buttonsContainer_1audx_2",nl="_vertical_1audx_6",rl="_horizontal_1audx_9",ol="_button_1audx_2",il="_active_1audx_25",al="_buttonName_1audx_28",jt={buttonsContainer:tl,vertical:nl,horizontal:rl,button:ol,active:il,buttonName:al},sl="_left_19lnt_3",ll="_top_19lnt_33",cl="_bottom_19lnt_66",ul="_right_19lnt_97",dl={left:sl,top:ll,bottom:cl,right:ul},yo=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=Oe.useTranslation();return h.jsx("div",{className:`tooltip ${dl[t]}`,style:n,children:r(e)})};yo.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const ta=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=Oe.useTranslation();return h.jsx("div",{className:`${jt.buttonsContainer} ${t==="vertical"&&jt.vertical}
50
- ${t==="horizontal"&&jt.horizontal}`,children:e.map((l,c)=>{const{icon:u,activeIcon:m,isActive:d,name:p,onClick:_}=l,b=h.jsxs(h.Fragment,{children:[n&&r==="left"&&h.jsx("span",{className:jt.buttonName,children:a(p)}),h.jsx("img",{src:d?m:u,alt:a(p)}),n&&r==="right"&&h.jsx("span",{className:jt.buttonName,children:a(p)})]});return h.jsxs("div",{className:"tooltip-parent",children:[h.jsx("button",{onClick:_,className:`${jt.button}
51
- ${d&&jt.active}`,children:b}),o&&h.jsx(yo,{text:p,position:i})]},c)})})};ta.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func})).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 fl="_indicatorsCategory_1cu33_2",ml="_title_1cu33_5",pl="_list_1cu33_11",Vr={indicatorsCategory:fl,title:ml,list:pl},Ot=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:m}=Oe.useTranslation();return h.jsxs(ho.motion.div,{className:Vr.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&c?`1px solid ${o}`:"0px",marginBottom:e?"20px":"0px"},children:[h.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Vr.title}`,onClick:t,children:[h.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:e?o:r},children:m(i)})]}),h.jsx("div",{className:Vr.content,children:n})]})};Ot.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 hl=()=>h.jsx("div",{children:"EditAmbit"}),gl="_AppliedFiltersContainer_s8ooe_2",yl="_AppliedFilterContent_s8ooe_10",Xo={AppliedFiltersContainer:gl,AppliedFilterContent:yl},Ve=Es.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),na=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=Oe.useTranslation(),{tematicalFiltersSelected:a}=Ve(c=>c),l=c=>{Ve.setState(u=>({tematicalFiltersSelected:u.tematicalFiltersSelected.filter(m=>m.code!==c)}))};return h.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Applied Filters",children:h.jsx("div",{className:Xo.AppliedFiltersContainer,children:a==null?void 0:a.map((c,u)=>h.jsxs("div",{className:Xo.AppliedFilterContent,style:{color:r,background:o},children:[c.code,h.jsx("img",{src:el,alt:"CloseIcon",onClick:()=>l(c.code),style:{cursor:"pointer"}})]},u))})})};na.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}))};const ra=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=Oe.useTranslation();return Ve(a=>a),h.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Geographical Filters",children:"A"})};ra.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string};const vl=[{category:"Arq",name:"indicators.arq",haveFilters:!0,escenariFilters:!0,subcategories:[{subcategory:"subcPrinc",name:"indicators.arq_princ",indicators:[{ikey:0,name:"indicators.us_prn.title",code:["us_prn"],type:"cat",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",values:[{fillColor:"#FEB740",codename:["Residencial","VincViv"],title:"indicators.us_prn.Residencial"},{fillColor:"#033364",codename:["Público"],title:"indicators.us_prn.Public"},{fillColor:"#5190cb",codename:["EnseñanzaCultural"],title:"indicators.us_prn.EnsenyamentCultural"},{fillColor:"#18ae9a",codename:["Deportivo","Piscinas"],title:"indicators.us_prn.Esportiu"},{fillColor:"#850d15",codename:["Comercial"],title:"indicators.us_prn.Comercial"},{fillColor:"#ee2e39",codename:["HoteleroRestauración"],title:"indicators.us_prn.HotelerRestauracio"},{fillColor:"#ed602e",codename:["Oficinas"],title:"indicators.us_prn.Oficines"},{fillColor:"#843059",codename:["Almacenaje"],title:"indicators.us_prn.Emmagatzematge"},{fillColor:"#CB719D",codename:["Industrial","IndustrialResto"],title:"indicators.us_prn.Industrial"},{fillColor:"#7f7f7f",codename:["Aparcamiento"],title:"indicators.us_prn.Aparcament"},{fillColor:"#dadae3",codename:["OtrosCal","OtrosNoCal","Común","Sin datos","","None","null","undefined"," ","NoCodificado"],title:"indicators.us_prn.None"}],time:!1},{ikey:1,name:"indicators.al_max.title",code:["al_max","al_max_cat"],codeAbs:"al_max",codeCat:"al_max_cat",type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#00544a",midColor:"#00ae9a",minColor:"#00ffe1",minValue:-1,maxValue:14,minValueIndicador:"indicators.al_max.minValueIndicador",maxValueIndicador:"indicators.al_max.maxValueIndicador",unit:"indicators.al_max.unit",values:[{fillColor:"#00544a",codename:["De PB+3 o mes"],title:"indicators.al_max.PB+3"},{fillColor:"#00ae9a",codename:["De PB a PB+2"],title:"indicators.al_max.PB"},{fillColor:"#00ffe1",codename:["De P-1 en avall"],title:"indicators.al_max.De P-1"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.al_max.None"}],time:!1},{ikey:2,name:"indicators.uni_pluri.title",code:["uni_pluri"],type:"cat",category:"Arq",values:[{fillColor:"#BA1C27",codename:["Bloque"],title:"indicators.uni_pluri.Bloc"},{fillColor:"#FEB740",codename:["Colectiva"],title:"indicators.uni_pluri.Colectiva"},{fillColor:"#508FCC",codename:["Unifamiliar"],title:"indicators.uni_pluri.Unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.uni_pluri.None"}],time:!1},{ikey:3,name:"indicators.any_const.title",code:["any_const","any_const_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#D2DBE4",midColor:"#7E98B2",minColor:"#003366",minValue:1900,maxValue:2020,minValueIndicador:"indicators.any_const.minValueIndicador",maxValueIndicador:"indicators.any_const.maxValueIndicador",unit:"indicators.any_const.Unit",values:[{fillColor:"#D2DBE4 ",codename:["De 2008 a 2020"],title:"indicators.any_const.2008Adelante"},{fillColor:"#A8BACB",codename:["De 1981 a 2007"],title:"indicators.any_const.1981-2007"},{fillColor:"#7E98B2",codename:["De 1961 a 1980"],title:"indicators.any_const.1961-1980"},{fillColor:"#547699",codename:["De 1941 a 1960"],title:"indicators.any_const.1941-1960"},{fillColor:"#2A557F",codename:["De 1901 a 1940"],title:"indicators.any_const.1901-1940"},{fillColor:"#003366",codename:["Hasta 1900"],title:"indicators.any_const.hasta-1900"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.any_const.None"}],time:!1},{ikey:4,name:"indicators.num_viv.title",code:["num_viv","num_viv_cat"],type:"abs",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_02",maxColor:"#684A1A",midColor:"#AF7F2C",minColor:"#FEB740",minValue:1,maxValue:40,minValueIndicador:"indicators.num_viv.minValueIndicador",maxValueIndicador:"indicators.num_viv.maxValueIndicador",unit:"indicators.num_viv.unit",time:!1,values:[{fillColor:"#684A1A",codename:["40 o más viviendas"],title:"indicators.num_viv.40+"},{fillColor:"#8A6423",codename:["De 20 a 39 viviendas"],title:"indicators.num_viv.20-39"},{fillColor:"#AF7F2C",codename:["De 10 a 19 viviendas"],title:"indicators.num_viv.10-19"},{fillColor:"#D69A36",codename:["De 5 a 9 viviendas"],title:"indicators.num_viv.5-9"},{fillColor:"#FEB740",codename:["De 2 a 4 viviendas"],title:"indicators.num_viv.2-4"},{fillColor:"#3e77b2",codename:["Unifamiliar"],title:"indicators.num_viv.unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," ","No residencial"],title:"indicators.num_viv.none"}]},{ikey:5,name:"indicators.cluster.title",code:["nom_cluster"],type:"cat",category_ods:"ODS_07",category_aue:"AUE_01",category:"Arq",values:[{fillColor:"#022952",codename:["A"],title:"indicators.cluster.A"},{fillColor:"#033364",codename:["B"],title:"indicators.cluster.B"},{fillColor:"#2A6298",codename:["C"],title:"indicators.cluster.C"},{fillColor:"#5190CB",codename:["D"],title:"indicators.cluster.D"},{fillColor:"#6CA2D4",codename:["E"],title:"indicators.cluster.E"},{fillColor:"#79ABD8",codename:["F"],title:"indicators.cluster.F"},{fillColor:"#605225",codename:["G"],title:"indicators.cluster.G"},{fillColor:"#7B692F",codename:["H"],title:"indicators.cluster.H"},{fillColor:"#BD9037",codename:["I"],title:"indicators.cluster.I"},{fillColor:"#FEB63E",codename:["J"],title:"indicators.cluster.J"},{fillColor:"#FECC7A",codename:["K"],title:"indicators.cluster.K"},{fillColor:"#FED798",codename:["L"],title:"indicators.cluster.L"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.cluster.none"}],time:!1}]},{subcategory:"subcPrinc22",name:"indicators.arq_princ22",indicators:[{ikey:0,name:"indicators.us_prn.title",code:["us_prn"],type:"cat",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",values:[{fillColor:"#FEB740",codename:["Residencial","VincViv"],title:"indicators.us_prn.Residencial"},{fillColor:"#033364",codename:["Público"],title:"indicators.us_prn.Public"},{fillColor:"#5190cb",codename:["EnseñanzaCultural"],title:"indicators.us_prn.EnsenyamentCultural"},{fillColor:"#18ae9a",codename:["Deportivo","Piscinas"],title:"indicators.us_prn.Esportiu"},{fillColor:"#850d15",codename:["Comercial"],title:"indicators.us_prn.Comercial"},{fillColor:"#ee2e39",codename:["HoteleroRestauración"],title:"indicators.us_prn.HotelerRestauracio"},{fillColor:"#ed602e",codename:["Oficinas"],title:"indicators.us_prn.Oficines"},{fillColor:"#843059",codename:["Almacenaje"],title:"indicators.us_prn.Emmagatzematge"},{fillColor:"#CB719D",codename:["Industrial","IndustrialResto"],title:"indicators.us_prn.Industrial"},{fillColor:"#7f7f7f",codename:["Aparcamiento"],title:"indicators.us_prn.Aparcament"},{fillColor:"#dadae3",codename:["OtrosCal","OtrosNoCal","Común","Sin datos","","None","null","undefined"," ","NoCodificado"],title:"indicators.us_prn.None"}],time:!1},{ikey:1,name:"indicators.al_max.title",code:["al_max","al_max_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#00544a",midColor:"#00ae9a",minColor:"#00ffe1",minValue:-1,maxValue:14,minValueIndicador:"indicators.al_max.minValueIndicador",maxValueIndicador:"indicators.al_max.maxValueIndicador",unit:"indicators.al_max.unit",values:[{fillColor:"#00544a",codename:["De PB+3 o mes"],title:"indicators.al_max.PB+3"},{fillColor:"#00ae9a",codename:["De PB a PB+2"],title:"indicators.al_max.PB"},{fillColor:"#00ffe1",codename:["De P-1 en avall"],title:"indicators.al_max.De P-1"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.al_max.None"}],time:!1},{ikey:2,name:"indicators.uni_pluri.title",code:["uni_pluri"],type:"cat",category:"Arq",values:[{fillColor:"#BA1C27",codename:["Bloque"],title:"indicators.uni_pluri.Bloc"},{fillColor:"#FEB740",codename:["Colectiva"],title:"indicators.uni_pluri.Colectiva"},{fillColor:"#508FCC",codename:["Unifamiliar"],title:"indicators.uni_pluri.Unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.uni_pluri.None"}],time:!1},{ikey:3,name:"indicators.any_const.title",code:["any_const","any_const_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#D2DBE4",midColor:"#7E98B2",minColor:"#003366",minValue:1900,maxValue:2020,minValueIndicador:"indicators.any_const.minValueIndicador",maxValueIndicador:"indicators.any_const.maxValueIndicador",unit:"indicators.any_const.Unit",values:[{fillColor:"#D2DBE4 ",codename:["De 2008 a 2020"],title:"indicators.any_const.2008Adelante"},{fillColor:"#A8BACB",codename:["De 1981 a 2007"],title:"indicators.any_const.1981-2007"},{fillColor:"#7E98B2",codename:["De 1961 a 1980"],title:"indicators.any_const.1961-1980"},{fillColor:"#547699",codename:["De 1941 a 1960"],title:"indicators.any_const.1941-1960"},{fillColor:"#2A557F",codename:["De 1901 a 1940"],title:"indicators.any_const.1901-1940"},{fillColor:"#003366",codename:["Hasta 1900"],title:"indicators.any_const.hasta-1900"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.any_const.None"}],time:!1},{ikey:4,name:"indicators.num_viv.title",code:["num_viv","num_viv_cat"],type:"abs",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_02",maxColor:"#684A1A",midColor:"#AF7F2C",minColor:"#FEB740",minValue:1,maxValue:40,minValueIndicador:"indicators.num_viv.minValueIndicador",maxValueIndicador:"indicators.num_viv.maxValueIndicador",unit:"indicators.num_viv.unit",time:!1,values:[{fillColor:"#684A1A",codename:["40 o más viviendas"],title:"indicators.num_viv.40+"},{fillColor:"#8A6423",codename:["De 20 a 39 viviendas"],title:"indicators.num_viv.20-39"},{fillColor:"#AF7F2C",codename:["De 10 a 19 viviendas"],title:"indicators.num_viv.10-19"},{fillColor:"#D69A36",codename:["De 5 a 9 viviendas"],title:"indicators.num_viv.5-9"},{fillColor:"#FEB740",codename:["De 2 a 4 viviendas"],title:"indicators.num_viv.2-4"},{fillColor:"#3e77b2",codename:["Unifamiliar"],title:"indicators.num_viv.unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," ","No residencial"],title:"indicators.num_viv.none"}]},{ikey:5,name:"indicators.cluster.title",code:["nom_cluster"],type:"cat",category_ods:"ODS_07",category_aue:"AUE_01",category:"Arq",values:[{fillColor:"#022952",codename:["A"],title:"indicators.cluster.A"},{fillColor:"#033364",codename:["B"],title:"indicators.cluster.B"},{fillColor:"#2A6298",codename:["C"],title:"indicators.cluster.C"},{fillColor:"#5190CB",codename:["D"],title:"indicators.cluster.D"},{fillColor:"#6CA2D4",codename:["E"],title:"indicators.cluster.E"},{fillColor:"#79ABD8",codename:["F"],title:"indicators.cluster.F"},{fillColor:"#605225",codename:["G"],title:"indicators.cluster.G"},{fillColor:"#7B692F",codename:["H"],title:"indicators.cluster.H"},{fillColor:"#BD9037",codename:["I"],title:"indicators.cluster.I"},{fillColor:"#FEB63E",codename:["J"],title:"indicators.cluster.J"},{fillColor:"#FECC7A",codename:["K"],title:"indicators.cluster.K"},{fillColor:"#FED798",codename:["L"],title:"indicators.cluster.L"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.cluster.none"}],time:!1}]}]},{category:"Ene",name:"indicators.ene",haveFilters:!0,escenariFilters:!0,indicators:[{ikey:6,name:"indicators.cal.title",code:["demanda_cal_m2"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",maxColor:"#EE2C3C",midColor:"#FDB740",minColor:"#00544A",minValue:1,maxValue:120,minValueIndicador:"indicators.cal.minValueIndicador",maxValueIndicador:"indicators.cal.maxValueIndicador",unit:"indicators.cal.unit",time:!0,values:[{fillColor:"#00544A",codename:["Menos de 20 kWh/m2"],title:"indicators.demanda_cal_m2.<20"},{fillColor:"#386A48",codename:["Entre 20 y 40 kWh/m2"],title:"indicators.demanda_cal_m2.20-40"},{fillColor:"#708046",codename:["Entre 40 y 60 kWh/m2"],title:"indicators.demanda_cal_m2.40-60"},{fillColor:"#A99643",codename:["Entre 60 y 80 kWh/m2"],title:"indicators.demanda_cal_m2.60-80"},{fillColor:"#E1AC41",codename:["Entre 80 y 100 kWh/m2"],title:"indicators.demanda_cal_m2.80-100"},{fillColor:"#FBA840",codename:["Entre 100 y 120 kWh/m2"],title:"indicators.demanda_cal_m2.100-120"},{fillColor:"#F8893F",codename:["Entre 120 y 140 kWh/m2"],title:"indicators.demanda_cal_m2.120-140"},{fillColor:"#F56A3E",codename:["Entre 140 y 160 kWh/m2"],title:"indicators.demanda_cal_m2.140-160"},{fillColor:"#F14B3D",codename:["Entre 160 y 180 kWh/m2"],title:"indicators.demanda_cal_m2.160-180"},{fillColor:"#EE2C3C",codename:["Más de 180 kWh/m2"],title:"indicators.demanda_cal_m2.>180"}]},{ikey:7,name:"indicators.cal_post.title",code:["demanda_post_m2"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",minColor:"#00544A",midColor:"#FDB740",maxColor:"#EE2C3C",minValue:10,maxValue:150,minValueIndicador:"indicators.cal_post.minValueIndicador",maxValueIndicador:"indicators.cal_post.maxValueIndicador",unit:"indicators.cal_post.unit",time:!1,values:[{fillColor:"#00544A",codename:["Menos de 20 kWh/m2"],title:"indicators.demanda_cal_m2.<20"},{fillColor:"#386A48",codename:["Entre 20 y 40 kWh/m2"],title:"indicators.demanda_cal_m2.20-40"},{fillColor:"#708046",codename:["Entre 40 y 60 kWh/m2"],title:"indicators.demanda_cal_m2.40-60"},{fillColor:"#A99643",codename:["Entre 60 y 80 kWh/m2"],title:"indicators.demanda_cal_m2.60-80"},{fillColor:"#E1AC41",codename:["Entre 80 y 100 kWh/m2"],title:"indicators.demanda_cal_m2.80-100"},{fillColor:"#FBA840",codename:["Entre 100 y 120 kWh/m2"],title:"indicators.demanda_cal_m2.100-120"},{fillColor:"#F8893F",codename:["Entre 120 y 140 kWh/m2"],title:"indicators.demanda_cal_m2.120-140"},{fillColor:"#F56A3E",codename:["Entre 140 y 160 kWh/m2"],title:"indicators.demanda_cal_m2.140-160"},{fillColor:"#F14B3D",codename:["Entre 160 y 180 kWh/m2"],title:"indicators.demanda_cal_m2.160-180"},{fillColor:"#EE2C3C",codename:["Más de 180 kWh/m2"],title:"indicators.demanda_cal_m2.>180"}]},{ikey:8,name:"indicators.qual_cal.title",code:["qual"],type:"cat",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",values:[{fillColor:"#306f35",codename:["A"],title:"indicators.qual_cal.A"},{fillColor:"#4aa038",codename:["B"],title:"indicators.qual_cal.B"},{fillColor:"#a7c52b",codename:["C"],title:"indicators.qual_cal.C"},{fillColor:"#efe737",codename:["D"],title:"indicators.qual_cal.D"},{fillColor:"#feb63e",codename:["E"],title:"indicators.qual_cal.E"},{fillColor:"#f35d3e",codename:["F"],title:"indicators.qual_cal.F"},{fillColor:"#cb2f45",codename:["G"],title:"indicators.qual_cal.G"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.qual_cal.none"}],time:!0},{ikey:9,name:"indicators.qual_cal_post.title",code:["qual_post"],type:"cat",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",values:[{fillColor:"#306f35",codename:["A"],title:"indicators.qual_cal.A"},{fillColor:"#4aa038",codename:["B"],title:"indicators.qual_cal.B"},{fillColor:"#a7c52b",codename:["C"],title:"indicators.qual_cal.C"},{fillColor:"#efe737",codename:["D"],title:"indicators.qual_cal.D"},{fillColor:"#feb63e",codename:["E"],title:"indicators.qual_cal.E"},{fillColor:"#f35d3e",codename:["F"],title:"indicators.qual_cal.F"},{fillColor:"#cb2f45",codename:["G"],title:"indicators.qual_cal.G"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.qual_cal.none"}],time:!1},{ikey:10,name:"indicators.reduccio_demanda.title",code:["reduccio_demanda"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",maxColor:"#00544A",midColor:"#FDB740",minColor:"#EE2C3C",minValue:0,maxValue:100,minValueIndicador:"indicators.cal.minValueIndicador",maxValueIndicador:"indicators.cal.maxValueIndicador",unit:"indicators.reduccio_demanda.unit",time:!0,values:[{fillColor:"#00544A",codename:["Entre 90 y 100 %"],title:"indicators.reduccio_demanda.100"},{fillColor:"#386A48",codename:["Entre 80 y 90 %"],title:"indicators.reduccio_demanda.90"},{fillColor:"#708046",codename:["Entre 70 y 80 %"],title:"indicators.reduccio_demanda.80"},{fillColor:"#A99643",codename:["Entre 60 y 70 %"],title:"indicators.reduccio_demanda.70"},{fillColor:"#E1AC41",codename:["Entre 50 y 60 %"],title:"indicators.reduccio_demanda.60"},{fillColor:"#FBA840",codename:["Entre 40 y 50 %"],title:"indicators.reduccio_demanda.50"},{fillColor:"#F8893F",codename:["Entre 30 y 40 %"],title:"indicators.reduccio_demanda.40"},{fillColor:"#F56A3E",codename:["Entre 20 y 30 %"],title:"indicators.reduccio_demanda.30"},{fillColor:"#F14B3D",codename:["Entre 10 y 20 %"],title:"indicators.reduccio_demanda.20"},{fillColor:"#EE2C3C",codename:["Menos de 10 %"],title:"indicators.reduccio_demanda.10"}]}]},{category:"Eco",name:"indicators.eco",haveFilters:!0,escenariFilters:!1,indicators:[{ikey:11,name:"indicators.cost_int.title",code:["cost_int"],type:"twoUnits",category:"Eco",category_ods:"ODS_11",category_aue:"AUE_02",maxColor:"#EE2C3C",midColor:"#FDB740",minColor:"#003366",values:[{unit:"€/m2",minValue:100,maxValue:900,minValueIndicador:"indicators.cost_int_m2.minValueIndicador",maxValueIndicador:"indicators.cost_int_m2.maxValueIndicador",codename:"cost_int_m2",title:"indicators.cost_int.cost_int_m2"},{unit:"€/Vivienda",minValue:1e4,maxValue:18e3,minValueIndicador:"indicators.cost_int_hab.minValueIndicador",maxValueIndicador:"indicators.cost_int_hab.maxValueIndicador",codename:"cost_int_hab",title:"indicators.cost_int.cost_int_hab"}],time:!1,cats_hab:[{fillColor:"#003366",codename:["Menos de 10.000 €/viv"],title:"indicators.cost_int.<10"},{fillColor:"#38505E",codename:["Entre 10.000 y 11.000 €/viv"],title:"indicators.cost_int.10-11"},{fillColor:"#706E55",codename:["Entre 11.000 y 12.000 €/viv"],title:"indicators.cost_int.11-12"},{fillColor:"#A98B4D",codename:["Entre 12.000 y 13.000 €/viv"],title:"indicators.cost_int.12-13"},{fillColor:"#E1A844",codename:["Entre 13.000 y 14.000 €/viv"],title:"indicators.cost_int.13-14"},{fillColor:"#FBA840",codename:["Entre 14.000 y 15.000 €/viv"],title:"indicators.cost_int.14-15"},{fillColor:"#F8893F",codename:["Entre 15.000 y 16.000 €/viv"],title:"indicators.cost_int.15-16"},{fillColor:"#F56A3E",codename:["Entre 16.000 y 17.000 €/viv"],title:"indicators.cost_int.16-17"},{fillColor:"#F14B3D",codename:["Entre 17.000 y 18.000 €/viv"],title:"indicators.cost_int.17-18"},{fillColor:"#EE2C3C",codename:["Más de 18.000 €/viv"],title:"indicators.cost_int.>18"}],cats_m2:[{fillColor:"#003366",codename:["Menos de 100 €/m2·viv"],title:"indicators.cost_int.<100"},{fillColor:"#38505E",codename:["Entre 100 y 200 €/m2·viv"],title:"indicators.cost_int.100-200"},{fillColor:"#706E55",codename:["Entre 200 y 300 €/m2·viv"],title:"indicators.cost_int.200-300"},{fillColor:"#A98B4D",codename:["Entre 300 y 400 €/m2·viv"],title:"indicators.cost_int.300-400"},{fillColor:"#E1A844",codename:["Entre 400 y 500 €/m2·viv"],title:"indicators.cost_int.400-500"},{fillColor:"#FBA840",codename:["Entre 500 y 600 €/m2·viv"],title:"indicators.cost_int.500-600"},{fillColor:"#F8893F",codename:["Entre 600 y 700 €/m2·viv"],title:"indicators.cost_int.600-700"},{fillColor:"#F56A3E",codename:["Entre 700 y 800 €/m2·viv"],title:"indicators.cost_int.700-800"},{fillColor:"#F14B3D",codename:["Entre 800 y 900 €/m2·viv"],title:"indicators.cost_int.800-900"},{fillColor:"#EE2C3C",codename:["Más de 900 €/m2·viv"],title:"indicators.cost_int.>900"}]}]},{category:"Int",name:"indicators.int",haveFilters:!1,escenariFilters:!1,indicators:[{ikey:12,name:"indicators.int_FP.title",code:["FP"],type:"cat",category:"Int",values:[{fillColor:"#89a301",codename:[1],title:"indicators.intYear"},{fillColor:"#D0D79D",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:13,name:"indicators.int_VFP.title",code:["VFP"],type:"cat",category:"Int",values:[{fillColor:"#006e51",codename:[1],title:"indicators.intYear"},{fillColor:"#9CBFB0",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:14,name:"indicators.int_P.title",code:["P"],type:"cat",category:"Int",values:[{fillColor:"#9d4823",codename:[1],title:"indicators.intYear"},{fillColor:"#DCAE9B",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:15,name:"indicators.int_ME.title",code:["ME"],type:"cat",category:"Int",values:[{fillColor:"#1D7DAD",codename:[1],title:"indicators.intYear"},{fillColor:"#ABC5DC",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:16,name:"indicators.int_S.title",code:["S"],type:"cat",category:"Int",values:[{fillColor:"#3ba5a5",codename:[1],title:"indicators.intYear"},{fillColor:"#B2D8D8",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:17,name:"indicators.int_C.title",code:["C"],type:"cat",category:"Int",values:[{fillColor:"#ad6e5c",codename:[1],title:"indicators.intYear"},{fillColor:"#DFBFB6",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:18,name:"indicators.check_meps.title",code:["check_meps"],type:"cat",category:"Int",values:[{fillColor:"#00ae9a",codename:[1],title:"indicators.check_meps.yes"},{fillColor:"#dadae3",codename:[0],title:"indicators.check_meps.no"}],time:!0}]}],bl="_checkboxContainer_zld97_2",_l={checkboxContainer:bl},oa=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=Oe.useTranslation(),{title:a}=r||{},{fontColor:l,inputsColor:c}=Ve(u=>u);return h.jsxs("div",{style:{...t,color:n},role:"checkbox",className:_l.checkboxContainer,onClick:e,children:[h.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?c:l}`,backgroundColor:o?c:"white"}}),h.jsx("span",{className:"checkmark",children:i(a)})]})};oa.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 ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ro(e,t)}function Cl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ro(e,t)}function Ur(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function qr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Kn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Zn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Mt(e,t){return oo(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function oo(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 io=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=l=>{l.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=l=>{o.setState({pending:!0});const c=o.getMousePosition(l),u=o.getDiffPosition(c[0]),m=o.getValueFromPosition(u);o.move(m)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});const c=o.getTouchPosition(l);if(o.isScrolling===void 0){const d=c[0]-o.startPosition[0],p=c[1]-o.startPosition[1];o.isScrolling=Math.abs(p)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});const u=o.getDiffPosition(c[0]),m=o.getValueFromPosition(u);o.move(m)},o.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(o.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),o.moveUpByStep();break;case"Home":l.preventDefault(),o.move(o.props.min);break;case"End":l.preventDefault(),o.move(o.props.max);break;case"PageDown":l.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":l.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=l=>{if(!o.props.disabled&&l.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const c=o.getMousePosition(l);o.forceValueFromPosition(c[0],u=>{o.start(u,c[0]),Zn(o.getMouseEventMap())})}Ur(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const c=o.getMousePosition(l),u=Mt(o.calcValue(o.calcOffsetFromPosition(c[0])),o.props);o.props.onSliderClick(u)}},o.createOnKeyDown=l=>c=>{o.props.disabled||(o.start(l),Zn(o.getKeyDownEventMap()),Ur(c))},o.createOnMouseDown=l=>c=>{if(o.props.disabled||c.button===2)return;o.setState({pending:!0});const u=o.getMousePosition(c);o.start(l,u[0]),Zn(o.getMouseEventMap()),Ur(c)},o.createOnTouchStart=l=>c=>{if(o.props.disabled||c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);o.startPosition=u,o.isScrolling=void 0,o.start(l,u[0]),Zn(o.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(c)},o.handleResize=()=>{const l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,c)=>{const u=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+c+" "+(o.state.index===c?o.props.thumbActiveClassName:""),m={ref:p=>{o["thumb"+c]=p},key:o.props.thumbClassName+"-"+c,className:u,style:l,onMouseDown:o.createOnMouseDown(c),onTouchStart:o.createOnTouchStart(c),onFocus:o.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[c],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[c]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[c]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:c,value:Kn(o.state.value),valueNow:o.state.value[c]};return o.props.ariaValuetext&&(m["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(m,d)},o.renderTrack=(l,c,u)=>{const m={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(c,o.state.upperBound-u)},d={index:l,value:Kn(o.state.value)};return o.props.renderTrack(m,d)};let i=qr(r.value);i.length||(i=qr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let l=0;l<i.length;l+=1)i[l]=Mt(i[l],r),a.push(l);return o.resizeObserver=null,o.resizeElementRef=v.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}Cl(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=qr(r.value);return i.length?o.pending?null:{value:i.map(a=>Mt(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 Kn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,l=a.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(a[c]),m=Math.abs(r-u);m<o&&(o=m,i=c)}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 Mt(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(),l=r[i],c=a[this.posMaxKey()],u=a[this.posMinKey()],m=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],d=l-m,p=Math.abs(c-u);this.state.upperBound===d&&this.state.sliderLength===p&&this.state.thumbSize===m||this.setState({upperBound:d,sliderLength:p,thumbSize:m})},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()],l=i[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),l=Mt(this.calcValue(i),this.props),c=this.state.value.slice();c[a]=l;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{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(l=>({startValue:l.value[r],startPosition:o!==void 0?o:l.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=Mt(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=Mt(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,l=o[i];if(r===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:m,minDistance:d}=this.props;if(!c){if(i>0){const p=o[i-1];r<p+d&&(r=p+d)}if(i<a-1){const p=o[i+1];r>p-d&&(r=p-d)}}o[i]=r,c&&a>1&&(r>l?(this.pushSucceeding(o,d,i),function(p,_,b,f){for(let x=0;x<p;x+=1){const E=f-x*b;_[p-1-x]>E&&(_[p-1-x]=E)}}(a,o,d,u)):r<l&&(this.pushPreceding(o,d,i),function(p,_,b,f){for(let x=0;x<p;x+=1){const E=f+x*b;_[x]<E&&(_[x]=E)}}(a,o,d,m))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,l;for(a=i,l=r[a]+o;r[a+1]!==null&&l>r[a+1];a+=1,l=r[a]+o)r[a+1]=oo(l,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,l=r[a]-o;r[a-1]!==null&&l<r[a-1];a-=1,l=r[a]-o)r[a-1]=oo(l,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](Kn(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 l=0;l<o;l+=1)i[l]=this.buildThumbStyle(r[l],l);const a=[];for(let l=0;l<o;l+=1)a[l]=this.renderThumb(i[l],l);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),l={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(l)})},n.render=function(){const r=[],{value:o}=this.state,i=o.length;for(let u=0;u<i;u+=1)r[u]=this.calcOffset(o[u],u);const a=this.props.withTracks?this.renderTracks(r):null,l=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return v.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,l,c)},t}(v.Component);io.displayName="ReactSlider",io.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=>v.createElement("div",e),renderTrack:e=>v.createElement("div",e),renderMark:e=>v.createElement("span",e)};var xl=io;const El="_container_15vgv_2",Sl="_unitLabel_15vgv_9",Tl="_slider_15vgv_12",wl="_thumb_15vgv_18",kl="_track_15vgv_27",Ol="_labels_15vgv_33",Kt={container:El,unitLabel:Sl,slider:Tl,thumb:wl,track:kl,labels:Ol},ia=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",value:l=[e,t]})=>{const{t:c}=Oe.useTranslation(),u=m=>{r==null||r({min:m[0],max:m[1]})};return h.jsxs("div",{className:Kt.container,style:{width:`${o}px`,color:`${a}`},children:[h.jsx("div",{className:Kt.unitLabel,children:h.jsx("span",{children:c(i)})}),h.jsx(xl,{className:Kt.slider,thumbClassName:Kt.thumb,trackClassName:Kt.track,min:e,max:t,step:n,value:l,onChange:u,withTracks:!0,pearling:!0,minDistance:1}),h.jsxs("div",{className:Kt.labels,children:[h.jsx("span",{children:l[0]}),h.jsx("span",{children:l[1]})]})]})};ia.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 Rl="_tematicalFiltersInputContainer_1vm1r_2",Al="_inputTypeContainer_1vm1r_2",Pl="_checkboxContainer_1vm1r_28",$l="_absoluteSliderContainer_1vm1r_37",Gn={tematicalFiltersInputContainer:Rl,inputTypeContainer:Al,checkboxContainer:Pl,absoluteSliderContainer:$l},vo=({indicator:e})=>{const[t,n]=v.useState(),{type:r,name:o,values:i,minValue:a,maxValue:l,unit:c}=e||{},u=v.useMemo(()=>r=="cat"||t=="cat",[t,r]),m=v.useMemo(()=>r=="abs"||t=="abs",[t,r]),{tematicalFiltersSelected:d,selectedIndicator:p,fontColor:_,inputsColor:b}=Ve(E=>E),f=E=>{if(E){const{min:T,max:k,valueClicked:j,allValues:C}=E||{},{code:z,type:y}=e||{},w=m?"abs":u?"cat":"both";let S=z[0];y=="both"&&(S=w=="cat"?z[1]:z[0]),w=="cat"?Ve.setState(A=>{let N=A.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H=[N.values];if(N.values.includes(j)){if(H=N.values.filter(V=>V!==j),H.length<1)return{tematicalFiltersSelected:A.tematicalFiltersSelected.filter(V=>V.code!==S)}}else H=[...N.values,j];return{tematicalFiltersSelected:A.tematicalFiltersSelected.map(V=>V.code===S?{...V,values:H}:V)}}else{console.log("entra aqui: ",C," ",j);let H=C.map((V,ce)=>ce);return{tematicalFiltersSelected:[...d,{type:"cat",code:S,values:H.filter(V=>V!==j)}]}}}):w=="abs"&&Ve.setState(A=>{let N=A.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H={...N};return H.min=T,H.max=k,{tematicalFiltersSelected:A.tematicalFiltersSelected.map(V=>V.code===S?H:V)}}else return{tematicalFiltersSelected:[...d,{type:"abs",code:S,min:T,max:k}]}})}},x=v.useMemo(()=>{const E={};if((d==null?void 0:d.length)>0)for(const T of d)T.type==="cat"?E[T.code]=new Set(T.values):E[T.code]=[T.min,T.max];return E},[d]);return h.jsx("div",{className:Gn.tematicalFiltersInputContainer,children:h.jsxs(Ot,{titleFontStyles:{fontSize:16,fontWeight:400},title:o,isOpen:p==`id${o}`,onClick:()=>Ve.setState(()=>({selectedIndicator:p==`id${o}`?"":`id${o}`})),showBottomBar:!1,height:38,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:_,children:[r=="both"&&h.jsxs("div",{className:Gn.inputTypeContainer,style:{color:_},children:[h.jsxs("label",{children:[h.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{n("abs")},style:{marginRight:4,backgroundColor:t=="abs"?b:"white",border:`1.5px solid ${t=="abs"?b:_}`}}),"Absoluto"]}),h.jsxs("label",{children:[h.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{n("cat")},style:{marginRight:4,backgroundColor:t=="cat"?b:"white",border:`1.5px solid ${t=="cat"?b:_}`}}),"Categórico"]})]}),u&&h.jsx("div",{className:Gn.checkboxContainer,children:i.map((E,T)=>{var k;return h.jsx(oa,{onClick:()=>f({valueClicked:T,allValues:i}),indicator:E,value:((k=x[e.code[r=="both"?1:0]])==null?void 0:k.has(T))||!x[e.code[r=="both"?1:0]]},`checkbox-${T}`)})}),m&&h.jsx("div",{className:Gn.absoluteSliderContainer,children:h.jsx(ia,{onChange:f,min:a,max:l,unit:c,value:x[e.code[0]]})})]})})};vo.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}))})};const aa=({subcategory:e,fontColor:t})=>{const{activeSubcategory:n}=Ve(i=>i),{name:r,indicators:o}=e||{};return h.jsx(Ot,{title:r,isOpen:n==`id${r}`,onClick:()=>{Ve.setState(i=>({activeSubcategory:i.activeSubcategory===`id${r}`?"":`id${r}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:49,color:t,children:o==null?void 0:o.map((i,a)=>h.jsx(vo,{indicator:i,fontColor:t},`indicatorSub-${a}`))})};aa.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))})};const sa=({category:e})=>{const{name:t,subcategories:n,indicators:r}=e||{},{activeCategory:o,fontColor:i}=Ve(a=>a);return e&&h.jsx(Ot,{onClick:()=>{Ve.setState(a=>({activeCategory:o===`id${t}`?"":`id${t}`}))},title:t,isOpen:o===`id${t}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:i,children:n?n.map((a,l)=>h.jsx(aa,{subcategory:a,fontColor:i},`subcategory-${l}`)):r&&r.map((a,l)=>h.jsx(vo,{indicator:a,fontColor:i},`indicator-${l}`))})};sa.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array})};const la=({indicators:e=vl,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56"})=>{const{tematicalFiltersSelected:i}=Ve(l=>l),{t:a}=Oe.useTranslation();return v.useEffect(()=>{console.log("filtersSelected changed: ",i)},[i]),v.useEffect(()=>{r&&Ve.setState(()=>({fontColor:r}))},[r]),v.useEffect(()=>{o&&Ve.setState(()=>({inputsColor:o}))},[o]),h.jsx(Ot,{isOpen:t,title:n?a(n):"Tematical filters",color:r,children:e==null?void 0:e.map((l,c)=>h.jsx(sa,{category:l,fontColor:r},`category-${c}`))})};la.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.shape({name:s.string,type:s.string,values:s.arrayOf(s.shape({codename:s.string,title:s.string}))})),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string};const jl="_FiltersAmbitContainer_6o4gt_2",Ml="_FiltersAmbitHeader_6o4gt_7",Ll="_FiltersAmbitTitle_6o4gt_15",Nl="_FiltersAmbitDescription_6o4gt_22",Il="_FiltersAmbitDescriptionTitle_6o4gt_33",En={FiltersAmbitContainer:jl,FiltersAmbitHeader:Ml,FiltersAmbitTitle:Ll,FiltersAmbitDescription:Nl,FiltersAmbitDescriptionTitle:Il},Dl=({ambitName:e,ambitDescription:t,defaultFilters:n})=>{const{t:r}=Oe.useTranslation(),{tematicalFiltersSelected:o}=Ve(i=>i);return v.useEffect(()=>{n&&n.length>0&&Ve.setState(i=>({tematicalFiltersSelected:n}))},[n]),v.useEffect(()=>{console.log("filtersSelected changed: ",o)},[o]),h.jsxs("div",{className:En.FiltersAmbitContainer,children:[h.jsxs("div",{className:En.FiltersAmbitHeader,children:[h.jsx("div",{className:En.FiltersAmbitTitle,children:e}),h.jsxs("div",{className:En.FiltersAmbitDescription,children:[h.jsx("div",{className:En.FiltersAmbitDescriptionTitle,children:r("Descripción")}),t]})]}),h.jsx(na,{title:r("Filtros Aplicados"),isOpen:!0,textColor:"#ffffff",backgroundColor:"#605B5680"}),h.jsx(ra,{}),h.jsx(la,{})]})},Fl="_barChartContainer_d2f1z_2",Bl={barChartContainer:Fl},ca=({data:e,width:t=700,barHeight:n=25,gap:r=23,fontColor:o="#605B56",verticalPaddign:i=10,horizontalPaddign:a=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:m}=Oe.useTranslation(),{xScale:d,ticks:p,height:_}=v.useMemo(()=>{if(e&&e.length>0){const b=(e==null?void 0:e.length)*(n+r)+i*2,f=Io.max(e,T=>T.value)||1,x=Io.scaleLinear().domain([0,u||f]).range([0,t-l]),E=Array.from({length:c+1},(T,k)=>u?u/c*k:f/c*k);return{xScale:x,ticks:E,height:b,width:t,verticalPaddign:i,horizontalPaddign:a}}else return{xScale:null,ticks:[],height:0}},[e,t,c,n,r,a,i,u]);return h.jsx("div",{className:Bl.barChartContainer,children:h.jsx("svg",{width:t+a*2,height:_,children:h.jsxs("g",{transform:`translate(0,${r})`,children:[h.jsx("g",{transform:`translate(${l+a}, 0)`,children:p.map((b,f)=>{const x=d(b);return h.jsxs("g",{transform:`translate(${x}, 0)`,children:[h.jsx("line",{y1:0,y2:_-r*2,stroke:"#ccc"}),h.jsx("text",{y:_-r,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(b)})]},f)})}),e&&e.length>0&&(e==null?void 0:e.map((b,f)=>{const x=d(b.value),E=f*(n+r);return h.jsxs("g",{transform:`translate(${l+a}, ${E})`,children:[h.jsx("text",{x:-24,y:n/2+5,textAnchor:"end",fill:o,children:m(b.title)}),h.jsx("rect",{width:x,height:n,fill:b.color,rx:0})]},f)}))]})})})};ca.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),width:s.number,barHeight:s.number,gap:s.number,verticalPaddign:s.number,horizontalPaddign:s.number,numberOfDivisions:s.number,fontColor:s.string};const zl="_graphicContainer_c9zrg_2",Vl="_titleContainer_c9zrg_14",Qo={graphicContainer:zl,titleContainer:Vl},ua=({data:e,graphWidth:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=Oe.useTranslation();return h.jsxs("div",{className:Qo.graphicContainer,style:{...n||{},border:`1.5px solid ${r}`},children:[h.jsx("div",{className:Qo.titleContainer,children:h.jsx("h2",{children:u(o)})}),h.jsx(ca,{data:e,width:t,fontColor:i,maxValue:a,numberOfDivisions:l,leftPadding:c})]})};ua.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphWidth:s.number,containerStyle:s.object,fontColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number};const Ul="_indicatorsCategory_1cu33_2",ql="_title_1cu33_5",Wl="_list_1cu33_11",Wr={indicatorsCategory:Ul,title:ql,list:Wl},Hl="_indicatorContainer_wv1z4_2",Yl="_dot_wv1z4_11",Kl="_indicatorName_wv1z4_16",Zl="_switchExternalContainer_wv1z4_22",Gl="_switchType_wv1z4_31",Jl="_switchTypeOptions_wv1z4_35",Xl="_optionContainer_wv1z4_46",Ql="_customRadious_wv1z4_56",Be={indicatorContainer:Hl,dot:Yl,indicatorName:Kl,switchExternalContainer:Zl,switchType:Gl,switchTypeOptions:Jl,optionContainer:Xl,customRadious:Ql},bo=({indicator:e,values:t=[],activeColor:n,defaultColor:r="black",activeIndicator:o,onClickIndicator:i,multiple:a=!1})=>{const{t:l}=Oe.useTranslation(),{name:c,ikey:u,type:m}=e,[d,p]=v.useState(!1);v.useEffect(()=>{o&&p(a?o.some(f=>f.ikey==String(u)):o.ikey==u)},[o]);const _=()=>h.jsx("div",{className:Be.switchExternalContainer,children:h.jsx("div",{className:Be.switchType,children:h.jsxs("div",{className:Be.switchTypeOptions,children:[h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:`${Be.customRadious}`}),h.jsx("h4",{className:Be.optionText,children:l("indicators.cat")})]}),h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:`${Be.customRadious}`}),h.jsx("h4",{className:Be.optionText,children:l("indicators.abs")})]})]})})}),b=()=>h.jsx("div",{className:Be.switchExternalContainer,children:h.jsx("div",{className:Be.switchType,children:h.jsx("div",{className:Be.switchTypeOptions,children:t.map((f,x)=>h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:Be.customRadious}),h.jsx("h4",{children:l(f.unit)})]},x))})})});return h.jsxs("button",{onClick:()=>i({indicator:e}),className:Be.indicatorContainer,children:[h.jsx("div",{style:{border:d?`1px solid ${n}`:`1px solid ${r}`},className:Be.dot}),h.jsx("h4",{className:Be.indicatorName,style:{color:d?n:r},children:l(c)}),o===u&&m==="both"&&h.jsx("div",{children:_()}),o===u&&m==="twoUnits"&&h.jsx("div",{children:b()})]})};bo.propTypes={indicator:s.shape({name:s.string,ikey:s.number,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 ec="_indicatorsSubCategory_1dzsi_2",tc="_list_1dzsi_8",ei={indicatorsSubCategory:ec,list:tc},da=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:i,id:a,activeIndicator:l,onClickIndicator:c,multiple:u})=>{const{t:m}=Oe.useTranslation(),[d,p]=v.useState(!1);return v.useEffect(()=>{p(o==a)},[o,a]),h.jsxs(ho.motion.div,{className:ei.indicatorsSubCategory,initial:{height:"43px"},animate:{height:d?"auto":"43px"},transition:{duration:.4},children:[h.jsx("button",{onClick:()=>i(a),children:h.jsxs("h3",{style:{color:d?r:n},children:[h.jsx("span",{style:{color:d?r:n},children:d?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:d?r:n},children:m(e)})]})}),t&&h.jsx("div",{className:ei.list,children:t==null?void 0:t.map((_,b)=>h.jsx(bo,{indicator:_,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:c,multiple:u},"indicator"+b))})]})};da.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 fa=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:i,activeSubCategory:a,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m})=>{var b;const{t:d}=Oe.useTranslation(),[p,_]=v.useState(!1);return v.useEffect(()=>{_(i===t)},[i,t]),h.jsxs(ho.motion.div,{className:Wr.indicatorsCategory,initial:{height:"53px"},animate:{height:p?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:p?`1px solid ${n}`:"0px",marginBottom:p?"20px":"0px"},children:[h.jsxs("h2",{className:`${Wr.title}`,onClick:()=>o(t),children:[h.jsx("span",{style:{color:p?n:r},children:p?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:p?n:r},children:d(e.name)})]}),e.subcategories?e.subcategories.map(({name:f,subcategory:x,indicators:E},T)=>h.jsx(da,{id:x,activeSubCategory:a,subcName:f,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m,activeColor:n,defaultColor:r,indicators:E},`subcKey ${T}`)):h.jsx("div",{className:Wr.list,children:(b=e.indicators)==null?void 0:b.map((f,x)=>h.jsx(bo,{indicator:f,values:f.type=="twoUnits"&&f.values,activeColor:n,defaultColor:r,activeIndicator:c,onClickIndicator:u,multiple:m},`indicator${x}`))})]})};fa.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 nc="_indicatorsList_k90zc_2",rc="_title_k90zc_6",ti={indicatorsList:nc,title:rc},ma=({indicators:e,activeColor:t,defaultColor:n="black",onChange:r,multiple:o=!1,defaultValue:i=null})=>{const{t:a}=Oe.useTranslation(),[l,c]=v.useState(),[u,m]=v.useState(),[d,p]=v.useState(),_=T=>{c(l==T?null:T)},b=T=>{m(u==T?null:T)},f=({indicator:T})=>{x(T)},x=T=>{if(!o)p((d==null?void 0:d.ikey)==T.ikey?null:T);else{let k=d&&d.length>0?[...d]:[];p(k!=null&&k.some(j=>j.ikey==T.ikey)?k.filter(j=>j.ikey!=String(T.ikey)):[...k,T])}};v.useEffect(()=>{r&&typeof r=="function"&&r({activeIndicator:d})},[d]),v.useEffect(()=>{if(i&&!d)if(o&&i&&Array.isArray(i)){let T=d&&d.length>0?[...d]:[];p([...T,...i]),E(i[0].ikey)}else x(i),E(i.ikey)},[i]);const E=T=>{const k=e.find(j=>{if(j.subcategories){let C=j.subcategories.find(z=>z.indicators.find(y=>y.ikey==T));if(C)return m(C.subcategory),C}else return j.indicators.some(C=>C.ikey==T)});k&&c(k.category)};return h.jsxs("div",{className:ti.indicatorsList,children:[h.jsx("h2",{className:ti.title,style:{color:n},children:a("indicators.indicators")}),e.map((T,k)=>h.jsx(fa,{id:T.category,cat:T,onClickCategory:_,activeCategory:l,onClickSubCategory:b,activeSubCategory:u,onClickIndicator:f,activeIndicator:d,activeColor:t,defaultColor:n,multiple:o,onChange:r},`categoryKey${k}`))]})};ma.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array])};const oc="_langSelector_1of0g_2",ic="_currentLang_1of0g_7",ac="_arrow_1of0g_19",sc="_prevImg_1of0g_22",lc="_langMenu_1of0g_26",Zt={langSelector:oc,currentLang:ic,arrow:ac,prevImg:sc,langMenu:lc},pa=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=v.useState(!1),{i18n:i}=Oe.useTranslation(),a=e.find(c=>c.code==i.language),l=c=>{i.changeLanguage(c),o(!1)};return h.jsxs("div",{className:Zt.langSelector,children:[h.jsxs("div",{className:Zt.currentLang,onClick:()=>{o(!r)},children:[n&&h.jsx("img",{className:Zt.prevImg,src:n}),a.titleSelected||a.title,h.jsx("img",{src:t,className:Zt.arrow})]}),r&&h.jsx("div",{className:Zt.langMenu,children:e.map(c=>h.jsx("button",{className:a.code==c.code?Zt.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};pa.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 cc="_legendContainer_atg3j_3",uc="_closeButton_atg3j_18",dc="_titleContainer_atg3j_46",fc="_infoContainer_atg3j_52",mc="_titleLegendList_atg3j_63",pc="_legendListContainer_atg3j_70",hc="_gridContainer_atg3j_70",gc="_elementLegendContainer_atg3j_76",yc="_colorDot_atg3j_82",vc="_absoluteValueContainer_atg3j_88",bc="_absoluteValueColor_atg3j_91",_c="_absoluteValueText_atg3j_96",Cc="_moreInfoContainer_atg3j_108",We={legendContainer:cc,closeButton:uc,titleContainer:dc,infoContainer:fc,titleLegendList:mc,legendListContainer:pc,gridContainer:hc,elementLegendContainer:gc,colorDot:yc,absoluteValueContainer:vc,absoluteValueColor:bc,absoluteValueText:_c,moreInfoContainer:Cc},ha=({containerStyles:e,title:t,infoList:n,legendList:r,legendListTitle:o,absoluteValue:i,onClickMoreInfo:a,buttonTitle:l,onClickClose:c})=>{const{t:u}=Oe.useTranslation();return h.jsxs("div",{style:e?{...e}:{},className:`${We.legendContainer}`,children:[h.jsx("button",{className:We.closeButton,onClick:c}),t&&h.jsx("div",{className:We.titleContainer,children:h.jsx("h2",{children:t})}),n&&n.length>0&&h.jsx("div",{className:We.infoContainer,children:h.jsx("ul",{children:n.map(({title:m,value:d})=>h.jsxs("li",{children:[h.jsx("h3",{className:We.title,children:`${m}:`}),h.jsxs("span",{className:We.value,children:["  ",d]})]},t))})}),h.jsx("h3",{className:We.titleLegendList,children:u(o||"mainUse")}),h.jsx("div",{className:We.legendListContainer,children:i?h.jsxs("div",{className:We.absoluteValueContainer,children:[h.jsx("div",{className:We.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${i.maxColor} 0%, ${i.minColor} 100%)`}}),h.jsxs("div",{className:We.absoluteValueText,children:[h.jsxs("span",{children:[i.maxValue," ",u(i.unit)]}),h.jsxs("span",{children:[i.minValue," ",u(i.unit)]})]})]}):r&&r.length>0&&h.jsx("div",{className:We.gridContainer,children:r.map(({title:m,color:d})=>h.jsxs("div",{className:We.elementLegendContainer,children:[h.jsx("div",{className:We.colorDot,style:{backgroundColor:d}}),h.jsxs("div",{className:We.titleLegendElement,children:[u(m)," "]})]},t))})}),a&&h.jsx("button",{className:We.moreInfoContainer,onClick:a,children:l||u("moreInformation")})]})};ha.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendList:s.arrayOf(s.shape({title:s.string,color:s.string})),legendListTitle:s.string,absoluteValue:s.shape({maxColor:s.string,minColor:s.string,maxValue:s.number,minValue:s.number}),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const xc="_logo_1ewa6_2",ni={logo:xc},ga=({src:e,alt:t,href:n})=>{const{t:r}=Oe.useTranslation(),o=h.jsx("img",{src:e,alt:r(t)});return n?h.jsx("div",{className:ni.logo,children:h.jsx("a",{href:n,children:o})}):h.jsx("div",{className:ni.logo,children:o})};ga.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const Ec=X.createContext(null);function Sc(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 Qe(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(!Qe(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)||!Qe(e[o],t[o]))return!1;return!0}return!1}function Tc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function ri(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Qe(n,r)||t.setProjection(n)}function oi(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ii(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 ai(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 si={version:8,sources:{},layers:[]},li={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"},Hr={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"},ci={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"},kc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Oc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ln{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[ci[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[li[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[Hr[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=ln.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,r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:a}=t;return a&&(a.bounds?o.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=si}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||Rc()||null,container:t,style:ai(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 m=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=m,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 l=a._render;a._render=m=>{this._inRender=!0,l.call(a,m),this._inRender=!1};const c=a._renderTaskQueue.run;a._renderTaskQueue.run=m=>{c.call(a._renderTaskQueue,m),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const u=a.fire;a.fire=this._fireEvent.bind(this,u),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),ri(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const m in li)a.on(m,this._onPointerEvent);for(const m in Hr)a.on(m,this._onCameraEvent);for(const m in ci)a.on(m,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),ln.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=Tc(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:l}=o,c=r.isMoving();c&&(o.cameraElevationReference="sea");const u=ii(o,{...oi(r.transform),...t});if(c&&(o.cameraElevationReference="ground"),u&&n){const m=this._deferredEvents;m.move=!0,m.zoom||(m.zoom=i!==o.zoom),m.rotate||(m.rotate=l!==o.bearing),m.pitch||(m.pitch=a!==o.pitch)}return c||ii(r.transform,t),u}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of kc)if(i in t&&!Qe(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=si,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(ai(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Qe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Qe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Qe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){const r=this._map;let o=!1;for(const i of Oc){const a=t[i]??!0,l=n[i]??!0;Qe(a,l)||(o=!0,a?r[i].enable(a):r[i].disable())}return o}_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 o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,a=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!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 Hr&&(typeof n=="object"&&(n.viewState=oi(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=()=>{ri(this._renderTransform,n),t.transform=n}}}ln.savedMaps=[];function Rc(){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 Ac=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Pc(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 $c(t))!(r in n)&&!Ac.includes(r)&&(n[r]=t[r].bind(t));return n}function $c(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 jc=typeof document<"u"?v.useLayoutEffect:v.useEffect,Mc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Lc(e,t){for(const r of Mc)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 dn=X.createContext(null);function Nc(e,t){const n=v.useContext(Ec),[r,o]=v.useState(null),i=v.useRef(),{current:a}=v.useRef({mapLib:null,map:null});v.useEffect(()=>{const u=e.mapLib;let m=!0,d;return Promise.resolve(u||import("mapbox-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const _="Map"in p?p:p.default;if(!_.Map)throw new Error("Invalid mapLib");Lc(_,e),e.reuseMaps&&(d=ln.reuse(e,i.current)),d||(d=new ln(_.Map,e,i.current)),a.map=Pc(d),a.mapLib=_,o(d),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:_}=e;_?_({type:"error",target:null,error:p}):console.error(p)}),()=>{m=!1,d&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?d.recycle():d.destroy())}},[]),jc(()=>{r&&r.setProps(e)}),v.useImperativeHandle(t,()=>a.map,[r]);const l=v.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:i,style:l},r&&X.createElement(dn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Ic=X.forwardRef(Nc),Dc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function It(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Dc.test(r)?n[r]=`${o}px`:n[r]=o}}function ya(e,t){if(e===t)return null;const n=ui(e),r=ui(t),o=[];for(const i of r)n.has(i)||o.push(i);for(const i of n)r.has(i)||o.push(i);return o.length===0?null:o}function ui(e){return new Set(e?e.trim().split(/\s+/):[])}v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(dn),o=v.useRef({props:e}),i=v.useMemo(()=>{let E=!1;X.Children.forEach(e.children,j=>{j&&(E=!0)});const T={...e,element:E?document.createElement("div"):null},k=new r.Marker(T);return k.setLngLat([e.longitude,e.latitude]),k.getElement().addEventListener("click",j=>{var C,z;(z=(C=o.current.props).onClick)==null||z.call(C,{type:"click",target:k,originalEvent:j})}),k.on("dragstart",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragStart)==null||y.call(z,C)}),k.on("drag",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDrag)==null||y.call(z,C)}),k.on("dragend",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragEnd)==null||y.call(z,C)}),k},[]);v.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:d=null,rotation:p=0,rotationAlignment:_="auto",pitchAlignment:b="auto"}=e;v.useEffect(()=>{It(i.getElement(),u)},[u]),v.useImperativeHandle(t,()=>i,[]);const f=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Sc(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==_&&i.setRotationAlignment(_),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==d&&i.setPopup(d);const x=ya(f.className,e.className);if(x)for(const E of x)i.toggleClassName(E);return o.current.props=e,hr.createPortal(e.children,i.getElement())}));const Fc=v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(dn),o=v.useMemo(()=>document.createElement("div"),[]),i=v.useRef({props:e}),a=v.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,d;(d=(m=i.current.props).onOpen)==null||d.call(m,u)}),c},[]);if(v.useEffect(()=>{const l=c=>{var u,m;(m=(u=i.current.props).onClose)==null||m.call(u,c)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),v.useEffect(()=>{It(a.getElement(),e.style)},[e.style]),v.useImperativeHandle(t,()=>a,[]),a.isOpen()){const l=i.current.props;(a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Qe(l.offset,e.offset)&&(a.options.anchor=e.anchor,a.setOffset(e.offset)),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&a.setMaxWidth(e.maxWidth);const c=ya(l.className,e.className);if(c)for(const u of c)a.toggleClassName(u);i.current.props=e}return hr.createPortal(e.children,o)}));function Nn(e,t,n,r){const o=v.useContext(dn),i=v.useMemo(()=>e(o),[]);return v.useEffect(()=>{const a=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(i)||c.addControl(i,a==null?void 0:a.position),()=>{l&&l(o),c.hasControl(i)&&c.removeControl(i)}},[]),i}function Bc(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return v.useEffect(()=>{It(t._container,e.style)},[e.style]),null}v.memo(Bc);function zc(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return v.useEffect(()=>{It(t._controlContainer,e.style)},[e.style]),null}v.memo(zc);function Vc(e,t){const n=v.useRef({props:e}),r=Nn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI.bind(i);return i._setupUI=l=>{i._container.hasChildNodes()||a(l)},i.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),i.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),i.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),i.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),i.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),i},{position:e.position});return n.current.props=e,v.useImperativeHandle(t,()=>r,[]),v.useEffect(()=>{It(r._container,e.style)},[e.style]),null}v.memo(v.forwardRef(Vc));function Uc(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return v.useEffect(()=>{It(t._container,e.style)},[e.style]),null}const qc=v.memo(Uc);function Wc(e){const t=Nn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=v.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),v.useEffect(()=>{It(t._container,o)},[o]),null}v.memo(Wc);function ur(e,t){if(!e)throw new Error(t)}let Hc=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 Kc(e,t,n){ur(t.id===n.id,"source id changed"),ur(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Qe(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 Zc(e){const t=v.useContext(dn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-source-${Hc++}`,[]);v.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",a),a(),()=>{var l;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?Kc(i,e,n.current):i=Yc(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&v.cloneElement(a,{source:o}))||null}function Gc(e,t,n,r){if(ur(n.id===r.id,"layer id changed"),ur(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const m=r.layout||{};for(const d in o)Qe(o[d],m[d])||e.setLayoutProperty(t,d,o[d]);for(const d in m)o.hasOwnProperty(d)||e.setLayoutProperty(t,d,void 0)}if(i!==r.paint){const m=r.paint||{};for(const d in i)Qe(i[d],m[d])||e.setPaintProperty(t,d,i[d]);for(const d in m)i.hasOwnProperty(d)||e.setPaintProperty(t,d,void 0)}Qe(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function Jc(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 Xc=0;function Qc(e){const t=v.useContext(dn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-layer-${Xc++}`,[]);if(v.useEffect(()=>{if(t){const a=()=>r(l=>l+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{Gc(t,o,e,n.current)}catch(a){console.warn(a)}else Jc(t,o,e);return n.current=e,null}const eu="_mapContainer_84pkf_2",tu={mapContainer:eu};Ts.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const va=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i="",onClick:a="",interactiveLayers:l=[],popUp:c=!1,sources:u=[],layers:m=[]})=>{const d=v.useRef(),[p,_]=v.useState(null),b=kn.useSelector(f=>f.mapState.showTexts);return v.useEffect(()=>{if(d.current){const f=d.current.getMap();f.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(b?f.setLayoutProperty(E.id,"visibility","visible"):f.setLayoutProperty(E.id,"visibility","none"))})}},[b]),h.jsx("div",{className:`${tu.mapContainer}`,style:i,children:h.jsxs(Ic,{initialViewState:e,ref:d,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((f,x)=>h.jsx(Zc,{...f,children:m.length&&m.map((E,T)=>{if(E.sourceId==f.id)return h.jsx(Qc,{...E.layer,beforeId:o},T)})},x)),h.jsx(qc,{position:"bottom-right",visualizePitch:!0}),c&&p&&h.jsx(Fc,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>_(null),children:c.content})]})})};va.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})}))};var et=Uint8Array,rn=Uint16Array,nu=Int32Array,ba=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),_a=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ru=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ca=function(e,t){for(var n=new rn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new nu(n[30]),r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)o[i]=i-n[r]<<5|r;return{b:n,r:o}},xa=Ca(ba,2),Ea=xa.b,ou=xa.r;Ea[28]=258,ou[258]=28;var iu=Ca(_a,0),au=iu.b,ao=new rn(32768);for(var Te=0;Te<32768;++Te){var Et=(Te&43690)>>1|(Te&21845)<<1;Et=(Et&52428)>>2|(Et&13107)<<2,Et=(Et&61680)>>4|(Et&3855)<<4,ao[Te]=((Et&65280)>>8|(Et&255)<<8)>>1}var On=function(e,t,n){for(var r=e.length,o=0,i=new rn(t);o<r;++o)e[o]&&++i[e[o]-1];var a=new rn(t);for(o=1;o<t;++o)a[o]=a[o-1]+i[o-1]<<1;var l;if(n){l=new rn(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],m=t-e[o],d=a[e[o]-1]++<<m,p=d|(1<<m)-1;d<=p;++d)l[ao[d]>>c]=u}else for(l=new rn(r),o=0;o<r;++o)e[o]&&(l[o]=ao[a[e[o]-1]++]>>15-e[o]);return l},In=new et(288);for(var Te=0;Te<144;++Te)In[Te]=8;for(var Te=144;Te<256;++Te)In[Te]=9;for(var Te=256;Te<280;++Te)In[Te]=7;for(var Te=280;Te<288;++Te)In[Te]=8;var Sa=new et(32);for(var Te=0;Te<32;++Te)Sa[Te]=5;var su=On(In,9,1),lu=On(Sa,5,1),Yr=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},ct=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Kr=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},cu=function(e){return(e+7)/8|0},uu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},du=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Xe=function(e,t,n){var r=new Error(t||du[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Xe),!n)throw r;return r},_o=function(e,t,n,r){var o=e.length,i=0;if(!o||t.f&&!t.l)return n||new et(0);var a=!n,l=a||t.i!=2,c=t.i;a&&(n=new et(o*3));var u=function(be){var P=n.length;if(be>P){var _e=new et(Math.max(P*2,be));_e.set(n),n=_e}},m=t.f||0,d=t.p||0,p=t.b||0,_=t.l,b=t.d,f=t.m,x=t.n,E=o*8;do{if(!_){m=ct(e,d,1);var T=ct(e,d+1,3);if(d+=3,T)if(T==1)_=su,b=lu,f=9,x=5;else if(T==2){var z=ct(e,d,31)+257,y=ct(e,d+10,15)+4,w=z+ct(e,d+5,31)+1;d+=14;for(var S=new et(w),A=new et(19),N=0;N<y;++N)A[ru[N]]=ct(e,d+N*3,7);d+=y*3;for(var H=Yr(A),V=(1<<H)-1,ce=On(A,H,1),N=0;N<w;){var Y=ce[ct(e,d,V)];d+=Y&15;var k=Y>>4;if(k<16)S[N++]=k;else{var ie=0,re=0;for(k==16?(re=3+ct(e,d,3),d+=2,ie=S[N-1]):k==17?(re=3+ct(e,d,7),d+=3):k==18&&(re=11+ct(e,d,127),d+=7);re--;)S[N++]=ie}}var we=S.subarray(0,z),Pe=S.subarray(z);f=Yr(we),x=Yr(Pe),_=On(we,f,1),b=On(Pe,x,1)}else Xe(1);else{var k=cu(d)+4,j=e[k-4]|e[k-3]<<8,C=k+j;if(C>o){c&&Xe(0);break}l&&u(p+j),n.set(e.subarray(k,C),p),t.b=p+=j,t.p=d=C*8,t.f=m;continue}if(d>E){c&&Xe(0);break}}l&&u(p+131072);for(var R=(1<<f)-1,M=(1<<x)-1,Q=d;;Q=d){var ie=_[Kr(e,d)&R],q=ie>>4;if(d+=ie&15,d>E){c&&Xe(0);break}if(ie||Xe(2),q<256)n[p++]=q;else if(q==256){Q=d,_=null;break}else{var F=q-254;if(q>264){var N=q-257,ee=ba[N];F=ct(e,d,(1<<ee)-1)+Ea[N],d+=ee}var Z=b[Kr(e,d)&M],K=Z>>4;Z||Xe(3),d+=Z&15;var Pe=au[K];if(K>3){var ee=_a[K];Pe+=Kr(e,d)&(1<<ee)-1,d+=ee}if(d>E){c&&Xe(0);break}l&&u(p+131072);var U=p+F;if(p<Pe){var G=i-Pe,ne=Math.min(Pe,U);for(G+p<0&&Xe(3);p<ne;++p)n[p]=r[G+p]}for(;p<U;++p)n[p]=n[p-Pe]}}t.l=_,t.p=Q,t.b=p,t.f=m,_&&(m=1,t.m=f,t.d=b,t.n=x)}while(!m);return p!=n.length&&a?uu(n,0,p):n.subarray(0,p)},fu=new et(0),mu=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Xe(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},pu=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},hu=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Xe(6,"invalid zlib data"),(e[1]>>5&1)==1&&Xe(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function gu(e,t){return _o(e,{i:2},t,t)}function yu(e,t){var n=mu(e);return n+8>e.length&&Xe(6,"invalid gzip data"),_o(e.subarray(n,-8),{i:2},new et(pu(e)),t)}function vu(e,t){return _o(e.subarray(hu(e),-4),{i:2},t,t)}function bu(e,t){return e[0]==31&&e[1]==139&&e[2]==8?yu(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?gu(e,t):vu(e,t)}var _u=typeof TextDecoder<"u"&&new TextDecoder,Cu=0;try{_u.decode(fu,{stream:!0}),Cu=1}catch{}var xu=Object.defineProperty,Rn=Math.pow,Ee=(e,t)=>xu(e,"name",{value:t,configurable:!0}),Fe=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{l(n.next(c))}catch(u){o(u)}},a=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);l((n=n.apply(e,t)).next())});Ee((e,t)=>{let n=!1,r="",o=L.GridLayer.extend({createTile:Ee((i,a)=>{let l=document.createElement("img"),c=new AbortController,u=c.signal;return l.cancel=()=>{c.abort()},n||(e.getHeader().then(m=>{m.tileType===1?console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):m.tileType===2?r="image/png":m.tileType===3?r="image/jpeg":m.tileType===4?r="image/webp":m.tileType===5&&(r="image/avif")}),n=!0),e.getZxy(i.z,i.x,i.y,u).then(m=>{if(m){let d=new Blob([m.data],{type:r}),p=window.URL.createObjectURL(d);l.src=p,l.cancel=void 0,a(void 0,l)}}).catch(m=>{if(m.name!=="AbortError")throw m}),l},"createTile"),_removeTile:Ee(function(i){let a=this._tiles[i];a&&(a.el.cancel&&a.el.cancel(),a.el.width=0,a.el.height=0,a.el.deleted=!0,L.DomUtil.remove(a.el),delete this._tiles[i],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(i)}))},"_removeTile")});return new o(t)},"leafletRasterLayer");var Eu=Ee(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(o=>n(void 0,o.data,o.cacheControl||"",o.expires||""),o=>n(o)).catch(o=>n(o)),{cancel:Ee(()=>r.abort(),"cancel")}},"v3compat"),Ta=class{constructor(t){this.tilev4=Ee((n,r)=>Fe(this,null,function*(){if(n.type==="json"){let _=n.url.substr(10),b=this.tiles.get(_);if(b||(b=new di(_),this.tiles.set(_,b)),this.metadata)return{data:yield b.getTileJson(n.url)};let f=yield b.getHeader();return(f.minLon>=f.maxLon||f.minLat>=f.maxLat)&&console.error(`Bounds of PMTiles archive ${f.minLon},${f.minLat},${f.maxLon},${f.maxLat} are not valid.`),{data:{tiles:[`${n.url}/{z}/{x}/{y}`],minzoom:f.minZoom,maxzoom:f.maxZoom,bounds:[f.minLon,f.minLat,f.maxLon,f.maxLat]}}}let o=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),i=n.url.match(o);if(!i)throw new Error("Invalid PMTiles protocol URL");let a=i[1],l=this.tiles.get(a);l||(l=new di(a),this.tiles.set(a,l));let c=i[2],u=i[3],m=i[4],d=yield l.getHeader(),p=yield l==null?void 0:l.getZxy(+c,+u,+m,r.signal);if(p)return{data:new Uint8Array(p.data),cacheControl:p.cacheControl,expires:p.expires};if(d.tileType===1){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=Eu(this.tilev4),this.tiles=new Map,this.metadata=(t==null?void 0:t.metadata)||!1,this.errorOnMissingTile=(t==null?void 0:t.errorOnMissingTile)||!1}add(t){this.tiles.set(t.source.getKey(),t)}get(t){return this.tiles.get(t)}};Ee(Ta,"Protocol");var Su=Ta;function wa(e,t){return(t>>>0)*4294967296+(e>>>0)}Ee(wa,"toNum");function ka(e,t){let n=t.buf,r=n[t.pos++],o=(r&112)>>4;if(r<128||(r=n[t.pos++],o|=(r&127)<<3,r<128)||(r=n[t.pos++],o|=(r&127)<<10,r<128)||(r=n[t.pos++],o|=(r&127)<<17,r<128)||(r=n[t.pos++],o|=(r&127)<<24,r<128)||(r=n[t.pos++],o|=(r&1)<<31,r<128))return wa(e,o);throw new Error("Expected varint not more than 10 bytes")}Ee(ka,"readVarintRemainder");function tn(e){let t=e.buf,n=t[e.pos++],r=n&127;return n<128||(n=t[e.pos++],r|=(n&127)<<7,n<128)||(n=t[e.pos++],r|=(n&127)<<14,n<128)||(n=t[e.pos++],r|=(n&127)<<21,n<128)?r:(n=t[e.pos],r|=(n&15)<<28,ka(r,e))}Ee(tn,"readVarint");function Co(e,t,n,r){if(r===0){n===1&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);let o=t[0];t[0]=t[1],t[1]=o}}Ee(Co,"rotate");function Oa(e,t){let n=Rn(2,e),r=t,o=t,i=t,a=[0,0],l=1;for(;l<n;)r=1&i/2,o=1&(i^r),Co(l,a,r,o),a[0]+=l*r,a[1]+=l*o,i=i/4,l*=2;return[e,a[0],a[1]]}Ee(Oa,"idOnLevel");var Tu=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,0x5555555555555];function Ra(e,t,n){if(e>26)throw new Error("Tile zoom level exceeds max safe number limit (26)");if(t>Rn(2,e)-1||n>Rn(2,e)-1)throw new Error("tile x/y outside zoom level bounds");let r=Tu[e],o=Rn(2,e),i=0,a=0,l=0,c=[t,n],u=o/2;for(;u>0;)i=(c[0]&u)>0?1:0,a=(c[1]&u)>0?1:0,l+=u*u*(3*i^a),Co(u,c,i,a),u=u/2;return r+l}Ee(Ra,"zxyToTileId");function wu(e){let t=0;for(let n=0;n<27;n++){let r=(1<<n)*(1<<n);if(t+r>e)return Oa(n,e-t);t+=r}throw new Error("Tile zoom level exceeds max safe number limit (26)")}Ee(wu,"tileIdToZxy");var ku=(e=>(e[e.Unknown=0]="Unknown",e[e.None=1]="None",e[e.Gzip=2]="Gzip",e[e.Brotli=3]="Brotli",e[e.Zstd=4]="Zstd",e))(ku||{});function gr(e,t){return Fe(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(typeof globalThis.DecompressionStream>"u")return bu(new Uint8Array(e));let n=new Response(e).body;if(!n)throw new Error("Failed to read response stream");let r=n.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(r).arrayBuffer()}throw new Error("Compression method not supported")})}Ee(gr,"defaultDecompress");var Ou=(e=>(e[e.Unknown=0]="Unknown",e[e.Mvt=1]="Mvt",e[e.Png=2]="Png",e[e.Jpeg=3]="Jpeg",e[e.Webp=4]="Webp",e[e.Avif=5]="Avif",e))(Ou||{});function Aa(e){return e===1?".mvt":e===2?".png":e===3?".jpg":e===4?".webp":e===5?".avif":""}Ee(Aa,"tileTypeExt");var Ru=127;function Pa(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,i=t-e[o].tileId;if(i>0)n=o+1;else if(i<0)r=o-1;else return e[o]}return r>=0&&(e[r].runLength===0||t-e[r].tileId<e[r].runLength)?e[r]:null}Ee(Pa,"findTile");var Au=class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,n){return Fe(this,null,function*(){return{data:yield this.file.slice(t,t+n).arrayBuffer()}})}};Ee(Au,"FileSource");var $a=class{constructor(t,n=new Headers){this.url=t,this.customHeaders=n,this.mustReload=!1;let r="";"navigator"in globalThis&&(r=globalThis.navigator.userAgent||"");let o=r.indexOf("Windows")>-1,i=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,o&&i&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,n,r,o){return Fe(this,null,function*(){let i,a;r?a=r:(i=new AbortController,a=i.signal);let l=new Headers(this.customHeaders);l.set("range",`bytes=${t}-${t+n-1}`);let c;this.mustReload?c="reload":this.chromeWindowsNoCache&&(c="no-store");let u=yield fetch(this.url,{signal:a,cache:c,headers:l});if(t===0&&u.status===416){let p=u.headers.get("Content-Range");if(!p||!p.startsWith("bytes */"))throw new Error("Missing content-length on 416 response");let _=+p.substr(8);u=yield fetch(this.url,{signal:a,cache:"reload",headers:{range:`bytes=0-${_-1}`}})}let m=u.headers.get("Etag");if(m!=null&&m.startsWith("W/")&&(m=null),u.status===416||o&&m&&m!==o)throw this.mustReload=!0,new so(`Server returned non-matching ETag ${o} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(u.status>=300)throw new Error(`Bad response code: ${u.status}`);let d=u.headers.get("Content-Length");if(u.status===200&&(!d||+d>n))throw i&&i.abort(),new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield u.arrayBuffer(),etag:m||void 0,cacheControl:u.headers.get("Cache-Control")||void 0,expires:u.headers.get("Expires")||void 0}})}};Ee($a,"FetchSource");var Pu=$a;function it(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*Rn(2,32)+r}Ee(it,"getUint64");function ja(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw new Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:it(n,8),rootDirectoryLength:it(n,16),jsonMetadataOffset:it(n,24),jsonMetadataLength:it(n,32),leafDirectoryOffset:it(n,40),leafDirectoryLength:it(n,48),tileDataOffset:it(n,56),tileDataLength:it(n,64),numAddressedTiles:it(n,72),numTileEntries:it(n,80),numTileContents:it(n,88),clustered:n.getUint8(96)===1,internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}Ee(ja,"bytesToHeader");function xo(e){let t={buf:new Uint8Array(e),pos:0},n=tn(t),r=[],o=0;for(let i=0;i<n;i++){let a=tn(t);r.push({tileId:o+a,offset:0,length:0,runLength:1}),o+=a}for(let i=0;i<n;i++)r[i].runLength=tn(t);for(let i=0;i<n;i++)r[i].length=tn(t);for(let i=0;i<n;i++){let a=tn(t);a===0&&i>0?r[i].offset=r[i-1].offset+r[i-1].length:r[i].offset=a-1}return r}Ee(xo,"deserializeIndex");var Ma=class extends Error{};Ee(Ma,"EtagMismatch");var so=Ma;function Eo(e,t){return Fe(this,null,function*(){let n=yield e.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw new Error("Wrong magic number for PMTiles archive");let r=n.data.slice(0,Ru),o=ja(r,n.etag),i=n.data.slice(o.rootDirectoryOffset,o.rootDirectoryOffset+o.rootDirectoryLength),a=`${e.getKey()}|${o.etag||""}|${o.rootDirectoryOffset}|${o.rootDirectoryLength}`,l=xo(yield t(i,o.internalCompression));return[o,[a,l.length,l]]})}Ee(Eo,"getHeaderAndRoot");function So(e,t,n,r,o){return Fe(this,null,function*(){let i=yield e.getBytes(n,r,void 0,o.etag),a=yield t(i.data,o.internalCompression),l=xo(a);if(l.length===0)throw new Error("Empty directory is invalid");return l})}Ee(So,"getDirectory");var $u=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return Fe(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,r.data;let o=yield Eo(t,this.decompress);return o[1]&&this.cache.set(o[1][0],{lastUsed:this.counter++,data:o[1][2]}),this.cache.set(n,{lastUsed:this.counter++,data:o[0]}),this.prune(),o[0]})}getDirectory(t,n,r,o){return Fe(this,null,function*(){let i=`${t.getKey()}|${o.etag||""}|${n}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,a.data;let l=yield So(t,this.decompress,n,r,o);return this.cache.set(i,{lastUsed:this.counter++,data:l}),this.prune(),l})}prune(){if(this.cache.size>this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return Fe(this,null,function*(){this.cache.delete(t.getKey())})}};Ee($u,"ResolvedValueCache");var La=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return Fe(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,yield r.data;let o=new Promise((i,a)=>{Eo(t,this.decompress).then(l=>{l[1]&&this.cache.set(l[1][0],{lastUsed:this.counter++,data:Promise.resolve(l[1][2])}),i(l[0]),this.prune()}).catch(l=>{a(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:o}),o})}getDirectory(t,n,r,o){return Fe(this,null,function*(){let i=`${t.getKey()}|${o.etag||""}|${n}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,yield a.data;let l=new Promise((c,u)=>{So(t,this.decompress,n,r,o).then(m=>{c(m),this.prune()}).catch(m=>{u(m)})});return this.cache.set(i,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return Fe(this,null,function*(){let n=t.getKey();if(this.invalidations.get(n))return yield this.invalidations.get(n);this.cache.delete(t.getKey());let r=new Promise((o,i)=>{this.getHeader(t).then(a=>{o(),this.invalidations.delete(n)}).catch(a=>{i(a)})});this.invalidations.set(n,r)})}};Ee(La,"SharedPromiseCache");var ju=La,Na=class{constructor(t,n,r){typeof t=="string"?this.source=new Pu(t):this.source=t,r?this.decompress=r:this.decompress=gr,n?this.cache=n:this.cache=new ju}getHeader(){return Fe(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,n,r,o){return Fe(this,null,function*(){let i=Ra(t,n,r),a=yield this.cache.getHeader(this.source);if(t<a.minZoom||t>a.maxZoom)return;let l=a.rootDirectoryOffset,c=a.rootDirectoryLength;for(let u=0;u<=3;u++){let m=yield this.cache.getDirectory(this.source,l,c,a),d=Pa(m,i);if(d){if(d.runLength>0){let p=yield this.source.getBytes(a.tileDataOffset+d.offset,d.length,o,a.etag);return{data:yield this.decompress(p.data,a.tileCompression),cacheControl:p.cacheControl,expires:p.expires}}l=a.leafDirectoryOffset+d.offset,c=d.length}else return}throw new Error("Maximum directory depth exceeded")})}getZxy(t,n,r,o){return Fe(this,null,function*(){try{return yield this.getZxyAttempt(t,n,r,o)}catch(i){if(i instanceof so)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,n,r,o);throw i}})}getMetadataAttempt(){return Fe(this,null,function*(){let t=yield this.cache.getHeader(this.source),n=yield this.source.getBytes(t.jsonMetadataOffset,t.jsonMetadataLength,void 0,t.etag),r=yield this.decompress(n.data,t.internalCompression),o=new TextDecoder("utf-8");return JSON.parse(o.decode(r))})}getMetadata(){return Fe(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof so)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return Fe(this,null,function*(){let n=yield this.getHeader(),r=yield this.getMetadata(),o=Aa(n.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${t}/{z}/{x}/{y}${o}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[n.minLon,n.minLat,n.maxLon,n.maxLat],center:[n.centerLon,n.centerLat,n.centerZoom],minzoom:n.minZoom,maxzoom:n.maxZoom}})}};Ee(Na,"PMTiles");var di=Na;const Mu=X.createContext(null);function Lu(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 Ze(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(!Ze(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)||!Ze(e[o],t[o]))return!1;return!0}return!1}function fi(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function mi(e,t){const n=t.viewState||t,r={};if("longitude"in n&&"latitude"in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){const o=e.center.constructor;r.center=new o(n.longitude,n.latitude)}return"zoom"in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),"bearing"in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),"pitch"in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!Ze(n.padding,e.padding)&&(r.padding=n.padding),r}const Nu=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function pi(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 Nu)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const hi={version:8,sources:{},layers:[]},gi={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"},yi={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"},vi={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"},Iu=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Du=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class cn{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=o=>{const i=this.props[vi[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onCameraEvent=o=>{if(this._internalUpdate)return;o.viewState=this._propsedCameraUpdate||fi(this._map.transform);const i=this.props[yi[o.type]];i&&i(o)},this._onCameraUpdate=o=>this._internalUpdate?o:(this._propsedCameraUpdate=fi(o),mi(o,this.props)),this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[gi[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._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n),o=this._updateSize(t),i=this._updateViewState(t);this._updateStyle(t,n),this._updateStyleComponents(t),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=cn.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:l}=t;return l&&(l.bounds?o.fitBounds(l.bounds,{...l.fitBoundsOptions,duration:0}):r._updateViewState(l)),o.isStyleLoaded()?o.fire("load"):o.once("style.load",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=hi}=n,o={...n,...n.initialViewState,container:t,style:pi(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 l=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=l,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),a.transformCameraUpdate=this._onCameraUpdate,a.on("style.load",()=>{var l;this._styleComponents={light:a.getLight(),sky:a.getSky(),projection:(l=a.getProjection)==null?void 0:l.call(a),terrain:a.getTerrain()},this._updateStyleComponents(this.props)}),a.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const l in gi)a.on(l,this._onPointerEvent);for(const l in yi)a.on(l,this._onCameraEvent);for(const l in vi)a.on(l,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),cn.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_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){const n=this._map,r=n.transform;if(!n.isMoving()){const i=mi(r,t);if(Object.keys(i).length>0)return this._internalUpdate=!0,n.jumpTo(i),this._internalUpdate=!1,!0}return!1}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of Iu)if(i in t&&!Ze(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=hi,styleDiffing:o=!0}=t,i={diff:o};"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(pi(r),i)}}_updateStyleComponents({light:t,projection:n,sky:r,terrain:o}){var l,c;const i=this._map,a=this._styleComponents;i.style._loaded&&(t&&!Ze(t,a.light)&&(a.light=t,i.setLight(t)),n&&!Ze(n,a.projection)&&n!==((l=a.projection)==null?void 0:l.type)&&(a.projection=typeof n=="string"?{type:n}:n,(c=i.setProjection)==null||c.call(i,a.projection)),r&&!Ze(r,a.sky)&&(a.sky=r,i.setSky(r)),o!==void 0&&!Ze(o,a.terrain)&&(!o||i.getSource(o.source))&&(a.terrain=o,i.setTerrain(o)))}_updateHandlers(t,n){const r=this._map;for(const o of Du){const i=t[o]??!0,a=n[o]??!0;Ze(i,a)||(i?r[o].enable(i):r[o].disable())}}_queryRenderedFeatures(t){const n=this._map,{interactiveLayerIds:r=[]}=this.props;try{return n.queryRenderedFeatures(t,{layers:r.filter(n.getLayer.bind(n))})}catch{return[]}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,a=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}}cn.savedMaps=[];const Fu=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Bu(e){if(!e)return null;const t=e.map,n={getMap:()=>t};for(const r of zu(t))!(r in n)&&!Fu.includes(r)&&(n[r]=t[r].bind(t));return n}function zu(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 Vu=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Uu(e,t){const{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:o,workerUrl:i}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"){const{pluginUrl:a,lazy:l=!0}=typeof n=="string"?{pluginUrl:n}:n;e.setRTLTextPlugin(a,c=>{c&&console.error(c)},l)}r!==void 0&&e.setMaxParallelImageRequests(r),o!==void 0&&e.setWorkerCount(o),i!==void 0&&e.setWorkerUrl(i)}const fn=X.createContext(null);function qu(e,t){const n=v.useContext(Mu),[r,o]=v.useState(null),i=v.useRef(),{current:a}=v.useRef({mapLib:null,map:null});v.useEffect(()=>{const u=e.mapLib;let m=!0,d;return Promise.resolve(u||import("maplibre-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const _="Map"in p?p:p.default;if(!_.Map)throw new Error("Invalid mapLib");Uu(_,e),e.reuseMaps&&(d=cn.reuse(e,i.current)),d||(d=new cn(_.Map,e,i.current)),a.map=Bu(d),a.mapLib=_,o(d),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:_}=e;_?_({type:"error",target:null,originalEvent:null,error:p}):console.error(p)}),()=>{m=!1,d&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?d.recycle():d.destroy())}},[]),Vu(()=>{r&&r.setProps(e)}),v.useImperativeHandle(t,()=>a.map,[r]);const l=v.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:i,style:l},r&&X.createElement(fn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Wu=X.forwardRef(qu),Hu=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function bt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Hu.test(r)?n[r]=`${o}px`:n[r]=o}}function Ia(e,t){if(e===t)return null;const n=bi(e),r=bi(t),o=[];for(const i of r)n.has(i)||o.push(i);for(const i of n)r.has(i)||o.push(i);return o.length===0?null:o}function bi(e){return new Set(e?e.trim().split(/\s+/):[])}v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(fn),o=v.useRef({props:e}),i=v.useMemo(()=>{let E=!1;X.Children.forEach(e.children,j=>{j&&(E=!0)});const T={...e,element:E?document.createElement("div"):void 0},k=new r.Marker(T);return k.setLngLat([e.longitude,e.latitude]),k.getElement().addEventListener("click",j=>{var C,z;(z=(C=o.current.props).onClick)==null||z.call(C,{type:"click",target:k,originalEvent:j})}),k.on("dragstart",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragStart)==null||y.call(z,C)}),k.on("drag",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDrag)==null||y.call(z,C)}),k.on("dragend",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragEnd)==null||y.call(z,C)}),k},[]);v.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:d=null,rotation:p=0,rotationAlignment:_="auto",pitchAlignment:b="auto"}=e;v.useEffect(()=>{bt(i.getElement(),u)},[u]),v.useImperativeHandle(t,()=>i,[]);const f=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Lu(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==_&&i.setRotationAlignment(_),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==d&&i.setPopup(d);const x=Ia(f.className,e.className);if(x)for(const E of x)i.toggleClassName(E);return o.current.props=e,hr.createPortal(e.children,i.getElement())}));const Yu=v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(fn),o=v.useMemo(()=>document.createElement("div"),[]),i=v.useRef({props:e}),a=v.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,d;(d=(m=i.current.props).onOpen)==null||d.call(m,u)}),c},[]);if(v.useEffect(()=>{const l=c=>{var u,m;(m=(u=i.current.props).onClose)==null||m.call(u,c)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),v.useEffect(()=>{bt(a.getElement(),e.style)},[e.style]),v.useImperativeHandle(t,()=>a,[]),a.isOpen()){const l=i.current.props;(a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Ze(l.offset,e.offset)&&a.setOffset(e.offset),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth));const c=Ia(l.className,e.className);if(c)for(const u of c)a.toggleClassName(u);i.current.props=e}return hr.createPortal(e.children,o)}));function Dt(e,t,n,r){const o=v.useContext(fn),i=v.useMemo(()=>e(o),[]);return v.useEffect(()=>{const a=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(i)||c.addControl(i,a==null?void 0:a.position),()=>{l&&l(o),c.hasControl(i)&&c.removeControl(i)}},[]),i}function Ku(e){const t=Dt(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(Ku);function Zu(e){const t=Dt(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return v.useEffect(()=>{bt(t._controlContainer,e.style)},[e.style]),null}v.memo(Zu);function Gu(e,t){const n=v.useRef({props:e}),r=Dt(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=()=>{i._container.hasChildNodes()||a()},i.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),i.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),i.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),i.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),i.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),i},{position:e.position});return n.current.props=e,v.useImperativeHandle(t,()=>r,[]),v.useEffect(()=>{bt(r._container,e.style)},[e.style]),null}v.memo(v.forwardRef(Gu));function Ju(e){const t=Dt(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}const Xu=v.memo(Ju);function Qu(e){const t=Dt(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=v.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),v.useEffect(()=>{bt(t._container,o)},[o]),null}v.memo(Qu);function ed(e){const t=Dt(({mapLib:n})=>new n.TerrainControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(ed);function td(e){const t=Dt(({mapLib:n})=>new n.LogoControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(td);function dr(e,t){if(!e)throw new Error(t)}let nd=0;function rd(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 od(e,t,n){var a,l,c;dr(t.id===n.id,"source id changed"),dr(t.type===n.type,"source type changed");let r="",o=0;for(const u in t)u!=="children"&&u!=="id"&&!Ze(n[u],t[u])&&(r=u,o++);if(!o)return;const i=t.type;if(i==="geojson")e.setData(t.data);else if(i==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else switch(r){case"coordinates":(a=e.setCoordinates)==null||a.call(e,t.coordinates);break;case"url":(l=e.setUrl)==null||l.call(e,t.url);break;case"tiles":(c=e.setTiles)==null||c.call(e,t.tiles);break;default:console.warn(`Unable to update <Source> prop: ${r}`)}}function id(e){const t=v.useContext(fn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-source-${nd++}`,[]);v.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",a),a(),()=>{var l;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?od(i,e,n.current):i=rd(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&v.cloneElement(a,{source:o}))||null}function ad(e,t,n,r){if(dr(n.id===r.id,"layer id changed"),dr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const m=r.layout||{};for(const d in o)Ze(o[d],m[d])||e.setLayoutProperty(t,d,o[d]);for(const d in m)o.hasOwnProperty(d)||e.setLayoutProperty(t,d,void 0)}if(i!==r.paint){const m=r.paint||{};for(const d in i)Ze(i[d],m[d])||e.setPaintProperty(t,d,i[d]);for(const d in m)i.hasOwnProperty(d)||e.setPaintProperty(t,d,void 0)}Ze(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function sd(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 ld=0;function cd(e){const t=v.useContext(fn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-layer-${ld++}`,[]);if(v.useEffect(()=>{if(t){const a=()=>r(l=>l+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{ad(t,o,e,n.current)}catch(a){console.warn(a)}else sd(t,o,e);return n.current=e,null}const ud="_mapContainer_ivruh_3",dd={mapContainer:ud},fd="_FeaturePopUp_1gd6w_2",md="_title_1gd6w_2",_i={FeaturePopUp:fd,title:md},pd=({props:e})=>{const{t}=Oe.useTranslation();return h.jsx("div",{className:_i.FeaturePopUp,children:e.map(n=>h.jsxs("p",{children:[h.jsxs("span",{className:_i.title,children:[h.jsx(Oe.Trans,{i18nKey:n.name,components:{sup:h.jsx("sup",{})}}),": "]}),n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]}))})},Da=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:l=[],sources:c=[],layers:u=[],filters:m,popUpParams:d,onClosePopUp:p,showTexts:_})=>{console.log(m);const b=v.useRef();return v.useEffect(()=>{if(b.current){const f=b.current.getMap();f.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(_?f.setLayoutProperty(E.id,"visibility","visible"):f.setLayoutProperty(E.id,"visibility","none"))})}},[_]),v.useEffect(()=>{let f=new Su;return Lo.addProtocol("pmtiles",f.tile),()=>{Lo.removeProtocol("pmtiles")}},[]),h.jsx("div",{className:`${dd.mapContainer}`,style:i&&i,children:h.jsxs(Wu,{initialViewState:e,ref:b,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[c.length&&c.map((f,x)=>h.jsx(id,{...f,children:u.length&&u.map((E,T)=>{if(E.sourceId==f.id)return h.jsx(cd,{...E.layer,beforeId:o,filter:m&&m},T)})},x)),h.jsx(Xu,{position:"bottom-right",visualizePitch:!0}),d&&h.jsx(Yu,{longitude:d.lng,latitude:d.lat,onClose:p,children:h.jsx(pd,{props:d.props})})]})})};Da.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})})),showTexts:s.bool,filters:s.array,popUpParams:s.object,onClosePopUp:s.func};const hd="_sectionBar_2vnc3_2",gd="_leftContent_2vnc3_13",yd="_textContainer_2vnc3_19",vd="_title_2vnc3_26",bd="_subtitle_2vnc3_32",_d="_rightContent_2vnc3_37",Lt={sectionBar:hd,leftContent:gd,textContainer:yd,title:vd,subtitle:bd,rightContent:_d},Fa=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o})=>{const{t:i}=Oe.useTranslation();return h.jsxs("div",{className:Lt.sectionBar,children:[h.jsxs("div",{className:Lt.leftContent,children:[e&&h.jsx("img",{src:e,alt:"Icono",className:Lt.icon}),h.jsxs("div",{className:Lt.textContainer,children:[h.jsx("div",{className:Lt.title,style:o?{color:o}:{},children:i(t)}),n&&h.jsx("div",{className:Lt.subtitle,children:n})]})]}),h.jsx("div",{className:Lt.rightContent,children:r})]})};Fa.propTypes={leftIcon:s.node.isRequired,title:s.string.isRequired,subtitle:s.string,rightContent:s.node.isRequired,mainColor:s.string};const Cd=Ki.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:C0,setYear:Zr,setActiveIndicatorKey:x0,setActiveIndicatorType:E0,setActiveIndicatorUnit:S0}=Cd.actions,xd="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",Ed="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 _t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function B(){return B=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},B.apply(null,arguments)}function Ba(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=Ba(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ba(e))&&(r&&(r+=" "),r+=t);return r}function Ci(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Sd(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}var Ae={},Gr={exports:{}},xi;function za(){return xi||(xi=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gr)),Gr.exports}function $n(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Td=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),wd=kt(Td);function nn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const kd=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),Od=kt(kd);var Ei;function Rd(){if(Ei)return Ae;Ei=1;var e=za();Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.alpha=b,Ae.blend=z,Ae.colorChannel=void 0,Ae.darken=x,Ae.decomposeColor=a,Ae.emphasize=j,Ae.getContrastRatio=_,Ae.getLuminance=p,Ae.hexToRgb=o,Ae.hslToRgb=d,Ae.lighten=T,Ae.private_safeAlpha=f,Ae.private_safeColorChannel=void 0,Ae.private_safeDarken=E,Ae.private_safeEmphasize=C,Ae.private_safeLighten=k,Ae.recomposeColor=u,Ae.rgbToHex=m;var t=e(wd),n=e(Od);function r(y,w=0,S=1){return process.env.NODE_ENV!=="production"&&(y<w||y>S)&&console.error(`MUI: The value provided ${y} is out of range [${w}, ${S}].`),(0,n.default)(y,w,S)}function o(y){y=y.slice(1);const w=new RegExp(`.{1,${y.length>=6?2:1}}`,"g");let S=y.match(w);return S&&S[0].length===1&&(S=S.map(A=>A+A)),S?`rgb${S.length===4?"a":""}(${S.map((A,N)=>N<3?parseInt(A,16):Math.round(parseInt(A,16)/255*1e3)/1e3).join(", ")})`:""}function i(y){const w=y.toString(16);return w.length===1?`0${w}`:w}function a(y){if(y.type)return y;if(y.charAt(0)==="#")return a(o(y));const w=y.indexOf("("),S=y.substring(0,w);if(["rgb","rgba","hsl","hsla","color"].indexOf(S)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${y}\` color.
52
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,y));let A=y.substring(w+1,y.length-1),N;if(S==="color"){if(A=A.split(" "),N=A.shift(),A.length===4&&A[3].charAt(0)==="/"&&(A[3]=A[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(N)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${N}\` color space.
53
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,N))}else A=A.split(",");return A=A.map(H=>parseFloat(H)),{type:S,values:A,colorSpace:N}}const l=y=>{const w=a(y);return w.values.slice(0,3).map((S,A)=>w.type.indexOf("hsl")!==-1&&A!==0?`${S}%`:S).join(" ")};Ae.colorChannel=l;const c=(y,w)=>{try{return l(y)}catch{return w&&process.env.NODE_ENV!=="production"&&console.warn(w),y}};Ae.private_safeColorChannel=c;function u(y){const{type:w,colorSpace:S}=y;let{values:A}=y;return w.indexOf("rgb")!==-1?A=A.map((N,H)=>H<3?parseInt(N,10):N):w.indexOf("hsl")!==-1&&(A[1]=`${A[1]}%`,A[2]=`${A[2]}%`),w.indexOf("color")!==-1?A=`${S} ${A.join(" ")}`:A=`${A.join(", ")}`,`${w}(${A})`}function m(y){if(y.indexOf("#")===0)return y;const{values:w}=a(y);return`#${w.map((S,A)=>i(A===3?Math.round(255*S):S)).join("")}`}function d(y){y=a(y);const{values:w}=y,S=w[0],A=w[1]/100,N=w[2]/100,H=A*Math.min(N,1-N),V=(ie,re=(ie+S/30)%12)=>N-H*Math.max(Math.min(re-3,9-re,1),-1);let ce="rgb";const Y=[Math.round(V(0)*255),Math.round(V(8)*255),Math.round(V(4)*255)];return y.type==="hsla"&&(ce+="a",Y.push(w[3])),u({type:ce,values:Y})}function p(y){y=a(y);let w=y.type==="hsl"||y.type==="hsla"?a(d(y)).values:y.values;return w=w.map(S=>(y.type!=="color"&&(S/=255),S<=.03928?S/12.92:((S+.055)/1.055)**2.4)),Number((.2126*w[0]+.7152*w[1]+.0722*w[2]).toFixed(3))}function _(y,w){const S=p(y),A=p(w);return(Math.max(S,A)+.05)/(Math.min(S,A)+.05)}function b(y,w){return y=a(y),w=r(w),(y.type==="rgb"||y.type==="hsl")&&(y.type+="a"),y.type==="color"?y.values[3]=`/${w}`:y.values[3]=w,u(y)}function f(y,w,S){try{return b(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function x(y,w){if(y=a(y),w=r(w),y.type.indexOf("hsl")!==-1)y.values[2]*=1-w;else if(y.type.indexOf("rgb")!==-1||y.type.indexOf("color")!==-1)for(let S=0;S<3;S+=1)y.values[S]*=1-w;return u(y)}function E(y,w,S){try{return x(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function T(y,w){if(y=a(y),w=r(w),y.type.indexOf("hsl")!==-1)y.values[2]+=(100-y.values[2])*w;else if(y.type.indexOf("rgb")!==-1)for(let S=0;S<3;S+=1)y.values[S]+=(255-y.values[S])*w;else if(y.type.indexOf("color")!==-1)for(let S=0;S<3;S+=1)y.values[S]+=(1-y.values[S])*w;return u(y)}function k(y,w,S){try{return T(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function j(y,w=.15){return p(y)>.5?x(y,w):T(y,w)}function C(y,w,S){try{return j(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function z(y,w,S,A=1){const N=(Y,ie)=>Math.round((Y**(1/A)*(1-S)+ie**(1/A)*S)**A),H=a(y),V=a(w),ce=[N(H.values[0],V.values[0]),N(H.values[1],V.values[1]),N(H.values[2],V.values[2])];return u({type:"rgb",values:ce})}return Ae}var pt=Rd();const Ad=X.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const Pd=()=>{const e=X.useContext(Ad);return e??!1};function $d(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lo(...e){return X.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{$d(n,t)})},e)}function An(e){return typeof e=="string"}function jd(e,t,n){return e===void 0||An(e)?t:B({},t,{ownerState:B({},t.ownerState,n)})}function ir(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 Si(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 Md(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const _=wt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b=B({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=B({},n,o,r);return _.length>0&&(f.className=_),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=ir(B({},o,r)),l=Si(r),c=Si(o),u=t(a),m=wt(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=B({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=B({},u,n,c,l);return m.length>0&&(p.className=m),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function Ld(e,t,n){return typeof e=="function"?e(t,n):e}const Nd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function St(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_t(e,Nd),l=i?{}:Ld(r,o),{props:c,internalRef:u}=Md(B({},a,{externalSlotProps:l})),m=lo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return jd(n,B({},c,{ref:m}),o)}function Tt(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 Va(e){if(X.isValidElement(e)||!Tt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Va(e[n])}),t}function ht(e,t,n={clone:!0}){const r=n.clone?B({},e):e;return Tt(e)&&Tt(t)&&Object.keys(t).forEach(o=>{X.isValidElement(t[o])?r[o]=t[o]:Tt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Tt(e[o])?r[o]=ht(e[o],t[o],n):n.clone?r[o]=Tt(t[o])?Va(t[o]):t[o]:r[o]=t[o]}),r}const Id=Object.freeze(Object.defineProperty({__proto__:null,default:ht,isPlainObject:Tt},Symbol.toStringTag,{value:"Module"}));var Jn={exports:{}},Ce={};/**
48
+ */var Nr,Wo;function Ks(){if(Wo)return Nr;Wo=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={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(m){u[m]=m}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nr=o()?Object.assign:function(i,a){for(var l,c=r(i),u,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var p=0;p<u.length;p++)n.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},Nr}var Ir,Ho;function go(){if(Ho)return Ir;Ho=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ir=e,Ir}var Dr,Yo;function Xi(){return Yo||(Yo=1,Dr=Function.call.bind(Object.prototype.hasOwnProperty)),Dr}var Fr,Ko;function Zs(){if(Ko)return Fr;Ko=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=go(),n={},r=Xi();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var f;try{if(typeof i[m]!="function"){var p=Error((c||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=i[m](a,m,c,l,null,t)}catch(_){f=_}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var v=u?u():"";e("Failed "+l+" type: "+f.message+(v??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Fr=o,Fr}var Br,Zo;function Gs(){if(Zo)return Br;Zo=1;var e=Ji(),t=Ks(),n=go(),r=Xi(),o=Zs(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Br=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function f(k){var M=k&&(u&&k[u]||k[m]);if(typeof M=="function")return M}var p="<<anonymous>>",v={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:R(),arrayOf:A,element:O(),elementType:C(),instanceOf:F,node:P(),objectOf:T,oneOf:y,oneOfType:S,shape:H,exact:V};function _(k,M){return k===M?k!==0||1/k===1/M:k!==k&&M!==M}function d(k,M){this.message=k,this.data=M&&typeof M=="object"?M:{},this.stack=""}d.prototype=Error.prototype;function x(k){if(process.env.NODE_ENV!=="production")var M={},Q=0;function q(ee,Z,K,U,G,ne,be){if(U=U||p,ne=ne||K,be!==n){if(c){var $=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 $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _e=U+":"+K;!M[_e]&&Q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ne+"` 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."),M[_e]=!0,Q++)}}return Z[K]==null?ee?Z[K]===null?new d("The "+G+" `"+ne+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new d("The "+G+" `"+ne+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:k(Z,K,U,G,ne)}var B=q.bind(null,!1);return B.isRequired=q.bind(null,!0),B}function E(k){function M(Q,q,B,ee,Z,K){var U=Q[q],G=ie(U);if(G!==k){var ne=re(U);return new d("Invalid "+ee+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+B+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return x(M)}function R(){return x(a)}function A(k){function M(Q,q,B,ee,Z){if(typeof k!="function")return new d("Property `"+Z+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var K=Q[q];if(!Array.isArray(K)){var U=ie(K);return new d("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+B+"`, expected an array."))}for(var G=0;G<K.length;G++){var ne=k(K,G,B,ee,Z+"["+G+"]",n);if(ne instanceof Error)return ne}return null}return x(M)}function O(){function k(M,Q,q,B,ee){var Z=M[Q];if(!l(Z)){var K=ie(Z);return new d("Invalid "+B+" `"+ee+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return x(k)}function C(){function k(M,Q,q,B,ee){var Z=M[Q];if(!e.isValidElementType(Z)){var K=ie(Z);return new d("Invalid "+B+" `"+ee+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return x(k)}function F(k){function M(Q,q,B,ee,Z){if(!(Q[q]instanceof k)){var K=k.name||p,U=Pe(Q[q]);return new d("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+B+"`, expected ")+("instance of `"+K+"`."))}return null}return x(M)}function y(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function M(Q,q,B,ee,Z){for(var K=Q[q],U=0;U<k.length;U++)if(_(K,k[U]))return null;var G=JSON.stringify(k,function(be,$){var _e=re($);return _e==="symbol"?String($):$});return new d("Invalid "+ee+" `"+Z+"` of value `"+String(K)+"` "+("supplied to `"+B+"`, expected one of "+G+"."))}return x(M)}function T(k){function M(Q,q,B,ee,Z){if(typeof k!="function")return new d("Property `"+Z+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var K=Q[q],U=ie(K);if(U!=="object")return new d("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+B+"`, expected an object."));for(var G in K)if(r(K,G)){var ne=k(K,G,B,ee,Z+"."+G,n);if(ne instanceof Error)return ne}return null}return x(M)}function S(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var M=0;M<k.length;M++){var Q=k[M];if(typeof Q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+we(Q)+" at index "+M+"."),a}function q(B,ee,Z,K,U){for(var G=[],ne=0;ne<k.length;ne++){var be=k[ne],$=be(B,ee,Z,K,U,n);if($==null)return null;$.data&&r($.data,"expectedType")&&G.push($.data.expectedType)}var _e=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new d("Invalid "+K+" `"+U+"` supplied to "+("`"+Z+"`"+_e+"."))}return x(q)}function P(){function k(M,Q,q,B,ee){return ce(M[Q])?null:new d("Invalid "+B+" `"+ee+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return x(k)}function N(k,M,Q,q,B){return new d((k||"React class")+": "+M+" type `"+Q+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function H(k){function M(Q,q,B,ee,Z){var K=Q[q],U=ie(K);if(U!=="object")return new d("Invalid "+ee+" `"+Z+"` of type `"+U+"` "+("supplied to `"+B+"`, expected `object`."));for(var G in k){var ne=k[G];if(typeof ne!="function")return N(B,ee,Z,G,re(ne));var be=ne(K,G,B,ee,Z+"."+G,n);if(be)return be}return null}return x(M)}function V(k){function M(Q,q,B,ee,Z){var K=Q[q],U=ie(K);if(U!=="object")return new d("Invalid "+ee+" `"+Z+"` of type `"+U+"` "+("supplied to `"+B+"`, expected `object`."));var G=t({},Q[q],k);for(var ne in G){var be=k[ne];if(r(k,ne)&&typeof be!="function")return N(B,ee,Z,ne,re(be));if(!be)return new d("Invalid "+ee+" `"+Z+"` key `"+ne+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(Q[q],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys(k),null," "));var $=be(K,ne,B,ee,Z+"."+ne,n);if($)return $}return null}return x(M)}function ce(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(ce);if(k===null||l(k))return!0;var M=f(k);if(M){var Q=M.call(k),q;if(M!==k.entries){for(;!(q=Q.next()).done;)if(!ce(q.value))return!1}else for(;!(q=Q.next()).done;){var B=q.value;if(B&&!ce(B[1]))return!1}}else return!1;return!0;default:return!1}}function Y(k,M){return k==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function ie(k){var M=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":Y(M,k)?"symbol":M}function re(k){if(typeof k>"u"||k===null)return""+k;var M=ie(k);if(M==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return M}function we(k){var M=re(k);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function Pe(k){return!k.constructor||!k.constructor.name?p:k.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},Br}var zr,Go;function Js(){if(Go)return zr;Go=1;var e=go();function t(){}function n(){}return n.resetWarningCache=t,zr=function(){function r(a,l,c,u,m,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}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},zr}var Jo;function Xs(){if(Jo)return Hn.exports;if(Jo=1,process.env.NODE_ENV!=="production"){var e=Ji(),t=!0;Hn.exports=Gs()(e.isElement,t)}else Hn.exports=Js()();return Hn.exports}var Qs=Xs();const s=Gi(Qs),Qi=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isBeingProcessed:i,isActive:a,activeColor:l,fontColor:c,moreInfo:u})=>{const{name:m,date:f,id:p}=e;return h.jsxs("div",{className:xn.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[h.jsxs("div",{className:xn.ambitNameDate,onClick:()=>o(p),children:[h.jsxs("div",{className:xn.ambitName,children:[h.jsx("img",{src:a?qs:Ws}),h.jsx("span",{style:{color:a?l:c},children:m})]}),h.jsx("div",{className:xn.ambitDate,children:new Date(f).toLocaleDateString()})]}),h.jsxs("div",{className:xn.ambitButtons,children:[i&&h.jsx("img",{src:zo}),h.jsx("button",{onClick:()=>r(p),children:h.jsx("img",{src:zo})}),h.jsx("button",{onClick:()=>t(p),children:h.jsx("img",{src:Us})}),h.jsx("button",{onClick:()=>n(p),children:h.jsx("img",{src:Vs})})]})]})};Qi.propTypes={ambit:s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired}).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 el="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",ea=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,onClickCopy:a=m=>console.log(`Copy ambit: ${m}`),onCLickDelete:l=m=>console.log(`Delete ambit: ${m}`),onClickFilters:c=m=>console.log(`Filters clicked: ${m}`),onClickAmbit:u=m=>console.log(`OnCLickAmbit: ${m}`)})=>{const{t:m}=Oe.useTranslation();return h.jsxs("div",{className:Yt.ambitSelector,style:{color:n},children:[h.jsxs("div",{className:Yt.header,style:{borderBottom:`1px solid ${n}`},children:[h.jsxs("div",{className:Yt.nameDateContainer,children:[h.jsx("div",{className:Yt.ambitName,children:h.jsx("span",{children:m(o)})}),h.jsx("div",{className:Yt.ambitDate,children:h.jsx("span",{children:m(i)})})]}),h.jsx("div",{className:Yt.buttonsContainer})]}),e&&e.length>0&&e.map(f=>h.jsx(Qi,{isActive:t==f.id,ambit:f,fontColor:n,activeColor:r,onClickCopy:a,onClickDelete:l,onClickFilters:c,onClickAmbit:u},`ambitKey${f.id}`))]})};ea.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};const tl="_buttonsContainer_1audx_2",nl="_vertical_1audx_6",rl="_horizontal_1audx_9",ol="_button_1audx_2",il="_active_1audx_25",al="_buttonName_1audx_28",jt={buttonsContainer:tl,vertical:nl,horizontal:rl,button:ol,active:il,buttonName:al},sl="_left_19lnt_3",ll="_top_19lnt_33",cl="_bottom_19lnt_66",ul="_right_19lnt_97",dl={left:sl,top:ll,bottom:cl,right:ul},yo=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=Oe.useTranslation();return h.jsx("div",{className:`tooltip ${dl[t]}`,style:n,children:r(e)})};yo.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const ta=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=Oe.useTranslation();return h.jsx("div",{className:`${jt.buttonsContainer} ${t==="vertical"&&jt.vertical}
50
+ ${t==="horizontal"&&jt.horizontal}`,children:e.map((l,c)=>{const{icon:u,activeIcon:m,isActive:f,name:p,onClick:v}=l,_=h.jsxs(h.Fragment,{children:[n&&r==="left"&&h.jsx("span",{className:jt.buttonName,children:a(p)}),h.jsx("img",{src:f?m:u,alt:a(p)}),n&&r==="right"&&h.jsx("span",{className:jt.buttonName,children:a(p)})]});return h.jsxs("div",{className:"tooltip-parent",children:[h.jsx("button",{onClick:v,className:`${jt.button}
51
+ ${f&&jt.active}`,children:_}),o&&h.jsx(yo,{text:p,position:i})]},c)})})};ta.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func})).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 fl="_indicatorsCategory_1cu33_2",ml="_title_1cu33_5",pl="_list_1cu33_11",Vr={indicatorsCategory:fl,title:ml,list:pl},Ot=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:m}=Oe.useTranslation();return h.jsxs(ho.motion.div,{className:Vr.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&c?`1px solid ${o}`:"0px",marginBottom:e?"20px":"0px"},children:[h.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Vr.title}`,onClick:t,children:[h.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:e?o:r},children:m(i)})]}),h.jsx("div",{className:Vr.content,children:n})]})};Ot.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 hl=()=>h.jsx("div",{children:"EditAmbit"}),gl="_AppliedFiltersContainer_s8ooe_2",yl="_AppliedFilterContent_s8ooe_10",Xo={AppliedFiltersContainer:gl,AppliedFilterContent:yl},Ve=Es.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),na=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=Oe.useTranslation(),{tematicalFiltersSelected:a}=Ve(c=>c),l=c=>{Ve.setState(u=>({tematicalFiltersSelected:u.tematicalFiltersSelected.filter(m=>m.code!==c)}))};return h.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Applied Filters",children:h.jsx("div",{className:Xo.AppliedFiltersContainer,children:a==null?void 0:a.map((c,u)=>h.jsxs("div",{className:Xo.AppliedFilterContent,style:{color:r,background:o},children:[c.code,h.jsx("img",{src:el,alt:"CloseIcon",onClick:()=>l(c.code),style:{cursor:"pointer"}})]},u))})})};na.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}))};const ra=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=Oe.useTranslation();return Ve(a=>a),h.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Geographical Filters",children:"A"})};ra.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string};const vl=[{category:"Arq",name:"indicators.arq",haveFilters:!0,escenariFilters:!0,subcategories:[{subcategory:"subcPrinc",name:"indicators.arq_princ",indicators:[{ikey:0,name:"indicators.us_prn.title",code:["us_prn"],type:"cat",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",values:[{fillColor:"#FEB740",codename:["Residencial","VincViv"],title:"indicators.us_prn.Residencial"},{fillColor:"#033364",codename:["Público"],title:"indicators.us_prn.Public"},{fillColor:"#5190cb",codename:["EnseñanzaCultural"],title:"indicators.us_prn.EnsenyamentCultural"},{fillColor:"#18ae9a",codename:["Deportivo","Piscinas"],title:"indicators.us_prn.Esportiu"},{fillColor:"#850d15",codename:["Comercial"],title:"indicators.us_prn.Comercial"},{fillColor:"#ee2e39",codename:["HoteleroRestauración"],title:"indicators.us_prn.HotelerRestauracio"},{fillColor:"#ed602e",codename:["Oficinas"],title:"indicators.us_prn.Oficines"},{fillColor:"#843059",codename:["Almacenaje"],title:"indicators.us_prn.Emmagatzematge"},{fillColor:"#CB719D",codename:["Industrial","IndustrialResto"],title:"indicators.us_prn.Industrial"},{fillColor:"#7f7f7f",codename:["Aparcamiento"],title:"indicators.us_prn.Aparcament"},{fillColor:"#dadae3",codename:["OtrosCal","OtrosNoCal","Común","Sin datos","","None","null","undefined"," ","NoCodificado"],title:"indicators.us_prn.None"}],time:!1},{ikey:1,name:"indicators.al_max.title",code:["al_max","al_max_cat"],codeAbs:"al_max",codeCat:"al_max_cat",type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#00544a",midColor:"#00ae9a",minColor:"#00ffe1",minValue:-1,maxValue:14,minValueIndicador:"indicators.al_max.minValueIndicador",maxValueIndicador:"indicators.al_max.maxValueIndicador",unit:"indicators.al_max.unit",values:[{fillColor:"#00544a",codename:["De PB+3 o mes"],title:"indicators.al_max.PB+3"},{fillColor:"#00ae9a",codename:["De PB a PB+2"],title:"indicators.al_max.PB"},{fillColor:"#00ffe1",codename:["De P-1 en avall"],title:"indicators.al_max.De P-1"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.al_max.None"}],time:!1},{ikey:2,name:"indicators.uni_pluri.title",code:["uni_pluri"],type:"cat",category:"Arq",values:[{fillColor:"#BA1C27",codename:["Bloque"],title:"indicators.uni_pluri.Bloc"},{fillColor:"#FEB740",codename:["Colectiva"],title:"indicators.uni_pluri.Colectiva"},{fillColor:"#508FCC",codename:["Unifamiliar"],title:"indicators.uni_pluri.Unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.uni_pluri.None"}],time:!1},{ikey:3,name:"indicators.any_const.title",code:["any_const","any_const_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#D2DBE4",midColor:"#7E98B2",minColor:"#003366",minValue:1900,maxValue:2020,minValueIndicador:"indicators.any_const.minValueIndicador",maxValueIndicador:"indicators.any_const.maxValueIndicador",unit:"indicators.any_const.Unit",values:[{fillColor:"#D2DBE4 ",codename:["De 2008 a 2020"],title:"indicators.any_const.2008Adelante"},{fillColor:"#A8BACB",codename:["De 1981 a 2007"],title:"indicators.any_const.1981-2007"},{fillColor:"#7E98B2",codename:["De 1961 a 1980"],title:"indicators.any_const.1961-1980"},{fillColor:"#547699",codename:["De 1941 a 1960"],title:"indicators.any_const.1941-1960"},{fillColor:"#2A557F",codename:["De 1901 a 1940"],title:"indicators.any_const.1901-1940"},{fillColor:"#003366",codename:["Hasta 1900"],title:"indicators.any_const.hasta-1900"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.any_const.None"}],time:!1},{ikey:4,name:"indicators.num_viv.title",code:["num_viv","num_viv_cat"],type:"abs",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_02",maxColor:"#684A1A",midColor:"#AF7F2C",minColor:"#FEB740",minValue:1,maxValue:40,minValueIndicador:"indicators.num_viv.minValueIndicador",maxValueIndicador:"indicators.num_viv.maxValueIndicador",unit:"indicators.num_viv.unit",time:!1,values:[{fillColor:"#684A1A",codename:["40 o más viviendas"],title:"indicators.num_viv.40+"},{fillColor:"#8A6423",codename:["De 20 a 39 viviendas"],title:"indicators.num_viv.20-39"},{fillColor:"#AF7F2C",codename:["De 10 a 19 viviendas"],title:"indicators.num_viv.10-19"},{fillColor:"#D69A36",codename:["De 5 a 9 viviendas"],title:"indicators.num_viv.5-9"},{fillColor:"#FEB740",codename:["De 2 a 4 viviendas"],title:"indicators.num_viv.2-4"},{fillColor:"#3e77b2",codename:["Unifamiliar"],title:"indicators.num_viv.unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," ","No residencial"],title:"indicators.num_viv.none"}]},{ikey:5,name:"indicators.cluster.title",code:["nom_cluster"],type:"cat",category_ods:"ODS_07",category_aue:"AUE_01",category:"Arq",values:[{fillColor:"#022952",codename:["A"],title:"indicators.cluster.A"},{fillColor:"#033364",codename:["B"],title:"indicators.cluster.B"},{fillColor:"#2A6298",codename:["C"],title:"indicators.cluster.C"},{fillColor:"#5190CB",codename:["D"],title:"indicators.cluster.D"},{fillColor:"#6CA2D4",codename:["E"],title:"indicators.cluster.E"},{fillColor:"#79ABD8",codename:["F"],title:"indicators.cluster.F"},{fillColor:"#605225",codename:["G"],title:"indicators.cluster.G"},{fillColor:"#7B692F",codename:["H"],title:"indicators.cluster.H"},{fillColor:"#BD9037",codename:["I"],title:"indicators.cluster.I"},{fillColor:"#FEB63E",codename:["J"],title:"indicators.cluster.J"},{fillColor:"#FECC7A",codename:["K"],title:"indicators.cluster.K"},{fillColor:"#FED798",codename:["L"],title:"indicators.cluster.L"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.cluster.none"}],time:!1}]},{subcategory:"subcPrinc22",name:"indicators.arq_princ22",indicators:[{ikey:0,name:"indicators.us_prn.title",code:["us_prn"],type:"cat",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",values:[{fillColor:"#FEB740",codename:["Residencial","VincViv"],title:"indicators.us_prn.Residencial"},{fillColor:"#033364",codename:["Público"],title:"indicators.us_prn.Public"},{fillColor:"#5190cb",codename:["EnseñanzaCultural"],title:"indicators.us_prn.EnsenyamentCultural"},{fillColor:"#18ae9a",codename:["Deportivo","Piscinas"],title:"indicators.us_prn.Esportiu"},{fillColor:"#850d15",codename:["Comercial"],title:"indicators.us_prn.Comercial"},{fillColor:"#ee2e39",codename:["HoteleroRestauración"],title:"indicators.us_prn.HotelerRestauracio"},{fillColor:"#ed602e",codename:["Oficinas"],title:"indicators.us_prn.Oficines"},{fillColor:"#843059",codename:["Almacenaje"],title:"indicators.us_prn.Emmagatzematge"},{fillColor:"#CB719D",codename:["Industrial","IndustrialResto"],title:"indicators.us_prn.Industrial"},{fillColor:"#7f7f7f",codename:["Aparcamiento"],title:"indicators.us_prn.Aparcament"},{fillColor:"#dadae3",codename:["OtrosCal","OtrosNoCal","Común","Sin datos","","None","null","undefined"," ","NoCodificado"],title:"indicators.us_prn.None"}],time:!1},{ikey:1,name:"indicators.al_max.title",code:["al_max","al_max_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#00544a",midColor:"#00ae9a",minColor:"#00ffe1",minValue:-1,maxValue:14,minValueIndicador:"indicators.al_max.minValueIndicador",maxValueIndicador:"indicators.al_max.maxValueIndicador",unit:"indicators.al_max.unit",values:[{fillColor:"#00544a",codename:["De PB+3 o mes"],title:"indicators.al_max.PB+3"},{fillColor:"#00ae9a",codename:["De PB a PB+2"],title:"indicators.al_max.PB"},{fillColor:"#00ffe1",codename:["De P-1 en avall"],title:"indicators.al_max.De P-1"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.al_max.None"}],time:!1},{ikey:2,name:"indicators.uni_pluri.title",code:["uni_pluri"],type:"cat",category:"Arq",values:[{fillColor:"#BA1C27",codename:["Bloque"],title:"indicators.uni_pluri.Bloc"},{fillColor:"#FEB740",codename:["Colectiva"],title:"indicators.uni_pluri.Colectiva"},{fillColor:"#508FCC",codename:["Unifamiliar"],title:"indicators.uni_pluri.Unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.uni_pluri.None"}],time:!1},{ikey:3,name:"indicators.any_const.title",code:["any_const","any_const_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#D2DBE4",midColor:"#7E98B2",minColor:"#003366",minValue:1900,maxValue:2020,minValueIndicador:"indicators.any_const.minValueIndicador",maxValueIndicador:"indicators.any_const.maxValueIndicador",unit:"indicators.any_const.Unit",values:[{fillColor:"#D2DBE4 ",codename:["De 2008 a 2020"],title:"indicators.any_const.2008Adelante"},{fillColor:"#A8BACB",codename:["De 1981 a 2007"],title:"indicators.any_const.1981-2007"},{fillColor:"#7E98B2",codename:["De 1961 a 1980"],title:"indicators.any_const.1961-1980"},{fillColor:"#547699",codename:["De 1941 a 1960"],title:"indicators.any_const.1941-1960"},{fillColor:"#2A557F",codename:["De 1901 a 1940"],title:"indicators.any_const.1901-1940"},{fillColor:"#003366",codename:["Hasta 1900"],title:"indicators.any_const.hasta-1900"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.any_const.None"}],time:!1},{ikey:4,name:"indicators.num_viv.title",code:["num_viv","num_viv_cat"],type:"abs",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_02",maxColor:"#684A1A",midColor:"#AF7F2C",minColor:"#FEB740",minValue:1,maxValue:40,minValueIndicador:"indicators.num_viv.minValueIndicador",maxValueIndicador:"indicators.num_viv.maxValueIndicador",unit:"indicators.num_viv.unit",time:!1,values:[{fillColor:"#684A1A",codename:["40 o más viviendas"],title:"indicators.num_viv.40+"},{fillColor:"#8A6423",codename:["De 20 a 39 viviendas"],title:"indicators.num_viv.20-39"},{fillColor:"#AF7F2C",codename:["De 10 a 19 viviendas"],title:"indicators.num_viv.10-19"},{fillColor:"#D69A36",codename:["De 5 a 9 viviendas"],title:"indicators.num_viv.5-9"},{fillColor:"#FEB740",codename:["De 2 a 4 viviendas"],title:"indicators.num_viv.2-4"},{fillColor:"#3e77b2",codename:["Unifamiliar"],title:"indicators.num_viv.unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," ","No residencial"],title:"indicators.num_viv.none"}]},{ikey:5,name:"indicators.cluster.title",code:["nom_cluster"],type:"cat",category_ods:"ODS_07",category_aue:"AUE_01",category:"Arq",values:[{fillColor:"#022952",codename:["A"],title:"indicators.cluster.A"},{fillColor:"#033364",codename:["B"],title:"indicators.cluster.B"},{fillColor:"#2A6298",codename:["C"],title:"indicators.cluster.C"},{fillColor:"#5190CB",codename:["D"],title:"indicators.cluster.D"},{fillColor:"#6CA2D4",codename:["E"],title:"indicators.cluster.E"},{fillColor:"#79ABD8",codename:["F"],title:"indicators.cluster.F"},{fillColor:"#605225",codename:["G"],title:"indicators.cluster.G"},{fillColor:"#7B692F",codename:["H"],title:"indicators.cluster.H"},{fillColor:"#BD9037",codename:["I"],title:"indicators.cluster.I"},{fillColor:"#FEB63E",codename:["J"],title:"indicators.cluster.J"},{fillColor:"#FECC7A",codename:["K"],title:"indicators.cluster.K"},{fillColor:"#FED798",codename:["L"],title:"indicators.cluster.L"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.cluster.none"}],time:!1}]}]},{category:"Ene",name:"indicators.ene",haveFilters:!0,escenariFilters:!0,indicators:[{ikey:6,name:"indicators.cal.title",code:["demanda_cal_m2"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",maxColor:"#EE2C3C",midColor:"#FDB740",minColor:"#00544A",minValue:1,maxValue:120,minValueIndicador:"indicators.cal.minValueIndicador",maxValueIndicador:"indicators.cal.maxValueIndicador",unit:"indicators.cal.unit",time:!0,values:[{fillColor:"#00544A",codename:["Menos de 20 kWh/m2"],title:"indicators.demanda_cal_m2.<20"},{fillColor:"#386A48",codename:["Entre 20 y 40 kWh/m2"],title:"indicators.demanda_cal_m2.20-40"},{fillColor:"#708046",codename:["Entre 40 y 60 kWh/m2"],title:"indicators.demanda_cal_m2.40-60"},{fillColor:"#A99643",codename:["Entre 60 y 80 kWh/m2"],title:"indicators.demanda_cal_m2.60-80"},{fillColor:"#E1AC41",codename:["Entre 80 y 100 kWh/m2"],title:"indicators.demanda_cal_m2.80-100"},{fillColor:"#FBA840",codename:["Entre 100 y 120 kWh/m2"],title:"indicators.demanda_cal_m2.100-120"},{fillColor:"#F8893F",codename:["Entre 120 y 140 kWh/m2"],title:"indicators.demanda_cal_m2.120-140"},{fillColor:"#F56A3E",codename:["Entre 140 y 160 kWh/m2"],title:"indicators.demanda_cal_m2.140-160"},{fillColor:"#F14B3D",codename:["Entre 160 y 180 kWh/m2"],title:"indicators.demanda_cal_m2.160-180"},{fillColor:"#EE2C3C",codename:["Más de 180 kWh/m2"],title:"indicators.demanda_cal_m2.>180"}]},{ikey:7,name:"indicators.cal_post.title",code:["demanda_post_m2"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",minColor:"#00544A",midColor:"#FDB740",maxColor:"#EE2C3C",minValue:10,maxValue:150,minValueIndicador:"indicators.cal_post.minValueIndicador",maxValueIndicador:"indicators.cal_post.maxValueIndicador",unit:"indicators.cal_post.unit",time:!1,values:[{fillColor:"#00544A",codename:["Menos de 20 kWh/m2"],title:"indicators.demanda_cal_m2.<20"},{fillColor:"#386A48",codename:["Entre 20 y 40 kWh/m2"],title:"indicators.demanda_cal_m2.20-40"},{fillColor:"#708046",codename:["Entre 40 y 60 kWh/m2"],title:"indicators.demanda_cal_m2.40-60"},{fillColor:"#A99643",codename:["Entre 60 y 80 kWh/m2"],title:"indicators.demanda_cal_m2.60-80"},{fillColor:"#E1AC41",codename:["Entre 80 y 100 kWh/m2"],title:"indicators.demanda_cal_m2.80-100"},{fillColor:"#FBA840",codename:["Entre 100 y 120 kWh/m2"],title:"indicators.demanda_cal_m2.100-120"},{fillColor:"#F8893F",codename:["Entre 120 y 140 kWh/m2"],title:"indicators.demanda_cal_m2.120-140"},{fillColor:"#F56A3E",codename:["Entre 140 y 160 kWh/m2"],title:"indicators.demanda_cal_m2.140-160"},{fillColor:"#F14B3D",codename:["Entre 160 y 180 kWh/m2"],title:"indicators.demanda_cal_m2.160-180"},{fillColor:"#EE2C3C",codename:["Más de 180 kWh/m2"],title:"indicators.demanda_cal_m2.>180"}]},{ikey:8,name:"indicators.qual_cal.title",code:["qual"],type:"cat",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",values:[{fillColor:"#306f35",codename:["A"],title:"indicators.qual_cal.A"},{fillColor:"#4aa038",codename:["B"],title:"indicators.qual_cal.B"},{fillColor:"#a7c52b",codename:["C"],title:"indicators.qual_cal.C"},{fillColor:"#efe737",codename:["D"],title:"indicators.qual_cal.D"},{fillColor:"#feb63e",codename:["E"],title:"indicators.qual_cal.E"},{fillColor:"#f35d3e",codename:["F"],title:"indicators.qual_cal.F"},{fillColor:"#cb2f45",codename:["G"],title:"indicators.qual_cal.G"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.qual_cal.none"}],time:!0},{ikey:9,name:"indicators.qual_cal_post.title",code:["qual_post"],type:"cat",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",values:[{fillColor:"#306f35",codename:["A"],title:"indicators.qual_cal.A"},{fillColor:"#4aa038",codename:["B"],title:"indicators.qual_cal.B"},{fillColor:"#a7c52b",codename:["C"],title:"indicators.qual_cal.C"},{fillColor:"#efe737",codename:["D"],title:"indicators.qual_cal.D"},{fillColor:"#feb63e",codename:["E"],title:"indicators.qual_cal.E"},{fillColor:"#f35d3e",codename:["F"],title:"indicators.qual_cal.F"},{fillColor:"#cb2f45",codename:["G"],title:"indicators.qual_cal.G"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.qual_cal.none"}],time:!1},{ikey:10,name:"indicators.reduccio_demanda.title",code:["reduccio_demanda"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",maxColor:"#00544A",midColor:"#FDB740",minColor:"#EE2C3C",minValue:0,maxValue:100,minValueIndicador:"indicators.cal.minValueIndicador",maxValueIndicador:"indicators.cal.maxValueIndicador",unit:"indicators.reduccio_demanda.unit",time:!0,values:[{fillColor:"#00544A",codename:["Entre 90 y 100 %"],title:"indicators.reduccio_demanda.100"},{fillColor:"#386A48",codename:["Entre 80 y 90 %"],title:"indicators.reduccio_demanda.90"},{fillColor:"#708046",codename:["Entre 70 y 80 %"],title:"indicators.reduccio_demanda.80"},{fillColor:"#A99643",codename:["Entre 60 y 70 %"],title:"indicators.reduccio_demanda.70"},{fillColor:"#E1AC41",codename:["Entre 50 y 60 %"],title:"indicators.reduccio_demanda.60"},{fillColor:"#FBA840",codename:["Entre 40 y 50 %"],title:"indicators.reduccio_demanda.50"},{fillColor:"#F8893F",codename:["Entre 30 y 40 %"],title:"indicators.reduccio_demanda.40"},{fillColor:"#F56A3E",codename:["Entre 20 y 30 %"],title:"indicators.reduccio_demanda.30"},{fillColor:"#F14B3D",codename:["Entre 10 y 20 %"],title:"indicators.reduccio_demanda.20"},{fillColor:"#EE2C3C",codename:["Menos de 10 %"],title:"indicators.reduccio_demanda.10"}]}]},{category:"Eco",name:"indicators.eco",haveFilters:!0,escenariFilters:!1,indicators:[{ikey:11,name:"indicators.cost_int.title",code:["cost_int"],type:"twoUnits",category:"Eco",category_ods:"ODS_11",category_aue:"AUE_02",maxColor:"#EE2C3C",midColor:"#FDB740",minColor:"#003366",values:[{unit:"€/m2",minValue:100,maxValue:900,minValueIndicador:"indicators.cost_int_m2.minValueIndicador",maxValueIndicador:"indicators.cost_int_m2.maxValueIndicador",codename:"cost_int_m2",title:"indicators.cost_int.cost_int_m2"},{unit:"€/Vivienda",minValue:1e4,maxValue:18e3,minValueIndicador:"indicators.cost_int_hab.minValueIndicador",maxValueIndicador:"indicators.cost_int_hab.maxValueIndicador",codename:"cost_int_hab",title:"indicators.cost_int.cost_int_hab"}],time:!1,cats_hab:[{fillColor:"#003366",codename:["Menos de 10.000 €/viv"],title:"indicators.cost_int.<10"},{fillColor:"#38505E",codename:["Entre 10.000 y 11.000 €/viv"],title:"indicators.cost_int.10-11"},{fillColor:"#706E55",codename:["Entre 11.000 y 12.000 €/viv"],title:"indicators.cost_int.11-12"},{fillColor:"#A98B4D",codename:["Entre 12.000 y 13.000 €/viv"],title:"indicators.cost_int.12-13"},{fillColor:"#E1A844",codename:["Entre 13.000 y 14.000 €/viv"],title:"indicators.cost_int.13-14"},{fillColor:"#FBA840",codename:["Entre 14.000 y 15.000 €/viv"],title:"indicators.cost_int.14-15"},{fillColor:"#F8893F",codename:["Entre 15.000 y 16.000 €/viv"],title:"indicators.cost_int.15-16"},{fillColor:"#F56A3E",codename:["Entre 16.000 y 17.000 €/viv"],title:"indicators.cost_int.16-17"},{fillColor:"#F14B3D",codename:["Entre 17.000 y 18.000 €/viv"],title:"indicators.cost_int.17-18"},{fillColor:"#EE2C3C",codename:["Más de 18.000 €/viv"],title:"indicators.cost_int.>18"}],cats_m2:[{fillColor:"#003366",codename:["Menos de 100 €/m2·viv"],title:"indicators.cost_int.<100"},{fillColor:"#38505E",codename:["Entre 100 y 200 €/m2·viv"],title:"indicators.cost_int.100-200"},{fillColor:"#706E55",codename:["Entre 200 y 300 €/m2·viv"],title:"indicators.cost_int.200-300"},{fillColor:"#A98B4D",codename:["Entre 300 y 400 €/m2·viv"],title:"indicators.cost_int.300-400"},{fillColor:"#E1A844",codename:["Entre 400 y 500 €/m2·viv"],title:"indicators.cost_int.400-500"},{fillColor:"#FBA840",codename:["Entre 500 y 600 €/m2·viv"],title:"indicators.cost_int.500-600"},{fillColor:"#F8893F",codename:["Entre 600 y 700 €/m2·viv"],title:"indicators.cost_int.600-700"},{fillColor:"#F56A3E",codename:["Entre 700 y 800 €/m2·viv"],title:"indicators.cost_int.700-800"},{fillColor:"#F14B3D",codename:["Entre 800 y 900 €/m2·viv"],title:"indicators.cost_int.800-900"},{fillColor:"#EE2C3C",codename:["Más de 900 €/m2·viv"],title:"indicators.cost_int.>900"}]}]},{category:"Int",name:"indicators.int",haveFilters:!1,escenariFilters:!1,indicators:[{ikey:12,name:"indicators.int_FP.title",code:["FP"],type:"cat",category:"Int",values:[{fillColor:"#89a301",codename:[1],title:"indicators.intYear"},{fillColor:"#D0D79D",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:13,name:"indicators.int_VFP.title",code:["VFP"],type:"cat",category:"Int",values:[{fillColor:"#006e51",codename:[1],title:"indicators.intYear"},{fillColor:"#9CBFB0",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:14,name:"indicators.int_P.title",code:["P"],type:"cat",category:"Int",values:[{fillColor:"#9d4823",codename:[1],title:"indicators.intYear"},{fillColor:"#DCAE9B",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:15,name:"indicators.int_ME.title",code:["ME"],type:"cat",category:"Int",values:[{fillColor:"#1D7DAD",codename:[1],title:"indicators.intYear"},{fillColor:"#ABC5DC",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:16,name:"indicators.int_S.title",code:["S"],type:"cat",category:"Int",values:[{fillColor:"#3ba5a5",codename:[1],title:"indicators.intYear"},{fillColor:"#B2D8D8",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:17,name:"indicators.int_C.title",code:["C"],type:"cat",category:"Int",values:[{fillColor:"#ad6e5c",codename:[1],title:"indicators.intYear"},{fillColor:"#DFBFB6",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:18,name:"indicators.check_meps.title",code:["check_meps"],type:"cat",category:"Int",values:[{fillColor:"#00ae9a",codename:[1],title:"indicators.check_meps.yes"},{fillColor:"#dadae3",codename:[0],title:"indicators.check_meps.no"}],time:!0}]}],bl="_checkboxContainer_zld97_2",_l={checkboxContainer:bl},oa=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=Oe.useTranslation(),{title:a}=r||{},{fontColor:l,inputsColor:c}=Ve(u=>u);return h.jsxs("div",{style:{...t,color:n},role:"checkbox",className:_l.checkboxContainer,onClick:e,children:[h.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?c:l}`,backgroundColor:o?c:"white"}}),h.jsx("span",{className:"checkmark",children:i(a)})]})};oa.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 ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ro(e,t)}function Cl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ro(e,t)}function Ur(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function qr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Kn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Zn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Mt(e,t){return oo(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function oo(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 io=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=l=>{l.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=l=>{o.setState({pending:!0});const c=o.getMousePosition(l),u=o.getDiffPosition(c[0]),m=o.getValueFromPosition(u);o.move(m)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});const c=o.getTouchPosition(l);if(o.isScrolling===void 0){const f=c[0]-o.startPosition[0],p=c[1]-o.startPosition[1];o.isScrolling=Math.abs(p)>Math.abs(f)}if(o.isScrolling)return void o.setState({index:-1});const u=o.getDiffPosition(c[0]),m=o.getValueFromPosition(u);o.move(m)},o.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(o.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),o.moveUpByStep();break;case"Home":l.preventDefault(),o.move(o.props.min);break;case"End":l.preventDefault(),o.move(o.props.max);break;case"PageDown":l.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":l.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=l=>{if(!o.props.disabled&&l.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const c=o.getMousePosition(l);o.forceValueFromPosition(c[0],u=>{o.start(u,c[0]),Zn(o.getMouseEventMap())})}Ur(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const c=o.getMousePosition(l),u=Mt(o.calcValue(o.calcOffsetFromPosition(c[0])),o.props);o.props.onSliderClick(u)}},o.createOnKeyDown=l=>c=>{o.props.disabled||(o.start(l),Zn(o.getKeyDownEventMap()),Ur(c))},o.createOnMouseDown=l=>c=>{if(o.props.disabled||c.button===2)return;o.setState({pending:!0});const u=o.getMousePosition(c);o.start(l,u[0]),Zn(o.getMouseEventMap()),Ur(c)},o.createOnTouchStart=l=>c=>{if(o.props.disabled||c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);o.startPosition=u,o.isScrolling=void 0,o.start(l,u[0]),Zn(o.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(c)},o.handleResize=()=>{const l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,c)=>{const u=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+c+" "+(o.state.index===c?o.props.thumbActiveClassName:""),m={ref:p=>{o["thumb"+c]=p},key:o.props.thumbClassName+"-"+c,className:u,style:l,onMouseDown:o.createOnMouseDown(c),onTouchStart:o.createOnTouchStart(c),onFocus:o.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[c],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[c]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[c]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},f={index:c,value:Kn(o.state.value),valueNow:o.state.value[c]};return o.props.ariaValuetext&&(m["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(f)),o.props.renderThumb(m,f)},o.renderTrack=(l,c,u)=>{const m={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(c,o.state.upperBound-u)},f={index:l,value:Kn(o.state.value)};return o.props.renderTrack(m,f)};let i=qr(r.value);i.length||(i=qr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let l=0;l<i.length;l+=1)i[l]=Mt(i[l],r),a.push(l);return o.resizeObserver=null,o.resizeElementRef=b.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}Cl(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=qr(r.value);return i.length?o.pending?null:{value:i.map(a=>Mt(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 Kn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,l=a.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(a[c]),m=Math.abs(r-u);m<o&&(o=m,i=c)}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 Mt(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(),l=r[i],c=a[this.posMaxKey()],u=a[this.posMinKey()],m=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],f=l-m,p=Math.abs(c-u);this.state.upperBound===f&&this.state.sliderLength===p&&this.state.thumbSize===m||this.setState({upperBound:f,sliderLength:p,thumbSize:m})},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()],l=i[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),l=Mt(this.calcValue(i),this.props),c=this.state.value.slice();c[a]=l;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{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(l=>({startValue:l.value[r],startPosition:o!==void 0?o:l.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=Mt(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=Mt(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,l=o[i];if(r===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:m,minDistance:f}=this.props;if(!c){if(i>0){const p=o[i-1];r<p+f&&(r=p+f)}if(i<a-1){const p=o[i+1];r>p-f&&(r=p-f)}}o[i]=r,c&&a>1&&(r>l?(this.pushSucceeding(o,f,i),function(p,v,_,d){for(let x=0;x<p;x+=1){const E=d-x*_;v[p-1-x]>E&&(v[p-1-x]=E)}}(a,o,f,u)):r<l&&(this.pushPreceding(o,f,i),function(p,v,_,d){for(let x=0;x<p;x+=1){const E=d+x*_;v[x]<E&&(v[x]=E)}}(a,o,f,m))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,l;for(a=i,l=r[a]+o;r[a+1]!==null&&l>r[a+1];a+=1,l=r[a]+o)r[a+1]=oo(l,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,l=r[a]-o;r[a-1]!==null&&l<r[a-1];a-=1,l=r[a]-o)r[a-1]=oo(l,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](Kn(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 l=0;l<o;l+=1)i[l]=this.buildThumbStyle(r[l],l);const a=[];for(let l=0;l<o;l+=1)a[l]=this.renderThumb(i[l],l);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),l={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(l)})},n.render=function(){const r=[],{value:o}=this.state,i=o.length;for(let u=0;u<i;u+=1)r[u]=this.calcOffset(o[u],u);const a=this.props.withTracks?this.renderTracks(r):null,l=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return b.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,l,c)},t}(b.Component);io.displayName="ReactSlider",io.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=>b.createElement("div",e),renderTrack:e=>b.createElement("div",e),renderMark:e=>b.createElement("span",e)};var xl=io;const El="_container_15vgv_2",Sl="_unitLabel_15vgv_9",Tl="_slider_15vgv_12",wl="_thumb_15vgv_18",kl="_track_15vgv_27",Ol="_labels_15vgv_33",Kt={container:El,unitLabel:Sl,slider:Tl,thumb:wl,track:kl,labels:Ol},ia=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",value:l=[e,t]})=>{const{t:c}=Oe.useTranslation(),u=m=>{r==null||r({min:m[0],max:m[1]})};return h.jsxs("div",{className:Kt.container,style:{width:`${o}px`,color:`${a}`},children:[h.jsx("div",{className:Kt.unitLabel,children:h.jsx("span",{children:c(i)})}),h.jsx(xl,{className:Kt.slider,thumbClassName:Kt.thumb,trackClassName:Kt.track,min:e,max:t,step:n,value:l,onChange:u,withTracks:!0,pearling:!0,minDistance:1}),h.jsxs("div",{className:Kt.labels,children:[h.jsx("span",{children:l[0]}),h.jsx("span",{children:l[1]})]})]})};ia.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 Rl="_tematicalFiltersInputContainer_1vm1r_2",Al="_inputTypeContainer_1vm1r_2",Pl="_checkboxContainer_1vm1r_28",$l="_absoluteSliderContainer_1vm1r_37",Gn={tematicalFiltersInputContainer:Rl,inputTypeContainer:Al,checkboxContainer:Pl,absoluteSliderContainer:$l},vo=({indicator:e})=>{const[t,n]=b.useState(),{type:r,name:o,values:i,minValue:a,maxValue:l,unit:c}=e||{},u=b.useMemo(()=>r=="cat"||t=="cat",[t,r]),m=b.useMemo(()=>r=="abs"||t=="abs",[t,r]),{tematicalFiltersSelected:f,selectedIndicator:p,fontColor:v,inputsColor:_}=Ve(E=>E),d=E=>{if(E){const{min:R,max:A,valueClicked:O,allValues:C}=E||{},{code:F,type:y}=e||{},T=m?"abs":u?"cat":"both";let S=F[0];y=="both"&&(S=T=="cat"?F[1]:F[0]),T=="cat"?Ve.setState(P=>{let N=P.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H=[N.values];if(N.values.includes(O)){if(H=N.values.filter(V=>V!==O),H.length<1)return{tematicalFiltersSelected:P.tematicalFiltersSelected.filter(V=>V.code!==S)}}else H=[...N.values,O];return{tematicalFiltersSelected:P.tematicalFiltersSelected.map(V=>V.code===S?{...V,values:H}:V)}}else{console.log("entra aqui: ",C," ",O);let H=C.map((V,ce)=>ce);return{tematicalFiltersSelected:[...f,{type:"cat",code:S,values:H.filter(V=>V!==O)}]}}}):T=="abs"&&Ve.setState(P=>{let N=P.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H={...N};return H.min=R,H.max=A,{tematicalFiltersSelected:P.tematicalFiltersSelected.map(V=>V.code===S?H:V)}}else return{tematicalFiltersSelected:[...f,{type:"abs",code:S,min:R,max:A}]}})}},x=b.useMemo(()=>{const E={};if((f==null?void 0:f.length)>0)for(const R of f)R.type==="cat"?E[R.code]=new Set(R.values):E[R.code]=[R.min,R.max];return E},[f]);return h.jsx("div",{className:Gn.tematicalFiltersInputContainer,children:h.jsxs(Ot,{titleFontStyles:{fontSize:16,fontWeight:400},title:o,isOpen:p==`id${o}`,onClick:()=>Ve.setState(()=>({selectedIndicator:p==`id${o}`?"":`id${o}`})),showBottomBar:!1,height:38,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:v,children:[r=="both"&&h.jsxs("div",{className:Gn.inputTypeContainer,style:{color:v},children:[h.jsxs("label",{children:[h.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{n("abs")},style:{marginRight:4,backgroundColor:t=="abs"?_:"white",border:`1.5px solid ${t=="abs"?_:v}`}}),"Absoluto"]}),h.jsxs("label",{children:[h.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{n("cat")},style:{marginRight:4,backgroundColor:t=="cat"?_:"white",border:`1.5px solid ${t=="cat"?_:v}`}}),"Categórico"]})]}),u&&h.jsx("div",{className:Gn.checkboxContainer,children:i.map((E,R)=>{var A;return h.jsx(oa,{onClick:()=>d({valueClicked:R,allValues:i}),indicator:E,value:((A=x[e.code[r=="both"?1:0]])==null?void 0:A.has(R))||!x[e.code[r=="both"?1:0]]},`checkbox-${R}`)})}),m&&h.jsx("div",{className:Gn.absoluteSliderContainer,children:h.jsx(ia,{onChange:d,min:a,max:l,unit:c,value:x[e.code[0]]})})]})})};vo.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}))})};const aa=({subcategory:e,fontColor:t})=>{const{activeSubcategory:n}=Ve(i=>i),{name:r,indicators:o}=e||{};return h.jsx(Ot,{title:r,isOpen:n==`id${r}`,onClick:()=>{Ve.setState(i=>({activeSubcategory:i.activeSubcategory===`id${r}`?"":`id${r}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:49,color:t,children:o==null?void 0:o.map((i,a)=>h.jsx(vo,{indicator:i,fontColor:t},`indicatorSub-${a}`))})};aa.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))})};const sa=({category:e})=>{const{name:t,subcategories:n,indicators:r}=e||{},{activeCategory:o,fontColor:i}=Ve(a=>a);return e&&h.jsx(Ot,{onClick:()=>{Ve.setState(a=>({activeCategory:o===`id${t}`?"":`id${t}`}))},title:t,isOpen:o===`id${t}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:i,children:n?n.map((a,l)=>h.jsx(aa,{subcategory:a,fontColor:i},`subcategory-${l}`)):r&&r.map((a,l)=>h.jsx(vo,{indicator:a,fontColor:i},`indicator-${l}`))})};sa.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array})};const la=({indicators:e=vl,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56"})=>{const{tematicalFiltersSelected:i}=Ve(l=>l),{t:a}=Oe.useTranslation();return b.useEffect(()=>{console.log("filtersSelected changed: ",i)},[i]),b.useEffect(()=>{r&&Ve.setState(()=>({fontColor:r}))},[r]),b.useEffect(()=>{o&&Ve.setState(()=>({inputsColor:o}))},[o]),h.jsx(Ot,{isOpen:t,title:n?a(n):"Tematical filters",color:r,children:e==null?void 0:e.map((l,c)=>h.jsx(sa,{category:l,fontColor:r},`category-${c}`))})};la.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.shape({name:s.string,type:s.string,values:s.arrayOf(s.shape({codename:s.string,title:s.string}))})),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string};const jl="_FiltersAmbitContainer_6o4gt_2",Ml="_FiltersAmbitHeader_6o4gt_7",Ll="_FiltersAmbitTitle_6o4gt_15",Nl="_FiltersAmbitDescription_6o4gt_22",Il="_FiltersAmbitDescriptionTitle_6o4gt_33",En={FiltersAmbitContainer:jl,FiltersAmbitHeader:Ml,FiltersAmbitTitle:Ll,FiltersAmbitDescription:Nl,FiltersAmbitDescriptionTitle:Il},Dl=({ambitName:e,ambitDescription:t,defaultFilters:n})=>{const{t:r}=Oe.useTranslation(),{tematicalFiltersSelected:o}=Ve(i=>i);return b.useEffect(()=>{n&&n.length>0&&Ve.setState(i=>({tematicalFiltersSelected:n}))},[n]),b.useEffect(()=>{console.log("filtersSelected changed: ",o)},[o]),h.jsxs("div",{className:En.FiltersAmbitContainer,children:[h.jsxs("div",{className:En.FiltersAmbitHeader,children:[h.jsx("div",{className:En.FiltersAmbitTitle,children:e}),h.jsxs("div",{className:En.FiltersAmbitDescription,children:[h.jsx("div",{className:En.FiltersAmbitDescriptionTitle,children:r("Descripción")}),t]})]}),h.jsx(na,{title:r("Filtros Aplicados"),isOpen:!0,textColor:"#ffffff",backgroundColor:"#605B5680"}),h.jsx(ra,{}),h.jsx(la,{})]})},Fl="_barChartContainer_d2f1z_2",Bl={barChartContainer:Fl},ca=({data:e,width:t=700,barHeight:n=25,gap:r=23,fontColor:o="#605B56",verticalPaddign:i=10,horizontalPaddign:a=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:m}=Oe.useTranslation(),{xScale:f,ticks:p,height:v}=b.useMemo(()=>{if(e&&e.length>0){const _=(e==null?void 0:e.length)*(n+r)+i*2,d=Io.max(e,R=>R.value)||1,x=Io.scaleLinear().domain([0,u||d]).range([0,t-l]),E=Array.from({length:c+1},(R,A)=>u?u/c*A:d/c*A);return{xScale:x,ticks:E,height:_,width:t,verticalPaddign:i,horizontalPaddign:a}}else return{xScale:null,ticks:[],height:0}},[e,t,c,n,r,a,i,u]);return h.jsx("div",{className:Bl.barChartContainer,children:h.jsx("svg",{width:t+a*2,height:v,children:h.jsxs("g",{transform:`translate(0,${r})`,children:[h.jsx("g",{transform:`translate(${l+a}, 0)`,children:p.map((_,d)=>{const x=f(_);return h.jsxs("g",{transform:`translate(${x}, 0)`,children:[h.jsx("line",{y1:0,y2:v-r*2,stroke:"#ccc"}),h.jsx("text",{y:v-r,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(_)})]},d)})}),e&&e.length>0&&(e==null?void 0:e.map((_,d)=>{const x=f(_.value),E=d*(n+r);return h.jsxs("g",{transform:`translate(${l+a}, ${E})`,children:[h.jsx("text",{x:-24,y:n/2+5,textAnchor:"end",fill:o,children:m(_.title)}),h.jsx("rect",{width:x,height:n,fill:_.color,rx:0})]},d)}))]})})})};ca.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),width:s.number,barHeight:s.number,gap:s.number,verticalPaddign:s.number,horizontalPaddign:s.number,numberOfDivisions:s.number,fontColor:s.string};const zl="_graphicContainer_c9zrg_2",Vl="_titleContainer_c9zrg_14",Qo={graphicContainer:zl,titleContainer:Vl},ua=({data:e,graphWidth:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=Oe.useTranslation();return h.jsxs("div",{className:Qo.graphicContainer,style:{...n||{},border:`1.5px solid ${r}`},children:[h.jsx("div",{className:Qo.titleContainer,children:h.jsx("h2",{children:u(o)})}),h.jsx(ca,{data:e,width:t,fontColor:i,maxValue:a,numberOfDivisions:l,leftPadding:c})]})};ua.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphWidth:s.number,containerStyle:s.object,fontColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number};const Ul="_indicatorsCategory_1cu33_2",ql="_title_1cu33_5",Wl="_list_1cu33_11",Wr={indicatorsCategory:Ul,title:ql,list:Wl},Hl="_indicatorContainer_wv1z4_2",Yl="_dot_wv1z4_11",Kl="_indicatorName_wv1z4_16",Zl="_switchExternalContainer_wv1z4_22",Gl="_switchType_wv1z4_31",Jl="_switchTypeOptions_wv1z4_35",Xl="_optionContainer_wv1z4_46",Ql="_customRadious_wv1z4_56",Be={indicatorContainer:Hl,dot:Yl,indicatorName:Kl,switchExternalContainer:Zl,switchType:Gl,switchTypeOptions:Jl,optionContainer:Xl,customRadious:Ql},bo=({indicator:e,values:t=[],activeColor:n,defaultColor:r="black",activeIndicator:o,onClickIndicator:i,multiple:a=!1})=>{const{t:l}=Oe.useTranslation(),{name:c,ikey:u,type:m}=e,[f,p]=b.useState(!1);b.useEffect(()=>{o&&p(a?o.some(d=>d.ikey==String(u)):o.ikey==u)},[o]);const v=()=>h.jsx("div",{className:Be.switchExternalContainer,children:h.jsx("div",{className:Be.switchType,children:h.jsxs("div",{className:Be.switchTypeOptions,children:[h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:`${Be.customRadious}`}),h.jsx("h4",{className:Be.optionText,children:l("indicators.cat")})]}),h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:`${Be.customRadious}`}),h.jsx("h4",{className:Be.optionText,children:l("indicators.abs")})]})]})})}),_=()=>h.jsx("div",{className:Be.switchExternalContainer,children:h.jsx("div",{className:Be.switchType,children:h.jsx("div",{className:Be.switchTypeOptions,children:t.map((d,x)=>h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:Be.customRadious}),h.jsx("h4",{children:l(d.unit)})]},x))})})});return h.jsxs("button",{onClick:()=>i({indicator:e}),className:Be.indicatorContainer,children:[h.jsx("div",{style:{border:f?`1px solid ${n}`:`1px solid ${r}`},className:Be.dot}),h.jsx("h4",{className:Be.indicatorName,style:{color:f?n:r},children:l(c)}),o===u&&m==="both"&&h.jsx("div",{children:v()}),o===u&&m==="twoUnits"&&h.jsx("div",{children:_()})]})};bo.propTypes={indicator:s.shape({name:s.string,ikey:s.number,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 ec="_indicatorsSubCategory_1dzsi_2",tc="_list_1dzsi_8",ei={indicatorsSubCategory:ec,list:tc},da=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:i,id:a,activeIndicator:l,onClickIndicator:c,multiple:u})=>{const{t:m}=Oe.useTranslation(),[f,p]=b.useState(!1);return b.useEffect(()=>{p(o==a)},[o,a]),h.jsxs(ho.motion.div,{className:ei.indicatorsSubCategory,initial:{height:"43px"},animate:{height:f?"auto":"43px"},transition:{duration:.4},children:[h.jsx("button",{onClick:()=>i(a),children:h.jsxs("h3",{style:{color:f?r:n},children:[h.jsx("span",{style:{color:f?r:n},children:f?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:f?r:n},children:m(e)})]})}),t&&h.jsx("div",{className:ei.list,children:t==null?void 0:t.map((v,_)=>h.jsx(bo,{indicator:v,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:c,multiple:u},"indicator"+_))})]})};da.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 fa=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:i,activeSubCategory:a,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m})=>{var _;const{t:f}=Oe.useTranslation(),[p,v]=b.useState(!1);return b.useEffect(()=>{v(i===t)},[i,t]),h.jsxs(ho.motion.div,{className:Wr.indicatorsCategory,initial:{height:"53px"},animate:{height:p?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:p?`1px solid ${n}`:"0px",marginBottom:p?"20px":"0px"},children:[h.jsxs("h2",{className:`${Wr.title}`,onClick:()=>o(t),children:[h.jsx("span",{style:{color:p?n:r},children:p?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:p?n:r},children:f(e.name)})]}),e.subcategories?e.subcategories.map(({name:d,subcategory:x,indicators:E},R)=>h.jsx(da,{id:x,activeSubCategory:a,subcName:d,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m,activeColor:n,defaultColor:r,indicators:E},`subcKey ${R}`)):h.jsx("div",{className:Wr.list,children:(_=e.indicators)==null?void 0:_.map((d,x)=>h.jsx(bo,{indicator:d,values:d.type=="twoUnits"&&d.values,activeColor:n,defaultColor:r,activeIndicator:c,onClickIndicator:u,multiple:m},`indicator${x}`))})]})};fa.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 nc="_indicatorsList_k90zc_2",rc="_title_k90zc_6",ti={indicatorsList:nc,title:rc},ma=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:l})=>{const{t:c}=Oe.useTranslation(),[u,m]=b.useState(),[f,p]=b.useState(),[v,_]=b.useState(),d=O=>{m(u==O?null:O)},x=O=>{p(f==O?null:O)},E=({indicator:O})=>{console.log("onClickIndicator: ",O),R(O)},R=O=>{if(!o)_((v==null?void 0:v.name)==O.name?null:O);else{let C=v&&v.length>0?[...v]:[];_(C!=null&&C.some(F=>F.name==O.name)?C.filter(F=>F.name!=String(O.name)):[...C,O]),O.type=="both"&&a("cat")}};b.useEffect(()=>{console.log("activeindicator changed to: ",v),r&&typeof r=="function"&&v&&r({activeIndicator:v})},[v]),b.useLayoutEffect(()=>{if(i&&!v)if(o&&i&&Array.isArray(i)){let O=v&&v.length>0?[...v]:[];_([...O,...i]),A(i[0].name)}else R(i),A(i.name)},[]);const A=O=>{const C=e.find(F=>{if(F.subcategories){let y=F.subcategories.find(T=>T.indicators.find(S=>S.name==O));if(y)return p(y.subcategory),y}else return F.indicators.some(y=>y.name==O)});C&&m(C.category)};return h.jsxs("div",{className:ti.indicatorsList,children:[h.jsx("h2",{className:ti.title,style:{color:n},children:c("indicators.indicators")}),e.map((O,C)=>h.jsx(fa,{id:O.category,cat:O,onClickCategory:d,activeCategory:u,onClickSubCategory:x,activeSubCategory:f,onClickIndicator:E,activeIndicator:v,activeColor:t,defaultColor:n,multiple:o,onChange:r,onChangeType:a,activeIndicatorType:l},`categoryKey${C}`))]})};ma.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 oc="_langSelector_1of0g_2",ic="_currentLang_1of0g_7",ac="_arrow_1of0g_19",sc="_prevImg_1of0g_22",lc="_langMenu_1of0g_26",Zt={langSelector:oc,currentLang:ic,arrow:ac,prevImg:sc,langMenu:lc},pa=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=b.useState(!1),{i18n:i}=Oe.useTranslation(),a=e.find(c=>c.code==i.language),l=c=>{i.changeLanguage(c),o(!1)};return h.jsxs("div",{className:Zt.langSelector,children:[h.jsxs("div",{className:Zt.currentLang,onClick:()=>{o(!r)},children:[n&&h.jsx("img",{className:Zt.prevImg,src:n}),a.titleSelected||a.title,h.jsx("img",{src:t,className:Zt.arrow})]}),r&&h.jsx("div",{className:Zt.langMenu,children:e.map(c=>h.jsx("button",{className:a.code==c.code?Zt.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};pa.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 cc="_legendContainer_atg3j_3",uc="_closeButton_atg3j_18",dc="_titleContainer_atg3j_46",fc="_infoContainer_atg3j_52",mc="_titleLegendList_atg3j_63",pc="_legendListContainer_atg3j_70",hc="_gridContainer_atg3j_70",gc="_elementLegendContainer_atg3j_76",yc="_colorDot_atg3j_82",vc="_absoluteValueContainer_atg3j_88",bc="_absoluteValueColor_atg3j_91",_c="_absoluteValueText_atg3j_96",Cc="_moreInfoContainer_atg3j_108",We={legendContainer:cc,closeButton:uc,titleContainer:dc,infoContainer:fc,titleLegendList:mc,legendListContainer:pc,gridContainer:hc,elementLegendContainer:gc,colorDot:yc,absoluteValueContainer:vc,absoluteValueColor:bc,absoluteValueText:_c,moreInfoContainer:Cc},ha=({containerStyles:e,title:t,infoList:n,legendList:r,legendListTitle:o,absoluteValue:i,onClickMoreInfo:a,buttonTitle:l,onClickClose:c})=>{const{t:u}=Oe.useTranslation();return h.jsxs("div",{style:e?{...e}:{},className:`${We.legendContainer}`,children:[h.jsx("button",{className:We.closeButton,onClick:c}),t&&h.jsx("div",{className:We.titleContainer,children:h.jsx("h2",{children:t})}),n&&n.length>0&&h.jsx("div",{className:We.infoContainer,children:h.jsx("ul",{children:n.map(({title:m,value:f})=>h.jsxs("li",{children:[h.jsx("h3",{className:We.title,children:`${m}:`}),h.jsxs("span",{className:We.value,children:["  ",f]})]},t))})}),h.jsx("h3",{className:We.titleLegendList,children:u(o||"mainUse")}),h.jsx("div",{className:We.legendListContainer,children:i?h.jsxs("div",{className:We.absoluteValueContainer,children:[h.jsx("div",{className:We.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${i.maxColor} 0%, ${i.minColor} 100%)`}}),h.jsxs("div",{className:We.absoluteValueText,children:[h.jsxs("span",{children:[i.maxValue," ",u(i.unit)]}),h.jsxs("span",{children:[i.minValue," ",u(i.unit)]})]})]}):r&&r.length>0&&h.jsx("div",{className:We.gridContainer,children:r.map(({title:m,color:f})=>h.jsxs("div",{className:We.elementLegendContainer,children:[h.jsx("div",{className:We.colorDot,style:{backgroundColor:f}}),h.jsxs("div",{className:We.titleLegendElement,children:[u(m)," "]})]},t))})}),a&&h.jsx("button",{className:We.moreInfoContainer,onClick:a,children:l||u("moreInformation")})]})};ha.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendList:s.arrayOf(s.shape({title:s.string,color:s.string})),legendListTitle:s.string,absoluteValue:s.shape({maxColor:s.string,minColor:s.string,maxValue:s.number,minValue:s.number}),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const xc="_logo_1ewa6_2",ni={logo:xc},ga=({src:e,alt:t,href:n})=>{const{t:r}=Oe.useTranslation(),o=h.jsx("img",{src:e,alt:r(t)});return n?h.jsx("div",{className:ni.logo,children:h.jsx("a",{href:n,children:o})}):h.jsx("div",{className:ni.logo,children:o})};ga.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const Ec=X.createContext(null);function Sc(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 Qe(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(!Qe(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)||!Qe(e[o],t[o]))return!1;return!0}return!1}function Tc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function ri(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Qe(n,r)||t.setProjection(n)}function oi(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ii(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 ai(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 si={version:8,sources:{},layers:[]},li={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"},Hr={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"},ci={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"},kc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Oc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ln{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[ci[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[li[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[Hr[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=ln.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,r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:a}=t;return a&&(a.bounds?o.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=si}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||Rc()||null,container:t,style:ai(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 m=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=m,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 l=a._render;a._render=m=>{this._inRender=!0,l.call(a,m),this._inRender=!1};const c=a._renderTaskQueue.run;a._renderTaskQueue.run=m=>{c.call(a._renderTaskQueue,m),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const u=a.fire;a.fire=this._fireEvent.bind(this,u),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),ri(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const m in li)a.on(m,this._onPointerEvent);for(const m in Hr)a.on(m,this._onCameraEvent);for(const m in ci)a.on(m,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),ln.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=Tc(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:l}=o,c=r.isMoving();c&&(o.cameraElevationReference="sea");const u=ii(o,{...oi(r.transform),...t});if(c&&(o.cameraElevationReference="ground"),u&&n){const m=this._deferredEvents;m.move=!0,m.zoom||(m.zoom=i!==o.zoom),m.rotate||(m.rotate=l!==o.bearing),m.pitch||(m.pitch=a!==o.pitch)}return c||ii(r.transform,t),u}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of kc)if(i in t&&!Qe(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=si,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(ai(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Qe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Qe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Qe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){const r=this._map;let o=!1;for(const i of Oc){const a=t[i]??!0,l=n[i]??!0;Qe(a,l)||(o=!0,a?r[i].enable(a):r[i].disable())}return o}_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 o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,a=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!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 Hr&&(typeof n=="object"&&(n.viewState=oi(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=()=>{ri(this._renderTransform,n),t.transform=n}}}ln.savedMaps=[];function Rc(){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 Ac=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Pc(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 $c(t))!(r in n)&&!Ac.includes(r)&&(n[r]=t[r].bind(t));return n}function $c(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 jc=typeof document<"u"?b.useLayoutEffect:b.useEffect,Mc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Lc(e,t){for(const r of Mc)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 dn=X.createContext(null);function Nc(e,t){const n=b.useContext(Ec),[r,o]=b.useState(null),i=b.useRef(),{current:a}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let m=!0,f;return Promise.resolve(u||import("mapbox-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const v="Map"in p?p:p.default;if(!v.Map)throw new Error("Invalid mapLib");Lc(v,e),e.reuseMaps&&(f=ln.reuse(e,i.current)),f||(f=new ln(v.Map,e,i.current)),a.map=Pc(f),a.mapLib=v,o(f),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:v}=e;v?v({type:"error",target:null,error:p}):console.error(p)}),()=>{m=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),jc(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>a.map,[r]);const l=b.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:i,style:l},r&&X.createElement(dn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Ic=X.forwardRef(Nc),Dc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function It(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Dc.test(r)?n[r]=`${o}px`:n[r]=o}}function ya(e,t){if(e===t)return null;const n=ui(e),r=ui(t),o=[];for(const i of r)n.has(i)||o.push(i);for(const i of n)r.has(i)||o.push(i);return o.length===0?null:o}function ui(e){return new Set(e?e.trim().split(/\s+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useRef({props:e}),i=b.useMemo(()=>{let E=!1;X.Children.forEach(e.children,O=>{O&&(E=!0)});const R={...e,element:E?document.createElement("div"):null},A=new r.Marker(R);return A.setLngLat([e.longitude,e.latitude]),A.getElement().addEventListener("click",O=>{var C,F;(F=(C=o.current.props).onClick)==null||F.call(C,{type:"click",target:A,originalEvent:O})}),A.on("dragstart",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,C)}),A.on("drag",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,C)}),A.on("dragend",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,C)}),A},[]);b.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:f=null,rotation:p=0,rotationAlignment:v="auto",pitchAlignment:_="auto"}=e;b.useEffect(()=>{It(i.getElement(),u)},[u]),b.useImperativeHandle(t,()=>i,[]);const d=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Sc(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==v&&i.setRotationAlignment(v),i.getPitchAlignment()!==_&&i.setPitchAlignment(_),i.getPopup()!==f&&i.setPopup(f);const x=ya(d.className,e.className);if(x)for(const E of x)i.toggleClassName(E);return o.current.props=e,hr.createPortal(e.children,i.getElement())}));const Fc=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useMemo(()=>document.createElement("div"),[]),i=b.useRef({props:e}),a=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,f;(f=(m=i.current.props).onOpen)==null||f.call(m,u)}),c},[]);if(b.useEffect(()=>{const l=c=>{var u,m;(m=(u=i.current.props).onClose)==null||m.call(u,c)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),b.useEffect(()=>{It(a.getElement(),e.style)},[e.style]),b.useImperativeHandle(t,()=>a,[]),a.isOpen()){const l=i.current.props;(a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Qe(l.offset,e.offset)&&(a.options.anchor=e.anchor,a.setOffset(e.offset)),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&a.setMaxWidth(e.maxWidth);const c=ya(l.className,e.className);if(c)for(const u of c)a.toggleClassName(u);i.current.props=e}return hr.createPortal(e.children,o)}));function Nn(e,t,n,r){const o=b.useContext(dn),i=b.useMemo(()=>e(o),[]);return b.useEffect(()=>{const a=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(i)||c.addControl(i,a==null?void 0:a.position),()=>{l&&l(o),c.hasControl(i)&&c.removeControl(i)}},[]),i}function Bc(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}b.memo(Bc);function zc(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{It(t._controlContainer,e.style)},[e.style]),null}b.memo(zc);function Vc(e,t){const n=b.useRef({props:e}),r=Nn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI.bind(i);return i._setupUI=l=>{i._container.hasChildNodes()||a(l)},i.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),i.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),i.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),i.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),i.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),i},{position:e.position});return n.current.props=e,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{It(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Vc));function Uc(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}const qc=b.memo(Uc);function Wc(e){const t=Nn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=b.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),b.useEffect(()=>{It(t._container,o)},[o]),null}b.memo(Wc);function ur(e,t){if(!e)throw new Error(t)}let Hc=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 Kc(e,t,n){ur(t.id===n.id,"source id changed"),ur(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Qe(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 Zc(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${Hc++}`,[]);b.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",a),a(),()=>{var l;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?Kc(i,e,n.current):i=Yc(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&b.cloneElement(a,{source:o}))||null}function Gc(e,t,n,r){if(ur(n.id===r.id,"layer id changed"),ur(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const m=r.layout||{};for(const f in o)Qe(o[f],m[f])||e.setLayoutProperty(t,f,o[f]);for(const f in m)o.hasOwnProperty(f)||e.setLayoutProperty(t,f,void 0)}if(i!==r.paint){const m=r.paint||{};for(const f in i)Qe(i[f],m[f])||e.setPaintProperty(t,f,i[f]);for(const f in m)i.hasOwnProperty(f)||e.setPaintProperty(t,f,void 0)}Qe(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function Jc(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 Xc=0;function Qc(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${Xc++}`,[]);if(b.useEffect(()=>{if(t){const a=()=>r(l=>l+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{Gc(t,o,e,n.current)}catch(a){console.warn(a)}else Jc(t,o,e);return n.current=e,null}const eu="_mapContainer_84pkf_2",tu={mapContainer:eu};Ts.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const va=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i="",onClick:a="",interactiveLayers:l=[],popUp:c=!1,sources:u=[],layers:m=[]})=>{const f=b.useRef(),[p,v]=b.useState(null),_=kn.useSelector(d=>d.mapState.showTexts);return b.useEffect(()=>{if(f.current){const d=f.current.getMap();d.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(_?d.setLayoutProperty(E.id,"visibility","visible"):d.setLayoutProperty(E.id,"visibility","none"))})}},[_]),h.jsx("div",{className:`${tu.mapContainer}`,style:i,children:h.jsxs(Ic,{initialViewState:e,ref:f,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((d,x)=>h.jsx(Zc,{...d,children:m.length&&m.map((E,R)=>{if(E.sourceId==d.id)return h.jsx(Qc,{...E.layer,beforeId:o},R)})},x)),h.jsx(qc,{position:"bottom-right",visualizePitch:!0}),c&&p&&h.jsx(Fc,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>v(null),children:c.content})]})})};va.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})}))};var et=Uint8Array,rn=Uint16Array,nu=Int32Array,ba=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),_a=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ru=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ca=function(e,t){for(var n=new rn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new nu(n[30]),r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)o[i]=i-n[r]<<5|r;return{b:n,r:o}},xa=Ca(ba,2),Ea=xa.b,ou=xa.r;Ea[28]=258,ou[258]=28;var iu=Ca(_a,0),au=iu.b,ao=new rn(32768);for(var Te=0;Te<32768;++Te){var Et=(Te&43690)>>1|(Te&21845)<<1;Et=(Et&52428)>>2|(Et&13107)<<2,Et=(Et&61680)>>4|(Et&3855)<<4,ao[Te]=((Et&65280)>>8|(Et&255)<<8)>>1}var On=function(e,t,n){for(var r=e.length,o=0,i=new rn(t);o<r;++o)e[o]&&++i[e[o]-1];var a=new rn(t);for(o=1;o<t;++o)a[o]=a[o-1]+i[o-1]<<1;var l;if(n){l=new rn(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],m=t-e[o],f=a[e[o]-1]++<<m,p=f|(1<<m)-1;f<=p;++f)l[ao[f]>>c]=u}else for(l=new rn(r),o=0;o<r;++o)e[o]&&(l[o]=ao[a[e[o]-1]++]>>15-e[o]);return l},In=new et(288);for(var Te=0;Te<144;++Te)In[Te]=8;for(var Te=144;Te<256;++Te)In[Te]=9;for(var Te=256;Te<280;++Te)In[Te]=7;for(var Te=280;Te<288;++Te)In[Te]=8;var Sa=new et(32);for(var Te=0;Te<32;++Te)Sa[Te]=5;var su=On(In,9,1),lu=On(Sa,5,1),Yr=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},ct=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Kr=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},cu=function(e){return(e+7)/8|0},uu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},du=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Xe=function(e,t,n){var r=new Error(t||du[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Xe),!n)throw r;return r},_o=function(e,t,n,r){var o=e.length,i=0;if(!o||t.f&&!t.l)return n||new et(0);var a=!n,l=a||t.i!=2,c=t.i;a&&(n=new et(o*3));var u=function(be){var $=n.length;if(be>$){var _e=new et(Math.max($*2,be));_e.set(n),n=_e}},m=t.f||0,f=t.p||0,p=t.b||0,v=t.l,_=t.d,d=t.m,x=t.n,E=o*8;do{if(!v){m=ct(e,f,1);var R=ct(e,f+1,3);if(f+=3,R)if(R==1)v=su,_=lu,d=9,x=5;else if(R==2){var F=ct(e,f,31)+257,y=ct(e,f+10,15)+4,T=F+ct(e,f+5,31)+1;f+=14;for(var S=new et(T),P=new et(19),N=0;N<y;++N)P[ru[N]]=ct(e,f+N*3,7);f+=y*3;for(var H=Yr(P),V=(1<<H)-1,ce=On(P,H,1),N=0;N<T;){var Y=ce[ct(e,f,V)];f+=Y&15;var A=Y>>4;if(A<16)S[N++]=A;else{var ie=0,re=0;for(A==16?(re=3+ct(e,f,3),f+=2,ie=S[N-1]):A==17?(re=3+ct(e,f,7),f+=3):A==18&&(re=11+ct(e,f,127),f+=7);re--;)S[N++]=ie}}var we=S.subarray(0,F),Pe=S.subarray(F);d=Yr(we),x=Yr(Pe),v=On(we,d,1),_=On(Pe,x,1)}else Xe(1);else{var A=cu(f)+4,O=e[A-4]|e[A-3]<<8,C=A+O;if(C>o){c&&Xe(0);break}l&&u(p+O),n.set(e.subarray(A,C),p),t.b=p+=O,t.p=f=C*8,t.f=m;continue}if(f>E){c&&Xe(0);break}}l&&u(p+131072);for(var k=(1<<d)-1,M=(1<<x)-1,Q=f;;Q=f){var ie=v[Kr(e,f)&k],q=ie>>4;if(f+=ie&15,f>E){c&&Xe(0);break}if(ie||Xe(2),q<256)n[p++]=q;else if(q==256){Q=f,v=null;break}else{var B=q-254;if(q>264){var N=q-257,ee=ba[N];B=ct(e,f,(1<<ee)-1)+Ea[N],f+=ee}var Z=_[Kr(e,f)&M],K=Z>>4;Z||Xe(3),f+=Z&15;var Pe=au[K];if(K>3){var ee=_a[K];Pe+=Kr(e,f)&(1<<ee)-1,f+=ee}if(f>E){c&&Xe(0);break}l&&u(p+131072);var U=p+B;if(p<Pe){var G=i-Pe,ne=Math.min(Pe,U);for(G+p<0&&Xe(3);p<ne;++p)n[p]=r[G+p]}for(;p<U;++p)n[p]=n[p-Pe]}}t.l=v,t.p=Q,t.b=p,t.f=m,v&&(m=1,t.m=d,t.d=_,t.n=x)}while(!m);return p!=n.length&&a?uu(n,0,p):n.subarray(0,p)},fu=new et(0),mu=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Xe(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},pu=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},hu=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Xe(6,"invalid zlib data"),(e[1]>>5&1)==1&&Xe(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function gu(e,t){return _o(e,{i:2},t,t)}function yu(e,t){var n=mu(e);return n+8>e.length&&Xe(6,"invalid gzip data"),_o(e.subarray(n,-8),{i:2},new et(pu(e)),t)}function vu(e,t){return _o(e.subarray(hu(e),-4),{i:2},t,t)}function bu(e,t){return e[0]==31&&e[1]==139&&e[2]==8?yu(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?gu(e,t):vu(e,t)}var _u=typeof TextDecoder<"u"&&new TextDecoder,Cu=0;try{_u.decode(fu,{stream:!0}),Cu=1}catch{}var xu=Object.defineProperty,Rn=Math.pow,Ee=(e,t)=>xu(e,"name",{value:t,configurable:!0}),Fe=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{l(n.next(c))}catch(u){o(u)}},a=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);l((n=n.apply(e,t)).next())});Ee((e,t)=>{let n=!1,r="",o=L.GridLayer.extend({createTile:Ee((i,a)=>{let l=document.createElement("img"),c=new AbortController,u=c.signal;return l.cancel=()=>{c.abort()},n||(e.getHeader().then(m=>{m.tileType===1?console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):m.tileType===2?r="image/png":m.tileType===3?r="image/jpeg":m.tileType===4?r="image/webp":m.tileType===5&&(r="image/avif")}),n=!0),e.getZxy(i.z,i.x,i.y,u).then(m=>{if(m){let f=new Blob([m.data],{type:r}),p=window.URL.createObjectURL(f);l.src=p,l.cancel=void 0,a(void 0,l)}}).catch(m=>{if(m.name!=="AbortError")throw m}),l},"createTile"),_removeTile:Ee(function(i){let a=this._tiles[i];a&&(a.el.cancel&&a.el.cancel(),a.el.width=0,a.el.height=0,a.el.deleted=!0,L.DomUtil.remove(a.el),delete this._tiles[i],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(i)}))},"_removeTile")});return new o(t)},"leafletRasterLayer");var Eu=Ee(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(o=>n(void 0,o.data,o.cacheControl||"",o.expires||""),o=>n(o)).catch(o=>n(o)),{cancel:Ee(()=>r.abort(),"cancel")}},"v3compat"),Ta=class{constructor(t){this.tilev4=Ee((n,r)=>Fe(this,null,function*(){if(n.type==="json"){let v=n.url.substr(10),_=this.tiles.get(v);if(_||(_=new di(v),this.tiles.set(v,_)),this.metadata)return{data:yield _.getTileJson(n.url)};let d=yield _.getHeader();return(d.minLon>=d.maxLon||d.minLat>=d.maxLat)&&console.error(`Bounds of PMTiles archive ${d.minLon},${d.minLat},${d.maxLon},${d.maxLat} are not valid.`),{data:{tiles:[`${n.url}/{z}/{x}/{y}`],minzoom:d.minZoom,maxzoom:d.maxZoom,bounds:[d.minLon,d.minLat,d.maxLon,d.maxLat]}}}let o=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),i=n.url.match(o);if(!i)throw new Error("Invalid PMTiles protocol URL");let a=i[1],l=this.tiles.get(a);l||(l=new di(a),this.tiles.set(a,l));let c=i[2],u=i[3],m=i[4],f=yield l.getHeader(),p=yield l==null?void 0:l.getZxy(+c,+u,+m,r.signal);if(p)return{data:new Uint8Array(p.data),cacheControl:p.cacheControl,expires:p.expires};if(f.tileType===1){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=Eu(this.tilev4),this.tiles=new Map,this.metadata=(t==null?void 0:t.metadata)||!1,this.errorOnMissingTile=(t==null?void 0:t.errorOnMissingTile)||!1}add(t){this.tiles.set(t.source.getKey(),t)}get(t){return this.tiles.get(t)}};Ee(Ta,"Protocol");var Su=Ta;function wa(e,t){return(t>>>0)*4294967296+(e>>>0)}Ee(wa,"toNum");function ka(e,t){let n=t.buf,r=n[t.pos++],o=(r&112)>>4;if(r<128||(r=n[t.pos++],o|=(r&127)<<3,r<128)||(r=n[t.pos++],o|=(r&127)<<10,r<128)||(r=n[t.pos++],o|=(r&127)<<17,r<128)||(r=n[t.pos++],o|=(r&127)<<24,r<128)||(r=n[t.pos++],o|=(r&1)<<31,r<128))return wa(e,o);throw new Error("Expected varint not more than 10 bytes")}Ee(ka,"readVarintRemainder");function tn(e){let t=e.buf,n=t[e.pos++],r=n&127;return n<128||(n=t[e.pos++],r|=(n&127)<<7,n<128)||(n=t[e.pos++],r|=(n&127)<<14,n<128)||(n=t[e.pos++],r|=(n&127)<<21,n<128)?r:(n=t[e.pos],r|=(n&15)<<28,ka(r,e))}Ee(tn,"readVarint");function Co(e,t,n,r){if(r===0){n===1&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);let o=t[0];t[0]=t[1],t[1]=o}}Ee(Co,"rotate");function Oa(e,t){let n=Rn(2,e),r=t,o=t,i=t,a=[0,0],l=1;for(;l<n;)r=1&i/2,o=1&(i^r),Co(l,a,r,o),a[0]+=l*r,a[1]+=l*o,i=i/4,l*=2;return[e,a[0],a[1]]}Ee(Oa,"idOnLevel");var Tu=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,0x5555555555555];function Ra(e,t,n){if(e>26)throw new Error("Tile zoom level exceeds max safe number limit (26)");if(t>Rn(2,e)-1||n>Rn(2,e)-1)throw new Error("tile x/y outside zoom level bounds");let r=Tu[e],o=Rn(2,e),i=0,a=0,l=0,c=[t,n],u=o/2;for(;u>0;)i=(c[0]&u)>0?1:0,a=(c[1]&u)>0?1:0,l+=u*u*(3*i^a),Co(u,c,i,a),u=u/2;return r+l}Ee(Ra,"zxyToTileId");function wu(e){let t=0;for(let n=0;n<27;n++){let r=(1<<n)*(1<<n);if(t+r>e)return Oa(n,e-t);t+=r}throw new Error("Tile zoom level exceeds max safe number limit (26)")}Ee(wu,"tileIdToZxy");var ku=(e=>(e[e.Unknown=0]="Unknown",e[e.None=1]="None",e[e.Gzip=2]="Gzip",e[e.Brotli=3]="Brotli",e[e.Zstd=4]="Zstd",e))(ku||{});function gr(e,t){return Fe(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(typeof globalThis.DecompressionStream>"u")return bu(new Uint8Array(e));let n=new Response(e).body;if(!n)throw new Error("Failed to read response stream");let r=n.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(r).arrayBuffer()}throw new Error("Compression method not supported")})}Ee(gr,"defaultDecompress");var Ou=(e=>(e[e.Unknown=0]="Unknown",e[e.Mvt=1]="Mvt",e[e.Png=2]="Png",e[e.Jpeg=3]="Jpeg",e[e.Webp=4]="Webp",e[e.Avif=5]="Avif",e))(Ou||{});function Aa(e){return e===1?".mvt":e===2?".png":e===3?".jpg":e===4?".webp":e===5?".avif":""}Ee(Aa,"tileTypeExt");var Ru=127;function Pa(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,i=t-e[o].tileId;if(i>0)n=o+1;else if(i<0)r=o-1;else return e[o]}return r>=0&&(e[r].runLength===0||t-e[r].tileId<e[r].runLength)?e[r]:null}Ee(Pa,"findTile");var Au=class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,n){return Fe(this,null,function*(){return{data:yield this.file.slice(t,t+n).arrayBuffer()}})}};Ee(Au,"FileSource");var $a=class{constructor(t,n=new Headers){this.url=t,this.customHeaders=n,this.mustReload=!1;let r="";"navigator"in globalThis&&(r=globalThis.navigator.userAgent||"");let o=r.indexOf("Windows")>-1,i=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,o&&i&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,n,r,o){return Fe(this,null,function*(){let i,a;r?a=r:(i=new AbortController,a=i.signal);let l=new Headers(this.customHeaders);l.set("range",`bytes=${t}-${t+n-1}`);let c;this.mustReload?c="reload":this.chromeWindowsNoCache&&(c="no-store");let u=yield fetch(this.url,{signal:a,cache:c,headers:l});if(t===0&&u.status===416){let p=u.headers.get("Content-Range");if(!p||!p.startsWith("bytes */"))throw new Error("Missing content-length on 416 response");let v=+p.substr(8);u=yield fetch(this.url,{signal:a,cache:"reload",headers:{range:`bytes=0-${v-1}`}})}let m=u.headers.get("Etag");if(m!=null&&m.startsWith("W/")&&(m=null),u.status===416||o&&m&&m!==o)throw this.mustReload=!0,new so(`Server returned non-matching ETag ${o} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(u.status>=300)throw new Error(`Bad response code: ${u.status}`);let f=u.headers.get("Content-Length");if(u.status===200&&(!f||+f>n))throw i&&i.abort(),new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield u.arrayBuffer(),etag:m||void 0,cacheControl:u.headers.get("Cache-Control")||void 0,expires:u.headers.get("Expires")||void 0}})}};Ee($a,"FetchSource");var Pu=$a;function it(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*Rn(2,32)+r}Ee(it,"getUint64");function ja(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw new Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:it(n,8),rootDirectoryLength:it(n,16),jsonMetadataOffset:it(n,24),jsonMetadataLength:it(n,32),leafDirectoryOffset:it(n,40),leafDirectoryLength:it(n,48),tileDataOffset:it(n,56),tileDataLength:it(n,64),numAddressedTiles:it(n,72),numTileEntries:it(n,80),numTileContents:it(n,88),clustered:n.getUint8(96)===1,internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}Ee(ja,"bytesToHeader");function xo(e){let t={buf:new Uint8Array(e),pos:0},n=tn(t),r=[],o=0;for(let i=0;i<n;i++){let a=tn(t);r.push({tileId:o+a,offset:0,length:0,runLength:1}),o+=a}for(let i=0;i<n;i++)r[i].runLength=tn(t);for(let i=0;i<n;i++)r[i].length=tn(t);for(let i=0;i<n;i++){let a=tn(t);a===0&&i>0?r[i].offset=r[i-1].offset+r[i-1].length:r[i].offset=a-1}return r}Ee(xo,"deserializeIndex");var Ma=class extends Error{};Ee(Ma,"EtagMismatch");var so=Ma;function Eo(e,t){return Fe(this,null,function*(){let n=yield e.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw new Error("Wrong magic number for PMTiles archive");let r=n.data.slice(0,Ru),o=ja(r,n.etag),i=n.data.slice(o.rootDirectoryOffset,o.rootDirectoryOffset+o.rootDirectoryLength),a=`${e.getKey()}|${o.etag||""}|${o.rootDirectoryOffset}|${o.rootDirectoryLength}`,l=xo(yield t(i,o.internalCompression));return[o,[a,l.length,l]]})}Ee(Eo,"getHeaderAndRoot");function So(e,t,n,r,o){return Fe(this,null,function*(){let i=yield e.getBytes(n,r,void 0,o.etag),a=yield t(i.data,o.internalCompression),l=xo(a);if(l.length===0)throw new Error("Empty directory is invalid");return l})}Ee(So,"getDirectory");var $u=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return Fe(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,r.data;let o=yield Eo(t,this.decompress);return o[1]&&this.cache.set(o[1][0],{lastUsed:this.counter++,data:o[1][2]}),this.cache.set(n,{lastUsed:this.counter++,data:o[0]}),this.prune(),o[0]})}getDirectory(t,n,r,o){return Fe(this,null,function*(){let i=`${t.getKey()}|${o.etag||""}|${n}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,a.data;let l=yield So(t,this.decompress,n,r,o);return this.cache.set(i,{lastUsed:this.counter++,data:l}),this.prune(),l})}prune(){if(this.cache.size>this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return Fe(this,null,function*(){this.cache.delete(t.getKey())})}};Ee($u,"ResolvedValueCache");var La=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return Fe(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,yield r.data;let o=new Promise((i,a)=>{Eo(t,this.decompress).then(l=>{l[1]&&this.cache.set(l[1][0],{lastUsed:this.counter++,data:Promise.resolve(l[1][2])}),i(l[0]),this.prune()}).catch(l=>{a(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:o}),o})}getDirectory(t,n,r,o){return Fe(this,null,function*(){let i=`${t.getKey()}|${o.etag||""}|${n}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,yield a.data;let l=new Promise((c,u)=>{So(t,this.decompress,n,r,o).then(m=>{c(m),this.prune()}).catch(m=>{u(m)})});return this.cache.set(i,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return Fe(this,null,function*(){let n=t.getKey();if(this.invalidations.get(n))return yield this.invalidations.get(n);this.cache.delete(t.getKey());let r=new Promise((o,i)=>{this.getHeader(t).then(a=>{o(),this.invalidations.delete(n)}).catch(a=>{i(a)})});this.invalidations.set(n,r)})}};Ee(La,"SharedPromiseCache");var ju=La,Na=class{constructor(t,n,r){typeof t=="string"?this.source=new Pu(t):this.source=t,r?this.decompress=r:this.decompress=gr,n?this.cache=n:this.cache=new ju}getHeader(){return Fe(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,n,r,o){return Fe(this,null,function*(){let i=Ra(t,n,r),a=yield this.cache.getHeader(this.source);if(t<a.minZoom||t>a.maxZoom)return;let l=a.rootDirectoryOffset,c=a.rootDirectoryLength;for(let u=0;u<=3;u++){let m=yield this.cache.getDirectory(this.source,l,c,a),f=Pa(m,i);if(f){if(f.runLength>0){let p=yield this.source.getBytes(a.tileDataOffset+f.offset,f.length,o,a.etag);return{data:yield this.decompress(p.data,a.tileCompression),cacheControl:p.cacheControl,expires:p.expires}}l=a.leafDirectoryOffset+f.offset,c=f.length}else return}throw new Error("Maximum directory depth exceeded")})}getZxy(t,n,r,o){return Fe(this,null,function*(){try{return yield this.getZxyAttempt(t,n,r,o)}catch(i){if(i instanceof so)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,n,r,o);throw i}})}getMetadataAttempt(){return Fe(this,null,function*(){let t=yield this.cache.getHeader(this.source),n=yield this.source.getBytes(t.jsonMetadataOffset,t.jsonMetadataLength,void 0,t.etag),r=yield this.decompress(n.data,t.internalCompression),o=new TextDecoder("utf-8");return JSON.parse(o.decode(r))})}getMetadata(){return Fe(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof so)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return Fe(this,null,function*(){let n=yield this.getHeader(),r=yield this.getMetadata(),o=Aa(n.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${t}/{z}/{x}/{y}${o}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[n.minLon,n.minLat,n.maxLon,n.maxLat],center:[n.centerLon,n.centerLat,n.centerZoom],minzoom:n.minZoom,maxzoom:n.maxZoom}})}};Ee(Na,"PMTiles");var di=Na;const Mu=X.createContext(null);function Lu(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 Ze(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(!Ze(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)||!Ze(e[o],t[o]))return!1;return!0}return!1}function fi(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function mi(e,t){const n=t.viewState||t,r={};if("longitude"in n&&"latitude"in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){const o=e.center.constructor;r.center=new o(n.longitude,n.latitude)}return"zoom"in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),"bearing"in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),"pitch"in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!Ze(n.padding,e.padding)&&(r.padding=n.padding),r}const Nu=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function pi(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 Nu)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const hi={version:8,sources:{},layers:[]},gi={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"},yi={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"},vi={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"},Iu=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Du=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class cn{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=o=>{const i=this.props[vi[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onCameraEvent=o=>{if(this._internalUpdate)return;o.viewState=this._propsedCameraUpdate||fi(this._map.transform);const i=this.props[yi[o.type]];i&&i(o)},this._onCameraUpdate=o=>this._internalUpdate?o:(this._propsedCameraUpdate=fi(o),mi(o,this.props)),this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[gi[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._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n),o=this._updateSize(t),i=this._updateViewState(t);this._updateStyle(t,n),this._updateStyleComponents(t),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=cn.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:l}=t;return l&&(l.bounds?o.fitBounds(l.bounds,{...l.fitBoundsOptions,duration:0}):r._updateViewState(l)),o.isStyleLoaded()?o.fire("load"):o.once("style.load",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=hi}=n,o={...n,...n.initialViewState,container:t,style:pi(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 l=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=l,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),a.transformCameraUpdate=this._onCameraUpdate,a.on("style.load",()=>{var l;this._styleComponents={light:a.getLight(),sky:a.getSky(),projection:(l=a.getProjection)==null?void 0:l.call(a),terrain:a.getTerrain()},this._updateStyleComponents(this.props)}),a.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const l in gi)a.on(l,this._onPointerEvent);for(const l in yi)a.on(l,this._onCameraEvent);for(const l in vi)a.on(l,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),cn.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_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){const n=this._map,r=n.transform;if(!n.isMoving()){const i=mi(r,t);if(Object.keys(i).length>0)return this._internalUpdate=!0,n.jumpTo(i),this._internalUpdate=!1,!0}return!1}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of Iu)if(i in t&&!Ze(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=hi,styleDiffing:o=!0}=t,i={diff:o};"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(pi(r),i)}}_updateStyleComponents({light:t,projection:n,sky:r,terrain:o}){var l,c;const i=this._map,a=this._styleComponents;i.style._loaded&&(t&&!Ze(t,a.light)&&(a.light=t,i.setLight(t)),n&&!Ze(n,a.projection)&&n!==((l=a.projection)==null?void 0:l.type)&&(a.projection=typeof n=="string"?{type:n}:n,(c=i.setProjection)==null||c.call(i,a.projection)),r&&!Ze(r,a.sky)&&(a.sky=r,i.setSky(r)),o!==void 0&&!Ze(o,a.terrain)&&(!o||i.getSource(o.source))&&(a.terrain=o,i.setTerrain(o)))}_updateHandlers(t,n){const r=this._map;for(const o of Du){const i=t[o]??!0,a=n[o]??!0;Ze(i,a)||(i?r[o].enable(i):r[o].disable())}}_queryRenderedFeatures(t){const n=this._map,{interactiveLayerIds:r=[]}=this.props;try{return n.queryRenderedFeatures(t,{layers:r.filter(n.getLayer.bind(n))})}catch{return[]}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,a=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}}cn.savedMaps=[];const Fu=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Bu(e){if(!e)return null;const t=e.map,n={getMap:()=>t};for(const r of zu(t))!(r in n)&&!Fu.includes(r)&&(n[r]=t[r].bind(t));return n}function zu(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 Vu=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Uu(e,t){const{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:o,workerUrl:i}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"){const{pluginUrl:a,lazy:l=!0}=typeof n=="string"?{pluginUrl:n}:n;e.setRTLTextPlugin(a,c=>{c&&console.error(c)},l)}r!==void 0&&e.setMaxParallelImageRequests(r),o!==void 0&&e.setWorkerCount(o),i!==void 0&&e.setWorkerUrl(i)}const fn=X.createContext(null);function qu(e,t){const n=b.useContext(Mu),[r,o]=b.useState(null),i=b.useRef(),{current:a}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let m=!0,f;return Promise.resolve(u||import("maplibre-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const v="Map"in p?p:p.default;if(!v.Map)throw new Error("Invalid mapLib");Uu(v,e),e.reuseMaps&&(f=cn.reuse(e,i.current)),f||(f=new cn(v.Map,e,i.current)),a.map=Bu(f),a.mapLib=v,o(f),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:v}=e;v?v({type:"error",target:null,originalEvent:null,error:p}):console.error(p)}),()=>{m=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),Vu(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>a.map,[r]);const l=b.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:i,style:l},r&&X.createElement(fn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Wu=X.forwardRef(qu),Hu=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function bt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Hu.test(r)?n[r]=`${o}px`:n[r]=o}}function Ia(e,t){if(e===t)return null;const n=bi(e),r=bi(t),o=[];for(const i of r)n.has(i)||o.push(i);for(const i of n)r.has(i)||o.push(i);return o.length===0?null:o}function bi(e){return new Set(e?e.trim().split(/\s+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useRef({props:e}),i=b.useMemo(()=>{let E=!1;X.Children.forEach(e.children,O=>{O&&(E=!0)});const R={...e,element:E?document.createElement("div"):void 0},A=new r.Marker(R);return A.setLngLat([e.longitude,e.latitude]),A.getElement().addEventListener("click",O=>{var C,F;(F=(C=o.current.props).onClick)==null||F.call(C,{type:"click",target:A,originalEvent:O})}),A.on("dragstart",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,C)}),A.on("drag",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,C)}),A.on("dragend",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,C)}),A},[]);b.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:f=null,rotation:p=0,rotationAlignment:v="auto",pitchAlignment:_="auto"}=e;b.useEffect(()=>{bt(i.getElement(),u)},[u]),b.useImperativeHandle(t,()=>i,[]);const d=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Lu(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==v&&i.setRotationAlignment(v),i.getPitchAlignment()!==_&&i.setPitchAlignment(_),i.getPopup()!==f&&i.setPopup(f);const x=Ia(d.className,e.className);if(x)for(const E of x)i.toggleClassName(E);return o.current.props=e,hr.createPortal(e.children,i.getElement())}));const Yu=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useMemo(()=>document.createElement("div"),[]),i=b.useRef({props:e}),a=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,f;(f=(m=i.current.props).onOpen)==null||f.call(m,u)}),c},[]);if(b.useEffect(()=>{const l=c=>{var u,m;(m=(u=i.current.props).onClose)==null||m.call(u,c)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),b.useEffect(()=>{bt(a.getElement(),e.style)},[e.style]),b.useImperativeHandle(t,()=>a,[]),a.isOpen()){const l=i.current.props;(a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Ze(l.offset,e.offset)&&a.setOffset(e.offset),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth));const c=Ia(l.className,e.className);if(c)for(const u of c)a.toggleClassName(u);i.current.props=e}return hr.createPortal(e.children,o)}));function Dt(e,t,n,r){const o=b.useContext(fn),i=b.useMemo(()=>e(o),[]);return b.useEffect(()=>{const a=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(i)||c.addControl(i,a==null?void 0:a.position),()=>{l&&l(o),c.hasControl(i)&&c.removeControl(i)}},[]),i}function Ku(e){const t=Dt(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(Ku);function Zu(e){const t=Dt(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{bt(t._controlContainer,e.style)},[e.style]),null}b.memo(Zu);function Gu(e,t){const n=b.useRef({props:e}),r=Dt(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=()=>{i._container.hasChildNodes()||a()},i.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),i.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),i.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),i.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),i.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),i},{position:e.position});return n.current.props=e,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{bt(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Gu));function Ju(e){const t=Dt(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}const Xu=b.memo(Ju);function Qu(e){const t=Dt(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=b.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),b.useEffect(()=>{bt(t._container,o)},[o]),null}b.memo(Qu);function ed(e){const t=Dt(({mapLib:n})=>new n.TerrainControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(ed);function td(e){const t=Dt(({mapLib:n})=>new n.LogoControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(td);function dr(e,t){if(!e)throw new Error(t)}let nd=0;function rd(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 od(e,t,n){var a,l,c;dr(t.id===n.id,"source id changed"),dr(t.type===n.type,"source type changed");let r="",o=0;for(const u in t)u!=="children"&&u!=="id"&&!Ze(n[u],t[u])&&(r=u,o++);if(!o)return;const i=t.type;if(i==="geojson")e.setData(t.data);else if(i==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else switch(r){case"coordinates":(a=e.setCoordinates)==null||a.call(e,t.coordinates);break;case"url":(l=e.setUrl)==null||l.call(e,t.url);break;case"tiles":(c=e.setTiles)==null||c.call(e,t.tiles);break;default:console.warn(`Unable to update <Source> prop: ${r}`)}}function id(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${nd++}`,[]);b.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",a),a(),()=>{var l;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?od(i,e,n.current):i=rd(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&b.cloneElement(a,{source:o}))||null}function ad(e,t,n,r){if(dr(n.id===r.id,"layer id changed"),dr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const m=r.layout||{};for(const f in o)Ze(o[f],m[f])||e.setLayoutProperty(t,f,o[f]);for(const f in m)o.hasOwnProperty(f)||e.setLayoutProperty(t,f,void 0)}if(i!==r.paint){const m=r.paint||{};for(const f in i)Ze(i[f],m[f])||e.setPaintProperty(t,f,i[f]);for(const f in m)i.hasOwnProperty(f)||e.setPaintProperty(t,f,void 0)}Ze(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function sd(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 ld=0;function cd(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${ld++}`,[]);if(b.useEffect(()=>{if(t){const a=()=>r(l=>l+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{ad(t,o,e,n.current)}catch(a){console.warn(a)}else sd(t,o,e);return n.current=e,null}const ud="_mapContainer_ivruh_3",dd={mapContainer:ud},fd="_FeaturePopUp_1gd6w_2",md="_title_1gd6w_2",_i={FeaturePopUp:fd,title:md},pd=({props:e})=>{const{t}=Oe.useTranslation();return h.jsx("div",{className:_i.FeaturePopUp,children:e.map(n=>h.jsxs("p",{children:[h.jsxs("span",{className:_i.title,children:[h.jsx(Oe.Trans,{i18nKey:n.name,components:{sup:h.jsx("sup",{})}}),": "]}),n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]}))})},Da=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:l=[],sources:c=[],layers:u=[],filters:m,popUpParams:f,onClosePopUp:p,showTexts:v})=>{console.log(m);const _=b.useRef();return b.useEffect(()=>{if(_.current){const d=_.current.getMap();d.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(v?d.setLayoutProperty(E.id,"visibility","visible"):d.setLayoutProperty(E.id,"visibility","none"))})}},[v]),b.useEffect(()=>{let d=new Su;return Lo.addProtocol("pmtiles",d.tile),()=>{Lo.removeProtocol("pmtiles")}},[]),h.jsx("div",{className:`${dd.mapContainer}`,style:i&&i,children:h.jsxs(Wu,{initialViewState:e,ref:_,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[c.length&&c.map((d,x)=>h.jsx(id,{...d,children:u.length&&u.map((E,R)=>{if(E.sourceId==d.id)return h.jsx(cd,{...E.layer,beforeId:o,filter:m&&m},R)})},x)),h.jsx(Xu,{position:"bottom-right",visualizePitch:!0}),f&&h.jsx(Yu,{longitude:f.lng,latitude:f.lat,onClose:p,children:h.jsx(pd,{props:f.props})})]})})};Da.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})})),showTexts:s.bool,filters:s.array,popUpParams:s.object,onClosePopUp:s.func};const hd="_sectionBar_2vnc3_2",gd="_leftContent_2vnc3_13",yd="_textContainer_2vnc3_19",vd="_title_2vnc3_26",bd="_subtitle_2vnc3_32",_d="_rightContent_2vnc3_37",Lt={sectionBar:hd,leftContent:gd,textContainer:yd,title:vd,subtitle:bd,rightContent:_d},Fa=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o})=>{const{t:i}=Oe.useTranslation();return h.jsxs("div",{className:Lt.sectionBar,children:[h.jsxs("div",{className:Lt.leftContent,children:[e&&h.jsx("img",{src:e,alt:"Icono",className:Lt.icon}),h.jsxs("div",{className:Lt.textContainer,children:[h.jsx("div",{className:Lt.title,style:o?{color:o}:{},children:i(t)}),n&&h.jsx("div",{className:Lt.subtitle,children:n})]})]}),h.jsx("div",{className:Lt.rightContent,children:r})]})};Fa.propTypes={leftIcon:s.node.isRequired,title:s.string.isRequired,subtitle:s.string,rightContent:s.node.isRequired,mainColor:s.string};const Cd=Ki.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:C0,setYear:Zr,setActiveIndicatorKey:x0,setActiveIndicatorType:E0,setActiveIndicatorUnit:S0}=Cd.actions,xd="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",Ed="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 _t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function z(){return z=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},z.apply(null,arguments)}function Ba(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=Ba(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ba(e))&&(r&&(r+=" "),r+=t);return r}function Ci(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Sd(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}var Ae={},Gr={exports:{}},xi;function za(){return xi||(xi=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gr)),Gr.exports}function $n(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Td=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),wd=kt(Td);function nn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const kd=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),Od=kt(kd);var Ei;function Rd(){if(Ei)return Ae;Ei=1;var e=za();Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.alpha=_,Ae.blend=F,Ae.colorChannel=void 0,Ae.darken=x,Ae.decomposeColor=a,Ae.emphasize=O,Ae.getContrastRatio=v,Ae.getLuminance=p,Ae.hexToRgb=o,Ae.hslToRgb=f,Ae.lighten=R,Ae.private_safeAlpha=d,Ae.private_safeColorChannel=void 0,Ae.private_safeDarken=E,Ae.private_safeEmphasize=C,Ae.private_safeLighten=A,Ae.recomposeColor=u,Ae.rgbToHex=m;var t=e(wd),n=e(Od);function r(y,T=0,S=1){return process.env.NODE_ENV!=="production"&&(y<T||y>S)&&console.error(`MUI: The value provided ${y} is out of range [${T}, ${S}].`),(0,n.default)(y,T,S)}function o(y){y=y.slice(1);const T=new RegExp(`.{1,${y.length>=6?2:1}}`,"g");let S=y.match(T);return S&&S[0].length===1&&(S=S.map(P=>P+P)),S?`rgb${S.length===4?"a":""}(${S.map((P,N)=>N<3?parseInt(P,16):Math.round(parseInt(P,16)/255*1e3)/1e3).join(", ")})`:""}function i(y){const T=y.toString(16);return T.length===1?`0${T}`:T}function a(y){if(y.type)return y;if(y.charAt(0)==="#")return a(o(y));const T=y.indexOf("("),S=y.substring(0,T);if(["rgb","rgba","hsl","hsla","color"].indexOf(S)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${y}\` color.
52
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,y));let P=y.substring(T+1,y.length-1),N;if(S==="color"){if(P=P.split(" "),N=P.shift(),P.length===4&&P[3].charAt(0)==="/"&&(P[3]=P[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(N)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${N}\` color space.
53
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,N))}else P=P.split(",");return P=P.map(H=>parseFloat(H)),{type:S,values:P,colorSpace:N}}const l=y=>{const T=a(y);return T.values.slice(0,3).map((S,P)=>T.type.indexOf("hsl")!==-1&&P!==0?`${S}%`:S).join(" ")};Ae.colorChannel=l;const c=(y,T)=>{try{return l(y)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}};Ae.private_safeColorChannel=c;function u(y){const{type:T,colorSpace:S}=y;let{values:P}=y;return T.indexOf("rgb")!==-1?P=P.map((N,H)=>H<3?parseInt(N,10):N):T.indexOf("hsl")!==-1&&(P[1]=`${P[1]}%`,P[2]=`${P[2]}%`),T.indexOf("color")!==-1?P=`${S} ${P.join(" ")}`:P=`${P.join(", ")}`,`${T}(${P})`}function m(y){if(y.indexOf("#")===0)return y;const{values:T}=a(y);return`#${T.map((S,P)=>i(P===3?Math.round(255*S):S)).join("")}`}function f(y){y=a(y);const{values:T}=y,S=T[0],P=T[1]/100,N=T[2]/100,H=P*Math.min(N,1-N),V=(ie,re=(ie+S/30)%12)=>N-H*Math.max(Math.min(re-3,9-re,1),-1);let ce="rgb";const Y=[Math.round(V(0)*255),Math.round(V(8)*255),Math.round(V(4)*255)];return y.type==="hsla"&&(ce+="a",Y.push(T[3])),u({type:ce,values:Y})}function p(y){y=a(y);let T=y.type==="hsl"||y.type==="hsla"?a(f(y)).values:y.values;return T=T.map(S=>(y.type!=="color"&&(S/=255),S<=.03928?S/12.92:((S+.055)/1.055)**2.4)),Number((.2126*T[0]+.7152*T[1]+.0722*T[2]).toFixed(3))}function v(y,T){const S=p(y),P=p(T);return(Math.max(S,P)+.05)/(Math.min(S,P)+.05)}function _(y,T){return y=a(y),T=r(T),(y.type==="rgb"||y.type==="hsl")&&(y.type+="a"),y.type==="color"?y.values[3]=`/${T}`:y.values[3]=T,u(y)}function d(y,T,S){try{return _(y,T)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function x(y,T){if(y=a(y),T=r(T),y.type.indexOf("hsl")!==-1)y.values[2]*=1-T;else if(y.type.indexOf("rgb")!==-1||y.type.indexOf("color")!==-1)for(let S=0;S<3;S+=1)y.values[S]*=1-T;return u(y)}function E(y,T,S){try{return x(y,T)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function R(y,T){if(y=a(y),T=r(T),y.type.indexOf("hsl")!==-1)y.values[2]+=(100-y.values[2])*T;else if(y.type.indexOf("rgb")!==-1)for(let S=0;S<3;S+=1)y.values[S]+=(255-y.values[S])*T;else if(y.type.indexOf("color")!==-1)for(let S=0;S<3;S+=1)y.values[S]+=(1-y.values[S])*T;return u(y)}function A(y,T,S){try{return R(y,T)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function O(y,T=.15){return p(y)>.5?x(y,T):R(y,T)}function C(y,T,S){try{return O(y,T)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function F(y,T,S,P=1){const N=(Y,ie)=>Math.round((Y**(1/P)*(1-S)+ie**(1/P)*S)**P),H=a(y),V=a(T),ce=[N(H.values[0],V.values[0]),N(H.values[1],V.values[1]),N(H.values[2],V.values[2])];return u({type:"rgb",values:ce})}return Ae}var pt=Rd();const Ad=X.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const Pd=()=>{const e=X.useContext(Ad);return e??!1};function $d(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lo(...e){return X.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{$d(n,t)})},e)}function An(e){return typeof e=="string"}function jd(e,t,n){return e===void 0||An(e)?t:z({},t,{ownerState:z({},t.ownerState,n)})}function ir(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 Si(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 Md(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=wt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),_=z({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),d=z({},n,o,r);return v.length>0&&(d.className=v),Object.keys(_).length>0&&(d.style=_),{props:d,internalRef:void 0}}const a=ir(z({},o,r)),l=Si(r),c=Si(o),u=t(a),m=wt(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=z({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=z({},u,n,c,l);return m.length>0&&(p.className=m),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function Ld(e,t,n){return typeof e=="function"?e(t,n):e}const Nd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function St(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_t(e,Nd),l=i?{}:Ld(r,o),{props:c,internalRef:u}=Md(z({},a,{externalSlotProps:l})),m=lo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return jd(n,z({},c,{ref:m}),o)}function Tt(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 Va(e){if(X.isValidElement(e)||!Tt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Va(e[n])}),t}function ht(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return Tt(e)&&Tt(t)&&Object.keys(t).forEach(o=>{X.isValidElement(t[o])?r[o]=t[o]:Tt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Tt(e[o])?r[o]=ht(e[o],t[o],n):n.clone?r[o]=Tt(t[o])?Va(t[o]):t[o]:r[o]=t[o]}),r}const Id=Object.freeze(Object.defineProperty({__proto__:null,default:ht,isPlainObject:Tt},Symbol.toStringTag,{value:"Module"}));var Jn={exports:{}},Ce={};/**
54
54
  * @license React
55
55
  * react-is.production.js
56
56
  *
@@ -58,7 +58,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
58
58
  *
59
59
  * This source code is licensed under the MIT license found in the
60
60
  * LICENSE file in the root directory of this source tree.
61
- */var Ti;function Dd(){if(Ti)return Ce;Ti=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),_=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 c:case u:case p:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case d:case m:return f;case i:return f;default:return x}}case t:return x}}}return Ce.ContextConsumer=i,Ce.ContextProvider=a,Ce.Element=e,Ce.ForwardRef=l,Ce.Fragment=n,Ce.Lazy=d,Ce.Memo=m,Ce.Portal=t,Ce.Profiler=o,Ce.StrictMode=r,Ce.Suspense=c,Ce.SuspenseList=u,Ce.isContextConsumer=function(f){return b(f)===i},Ce.isContextProvider=function(f){return b(f)===a},Ce.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ce.isForwardRef=function(f){return b(f)===l},Ce.isFragment=function(f){return b(f)===n},Ce.isLazy=function(f){return b(f)===d},Ce.isMemo=function(f){return b(f)===m},Ce.isPortal=function(f){return b(f)===t},Ce.isProfiler=function(f){return b(f)===o},Ce.isStrictMode=function(f){return b(f)===r},Ce.isSuspense=function(f){return b(f)===c},Ce.isSuspenseList=function(f){return b(f)===u},Ce.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===m||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===_||f.getModuleId!==void 0)},Ce.typeOf=b,Ce}var xe={};/**
61
+ */var Ti;function Dd(){if(Ti)return Ce;Ti=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function _(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case e:switch(d=d.type,d){case n:case o:case r:case c:case u:case p:return d;default:switch(d=d&&d.$$typeof,d){case a:case l:case f:case m:return d;case i:return d;default:return x}}case t:return x}}}return Ce.ContextConsumer=i,Ce.ContextProvider=a,Ce.Element=e,Ce.ForwardRef=l,Ce.Fragment=n,Ce.Lazy=f,Ce.Memo=m,Ce.Portal=t,Ce.Profiler=o,Ce.StrictMode=r,Ce.Suspense=c,Ce.SuspenseList=u,Ce.isContextConsumer=function(d){return _(d)===i},Ce.isContextProvider=function(d){return _(d)===a},Ce.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},Ce.isForwardRef=function(d){return _(d)===l},Ce.isFragment=function(d){return _(d)===n},Ce.isLazy=function(d){return _(d)===f},Ce.isMemo=function(d){return _(d)===m},Ce.isPortal=function(d){return _(d)===t},Ce.isProfiler=function(d){return _(d)===o},Ce.isStrictMode=function(d){return _(d)===r},Ce.isSuspense=function(d){return _(d)===c},Ce.isSuspenseList=function(d){return _(d)===u},Ce.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===o||d===r||d===c||d===u||typeof d=="object"&&d!==null&&(d.$$typeof===f||d.$$typeof===m||d.$$typeof===a||d.$$typeof===i||d.$$typeof===l||d.$$typeof===v||d.getModuleId!==void 0)},Ce.typeOf=_,Ce}var xe={};/**
62
62
  * @license React
63
63
  * react-is.development.js
64
64
  *
@@ -66,22 +66,22 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var wi;function Fd(){return wi||(wi=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 u:case m:case _:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case p:case d: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"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");xe.ContextConsumer=a,xe.ContextProvider=l,xe.Element=t,xe.ForwardRef=c,xe.Fragment=r,xe.Lazy=p,xe.Memo=d,xe.Portal=n,xe.Profiler=i,xe.StrictMode=o,xe.Suspense=u,xe.SuspenseList=m,xe.isContextConsumer=function(f){return e(f)===a},xe.isContextProvider=function(f){return e(f)===l},xe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},xe.isForwardRef=function(f){return e(f)===c},xe.isFragment=function(f){return e(f)===r},xe.isLazy=function(f){return e(f)===p},xe.isMemo=function(f){return e(f)===d},xe.isPortal=function(f){return e(f)===n},xe.isProfiler=function(f){return e(f)===i},xe.isStrictMode=function(f){return e(f)===o},xe.isSuspense=function(f){return e(f)===u},xe.isSuspenseList=function(f){return e(f)===m},xe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===u||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},xe.typeOf=e}()),xe}var ki;function Bd(){return ki||(ki=1,process.env.NODE_ENV==="production"?Jn.exports=Dd():Jn.exports=Fd()),Jn.exports}var Oi=Bd();const zd=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ua(e){const t=`${e}`.match(zd);return t&&t[1]||""}function qa(e,t=""){return e.displayName||e.name||Ua(e)||t}function Ri(e,t,n){const r=qa(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Vd(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qa(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Oi.ForwardRef:return Ri(e,e.render,"ForwardRef");case Oi.Memo:return Ri(e,e.type,"memo");default:return}}}const Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Vd,getFunctionName:Ua},Symbol.toStringTag,{value:"Module"}));function ut(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":$n(7));return e.charAt(0).toUpperCase()+e.slice(1)}const qd=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"}));function ar(e){return e&&e.ownerDocument||document}const Wa=typeof window<"u"?X.useLayoutEffect:X.useEffect;function Wd({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(e!==void 0),[i,a]=X.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){X.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
69
+ */var wi;function Fd(){return wi||(wi=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case t:switch(d=d.type,d){case r:case i:case o:case u:case m:case v:return d;default:switch(d=d&&d.$$typeof,d){case l:case c:case p:case f:return d;case a:return d;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"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");xe.ContextConsumer=a,xe.ContextProvider=l,xe.Element=t,xe.ForwardRef=c,xe.Fragment=r,xe.Lazy=p,xe.Memo=f,xe.Portal=n,xe.Profiler=i,xe.StrictMode=o,xe.Suspense=u,xe.SuspenseList=m,xe.isContextConsumer=function(d){return e(d)===a},xe.isContextProvider=function(d){return e(d)===l},xe.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},xe.isForwardRef=function(d){return e(d)===c},xe.isFragment=function(d){return e(d)===r},xe.isLazy=function(d){return e(d)===p},xe.isMemo=function(d){return e(d)===f},xe.isPortal=function(d){return e(d)===n},xe.isProfiler=function(d){return e(d)===i},xe.isStrictMode=function(d){return e(d)===o},xe.isSuspense=function(d){return e(d)===u},xe.isSuspenseList=function(d){return e(d)===m},xe.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===o||d===u||d===m||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===f||d.$$typeof===l||d.$$typeof===a||d.$$typeof===c||d.$$typeof===_||d.getModuleId!==void 0)},xe.typeOf=e}()),xe}var ki;function Bd(){return ki||(ki=1,process.env.NODE_ENV==="production"?Jn.exports=Dd():Jn.exports=Fd()),Jn.exports}var Oi=Bd();const zd=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ua(e){const t=`${e}`.match(zd);return t&&t[1]||""}function qa(e,t=""){return e.displayName||e.name||Ua(e)||t}function Ri(e,t,n){const r=qa(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Vd(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qa(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Oi.ForwardRef:return Ri(e,e.render,"ForwardRef");case Oi.Memo:return Ri(e,e.type,"memo");default:return}}}const Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Vd,getFunctionName:Ua},Symbol.toStringTag,{value:"Module"}));function ut(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":$n(7));return e.charAt(0).toUpperCase()+e.slice(1)}const qd=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"}));function ar(e){return e&&e.ownerDocument||document}const Wa=typeof window<"u"?X.useLayoutEffect:X.useEffect;function Wd({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(e!==void 0),[i,a]=X.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){X.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
70
70
  `))},[r,n,e]);const{current:u}=X.useRef(t);X.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
71
- `))},[JSON.stringify(t)])}const c=X.useCallback(u=>{o||a(u)},[]);return[l,c]}function Jr(e){const t=X.useRef(e);return Wa(()=>{t.current=e}),X.useRef((...n)=>(0,t.current)(...n)).current}class To{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new To}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let yr=!0,co=!1;const Hd=new To,Yd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Kd(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Yd[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Zd(e){e.metaKey||e.altKey||e.ctrlKey||(yr=!0)}function Xr(){yr=!1}function Gd(){this.visibilityState==="hidden"&&co&&(yr=!0)}function Jd(e){e.addEventListener("keydown",Zd,!0),e.addEventListener("mousedown",Xr,!0),e.addEventListener("pointerdown",Xr,!0),e.addEventListener("touchstart",Xr,!0),e.addEventListener("visibilitychange",Gd,!0)}function Xd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yr||Kd(t)}function Qd(){const e=X.useCallback(o=>{o!=null&&Jd(o.ownerDocument)},[]),t=X.useRef(!1);function n(){return t.current?(co=!0,Hd.start(100,()=>{co=!1}),t.current=!1,!0):!1}function r(o){return Xd(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const ef={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function uo(e,t){const n=B({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=B({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=B({},i),Object.keys(o).forEach(a=>{n[r][a]=uo(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Ai=e=>e,tf=()=>{let e=Ai;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ai}}},nf=tf(),rf={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 wo(e,t,n="Mui"){const r=rf[t];return r?`${n}-${r}`:`${nf.generate(e)}-${t}`}function of(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=wo(e,o,n)}),r}function af(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const sf=2;function Ha(e,t){return e-t}function Pi(e,t){var n;const{index:r}=(n=e.reduce((o,i,a)=>{const l=Math.abs(t-i);return o===null||l<o.distance||l===o.distance?{distance:l,index:a}:o},null))!=null?n:{};return r}function Xn(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 fr(e,t,n){return(e-t)*100/(n-t)}function lf(e,t,n){return(n-t)*e+t}function cf(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 uf(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(cf(t)))}function $i({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ha)}function Qn({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=ar(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function er(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?af(e,t):!1}const df={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}%`})}},ff=e=>e;let tr;function ji(){return tr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tr=CSS.supports("touch-action","none"):tr=!0),tr}function mf(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:l=100,min:c=0,name:u,onChange:m,onChangeCommitted:d,orientation:p="horizontal",rootRef:_,scale:b=ff,step:f=1,shiftStep:x=10,tabIndex:E,value:T}=e,k=X.useRef(void 0),[j,C]=X.useState(-1),[z,y]=X.useState(-1),[w,S]=X.useState(!1),A=X.useRef(0),[N,H]=Wd({controlled:T,default:n??c,name:"Slider"}),V=m&&(($,D,W)=>{const fe=$.nativeEvent||$,me=new fe.constructor(fe.type,fe);Object.defineProperty(me,"target",{writable:!0,value:{value:D,name:u}}),m(me,D,W)}),ce=Array.isArray(N);let Y=ce?N.slice().sort(Ha):[N];Y=Y.map($=>$==null?c:nn($,c,l));const ie=a===!0&&f!==null?[...Array(Math.floor((l-c)/f)+1)].map(($,D)=>({value:c+f*D})):a||[],re=ie.map($=>$.value),{isFocusVisibleRef:we,onBlur:Pe,onFocus:R,ref:M}=Qd(),[Q,q]=X.useState(-1),F=X.useRef(null),ee=lo(M,F),Z=lo(_,ee),K=$=>D=>{var W;const fe=Number(D.currentTarget.getAttribute("data-index"));R(D),we.current===!0&&q(fe),y(fe),$==null||(W=$.onFocus)==null||W.call($,D)},U=$=>D=>{var W;Pe(D),we.current===!1&&q(-1),y(-1),$==null||(W=$.onBlur)==null||W.call($,D)},G=($,D)=>{const W=Number($.currentTarget.getAttribute("data-index")),fe=Y[W],me=re.indexOf(fe);let de=D;if(ie&&f==null){const Je=re[re.length-1];de>Je?de=Je:de<re[0]?de=re[0]:de=de<fe?re[me-1]:re[me+1]}if(de=nn(de,c,l),ce){o&&(de=nn(de,Y[W-1]||-1/0,Y[W+1]||1/0));const Je=de;de=$i({values:Y,newValue:de,index:W});let rt=W;o||(rt=de.indexOf(Je)),Qn({sliderRef:F,activeIndex:rt})}H(de),q(W),V&&!er(de,N)&&V($,de,W),d&&d($,de)},ne=$=>D=>{var W;if(f!==null){const fe=Number(D.currentTarget.getAttribute("data-index")),me=Y[fe];let de=null;(D.key==="ArrowLeft"||D.key==="ArrowDown")&&D.shiftKey||D.key==="PageDown"?de=Math.max(me-x,c):((D.key==="ArrowRight"||D.key==="ArrowUp")&&D.shiftKey||D.key==="PageUp")&&(de=Math.min(me+x,l)),de!==null&&(G(D,de),D.preventDefault())}$==null||(W=$.onKeyDown)==null||W.call($,D)};Wa(()=>{if(r&&F.current.contains(document.activeElement)){var $;($=document.activeElement)==null||$.blur()}},[r]),r&&j!==-1&&C(-1),r&&Q!==-1&&q(-1);const be=$=>D=>{var W;(W=$.onChange)==null||W.call($,D),G(D,D.target.valueAsNumber)},P=X.useRef(void 0);let _e=p;i&&p==="horizontal"&&(_e+="-reverse");const ae=({finger:$,move:D=!1})=>{const{current:W}=F,{width:fe,height:me,bottom:de,left:Je}=W.getBoundingClientRect();let rt;_e.indexOf("vertical")===0?rt=(de-$.y)/me:rt=($.x-Je)/fe,_e.indexOf("-reverse")!==-1&&(rt=1-rt);let pe;if(pe=lf(rt,c,l),f)pe=uf(pe,f,c);else{const ft=Pi(re,pe);pe=re[ft]}pe=nn(pe,c,l);let Ye=0;if(ce){D?Ye=P.current:Ye=Pi(Y,pe),o&&(pe=nn(pe,Y[Ye-1]||-1/0,Y[Ye+1]||1/0));const ft=pe;pe=$i({values:Y,newValue:pe,index:Ye}),o&&D||(Ye=pe.indexOf(ft),P.current=Ye)}return{newValue:pe,activeIndex:Ye}},se=Jr($=>{const D=Xn($,k);if(!D)return;if(A.current+=1,$.type==="mousemove"&&$.buttons===0){Re($);return}const{newValue:W,activeIndex:fe}=ae({finger:D,move:!0});Qn({sliderRef:F,activeIndex:fe,setActive:C}),H(W),!w&&A.current>sf&&S(!0),V&&!er(W,N)&&V($,W,fe)}),Re=Jr($=>{const D=Xn($,k);if(S(!1),!D)return;const{newValue:W}=ae({finger:D,move:!0});C(-1),$.type==="touchend"&&y(-1),d&&d($,W),k.current=void 0,qe()}),Ue=Jr($=>{if(r)return;ji()||$.preventDefault();const D=$.changedTouches[0];D!=null&&(k.current=D.identifier);const W=Xn($,k);if(W!==!1){const{newValue:me,activeIndex:de}=ae({finger:W});Qn({sliderRef:F,activeIndex:de,setActive:C}),H(me),V&&!er(me,N)&&V($,me,de)}A.current=0;const fe=ar(F.current);fe.addEventListener("touchmove",se,{passive:!0}),fe.addEventListener("touchend",Re,{passive:!0})}),qe=X.useCallback(()=>{const $=ar(F.current);$.removeEventListener("mousemove",se),$.removeEventListener("mouseup",Re),$.removeEventListener("touchmove",se),$.removeEventListener("touchend",Re)},[Re,se]);X.useEffect(()=>{const{current:$}=F;return $.addEventListener("touchstart",Ue,{passive:ji()}),()=>{$.removeEventListener("touchstart",Ue),qe()}},[qe,Ue]),X.useEffect(()=>{r&&qe()},[r,qe]);const dt=$=>D=>{var W;if((W=$.onMouseDown)==null||W.call($,D),r||D.defaultPrevented||D.button!==0)return;D.preventDefault();const fe=Xn(D,k);if(fe!==!1){const{newValue:de,activeIndex:Je}=ae({finger:fe});Qn({sliderRef:F,activeIndex:Je,setActive:C}),H(de),V&&!er(de,N)&&V(D,de,Je)}A.current=0;const me=ar(F.current);me.addEventListener("mousemove",se,{passive:!0}),me.addEventListener("mouseup",Re)},De=fr(ce?Y[0]:c,c,l),Ct=fr(Y[Y.length-1],c,l)-De,At=($={})=>{const D=ir($),W={onMouseDown:dt(D||{})},fe=B({},D,W);return B({},$,{ref:Z},fe)},pn=$=>D=>{var W;(W=$.onMouseOver)==null||W.call($,D);const fe=Number(D.currentTarget.getAttribute("data-index"));y(fe)},hn=$=>D=>{var W;(W=$.onMouseLeave)==null||W.call($,D),y(-1)};return{active:j,axis:_e,axisProps:df,dragging:w,focusedThumbIndex:Q,getHiddenInputProps:($={})=>{var D;const W=ir($),fe={onChange:be(W||{}),onFocus:K(W||{}),onBlur:U(W||{}),onKeyDown:ne(W||{})},me=B({},W,fe);return B({tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(l),"aria-valuemin":b(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(D=e.step)!=null?D:void 0,disabled:r},$,me,{style:B({},ef,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:At,getThumbProps:($={})=>{const D=ir($),W={onMouseOver:pn(D||{}),onMouseLeave:hn(D||{})};return B({},$,D,W)},marks:ie,open:z,range:ce,rootRef:Z,trackLeap:Ct,trackOffset:De,values:Y,getThumbStyle:$=>({pointerEvents:j!==-1&&j!==$?"none":void 0})}}const pf=["values","unit","step"],hf=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)=>B({},n,{[r.key]:r.val}),{})};function Ya(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_t(e,pf),i=hf(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,_){const b=a.indexOf(_);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:_)-r/100}${n})`}function m(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):l(p)}function d(p){const _=a.indexOf(p);return _===0?l(a[1]):_===a.length-1?c(a[_]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return B({keys:a,values:i,up:l,down:c,between:u,only:m,not:d,unit:n},o)}const gf={borderRadius:4},Rt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Pn(e,t){return t?ht(e,t,{clone:!1}):e}const ko={xs:0,sm:600,md:900,lg:1200,xl:1536},Mi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ko[e]}px)`};function vt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Mi;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Mi;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||ko).indexOf(l)!==-1){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function yf(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function vf(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vr(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 mr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vr(e,n)||r,t&&(o=t(o,r,e)),o}function Le(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=vr(c,r)||{};return vt(a,l,d=>{let p=mr(u,o,d);return d===p&&typeof d=="string"&&(p=mr(u,o,`${t}${d==="default"?"":ut(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Rt}:{},i.filterProps=[t],i}function bf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _f={m:"margin",p:"padding"},Cf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Li={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xf=bf(e=>{if(e.length>2)if(Li[e])e=Li[e];else return[e];const[t,n]=e.split(""),r=_f[t],o=Cf[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),br=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_r=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ef=[...br,..._r];function Dn(e,t,n,r){var o;const i=(o=vr(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
71
+ `))},[JSON.stringify(t)])}const c=X.useCallback(u=>{o||a(u)},[]);return[l,c]}function Jr(e){const t=X.useRef(e);return Wa(()=>{t.current=e}),X.useRef((...n)=>(0,t.current)(...n)).current}class To{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new To}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let yr=!0,co=!1;const Hd=new To,Yd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Kd(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Yd[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Zd(e){e.metaKey||e.altKey||e.ctrlKey||(yr=!0)}function Xr(){yr=!1}function Gd(){this.visibilityState==="hidden"&&co&&(yr=!0)}function Jd(e){e.addEventListener("keydown",Zd,!0),e.addEventListener("mousedown",Xr,!0),e.addEventListener("pointerdown",Xr,!0),e.addEventListener("touchstart",Xr,!0),e.addEventListener("visibilitychange",Gd,!0)}function Xd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yr||Kd(t)}function Qd(){const e=X.useCallback(o=>{o!=null&&Jd(o.ownerDocument)},[]),t=X.useRef(!1);function n(){return t.current?(co=!0,Hd.start(100,()=>{co=!1}),t.current=!1,!0):!1}function r(o){return Xd(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const ef={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function uo(e,t){const n=z({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=z({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=z({},i),Object.keys(o).forEach(a=>{n[r][a]=uo(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Ai=e=>e,tf=()=>{let e=Ai;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ai}}},nf=tf(),rf={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 wo(e,t,n="Mui"){const r=rf[t];return r?`${n}-${r}`:`${nf.generate(e)}-${t}`}function of(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=wo(e,o,n)}),r}function af(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const sf=2;function Ha(e,t){return e-t}function Pi(e,t){var n;const{index:r}=(n=e.reduce((o,i,a)=>{const l=Math.abs(t-i);return o===null||l<o.distance||l===o.distance?{distance:l,index:a}:o},null))!=null?n:{};return r}function Xn(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 fr(e,t,n){return(e-t)*100/(n-t)}function lf(e,t,n){return(n-t)*e+t}function cf(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 uf(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(cf(t)))}function $i({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ha)}function Qn({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=ar(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function er(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?af(e,t):!1}const df={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}%`})}},ff=e=>e;let tr;function ji(){return tr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tr=CSS.supports("touch-action","none"):tr=!0),tr}function mf(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:l=100,min:c=0,name:u,onChange:m,onChangeCommitted:f,orientation:p="horizontal",rootRef:v,scale:_=ff,step:d=1,shiftStep:x=10,tabIndex:E,value:R}=e,A=X.useRef(void 0),[O,C]=X.useState(-1),[F,y]=X.useState(-1),[T,S]=X.useState(!1),P=X.useRef(0),[N,H]=Wd({controlled:R,default:n??c,name:"Slider"}),V=m&&((j,D,W)=>{const fe=j.nativeEvent||j,me=new fe.constructor(fe.type,fe);Object.defineProperty(me,"target",{writable:!0,value:{value:D,name:u}}),m(me,D,W)}),ce=Array.isArray(N);let Y=ce?N.slice().sort(Ha):[N];Y=Y.map(j=>j==null?c:nn(j,c,l));const ie=a===!0&&d!==null?[...Array(Math.floor((l-c)/d)+1)].map((j,D)=>({value:c+d*D})):a||[],re=ie.map(j=>j.value),{isFocusVisibleRef:we,onBlur:Pe,onFocus:k,ref:M}=Qd(),[Q,q]=X.useState(-1),B=X.useRef(null),ee=lo(M,B),Z=lo(v,ee),K=j=>D=>{var W;const fe=Number(D.currentTarget.getAttribute("data-index"));k(D),we.current===!0&&q(fe),y(fe),j==null||(W=j.onFocus)==null||W.call(j,D)},U=j=>D=>{var W;Pe(D),we.current===!1&&q(-1),y(-1),j==null||(W=j.onBlur)==null||W.call(j,D)},G=(j,D)=>{const W=Number(j.currentTarget.getAttribute("data-index")),fe=Y[W],me=re.indexOf(fe);let de=D;if(ie&&d==null){const Je=re[re.length-1];de>Je?de=Je:de<re[0]?de=re[0]:de=de<fe?re[me-1]:re[me+1]}if(de=nn(de,c,l),ce){o&&(de=nn(de,Y[W-1]||-1/0,Y[W+1]||1/0));const Je=de;de=$i({values:Y,newValue:de,index:W});let rt=W;o||(rt=de.indexOf(Je)),Qn({sliderRef:B,activeIndex:rt})}H(de),q(W),V&&!er(de,N)&&V(j,de,W),f&&f(j,de)},ne=j=>D=>{var W;if(d!==null){const fe=Number(D.currentTarget.getAttribute("data-index")),me=Y[fe];let de=null;(D.key==="ArrowLeft"||D.key==="ArrowDown")&&D.shiftKey||D.key==="PageDown"?de=Math.max(me-x,c):((D.key==="ArrowRight"||D.key==="ArrowUp")&&D.shiftKey||D.key==="PageUp")&&(de=Math.min(me+x,l)),de!==null&&(G(D,de),D.preventDefault())}j==null||(W=j.onKeyDown)==null||W.call(j,D)};Wa(()=>{if(r&&B.current.contains(document.activeElement)){var j;(j=document.activeElement)==null||j.blur()}},[r]),r&&O!==-1&&C(-1),r&&Q!==-1&&q(-1);const be=j=>D=>{var W;(W=j.onChange)==null||W.call(j,D),G(D,D.target.valueAsNumber)},$=X.useRef(void 0);let _e=p;i&&p==="horizontal"&&(_e+="-reverse");const ae=({finger:j,move:D=!1})=>{const{current:W}=B,{width:fe,height:me,bottom:de,left:Je}=W.getBoundingClientRect();let rt;_e.indexOf("vertical")===0?rt=(de-j.y)/me:rt=(j.x-Je)/fe,_e.indexOf("-reverse")!==-1&&(rt=1-rt);let pe;if(pe=lf(rt,c,l),d)pe=uf(pe,d,c);else{const ft=Pi(re,pe);pe=re[ft]}pe=nn(pe,c,l);let Ye=0;if(ce){D?Ye=$.current:Ye=Pi(Y,pe),o&&(pe=nn(pe,Y[Ye-1]||-1/0,Y[Ye+1]||1/0));const ft=pe;pe=$i({values:Y,newValue:pe,index:Ye}),o&&D||(Ye=pe.indexOf(ft),$.current=Ye)}return{newValue:pe,activeIndex:Ye}},se=Jr(j=>{const D=Xn(j,A);if(!D)return;if(P.current+=1,j.type==="mousemove"&&j.buttons===0){Re(j);return}const{newValue:W,activeIndex:fe}=ae({finger:D,move:!0});Qn({sliderRef:B,activeIndex:fe,setActive:C}),H(W),!T&&P.current>sf&&S(!0),V&&!er(W,N)&&V(j,W,fe)}),Re=Jr(j=>{const D=Xn(j,A);if(S(!1),!D)return;const{newValue:W}=ae({finger:D,move:!0});C(-1),j.type==="touchend"&&y(-1),f&&f(j,W),A.current=void 0,qe()}),Ue=Jr(j=>{if(r)return;ji()||j.preventDefault();const D=j.changedTouches[0];D!=null&&(A.current=D.identifier);const W=Xn(j,A);if(W!==!1){const{newValue:me,activeIndex:de}=ae({finger:W});Qn({sliderRef:B,activeIndex:de,setActive:C}),H(me),V&&!er(me,N)&&V(j,me,de)}P.current=0;const fe=ar(B.current);fe.addEventListener("touchmove",se,{passive:!0}),fe.addEventListener("touchend",Re,{passive:!0})}),qe=X.useCallback(()=>{const j=ar(B.current);j.removeEventListener("mousemove",se),j.removeEventListener("mouseup",Re),j.removeEventListener("touchmove",se),j.removeEventListener("touchend",Re)},[Re,se]);X.useEffect(()=>{const{current:j}=B;return j.addEventListener("touchstart",Ue,{passive:ji()}),()=>{j.removeEventListener("touchstart",Ue),qe()}},[qe,Ue]),X.useEffect(()=>{r&&qe()},[r,qe]);const dt=j=>D=>{var W;if((W=j.onMouseDown)==null||W.call(j,D),r||D.defaultPrevented||D.button!==0)return;D.preventDefault();const fe=Xn(D,A);if(fe!==!1){const{newValue:de,activeIndex:Je}=ae({finger:fe});Qn({sliderRef:B,activeIndex:Je,setActive:C}),H(de),V&&!er(de,N)&&V(D,de,Je)}P.current=0;const me=ar(B.current);me.addEventListener("mousemove",se,{passive:!0}),me.addEventListener("mouseup",Re)},De=fr(ce?Y[0]:c,c,l),Ct=fr(Y[Y.length-1],c,l)-De,At=(j={})=>{const D=ir(j),W={onMouseDown:dt(D||{})},fe=z({},D,W);return z({},j,{ref:Z},fe)},pn=j=>D=>{var W;(W=j.onMouseOver)==null||W.call(j,D);const fe=Number(D.currentTarget.getAttribute("data-index"));y(fe)},hn=j=>D=>{var W;(W=j.onMouseLeave)==null||W.call(j,D),y(-1)};return{active:O,axis:_e,axisProps:df,dragging:T,focusedThumbIndex:Q,getHiddenInputProps:(j={})=>{var D;const W=ir(j),fe={onChange:be(W||{}),onFocus:K(W||{}),onBlur:U(W||{}),onKeyDown:ne(W||{})},me=z({},W,fe);return z({tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":_(l),"aria-valuemin":_(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(D=e.step)!=null?D:void 0,disabled:r},j,me,{style:z({},ef,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:At,getThumbProps:(j={})=>{const D=ir(j),W={onMouseOver:pn(D||{}),onMouseLeave:hn(D||{})};return z({},j,D,W)},marks:ie,open:F,range:ce,rootRef:Z,trackLeap:Ct,trackOffset:De,values:Y,getThumbStyle:j=>({pointerEvents:O!==-1&&O!==j?"none":void 0})}}const pf=["values","unit","step"],hf=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)=>z({},n,{[r.key]:r.val}),{})};function Ya(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_t(e,pf),i=hf(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,v){const _=a.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(_!==-1&&typeof t[a[_]]=="number"?t[a[_]]:v)-r/100}${n})`}function m(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):l(p)}function f(p){const v=a.indexOf(p);return v===0?l(a[1]):v===a.length-1?c(a[v]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return z({keys:a,values:i,up:l,down:c,between:u,only:m,not:f,unit:n},o)}const gf={borderRadius:4},Rt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Pn(e,t){return t?ht(e,t,{clone:!1}):e}const ko={xs:0,sm:600,md:900,lg:1200,xl:1536},Mi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ko[e]}px)`};function vt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Mi;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Mi;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||ko).indexOf(l)!==-1){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function yf(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function vf(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vr(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 mr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vr(e,n)||r,t&&(o=t(o,r,e)),o}function Le(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=vr(c,r)||{};return vt(a,l,f=>{let p=mr(u,o,f);return f===p&&typeof f=="string"&&(p=mr(u,o,`${t}${f==="default"?"":ut(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Rt}:{},i.filterProps=[t],i}function bf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _f={m:"margin",p:"padding"},Cf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Li={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xf=bf(e=>{if(e.length>2)if(Li[e])e=Li[e];else return[e];const[t,n]=e.split(""),r=_f[t],o=Cf[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),br=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_r=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ef=[...br,..._r];function Dn(e,t,n,r){var o;const i=(o=vr(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
72
72
  `)):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(`
73
73
  `))),i[a]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
74
- `)),()=>{})}function Ka(e){return Dn(e,"spacing",8,"spacing")}function Fn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Sf(e,t){return n=>e.reduce((r,o)=>(r[o]=Fn(t,n),r),{})}function Tf(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=xf(n),i=Sf(o,r),a=e[n];return vt(e,a,i)}function Za(e,t){const n=Ka(e.theme);return Object.keys(e).map(r=>Tf(e,t,r,n)).reduce(Pn,{})}function $e(e){return Za(e,br)}$e.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=Rt,e),{}):{};$e.filterProps=br;function je(e){return Za(e,_r)}je.propTypes=process.env.NODE_ENV!=="production"?_r.reduce((e,t)=>(e[t]=Rt,e),{}):{};je.filterProps=_r;process.env.NODE_ENV!=="production"&&Ef.reduce((e,t)=>(e[t]=Rt,e),{});function wf(e=8){if(e.mui)return e;const t=Ka({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Cr(...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]?Pn(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 at(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const kf=lt("border",at),Of=lt("borderTop",at),Rf=lt("borderRight",at),Af=lt("borderBottom",at),Pf=lt("borderLeft",at),$f=lt("borderColor"),jf=lt("borderTopColor"),Mf=lt("borderRightColor"),Lf=lt("borderBottomColor"),Nf=lt("borderLeftColor"),If=lt("outline",at),Df=lt("outlineColor"),xr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Fn(t,r)});return vt(e,e.borderRadius,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Rt}:{};xr.filterProps=["borderRadius"];Cr(kf,Of,Rf,Af,Pf,$f,jf,Mf,Lf,Nf,xr,If,Df);const Er=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dn(e.theme,"spacing",8,"gap"),n=r=>({gap:Fn(t,r)});return vt(e,e.gap,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{gap:Rt}:{};Er.filterProps=["gap"];const Sr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Fn(t,r)});return vt(e,e.columnGap,n)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Rt}:{};Sr.filterProps=["columnGap"];const Tr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Fn(t,r)});return vt(e,e.rowGap,n)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Rt}:{};Tr.filterProps=["rowGap"];const Ff=Le({prop:"gridColumn"}),Bf=Le({prop:"gridRow"}),zf=Le({prop:"gridAutoFlow"}),Vf=Le({prop:"gridAutoColumns"}),Uf=Le({prop:"gridAutoRows"}),qf=Le({prop:"gridTemplateColumns"}),Wf=Le({prop:"gridTemplateRows"}),Hf=Le({prop:"gridTemplateAreas"}),Yf=Le({prop:"gridArea"});Cr(Er,Sr,Tr,Ff,Bf,zf,Vf,Uf,qf,Wf,Hf,Yf);function an(e,t){return t==="grey"?t:e}const Kf=Le({prop:"color",themeKey:"palette",transform:an}),Zf=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:an}),Gf=Le({prop:"backgroundColor",themeKey:"palette",transform:an});Cr(Kf,Zf,Gf);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Jf=Le({prop:"width",transform:tt}),Oo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ko[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:tt(n)}};return vt(e,e.maxWidth,t)}return null};Oo.filterProps=["maxWidth"];const Xf=Le({prop:"minWidth",transform:tt}),Qf=Le({prop:"height",transform:tt}),em=Le({prop:"maxHeight",transform:tt}),tm=Le({prop:"minHeight",transform:tt});Le({prop:"size",cssProperty:"width",transform:tt});Le({prop:"size",cssProperty:"height",transform:tt});const nm=Le({prop:"boxSizing"});Cr(Jf,Oo,Xf,Qf,em,tm,nm);const Bn={border:{themeKey:"borders",transform:at},borderTop:{themeKey:"borders",transform:at},borderRight:{themeKey:"borders",transform:at},borderBottom:{themeKey:"borders",transform:at},borderLeft:{themeKey:"borders",transform:at},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:at},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xr},color:{themeKey:"palette",transform:an},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:an},backgroundColor:{themeKey:"palette",transform:an},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},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:Er},rowGap:{style:Tr},columnGap:{style:Sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tt},maxWidth:{style:Oo},minWidth:{transform:tt},height:{transform:tt},maxHeight:{transform:tt},minHeight:{transform:tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rm(...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 om(e,t){return typeof e=="function"?e(t):e}function Ga(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:m,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=vr(o,u)||{};return d?d(a):vt(a,r,b=>{let f=mr(p,m,b);return b===f&&typeof b=="string"&&(f=mr(p,m,`${n}${b==="default"?"":ut(b)}`,b)),c===!1?f:{[c]:f}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Bn;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const m=yf(i.breakpoints),d=Object.keys(m);let p=m;return Object.keys(u).forEach(_=>{const b=om(u[_],i);if(b!=null)if(typeof b=="object")if(a[_])p=Pn(p,e(_,b,i,a));else{const f=vt({theme:i},b,x=>({[_]:x}));rm(f,b)?p[_]=t({sx:b,theme:i}):p=Pn(p,f)}else p=Pn(p,e(_,b,i,a))}),vf(d,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const wr=Ga();wr.filterProps=["sx"];function Ja(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const im=["breakpoints","palette","spacing","shape"];function Xa(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=_t(e,im),l=Ya(n),c=wf(o);let u=ht({breakpoints:l,direction:"ltr",components:{},palette:B({mode:"light"},r),spacing:c,shape:B({},gf,i)},a);return u.applyStyles=Ja,u=t.reduce((m,d)=>ht(m,d),u),u.unstable_sxConfig=B({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return wr({sx:d,theme:this})},u}const am=Object.freeze(Object.defineProperty({__proto__:null,default:Xa,private_createBreakpoints:Ya,unstable_applyStyles:Ja},Symbol.toStringTag,{value:"Module"}));function sm(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function lm(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var cm=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(lm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=sm(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),He="-ms-",pr="-moz-",he="-webkit-",Qa="comm",Ro="rule",Ao="decl",um="@import",es="@keyframes",dm="@layer",fm=Math.abs,kr=String.fromCharCode,mm=Object.assign;function pm(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function ts(e){return e.trim()}function hm(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function fo(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function jn(e,t,n){return e.slice(t,n)}function mt(e){return e.length}function Po(e){return e.length}function nr(e,t){return t.push(e),e}function gm(e,t){return e.map(t).join("")}var Or=1,un=1,ns=0,Ge=0,Ie=0,mn="";function Rr(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Or,column:un,length:a,return:""}}function Sn(e,t){return mm(Rr("",null,null,"",null,null,0),e,{length:-e.length},t)}function ym(){return Ie}function vm(){return Ie=Ge>0?ze(mn,--Ge):0,un--,Ie===10&&(un=1,Or--),Ie}function nt(){return Ie=Ge<ns?ze(mn,Ge++):0,un++,Ie===10&&(un=1,Or++),Ie}function gt(){return ze(mn,Ge)}function sr(){return Ge}function zn(e,t){return jn(mn,e,t)}function Mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rs(e){return Or=un=1,ns=mt(mn=e),Ge=0,[]}function os(e){return mn="",e}function lr(e){return ts(zn(Ge-1,mo(e===91?e+2:e===40?e+1:e)))}function bm(e){for(;(Ie=gt())&&Ie<33;)nt();return Mn(e)>2||Mn(Ie)>3?"":" "}function _m(e,t){for(;--t&&nt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return zn(e,sr()+(t<6&&gt()==32&&nt()==32))}function mo(e){for(;nt();)switch(Ie){case e:return Ge;case 34:case 39:e!==34&&e!==39&&mo(Ie);break;case 40:e===41&&mo(e);break;case 92:nt();break}return Ge}function Cm(e,t){for(;nt()&&e+Ie!==57;)if(e+Ie===84&&gt()===47)break;return"/*"+zn(t,Ge-1)+"*"+kr(e===47?e:nt())}function xm(e){for(;!Mn(gt());)nt();return zn(e,Ge)}function Em(e){return os(cr("",null,null,null,[""],e=rs(e),0,[0],e))}function cr(e,t,n,r,o,i,a,l,c){for(var u=0,m=0,d=a,p=0,_=0,b=0,f=1,x=1,E=1,T=0,k="",j=o,C=i,z=r,y=k;x;)switch(b=T,T=nt()){case 40:if(b!=108&&ze(y,d-1)==58){fo(y+=ge(lr(T),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:y+=lr(T);break;case 9:case 10:case 13:case 32:y+=bm(b);break;case 92:y+=_m(sr()-1,7);continue;case 47:switch(gt()){case 42:case 47:nr(Sm(Cm(nt(),sr()),t,n),c);break;default:y+="/"}break;case 123*f:l[u++]=mt(y)*E;case 125*f:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+m:E==-1&&(y=ge(y,/\f/g,"")),_>0&&mt(y)-d&&nr(_>32?Ii(y+";",r,n,d-1):Ii(ge(y," ","")+";",r,n,d-2),c);break;case 59:y+=";";default:if(nr(z=Ni(y,t,n,u,m,o,l,k,j=[],C=[],d),i),T===123)if(m===0)cr(y,t,z,z,j,i,d,l,C);else switch(p===99&&ze(y,3)===110?100:p){case 100:case 108:case 109:case 115:cr(e,z,z,r&&nr(Ni(e,z,z,0,0,o,l,k,o,j=[],d),C),o,C,d,l,r?j:C);break;default:cr(y,z,z,z,[""],C,0,l,C)}}u=m=_=0,f=E=1,k=y="",d=a;break;case 58:d=1+mt(y),_=b;default:if(f<1){if(T==123)--f;else if(T==125&&f++==0&&vm()==125)continue}switch(y+=kr(T),T*f){case 38:E=m>0?1:(y+="\f",-1);break;case 44:l[u++]=(mt(y)-1)*E,E=1;break;case 64:gt()===45&&(y+=lr(nt())),p=gt(),m=d=mt(k=y+=xm(sr())),T++;break;case 45:b===45&&mt(y)==2&&(f=0)}}return i}function Ni(e,t,n,r,o,i,a,l,c,u,m){for(var d=o-1,p=o===0?i:[""],_=Po(p),b=0,f=0,x=0;b<r;++b)for(var E=0,T=jn(e,d+1,d=fm(f=a[b])),k=e;E<_;++E)(k=ts(f>0?p[E]+" "+T:ge(T,/&\f/g,p[E])))&&(c[x++]=k);return Rr(e,t,n,o===0?Ro:l,c,u,m)}function Sm(e,t,n){return Rr(e,t,n,Qa,kr(ym()),jn(e,2,-2),0)}function Ii(e,t,n,r){return Rr(e,t,n,Ao,jn(e,0,r),jn(e,r+1,-1),r)}function sn(e,t){for(var n="",r=Po(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Tm(e,t,n,r){switch(e.type){case dm:if(e.children.length)break;case um:case Ao:return e.return=e.return||e.value;case Qa:return"";case es:return e.return=e.value+"{"+sn(e.children,r)+"}";case Ro:e.value=e.props.join(",")}return mt(n=sn(e.children,r))?e.return=e.value+"{"+n+"}":""}function wm(e){var t=Po(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function km(e){return function(t){t.root||(t=t.return)&&e(t)}}var Om=function(t,n,r){for(var o=0,i=0;o=i,i=gt(),o===38&&i===12&&(n[r]=1),!Mn(i);)nt();return zn(t,Ge)},Rm=function(t,n){var r=-1,o=44;do switch(Mn(o)){case 0:o===38&&gt()===12&&(n[r]=1),t[r]+=Om(Ge-1,n,r);break;case 2:t[r]+=lr(o);break;case 4:if(o===44){t[++r]=gt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=kr(o)}while(o=nt());return t},Am=function(t,n){return os(Rm(rs(t),n))},Di=new WeakMap,Pm=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Di.get(r))&&!o){Di.set(t,!0);for(var i=[],a=Am(n,i),l=r.props,c=0,u=0;c<a.length;c++)for(var m=0;m<l.length;m++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,l[m]):l[m]+" "+a[c]}}},$m=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function is(e,t){switch(pm(e,t)){case 5103:return he+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return he+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return he+e+pr+e+He+e+e;case 6828:case 4268:return he+e+He+e+e;case 6165:return he+e+He+"flex-"+e+e;case 5187:return he+e+ge(e,/(\w+).+(:[^]+)/,he+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return he+e+He+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return he+e+He+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return he+e+He+ge(e,"shrink","negative")+e;case 5292:return he+e+He+ge(e,"basis","preferred-size")+e;case 6060:return he+"box-"+ge(e,"-grow","")+he+e+He+ge(e,"grow","positive")+e;case 4554:return he+ge(e,/([^-])(transform)/g,"$1"+he+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,he+"$1"),/(image-set)/,he+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,he+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,he+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+he+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,he+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mt(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+pr+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fo(e,"stretch")?is(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,mt(e)-3-(~fo(e,"!important")&&10))){case 107:return ge(e,":",":"+he)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(ze(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+He+e+e}return e}var jm=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ao:t.return=is(t.value,t.length);break;case es:return sn([Sn(t,{value:ge(t.value,"@","@"+he)})],o);case Ro:if(t.length)return gm(t.props,function(i){switch(hm(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sn([Sn(t,{props:[ge(i,/:(read-\w+)/,":"+pr+"$1")]})],o);case"::placeholder":return sn([Sn(t,{props:[ge(i,/:(plac\w+)/,":"+he+"input-$1")]}),Sn(t,{props:[ge(i,/:(plac\w+)/,":"+pr+"$1")]}),Sn(t,{props:[ge(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},Mm=[jm],Lm=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var x=f.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||Mm,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),E=1;E<x.length;E++)i[x[E]]=!0;l.push(f)});var c,u=[Pm,$m];{var m,d=[Tm,km(function(f){m.insert(f)})],p=wm(u.concat(o,d)),_=function(x){return sn(Em(x),p)};c=function(x,E,T,k){m=T,_(x?x+"{"+E.styles+"}":E.styles),k&&(b.inserted[E.name]=!0)}}var b={key:n,sheet:new cm({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return b.sheet.hydrate(l),b};let po;typeof document=="object"&&(po=Lm({key:"css",prepend:!0}));function as(e){const{injectFirst:t,children:n}=e;return t&&po?h.jsx(on.CacheProvider,{value:po,children:n}):n}process.env.NODE_ENV!=="production"&&(as.propTypes={children:s.node,injectFirst:s.bool});function Nm(e){return e==null||Object.keys(e).length===0}function ss(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Nm(o)?n:o):t;return h.jsx(on.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(ss.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
74
+ `)),()=>{})}function Ka(e){return Dn(e,"spacing",8,"spacing")}function Fn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Sf(e,t){return n=>e.reduce((r,o)=>(r[o]=Fn(t,n),r),{})}function Tf(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=xf(n),i=Sf(o,r),a=e[n];return vt(e,a,i)}function Za(e,t){const n=Ka(e.theme);return Object.keys(e).map(r=>Tf(e,t,r,n)).reduce(Pn,{})}function $e(e){return Za(e,br)}$e.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=Rt,e),{}):{};$e.filterProps=br;function je(e){return Za(e,_r)}je.propTypes=process.env.NODE_ENV!=="production"?_r.reduce((e,t)=>(e[t]=Rt,e),{}):{};je.filterProps=_r;process.env.NODE_ENV!=="production"&&Ef.reduce((e,t)=>(e[t]=Rt,e),{});function wf(e=8){if(e.mui)return e;const t=Ka({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Cr(...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]?Pn(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 at(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const kf=lt("border",at),Of=lt("borderTop",at),Rf=lt("borderRight",at),Af=lt("borderBottom",at),Pf=lt("borderLeft",at),$f=lt("borderColor"),jf=lt("borderTopColor"),Mf=lt("borderRightColor"),Lf=lt("borderBottomColor"),Nf=lt("borderLeftColor"),If=lt("outline",at),Df=lt("outlineColor"),xr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Fn(t,r)});return vt(e,e.borderRadius,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Rt}:{};xr.filterProps=["borderRadius"];Cr(kf,Of,Rf,Af,Pf,$f,jf,Mf,Lf,Nf,xr,If,Df);const Er=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dn(e.theme,"spacing",8,"gap"),n=r=>({gap:Fn(t,r)});return vt(e,e.gap,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{gap:Rt}:{};Er.filterProps=["gap"];const Sr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Fn(t,r)});return vt(e,e.columnGap,n)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Rt}:{};Sr.filterProps=["columnGap"];const Tr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Fn(t,r)});return vt(e,e.rowGap,n)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Rt}:{};Tr.filterProps=["rowGap"];const Ff=Le({prop:"gridColumn"}),Bf=Le({prop:"gridRow"}),zf=Le({prop:"gridAutoFlow"}),Vf=Le({prop:"gridAutoColumns"}),Uf=Le({prop:"gridAutoRows"}),qf=Le({prop:"gridTemplateColumns"}),Wf=Le({prop:"gridTemplateRows"}),Hf=Le({prop:"gridTemplateAreas"}),Yf=Le({prop:"gridArea"});Cr(Er,Sr,Tr,Ff,Bf,zf,Vf,Uf,qf,Wf,Hf,Yf);function an(e,t){return t==="grey"?t:e}const Kf=Le({prop:"color",themeKey:"palette",transform:an}),Zf=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:an}),Gf=Le({prop:"backgroundColor",themeKey:"palette",transform:an});Cr(Kf,Zf,Gf);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Jf=Le({prop:"width",transform:tt}),Oo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ko[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:tt(n)}};return vt(e,e.maxWidth,t)}return null};Oo.filterProps=["maxWidth"];const Xf=Le({prop:"minWidth",transform:tt}),Qf=Le({prop:"height",transform:tt}),em=Le({prop:"maxHeight",transform:tt}),tm=Le({prop:"minHeight",transform:tt});Le({prop:"size",cssProperty:"width",transform:tt});Le({prop:"size",cssProperty:"height",transform:tt});const nm=Le({prop:"boxSizing"});Cr(Jf,Oo,Xf,Qf,em,tm,nm);const Bn={border:{themeKey:"borders",transform:at},borderTop:{themeKey:"borders",transform:at},borderRight:{themeKey:"borders",transform:at},borderBottom:{themeKey:"borders",transform:at},borderLeft:{themeKey:"borders",transform:at},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:at},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xr},color:{themeKey:"palette",transform:an},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:an},backgroundColor:{themeKey:"palette",transform:an},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},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:Er},rowGap:{style:Tr},columnGap:{style:Sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tt},maxWidth:{style:Oo},minWidth:{transform:tt},height:{transform:tt},maxHeight:{transform:tt},minHeight:{transform:tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rm(...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 om(e,t){return typeof e=="function"?e(t):e}function Ga(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:m,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=vr(o,u)||{};return f?f(a):vt(a,r,_=>{let d=mr(p,m,_);return _===d&&typeof _=="string"&&(d=mr(p,m,`${n}${_==="default"?"":ut(_)}`,_)),c===!1?d:{[c]:d}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Bn;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const m=yf(i.breakpoints),f=Object.keys(m);let p=m;return Object.keys(u).forEach(v=>{const _=om(u[v],i);if(_!=null)if(typeof _=="object")if(a[v])p=Pn(p,e(v,_,i,a));else{const d=vt({theme:i},_,x=>({[v]:x}));rm(d,_)?p[v]=t({sx:_,theme:i}):p=Pn(p,d)}else p=Pn(p,e(v,_,i,a))}),vf(f,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const wr=Ga();wr.filterProps=["sx"];function Ja(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const im=["breakpoints","palette","spacing","shape"];function Xa(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=_t(e,im),l=Ya(n),c=wf(o);let u=ht({breakpoints:l,direction:"ltr",components:{},palette:z({mode:"light"},r),spacing:c,shape:z({},gf,i)},a);return u.applyStyles=Ja,u=t.reduce((m,f)=>ht(m,f),u),u.unstable_sxConfig=z({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return wr({sx:f,theme:this})},u}const am=Object.freeze(Object.defineProperty({__proto__:null,default:Xa,private_createBreakpoints:Ya,unstable_applyStyles:Ja},Symbol.toStringTag,{value:"Module"}));function sm(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function lm(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var cm=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(lm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=sm(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),He="-ms-",pr="-moz-",he="-webkit-",Qa="comm",Ro="rule",Ao="decl",um="@import",es="@keyframes",dm="@layer",fm=Math.abs,kr=String.fromCharCode,mm=Object.assign;function pm(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function ts(e){return e.trim()}function hm(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function fo(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function jn(e,t,n){return e.slice(t,n)}function mt(e){return e.length}function Po(e){return e.length}function nr(e,t){return t.push(e),e}function gm(e,t){return e.map(t).join("")}var Or=1,un=1,ns=0,Ge=0,Ie=0,mn="";function Rr(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Or,column:un,length:a,return:""}}function Sn(e,t){return mm(Rr("",null,null,"",null,null,0),e,{length:-e.length},t)}function ym(){return Ie}function vm(){return Ie=Ge>0?ze(mn,--Ge):0,un--,Ie===10&&(un=1,Or--),Ie}function nt(){return Ie=Ge<ns?ze(mn,Ge++):0,un++,Ie===10&&(un=1,Or++),Ie}function gt(){return ze(mn,Ge)}function sr(){return Ge}function zn(e,t){return jn(mn,e,t)}function Mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rs(e){return Or=un=1,ns=mt(mn=e),Ge=0,[]}function os(e){return mn="",e}function lr(e){return ts(zn(Ge-1,mo(e===91?e+2:e===40?e+1:e)))}function bm(e){for(;(Ie=gt())&&Ie<33;)nt();return Mn(e)>2||Mn(Ie)>3?"":" "}function _m(e,t){for(;--t&&nt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return zn(e,sr()+(t<6&&gt()==32&&nt()==32))}function mo(e){for(;nt();)switch(Ie){case e:return Ge;case 34:case 39:e!==34&&e!==39&&mo(Ie);break;case 40:e===41&&mo(e);break;case 92:nt();break}return Ge}function Cm(e,t){for(;nt()&&e+Ie!==57;)if(e+Ie===84&&gt()===47)break;return"/*"+zn(t,Ge-1)+"*"+kr(e===47?e:nt())}function xm(e){for(;!Mn(gt());)nt();return zn(e,Ge)}function Em(e){return os(cr("",null,null,null,[""],e=rs(e),0,[0],e))}function cr(e,t,n,r,o,i,a,l,c){for(var u=0,m=0,f=a,p=0,v=0,_=0,d=1,x=1,E=1,R=0,A="",O=o,C=i,F=r,y=A;x;)switch(_=R,R=nt()){case 40:if(_!=108&&ze(y,f-1)==58){fo(y+=ge(lr(R),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:y+=lr(R);break;case 9:case 10:case 13:case 32:y+=bm(_);break;case 92:y+=_m(sr()-1,7);continue;case 47:switch(gt()){case 42:case 47:nr(Sm(Cm(nt(),sr()),t,n),c);break;default:y+="/"}break;case 123*d:l[u++]=mt(y)*E;case 125*d:case 59:case 0:switch(R){case 0:case 125:x=0;case 59+m:E==-1&&(y=ge(y,/\f/g,"")),v>0&&mt(y)-f&&nr(v>32?Ii(y+";",r,n,f-1):Ii(ge(y," ","")+";",r,n,f-2),c);break;case 59:y+=";";default:if(nr(F=Ni(y,t,n,u,m,o,l,A,O=[],C=[],f),i),R===123)if(m===0)cr(y,t,F,F,O,i,f,l,C);else switch(p===99&&ze(y,3)===110?100:p){case 100:case 108:case 109:case 115:cr(e,F,F,r&&nr(Ni(e,F,F,0,0,o,l,A,o,O=[],f),C),o,C,f,l,r?O:C);break;default:cr(y,F,F,F,[""],C,0,l,C)}}u=m=v=0,d=E=1,A=y="",f=a;break;case 58:f=1+mt(y),v=_;default:if(d<1){if(R==123)--d;else if(R==125&&d++==0&&vm()==125)continue}switch(y+=kr(R),R*d){case 38:E=m>0?1:(y+="\f",-1);break;case 44:l[u++]=(mt(y)-1)*E,E=1;break;case 64:gt()===45&&(y+=lr(nt())),p=gt(),m=f=mt(A=y+=xm(sr())),R++;break;case 45:_===45&&mt(y)==2&&(d=0)}}return i}function Ni(e,t,n,r,o,i,a,l,c,u,m){for(var f=o-1,p=o===0?i:[""],v=Po(p),_=0,d=0,x=0;_<r;++_)for(var E=0,R=jn(e,f+1,f=fm(d=a[_])),A=e;E<v;++E)(A=ts(d>0?p[E]+" "+R:ge(R,/&\f/g,p[E])))&&(c[x++]=A);return Rr(e,t,n,o===0?Ro:l,c,u,m)}function Sm(e,t,n){return Rr(e,t,n,Qa,kr(ym()),jn(e,2,-2),0)}function Ii(e,t,n,r){return Rr(e,t,n,Ao,jn(e,0,r),jn(e,r+1,-1),r)}function sn(e,t){for(var n="",r=Po(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Tm(e,t,n,r){switch(e.type){case dm:if(e.children.length)break;case um:case Ao:return e.return=e.return||e.value;case Qa:return"";case es:return e.return=e.value+"{"+sn(e.children,r)+"}";case Ro:e.value=e.props.join(",")}return mt(n=sn(e.children,r))?e.return=e.value+"{"+n+"}":""}function wm(e){var t=Po(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function km(e){return function(t){t.root||(t=t.return)&&e(t)}}var Om=function(t,n,r){for(var o=0,i=0;o=i,i=gt(),o===38&&i===12&&(n[r]=1),!Mn(i);)nt();return zn(t,Ge)},Rm=function(t,n){var r=-1,o=44;do switch(Mn(o)){case 0:o===38&&gt()===12&&(n[r]=1),t[r]+=Om(Ge-1,n,r);break;case 2:t[r]+=lr(o);break;case 4:if(o===44){t[++r]=gt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=kr(o)}while(o=nt());return t},Am=function(t,n){return os(Rm(rs(t),n))},Di=new WeakMap,Pm=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Di.get(r))&&!o){Di.set(t,!0);for(var i=[],a=Am(n,i),l=r.props,c=0,u=0;c<a.length;c++)for(var m=0;m<l.length;m++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,l[m]):l[m]+" "+a[c]}}},$m=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function is(e,t){switch(pm(e,t)){case 5103:return he+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return he+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return he+e+pr+e+He+e+e;case 6828:case 4268:return he+e+He+e+e;case 6165:return he+e+He+"flex-"+e+e;case 5187:return he+e+ge(e,/(\w+).+(:[^]+)/,he+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return he+e+He+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return he+e+He+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return he+e+He+ge(e,"shrink","negative")+e;case 5292:return he+e+He+ge(e,"basis","preferred-size")+e;case 6060:return he+"box-"+ge(e,"-grow","")+he+e+He+ge(e,"grow","positive")+e;case 4554:return he+ge(e,/([^-])(transform)/g,"$1"+he+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,he+"$1"),/(image-set)/,he+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,he+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,he+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+he+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,he+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mt(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+pr+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fo(e,"stretch")?is(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,mt(e)-3-(~fo(e,"!important")&&10))){case 107:return ge(e,":",":"+he)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(ze(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+He+e+e}return e}var jm=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ao:t.return=is(t.value,t.length);break;case es:return sn([Sn(t,{value:ge(t.value,"@","@"+he)})],o);case Ro:if(t.length)return gm(t.props,function(i){switch(hm(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sn([Sn(t,{props:[ge(i,/:(read-\w+)/,":"+pr+"$1")]})],o);case"::placeholder":return sn([Sn(t,{props:[ge(i,/:(plac\w+)/,":"+he+"input-$1")]}),Sn(t,{props:[ge(i,/:(plac\w+)/,":"+pr+"$1")]}),Sn(t,{props:[ge(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},Mm=[jm],Lm=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(d){var x=d.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var o=t.stylisPlugins||Mm,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(d){for(var x=d.getAttribute("data-emotion").split(" "),E=1;E<x.length;E++)i[x[E]]=!0;l.push(d)});var c,u=[Pm,$m];{var m,f=[Tm,km(function(d){m.insert(d)})],p=wm(u.concat(o,f)),v=function(x){return sn(Em(x),p)};c=function(x,E,R,A){m=R,v(x?x+"{"+E.styles+"}":E.styles),A&&(_.inserted[E.name]=!0)}}var _={key:n,sheet:new cm({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return _.sheet.hydrate(l),_};let po;typeof document=="object"&&(po=Lm({key:"css",prepend:!0}));function as(e){const{injectFirst:t,children:n}=e;return t&&po?h.jsx(on.CacheProvider,{value:po,children:n}):n}process.env.NODE_ENV!=="production"&&(as.propTypes={children:s.node,injectFirst:s.bool});function Nm(e){return e==null||Object.keys(e).length===0}function ss(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Nm(o)?n:o):t;return h.jsx(on.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(ss.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
75
75
  * @mui/styled-engine v5.16.14
76
76
  *
77
77
  * @license MIT
78
78
  * This source code is licensed under the MIT license found in the
79
79
  * LICENSE file in the root directory of this source tree.
80
80
  */function Im(e,t){const n=ws(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(`
81
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Dm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Fm=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ss,StyledEngineProvider:as,ThemeContext:on.ThemeContext,css:on.css,default:Im,internal_processStyles:Dm,keyframes:on.keyframes},Symbol.toStringTag,{value:"Module"})),Bm=["sx"],zm=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Bn;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Vm(e){const{sx:t}=e,n=_t(e,Bm),{systemProps:r,otherProps:o}=zm(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Tt(l)?B({},r,l):r}:i=B({},r,t),B({},o,{sx:i})}const Um=Object.freeze(Object.defineProperty({__proto__:null,default:wr,extendSxProp:Vm,unstable_createStyleFunctionSx:Ga,unstable_defaultSxConfig:Bn},Symbol.toStringTag,{value:"Module"}));function qm(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ln={black:"#000",white:"#fff"},Wm={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"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Tn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Xt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},en={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Hm=["mode","contrastThreshold","tonalOffset"],Fi={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:Ln.white,default:Ln.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}},Qr={text:{primary:Ln.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:Ln.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Bi(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=pt.lighten(e.main,o):t==="dark"&&(e.dark=pt.darken(e.main,i)))}function Ym(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Km(e="light"){return e==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[500],light:Gt[300],dark:Gt[700]}}function Zm(e="light"){return e==="dark"?{main:Jt[500],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[400],dark:Jt[800]}}function Gm(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function Jm(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function Xm(e="light"){return e==="dark"?{main:Tn[400],light:Tn[300],dark:Tn[700]}:{main:"#ed6c02",light:Tn[500],dark:Tn[900]}}function Qm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=_t(e,Hm),i=e.primary||Ym(t),a=e.secondary||Km(t),l=e.error||Zm(t),c=e.info||Gm(t),u=e.success||Jm(t),m=e.warning||Xm(t);function d(f){const x=pt.getContrastRatio(f,Qr.text.primary)>=n?Qr.text.primary:Fi.text.primary;if(process.env.NODE_ENV!=="production"){const E=pt.getContrastRatio(f,x);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${f}`,"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(`
82
- `))}return x}const p=({color:f,name:x,mainShade:E=500,lightShade:T=300,darkShade:k=700})=>{if(f=B({},f),!f.main&&f[E]&&(f.main=f[E]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
83
- The color object needs to have a \`main\` property or a \`${E}\` property.`:$n(11,x?` (${x})`:"",E));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
84
- \`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
81
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Dm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Fm=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ss,StyledEngineProvider:as,ThemeContext:on.ThemeContext,css:on.css,default:Im,internal_processStyles:Dm,keyframes:on.keyframes},Symbol.toStringTag,{value:"Module"})),Bm=["sx"],zm=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Bn;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Vm(e){const{sx:t}=e,n=_t(e,Bm),{systemProps:r,otherProps:o}=zm(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Tt(l)?z({},r,l):r}:i=z({},r,t),z({},o,{sx:i})}const Um=Object.freeze(Object.defineProperty({__proto__:null,default:wr,extendSxProp:Vm,unstable_createStyleFunctionSx:Ga,unstable_defaultSxConfig:Bn},Symbol.toStringTag,{value:"Module"}));function qm(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ln={black:"#000",white:"#fff"},Wm={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"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Tn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Xt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},en={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Hm=["mode","contrastThreshold","tonalOffset"],Fi={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:Ln.white,default:Ln.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}},Qr={text:{primary:Ln.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:Ln.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Bi(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=pt.lighten(e.main,o):t==="dark"&&(e.dark=pt.darken(e.main,i)))}function Ym(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Km(e="light"){return e==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[500],light:Gt[300],dark:Gt[700]}}function Zm(e="light"){return e==="dark"?{main:Jt[500],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[400],dark:Jt[800]}}function Gm(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function Jm(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function Xm(e="light"){return e==="dark"?{main:Tn[400],light:Tn[300],dark:Tn[700]}:{main:"#ed6c02",light:Tn[500],dark:Tn[900]}}function Qm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=_t(e,Hm),i=e.primary||Ym(t),a=e.secondary||Km(t),l=e.error||Zm(t),c=e.info||Gm(t),u=e.success||Jm(t),m=e.warning||Xm(t);function f(d){const x=pt.getContrastRatio(d,Qr.text.primary)>=n?Qr.text.primary:Fi.text.primary;if(process.env.NODE_ENV!=="production"){const E=pt.getContrastRatio(d,x);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${d}`,"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(`
82
+ `))}return x}const p=({color:d,name:x,mainShade:E=500,lightShade:R=300,darkShade:A=700})=>{if(d=z({},d),!d.main&&d[E]&&(d.main=d[E]),!d.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
83
+ The color object needs to have a \`main\` property or a \`${E}\` property.`:$n(11,x?` (${x})`:"",E));if(typeof d.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
84
+ \`color.main\` should be a string, but \`${JSON.stringify(d.main)}\` was provided instead.
85
85
 
86
86
  Did you intend to use one of the following approaches?
87
87
 
@@ -93,6 +93,6 @@ const theme1 = createTheme({ palette: {
93
93
 
94
94
  const theme2 = createTheme({ palette: {
95
95
  primary: { main: green[500] },
96
- } });`:$n(12,x?` (${x})`:"",JSON.stringify(f.main)));return Bi(f,"light",T,r),Bi(f,"dark",k,r),f.contrastText||(f.contrastText=d(f.main)),f},_={dark:Qr,light:Fi};return process.env.NODE_ENV!=="production"&&(_[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ht(B({common:B({},Ln),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:m,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:Wm,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},_[t]),o)}const ep=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function tp(e){return Math.round(e*1e5)/1e5}const zi={textTransform:"uppercase"},Vi='"Roboto", "Helvetica", "Arial", sans-serif';function np(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Vi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:m,pxToRem:d}=n,p=_t(n,ep);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const _=o/14,b=d||(E=>`${E/u*_}rem`),f=(E,T,k,j,C)=>B({fontFamily:r,fontWeight:E,fontSize:b(T),lineHeight:k},r===Vi?{letterSpacing:`${tp(j/T)}em`}:{},C,m),x={h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(a,48,1.167,0),h4:f(a,34,1.235,.25),h5:f(a,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(a,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(a,16,1.5,.15),body2:f(a,14,1.43,.15),button:f(l,14,1.75,.4,zi),caption:f(a,12,1.66,.4),overline:f(a,12,2.66,1,zi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ht(B({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c},x),p,{clone:!1})}const rp=.2,op=.14,ip=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${op})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ip})`].join(",")}const ap=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],sp=["duration","easing","delay"],lp={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)"},cp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ui(e){return`${Math.round(e)}ms`}function up(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dp(e){const t=B({},lp,e.easing),n=B({},cp,e.duration);return B({getAutoHeightDuration:up,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=_t(i,sp);if(process.env.NODE_ENV!=="production"){const m=p=>typeof p=="string",d=p=>!isNaN(parseFloat(p));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!m(c)&&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(`
97
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:Ui(a)} ${l} ${typeof c=="string"?c:Ui(c)}`).join(",")}},e,{easing:t,duration:n})}const fp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},mp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function pp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_t(e,mp);if(e.vars&&e.generateCssVars===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.":$n(18));const l=Qm(r),c=Xa(e);let u=ht(c,{mixins:qm(c.breakpoints,n),palette:l,shadows:ap.slice(),typography:np(l,i),transitions:dp(o),zIndex:B({},fp)});if(u=ht(u,a),u=t.reduce((m,d)=>ht(m,d),u),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(p,_)=>{let b;for(b in p){const f=p[b];if(m.indexOf(b)!==-1&&Object.keys(f).length>0){if(process.env.NODE_ENV!=="production"){const x=wo("",b);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:f}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
98
- `))}p[b]={}}}};Object.keys(u.components).forEach(p=>{const _=u.components[p].styleOverrides;_&&p.indexOf("Mui")===0&&d(_,p)})}return u.unstable_sxConfig=B({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return wr({sx:d,theme:this})},u}const hp=pp(),gp="$$material";var Nt={},eo={exports:{}},qi;function yp(){return qi||(qi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(eo)),eo.exports}var to={exports:{}},Wi;function vp(){return Wi||(Wi=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(to)),to.exports}const bp=kt(Fm),_p=kt(Id),Cp=kt(qd),xp=kt(Ud),Ep=kt(am),Sp=kt(Um);var Hi;function Tp(){if(Hi)return Nt;Hi=1;var e=za();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=z,Nt.shouldForwardProp=x,Nt.systemDefaultTheme=void 0;var t=e(yp()),n=e(vp()),r=_(bp),o=_p,i=e(Cp),a=e(xp),l=e(Ep),c=e(Sp);const u=["ownerState"],m=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,S=new WeakMap;return(p=function(A){return A?S:w})(y)}function _(y,w){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var S=p(w);if(S&&S.has(y))return S.get(y);var A={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in y)if(H!=="default"&&Object.prototype.hasOwnProperty.call(y,H)){var V=N?Object.getOwnPropertyDescriptor(y,H):null;V&&(V.get||V.set)?Object.defineProperty(A,H,V):A[H]=y[H]}return A.default=y,S&&S.set(y,A),A}function b(y){return Object.keys(y).length===0}function f(y){return typeof y=="string"&&y.charCodeAt(0)>96}function x(y){return y!=="ownerState"&&y!=="theme"&&y!=="sx"&&y!=="as"}const E=Nt.systemDefaultTheme=(0,l.default)(),T=y=>y&&y.charAt(0).toLowerCase()+y.slice(1);function k({defaultTheme:y,theme:w,themeId:S}){return b(w)?y:w[S]||w}function j(y){return y?(w,S)=>S[y]:null}function C(y,w){let{ownerState:S}=w,A=(0,n.default)(w,u);const N=typeof y=="function"?y((0,t.default)({ownerState:S},A)):y;if(Array.isArray(N))return N.flatMap(H=>C(H,(0,t.default)({ownerState:S},A)));if(N&&typeof N=="object"&&Array.isArray(N.variants)){const{variants:H=[]}=N;let ce=(0,n.default)(N,m);return H.forEach(Y=>{let ie=!0;typeof Y.props=="function"?ie=Y.props((0,t.default)({ownerState:S},A,S)):Object.keys(Y.props).forEach(re=>{(S==null?void 0:S[re])!==Y.props[re]&&A[re]!==Y.props[re]&&(ie=!1)}),ie&&(Array.isArray(ce)||(ce=[ce]),ce.push(typeof Y.style=="function"?Y.style((0,t.default)({ownerState:S},A,S)):Y.style))}),ce}return N}function z(y={}){const{themeId:w,defaultTheme:S=E,rootShouldForwardProp:A=x,slotShouldForwardProp:N=x}=y,H=V=>(0,c.default)((0,t.default)({},V,{theme:k((0,t.default)({},V,{defaultTheme:S,themeId:w}))}));return H.__mui_systemSx=!0,(V,ce={})=>{(0,r.internal_processStyles)(V,U=>U.filter(G=>!(G!=null&&G.__mui_systemSx)));const{name:Y,slot:ie,skipVariantsResolver:re,skipSx:we,overridesResolver:Pe=j(T(ie))}=ce,R=(0,n.default)(ce,d),M=re!==void 0?re:ie&&ie!=="Root"&&ie!=="root"||!1,Q=we||!1;let q;process.env.NODE_ENV!=="production"&&Y&&(q=`${Y}-${T(ie||"Root")}`);let F=x;ie==="Root"||ie==="root"?F=A:ie?F=N:f(V)&&(F=void 0);const ee=(0,r.default)(V,(0,t.default)({shouldForwardProp:F,label:q},R)),Z=U=>typeof U=="function"&&U.__emotion_real!==U||(0,o.isPlainObject)(U)?G=>C(U,(0,t.default)({},G,{theme:k({theme:G.theme,defaultTheme:S,themeId:w})})):U,K=(U,...G)=>{let ne=Z(U);const be=G?G.map(Z):[];Y&&Pe&&be.push(ae=>{const se=k((0,t.default)({},ae,{defaultTheme:S,themeId:w}));if(!se.components||!se.components[Y]||!se.components[Y].styleOverrides)return null;const Re=se.components[Y].styleOverrides,Ue={};return Object.entries(Re).forEach(([qe,dt])=>{Ue[qe]=C(dt,(0,t.default)({},ae,{theme:se}))}),Pe(ae,Ue)}),Y&&!M&&be.push(ae=>{var se;const Re=k((0,t.default)({},ae,{defaultTheme:S,themeId:w})),Ue=Re==null||(se=Re.components)==null||(se=se[Y])==null?void 0:se.variants;return C({variants:Ue},(0,t.default)({},ae,{theme:Re}))}),Q||be.push(H);const P=be.length-G.length;if(Array.isArray(U)&&P>0){const ae=new Array(P).fill("");ne=[...U,...ae],ne.raw=[...U.raw,...ae]}const _e=ee(ne,...be);if(process.env.NODE_ENV!=="production"){let ae;Y&&(ae=`${Y}${(0,i.default)(ie||"")}`),ae===void 0&&(ae=`Styled(${(0,a.default)(V)})`),_e.displayName=ae}return V.muiName&&(_e.muiName=V.muiName),_e};return ee.withConfig&&(K.withConfig=ee.withConfig),K}}return Nt}var wp=Tp();const kp=Gi(wp);function $o(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Op=e=>$o(e)&&e!=="classes",Ft=kp({themeId:gp,defaultTheme:hp,rootShouldForwardProp:Op}),Rp=X.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Ap(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?uo(o.defaultProps,r):!o.styleOverrides&&!o.variants?uo(o,r):r}function Pp({props:e,name:t}){const n=X.useContext(Rp);return Ap({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function $p(e){return Pp(e)}const jp=e=>!e||!An(e);function Mp(e){return wo("MuiSlider",e)}const st=of("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"]),Lp=e=>{const{open:t}=e;return{offset:wt(t&&st.valueLabelOpen),circle:st.valueLabelCircle,label:st.valueLabelLabel}};function ls(e){const{children:t,className:n,value:r}=e,o=Lp(e);return t?X.cloneElement(t,{className:wt(t.props.className)},h.jsxs(X.Fragment,{children:[t.props.children,h.jsx("span",{className:wt(o.offset,n),"aria-hidden":!0,children:h.jsx("span",{className:o.circle,children:h.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ls.propTypes={children:s.element.isRequired,className:s.string,value:s.node});const Np=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Yi(e){return e}const Ip=Ft("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ut(n.color)}`],n.size!=="medium"&&t[`size${ut(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${st.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${st.dragging}`]:{[`& .${st.thumb}, & .${st.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].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}}]}}),Dp=Ft("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.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}}]}),Fp=Ft("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{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.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:B({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:B({backgroundColor:pt.lighten(e.palette[n].main,.62),borderColor:pt.lighten(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:pt.darken(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:pt.darken(e.palette[n].main,.5)})))}))]}}),Bp=Ft("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ut(n.color)}`],n.size!=="medium"&&t[`thumbSize${ut(n.size)}`]]}})(({theme:e})=>{var t;return{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%)"},[`&.${st.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.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${st.focusVisible}`]:B({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${pt.alpha(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${st.active}`]:B({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${pt.alpha(e.palette[n].main,.16)}`})}}))]}}),zp=Ft(ls,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>B({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%"},[`&.${st.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%"},[`&.${st.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"}}]})),Vp=Ft("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>$o(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({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}}]})),Up=Ft("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>$o(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>B({},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}}]})),qp=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${ut(l)}`,c&&`size${ut(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ut(c)}`,l&&`thumbColor${ut(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Sd(u,Mp,a)},Wp=({children:e})=>e,cs=X.forwardRef(function(t,n){var r,o,i,a,l,c,u,m,d,p,_,b,f,x,E,T,k,j,C,z,y,w,S,A;const N=$p({props:t,name:"MuiSlider"}),H=Pd(),{"aria-label":V,"aria-valuetext":ce,"aria-labelledby":Y,component:ie="span",components:re={},componentsProps:we={},color:Pe="primary",classes:R,className:M,disableSwap:Q=!1,disabled:q=!1,getAriaLabel:F,getAriaValueText:ee,marks:Z=!1,max:K=100,min:U=0,orientation:G="horizontal",shiftStep:ne=10,size:be="medium",step:P=1,scale:_e=Yi,slotProps:ae,slots:se,track:Re="normal",valueLabelDisplay:Ue="off",valueLabelFormat:qe=Yi}=N,dt=_t(N,Np),De=B({},N,{isRtl:H,max:K,min:U,classes:R,disabled:q,disableSwap:Q,orientation:G,marks:Z,color:Pe,size:be,step:P,shiftStep:ne,scale:_e,track:Re,valueLabelDisplay:Ue,valueLabelFormat:qe}),{axisProps:Ct,getRootProps:At,getHiddenInputProps:pn,getThumbProps:hn,open:gn,active:Bt,axis:xt,focusedThumbIndex:$,range:D,dragging:W,marks:fe,values:me,trackOffset:de,trackLeap:Je,getThumbStyle:rt}=mf(B({},De,{rootRef:n}));De.marked=fe.length>0&&fe.some(J=>J.label),De.dragging=W,De.focusedThumbIndex=$;const pe=qp(De),Ye=(r=(o=se==null?void 0:se.root)!=null?o:re.Root)!=null?r:Ip,ft=(i=(a=se==null?void 0:se.rail)!=null?a:re.Rail)!=null?i:Dp,yn=(l=(c=se==null?void 0:se.track)!=null?c:re.Track)!=null?l:Fp,yt=(u=(m=se==null?void 0:se.thumb)!=null?m:re.Thumb)!=null?u:Bp,zt=(d=(p=se==null?void 0:se.valueLabel)!=null?p:re.ValueLabel)!=null?d:zp,Pt=(_=(b=se==null?void 0:se.mark)!=null?b:re.Mark)!=null?_:Vp,Vt=(f=(x=se==null?void 0:se.markLabel)!=null?x:re.MarkLabel)!=null?f:Up,Vn=(E=(T=se==null?void 0:se.input)!=null?T:re.Input)!=null?E:"input",Ut=(k=ae==null?void 0:ae.root)!=null?k:we.root,Ar=(j=ae==null?void 0:ae.rail)!=null?j:we.rail,qt=(C=ae==null?void 0:ae.track)!=null?C:we.track,Wt=(z=ae==null?void 0:ae.thumb)!=null?z:we.thumb,vn=(y=ae==null?void 0:ae.valueLabel)!=null?y:we.valueLabel,Pr=(w=ae==null?void 0:ae.mark)!=null?w:we.mark,Un=(S=ae==null?void 0:ae.markLabel)!=null?S:we.markLabel,qn=(A=ae==null?void 0:ae.input)!=null?A:we.input,$r=St({elementType:Ye,getSlotProps:At,externalSlotProps:Ut,externalForwardedProps:dt,additionalProps:B({},jp(Ye)&&{as:ie}),ownerState:B({},De,Ut==null?void 0:Ut.ownerState),className:[pe.root,M]}),jr=St({elementType:ft,externalSlotProps:Ar,ownerState:De,className:pe.rail}),Mr=St({elementType:yn,externalSlotProps:qt,additionalProps:{style:B({},Ct[xt].offset(de),Ct[xt].leap(Je))},ownerState:B({},De,qt==null?void 0:qt.ownerState),className:pe.track}),bn=St({elementType:yt,getSlotProps:hn,externalSlotProps:Wt,ownerState:B({},De,Wt==null?void 0:Wt.ownerState),className:pe.thumb}),g=St({elementType:zt,externalSlotProps:vn,ownerState:B({},De,vn==null?void 0:vn.ownerState),className:pe.valueLabel}),O=St({elementType:Pt,externalSlotProps:Pr,ownerState:De,className:pe.mark}),I=St({elementType:Vt,externalSlotProps:Un,ownerState:De,className:pe.markLabel}),te=St({elementType:Vn,getSlotProps:pn,externalSlotProps:qn,ownerState:De});return h.jsxs(Ye,B({},$r,{children:[h.jsx(ft,B({},jr)),h.jsx(yn,B({},Mr)),fe.filter(J=>J.value>=U&&J.value<=K).map((J,oe)=>{const ue=fr(J.value,U,K),le=Ct[xt].offset(ue);let Se;return Re===!1?Se=me.indexOf(J.value)!==-1:Se=Re==="normal"&&(D?J.value>=me[0]&&J.value<=me[me.length-1]:J.value<=me[0])||Re==="inverted"&&(D?J.value<=me[0]||J.value>=me[me.length-1]:J.value>=me[0]),h.jsxs(X.Fragment,{children:[h.jsx(Pt,B({"data-index":oe},O,!An(Pt)&&{markActive:Se},{style:B({},le,O.style),className:wt(O.className,Se&&pe.markActive)})),J.label!=null?h.jsx(Vt,B({"aria-hidden":!0,"data-index":oe},I,!An(Vt)&&{markLabelActive:Se},{style:B({},le,I.style),className:wt(pe.markLabel,I.className,Se&&pe.markLabelActive),children:J.label})):null]},oe)}),me.map((J,oe)=>{const ue=fr(J,U,K),le=Ct[xt].offset(ue),Se=Ue==="off"?Wp:zt;return h.jsx(Se,B({},!An(Se)&&{valueLabelFormat:qe,valueLabelDisplay:Ue,value:typeof qe=="function"?qe(_e(J),oe):qe,index:oe,open:gn===oe||Bt===oe||Ue==="on",disabled:q},g,{children:h.jsx(yt,B({"data-index":oe},bn,{className:wt(pe.thumb,bn.className,Bt===oe&&pe.active,$===oe&&pe.focusVisible),style:B({},le,rt(oe),bn.style),children:h.jsx(Vn,B({"data-index":oe,"aria-label":F?F(oe):V,"aria-valuenow":_e(J),"aria-labelledby":Y,"aria-valuetext":ee?ee(_e(J),oe):ce,value:me[oe]},te))}))}),oe)})]}))});process.env.NODE_ENV!=="production"&&(cs.propTypes={"aria-label":Ci(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":Ci(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.number,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.number,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 Hp="_slider_a19yo_2",Yp="_playButton_a19yo_17",Kp="_hover_a19yo_20",Zp="_sliderOpen_a19yo_28",Gp="_sliderResults_a19yo_32",wn={slider:Hp,playButton:Yp,hover:Kp,sliderOpen:Zp,sliderResults:Gp},us=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,zIndex:o=10,rightBarOpen:i=!1})=>{const[a,l]=v.useState(t),c=kn.useDispatch(),u=(E,T)=>{l(T),c(Zr(T-2e3))},[m,d]=v.useState(!1),p=()=>{d(!0)},_=()=>{d(!1)};((E,T)=>{const k=v.useRef();v.useEffect(()=>{k.current=E},[E]),v.useEffect(()=>{function j(){k.current()}{let C=setInterval(j,T);return()=>clearInterval(C)}},[T])})(()=>{m&&(a!=2050?(l(a+1),c(Zr(a-2e3+1))):(l(2025),c(Zr(25))))},1e3);const f=No.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),x=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return h.jsx(on.ThemeProvider,{theme:f,children:h.jsxs(No.Box,{sx:{width:400},className:`${e?wn.sliderResults:wn.slider} ${i?wn.sliderOpen:""}`,style:{zIndex:o},children:[n,h.jsx(cs,{"aria-label":"TimeSlider",value:a,valueLabelDisplay:"on",step:1,marks:x,min:n,max:r,onChange:u,color:"primary",size:"small"}),r,!m&&h.jsx("button",{className:wn.playButton,onClick:p,children:h.jsx("img",{src:xd,alt:"Play"})}),m&&h.jsx("button",{className:wn.playButton,onClick:_,children:h.jsx("img",{src:Ed,alt:"Pause"})})]})})};us.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,zIndex:s.number,rightBarOpen:s.bool};const Jp="_TopNavMenuContainer_1j1d1_2",Xp="_topNavOptions_1j1d1_11",Qp="_active_1j1d1_22",no={TopNavMenuContainer:Jp,topNavOptions:Xp,active:Qp},ds=({options:e=[],cssProps:t={}})=>{const{t:n}=Oe.useTranslation(),r=t.textColor||"inherit";return t.borderColor,h.jsx("div",{className:no.TopNavMenuContainer,children:e.map((o,i)=>h.jsx(ks.NavLink,{to:o.url,className:({isActive:a})=>`${no.topNavOptions} ${a?no.active:""}`,style:{color:r},children:n(o.name)},i))})};ds.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const e0=Ki.createSlice({name:"userSlice",initialState:{user:{isLoggedIn:!1,username:""},showLogIn:!1,showUserMenu:!1},reducers:{setShowLogIn:(e,t)=>{e.showLogIn=t.payload},setShowUserMenu:(e,t)=>{e.showUserMenu=t.payload}}}),{setShowLogIn:t0,setShowUserMenu:n0}=e0.actions,r0="_UserMenuTrigger_uglss_2",o0={UserMenuTrigger:r0},fs=({cssClass:e,loginLocale:t="login"})=>{const n=kn.useDispatch(),r=kn.useSelector(l=>l.userState.user.isLoggedIn),o=kn.useSelector(l=>l.userState.user.username),{t:i}=Oe.useTranslation(),a=()=>{n(r?t0(!0):n0(!0))};return h.jsx("div",{className:`${o0.UserMenuTrigger} link ${e}`,onClick:a,children:r?o:i(t)})};fs.propTypes={onClickLoggedIn:s.func.isRequired,onClickLoggedOut:s.func.isRequired,log:s.bool,name:s.string,cssClass:s.string,loginLocale:s.string};const i0="_header_1w621_2",a0="_leftComponents_1w621_12",s0="_centerComponents_1w621_13",l0="_rightComponents_1w621_14",rr={header:i0,leftComponents:a0,centerComponents:s0,rightComponents:l0},ms=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[]})=>h.jsxs("div",{className:rr.header,style:e,children:[h.jsx("div",{className:rr.leftComponents,style:{height:e.height},children:t.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))}),h.jsx("div",{className:rr.centerComponents,style:{height:e.height},children:n.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))}),h.jsx("div",{className:rr.rightComponents,style:{height:e.height},children:r.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))})]});ms.propTypes={cssProps:s.shape({backgroundColor:s.string.isRequired,height:s.string.isRequired,borderColor:s.string,textColor:s.string}),leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node)};const c0="_sidebar_1jqo2_2",u0="_open_1jqo2_16",d0="_content_1jqo2_20",f0="_closeButton_1jqo2_26",or={sidebar:c0,open:u0,content:d0,closeButton:f0},ps=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return h.jsx("div",{className:`${or.sidebar} ${n?or.open:""}`,style:{width:n?e:0},children:n&&h.jsxs("div",{className:or.content,children:[h.jsx("button",{className:or.closeButton,onClick:o,children:"×"}),t]})})};ps.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=ea;exports.ButtonsList=ta;exports.DropdownList=Ot;exports.EditAmbit=hl;exports.FiltersAmbit=Dl;exports.Graphic=ua;exports.HeaderSection=ms;exports.IndicatorsList=ma;exports.LangSelector=pa;exports.Legend=ha;exports.LogoApp=ga;exports.MapboxMap=va;exports.MaplibreMap=Da;exports.RightSidebar=ps;exports.SectionBar=Fa;exports.TimeSlider=us;exports.Tooltip=yo;exports.TopNavMenu=ds;exports.UserMenuTrigger=fs;
96
+ } });`:$n(12,x?` (${x})`:"",JSON.stringify(d.main)));return Bi(d,"light",R,r),Bi(d,"dark",A,r),d.contrastText||(d.contrastText=f(d.main)),d},v={dark:Qr,light:Fi};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ht(z({common:z({},Ln),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:m,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:Wm,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},v[t]),o)}const ep=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function tp(e){return Math.round(e*1e5)/1e5}const zi={textTransform:"uppercase"},Vi='"Roboto", "Helvetica", "Arial", sans-serif';function np(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Vi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:m,pxToRem:f}=n,p=_t(n,ep);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,_=f||(E=>`${E/u*v}rem`),d=(E,R,A,O,C)=>z({fontFamily:r,fontWeight:E,fontSize:_(R),lineHeight:A},r===Vi?{letterSpacing:`${tp(O/R)}em`}:{},C,m),x={h1:d(i,96,1.167,-1.5),h2:d(i,60,1.2,-.5),h3:d(a,48,1.167,0),h4:d(a,34,1.235,.25),h5:d(a,24,1.334,0),h6:d(l,20,1.6,.15),subtitle1:d(a,16,1.75,.15),subtitle2:d(l,14,1.57,.1),body1:d(a,16,1.5,.15),body2:d(a,14,1.43,.15),button:d(l,14,1.75,.4,zi),caption:d(a,12,1.66,.4),overline:d(a,12,2.66,1,zi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ht(z({htmlFontSize:u,pxToRem:_,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c},x),p,{clone:!1})}const rp=.2,op=.14,ip=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${op})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ip})`].join(",")}const ap=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],sp=["duration","easing","delay"],lp={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)"},cp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ui(e){return`${Math.round(e)}ms`}function up(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dp(e){const t=z({},lp,e.easing),n=z({},cp,e.duration);return z({getAutoHeightDuration:up,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=_t(i,sp);if(process.env.NODE_ENV!=="production"){const m=p=>typeof p=="string",f=p=>!isNaN(parseFloat(p));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!m(c)&&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(`
97
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:Ui(a)} ${l} ${typeof c=="string"?c:Ui(c)}`).join(",")}},e,{easing:t,duration:n})}const fp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},mp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function pp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_t(e,mp);if(e.vars&&e.generateCssVars===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.":$n(18));const l=Qm(r),c=Xa(e);let u=ht(c,{mixins:qm(c.breakpoints,n),palette:l,shadows:ap.slice(),typography:np(l,i),transitions:dp(o),zIndex:z({},fp)});if(u=ht(u,a),u=t.reduce((m,f)=>ht(m,f),u),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(p,v)=>{let _;for(_ in p){const d=p[_];if(m.indexOf(_)!==-1&&Object.keys(d).length>0){if(process.env.NODE_ENV!=="production"){const x=wo("",_);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${_}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:d}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
98
+ `))}p[_]={}}}};Object.keys(u.components).forEach(p=>{const v=u.components[p].styleOverrides;v&&p.indexOf("Mui")===0&&f(v,p)})}return u.unstable_sxConfig=z({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return wr({sx:f,theme:this})},u}const hp=pp(),gp="$$material";var Nt={},eo={exports:{}},qi;function yp(){return qi||(qi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(eo)),eo.exports}var to={exports:{}},Wi;function vp(){return Wi||(Wi=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(to)),to.exports}const bp=kt(Fm),_p=kt(Id),Cp=kt(qd),xp=kt(Ud),Ep=kt(am),Sp=kt(Um);var Hi;function Tp(){if(Hi)return Nt;Hi=1;var e=za();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=F,Nt.shouldForwardProp=x,Nt.systemDefaultTheme=void 0;var t=e(yp()),n=e(vp()),r=v(bp),o=_p,i=e(Cp),a=e(xp),l=e(Ep),c=e(Sp);const u=["ownerState"],m=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(y){if(typeof WeakMap!="function")return null;var T=new WeakMap,S=new WeakMap;return(p=function(P){return P?S:T})(y)}function v(y,T){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var S=p(T);if(S&&S.has(y))return S.get(y);var P={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in y)if(H!=="default"&&Object.prototype.hasOwnProperty.call(y,H)){var V=N?Object.getOwnPropertyDescriptor(y,H):null;V&&(V.get||V.set)?Object.defineProperty(P,H,V):P[H]=y[H]}return P.default=y,S&&S.set(y,P),P}function _(y){return Object.keys(y).length===0}function d(y){return typeof y=="string"&&y.charCodeAt(0)>96}function x(y){return y!=="ownerState"&&y!=="theme"&&y!=="sx"&&y!=="as"}const E=Nt.systemDefaultTheme=(0,l.default)(),R=y=>y&&y.charAt(0).toLowerCase()+y.slice(1);function A({defaultTheme:y,theme:T,themeId:S}){return _(T)?y:T[S]||T}function O(y){return y?(T,S)=>S[y]:null}function C(y,T){let{ownerState:S}=T,P=(0,n.default)(T,u);const N=typeof y=="function"?y((0,t.default)({ownerState:S},P)):y;if(Array.isArray(N))return N.flatMap(H=>C(H,(0,t.default)({ownerState:S},P)));if(N&&typeof N=="object"&&Array.isArray(N.variants)){const{variants:H=[]}=N;let ce=(0,n.default)(N,m);return H.forEach(Y=>{let ie=!0;typeof Y.props=="function"?ie=Y.props((0,t.default)({ownerState:S},P,S)):Object.keys(Y.props).forEach(re=>{(S==null?void 0:S[re])!==Y.props[re]&&P[re]!==Y.props[re]&&(ie=!1)}),ie&&(Array.isArray(ce)||(ce=[ce]),ce.push(typeof Y.style=="function"?Y.style((0,t.default)({ownerState:S},P,S)):Y.style))}),ce}return N}function F(y={}){const{themeId:T,defaultTheme:S=E,rootShouldForwardProp:P=x,slotShouldForwardProp:N=x}=y,H=V=>(0,c.default)((0,t.default)({},V,{theme:A((0,t.default)({},V,{defaultTheme:S,themeId:T}))}));return H.__mui_systemSx=!0,(V,ce={})=>{(0,r.internal_processStyles)(V,U=>U.filter(G=>!(G!=null&&G.__mui_systemSx)));const{name:Y,slot:ie,skipVariantsResolver:re,skipSx:we,overridesResolver:Pe=O(R(ie))}=ce,k=(0,n.default)(ce,f),M=re!==void 0?re:ie&&ie!=="Root"&&ie!=="root"||!1,Q=we||!1;let q;process.env.NODE_ENV!=="production"&&Y&&(q=`${Y}-${R(ie||"Root")}`);let B=x;ie==="Root"||ie==="root"?B=P:ie?B=N:d(V)&&(B=void 0);const ee=(0,r.default)(V,(0,t.default)({shouldForwardProp:B,label:q},k)),Z=U=>typeof U=="function"&&U.__emotion_real!==U||(0,o.isPlainObject)(U)?G=>C(U,(0,t.default)({},G,{theme:A({theme:G.theme,defaultTheme:S,themeId:T})})):U,K=(U,...G)=>{let ne=Z(U);const be=G?G.map(Z):[];Y&&Pe&&be.push(ae=>{const se=A((0,t.default)({},ae,{defaultTheme:S,themeId:T}));if(!se.components||!se.components[Y]||!se.components[Y].styleOverrides)return null;const Re=se.components[Y].styleOverrides,Ue={};return Object.entries(Re).forEach(([qe,dt])=>{Ue[qe]=C(dt,(0,t.default)({},ae,{theme:se}))}),Pe(ae,Ue)}),Y&&!M&&be.push(ae=>{var se;const Re=A((0,t.default)({},ae,{defaultTheme:S,themeId:T})),Ue=Re==null||(se=Re.components)==null||(se=se[Y])==null?void 0:se.variants;return C({variants:Ue},(0,t.default)({},ae,{theme:Re}))}),Q||be.push(H);const $=be.length-G.length;if(Array.isArray(U)&&$>0){const ae=new Array($).fill("");ne=[...U,...ae],ne.raw=[...U.raw,...ae]}const _e=ee(ne,...be);if(process.env.NODE_ENV!=="production"){let ae;Y&&(ae=`${Y}${(0,i.default)(ie||"")}`),ae===void 0&&(ae=`Styled(${(0,a.default)(V)})`),_e.displayName=ae}return V.muiName&&(_e.muiName=V.muiName),_e};return ee.withConfig&&(K.withConfig=ee.withConfig),K}}return Nt}var wp=Tp();const kp=Gi(wp);function $o(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Op=e=>$o(e)&&e!=="classes",Ft=kp({themeId:gp,defaultTheme:hp,rootShouldForwardProp:Op}),Rp=X.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Ap(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?uo(o.defaultProps,r):!o.styleOverrides&&!o.variants?uo(o,r):r}function Pp({props:e,name:t}){const n=X.useContext(Rp);return Ap({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function $p(e){return Pp(e)}const jp=e=>!e||!An(e);function Mp(e){return wo("MuiSlider",e)}const st=of("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"]),Lp=e=>{const{open:t}=e;return{offset:wt(t&&st.valueLabelOpen),circle:st.valueLabelCircle,label:st.valueLabelLabel}};function ls(e){const{children:t,className:n,value:r}=e,o=Lp(e);return t?X.cloneElement(t,{className:wt(t.props.className)},h.jsxs(X.Fragment,{children:[t.props.children,h.jsx("span",{className:wt(o.offset,n),"aria-hidden":!0,children:h.jsx("span",{className:o.circle,children:h.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ls.propTypes={children:s.element.isRequired,className:s.string,value:s.node});const Np=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Yi(e){return e}const Ip=Ft("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ut(n.color)}`],n.size!=="medium"&&t[`size${ut(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${st.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${st.dragging}`]:{[`& .${st.thumb}, & .${st.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].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}}]}}),Dp=Ft("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.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}}]}),Fp=Ft("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{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.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:z({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:z({backgroundColor:pt.lighten(e.palette[n].main,.62),borderColor:pt.lighten(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:pt.darken(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:pt.darken(e.palette[n].main,.5)})))}))]}}),Bp=Ft("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ut(n.color)}`],n.size!=="medium"&&t[`thumbSize${ut(n.size)}`]]}})(({theme:e})=>{var t;return{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%)"},[`&.${st.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.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${st.focusVisible}`]:z({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${pt.alpha(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${st.active}`]:z({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${pt.alpha(e.palette[n].main,.16)}`})}}))]}}),zp=Ft(ls,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>z({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%"},[`&.${st.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%"},[`&.${st.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"}}]})),Vp=Ft("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>$o(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({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}}]})),Up=Ft("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>$o(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>z({},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}}]})),qp=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${ut(l)}`,c&&`size${ut(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ut(c)}`,l&&`thumbColor${ut(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Sd(u,Mp,a)},Wp=({children:e})=>e,cs=X.forwardRef(function(t,n){var r,o,i,a,l,c,u,m,f,p,v,_,d,x,E,R,A,O,C,F,y,T,S,P;const N=$p({props:t,name:"MuiSlider"}),H=Pd(),{"aria-label":V,"aria-valuetext":ce,"aria-labelledby":Y,component:ie="span",components:re={},componentsProps:we={},color:Pe="primary",classes:k,className:M,disableSwap:Q=!1,disabled:q=!1,getAriaLabel:B,getAriaValueText:ee,marks:Z=!1,max:K=100,min:U=0,orientation:G="horizontal",shiftStep:ne=10,size:be="medium",step:$=1,scale:_e=Yi,slotProps:ae,slots:se,track:Re="normal",valueLabelDisplay:Ue="off",valueLabelFormat:qe=Yi}=N,dt=_t(N,Np),De=z({},N,{isRtl:H,max:K,min:U,classes:k,disabled:q,disableSwap:Q,orientation:G,marks:Z,color:Pe,size:be,step:$,shiftStep:ne,scale:_e,track:Re,valueLabelDisplay:Ue,valueLabelFormat:qe}),{axisProps:Ct,getRootProps:At,getHiddenInputProps:pn,getThumbProps:hn,open:gn,active:Bt,axis:xt,focusedThumbIndex:j,range:D,dragging:W,marks:fe,values:me,trackOffset:de,trackLeap:Je,getThumbStyle:rt}=mf(z({},De,{rootRef:n}));De.marked=fe.length>0&&fe.some(J=>J.label),De.dragging=W,De.focusedThumbIndex=j;const pe=qp(De),Ye=(r=(o=se==null?void 0:se.root)!=null?o:re.Root)!=null?r:Ip,ft=(i=(a=se==null?void 0:se.rail)!=null?a:re.Rail)!=null?i:Dp,yn=(l=(c=se==null?void 0:se.track)!=null?c:re.Track)!=null?l:Fp,yt=(u=(m=se==null?void 0:se.thumb)!=null?m:re.Thumb)!=null?u:Bp,zt=(f=(p=se==null?void 0:se.valueLabel)!=null?p:re.ValueLabel)!=null?f:zp,Pt=(v=(_=se==null?void 0:se.mark)!=null?_:re.Mark)!=null?v:Vp,Vt=(d=(x=se==null?void 0:se.markLabel)!=null?x:re.MarkLabel)!=null?d:Up,Vn=(E=(R=se==null?void 0:se.input)!=null?R:re.Input)!=null?E:"input",Ut=(A=ae==null?void 0:ae.root)!=null?A:we.root,Ar=(O=ae==null?void 0:ae.rail)!=null?O:we.rail,qt=(C=ae==null?void 0:ae.track)!=null?C:we.track,Wt=(F=ae==null?void 0:ae.thumb)!=null?F:we.thumb,vn=(y=ae==null?void 0:ae.valueLabel)!=null?y:we.valueLabel,Pr=(T=ae==null?void 0:ae.mark)!=null?T:we.mark,Un=(S=ae==null?void 0:ae.markLabel)!=null?S:we.markLabel,qn=(P=ae==null?void 0:ae.input)!=null?P:we.input,$r=St({elementType:Ye,getSlotProps:At,externalSlotProps:Ut,externalForwardedProps:dt,additionalProps:z({},jp(Ye)&&{as:ie}),ownerState:z({},De,Ut==null?void 0:Ut.ownerState),className:[pe.root,M]}),jr=St({elementType:ft,externalSlotProps:Ar,ownerState:De,className:pe.rail}),Mr=St({elementType:yn,externalSlotProps:qt,additionalProps:{style:z({},Ct[xt].offset(de),Ct[xt].leap(Je))},ownerState:z({},De,qt==null?void 0:qt.ownerState),className:pe.track}),bn=St({elementType:yt,getSlotProps:hn,externalSlotProps:Wt,ownerState:z({},De,Wt==null?void 0:Wt.ownerState),className:pe.thumb}),g=St({elementType:zt,externalSlotProps:vn,ownerState:z({},De,vn==null?void 0:vn.ownerState),className:pe.valueLabel}),w=St({elementType:Pt,externalSlotProps:Pr,ownerState:De,className:pe.mark}),I=St({elementType:Vt,externalSlotProps:Un,ownerState:De,className:pe.markLabel}),te=St({elementType:Vn,getSlotProps:pn,externalSlotProps:qn,ownerState:De});return h.jsxs(Ye,z({},$r,{children:[h.jsx(ft,z({},jr)),h.jsx(yn,z({},Mr)),fe.filter(J=>J.value>=U&&J.value<=K).map((J,oe)=>{const ue=fr(J.value,U,K),le=Ct[xt].offset(ue);let Se;return Re===!1?Se=me.indexOf(J.value)!==-1:Se=Re==="normal"&&(D?J.value>=me[0]&&J.value<=me[me.length-1]:J.value<=me[0])||Re==="inverted"&&(D?J.value<=me[0]||J.value>=me[me.length-1]:J.value>=me[0]),h.jsxs(X.Fragment,{children:[h.jsx(Pt,z({"data-index":oe},w,!An(Pt)&&{markActive:Se},{style:z({},le,w.style),className:wt(w.className,Se&&pe.markActive)})),J.label!=null?h.jsx(Vt,z({"aria-hidden":!0,"data-index":oe},I,!An(Vt)&&{markLabelActive:Se},{style:z({},le,I.style),className:wt(pe.markLabel,I.className,Se&&pe.markLabelActive),children:J.label})):null]},oe)}),me.map((J,oe)=>{const ue=fr(J,U,K),le=Ct[xt].offset(ue),Se=Ue==="off"?Wp:zt;return h.jsx(Se,z({},!An(Se)&&{valueLabelFormat:qe,valueLabelDisplay:Ue,value:typeof qe=="function"?qe(_e(J),oe):qe,index:oe,open:gn===oe||Bt===oe||Ue==="on",disabled:q},g,{children:h.jsx(yt,z({"data-index":oe},bn,{className:wt(pe.thumb,bn.className,Bt===oe&&pe.active,j===oe&&pe.focusVisible),style:z({},le,rt(oe),bn.style),children:h.jsx(Vn,z({"data-index":oe,"aria-label":B?B(oe):V,"aria-valuenow":_e(J),"aria-labelledby":Y,"aria-valuetext":ee?ee(_e(J),oe):ce,value:me[oe]},te))}))}),oe)})]}))});process.env.NODE_ENV!=="production"&&(cs.propTypes={"aria-label":Ci(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":Ci(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.number,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.number,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 Hp="_slider_a19yo_2",Yp="_playButton_a19yo_17",Kp="_hover_a19yo_20",Zp="_sliderOpen_a19yo_28",Gp="_sliderResults_a19yo_32",wn={slider:Hp,playButton:Yp,hover:Kp,sliderOpen:Zp,sliderResults:Gp},us=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,zIndex:o=10,rightBarOpen:i=!1})=>{const[a,l]=b.useState(t),c=kn.useDispatch(),u=(E,R)=>{l(R),c(Zr(R-2e3))},[m,f]=b.useState(!1),p=()=>{f(!0)},v=()=>{f(!1)};((E,R)=>{const A=b.useRef();b.useEffect(()=>{A.current=E},[E]),b.useEffect(()=>{function O(){A.current()}{let C=setInterval(O,R);return()=>clearInterval(C)}},[R])})(()=>{m&&(a!=2050?(l(a+1),c(Zr(a-2e3+1))):(l(2025),c(Zr(25))))},1e3);const d=No.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),x=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return h.jsx(on.ThemeProvider,{theme:d,children:h.jsxs(No.Box,{sx:{width:400},className:`${e?wn.sliderResults:wn.slider} ${i?wn.sliderOpen:""}`,style:{zIndex:o},children:[n,h.jsx(cs,{"aria-label":"TimeSlider",value:a,valueLabelDisplay:"on",step:1,marks:x,min:n,max:r,onChange:u,color:"primary",size:"small"}),r,!m&&h.jsx("button",{className:wn.playButton,onClick:p,children:h.jsx("img",{src:xd,alt:"Play"})}),m&&h.jsx("button",{className:wn.playButton,onClick:v,children:h.jsx("img",{src:Ed,alt:"Pause"})})]})})};us.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,zIndex:s.number,rightBarOpen:s.bool};const Jp="_TopNavMenuContainer_1j1d1_2",Xp="_topNavOptions_1j1d1_11",Qp="_active_1j1d1_22",no={TopNavMenuContainer:Jp,topNavOptions:Xp,active:Qp},ds=({options:e=[],cssProps:t={}})=>{const{t:n}=Oe.useTranslation(),r=t.textColor||"inherit";return t.borderColor,h.jsx("div",{className:no.TopNavMenuContainer,children:e.map((o,i)=>h.jsx(ks.NavLink,{to:o.url,className:({isActive:a})=>`${no.topNavOptions} ${a?no.active:""}`,style:{color:r},children:n(o.name)},i))})};ds.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const e0=Ki.createSlice({name:"userSlice",initialState:{user:{isLoggedIn:!1,username:""},showLogIn:!1,showUserMenu:!1},reducers:{setShowLogIn:(e,t)=>{e.showLogIn=t.payload},setShowUserMenu:(e,t)=>{e.showUserMenu=t.payload}}}),{setShowLogIn:t0,setShowUserMenu:n0}=e0.actions,r0="_UserMenuTrigger_uglss_2",o0={UserMenuTrigger:r0},fs=({cssClass:e,loginLocale:t="login"})=>{const n=kn.useDispatch(),r=kn.useSelector(l=>l.userState.user.isLoggedIn),o=kn.useSelector(l=>l.userState.user.username),{t:i}=Oe.useTranslation(),a=()=>{n(r?t0(!0):n0(!0))};return h.jsx("div",{className:`${o0.UserMenuTrigger} link ${e}`,onClick:a,children:r?o:i(t)})};fs.propTypes={onClickLoggedIn:s.func.isRequired,onClickLoggedOut:s.func.isRequired,log:s.bool,name:s.string,cssClass:s.string,loginLocale:s.string};const i0="_header_1w621_2",a0="_leftComponents_1w621_12",s0="_centerComponents_1w621_13",l0="_rightComponents_1w621_14",rr={header:i0,leftComponents:a0,centerComponents:s0,rightComponents:l0},ms=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[]})=>h.jsxs("div",{className:rr.header,style:e,children:[h.jsx("div",{className:rr.leftComponents,style:{height:e.height},children:t.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))}),h.jsx("div",{className:rr.centerComponents,style:{height:e.height},children:n.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))}),h.jsx("div",{className:rr.rightComponents,style:{height:e.height},children:r.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))})]});ms.propTypes={cssProps:s.shape({backgroundColor:s.string.isRequired,height:s.string.isRequired,borderColor:s.string,textColor:s.string}),leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node)};const c0="_sidebar_1jqo2_2",u0="_open_1jqo2_16",d0="_content_1jqo2_20",f0="_closeButton_1jqo2_26",or={sidebar:c0,open:u0,content:d0,closeButton:f0},ps=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return h.jsx("div",{className:`${or.sidebar} ${n?or.open:""}`,style:{width:n?e:0},children:n&&h.jsxs("div",{className:or.content,children:[h.jsx("button",{className:or.closeButton,onClick:o,children:"×"}),t]})})};ps.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=ea;exports.ButtonsList=ta;exports.DropdownList=Ot;exports.EditAmbit=hl;exports.FiltersAmbit=Dl;exports.Graphic=ua;exports.HeaderSection=ms;exports.IndicatorsList=ma;exports.LangSelector=pa;exports.Legend=ha;exports.LogoApp=ga;exports.MapboxMap=va;exports.MaplibreMap=Da;exports.RightSidebar=ps;exports.SectionBar=Fa;exports.TimeSlider=us;exports.Tooltip=yo;exports.TopNavMenu=ds;exports.UserMenuTrigger=fs;