@vlci/cdmciutat 28.0.0 → 29.0.1-4

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/js/emt.js ADDED
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.emt=e():t.emt=e()}(self,(()=>(()=>{var t={2725:t=>{var e;self,e=()=>(()=>{"use strict";var t={d:(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{addPointInteger:()=>d,buildCamarasTrafico:()=>dt,buildTableCalidadAire:()=>it,calculateMaxYAxis:()=>M,calculatePentahoPath:()=>st,calculateXAxisStart:()=>S,checkAllGroupsCollapsed:()=>at,configureDataBar:()=>U,configureDataGaugeCommon:()=>$,configureDataGaugeMonthCommon:()=>x,configureDataLine:()=>L,configureDataValidate:()=>Lt,configureLinesChartValidates:()=>Ut,convertToLanguageSelectorDateRange:()=>Z,convertToTableTreeView:()=>rt,downloadCSVTable:()=>ot,downloadPDFTable:()=>nt,formatCellMultiplesLines:()=>Q,formatDayMonthYear:()=>i,formatMilMillionEuros:()=>A,formatMonthAnyo:()=>n,formatName:()=>m,formatNameHeaderColumn:()=>K,formatRoundTooltip:()=>E,formatShortMonthShortYear:()=>l,formatShortMonthYear:()=>s,formatToMillions:()=>f,formatToTons:()=>h,formatTooltip:()=>b,formatTooltipPie:()=>T,formatTrimestre:()=>c,getEnvironment:()=>lt,getMaxFieldNumberFromData:()=>N,getMonth:()=>a,getMonthList:()=>u,getSelectCommonOptions:()=>q,getSelectTwoColumnsOptions:()=>Y,initBarChart:()=>yt,initBarChartComparationMonth:()=>At,initChart:()=>p,initStackedBarChart:()=>mt,initStackedBarChartMonthSeries:()=>gt,initTable:()=>X,initValueDefaultDate:()=>H,initialCalls:()=>ut,loadIframeOnClickEvent:()=>vt,printDataChart:()=>y,printDataInHTMLElements:()=>w,printNoDataChart:()=>g,resetFilter:()=>V,resetFilterDate:()=>j,resetFilterDates:()=>W,resultsetWithFields:()=>C,selectConfigDatasource:()=>G,selectFilterAll:()=>z,selectValueDefaultInFilter:()=>J,splitDataset:()=>P,traverseRows:()=>et,updateObject:()=>F,updateStackedBarOptions:()=>pt});const r={"01":"Enero","02":"Febrero","03":"Marzo","04":"Abril","05":"Mayo","06":"Junio","07":"Julio","08":"Agosto","09":"Septiembre",10:"Octubre",11:"Noviembre",12:"Diciembre"};function a(t){return{1:"Gen",2:"Feb",3:"Mar",4:"Abr",5:"Mai",6:"Jun",7:"Jul",8:"Ago",9:"Sep",10:"Oct",11:"Nov",12:"Des"}[parseInt(t.toString(),10)]}function o(t){return[t.substring(0,4),r[t.substring(4,6)]]}function n(t){const[e,r]=o(t);return`${r} ${e}`}function i(t){const[e,a,o]=function(t){return[t.substring(0,4),r[t.substring(4,6)],t.substring(6,8)]}(t);return`${o} ${a} ${e}`}function s(t){const[e,r]=o(t);return`${r.substring(0,3)} ${e}`}function l(t){const[e,r]=o(t);return`${r.substring(0,3)} '${e.substring(2,4)}`}function c(t){const[e,r]=t.split("-");return`${parseFloat(r)/3}T ${e}`}function u(t,e){const r=t[e];return Array.from(r.values()).map((t=>t.slice(0,3)))}function d(t,e=2){let r=navigator.language||navigator.userLanguage;r=r.length<=2?`${r}-${r.toUpperCase()}`:r;const a={minimumFractionDigits:0,maximumFractionDigits:e};return"es-ES"===r?t.toLocaleString("de-DE",a):t.toLocaleString(r,a)}function f(t){const e=1e6;return t>=e?t/e+"M":t.toString()}function h(t){return t>=1e3?t/1e3+" Tn":t.toString()}function m(t,e=29){if(t.length>=e){const r=t.split(" ");let a="",o="";return r.forEach((t=>{`${a} ${t}`.length<=e?a+=(a?" ":"")+t:(o+=`${a}\n`,a=t)})),o+=a,o}return t}function p(t,e){const r=document.getElementById(t);if(!r)return console.error(`No se pudo encontrar el elemento con ID ${t}.`),null;const a=echarts.init(r);a.setOption(e,!0),window.addEventListener("resize",(()=>{null!=a&&void 0!==a&&a.resize()}));const o=document.getElementById("main-content");return o&&(o.addEventListener("shown.bs.collapse",(()=>{a.resize()})),o.addEventListener("hidden.bs.collapse",(()=>{a.resize()}))),a}function g(t,e){const r=t?document.querySelector(t):null,a=e?document.querySelector(e):null;r&&(r.hidden=!0),a&&(a.style.background="url('./build/images/nodata1.png') no-repeat top center",a.hidden=!1)}function y(t,e){const r=t?document.querySelector(t):null,a=e?document.querySelector(e):null;r&&(r.hidden=!0),a&&(a.style.background="#ffffff",a.hidden=!1)}function b(t,e=!1,r=!0,a=""){let o=`<p style="font-weight: 500;color: #565656;">${t[0].name}</p>`;return t.forEach((t=>{const n=e?Math.round(t.data):t.data,i=r?`<div style="font-weight: 400;color: #666;">${s=t.color,`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;font-weight: 500;background-color:${s}"></span>`} ${t.seriesName}: \n <span style="float: right; margin-left:20px;font-weight: 600;color: #565656;">\n ${t.data?`${d(n)} ${a}`:"-"}\n </span>\n </div>`:`<div>\n <span style="font-weight: 600;color: #565656;">${t.data?`${d(n)} ${a}`:"-"}\n </span>\n </div>`;var s;o+=i})),o}function S(t){return 100*(t-120)/t}function M(t,e){const r=Math.max(...t);return r+(e-r%e)}function T(t,e=!1){const r=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:${t.color}"></span>`,a=e?`${t.percent}%`:d(t.value);return`<div> ${r} ${t.name} <span style="float: right; margin-left:20px;font-weight: 600;color: #333;"> ${a} </span></div>`}function E(t,e){let r=`${t.name} : `;return r+=`<span style="font-weight:500">${d(Math.round(t.value))}</span>`,e&&(r+=`<span> (${t.percent}%)</span>`),t.marker+r}function A(t){const e=1e6,r=Number(t);return r>=0&&r<e?`${d(r)} €`:r>=e?`${d(r/e)} M €`:"-"}function v(t,e,r=1){const a=Math.max(...t.map((t=>t[e])))*r;return 5e3*Math.ceil(a/5e3)}function $(t,e,r,a=30,o=15,n=30,i=-70,s=70,l=3){const c=v(t,e.data,1.1),u=s,f=r.slice(),h=[];let p=o,g=n,y=i;for(let r=0;r<t.length;r+=1)h.push({value:t[r][e.data],name:m(String(t[r][e.type]).replace(/\[.*?\]/g,"")),color:f.shift(),title:{offsetCenter:[`${String(y)}%`,`${String(p)}%`],fontFamily:"Montserrat",fontSize:a},detail:{offsetCenter:[`${String(y)}%`,`${String(g)}%`],fontFamily:"Montserrat",width:"33%",formatter:t=>d(Math.round(t))}}),y+=u,(r+1)%l==0&&(g+=n,p+=2*o,y=i);return[c,h]}function x(t,e,r,o=0){return[v(e,r.data,1),t=>function(t,e,r){const o=d(Math.round(e)),n=a(t[r][0]),i=t[r][1],s=`\n${n} ${i} : ${o}`,l=`${o}\n${n} ${i}`;return window.innerWidth<=1710?s:l}(e,t,o),[{value:e[o][r.data]}]]}function D(t,e){const{resultset:r}={resultset:t},a=new Set,o=new Set,n=r.map((([t,r,n])=>{const i=e?Math.round(n):n;return a.add(t),o.add(r),{day:r,type:t,value:i}})),i=Array.from(o.values()),s=Array.from(a.values());return s.sort(((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase(),"es",{ignorePunctuation:!0}))),[s.map((t=>{const e=n.filter((e=>e.type===t)).map((({day:e,value:r})=>[e,t,r])),r=i.map((t=>{const r=e.find((([e])=>e===t));return r?r[2]:null}));return{name:t,data:r}})),s,o]}function L(t,e=[],r=!1){const[a,o,n]=D(t,r);return a.forEach((t=>{t.type="line",t.symbol="circle",t.symbolSize=6,t.smooth=.1,e.length>0&&(t.color=e.shift())})),[a,n,o]}function U(t,e,r=!1){const[a,o,n]=D(t,r);return a.forEach((t=>{t.type="bar",t.color=e.shift(),t.smooth=!1})),[a,n,o]}function C(t){const{resultset:e,metadata:r}=t,a=[];return e.forEach((t=>{const e={};t.forEach(((t,a)=>{e[r[a].colName]=t})),a.push(e)})),a}function F(t,e){const r=t;return Object.keys(e).forEach((a=>{Object.prototype.hasOwnProperty.call(e,a)&&("series"===a?r[a]=e[a].map(((e,r)=>({...t[a][r],...e}))):"object"!=typeof e[a]||Array.isArray(e[a])?r[a]=e[a]:r[a]=F(t[a]||{},e[a]))})),t}function w(t,e){t.forEach((t=>{t.id in e&&Object.entries(e[t.id]).forEach((r=>{const a=r[0],o=r[1];"object"==typeof o?o.className?document.querySelector(o.className).className=t[a]:o.element&&o.format&&(document.querySelector(o.element).textContent=e[t.id][a].format(t[a])):document.querySelector(o).textContent=t[a]}))}))}function N(t,e){const r=C(t),a=[];let o=null;return r.forEach((t=>{const r=t[e];"number"!=typeof r||Number.isNaN(r)||a.push(r)})),a.length>0&&(o=Math.max(...a)),o}function P(t,e=!0){const r={Cont:[],Mob:[]};return t.forEach((t=>{"is-res-001-kgs-contenidors"===t[0]&&"total"===t[1]&&(e?r.Cont.push([t[3],t[4],t[2]]):r.Cont.push([t[3],t[2]])),"Mobles"===t[1]&&(e?r.Mob.push([t[3],t[4],t[2]]):r.Mob.push([t[3],t[2]]))})),r}const I=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],O=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],k=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],R=["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],B=["Do","Lu","Ma","Mi","Ju","Vi","Sá"];function z(t){const e=t.resultset.map((t=>t[0]));return this.dashboard.fireChange(this.parameter,e),t}function _(t){for(const e of t)if(Array.isArray(e)){if(!_(e))return!1}else if("All"!==e)return!1;return!0}function G(t,e,r,a){return _(e)?(t.queryDefinition.dataAccessId=r,t.dashboard.setParameter(t.parameter,["All"])):t.queryDefinition.dataAccessId=a,!0}function V(t){t.forEach((t=>{Dashboards.fireChange(t,["All"])}))}function q(){return{input:{root:{id:"All"},indexes:{id:0,label:0}},component:{Root:{strings:{isDisabled:"No disponible",allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}},Group:{Strings:{allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}}}}}function Y(){const t={input:{root:{id:"All"},indexes:{id:0,label:0}},component:{Root:{strings:{isDisabled:"No disponible",allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}},Group:{Strings:{allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}}}};return t.input.indexes.id=1,t.input.indexes.label=0,t}function W(t,e,r,a){const o=Dashboards.getParameterValue(r),n=Dashboards.getParameterValue(a);return Dashboards.fireChange(t,[o]),Dashboards.fireChange(e,[n]),!0}function j(t,e){const r=Dashboards.getParameterValue(e);return Dashboards.fireChange(t,[r]),!0}function H(t,e){Dashboards.fireChange(e,t.resultset[0][0])}function J(t,e){const r=Dashboards.getParameterValue(e),a=t.parameter;t.dashboard.setParameter(a,[r])}function Z(t){t.regional.es={monthNames:I,abbreviatedMonthNames:O,dayNames:k,abbreviatedDayNames:R,dayNamesMin:B,weekHeader:"Sm",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},t.setDefaults(t.regional.es)}function X(t,e){const r=document.getElementById(t);return r?new Tabulator(r,e):(console.error(`No se pudo encontrar el elemento con ID ${t}.`),null)}function K(t,e){let r=t.getValue();return r.length>e&&(r=`${r.substr(0,e)}<br>${r.substr(e)}`),r}function Q(t,e){const r=t.getValue().split(" ");let a="",o="";return r.forEach((t=>{(o+t).length<=e?o+=`${t} `:(a+=`${o}<br>`,o=`${t} `)})),a+=`${o}<br>`,a}function tt(t,e){"expand"===e?t.treeExpand():t.treeCollapse();const r=t.getTreeChildren();r.length>0&&r.forEach((t=>{t.getTreeChildren().length>0&&tt(t,e)}))}function et(t,e){t.getRows().forEach((t=>{t.getTreeChildren().length>0&&tt(t,e)}))}function rt(t,e,r,a){const o=[];for(const n in t)if(t.hasOwnProperty(n)){const i=t[n],s={[e]:i[0],_children:[]};i.shift(),i.forEach(((t,o)=>{const n={[e]:r[o],[a]:t};s._children.push(n)})),o.push(s)}return o}function at(t){let e=!0;return t.getGroups().forEach((t=>{t._group.visible&&(e=!1)})),e}function ot(t,e,r){const a=document.getElementById(r),o=a.cloneNode(!0);a.parentNode.replaceChild(o,a),o.addEventListener("click",(()=>{t.download("csv",`${e}.csv`,{delimiter:";"})}))}function nt(t,e,r){const a=document.getElementById(r),o=a.cloneNode(!0);a.parentNode.replaceChild(o,a),o.addEventListener("click",(()=>{t.download("pdf",`${e}.pdf`,{title:e,rowCalcStyles:{fontSize:8,fontStyle:"bold"},autoTable:{styles:{fontSize:8}}})}))}function it(t){const e=[],r=[100,200,350,500,750,751],a=[40,90,120,230,340,341],o=[50,100,130,240,380,381],n=[20,40,50,100,150,151],i=[10,20,25,50,75,76],s={0:"b",1:"a",2:"d",3:"m",4:"mm",5:"em",6:"",7:"nd"};function l(t,e,r){const a=document.createElement("td");if(a.setAttribute("id",t),null!=e){a.innerHTML=e;const t=function(t,e){let r;return void 0===e?r=6:"ND"===e?r=7:(r=5,t.forEach(((t,a)=>{e<=t&&5===r&&(r=a)}))),s[r]}(r,e);a.classList.add(t)}return a}return t.forEach((t=>{const s=t;"noData"===s.operationalstatus&&(s.so2value="ND",s.no2value="ND",s.o3value="ND",s.pm10value="ND",s.pm25value="ND"),"A09_CABANYAL_60m"===s.entityid&&(s.pm10value=void 0,s.pm25value=void 0);const c=document.createElement("tr"),u=document.createElement("td");u.innerHTML=s.address,c.appendChild(u),c.appendChild(l(`${s.entityid}_so2`,s.so2value,r)),c.appendChild(l(`${s.entityid}_no2`,s.no2value,a)),c.appendChild(l(`${s.entityid}_o3`,s.o3value,o)),c.appendChild(l(`${s.entityid}_pm10`,s.pm10value,n)),c.appendChild(l(`${s.entityid}_pm25`,s.pm25value,i)),e.push(c)})),e}function st(t){document.location=`${document.documentURI.split("%3A")[0]}%3A${document.documentURI.split("%3A")[1]}%3A${document.documentURI.split("%3A")[2]}%3A${document.documentURI.split("%3A")[3]}%3A${t}`}function lt(){const t=window.location.href;let e="";return e=t.includes("localhost")?"local":t.includes("sc_valencia_pre")?"PRE":"PRO",e}function ct(t,e){document.querySelectorAll(`[${t}]`).forEach((r=>{!function(t,e,r){const a=e;if(t){const e=new XMLHttpRequest;e.onreadystatechange=function(){4===this.readyState&&(200===this.status&&(a.innerHTML=this.responseText,r&&r()),404===this.status&&(a.innerHTML="No se ha podido cargar correctamente."))},e.open("GET",t,!0),e.send()}}(r.getAttribute(t),r,e)}))}function ut(t){ct("include-html-cabecera",(function(){!function(){const t=lt();"PRO"!==t&&(document.title+=` (${t})`)}(),function(){const t=lt();"PRO"!==t&&(document.querySelector("nav").querySelectorAll("span")[1].textContent+=` (${t})`)}()})),ct("include-html-menu"),ct("include-html-main-container",(function(){(function(){const t=document.querySelector("body");t.classList.remove("inicio"),t.classList.add(document.documentURI.split("%3A")[4].match(/(.*?).wcdf/)[1])})(),t&&t()})),ct("include-html-copyright")}function dt(t,e,r,a,o,n){let i=!1,s=!1;const l=document.querySelector(t),c=document.querySelector(e),u=()=>{"undefined"!=typeof Liferay&&"ca-ES"===Liferay.ThemeDisplay.getBCP47LanguageId()?(l&&l.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?camara=1&lang=cas"),c&&c.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?lang=cas")):(l&&l.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?camara=1&lang=val"),c&&c.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?lang=val"))};function d(t=!0){const e=document.querySelector(r);t?(l&&(l.src="about:blank"),c&&(c.src="about:blank"),e.classList.add("blur"),s=!0):(e.classList.remove("blur"),u(),s=!1)}const f=t=>{new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(s||u(),i||(i=!0,window.setTimeout(d,n)))}))})).observe(t)};!function(){const{userAgent:t}=navigator;return/iPad|iPhone|iPod|Macintosh/.test(t)&&!window.MSStream}()?(l&&(l.setAttribute("sandbox","allow-scripts"),f(l)),c&&(c.setAttribute("sandbox","allow-scripts"),f(c)),document.querySelector(o).addEventListener("click",(()=>{d(!1),window.setTimeout(d,n)}))):document.querySelectorAll(a)[0].style.display="none"}const ft={grid:{containLabel:!0},title:{left:"center",top:"0",textStyle:{fontSize:15,fontFamily:"Montserrat",fontWeight:500,color:"#666"}},legend:{orient:"horizontal",bottom:"0",left:"center",width:"100%",textStyle:{fontSize:11,fontFamily:"Montserrat",fontWeight:400,color:"#666"}},toolbox:{show:!0,right:"0",top:"0",feature:{restore:{textStyle:{fontSize:6,fontFamily:"Montserrat",fontWeight:300}},saveAsImage:{textStyle:{fontSize:6,fontFamily:"Montserrat",fontWeight:300}}},emphasis:{iconStyle:{borderColor:"#ffcd00",textFill:"#666"}}},tooltip:{textStyle:{fontFamily:"Montserrat",fontSize:12}},xAxis:[{type:"category",axisLabel:{show:!0,interval:0,textStyle:{fontFamily:"Montserrat",fontSize:11}},data:[]}],yAxis:[{type:"value",alignTicks:!0,position:"right",axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400},formatter:t=>`${t}%`}},{type:"value",position:"left",axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400},formatter:t=>`${f(t)}€`}}]},ht=(t,e)=>{e.sort(((t,e)=>parseInt(t.anyo)-parseInt(e.anyo)));const r={};e.forEach((e=>{const a=e[1],o=e[0];o!==t.seriesName||r[a]||(r[a]=0),o===t.seriesName&&(r[a]+=e[2])}));let a=`<p>${t.seriesName}</p>`;for(const[e,o]of Object.entries(r))a+=`<div>${t.marker} ${e}: <span style="float: right; margin-left:20px;font-weight: 600;">${d(o)}</span></div>`;return a};function mt(t,e,r=void 0,a=void 0){const o=null===a?void 0:a,n=new Set(e.map((t=>t[1])));let i;const s={title:{text:"SIN TITULO",left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},tooltip:{axisPointer:{type:"shadow"},trigger:"item",formatter:t=>ht(t,e),textStyle:{fontFamily:"Montserrat"},position(t,e,r,a,o){const n={},i=o.contentSize[1]/2,s=o.viewSize[1],l=t[1];return l<i?n.top=10:l+i>s?n.bottom=10:n.top=l-i,t[0]<o.viewSize[0]/2?n.left=t[0]+20:n.right=o.viewSize[0]-t[0]+20,n}},legend:{padding:40,textStyle:{fontFamily:"Montserrat"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",splitNumber:10,name:"SIN NOMBRE",nameLocation:"start",nameTextStyle:{fontWeight:"bold",fontFamily:"Montserrat",color:"#666",padding:-40},axisLabel:{margin:5,textStyle:{fontFamily:"Montserrat"},formatter:t=>d(t)},splitLine:{lineStyle:{color:"#DDD"}}},yAxis:{type:"category",data:Array.from(n),axisLabel:{textStyle:{fontFamily:"Montserrat"}}},series:(()=>{const t={name:"SIN NOMBRE",type:"bar",stack:"total",label:{show:!0,fontFamily:"Montserrat",fontSize:10,formatter:t=>d(Math.round(t.value))},itemStyle:void 0,emphasis:{focus:"series"},data:void 0};o&&o.itemStyle&&Array.isArray(o.itemStyle.borderColor)&&(i=[...o.itemStyle.borderColor],delete o.itemStyle.borderColor);const r=function(t){return t.reduce(((t,e)=>{const r=e[0];return t[r]||(t[r]=[]),t[r].push(e),t}),{})}(e),a=Object.keys(r);n.forEach((t=>{a.forEach((e=>{void 0===r[e].find((e=>e[1]===t))&&(r[e].push([r[e][0][0],t,void 0]),r[e].sort())}))}));const s=[];return Object.keys(r).forEach((e=>{i&&(t.itemStyle={borderColor:i.shift()}),t.name=e,t.data=r[e].map((t=>t[2]));let a={};a=void 0!==o?F(t,o):t,s.push({...a})})),s})(),toolbox:{show:!0,feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:50}};let l={};l=void 0!==r?F(s,r):s,p(t,l)}function pt(t){let e={};return e=F(t,ft),e}function gt(t,e,r={},o={}){let n={};n=F(r,{color:["#81B1CC","#ABD9EA","#C2EEF9","#F9E2AF","#F9C780","#FDAE61","#F46D43","#FDAE61","#F9E2AF","#C2EEF9","#ABD9EA","#81B1CC"],yAxis:{data:function(){const t=new Set;return e.forEach((e=>{t.add(e[1])})),Array.from(t).sort(((t,e)=>t-e))}()}});const i={itemStyle:{borderWidth:2,borderColor:["#448DAD","#89CADB","#A0DEE8","#F4D28C","#F4B569","#F79646","#F25930","#F79646","#F4D28C","#A0DEE8","#89CADB","#448DAD"]}},s=null===o?i:F(o,i),l=e;l.forEach(((t,e)=>{l[e][0]=a(t[0])})),mt(t,l,n,s)}function yt(t,e=void 0){const r={title:{text:"SIN TITULO",left:"center",top:"top",padding:50,textStyle:{fontSize:14,fontFamily:"Montserrat",fontWeight:400,color:"#333"}},legend:{show:!1},grid:{top:"30%",bottom:"5%",left:"8%",right:"8%"},xAxis:{type:"value",show:!1},yAxis:{show:!1,type:"category"},tooltip:{show:!0,textStyle:{fontFamily:"Montserrat",fontWeight:"600"},appendToBody:!0,formatter:t=>E(t,!1)},series:[{type:"bar",showBackground:!0}]};let a={};a=void 0!==e?F(r,e):r,p(t,a)}const bt="es_ES",St={es_ES:new Map([["1","Enero"],["2","Febrero"],["3","Marzo"],["4","Abril"],["5","Mayo"],["6","Junio"],["7","Julio"],["8","Agosto"],["9","Septiembre"],["10","Octubre"],["11","Noviembre"],["12","Diciembre"]]),ca_ES:new Map([["1","Gener"],["2","Febrer"],["3","Març"],["4","Abril"],["5","Maig"],["6","Juny"],["7","Juliol"],["8","Agost"],["9","Setembre"],["10","Octubre"],["11","Novembre"],["12","Desembre"]])};function Mt(t){return Math.max(...t.map((t=>Number(t[0]))))}function Tt(t){const e=t.filter((e=>Number(e[0])===Mt(t))),r=Array.from({length:12},(()=>0));return e.forEach((([t,e,a])=>{const o=parseInt(e,10)-1;r[o]=a})),r}function Et(t){const e=t.filter((e=>Number(e[0])===Mt(t)-1)),r=Array.from({length:12},(()=>0));return e.forEach((([t,e,a])=>{const o=parseInt(e,10)-1;r[o]=a})),r}function At(t,e,r=void 0){const a=Mt(e).toString(),o=(Mt(e)-1).toString();yt(t,F({title:{left:"center",top:"-12%",textStyle:{fontSize:15,fontFamily:"Montserrat"}},legend:{top:"10%",show:!0,data:[o,a],textStyle:{fontFamily:"Montserrat"}},grid:{bottom:"8%",top:"20%",right:"2%"},xAxis:[{type:"category",data:u(St,bt),interval:0,margin:10,axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400}}}],yAxis:[{type:"value",axisLabel:{formatter:t=>t.toLocaleString("es-ES"),textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400}}}],series:[{name:o,type:"bar",data:Et(e)},{name:a,type:"bar",barGap:0,data:Tt(e)}]},r))}function vt(t,e,r){const a=document.querySelector(e),o=document.querySelector(t);let n=!1;o.addEventListener("click",(()=>{!1===n&&(n=!0,a.setAttribute("src","about:blank"),a.setAttribute("src",r),a.onload=()=>{n=!1})})),o.disabled=!1}const $t="id",xt="fecha",Dt="value";function Lt(t,e,r,a){const[o,n]=function(t,e,r){const a=[],o=[];return t.forEach((t=>{e.includes(`${t[$t]}`)?a.push(`${t[xt]}`):r.includes(`${t[$t]}`)&&o.push(`${t[xt]}`)})),[a.map((t=>[t,0])),o.map((t=>[t,0]))]}(t,r,a);let i="Datos sin validar";0===n.length&&(i="");const s={name:"Datos validados",type:"line",data:[...o,n[0]],lineStyle:{color:"#00A9A0",width:4},showSymbol:!1,tooltip:{show:!1}};let l="",c="";if(0===n.length){const e=t[t.length-1].fecha;l=e,c=e}else l=n[0][0],c=n[n.length-1][0];return[...e,s,{name:"Datos NO validados",type:"line",data:n,lineStyle:{color:"#80D4CF",width:4},showSymbol:!1,tooltip:{show:!1},markArea:{silent:!0,itemStyle:{opacity:.6,color:"#eee"},tooltip:{show:!1},label:{color:"#333",fontStyle:"normal",fontWeight:"400",fontFamily:"Montserrat",fontSize:11},data:[[{name:i,xAxis:l,yAxis:0},{name:"end",xAxis:c,yAxis:Math.max(...t.filter((t=>null!==t[Dt])).map((t=>parseInt(`${t[Dt]}`,10))))}]]}}]}function Ut(t,e,r=void 0){p(t,F({grid:{left:"2.5%",right:"5%",bottom:"70",top:"150",containLabel:!0},title:{left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},legend:{type:"plain",top:"50",width:"98%",textStyle:{fontFamily:"Montserrat"}},tooltip:{trigger:"axis",show:!0,formatter:t=>b(t),textStyle:{fontFamily:"Montserrat"}},xAxis:{type:"category",boundaryGap:!1,splitLine:{show:!1},axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},yAxis:{type:"value",nameLocation:"end",nameGap:"0",nameTextStyle:{fontFamily:"Montserrat",fontWeight:"500",padding:[-25,0,0,-48],margin:0,align:"left",verticalAlign:"top",width:"auto"},scale:!0,splitNumber:"6",axisLabel:{margin:10,textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},dataZoom:{end:100,borderColor:"#eee",fillerColor:"rgba(0,0,0,.05)",textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#333",textBorderColor:"#fff",textBorderWidth:3,fontWeight:"600"},selectedDataBackground:{lineStyle:{color:"#333"},areaStyle:{color:"#ffcd00"}},dataBackground:{backgroundColor:"rgba(0,0,0,1)",lineStyle:{color:"#333"},areaStyle:{color:"rgba(0,0,0,0.5)"}},handleStyle:{color:"rgba(0,0,0,0.2)"},moveHandleStyle:{color:"rgba(0,0,0,0.3)"},emphasis:{handleStyle:{color:"rgba(255,205,0,1)"},moveHandleStyle:{color:"rgba(255,205,0,1)"}}},toolbox:{feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:"1%",top:"0%"},series:e},r))}return e})(),t.exports=e()}},e={};function r(a){var o=e[a];if(void 0!==o)return o.exports;var n=e[a]={exports:{}};return t[a](n,n.exports,r),n.exports}r.d=(t,e)=>{for(var a in e)r.o(e,a)&&!r.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.r(a),r.d(a,{chargeData:()=>H,clearInputs:()=>V,createSerie:()=>J,echartLineLinia:()=>K,echartLineTitol:()=>X,echartUsuarisPerLinea:()=>Tt,echartUsuarisPerLiniaBarYear:()=>xt,echartUsuarisPerLiniaGaugeMonth:()=>ft,echartUsuarisPerLiniaGaugeYear:()=>ut,echartUsuarisPerLiniaLineMonth:()=>vt,echartUsuarisPerTitol:()=>St,echartUsuarisPerTitolBarYear:()=>$t,echartUsuarisPerTitolGaugeMonth:()=>dt,echartUsuarisPerTitolGaugeYear:()=>ct,echartUsuarisPerTitolLineMonth:()=>At,echartUsuarisTotals:()=>yt,echartUsuarisTotalsBarMonth:()=>O,echartUsuarisTotalsGaugeMonth:()=>pt,echartUsuarisTotalsGaugeYear:()=>lt,echartUsuarisTotalsStackedBarYears:()=>gt,filterData:()=>et,filterEMT1Update:()=>q,filterEMT2Update:()=>Y,handlerActivarFiltro:()=>Q,handlerDesactivarFiltro:()=>tt,listeneresEMT:()=>rt,usdEmtUsuarisPerLinea:()=>Et,usdEmtUsuarisPerTitol:()=>Mt,usdEmtUsuarisTotals:()=>bt});const t="8%",e="2.5%",o="5%",n="18%",i="20%",s="10%",l="90%",c="1%",u="0%",d=["#9c89b8","#4ea8de","#05668d","#ffbf69","#e56b6f","#83c5be","#02c39a","#ee9b00","#cdb4db","#ffadad","#ce4257","#b7b7a4"],f=33,h=27,m=30;function p(t){let e=navigator.language||navigator.userLanguage;e=e.length<=2?`${e}-${e.toUpperCase()}`:e;const r={minimumFractionDigits:0,maximumFractionDigits:2};return"es-ES"===e?t.toLocaleString("de-DE",r):t.toLocaleString(e,r)}function g(t){return 100*(1-17/t)}function y(t,e=!1){let r=`<p>${t[0].name}</p>`;return t.forEach((t=>{const a=e?Math.round(t.data):t.data,o=`<div>${n=t.color,`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:${n}"></span>`} ${t.seriesName}: <strong style="float: right; margin-left:20px">${t.data?p(a):"-"}</strong></div>`;var n;r+=o})),r}function b(t){return p(t)}function S(){const t=$("#formFilterDates").find("input"),e=[];$(t).each(((t,r)=>{r.checked&&e.push(r.id)})),Dashboards.fireChange("filterDatesParam",e),Dashboards.fireChange("updateFilter","True")}function M(t){return{1:"GENER",2:"FEBRER",3:"MARÇ",4:"ABRIL",5:"MAIG",6:"JUNY",7:"JULIO",8:"AGOST",9:"SETEMBRE",10:"OCTUBRE",11:"NOVEMBRE",12:"DESEMBRE"}[t]}function T(t,e){const r=t?document.querySelector(t):null,a=e?document.querySelector(e):null;r&&(r.hidden=!0),a&&(a.style.background="url('./build/images/nodata1.png') no-repeat top center",a.hidden=!1)}function E(t,e){const r=t?document.querySelector(t):null,a=e?document.querySelector(e):null;r&&(r.hidden=!0),a&&(a.style.background="#ffffff",a.hidden=!1)}function A(t,e){return t.reduce(((t,r)=>{const a=r[e];return t[a]||(t[a]=[]),t[a].push(r),t}),{})}function v(t,e,r=1){const a=Math.max(...t.map((t=>t[e])))*r;return 5e3*Math.ceil(a/5e3)}function x(t){return Math.round(document.getElementById(t).offsetWidth/f)}function D(r,a,d,f,h,m,p,g=5,S="",M=h,T=100,E,A=void 0,v=void 0){return{title:{text:S,left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},tooltip:{trigger:"axis",show:!0,formatter:t=>y(t),textStyle:{fontFamily:"Montserrat"}},legend:a?{type:"plain",data:a,textStyle:{fontFamily:"Montserrat"},top:A||t,selected:E}:null,grid:{left:e,right:o,bottom:n,top:a?A?"30%":i:s,heigh:l,containLabel:!0},xAxis:{type:"category",data:d,boundaryGap:!1,splitLine:{show:!1},axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},yAxis:{name:f,nameLocation:"end",nameTextStyle:{fontFamily:"Montserrat",fontWeight:"bold",padding:[0,0,0,p]},type:"value",scale:!0,min:v,axisLabel:{margin:g,formatter:b,textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},series:r,dataZoom:[{show:m,data:d,start:M,end:T,borderColor:"#eee",fillerColor:"rgba(0,0,0,.05)",textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#333",textBorderColor:"#fff",textBorderWidth:3,fontWeight:"600"},selectedDataBackground:{lineStyle:{color:"#333"},areaStyle:{color:"#ffcd00"}},dataBackground:{backgroundColor:"rgba(0,0,0,1)",lineStyle:{color:"#333"},areaStyle:{color:"rgba(0,0,0,0.5)"}},handleStyle:{color:"rgba(0,0,0,0.2)"},moveHandleStyle:{color:"rgba(0,0,0,0.3)"},emphasis:{handleStyle:{color:"rgba(255,205,0,1)"},moveHandleStyle:{color:"rgba(255,205,0,1)"}}}],toolbox:{show:m,feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:c,top:u}}}function L(t,r,a,s,c="",u="total",f=0,h=1,m=2,S=d){if(0===a.length)T(`#${t}`,`#${r}`);else{E(`#${r}`,`#${t}`);const d=[];let M=A(a,f);const T=new Set(a.map((t=>t[h]))),v=Object.keys(M);T.forEach((t=>{v.forEach((e=>{void 0===M[e].find((e=>e[h]===t))&&(M[e].push([M[e][0][f],t,void 0]),M[e][0][1].length>4?M[e].sort(((t,e)=>{const[r,a]=t[1].split("/"),[o,n]=e[1].split("/"),i=new Date(a,r-1,1),s=new Date(n,o-1,1);return i.getTime()-s.getTime()})):M[e].sort())}))}));const $=Object.entries(M).sort(((t,e)=>t[0].localeCompare(e[0]))),x=""===u?90:0;M=Object.fromEntries($),Object.keys(M).forEach((t=>{d.push({name:t,type:"bar",stack:u,label:{show:!0,fontFamily:"Montserrat",rotate:x,formatter:t=>p(Math.round(t.value))},emphasis:{focus:"series"},data:M[t].map((t=>t[m]))})}));const D=""!==u?g(T.size):100*(1-7/T.size);P(t,{color:S,title:{text:c,left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{fontFamily:"Montserrat"},formatter:t=>y(t,!0)},legend:{padding:40,textStyle:{fontFamily:"Montserrat"}},grid:{left:e,right:o,bottom:n,top:i,heigh:l,containLabel:!0},yAxis:{type:"value",splitNumber:4,name:s,nameLocation:"end",nameTextStyle:{fontWeight:"bold",fontFamily:"Montserrat",color:"#666"},axisLabel:{formatter:b,textStyle:{fontSize:8,fontFamily:"Montserrat",color:"#666"}}},xAxis:{type:"category",data:[...T],axisLabel:{textStyle:{fontFamily:"Montserrat"}}},series:d,toolbox:{show:!0,feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:50},dataZoom:[{show:!0,data:[...T],start:D,end:100,borderColor:"#eee",fillerColor:"rgba(0,0,0,.05)",textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#333",textBorderColor:"#fff",textBorderWidth:3,fontWeight:"600"},selectedDataBackground:{lineStyle:{color:"#333"},areaStyle:{color:"#ffcd00"}},dataBackground:{backgroundColor:"rgba(0,0,0,1)",lineStyle:{color:"#333"},areaStyle:{color:"rgba(0,0,0,0.5)"}},handleStyle:{color:"rgba(0,0,0,0.2)"},moveHandleStyle:{color:"rgba(0,0,0,0.3)"},emphasis:{handleStyle:{color:"rgba(255,205,0,1)"},moveHandleStyle:{color:"rgba(255,205,0,1)"}}}]})}}function U(t,e,r,a,o,n,i){if(0===o.length)T(`#${t}`,`#${r}`),T(`#${e}`,`#${a}`);else{E(`#${r}`,`#${t}`),E(`#${a}`,`#${e}`);const s=0,l=2,c=function(t,e){const r=v(t,e,1.1);let a=50,o=180;r>9999999&&(a=65,o=95);const n=A(t,1);let[i,s]=Object.values(n);return Object.values(n).slice(1).forEach((t=>{s=t})),[s,i,n,r,a,o]}(o,l),u=c[0],d=c[1],f=c[2],h=c[3],m=c[5],p=x(t),g=N(u,l,s,m,p),y=N(d,l,s,m,p);P(t,F(`${n}${M(String(Object.keys(f)[1]))}`,h,g,p)),P(e,F(`${i}${M(String(Object.keys(f)[0]))}`,h,y,p))}}function C(t,e,r,a){0===r.length?T(`#${t}`,`#${e}`):E(`#${e}`,`#${t}`);const o=v(r,1,1.1),n=x(t);let i=180;o>9999999&&(i=95);const s=N(r,1,0,i,n);P(t,F(`${a} ${r[0][2]}`,o,s,n))}function F(t,e,r,a){return{color:d,title:{text:t,left:"center",top:"top",padding:10,textStyle:{fontSize:a,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},tooltip:{show:!0,textStyle:{fontFamily:"Montserrat"},formatter:t=>function(t,e){const r=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${t.color};"></span>`;let a=`${t.name} : `;return a+=`<span style="font-weight:bold">${p(t.value)}</span>`,e&&(a+=`<span> (${t.percent}%)</span>`),r+a}(t,!1)},splitNumber:3,series:{type:"gauge",max:e,startAngle:-180,endAngle:0,splitNumber:2,pointer:{show:!1,icon:"roundRect"},progress:{show:!0,overlap:!1,roundCap:!0,clip:!0,itemStyle:{borderWidth:1,borderColor:"#464646"}},axisLine:{lineStyle:{width:60}},splitLine:{show:!0,distance:10,length:10},axisTick:{show:!0,splitNumber:5},axisLabel:{show:!0,distance:70,formatter:t=>p(Math.round(t)),fontFamily:"Montserrat",color:"#666"},data:r,detail:{fontSize:a/1.2,color:"inherit",formatter:t=>p(Math.round(t))}},toolbox:{show:!0,feature:{saveAsImage:{title:"Desar"}},right:h,top:m}}}function w(t){if(t.length>=29){const e=t.split(" ");let r="",a="";for(const t of e)`${r} ${t}`.length<=29?r+=(r?" ":"")+t:(a+=`${r}\n`,r=t);return a+=r,a}return t}function N(t,e,r,a,o){let n=20,i=35,s=-190,l=a;t.length<=2&&(s=-140,l+=100,n=25,i=42);const c=d.slice(),u=[];for(let a=0;a<t.length;a+=1)u.push({value:t[a][e],name:w(t[a][r]),color:c.shift(),title:{offsetCenter:[String(s),`${String(n)}%`],fontFamily:"Montserrat",fontSize:o-3},detail:{offsetCenter:[String(s),`${String(i)}%`],fontFamily:"Montserrat"}}),s+=l,(a+1)%3==0&&(i+=30,n+=30,s=-190);return u}function P(t,e){const r=document.getElementById(t);if(!r)return console.error(`No se pudo encontrar el elemento con ID ${t}.`),null;const a=echarts.init(r);return a.setOption(e,!0),$(window).on("resize",(()=>{null!=a&&void 0!==a&&a.resize()})),a}function I(t){return 100*(t-120)/t}function O(t,e){0===e.resultset.length?T("#chartUsuarisTotalsBarMonth","#no_dataUsuarisTotalsBarMonth"):(E("#no_dataUsuarisTotalsBarMonth","#chartUsuarisTotalsBarMonth"),P("chartUsuarisTotalsBarMonth",function(t,e,r=-45,a="",o=e){const n=new Set,i=[];t.forEach((t=>{const e=t[0].toString().padStart(2,"0");n.add(`${e}/${t[1]}`),i.push(Math.round(t[2]))}));const s=i.length<100?40:80;return D({name:o,type:"bar",smooth:!1,barMaxWidth:40,itemStyle:{color:"#5470c6"},textStyle:{fontFamily:"Montserrat"},data:i},null,Array.from(n.values()),e,s,!0,r,25,a)}(e.resultset,"Viatges",void 0,"ÚS D'EMT. USUARIS TOTALS: EVOLUCIÓ MENSUAL","Nombre viatges EMT")))}let k,R,B,z,_={start:void 0,end:void 0},G={start:void 0,end:void 0};function V(t=null){let e=$("#formFilterDates").find("input");e=$("#formFilterDates").find("input"),$(e).each(((t,r)=>{r.checked&&(e[t].checked=!1)}));const r=$("#formFilterEMT1").find("input");if($(r).each(((t,e)=>{e.checked&&(r[t].checked=!1)})),t){const t=$("#formFilterEMT2").find("input");$(t).each(((e,r)=>{r.checked&&(t[e].checked=!1)}))}const a=$("#formFilterVar").find("input");$(a).each(((t,e)=>{e.checked&&(a[t].checked=!1)})),function(t){let e=0;const r=$("#formFilterDates").find("input");$(r).each((t=>{e+=1,r[t].checked=!0})),e=0;const a=$("#formFilterEMT1").find("input");$(a).each((t=>{e+=1,e<=6&&(a[t].checked=!0)}));const o=$("#formFilterEMT2").find("input");$(o).each((r=>{t&&t.includes(o[r].id)&&(e+=1,e<=6&&(o[r].checked=!0))})),e=0;const n=$("#formFilterVar").find("input");$(n).each((t=>{e+=1,e<=2&&(n[t].checked=!0)})),Dashboards.getParameterValue("filterDatesParam").length>0&&(Dashboards.fireChange("filterDatesParam"),render_echartAccessosCiutat.listeners=["filterDatesParam"],Dashboards.fireChange("filterDatesParam"),render_echartAccessosCiutat.listeners=[""]),Dashboards.getParameterValue("filterEMT2Param").length>0&&Dashboards.fireChange("filterEMT2Param"),Dashboards.getParameterValue("filterVarParam").length>0&&Dashboards.fireChange("filterVarParam")}(t)}function q(){k&&([_]=k.getOption().dataZoom);const t=$("#formFilterEMT1").find("input"),e=[];$(t).each(((t,r)=>{r.checked&&e.push(r.id)})),Dashboards.fireChange("filterEMT1Param",e),Dashboards.fireChange("updateFilterEMT1","True")}function Y(){B&&([G]=B.getOption().dataZoom);const t=$("#formFilterEMT2").find("input"),e=[];$(t).each(((t,r)=>{r.checked&&e.push(r.id)})),Dashboards.fireChange("filterEMT2Param",e),Dashboards.fireChange("updateFilterEMT2","True")}function W(t,e="number",r=null){let a;return"number"===e?a=new Map([...t].filter((([t])=>!Number.isNaN(Number(t))))):"includes"===e&&(a=new Map([...t].filter((([t])=>t.includes(r))))),a}function j(t){const e=Array.from(t.keys()).sort(((t,e)=>t-e)),r=new Map;return e.forEach((e=>{r.set(e,t.get(e))})),r}function H(t,e,r=!1){const a=[],o=new Set,n=r?new Map:new Set;for(let i=0;i<e.length;i+=1)(0===t.length||t.includes(e[i][0]))&&(r?n.set(e[i][0],e[i][0]):n.add(e[i][0]),a.push({day:e[i][1],type:e[i][0],value:e[i][2]}),o.add(e[i][1]));return[n,a,Array.from(o.values())]}function J(t,e,r){const a=d.slice();return t.map((t=>{const o=e.filter((e=>e.type===t)),n=r.map((t=>{const e=o.findIndex((e=>e.day===t));return-1!==e?o[e].value:null}));return{name:t,type:"line",symbol:"circle",color:a.shift(),symbolSize:6,smooth:!1,data:n}}))}function Z(t){const e={};t.forEach((t=>{const r=t.type,a=t.value;e[r]=(e[r]||0)+a}));const r=Object.keys(e).map((t=>({tipo:t,valor:e[t]})));return r.sort(((t,e)=>e.valor-t.valor)),r.map((t=>t.tipo))}function X(t,e,r,a,o){const n=Dashboards.getParameterValue("filterEMT1Param");if(0===r.length)T(`#${t}`,`#${e}`);else{E(`#${e}`,`#${t}`);const[i,s,l]=H(n,r);if(!o){const t=Z(s);!function(t,e){const r=$("#formFilterEMT1");""===Dashboards.getParameterValue("updateFilterEMT1")&&(e.forEach((t=>{r.append(`<input type="checkbox" id="${t}" class="titol-${t}" onclick="emt.filterEMT1Update();" /> ${t} </br>`)})),V(),S(),q())}(t.length,t),n&&n.sort(((t,e)=>t.localeCompare(e)))}if(n){const r=D(J(n,s,l),n,l,"Viatges",o?g(l.length):I(l.length),!0,-10,void 0,a,_.start,_.end);let i;o?(R=P(t,r),i=R):(k=P(t,r),i=k),0===$("#formFilterEMT1 :checked").length&&T(`#${t}`,`#${e}`),$(window).on("resize",(()=>{null!=i&&void 0!==i&&i.resize()}))}}}function K(t,e,r,a,o){const n=Dashboards.getParameterValue("filterEMT2Param");if(0===r.length)T(`#${t}`,`#${e}`);else{E(`#${e}`,`#${t}`);const[i,s,l]=H(n,r,!0);if(!o){const t=Array.from(j(W(i,"number")).values());let e=[];(function(t){const e=[];return t.forEach(((t,r)=>{Array.from(r).forEach((t=>{!e.includes(t)&&Number.isNaN(Number(t))&&e.push(t)}))})),e})(i).forEach((t=>{e=e.concat(Array.from(j(function(t){const e=/\d+/g,r=new Map;return t.forEach((a=>{r.set(a.match(e),t.get(a))})),r}(W(i,"includes",t))).values()))}));let r=t.concat(e);r=[...new Set(r)];const a=Z(s).slice(0,6);!function(t,e,r){const a=$("#formFilterEMT2");""===Dashboards.getParameterValue("updateFilterEMT2")&&(e.forEach((t=>{a.append(`<input type="checkbox" id="${t}" class="linea-${t}" onclick="emt.filterEMT2Update();" />`)})),V(r),S(),Y())}(r.length,r,a)}if(n){const r=D(J(n,s,l),n,l,"Viatges",I(l.length),!0,-10,void 0,a,G.start,G.end);let i;o?(z=P(t,r),i=z):(B=P(t,r),i=B),0===$("#formFilterEMT1 :checked").length&&T(`#${t}`,`#${e}`),$(window).on("resize",(()=>{null!=i&&void 0!==i&&i.resize()}))}}}function Q(){document.querySelector("#idFiltrar").style.visibility="visible"}function tt(){document.querySelector("#idFiltrar").style.visibility="hidden"}function et(t,e){return t.filter((t=>e.includes(t[0])))}function rt(){const t=["filterDatesParam","updateFilter","filterEMT1Param","updateFilterEMT1"],e=["filterDatesParam","updateFilter","filterEMT2Param","updateFilterEMT2"];render_echartUsuarisPerLinea.listeners=e,render_echartUsuarisPerLiniaLineMonth.listeners=e,render_echartUsuarisPerLiniaGaugeYear.listeners=e,render_echartUsuarisPerLiniaGaugeMonth.listeners=e,render_echartUsuarisPerLiniaBarYear.listeners=e,render_echartUsuarisPerTitol.listeners=t,render_echartUsuarisPerTitolLineMonth.listeners=t,render_echartUsuarisPerTitolGaugeYear.listeners=t,render_echartUsuarisPerTitolGaugeMonth.listeners=t,render_echartUsuarisPerTitolBarYear.listeners=t,render_echartUsuarisTotals.listeners=["filterDatesParam","updateFilter"],Dashboards.fireChange("filterDatesParam"),Dashboards.fireChange("updateFilter"),Dashboards.fireChange("filterEMT1Param"),Dashboards.fireChange("updateFilterEMT1"),Dashboards.fireChange("filterEMT2Param"),Dashboards.fireChange("updateFilterEMT2")}const at="ca_ES",ot={es_ES:new Map([["chartUsuarisTotalsGaugeYear","USO DE EMT. USUARIOS TOTALES: ÚLTIMOS AÑOS"]]),ca_ES:new Map([["chartUsuarisTotalsGaugeYear","US D'EMT. USUARIS TOTALS: ÚLTIMS ANYS"]])},nt={es_ES:new Map([["chartUsuarisTotalsGaugeMonth","USO DE EMT. USUARIOS TOTALES: MES ACTUAL"],["chartUsuarisTotalsGaugeLastMonth","USO DE EMT. USUARIOS TOTALES: MES ANTERIOR"]]),ca_ES:new Map([["chartUsuarisTotalsGaugeMonth","ÚS D'EMT. USUARIS TOTALS: MES ACTUAL"],["chartUsuarisTotalsGaugeLastMonth","ÚS D'EMT. USUARIS TOTALS: MES ANTERIOR"]])};var it=r(2725);const st={color:void 0,title:{text:"",left:"center",top:"top",padding:10,textStyle:{fontSize:15,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},tooltip:{show:!0,textStyle:{fontFamily:"Montserrat"}},splitNumber:3,series:{type:"gauge",max:void 0,startAngle:-180,endAngle:0,splitNumber:2,pointer:{show:!1,icon:"roundRect"},progress:{show:!0,overlap:!1,roundCap:!0,clip:!0,itemStyle:{borderWidth:1,borderColor:"#464646"}},axisLine:{lineStyle:{width:60}},splitLine:{show:!0,distance:10,length:10},axisTick:{show:!0,splitNumber:10},axisLabel:{show:!0,distance:70,formatter:void 0,fontFamily:"Montserrat",color:"#666"},data:[],detail:{fontSize:12,color:"inherit"}},toolbox:{show:!0,feature:{saveAsImage:{title:"Desar"}},right:27,top:30}};function lt(t,e){!function(t,e){const r=e.resultset,a=["#9c89b8","#4ea8de","#05668d","#ffbf69","#e56b6f","#83c5be","#02c39a","#ee9b00","#cdb4db","#ffadad","#ce4257","#b7b7a4"];if(0===e.length)(0,it.printNoDataChart)(`#${t.idChart}`,`#${t.idNoData}`);else{(0,it.printDataChart)(`#${t.idNoData}`,`#${t.idChart}`);const e={type:0,data:1,time:2},[o,n]=(0,it.configureDataGaugeCommon)(r,e,a.slice(),t.fontSize,t.paramOffsetCenterTitle,t.paramOffsetCenterDetail,t.paramOffsetLabel,t.paramCalculatedOffset,t.paramNumberOfElementsByLine),i={...st};i.title.text=t.chartName,i.series.max=o,i.series.data=n,i.series.detail.fontSize=t.fontSize,i.series.detail.formatter=t=>(0,it.addPointInteger)(Math.round(t)),i.series.axisTick.splitNumber=5,i.color=a.slice(),i.series.axisLabel.formatter=t=>(0,it.addPointInteger)(Math.round(t)),i.tooltip.formatter=t=>function(t){let e=`${t.name} : `;return e+=`<span style="font-weight:bold">${(0,it.addPointInteger)(Math.round(t.value))}</span>`,t.marker+e}(t),(0,it.initChart)(t.idChart,i)}}({idChart:"chartUsuarisTotalsGaugeYear",idNoData:"no_dataUsuarisTotalsGaugeYear",chartName:`${ot[at].get("chartUsuarisTotalsGaugeYear")}`,fontSize:12,paramOffsetCenterTitle:15,paramOffsetCenterDetail:30,paramOffsetLabel:-100,paramCalculatedOffset:50,paramNumberOfElementsByLine:5},e)}function ct(t,e){const r=Dashboards.getParameterValue("filterEMT1Param");if(r.length>0){const a=et(e.resultset,r);function o(){C("chartUsuarisTitolGaugeYear","no_dataUsuarisTitolGaugeYear",a,"ÚS D'EMT. USUARIS PER TÍTOL: ANY")}r.sort(((t,e)=>t.localeCompare(e))),0===document.querySelector("#chartUsuarisTitolGaugeYear").childElementCount?document.querySelector("#tabUsuarisPerTitol").addEventListener("click",(()=>{requestAnimationFrame((()=>{o()}))})):o()}}function ut(t,e){const r=Dashboards.getParameterValue("filterEMT2Param"),a=et(e.resultset,r);function o(){C("chartUsuarisLiniaGaugeYear","no_dataUsuarisLiniaGaugeYear",a,"ÚS D'EMT. USUARIS PER LÍNIA: ANY")}a.sort(((t,e)=>Number(t[0])-Number(e[0]))),0===document.querySelector("#chartUsuarisLiniaGaugeYear").childElementCount?document.querySelector("#tabUsuarisPerLinia").addEventListener("click",(()=>{requestAnimationFrame((()=>{o()}))})):o()}function dt(t,e){const r=Dashboards.getParameterValue("filterEMT1Param"),a=et(e.resultset,r);function o(){U("chartUsuarisTitolMesActual","chartUsuarisTitolMesAnterior","no_dataUsuarisTitolMesActual","no_dataUsuarisTitolMesAnterior",a,"ÚS D'EMT. USUARIS PER TÍTOL: EVOLUCIÓ ","ÚS D'EMT. USUARIS PER TÍTOL: EVOLUCIÓ ")}0===document.querySelector("#chartUsuarisTitolMesActual").childElementCount||0===document.querySelector("#chartUsuarisTitolMesAnterior").childElementCount?document.querySelector("#tabUsuarisPerTitol").addEventListener("click",(()=>{requestAnimationFrame((()=>{o()}))})):o()}function ft(t,e){const r=Dashboards.getParameterValue("filterEMT2Param"),a=et(e.resultset,r);function o(){U("chartUsuarisLiniaMesActual","chartUsuarisLiniaMesAnterior","no_dataUsuarisLiniaMesActual","no_dataUsuarisLiniaMesAnterior",a,"ÚS D'EMT. USUARIS PER LÍNIA: EVOLUCIÓ ","ÚS D'EMT. USUARIS PER LÍNIA: EVOLUCIÓ ")}a.sort(((t,e)=>Number(t[0])-Number(e[0]))),0===document.querySelector("#chartUsuarisLiniaMesActual").childElementCount||0===document.querySelector("#chartUsuarisLiniaMesAnterior").childElementCount?document.querySelector("#tabUsuarisPerLinia").addEventListener("click",(()=>{requestAnimationFrame((()=>{o()}))})):o()}const ht={title:{text:"",left:"center",top:"top",padding:10,textStyle:{fontSize:12,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},series:{type:"gauge",startAngle:-180,endAngle:0,splitNumber:2,max:void 0,itemStyle:{color:"#FFAB91"},progress:{show:!0,width:30},pointer:{show:!1},axisLine:{lineStyle:{width:30}},axisTick:{distance:5,splitNumber:10,lineStyle:{width:2,color:"#999"}},splitLine:{distance:10,length:14,lineStyle:{width:3,color:"#999"}},axisLabel:{fontFamily:"Montserrat",color:"#666",fontSize:14,show:!0,distance:40,formatter:t=>(0,it.addPointInteger)(Math.round(t))},anchor:{show:!1},title:{show:!1},detail:{valueAnimation:!0,width:"60%",lineHeight:40,borderRadius:8,offsetCenter:[0,"0%"],fontSize:17,fontWeight:"bolder",formatter:void 0,fontFamily:"Montserrat",color:"inherit"},data:void 0},toolbox:{show:!0,feature:{saveAsImage:{title:"Desar"}},right:27,top:40}};function mt(t,e){const r=e.resultset;if(0===e.length)(0,it.printNoDataChart)(`#${t.idChart}`,`#${t.idNoData}`);else{(0,it.printDataChart)(`#${t.idNoData}`,`#${t.idChart}`);const e={type:0,time:1,data:2},[a,o,n]=(0,it.configureDataGaugeMonthCommon)(t.idChart,r,e,0),i={...ht};i.title.text=t.chartName,i.series.max=a,i.series.detail.formatter=o,i.series.data=n,(0,it.initChart)(t.idChart,i)}}function pt(t,e){const r={idChart:"chartUsuarisTotalsGaugeMonth",idNoData:"no_dataUsuarisTotalsGaugeMonth",chartName:`${nt[at].get("chartUsuarisTotalsGaugeMonth")}`},a={idChart:"chartUsuarisTotalsGaugeLastMonth",idNoData:"no_dataUsuarisTotalsGaugeLastMonth",chartName:`${nt[at].get("chartUsuarisTotalsGaugeLastMonth")}`};mt(r,e),mt(a,e)}function gt(t,e){if(0===e.resultset.length)T("#chartUsuarisTotalsStackedBarYears","#no_dataUsuarisTotalsStackedBarYears");else{E("#no_dataUsuarisTotalsStackedBarYears","#chartUsuarisTotalsStackedBarYears");const t={title:{text:"ÚS D'EMT. USUARIS TOTALS: DESGLOSSAMENT DELS ÚLTIMS ANYS"},xAxis:{name:"\n\n\n\nViatges"}};(0,it.initStackedBarChartMonthSeries)("chartUsuarisTotalsStackedBarYears",e.resultset,t)}}function yt(t,e){!function(t,e,r,a,o,n,i,s,l=!1,c=!1,u,f=!0,h=d.slice(),m=!1,p,y){const b=t.resultset||t;if(0===b.length)T(`#${n}`,`#${i}`),s&&T(`#${s}`,`#${i}`);else{E(`#${i}`,`#${n}`),s&&E(`#${i}`,`#${s}`);const t=function(t,e,r=!1){const{resultset:a}={resultset:t},o=new Set,n=new Set,i=e,s=a.map((([t,e,a])=>{const i=r?Math.round(a):a;return o.add(t),n.add(e),{day:e,type:t,value:i}})),l=Array.from(n.values()),c=Array.from(o.values());return c.sort(((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase(),"es",{ignorePunctuation:!0}))),[c.map((t=>{const e=s.filter((e=>e.type===t)).map((({day:e,value:r})=>[e,t,r])),r=l.map((t=>{const r=e.find((([e])=>e===t));return r?r[2]:null}));return{name:t,type:"line",symbol:"circle",color:i.shift(),symbolSize:6,smooth:!1,data:r}})),n,c]}(b,h,m),d=t[0],M=t[1],T=t[2],A=f?T:null,v=c?(S=M,Array.from(S.values()).map((t=>{const[e,r]=t.split("/");return function(t){const e=t.slice(0,2);return`${t.slice(3,5)}/${e}`}(t)}))):Array.from(M.values());void 0===u&&(u=l?g(M.size):I(M.size)),P(n,D(d,A,v,o,u,e,r,void 0,a,void 0,void 0,void 0,p,y))}var S}(e,!0,1,"ÚS D'EMT: USUARIS TOTALS","Viatges","chartUsuarisTotals","no_dataUsuarisTotals",void 0,void 0,void 0,void 0,!1)}function bt(){tt(),$("#idFieldsFilterEmtUsLinea").hide(),$("#idFieldsFilterEmtUsTitol").hide()}function St(t,e){X("chartUsuarisPerTitol","no_dataUsuarisPerTitol",e.resultset,"ÚS D'EMT: USUARIS PER TÍTOL",!1)}function Mt(){Q(),$("#idAllFilterFields").show(),$("#idFieldsFilterEmtUsLinea").hide(),$("#idFieldsFilterEmtUsTitol").show()}function Tt(t,e){K("chartUsuarisPerLinea","no_dataUsuarisPerLinea",e.resultset,"ÚS D'EMT: USUARIS PER LÍNIA",!1)}function Et(){tt(),$("#idAllFilterFields").show(),$("#idFieldsFilterEmtUsLinea").show(),$("#idFieldsFilterEmtUsTitol").hide()}function At(t,e){X("chartUsuarisTitolLineMonth","no_dataUsuarisTitolLineMonth",e.resultset,"ÚS D'EMT. USUARIS PER TÍTOL: HISTÒRIC MENSUAL",!0)}function vt(t,e){K("chartUsuarisLiniaLineMonth","no_dataUsuarisLiniaLineMonth",e.resultset,"ÚS D'EMT. USUARIS PER LÍNIA: HISTÒRIC MENSUAL",!0)}function $t(t,e){const r=Dashboards.getParameterValue("filterEMT1Param");L("chartUsuarisTitolBar","no_dataUsuarisTitolBar",et(e.resultset,r),"Viatges","ÚS D'EMT. USUARIS PER TÍTOL: HISTÒRIC ANUAL","")}function xt(t,e){const r=Dashboards.getParameterValue("filterEMT2Param");L("chartUsuarisLiniaBar","no_dataUsuarisLiniaBar",et(e.resultset,r),"Viatges","ÚS D'EMT. USUARIS PER LÍNIA: HISTÒRIC ANUAL","")}})(),a})()));
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.initialCalls=e():t.initialCalls=e()}(self,(()=>(()=>{var t={2725:t=>{var e;self,e=()=>(()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{addPointInteger:()=>d,buildCamarasTrafico:()=>dt,buildTableCalidadAire:()=>it,calculateMaxYAxis:()=>v,calculatePentahoPath:()=>lt,calculateXAxisStart:()=>S,checkAllGroupsCollapsed:()=>nt,configureDataBar:()=>F,configureDataGaugeCommon:()=>D,configureDataGaugeMonthCommon:()=>$,configureDataLine:()=>E,configureDataValidate:()=>Et,configureLinesChartValidates:()=>Ft,convertToLanguageSelectorDateRange:()=>X,convertToTableTreeView:()=>ot,downloadCSVTable:()=>rt,downloadPDFTable:()=>at,formatCellMultiplesLines:()=>Q,formatDayMonthYear:()=>i,formatMilMillionEuros:()=>M,formatMonthAnyo:()=>a,formatName:()=>p,formatNameHeaderColumn:()=>K,formatRoundTooltip:()=>A,formatShortMonthShortYear:()=>s,formatShortMonthYear:()=>l,formatToMillions:()=>f,formatToTons:()=>m,formatTooltip:()=>b,formatTooltipPie:()=>x,formatTrimestre:()=>c,getEnvironment:()=>st,getMaxFieldNumberFromData:()=>I,getMonth:()=>n,getMonthList:()=>u,getSelectCommonOptions:()=>J,getSelectTwoColumnsOptions:()=>V,initBarChart:()=>gt,initBarChartComparationMonth:()=>Mt,initChart:()=>h,initStackedBarChart:()=>pt,initStackedBarChartMonthSeries:()=>yt,initTable:()=>Z,initValueDefaultDate:()=>U,initialCalls:()=>ut,loadIframeOnClickEvent:()=>Ct,printDataChart:()=>g,printDataInHTMLElements:()=>T,printNoDataChart:()=>y,resetFilter:()=>W,resetFilterDate:()=>H,resetFilterDates:()=>G,resultsetWithFields:()=>N,selectConfigDatasource:()=>j,selectFilterAll:()=>R,selectValueDefaultInFilter:()=>Y,splitDataset:()=>O,traverseRows:()=>et,updateObject:()=>L,updateStackedBarOptions:()=>ht});const o={"01":"Enero","02":"Febrero","03":"Marzo","04":"Abril","05":"Mayo","06":"Junio","07":"Julio","08":"Agosto","09":"Septiembre",10:"Octubre",11:"Noviembre",12:"Diciembre"};function n(t){return{1:"Gen",2:"Feb",3:"Mar",4:"Abr",5:"Mai",6:"Jun",7:"Jul",8:"Ago",9:"Sep",10:"Oct",11:"Nov",12:"Des"}[parseInt(t.toString(),10)]}function r(t){return[t.substring(0,4),o[t.substring(4,6)]]}function a(t){const[e,o]=r(t);return`${o} ${e}`}function i(t){const[e,n,r]=function(t){return[t.substring(0,4),o[t.substring(4,6)],t.substring(6,8)]}(t);return`${r} ${n} ${e}`}function l(t){const[e,o]=r(t);return`${o.substring(0,3)} ${e}`}function s(t){const[e,o]=r(t);return`${o.substring(0,3)} '${e.substring(2,4)}`}function c(t){const[e,o]=t.split("-");return`${parseFloat(o)/3}T ${e}`}function u(t,e){const o=t[e];return Array.from(o.values()).map((t=>t.slice(0,3)))}function d(t,e=2){let o=navigator.language||navigator.userLanguage;o=o.length<=2?`${o}-${o.toUpperCase()}`:o;const n={minimumFractionDigits:0,maximumFractionDigits:e};return"es-ES"===o?t.toLocaleString("de-DE",n):t.toLocaleString(o,n)}function f(t){const e=1e6;return t>=e?t/e+"M":t.toString()}function m(t){return t>=1e3?t/1e3+" Tn":t.toString()}function p(t,e=29){if(t.length>=e){const o=t.split(" ");let n="",r="";return o.forEach((t=>{`${n} ${t}`.length<=e?n+=(n?" ":"")+t:(r+=`${n}\n`,n=t)})),r+=n,r}return t}function h(t,e){const o=document.getElementById(t);if(!o)return console.error(`No se pudo encontrar el elemento con ID ${t}.`),null;const n=echarts.init(o);n.setOption(e,!0),window.addEventListener("resize",(()=>{null!=n&&void 0!==n&&n.resize()}));const r=document.getElementById("main-content");return r&&(r.addEventListener("shown.bs.collapse",(()=>{n.resize()})),r.addEventListener("hidden.bs.collapse",(()=>{n.resize()}))),n}function y(t,e){const o=t?document.querySelector(t):null,n=e?document.querySelector(e):null;o&&(o.hidden=!0),n&&(n.style.background="url('./build/images/nodata1.png') no-repeat top center",n.hidden=!1)}function g(t,e){const o=t?document.querySelector(t):null,n=e?document.querySelector(e):null;o&&(o.hidden=!0),n&&(n.style.background="#ffffff",n.hidden=!1)}function b(t,e=!1,o=!0,n=""){let r=`<p style="font-weight: 500;color: #565656;">${t[0].name}</p>`;return t.forEach((t=>{const a=e?Math.round(t.data):t.data,i=o?`<div style="font-weight: 400;color: #666;">${l=t.color,`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;font-weight: 500;background-color:${l}"></span>`} ${t.seriesName}: \n <span style="float: right; margin-left:20px;font-weight: 600;color: #565656;">\n ${t.data?`${d(a)} ${n}`:"-"}\n </span>\n </div>`:`<div>\n <span style="font-weight: 600;color: #565656;">${t.data?`${d(a)} ${n}`:"-"}\n </span>\n </div>`;var l;r+=i})),r}function S(t){return 100*(t-120)/t}function v(t,e){const o=Math.max(...t);return o+(e-o%e)}function x(t,e=!1){const o=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:${t.color}"></span>`,n=e?`${t.percent}%`:d(t.value);return`<div> ${o} ${t.name} <span style="float: right; margin-left:20px;font-weight: 600;color: #333;"> ${n} </span></div>`}function A(t,e){let o=`${t.name} : `;return o+=`<span style="font-weight:500">${d(Math.round(t.value))}</span>`,e&&(o+=`<span> (${t.percent}%)</span>`),t.marker+o}function M(t){const e=1e6,o=Number(t);return o>=0&&o<e?`${d(o)} €`:o>=e?`${d(o/e)} M €`:"-"}function C(t,e,o=1){const n=Math.max(...t.map((t=>t[e])))*o;return 5e3*Math.ceil(n/5e3)}function D(t,e,o,n=30,r=15,a=30,i=-70,l=70,s=3){const c=C(t,e.data,1.1),u=l,f=o.slice(),m=[];let h=r,y=a,g=i;for(let o=0;o<t.length;o+=1)m.push({value:t[o][e.data],name:p(String(t[o][e.type]).replace(/\[.*?\]/g,"")),color:f.shift(),title:{offsetCenter:[`${String(g)}%`,`${String(h)}%`],fontFamily:"Montserrat",fontSize:n},detail:{offsetCenter:[`${String(g)}%`,`${String(y)}%`],fontFamily:"Montserrat",width:"33%",formatter:t=>d(Math.round(t))}}),g+=u,(o+1)%s==0&&(y+=a,h+=2*r,g=i);return[c,m]}function $(t,e,o,r=0){return[C(e,o.data,1),t=>function(t,e,o){const r=d(Math.round(e)),a=n(t[o][0]),i=t[o][1],l=`\n${a} ${i} : ${r}`,s=`${r}\n${a} ${i}`;return window.innerWidth<=1710?l:s}(e,t,r),[{value:e[r][o.data]}]]}function w(t,e){const{resultset:o}={resultset:t},n=new Set,r=new Set,a=o.map((([t,o,a])=>{const i=e?Math.round(a):a;return n.add(t),r.add(o),{day:o,type:t,value:i}})),i=Array.from(r.values()),l=Array.from(n.values());return l.sort(((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase(),"es",{ignorePunctuation:!0}))),[l.map((t=>{const e=a.filter((e=>e.type===t)).map((({day:e,value:o})=>[e,t,o])),o=i.map((t=>{const o=e.find((([e])=>e===t));return o?o[2]:null}));return{name:t,data:o}})),l,r]}function E(t,e=[],o=!1){const[n,r,a]=w(t,o);return n.forEach((t=>{t.type="line",t.symbol="circle",t.symbolSize=6,t.smooth=.1,e.length>0&&(t.color=e.shift())})),[n,a,r]}function F(t,e,o=!1){const[n,r,a]=w(t,o);return n.forEach((t=>{t.type="bar",t.color=e.shift(),t.smooth=!1})),[n,a,r]}function N(t){const{resultset:e,metadata:o}=t,n=[];return e.forEach((t=>{const e={};t.forEach(((t,n)=>{e[o[n].colName]=t})),n.push(e)})),n}function L(t,e){const o=t;return Object.keys(e).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&("series"===n?o[n]=e[n].map(((e,o)=>({...t[n][o],...e}))):"object"!=typeof e[n]||Array.isArray(e[n])?o[n]=e[n]:o[n]=L(t[n]||{},e[n]))})),t}function T(t,e){t.forEach((t=>{t.id in e&&Object.entries(e[t.id]).forEach((o=>{const n=o[0],r=o[1];"object"==typeof r?r.className?document.querySelector(r.className).className=t[n]:r.element&&r.format&&(document.querySelector(r.element).textContent=e[t.id][n].format(t[n])):document.querySelector(r).textContent=t[n]}))}))}function I(t,e){const o=N(t),n=[];let r=null;return o.forEach((t=>{const o=t[e];"number"!=typeof o||Number.isNaN(o)||n.push(o)})),n.length>0&&(r=Math.max(...n)),r}function O(t,e=!0){const o={Cont:[],Mob:[]};return t.forEach((t=>{"is-res-001-kgs-contenidors"===t[0]&&"total"===t[1]&&(e?o.Cont.push([t[3],t[4],t[2]]):o.Cont.push([t[3],t[2]])),"Mobles"===t[1]&&(e?o.Mob.push([t[3],t[4],t[2]]):o.Mob.push([t[3],t[2]]))})),o}const z=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],P=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],k=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],B=["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],q=["Do","Lu","Ma","Mi","Ju","Vi","Sá"];function R(t){const e=t.resultset.map((t=>t[0]));return this.dashboard.fireChange(this.parameter,e),t}function _(t){for(const e of t)if(Array.isArray(e)){if(!_(e))return!1}else if("All"!==e)return!1;return!0}function j(t,e,o,n){return _(e)?(t.queryDefinition.dataAccessId=o,t.dashboard.setParameter(t.parameter,["All"])):t.queryDefinition.dataAccessId=n,!0}function W(t){t.forEach((t=>{Dashboards.fireChange(t,["All"])}))}function J(){return{input:{root:{id:"All"},indexes:{id:0,label:0}},component:{Root:{strings:{isDisabled:"No disponible",allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}},Group:{Strings:{allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}}}}}function V(){const t={input:{root:{id:"All"},indexes:{id:0,label:0}},component:{Root:{strings:{isDisabled:"No disponible",allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}},Group:{Strings:{allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}}}};return t.input.indexes.id=1,t.input.indexes.label=0,t}function G(t,e,o,n){const r=Dashboards.getParameterValue(o),a=Dashboards.getParameterValue(n);return Dashboards.fireChange(t,[r]),Dashboards.fireChange(e,[a]),!0}function H(t,e){const o=Dashboards.getParameterValue(e);return Dashboards.fireChange(t,[o]),!0}function U(t,e){Dashboards.fireChange(e,t.resultset[0][0])}function Y(t,e){const o=Dashboards.getParameterValue(e),n=t.parameter;t.dashboard.setParameter(n,[o])}function X(t){t.regional.es={monthNames:z,abbreviatedMonthNames:P,dayNames:k,abbreviatedDayNames:B,dayNamesMin:q,weekHeader:"Sm",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},t.setDefaults(t.regional.es)}function Z(t,e){const o=document.getElementById(t);return o?new Tabulator(o,e):(console.error(`No se pudo encontrar el elemento con ID ${t}.`),null)}function K(t,e){let o=t.getValue();return o.length>e&&(o=`${o.substr(0,e)}<br>${o.substr(e)}`),o}function Q(t,e){const o=t.getValue().split(" ");let n="",r="";return o.forEach((t=>{(r+t).length<=e?r+=`${t} `:(n+=`${r}<br>`,r=`${t} `)})),n+=`${r}<br>`,n}function tt(t,e){"expand"===e?t.treeExpand():t.treeCollapse();const o=t.getTreeChildren();o.length>0&&o.forEach((t=>{t.getTreeChildren().length>0&&tt(t,e)}))}function et(t,e){t.getRows().forEach((t=>{t.getTreeChildren().length>0&&tt(t,e)}))}function ot(t,e,o,n){const r=[];for(const a in t)if(t.hasOwnProperty(a)){const i=t[a],l={[e]:i[0],_children:[]};i.shift(),i.forEach(((t,r)=>{const a={[e]:o[r],[n]:t};l._children.push(a)})),r.push(l)}return r}function nt(t){let e=!0;return t.getGroups().forEach((t=>{t._group.visible&&(e=!1)})),e}function rt(t,e,o){const n=document.getElementById(o),r=n.cloneNode(!0);n.parentNode.replaceChild(r,n),r.addEventListener("click",(()=>{t.download("csv",`${e}.csv`,{delimiter:";"})}))}function at(t,e,o){const n=document.getElementById(o),r=n.cloneNode(!0);n.parentNode.replaceChild(r,n),r.addEventListener("click",(()=>{t.download("pdf",`${e}.pdf`,{title:e,rowCalcStyles:{fontSize:8,fontStyle:"bold"},autoTable:{styles:{fontSize:8}}})}))}function it(t){const e=[],o=[100,200,350,500,750,751],n=[40,90,120,230,340,341],r=[50,100,130,240,380,381],a=[20,40,50,100,150,151],i=[10,20,25,50,75,76],l={0:"b",1:"a",2:"d",3:"m",4:"mm",5:"em",6:"",7:"nd"};function s(t,e,o){const n=document.createElement("td");if(n.setAttribute("id",t),null!=e){n.innerHTML=e;const t=function(t,e){let o;return void 0===e?o=6:"ND"===e?o=7:(o=5,t.forEach(((t,n)=>{e<=t&&5===o&&(o=n)}))),l[o]}(o,e);n.classList.add(t)}return n}return t.forEach((t=>{const l=t;"noData"===l.operationalstatus&&(l.so2value="ND",l.no2value="ND",l.o3value="ND",l.pm10value="ND",l.pm25value="ND"),"A09_CABANYAL_60m"===l.entityid&&(l.pm10value=void 0,l.pm25value=void 0);const c=document.createElement("tr"),u=document.createElement("td");u.innerHTML=l.address,c.appendChild(u),c.appendChild(s(`${l.entityid}_so2`,l.so2value,o)),c.appendChild(s(`${l.entityid}_no2`,l.no2value,n)),c.appendChild(s(`${l.entityid}_o3`,l.o3value,r)),c.appendChild(s(`${l.entityid}_pm10`,l.pm10value,a)),c.appendChild(s(`${l.entityid}_pm25`,l.pm25value,i)),e.push(c)})),e}function lt(t){document.location=`${document.documentURI.split("%3A")[0]}%3A${document.documentURI.split("%3A")[1]}%3A${document.documentURI.split("%3A")[2]}%3A${document.documentURI.split("%3A")[3]}%3A${t}`}function st(){const t=window.location.href;let e="";return e=t.includes("localhost")?"local":t.includes("sc_valencia_pre")?"PRE":"PRO",e}function ct(t,e){document.querySelectorAll(`[${t}]`).forEach((o=>{!function(t,e,o){const n=e;if(t){const e=new XMLHttpRequest;e.onreadystatechange=function(){4===this.readyState&&(200===this.status&&(n.innerHTML=this.responseText,o&&o()),404===this.status&&(n.innerHTML="No se ha podido cargar correctamente."))},e.open("GET",t,!0),e.send()}}(o.getAttribute(t),o,e)}))}function ut(t){ct("include-html-cabecera",(function(){!function(){const t=st();"PRO"!==t&&(document.title+=` (${t})`)}(),function(){const t=st();"PRO"!==t&&(document.querySelector("nav").querySelectorAll("span")[1].textContent+=` (${t})`)}()})),ct("include-html-menu"),ct("include-html-main-container",(function(){(function(){const t=document.querySelector("body");t.classList.remove("inicio"),t.classList.add(document.documentURI.split("%3A")[4].match(/(.*?).wcdf/)[1])})(),t&&t()})),ct("include-html-copyright")}function dt(t,e,o,n,r,a){let i=!1,l=!1;const s=document.querySelector(t),c=document.querySelector(e),u=()=>{"undefined"!=typeof Liferay&&"ca-ES"===Liferay.ThemeDisplay.getBCP47LanguageId()?(s&&s.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?camara=1&lang=cas"),c&&c.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?lang=cas")):(s&&s.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?camara=1&lang=val"),c&&c.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?lang=val"))};function d(t=!0){const e=document.querySelector(o);t?(s&&(s.src="about:blank"),c&&(c.src="about:blank"),e.classList.add("blur"),l=!0):(e.classList.remove("blur"),u(),l=!1)}const f=t=>{new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(l||u(),i||(i=!0,window.setTimeout(d,a)))}))})).observe(t)};!function(){const{userAgent:t}=navigator;return/iPad|iPhone|iPod|Macintosh/.test(t)&&!window.MSStream}()?(s&&(s.setAttribute("sandbox","allow-scripts"),f(s)),c&&(c.setAttribute("sandbox","allow-scripts"),f(c)),document.querySelector(r).addEventListener("click",(()=>{d(!1),window.setTimeout(d,a)}))):document.querySelectorAll(n)[0].style.display="none"}const ft={grid:{containLabel:!0},title:{left:"center",top:"0",textStyle:{fontSize:15,fontFamily:"Montserrat",fontWeight:500,color:"#666"}},legend:{orient:"horizontal",bottom:"0",left:"center",width:"100%",textStyle:{fontSize:11,fontFamily:"Montserrat",fontWeight:400,color:"#666"}},toolbox:{show:!0,right:"0",top:"0",feature:{restore:{textStyle:{fontSize:6,fontFamily:"Montserrat",fontWeight:300}},saveAsImage:{textStyle:{fontSize:6,fontFamily:"Montserrat",fontWeight:300}}},emphasis:{iconStyle:{borderColor:"#ffcd00",textFill:"#666"}}},tooltip:{textStyle:{fontFamily:"Montserrat",fontSize:12}},xAxis:[{type:"category",axisLabel:{show:!0,interval:0,textStyle:{fontFamily:"Montserrat",fontSize:11}},data:[]}],yAxis:[{type:"value",alignTicks:!0,position:"right",axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400},formatter:t=>`${t}%`}},{type:"value",position:"left",axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400},formatter:t=>`${f(t)}€`}}]},mt=(t,e)=>{e.sort(((t,e)=>parseInt(t.anyo)-parseInt(e.anyo)));const o={};e.forEach((e=>{const n=e[1],r=e[0];r!==t.seriesName||o[n]||(o[n]=0),r===t.seriesName&&(o[n]+=e[2])}));let n=`<p>${t.seriesName}</p>`;for(const[e,r]of Object.entries(o))n+=`<div>${t.marker} ${e}: <span style="float: right; margin-left:20px;font-weight: 600;">${d(r)}</span></div>`;return n};function pt(t,e,o=void 0,n=void 0){const r=null===n?void 0:n,a=new Set(e.map((t=>t[1])));let i;const l={title:{text:"SIN TITULO",left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},tooltip:{axisPointer:{type:"shadow"},trigger:"item",formatter:t=>mt(t,e),textStyle:{fontFamily:"Montserrat"},position(t,e,o,n,r){const a={},i=r.contentSize[1]/2,l=r.viewSize[1],s=t[1];return s<i?a.top=10:s+i>l?a.bottom=10:a.top=s-i,t[0]<r.viewSize[0]/2?a.left=t[0]+20:a.right=r.viewSize[0]-t[0]+20,a}},legend:{padding:40,textStyle:{fontFamily:"Montserrat"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",splitNumber:10,name:"SIN NOMBRE",nameLocation:"start",nameTextStyle:{fontWeight:"bold",fontFamily:"Montserrat",color:"#666",padding:-40},axisLabel:{margin:5,textStyle:{fontFamily:"Montserrat"},formatter:t=>d(t)},splitLine:{lineStyle:{color:"#DDD"}}},yAxis:{type:"category",data:Array.from(a),axisLabel:{textStyle:{fontFamily:"Montserrat"}}},series:(()=>{const t={name:"SIN NOMBRE",type:"bar",stack:"total",label:{show:!0,fontFamily:"Montserrat",fontSize:10,formatter:t=>d(Math.round(t.value))},itemStyle:void 0,emphasis:{focus:"series"},data:void 0};r&&r.itemStyle&&Array.isArray(r.itemStyle.borderColor)&&(i=[...r.itemStyle.borderColor],delete r.itemStyle.borderColor);const o=function(t){return t.reduce(((t,e)=>{const o=e[0];return t[o]||(t[o]=[]),t[o].push(e),t}),{})}(e),n=Object.keys(o);a.forEach((t=>{n.forEach((e=>{void 0===o[e].find((e=>e[1]===t))&&(o[e].push([o[e][0][0],t,void 0]),o[e].sort())}))}));const l=[];return Object.keys(o).forEach((e=>{i&&(t.itemStyle={borderColor:i.shift()}),t.name=e,t.data=o[e].map((t=>t[2]));let n={};n=void 0!==r?L(t,r):t,l.push({...n})})),l})(),toolbox:{show:!0,feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:50}};let s={};s=void 0!==o?L(l,o):l,h(t,s)}function ht(t){let e={};return e=L(t,ft),e}function yt(t,e,o={},r={}){let a={};a=L(o,{color:["#81B1CC","#ABD9EA","#C2EEF9","#F9E2AF","#F9C780","#FDAE61","#F46D43","#FDAE61","#F9E2AF","#C2EEF9","#ABD9EA","#81B1CC"],yAxis:{data:function(){const t=new Set;return e.forEach((e=>{t.add(e[1])})),Array.from(t).sort(((t,e)=>t-e))}()}});const i={itemStyle:{borderWidth:2,borderColor:["#448DAD","#89CADB","#A0DEE8","#F4D28C","#F4B569","#F79646","#F25930","#F79646","#F4D28C","#A0DEE8","#89CADB","#448DAD"]}},l=null===r?i:L(r,i),s=e;s.forEach(((t,e)=>{s[e][0]=n(t[0])})),pt(t,s,a,l)}function gt(t,e=void 0){const o={title:{text:"SIN TITULO",left:"center",top:"top",padding:50,textStyle:{fontSize:14,fontFamily:"Montserrat",fontWeight:400,color:"#333"}},legend:{show:!1},grid:{top:"30%",bottom:"5%",left:"8%",right:"8%"},xAxis:{type:"value",show:!1},yAxis:{show:!1,type:"category"},tooltip:{show:!0,textStyle:{fontFamily:"Montserrat",fontWeight:"600"},appendToBody:!0,formatter:t=>A(t,!1)},series:[{type:"bar",showBackground:!0}]};let n={};n=void 0!==e?L(o,e):o,h(t,n)}const bt="es_ES",St={es_ES:new Map([["1","Enero"],["2","Febrero"],["3","Marzo"],["4","Abril"],["5","Mayo"],["6","Junio"],["7","Julio"],["8","Agosto"],["9","Septiembre"],["10","Octubre"],["11","Noviembre"],["12","Diciembre"]]),ca_ES:new Map([["1","Gener"],["2","Febrer"],["3","Març"],["4","Abril"],["5","Maig"],["6","Juny"],["7","Juliol"],["8","Agost"],["9","Setembre"],["10","Octubre"],["11","Novembre"],["12","Desembre"]])};function vt(t){return Math.max(...t.map((t=>Number(t[0]))))}function xt(t){const e=t.filter((e=>Number(e[0])===vt(t))),o=Array.from({length:12},(()=>0));return e.forEach((([t,e,n])=>{const r=parseInt(e,10)-1;o[r]=n})),o}function At(t){const e=t.filter((e=>Number(e[0])===vt(t)-1)),o=Array.from({length:12},(()=>0));return e.forEach((([t,e,n])=>{const r=parseInt(e,10)-1;o[r]=n})),o}function Mt(t,e,o=void 0){const n=vt(e).toString(),r=(vt(e)-1).toString();gt(t,L({title:{left:"center",top:"-12%",textStyle:{fontSize:15,fontFamily:"Montserrat"}},legend:{top:"10%",show:!0,data:[r,n],textStyle:{fontFamily:"Montserrat"}},grid:{bottom:"8%",top:"20%",right:"2%"},xAxis:[{type:"category",data:u(St,bt),interval:0,margin:10,axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400}}}],yAxis:[{type:"value",axisLabel:{formatter:t=>t.toLocaleString("es-ES"),textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400}}}],series:[{name:r,type:"bar",data:At(e)},{name:n,type:"bar",barGap:0,data:xt(e)}]},o))}function Ct(t,e,o){const n=document.querySelector(e),r=document.querySelector(t);let a=!1;r.addEventListener("click",(()=>{!1===a&&(a=!0,n.setAttribute("src","about:blank"),n.setAttribute("src",o),n.onload=()=>{a=!1})})),r.disabled=!1}const Dt="id",$t="fecha",wt="value";function Et(t,e,o,n){const[r,a]=function(t,e,o){const n=[],r=[];return t.forEach((t=>{e.includes(`${t[Dt]}`)?n.push(`${t[$t]}`):o.includes(`${t[Dt]}`)&&r.push(`${t[$t]}`)})),[n.map((t=>[t,0])),r.map((t=>[t,0]))]}(t,o,n);let i="Datos sin validar";0===a.length&&(i="");const l={name:"Datos validados",type:"line",data:[...r,a[0]],lineStyle:{color:"#00A9A0",width:4},showSymbol:!1,tooltip:{show:!1}};let s="",c="";if(0===a.length){const e=t[t.length-1].fecha;s=e,c=e}else s=a[0][0],c=a[a.length-1][0];return[...e,l,{name:"Datos NO validados",type:"line",data:a,lineStyle:{color:"#80D4CF",width:4},showSymbol:!1,tooltip:{show:!1},markArea:{silent:!0,itemStyle:{opacity:.6,color:"#eee"},tooltip:{show:!1},label:{color:"#333",fontStyle:"normal",fontWeight:"400",fontFamily:"Montserrat",fontSize:11},data:[[{name:i,xAxis:s,yAxis:0},{name:"end",xAxis:c,yAxis:Math.max(...t.filter((t=>null!==t[wt])).map((t=>parseInt(`${t[wt]}`,10))))}]]}}]}function Ft(t,e,o=void 0){h(t,L({grid:{left:"2.5%",right:"5%",bottom:"70",top:"150",containLabel:!0},title:{left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},legend:{type:"plain",top:"50",width:"98%",textStyle:{fontFamily:"Montserrat"}},tooltip:{trigger:"axis",show:!0,formatter:t=>b(t),textStyle:{fontFamily:"Montserrat"}},xAxis:{type:"category",boundaryGap:!1,splitLine:{show:!1},axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},yAxis:{type:"value",nameLocation:"end",nameGap:"0",nameTextStyle:{fontFamily:"Montserrat",fontWeight:"500",padding:[-25,0,0,-48],margin:0,align:"left",verticalAlign:"top",width:"auto"},scale:!0,splitNumber:"6",axisLabel:{margin:10,textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},dataZoom:{end:100,borderColor:"#eee",fillerColor:"rgba(0,0,0,.05)",textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#333",textBorderColor:"#fff",textBorderWidth:3,fontWeight:"600"},selectedDataBackground:{lineStyle:{color:"#333"},areaStyle:{color:"#ffcd00"}},dataBackground:{backgroundColor:"rgba(0,0,0,1)",lineStyle:{color:"#333"},areaStyle:{color:"rgba(0,0,0,0.5)"}},handleStyle:{color:"rgba(0,0,0,0.2)"},moveHandleStyle:{color:"rgba(0,0,0,0.3)"},emphasis:{handleStyle:{color:"rgba(255,205,0,1)"},moveHandleStyle:{color:"rgba(255,205,0,1)"}}},toolbox:{feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:"1%",top:"0%"},series:e},o))}return e})(),t.exports=e()}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,o),a.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";o.r(n),o.d(n,{calculatePentahoPath:()=>t.calculatePentahoPath,initialCalls:()=>t.initialCalls});var t=o(2725)})(),n})()));