PageSourceSearch

https://www.portafolio.co/assets/home.bundle.js?1790266174

js portafolio.co collected 2026-10-01 08:44:46 UTC 357,611 bytes, 2 lines download raw bytes

1/*! For license information please see home.bundle.js.LICENSE.txt */
2(()=>{var t={404:t=>{t.exports=function(t){function e(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function n(t,e){return t>>>e|t<<32-e}function i(t,e){return t>>>e}function r(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function a(t){return n(t,2)^n(t,13)^n(t,22)}function s(t){return n(t,6)^n(t,11)^n(t,25)}function c(t){return n(t,7)^n(t,18)^i(t,3)}return function(t){for(var e="0123456789abcdef",n="",i=0;i<4*t.length;i++)n+=e.charAt(t[i>>2]>>8*(3-i%4)+4&15)+e.charAt(t[i>>2]>>8*(3-i%4)&15);return n}(function(t,l){var u,h,d,f,p,g,m,b,y,v,x,_=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],w=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],S=[64];t[l>>5]|=128<<24-l%32,t[15+(l+64>>9<<4)]=l;for(var M=0;M<t.length;M+=16){u=w[0],h=w[1],d=w[2],f=w[3],p=w[4],g=w[5],m=w[6],b=w[7];for(var A=0;A<64;A++)S[A]=A<16?t[A+M]:e(e(e(n(x=S[A-2],17)^n(x,19)^i(x,10),S[A-7]),c(S[A-15])),S[A-16]),y=e(e(e(e(b,s(p)),r(p,g,m)),_[A]),S[A]),v=e(a(u),o(u,h,d)),b=m,m=g,g=p,p=e(f,y),f=d,d=h,h=u,u=e(y,v);w[0]=e(u,w[0]),w[1]=e(h,w[1]),w[2]=e(d,w[2]),w[3]=e(f,w[3]),w[4]=e(p,w[4]),w[5]=e(g,w[5]),w[6]=e(m,w[6]),w[7]=e(b,w[7])}return w}(function(t){for(var e=Array(),n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e}(t)),8*t.length))}},2334:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}t.exports=function(){var t=n(9025),e=t.getCurrencyByCoin,i=t.setJustTime,r=n(6767),a=["Total","Cantidad","Mínimo","Máximo","Minimo","Maximo","Precio","Cierre","Nominal","Apertura","Nomina"],u=["Variación","variacionRel","variacionAbs","Promedio","Variacion"];function h(t){var e=t.isData,n=t.eachElements,i=t.element,r=document.createDocumentFragment();Object.entries(e).forEach((function(t){var e=s(t,2),i=e[0],o=e[1];n(i,o,r)})),i.innerHTML="",i.appendChild(r)}return{renderMonedas:function(t,n){var i=t.ItemHumanReadableName,a=t.currency,c=n.querySelector("#cotizaciones-monedas"),l=n.querySelector("#compra-venta"),u=n.querySelector("#box-variacion-info");n.querySelector(".titulo-grafico").textContent=i,h({isData:Object.fromEntries(Object.entries(t).filter((function(t){var e=s(t,2),n=e[0];return e[1],["variacionRel","Hora","Precio","Mínimo","Máximo"].includes(n)}))),eachElements:function(t,n,i){var r,o=document.createElement("li");t&&"currency"!==t&&(r=n?"variacionRel"===t?"".concat(n,"%"):"".concat("Hora"===t?n:e({handleError:function(t){console.error(t)},handleFinally:function(){},number:n,currency:a||"COP"}).shift()):"N/A",o.innerHTML="<span>".concat("variacionRel"===t?"Variación":t,"</span>").concat(r),i.appendChild(o))},element:c}),h({isData:Object.fromEntries(Object.entries(t).filter((function(t){var e=s(t,2),n=e[0];return e[1],["variacionAbs","variacionRel","Precio"].includes(n)}))),eachElements:function(t,n,i){var r=document.createElement("li");if(t){r.setAttribute("class","variacion-tipo");var o,s,c=!1;"variacionAbs"===t&&(o="Variación Abs"),"variacionRel"===t&&(o="Variación Rel"),"variacionAbs"!==t&&"variacionRel"!==t&&(o=t),n?"variacionRel"===t||"variacionAbs"===t?(n<0&&(c=!0),s="".concat(n,"%")):(s=n,n&&(s=e({handleError:function(t){console.error(t)},handleFinally:function(){},number:s,currency:a||"COP"}).shift())):s="N/A",r.innerHTML='<p class="text-variacion">\n                        '.concat(o,'\n                    </p>\n                    <h3 class="variacion ').concat(c?"text-red":"text-blue",'">\n                        ').concat(s,"\n                    </h3>"),i.appendChild(r)}},element:u}),h({isData:Object.fromEntries(Object.entries(t).filter((function(t){var e=s(t,2),n=e[0];return e[1],["Compra","Venta"].includes(n)}))),eachElements:function(t,n,i){var r=document.createElement("li");t&&(r.setAttribute("class","item-compra-venta"),n&&(n=e({handleError:function(t){console.error(t)},handleFinally:function(){},number:n,currency:a||"COP"})),r.innerHTML="<h4>\n                            ".concat(t.toUpperCase(),"\n                        </h4>\n                        <h3>\n                            ").concat(n||"N/A","\n                        </h3>"),i.appendChild(r))},element:l}),r(o(o({},t.ChartIntra),{},{chart:n.querySelector("canvas"),isCurrency:a}))},renderRenta:function(t,e){r(o(o({},t.ChartInterMonthly),{},{chart:e.querySelector("canvas"),isChart:"ChartInterMonthly"}))},renderMaterias:function(t,e){var n=t.SubCategory,i=document.querySelectorAll(".div-section-materias[data-name]"),a=document.querySelectorAll(".btn-materias");a.length>0&&a.forEach((function(t){t.getAttribute("data-name")!==n&&t.classList.remove("activo"),t.getAttribute("data-name")===n&&t.classList.add("activo")}));var s,u=null;i.length>0&&i.forEach((function(t){t.getAttribute("data-name")===n&&(u=t),t.getAttribute("data-name")!==n&&(t.style.display="none")})),(u=u&&u.querySelectorAll("tr")?function(t){if(Array.isArray(t))return l(t)}(s=u.querySelectorAll("tr"))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||c(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():null)&&(e.style.display="block");var h=t.ItemDetails.Moneda;r(o(o({},t.ChartInterMonthly),{},{chart:e.querySelector("canvas"),isCurrency:h,isChart:"ChartInterMonthly"}))},renderActions:function(t,n){var c=t.name,l=t.currency;n.querySelector(".titulo-grafico").textContent=c,h({isData:Object.fromEntries(Object.entries(t).filter((function(t){var e=s(t,2),n=e[0];return e[1],!["ChartIntra","ChartInterMonthly","ChartInterQuarterly","ChartInterYearly","name","Date","Name","Category","Currency","Moneda","Status","ItemHumanReadableName","Key"].includes(n)}))),eachElements:function(t,n,r){var o=document.createElement("li"),s=n;"Hora"===t&&(s=n?i(n):"N/A"),o.innerHTML="<span>".concat("Total"===t?"Total negociado":t,"</span>").concat(a.includes(t)?e({handleError:function(t){console.log(t)},handleFinally:function(){},number:n,currency:"COP",digits:0}).shift():u.includes(t)?"".concat(n," %"):s),r.appendChild(o)},element:n.querySelector("#cotizaciones")}),r(o(o({},t.ChartIntra),{},{chart:n.querySelector("canvas"),isCurrency:l}))},showChart:function(t){var e=t.querySelectorAll(".contenedor-grafico-global");e.length>0&&e.forEach((function(t,e){0===e&&(t.style.display="flex"),e>0&&(t.style.display="none")}))},renderIndex:function(t,e){r(o(o({},t.ChartInterMonthly),{},{chart:e.querySelector("canvas"),isChart:"ChartInterMonthly"}))},renderActionsHome:function(t,e){var n,i=t.currency,a=e.querySelectorAll(".c-grafica-data__datos__item"),s=null===(n=t.ChartIntra)||void 0===n?void 0:n.Time.at(-1),c={hour:"numeric",minute:"numeric",second:"numeric",timeZone:"America/Bogota",hourCycle:"h23"};a.length>0&&a.forEach((function(e){var n=e.querySelector("span").textContent;e.querySelector("strong").innerText="Hora"===n?new Intl.DateTimeFormat("en-CO",c).format(new Date("".concat(s,"Z"))):t[n]})),r(o(o({},t.ChartIntra),{},{chart:e.querySelector("canvas"),isCurrency:i,isChart:"ChartIntraDollar"}))},renderSearch:function(t,n){var c=t.name,l=t.currency;n.querySelector(".titulo-accion-grafico").textContent=c,h({isData:Object.fromEntries(Object.entries(t).filter((function(t){var e=s(t,2),n=e[0];return e[1],!["ChartIntra","ChartInterMonthly","ChartInterQuarterly","ChartInterYearly","name","Date","Name","Category","Currency","Moneda","Status","ItemHumanReadableName","Key"].includes(n)}))),eachElements:function(t,n,r){var o=document.createElement("li"),s=n;"Hora"===t&&(s=n?i(n):"N/A"),o.innerHTML="<span>".concat("Total"===t?"Total negociado":t,"</span>").concat(a.includes(t)?e({handleError:function(t){console.log(t)},handleFinally:function(){},number:n,currency:"COP",digits:0}).shift():u.includes(t)?"".concat(n," %"):s),r.appendChild(o)},element:n.querySelector("#cotizaciones")});var d=t.ChartIntra?t.ChartIntra:t.ChartInterMonthly;r(o(o({},d),{},{chart:n.querySelector("canvas"),isCurrency:l}))}}}()},2343:t=>{var e;t.exports={toggle:e=function(t){if(t)if(t.getAttribute("data-type")&&"toggle"===t.getAttribute("data-type")){var n=t.parentNode;if(t.hasAttribute("data-parent-third-level")&&(console.log("data-parent-third-level: ",t.hasAttribute("data-parent-third-level")),n=n.parentNode.parentNode),t.hasAttribute("data-parent-second-level")&&(n=n.parentNode),n.classList)n.classList.toggle("open");else{var i=n.className.split(" "),r=i.indexOf("open");r>=0?i.splice(r,1):i.push("open"),n.className=i.join(" ")}n.querySelectorAll('[data-type="fake"]').forEach((function(t){t.classList.remove("open"),n.classList.contains("open")?t.style.display="block":t.style.display="none"}))}else t.classList.contains("c-section")||e(t.parentNode)},getDate:function(){var t=new Date,e=t.getMonth()<10?"0"+(t.getMonth()+1):t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate();return"".concat(t.getFullYear()).concat(e).concat(n)},getCmsCookie:function(t){var e,n,i=document.cookie.split(";");for(key in i){var r=i[key];if(e=r.substr(0,r.indexOf("=")),n=r.substr(r.indexOf("=")+1),e.trim()==t)return unescape(n)}return!1},setCmsCookie:function(t,e,n){var i=new Date;n||(n=new Date(i.getFullYear(),i.getMonth()+1,i.getDate())),document.cookie=t+"="+e+"; expires="+n+"; path=/"},redirectTo:function(t){var e=t.route,n=t.redirect,i=void 0===n||n,r=t.routeTo,o=t.replace,a=void 0===o||o,s=window.location.pathname;if(s){var c="string"==typeof e?s.includes(e):e.includes(s);return s&&i&&c?a?window.location.replace(r):window.location.href=r:s&&!i&&c}},isAdmin:function(){return window.location.pathname.startsWith("/view")},isSupportObserver:function(){return"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype},css:function(t,e){for(var n in e)t.style[n]=e[n]},isMobile:function(){return window.innerWidth<=768},isApp:function(){return navigator.userAgent.match(/Portafolioapp/i)},isHome:function(){return"/"===window.location.pathname},sleep:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3;return new Promise((function(e){return setTimeout(e,t)}))}}},2419:t=>{var e=["beforeSend","success","error","complete","type"];function n(){"use strict";var t=c(),e=t.m(n),l=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function h(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))}var d={throw:1,return:2,break:3,continue:3};function f(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,d[t],e)},delegateYield:function(t,o,a){return e.resultName=o,n(r.d,i(t),a)},finish:function(t){return n(r.f,t)}},n=function(t,n,i){r.p=e.prev,r.n=e.next;try{return t(n,i)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(n=function(){return{wrap:function(e,n,i,r){return t.w(f(e),n,i,r&&r.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(t,e){return new u(t,e)}
2,AsyncIterator:s,async:function(t,e,n,i,r){return(h(e)?a:o)(f(t),e,n,i,r)},keys:r,values:i}})()}function i(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(p(t)+" is not iterable")}function r(t){var e=Object(t),n=[];for(var i in e)n.unshift(i);return function t(){for(;n.length;)if((i=n.pop())in e)return t.value=i,t.done=!1,t;return t.done=!0,t}}function o(t,e,n,i,r){var o=a(t,e,n,i,r);return o.next().then((function(t){return t.done?t.value:o.next()}))}function a(t,e,n,i,r){return new s(c().w(t,e,n,i),r||Promise)}function s(t,e){function n(i,r,o,a){try{var s=t[i](r),c=s.value;return c instanceof u?e.resolve(c.v).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){s.value=t,o(s)}),(function(t){return n("throw",t,o,a)}))}catch(t){a(t)}}var i;this.next||(l(s.prototype),l(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),l(this,"_invoke",(function(t,r,o){function a(){return new e((function(e,i){n(t,o,e,i)}))}return i=i?i.then(a,a):a()}),!0)}function c(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var c=i&&i.prototype instanceof s?i:s,u=Object.create(c.prototype);return l(u,"_invoke",function(n,i,r){var o,s,c,l=0,u=r||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,s=0,c=t,d.n=n,a}};function f(n,i){for(s=n,c=i,e=0;!h&&l&&!r&&e<u.length;e++){var r,o=u[e],f=d.p,p=o[2];n>3?(r=p===i)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,d.v=i,d.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,d.n=p,s=0))}if(r||n>1)return a;throw h=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,c=p;(e=s<2?t:c)||!h;){o||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(h=d.n<0)?c:n.call(i,d))!==a)break}catch(e){o=t,s=1,c=e}finally{l=1}}return{value:e,done:h}}}(n,r,o),!0),u}var a={};function s(){}function u(){}function h(){}e=Object.getPrototypeOf;var d=[][i]?e(e([][i]())):(l(e={},i,(function(){return this})),e),f=h.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=h,l(f,"constructor",h),l(h,"constructor",u),u.displayName="GeneratorFunction",l(h,r,"GeneratorFunction"),l(f),l(f,r,"Generator"),l(f,i,(function(){return this})),l(f,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:o,m:p}})()}function l(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}l=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){l(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},l(t,e,n,i)}function u(t,e){this.v=t,this.k=e}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=function(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function g(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function m(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}t.exports=function(){var t,i=(t=n().mark((function t(i,r){var o,a,s,c,l,u,h,f,m,b,y,v,x,_,w,S=arguments;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r.beforeSend,a=r.success,s=r.error,c=r.complete,l=r.type,u=void 0===l?"json":l,h=g(r,e),f=S.length>2&&void 0!==S[2]?S[2]:null,m=null,b=null,y=null,v=null,t.prev=3,void 0!==i&&"string"==typeof i){t.next=6;break}throw new TypeError("Not defined url or must be a number");case 6:if(void 0!==a&&void 0!==s){t.next=8;break}throw new TypeError("Not defined function success or error");case 8:if(!f){t.next=13;break}if("number"==typeof f){t.next=11;break}throw new TypeError("timeout must be a number, it's ".concat(p(f)));case 11:y=new AbortController,v=setTimeout((function(){return y.abort()}),f);case 13:return"function"==typeof o&&o(),t.next=16,fetch(i,d(d({},h),{},{signal:y?y.signal:null}));case 16:if(m=t.sent,"json"!==u){t.next=21;break}return t.next=20,m.json();case 20:b=t.sent;case 21:if("html"!==u){t.next=25;break}return t.next=24,m.text();case 24:b=t.sent;case 25:return _=(x=m).ok,w=x.status,t.abrupt("return",a({res:null!=b?b:m,ok:_,status:w}));case 29:t.prev=29,t.t0=t.catch(3),s({res:m,e:t.t0});case 32:return t.prev=32,v&&clearTimeout(v),"function"==typeof c&&c({details:m,res:b}),t.finish(32);case 36:case"end":return t.stop()}}),t,null,[[3,29,32,36]])})),function(){var e=this,n=arguments;
2return new Promise((function(i,r){var o=t.apply(e,n);function a(t){m(o,i,r,a,s,"next",t)}function s(t){m(o,i,r,a,s,"throw",t)}a(void 0)}))});return function(t,e){return i.apply(this,arguments)}}()},2886:(t,e,n)=>{var i,r;t.exports=(i=n(2343),r=i.redirectTo,i.getCmsCookie,function(t){var e=t.identity,n=void 0===e?null:e;if(n){var i=document.querySelector("#template_wrap_user_logged");if(n&&n.firstName){console.log("Es identity"),r({route:["/zona-usuario/crear","/registro","/ingreso"],routeTo:"/"});var o=n.firstName,a=n.lastName,s=n.email,c=document.querySelector("#header__principal__usuario__btn-usuario");null!=c&&c.setAttribute("data-href",""),document.body.classList.add("user-logged"),function(t){var e=t.name,n=t.lastName,i=t.templateWrap,r=t.btnUser,o=t.email;if(r&&r.querySelector("span")&&i&&i.content){var a=i.parentNode,s=i.content.querySelector(".header__usuario__lista__item.header__usuario__lista__item--data");s&&(s.querySelector("h5").innerText="".concat(e,"  ").concat(n),s.querySelector("h6").innerText=o,a.replaceChild(s,i)),null==e&&(e="Usuario Anonimo"),null==n&&(n=e.split(" ")[e.split(" ").length-1]),r.querySelector("span").innerText=e.charAt(0).toUpperCase()+n.charAt(0).toUpperCase(),r.classList.add("btn-header--logged"),r.parentElement.classList.add("logged")}}({name:o,lastName:a,templateWrap:i,email:s,btnUser:c},Reflect.get(n,"subscription"))}}else r({route:["/zona-usuario/mi-suscripcion","/zona-usuario/configurar-mis-datos","/zona-usuario/version-impresa","/zona-usuario/articulos-guardados"],routeTo:"/ingreso"})})},3055:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(){"use strict";var t=u(),e=t.m(r),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function i(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var h={throw:1,return:2,break:3,continue:3};function f(t){var e,n;return function(i){e||(e={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(t,e){return n(i.a,h[t],e)},delegateYield:function(t,r,a){return e.resultName=r,n(i.d,o(t),a)},finish:function(t){return n(i.f,t)}},n=function(t,n,r){i.p=e.prev,i.n=e.next;try{return t(n,r)}finally{e.next=i.n}}),e.resultName&&(e[e.resultName]=i.v,e.resultName=void 0),e.sent=i.v,e.next=i.n;try{return t.call(this,e)}finally{i.p=e.prev,i.n=e.next}}}return(r=function(){return{wrap:function(e,n,i,r){return t.w(f(e),n,i,r&&r.reverse())},isGeneratorFunction:i,mark:t.m,awrap:function(t,e){return new d(t,e)},AsyncIterator:l,async:function(t,e,n,r,o){return(i(e)?c:s)(f(t),e,n,r,o)},keys:a,values:o}})()}function o(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(i(t)+" is not iterable")}function a(t){var e=Object(t),n=[];for(var i in e)n.unshift(i);return function t(){for(;n.length;)if((i=n.pop())in e)return t.value=i,t.done=!1,t;return t.done=!0,t}}function s(t,e,n,i,r){var o=c(t,e,n,i,r);return o.next().then((function(t){return t.done?t.value:o.next()}))}function c(t,e,n,i,r){return new l(u().w(t,e,n,i),r||Promise)}function l(t,e){function n(i,r,o,a){try{var s=t[i](r),c=s.value;return c instanceof d?e.resolve(c.v).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){s.value=t,o(s)}),(function(t){return n("throw",t,o,a)}))}catch(t){a(t)}}var i;this.next||(h(l.prototype),h(l.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),h(this,"_invoke",(function(t,r,o){function a(){return new e((function(e,i){n(t,o,e,i)}))}return i=i?i.then(a,a):a()}),!0)}function u(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return h(l,"_invoke",function(n,i,r){var o,s,c,l=0,u=r||[],h=!1,d={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,n){return o=e,s=0,c=t,d.n=n,a}};function f(n,i){for(s=n,c=i,e=0;!h&&l&&!r&&e<u.length;e++){var r,o=u[e],f=d.p,p=o[2];n>3?(r=p===i)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,d.v=i,d.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,d.n=p,s=0))}if(r||n>1)return a;throw h=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,c=p;(e=s<2?t:c)||!h;){o||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(h=d.n<0)?c:n.call(i,d))!==a)break}catch(e){o=t,s=1,c=e}finally{l=1}}return{value:e,done:h}}}(n,r,o),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var d=[][i]?e(e([][i]())):(h(e={},i,(function(){return this})),e),f=l.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,h(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,h(f,"constructor",l),h(l,"constructor",c),c.displayName="GeneratorFunction",h(l,r,"GeneratorFunction"),h(f),h(f,r,"Generator"),h(f,i,(function(){return this})),h(f,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:o,m:p}})()}function h(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}h=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){h(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},h(t,e,n,i)}function d(t,e){this.v=t,this.k=e}function f(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}var p,g,m,b,y,v,x,_,w,S,M,A,k,O,C,P;p=n(3507),g=p.lazyImages,m=p.showListCoins,b=p.switchListCoins,y=p.selectCoin,v=p.getCoins,x=n(9004),_=n(2343).isAdmin,w=n(3995),S=w.handleTabHome,M=w.queryItem,A=n(2419),k=n(3526),O=n(2334).renderActionsHome,C=n(5337),P=function(){var t,e=(t=r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{g()}catch(t){console.error("Error in lazy images:",t)}if(e=document.querySelectorAll(".multimedia-video"),_()){t.next=6;break}return x(e),t.next=6,A("/indicators/indicators-search",{method:"GET",body:null,headers:{"Content-Type":"application/json"},success:function(t){var e=t.res,n=t.status,i=t.ok;if(200===n&&i&&e&&e.OK&&e.search){k.setState({searchList:e.search});var r=M("dolar");if(!r)return;O(r,document.querySelector(".c-grafica__data"))}},error:function(t){console.log("ERROR @Search home - ".concat(t),t)}});case 6:C();case 7:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){f(o,i,r,a,s,"next",t)}function s(t){f(o,i,r,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}(),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?P():document.addEventListener("DOMContentLoaded",P),document.addEventListener("click",(function(t){var e;t.target.matches(".select-conversor")&&m(t.target),t.target.matches(".button-cambio-divisas *")&&b(),t.target.matches(".opciones-conversor *")&&y(t.target),t.target.matches(".btn-cerrar-cintillo")&&(null===(e=t.target.closest("article"))||void 0===e||e.style.setProperty("display","none")),t.target.matches(".c-grafica__tab")&&S(t.target),t.target.matches("#update_banner_close")&&(t.target.parentNode.style.display="none")})),document.addEventListener("keypress",(function(t){if(t.target.matches("#convertidor")){var e=/^[0-9.]+$/,n=void 0===t.which?t.keyCode:t.which,i=String.fromCharCode(n);if(i.match(e)||"Enter"!==t.key||t.preventDefault(),(i.match(e)||"Enter"===t.key)&&"Enter"===t.key){if(""===t.target.value)return;t.target.value&&v(t.target.value,t.target,e)}}}))},3507:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function o(){"use strict";var t=h(),e=t.m(o),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function i(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}
2var r={throw:1,return:2,break:3,continue:3};function d(t){var e,n;return function(i){e||(e={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(t,e){return n(i.a,r[t],e)},delegateYield:function(t,r,o){return e.resultName=r,n(i.d,a(t),o)},finish:function(t){return n(i.f,t)}},n=function(t,n,r){i.p=e.prev,i.n=e.next;try{return t(n,r)}finally{e.next=i.n}}),e.resultName&&(e[e.resultName]=i.v,e.resultName=void 0),e.sent=i.v,e.next=i.n;try{return t.call(this,e)}finally{i.p=e.prev,i.n=e.next}}}return(o=function(){return{wrap:function(e,n,i,r){return t.w(d(e),n,i,r&&r.reverse())},isGeneratorFunction:i,mark:t.m,awrap:function(t,e){return new f(t,e)},AsyncIterator:u,async:function(t,e,n,r,o){return(i(e)?l:c)(d(t),e,n,r,o)},keys:s,values:a}})()}function a(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(i(t)+" is not iterable")}function s(t){var e=Object(t),n=[];for(var i in e)n.unshift(i);return function t(){for(;n.length;)if((i=n.pop())in e)return t.value=i,t.done=!1,t;return t.done=!0,t}}function c(t,e,n,i,r){var o=l(t,e,n,i,r);return o.next().then((function(t){return t.done?t.value:o.next()}))}function l(t,e,n,i,r){return new u(h().w(t,e,n,i),r||Promise)}function u(t,e){function n(i,r,o,a){try{var s=t[i](r),c=s.value;return c instanceof f?e.resolve(c.v).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){s.value=t,o(s)}),(function(t){return n("throw",t,o,a)}))}catch(t){a(t)}}var i;this.next||(d(u.prototype),d(u.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),d(this,"_invoke",(function(t,r,o){function a(){return new e((function(e,i){n(t,o,e,i)}))}return i=i?i.then(a,a):a()}),!0)}function h(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return d(l,"_invoke",function(n,i,r){var o,s,c,l=0,u=r||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,s=0,c=t,d.n=n,a}};function f(n,i){for(s=n,c=i,e=0;!h&&l&&!r&&e<u.length;e++){var r,o=u[e],f=d.p,p=o[2];n>3?(r=p===i)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,d.v=i,d.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,d.n=p,s=0))}if(r||n>1)return a;throw h=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,c=p;(e=s<2?t:c)||!h;){o||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(h=d.n<0)?c:n.call(i,d))!==a)break}catch(e){o=t,s=1,c=e}finally{l=1}}return{value:e,done:h}}}(n,r,o),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(d(e={},i,(function(){return this})),e),f=l.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,d(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,d(f,"constructor",l),d(l,"constructor",c),c.displayName="GeneratorFunction",d(l,r,"GeneratorFunction"),d(f),d(f,r,"Generator"),d(f,i,(function(){return this})),d(f,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:o,m:p}})()}function d(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}d=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){d(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},d(t,e,n,i)}function f(t,e){this.v=t,this.k=e}function p(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}var g,m,b,y,v,x,_;t.exports=(g=n(9025),m=g.getCurrency,b=g.formatForeignExchange,y=n(2419),v=n(5886),x=function(){var t,e=(t=o().mark((function t(e,n,i){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.match(i)||isNaN(e)){t.next=3;break}return t.next=3,y("/indicators/indicators-currency-converter/true",{method:"GET",body:null,headers:{"Content-Type":"application/json"},success:function(t){var i=t.res,r=t.status;if(t.ok&&200===r&&i&&"200"===i.apiResponse.status&&i.apiResponse.OK){var o=i.coins;_(o,e,n)}},error:function(t){console.log("ERROR @getCoins - ".concat(t))}});case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;
2return new Promise((function(i,r){var o=t.apply(e,n);function a(t){p(o,i,r,a,s,"next",t)}function s(t){p(o,i,r,a,s,"throw",t)}a(void 0)}))});return function(t,n,i){return e.apply(this,arguments)}}(),_=function(t,e,n){var i,o,a,s=document.querySelector(".select-conversor#from"),c=document.querySelector(".select-conversor#to"),l=parseFloat(e),u=0;i=t.filter((function(t){return t.Name===s.getAttribute("data-ric")})),o=t.filter((function(t){return t.Name===c.getAttribute("data-ric")}));var h,d,f=i.shift()||0,p=f.Price,g=f.Currency,y=o.shift()||0,v=y.Price,x=y.Currency;if(s.getAttribute("data-name")!==c.getAttribute("data-name")){var _,w=["Bolívar","Peso chileno","Yuan chino","Yen","Won surcoreano"],S=["Naira nigeriana","Corona sueca"],M=["Rublo ruso","Dólar de Singapur"];if("Peso colombiano"===s.getAttribute("data-name")&&"Peso colombiano"!==c.getAttribute("data-name")&&(w.includes(c.getAttribute("data-name"))&&(a=1),w.includes(c.getAttribute("data-name"))||(S.includes(c.getAttribute("data-name"))&&(a=10),M.includes(c.getAttribute("data-name"))&&(a=1e3),"Ringgit malayo"===c.getAttribute("data-name")&&(a=1e4),"Bitcoin"===c.getAttribute("data-name")&&(a=.01),S.includes(c.getAttribute("data-name"))||M.includes(c.getAttribute("data-name"))||"Ringgit malayo"===c.getAttribute("data-name")||"Bitcoin"===c.getAttribute("data-name")||(a=100)),u="Bitcoin"!==c.getAttribute("data-name")?l*parseFloat(v)/a:l*a/parseFloat(v)),"Peso colombiano"!==s.getAttribute("data-name")&&"Peso colombiano"===c.getAttribute("data-name")&&(w.includes(s.getAttribute("data-name"))&&(a=1),w.includes(s.getAttribute("data-name"))||(S.includes(s.getAttribute("data-name"))&&(a=10),M.includes(s.getAttribute("data-name"))&&(a=1e3),"Ringgit malayo"===s.getAttribute("data-name")&&(a=1e4),"Bitcoin"===s.getAttribute("data-name")&&(a=.01),S.includes(s.getAttribute("data-name"))||M.includes(s.getAttribute("data-name"))||"Ringgit malayo"===s.getAttribute("data-name")||"Bitcoin"===s.getAttribute("data-name")||(a=100)),u="Bitcoin"!==s.getAttribute("data-name")?l*a/parseFloat(p):parseFloat(p)*l/a),"Peso colombiano"!==c.getAttribute("data-name")&&"Peso colombiano"!==s.getAttribute("data-name")&&("Bitcoin"===s.getAttribute("data-name")&&"Bitcoin"!==c.getAttribute("data-name")||"Libra turca"===s.getAttribute("data-name")&&"Libra turca"!==c.getAttribute("data-name")||w.includes(s.getAttribute("data-name"))&&!w.includes(c.getAttribute("data-name"))||S.includes(s.getAttribute("data-name"))&&!S.includes(c.getAttribute("data-name"))||M.includes(s.getAttribute("data-name"))&&!M.includes(c.getAttribute("data-name"))||"Ringgit malayo"===s.getAttribute("data-name")&&"Ringgit malayo"!==c.getAttribute("data-name"))&&(a=100,"Bitcoin"===s.getAttribute("data-name")&&(_=.01),("Libra turca"===s.getAttribute("data-name")||w.includes(s.getAttribute("data-name")))&&(_=1),S.includes(s.getAttribute("data-name"))&&(_=10),M.includes(s.getAttribute("data-name"))&&(_=1e3),"Ringgit malayo"===s.getAttribute("data-name")&&(_=1e4),u=v*(w.includes(s.getAttribute("data-name"))||S.includes(s.getAttribute("data-name"))||M.includes(s.getAttribute("data-name"))||"Ringgit malayo"===s.getAttribute("data-name")?_*l/p:p*l/_)/a),"Bitcoin"!==s.getAttribute("data-name")&&"Libra turca"!==s.getAttribute("data-name")&&!w.includes(s.getAttribute("data-name"))&&!S.includes(s.getAttribute("data-name"))&&!M.includes(s.getAttribute("data-name"))&&"Ringgit malayo"!==s.getAttribute("data-name")&&"Peso colombiano"!==s.getAttribute("data-name")&&"Peso colombiano"!==c.getAttribute("data-name")){var A,k=l*(a=100)/parseFloat(p);"Bitcoin"===c.getAttribute("data-name")||"Libra turca"===c.getAttribute("data-name")||w.includes(c.getAttribute("data-name"))||S.includes(c.getAttribute("data-name"))||M.includes(c.getAttribute("data-name"))||"Ringgit malayo"===c.getAttribute("data-name")||(u=k*parseFloat(v)/a),("Bitcoin"===c.getAttribute("data-name")||"Libra turca"===c.getAttribute("data-name")||w.includes(c.getAttribute("data-name"))||S.includes(c.getAttribute("data-name"))||M.includes(c.getAttribute("data-name"))||"Ringgit malayo"===c.getAttribute("data-name"))&&("Bitcoin"===c.getAttribute("data-name")&&(A=.01),("Libra turca"===c.getAttribute("data-name")||w.includes(c.getAttribute("data-name")))&&(A=1),S.includes(c.getAttribute("data-name"))&&(A=10),M.includes(c.getAttribute("data-name"))&&(A=1e3),"Ringgit malayo"===c.getAttribute("data-name")&&(A=1e4),u=w.includes(c.getAttribute("data-name"))||S.includes(c.getAttribute("data-name"))||M.includes(c.getAttribute("data-name"))||"Ringgit malayo"===c.getAttribute("data-name")?v*k/A:A*k/parseFloat(v))}}if(s.getAttribute("data-name")===c.getAttribute("data-name")&&(u=l),u&&!isNaN(u)){var O=m({coin:s.getAttribute("data-name"),Currency:g}),C=m({coin:c.getAttribute("data-name"),Currency:x}),P=(h=b({currencyTo:C,currencyFrom:O,result:u,count:l}),d=2,function(t){if(Array.isArray(t))return t}(h)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(h,d)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(h,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),T=P[0],E=P[1];document.querySelector("#response-conversor").innerHTML="".concat(T," = ").concat(E)}if(isNaN(u))throw new Error("Error: Result is not a number")},{lazyImages:function(){var t=[].slice.call(document.querySelectorAll("img.lazy"));t.length>0&&v({target:t,isArray:!0,onIntersect:function(t,e){var n=t.target;n.src=n.dataset.src,n.srcset=n.dataset.srcset,n.classList.remove("lazy"),e.unobserve(n)},options:{threshold:0}})},showListCoins:function(t){if(t&&"li"===t.localName){var e=t.parentNode.parentNode.parentNode;if(e){var n=e.querySelectorAll(".select-conversor"),i=e.querySelector(".button-cambio-divisas");n&&n.forEach((function(e){e!==t&&e.classList.contains("activo")&&(e.classList.toggle("activo"),i.classList.toggle("inactivo"),e.parentNode.querySelector(".opciones-conversor").classList.toggle("inactivo"))})),t.classList.toggle("activo"),i.classList.toggle("activo"),t.parentNode.querySelector(".opciones-conversor").classList.toggle("inactivo")}}},switchListCoins:function(){var t=document.querySelector(".divisas"),e=t.children;if(e&&e.length>0){var n=Array.from(e).reverse();n.innerHTML="",n.forEach((function(e,n){0==n&&e.querySelector(".select-conversor").setAttribute("id","from"),2==n&&e.querySelector(".select-conversor").setAttribute("id","to"),t.appendChild(e)}))}},selectCoin:function(t){var e,n,i;n=(e=("h4"===t.localName||"img"===t.localName?t.parentNode.parentNode:t.parentNode).parentNode).querySelector(".select-conversor"),i=e.querySelector(".opciones-conversor");var r="h4"===t.localName||"img"===t.localName?t.parentNode:t;i.removeChild(r);var o=n.getAttribute("id");newChild=function(t){var e=t.cloneNode(!0);return e.setAttribute("class","item-conversor"),e.removeAttribute("id"),e}(n),e.removeChild(n),r.setAttribute("class","select-conversor"),r.setAttribute("id",o),e.insertAdjacentElement("afterbegin",r),i.insertAdjacentElement("beforeend",newChild),function(t){var e=t.querySelector(".select-conversor"),n=t.querySelector(".opciones-conversor");e.classList.remove("activo"),n.classList.add("inactivo")}(e)},getCoins:x})},3526:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function i(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(t,n,i){return(n=function(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}var o;t.exports=(o={searchList:[],actions:[],monedas:[],materias:[],renta:[],indicesColombia:[],chart:"actions"},{getState:function(){return i({},o)},setState:function(t){o=i(i({},o),t),console.log("State updated:",o)}})},3995:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(){"use strict";var t=u(),e=t.m(r),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function i(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var h={throw:1,return:2,break:3,continue:3};function f(t){var e,n;return function(i){e||(e={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(t,e){return n(i.a,h[t],e)},delegateYield:function(t,r,a){return e.resultName=r,n(i.d,o(t),a)},finish:function(t){return n(i.f,t)}},n=function(t,n,r){i.p=e.prev,i.n=e.next;try{return t(n,r)}finally{e.next=i.n}}),e.resultName&&(e[e.resultName]=i.v,e.resultName=void 0),e.sent=i.v,e.next=i.n;try{return t.call(this,e)}finally{i.p=e.prev,i.n=e.next}}}return(r=function(){return{wrap:function(e,n,i,r){return t.w(f(e),n,i,r&&r.reverse())},isGeneratorFunction:i,mark:t.m,awrap:function(t,e){return new d(t,e)},AsyncIterator:l,async:function(t,e,n,r,o){return(i(e)?c:s)(f(t),e,n,r,o)},keys:a,values:o}})()}function o(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(i(t)+" is not iterable")}function a(t){var e=Object(t),n=[];for(var i in e)n.unshift(i);return function t(){for(;n.length;)if((i=n.pop())in e)return t.value=i,t.done=!1,t;return t.done=!0,t}}function s(t,e,n,i,r){var o=c(t,e,n,i,r);return o.next().then((function(t){return t.done?t.value:o.next()}))}function c(t,e,n,i,r){return new l(u().w(t,e,n,i),r||Promise)}function l(t,e){function n(i,r,o,a){try{var s=t[i](r),c=s.value;return c instanceof d?e.resolve(c.v).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){s.value=t,o(s)}),(function(t){return n("throw",t,o,a)}))}catch(t){a(t)}}var i;this.next||(h(l.prototype),h(l.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),h(this,"_invoke",(function(t,r,o){function a(){return new e((function(e,i){n(t,o,e,i)}))}return i=i?i.then(a,a):a()}),!0)}function u(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return h(l,"_invoke",function(n,i,r){var o,s,c,l=0,u=r||[],h=!1,d={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,n){return o=e,s=0,c=t,d.n=n,a}};function f(n,i){for(s=n,c=i,e=0;!h&&l&&!r&&e<u.length;e++){var r,o=u[e],f=d.p,p=o[2];n>3?(r=p===i)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,d.v=i,d.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,d.n=p,s=0))}if(r||n>1)return a;throw h=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,c=p;(e=s<2?t:c)||!h;){o||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(h=d.n<0)?c:n.call(i,d))!==a)break}catch(e){o=t,s=1,c=e}finally{l=1}}return{value:e,done:h}}}(n,r,o),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var d=[][i]?e(e([][i]())):(h(e={},i,(function(){return this})),e),f=l.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,h(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,h(f,"constructor",l),h(l,"constructor",c),c.displayName="GeneratorFunction",h(l,r,"GeneratorFunction"),h(f),h(f,r,"Generator"),h(f,i,(function(){return this})),h(f,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:o,m:p}})()}function h(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}h=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){h(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},h(t,e,n,i)}function d(t,e){this.v=t,this.k=e}function f(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return p(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}t.exports=function(){var t=n(2334),e=n(3526),o=n(2419);function a(){return document.querySelector("section[data-origin='container-all-boards'] .contenedor-grafico-articulo")}var s=function(t){return e.getState().searchList.filter((function(e){return e.name&&e.name.toLowerCase()===t.toLowerCase()})).shift()};function c(){var n;return n=r().mark((function n(s,c){var l,u,h,d,p,g,m,b,y;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l=s.getAttribute("data-origin"),u=a(),h=u.querySelector("div[data-origin='".concat(l,"']")),d=c.filter((function(t){return t.name===l})).shift(),e.setState({chart:l}),"actions"===l||Array.isArray(d)||!Reflect.has(d,"url")){n.next=13;break}if(p=e.getState(),0!==(g=p[l]).length){n.next=10;break}return n.next=10,o(Reflect.get(d,"url"),{method:"GET",body:null,headers:{"Content-Type":"application/json"},success:function(t){var n,r,o,a=t.res,s=t.status,c=t.ok;a&&200===s&&c&&a.apiResponse.OK&&"200"===a.apiResponse.status&&(e.setState((n={},r=l,o=a.quoteChart,(r=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n)),g=a.quoteChart)},error:function(t){console.error("ERROR @requestGraph.js - handleTab: ".concat(t))}});case 10:"materias"===l&&(h=h.querySelector("div[data-name='Energia']")),t["render".concat(l.charAt(0).toUpperCase()+l.slice(1))](g.at(0),h),["materias","renta"].includes(l)&&t.showChart(h);case 13:s.classList.add("activo"),document.querySelectorAll(".boton-mercados").forEach((function(t){t!==s&&t.classList.remove("activo")})),m=f(u.children);try{for(m.s();!(b=m.n()).done;)(y=b.value).getAttribute("data-origin")&&(y.getAttribute("data-origin")===l?y.style.display="block":y.style.display="none")}catch(t){m.e(t)}finally{m.f()}case 17:case"end":return n.stop()}}),n)})),c=function(){var t=this,e=arguments;return new Promise((function(i,r){var o=n.apply(t,e);function a(t){g(o,i,r,a,s,"next",t)}function s(t){g(o,i,r,a,s,"throw",t)}a(void 0)}))},c.apply(this,arguments)}return{getContainer:a,handleTab:function(t,e){return c.apply(this,arguments)},handleTabCoins:function(n){var i=n.getAttribute("data-filter"),r=n.getAttribute("data-origin"),o=a().querySelector("div[data-origin='".concat(r,"']")),s=e.getState()[r];e.setState({chart:r}),t["render".concat(r.charAt(0).toUpperCase()+r.slice(1))](s.filter((function(t){return t.ItemHumanReadableName===i})).shift(),o)},handleListsActions:function t(e){if("img"===e.localName){var n=document.querySelector("section[data-origin='container-all-boards']").querySelector(".opciones[data-activo='true']"),i=e.parentNode,r=e.parentNode.parentNode;if(i&&r){var o=r.querySelector(".opciones");if(n===o||null===n)i.classList.toggle("activo"),o.classList.toggle("activo"),"true"===o.getAttribute("data-activo")?(o.setAttribute("data-activo","fal
2se"),i.querySelector("h4").style.color="#636363",e.src="/images/indicators/icon-select.svg"):(o.setAttribute("data-activo","true"),i.querySelector("h4").style.color="#fff",e.src="/images/indicators/icon-select-close.svg");else{var a=n.parentNode;a.querySelector(".select").classList.remove("activo"),n.classList.remove("activo"),n.setAttribute("data-activo","false"),a.querySelector("h4").style.color="#636363",a.querySelector("img").src="/images/indicators/icon-select.svg",t(e)}}}},handleListActions:function(t,e){var n=t.parentNode,i=n.parentNode;if(n&&i){if("default"===e){var r=i.querySelector(".opciones");r.classList.add("activo"),n.classList.add("activo"),r.setAttribute("data-activo","true");var o=r.firstElementChild.querySelector("h4");o.style.color="#029581",o.classList.add("activo"),n.querySelector(".icon-select").src="/images/indicators/icon-select-close.svg"}if("remove"===e){var a=i.querySelector(".opciones");a.classList.remove("activo"),n.classList.remove("activo"),a.setAttribute("data-activo","false");var s=a.firstElementChild.querySelector("h4");s.style.color="#029581",s.classList.add("activo"),n.querySelector(".icon-select").src="/images/indicators/icon-select.svg"}}},handleClickListActions:function(n){var i=document.querySelector(".contenedor-acciones");i.querySelectorAll(".opcion h4").forEach((function(t){t.style.color="#DBDBDB",t.classList.remove("activo")})),n.style.color="#029581",n.classList.add("activo");var r=e.getState().actions.filter((function(t){var e=t.ItemHumanReadableName;return n.getAttribute("data-original")===e})).shift().Instruments.filter((function(t){var e=t.name;return n.getAttribute("data-name")===e})).shift();e.setState({chart:"actions"}),t.renderActions(r,i)},handleTabsMaterials:function(n){var i=n.getAttribute("data-name");if(i!==n.parentNode.querySelector(".activo").getAttribute("data-name")){var r=document.querySelector('div[data-name="'.concat(i,'"]')),o=r.querySelectorAll(".conetendor-row").item(0),a=e.getState().materias;e.setState({chart:"materias"}),t.renderMaterias(a.filter((function(t){var e=t.ItemHumanReadableName;return o.getAttribute("data-name")===e})).shift(),r),t.showChart(r)}},handleClickMaterial:function(n){var i,r;n.classList.contains("info-materia-prima")&&(n=n.parentNode),n.classList.contains("row-materia-prima")&&(r=n.parentNode.parentNode),n.classList.contains("conetendor-row")&&(r=n.parentNode),r&&(i=r.querySelectorAll(".contenedor-grafico-global"));var o=n.getAttribute("data-name"),a=n.getAttribute("data-origin"),s=n.getAttribute("data-section"),c=e.getState()[a];e.setState({chart:a}),t.renderMaterias(c.filter((function(t){return t.SubCategory===s})).filter((function(t){var e=t.ItemHumanReadableName;return o===e}
2)).shift(),n),i.forEach((function(t){t.getAttribute("data-name")===o?t.style.display="flex":t.style.display="none"}))},handleClickIncome:function(n){var i=n.getAttribute("data-origin"),r=n.getAttribute("data-name"),o=e.getState()[i];e.setState({chart:i});var a=n.parentNode;t.renderRenta(o.filter((function(t){var e=t.ItemHumanReadableName;return r===e})).shift(),a),a.parentNode.parentNode.querySelectorAll(".contenedor-grafico-global").forEach((function(t){t.getAttribute("data-name")===r?t.style.display="flex":t.style.display="none"}))},handleClickIndex:function(n){e.setState({chart:n.getAttribute("data-origin")});var i=e.getState().indicesColombia,r=n.getAttribute("data-name"),o=n.parentNode;t.renderIndex(i.filter((function(t){var e=t.ItemHumanReadableName;return r===e})).shift(),o),o.parentNode.parentNode.querySelectorAll(".contenedor-info-graficos").forEach((function(t){t.getAttribute("data-name")===r?t.style.display="flex":t.style.display="none"}))},handleTabHome:function(e){var n=e.parentNode;n.querySelectorAll(".c-grafica__tab").forEach((function(t){t.classList.remove("activo")}));var i=s(e.textContent.normalize("NFD").replace(/[\u0300-\u036f]/g,""));i&&(t.renderActionsHome(i,n.parentNode),e.classList.add("activo"))},queryItem:s}}()},5337:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(){"use strict";var t=f(),e=t.m(s),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function i(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var r={throw:1,return:2,break:3,continue:3};function o(t){var e,n;return function(i){e||(e={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(t,e){return n(i.a,r[t],e)},delegateYield:function(t,r,o){return e.resultName=r,n(i.d,c(t),o)},finish:function(t){return n(i.f,t)}},n=function(t,n,r){i.p=e.prev,i.n=e.next;try{return t(n,r)}finally{e.next=i.n}}),e.resultName&&(e[e.resultName]=i.v,e.resultName=void 0),e.sent=i.v,e.next=i.n;try{return t.call(this,e)}finally{i.p=e.prev,i.n=e.next}}}return(s=function(){return{wrap:function(e,n,i,r){return t.w(o(e),n,i,r&&r.reverse())},isGeneratorFunction:i,mark:t.m,awrap:function(t,e){return new g(t,e)},AsyncIterator:d,async:function(t,e,n,r,a){return(i(e)?h:u)(o(t),e,n,r,a)},keys:l,values:c}})()}function c(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(i(t)+" is not iterable")}function l(t){var e=Object(t),n=[];for(var i in e)n.unshift(i);return function t(){for(;n.length;)if((i=n.pop())in e)return t.value=i,t.done=!1,t;return t.done=!0,t}}function u(t,e,n,i,r){var o=h(t,e,n,i,r);return o.next().then((function(t){return t.done?t.value:o.next()}))}function h(t,e,n,i,r){return new d(f().w(t,e,n,i),r||Promise)}function d(t,e){function n(i,r,o,a){try{var s=t[i](r),c=s.value;return c instanceof g?e.resolve(c.v).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){s.value=t,o(s)}),(function(t){return n("throw",t,o,a)}))}catch(t){a(t)}}var i;this.next||(p(d.prototype),p(d.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),p(this,"_invoke",(function(t,r,o){function a(){return new e((function(e,i){n(t,o,e,i)}))}return i=i?i.then(a,a):a()}),!0)}function f(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return p(l,"_invoke",function(n,i,r){var o,s,c,l=0,u=r||[],h=!1,d={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,n){return o=e,s=0,c=t,d.n=n,a}};function f(n,i){for(s=n,c=i,e=0;!h&&l&&!r&&e<u.length;e++){var r,o=u[e],f=d.p,p=o[2];n>3?(r=p===i)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,d.v=i,d.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,d.n=p,s=0))}if(r||n>1)return a;throw h=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,c=p;(e=s<2?t:c)||!h;){o||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(h=d.n<0)?c:n.call(i,d))!==a)break}catch(e){o=t,s=1,c=e}finally{l=1}}return{value:e,done:h}}}(n,r,o),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(p(e={},i,(function(){return this})),e),h=l.prototype=s.prototype=Object.create(u);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,p(t,r,"GeneratorFunction")),t.prototype=Object.create(h),t}return c.prototype=l,p(h,"constructor",l),p(l,"constructor",c),c.displayName="GeneratorFunction",p(l,r,"GeneratorFunction"),p(h),p(h,r,"Generator"),p(h,i,(function(){return this})),p(h,"toString",(function(){return"[object Generator]"})),(f=function(){return{w:o,m:d}})()}function p(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}p=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){p(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},p(t,e,n,i)}function g(t,e){this.v=t,this.k=e}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function b(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function y(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){b(o,i,r,a,s,"next",t)}function s(t){b(o,i,r,a,s,"throw",t)}a(void 0)}))}}t.exports=function(){var t=n(2419),e=n(2343),i=e.isAdmin,r=e.isHome,a=e.sleep,c=12e4;function l(){return u.apply(this,arguments)}function u(){return u=y(s().mark((function e(){var n,u=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>0&&void 0!==u[0]?u[0]:null,!i()&&r()){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,t("/page/home-boards.html",{method:"GET",cache:"no-cache",type:"html",success:function(){var t=y(s().mark((function t(e){var i,r,o,u,h;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.res,r=e.ok,o=e.status,!i||!r||200!==o){t.next=9;break}return u=(new DOMParser).parseFromString(i,"text/html"),h=(s=u.querySelectorAll("article"),function(t){if(Array.isArray(t))return m(t)}(s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){return t.outerHTML})).flat(),!n||n.length===h.length&&JSON.stringify(n)===JSON.stringify(h)||(document.querySelector("#update_banner").style.display="flex"),t.next=7,a(c);case 7:return t.next=9,l(h);case 9:throw i;case 10:case"end":return t.stop()}var s}),t)})));return function(e){return t.apply(this,arguments)}}(),complete:function(){var t=y(s().mark((function t(e){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.details,e.res;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),error:function(){var t=y(s().mark((function t(e){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a(c);case 2:return t.next=4,l();case 4:console.error("Error on requestTo - UPDATE HOME",o({},e));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()});case 5:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}return l}()},5886:(t,e,n)=>{var i;t.exports=(i=n(2343).isSupportObserver,function(t){var e=t.target,n=t.isArray,r=void 0!==n&&n,o=t.onIntersect,a=t.nonIntersect,s=void 0===a?null:a,c=t.options;if(i()){var l=new IntersectionObserver((function(t,e){t.forEach((function(t,n){t.isIntersecting?o(t,e,n):s&&s(t,e,n)}
vendor: 4,480 bytes, line 2
2))}),c);r&&e.forEach((function(t){l.observe(t)})),r||l.observe(e)}})},5919:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function c(){"use strict";var t=p(),e=t.m(c),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function i(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var r={throw:1,return:2,break:3,continue:3};function o(t){var e,n;return function(i){e||(e={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(t,e){return n(i.a,r[t],e)},delegateYield:function(t,r,o){return e.resultName=r,n(i.d,l(t),o)},finish:function(t){return n(i.f,t)}},n=function(t,n,r){i.p=e.prev,i.n=e.next;try{return t(n,r)}finally{e.next=i.n}}),e.resultName&&(e[e.resultName]=i.v,e.resultName=void 0),e.sent=i.v,e.next=i.n;try{return t.call(this,e)}finally{i.p=e.prev,i.n=e.next}}}return(c=function(){return{wrap:function(e,n,i,r){return t.w(o(e),n,i,r&&r.reverse())},isGeneratorFunction:i,mark:t.m,awrap:function(t,e){return new m(t,e)},AsyncIterator:f,async:function(t,e,n,r,a){return(i(e)?d:h)(o(t),e,n,r,a)},keys:u,values:l}})()}function l(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(i(t)+" is not iterable")}function u(t){var e=Object(t),n=[];for(var i in e)n.unshift(i);return function t(){for(;n.length;)if((i=n.pop())in e)return t.value=i,t.done=!1,t;return t.done=!0,t}}function h(t,e,n,i,r){var o=d(t,e,n,i,r);return o.next().then((function(t){return t.done?t.value:o.next()}))}function d(t,e,n,i,r){return new f(p().w(t,e,n,i),r||Promise)}function f(t,e){function n(i,r,o,a){try{var s=t[i](r),c=s.value;return c instanceof m?e.resolve(c.v).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){s.value=t,o(s)}),(function(t){return n("throw",t,o,a)}))}catch(t){a(t)}}var i;this.next||(g(f.prototype),g(f.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),g(this,"_invoke",(function(t,r,o){function a(){return new e((function(e,i){n(t,o,e,i)}))}return i=i?i.then(a,a):a()}),!0)}function p(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return g(l,"_invoke",function(n,i,r){var o,s,c,l=0,u=r||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,s=0,c=t,d.n=n,a}};function f(n,i){for(s=n,c=i,e=0;!h&&l&&!r&&e<u.length;e++){var r,o=u[e],f=d.p,p=o[2];n>3?(r=p===i)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,d.v=i,d.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,d.n=p,s=0))}if(r||n>1)return a;throw h=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,c=p;(e=s<2?t:c)||!h;){o||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");
2if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(h=d.n<0)?c:n.call(i,d))!==a)break}catch(e){o=t,s=1,c=e}finally{l=1}}return{value:e,done:h}}}(n,r,o),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(g(e={},i,(function(){return this})),e),h=l.prototype=s.prototype=Object.create(u);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,g(t,r,"GeneratorFunction")),t.prototype=Object.create(h),t}return c.prototype=l,g(h,"constructor",l),g(l,"constructor",c),c.displayName="GeneratorFunction",g(l,r,"GeneratorFunction"),g(h),g(h,r,"Generator"),g(h,i,(function(){return this})),g(h,"toString",(function(){return"[object Generator]"})),(p=function(){return{w:o,m:d}})()}function g(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}g=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){g(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},g(t,e,n,i)}function m(t,e){this.v=t,this.k=e}function b(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function y(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){b(o,i,r,a,s,"next",t)}function s(t){b(o,i,r,a,s,"throw",t)}a(void 0)}))}}t.exports=function(){var t=n(2419),e=n(6614),i=e.hashUserId,r=e.hashSHA256,a=e.setUserName,l=e.setUserFirstName,u=e.setDateTimeTopics,h=e.headBankTopics,d=e.setSourceIframe,f=e.logout,p=n(2343),g=p.getDate,m=p.setCmsCookie,b=p.getCmsCookie,v=p.isAdmin,x=p.css,_=p.toggle,w=n(2886),S=n(7659),M=["deede2917a596e11077daaea27d6168e422ee1a89c9f51489f2a22f6c5d34c0b","add12f00215eb2de6a0b2ef2d09d558b52b40e434e3ee55bdd27683ac12f3135","5c89eff64822b3da66541658cad131e2793ff8561a8a8a06c974cb62fed4e67c"];function A(){return k.apply(this,arguments)}function k(){return k=y(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(window.location.pathname.includes("/login")||window.location.pathname.includes("/ingreso")||window.location.pathname.includes("/zona-usuario/crear"))){e.next=3;break}return"undefined"!=typeof dataLayer&&dataLayer.push({event:"Usuario",userState:"Anonimo",date:g()}),e.abrupt("return");case 3:return e.next=5,t("".concat(SSO_PROTOCOL,"://").concat(SSO_DOMAIN,"/api/user-bar/").concat(SSO_CLIENT_ID),{method:"POST",body:JSON.stringify({rfs:""}),cache:"no-cache",credentials:"include",success:function(t){var e=t.res,n=t.ok,o=t.status;if(n&&200===o&&e&&Reflect.has(e,"identity")){var s=e.identity;window.identity=s,localStorage.setItem("identity","true");var c="registrado";if(s.subscription){if(c="suscriptor",s.subscription.publicacion&&SUBSCRIBER_TYPES){var u=s.subscription,h=s.subscription.publicacion;switch(s.subscription.publicacion){case"IG":c=SUBSCRIBER_TYPES[h],"PREMIUM"===u.tipo_suscripcion&&(c="suscriptor-digital-pro");break;case"DS":u.tipo_suscripcion&&(c=SUBSCRIBER_TYPES[h][u.tipo_suscripcion],u.suscripcion_compartida&&(c="suscriptor-digital-pro-beneficiario"));break;default:c="suscriptor-undefined"}}m("suscriptor","true"),"undefined"!=typeof _cbq&&_cbq.push(["_acct","paid"])}else m("suscriptor","false"),"undefined"!=typeof _cbq&&_cbq.push(["_acct","lgdin"]);if(Reflect.has(s,"email")){var d=s.email;localStorage.setItem("USER_EMAIL",d);var f=i(d);localStorage.setItem("ppid_value",f),"undefined"!=typeof dataLayer&&(M.includes(f)?(c="Anonimo",dataLayer.push({event:"Usuario",userState:"Anonimo",date:g()}),permutive.consent({opt_in:!1})):(dataLayer.push({event:"Usuario",userID:f,userState:c,date:g()}),permutive.identify([{id:f,tag:"userid",priority:0},{id:r(d.trim().toLowerCase()),tag:"email_sha256",priority:5}])))}a(s),l(s),localStorage.setItem("userStatePermutive",c),localStorage.setItem("referer_path",window.location.pathname)}else localStorage.setItem("userStatePermutive","Anonimo"),dataLayer.push({event:"Usuario",userState:"Anonimo",date:g()})},complete:function(){var t=y(c().mark((function t(e){var n,i,r,a;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.details,i=e.res,r=n.ok,a=n.status,!r||200!==a){t.next=5;break}return t.next=5,void setTimeout((function(){w(o({},i))}),32);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),error:function(t){console.error("Error on requestTo - userBar",o({},t))}},2e4);case 5:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}window.randNumber=Math.random(),window.login=A,window.bket_callback=function(){};var O=document.querySelector(".header__buscador"),C=document.querySelector(".header__submenu"),P=document.querySelector(".header__usuario");document.addEventListener("click",(function(t){var e=t.target.closest("#header__principal__usuario__btn-usuario");if(e&&(t.target,e.hasAttribute("data-href")&&""!==e.getAttribute("data-href")?window.location.href=e.getAttribute("data-href"):P.classList.toggle("opacidad"),document.body.classList.add("header__hidden")),(t.target.matches("#header__usuario__lista__item__micuenta__btn-cerrar")||t.target.matches("#header__usuario__lista__item__micuenta__btn-cerrar *"))&&(P.classList.toggle("opacidad"),document.body.classList.remove("header__hidden")),(t.target.matches("#header__principal__btn-buscador")||t.target.matches("#header__principal__btn-buscador *")||t.target.matches("#header__buscador__cerrar")||t.target.matches("#header__buscador__cerrar *"))&&O.classList.toggle("deslizar"),(t.target.matches("#header__principal__btn-hamburguesa")||t.target.matches("#header__principal__btn-hamburguesa *"))&&(C.classList.toggle("mostrar"),x(document.body,{overflow:"hidden"})),(t.target.matches("#header__submenu__lista__btn-cerrar")||t.target.matches("#header__submenu__lista__btn-cerrar *"))&&(C.classList.toggle("mostrar"),document.body.removeAttribute("style")),t.target.matches("#boton-reproduccion-pausa")){var n=document.querySelectorAll(".indicadores__cifras-container ul");t.target.classList.contains("btn-play")?(n[0].style.animationPlayState="running",n[1].style.animationPlayState="running"):(n[0].style.animationPlayState="paused",n[1].style.animationPlayState="paused"),t.target.classList.toggle("btn-play")}(t.target.matches("[data-type='user-logout']")||t.target.matches("[data-type='user-logout'] *"))&&f(document),(t.target.matches(".c-footer__nav__item__title")||t.target.matches("[data-parent-third-level]")||t.target.closest("[data-parent-third-level]"))&&_(t.target)})),document.addEventListener("DOMContentLoaded",function(){var t=y(c().mark((function t(e){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u();try{S('[data-type="topics"]',{nav:!1,autoWidth:!0,fixedWidth:200,loop:!1}),h()}catch(t){console.error("Error in topics:",t)}if(!v()){t.next=4;break}return t.abrupt("return");case 4:try{d({route:"/ingreso",id:"#iframe_login",path:"".concat(Math.floor(89999999999999*randNumber+1e13),"/default")}),d({route:"/zona-usuario/crear",id:"#iframe_registro",path:null})}catch(t){console.log(t)}return t.next=7,A();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var T,E,D=document.querySelector("#header"),L=(T=D?[D.offsetHeight,D.getBoundingClientRect().top+window.scrollY]:[0,0],E=2,function(t){if(Array.isArray(t))return t}(T)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(T,E)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(T,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),I=L[0],R=L[1];window.addEventListener("scroll",(function(t){if(D){var e=window.scrollY>R;D.classList.toggle("en-top",e),D.nextElementSibling.style.marginTop=e?"".concat(I,"px"):null}})),window.addEventListener("message",function(){var t=y(c().mark((function t(e){var n,i,r,o,a,s,l,u,h,d,f;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=null,t.prev=1,n=JSON.parse(e.data),t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(1),t.abrupt("return");case 8:if(e.source,e.origin,!n){t.next=23;break}if(void 0===n.RedirectDisplayIn){t.next=20;break}if("lightbox"===n.RedirectDisplayIn){t.next=20;break}if(i="".concat(n.RedirectTo,"/ingreso"),("ingreso"===n.RedirectName||window.location.pathname.includes("/zona-usuario/activar")&&b("suscriptor")&&"true"===b("suscriptor"))&&(i=n.RedirectTo),"checkoutLogin"!==n.RedirectName){t.next=19;break}return o=(r=n).user_email,a=r.user_uid,o&&a&&(s=o.indexOf("@"),l=o.substr(0,s),u=SHA256(o+hashMD5(l)),dataLayer.push({event:"sign_up",method:"PLC",userIdPiano:a,userID:u}),localStorage.setItem("RegPlc","RegistroPLC")),location.href=n.RedirectTo,t.abrupt("return");case 19:"parent"===n.RedirectDisplayIn&&(location.href=i);case 20:void 0!==n.idIframe&&(h=n.idIframe,document.getElementById(h)&&(d=document.getElementById(h),void 0!==n.ResizeHeight&&n.ResizeHeight&&(d.style.height="".concat(n.ResizeHeight,"px")),void 0!==n.ResizeWidth&&n.ResizeWidth&&(d.style.width="".concat(n.ResizeWidth,"px")),n.nocookie&&(-1===(f=d.src).indexOf("?")&&(f+="?"),f+="redirect=".concat(document.location),document.location=f))),n.paywallOptions&&("login"===n.paywallOptions&&window.scrollTo({top:0,behavior:"smooth"}),"up"===n.paywallOptions&&window.scrollTo({top:0,behavior:"smooth"}),document.getElementById(n.paywallOptions)&&(n.ResizeWidth&&(document.getElementById(n.paywallOptions).width="".concat(n.ResizeWidth,"px")),n.ResizeHeight&&(document.getElementById(n.paywallOptions).height="".concat(n.ResizeHeight,"px")))),void 0!==n.boletinType&&["boletinRegistrado","boletinSuscrito"].includes(n.boletinType)&&showModal(n.boletinType);case 23:case"end":return t.stop()}}),t,null,[[1,5]])})));return function(e){return t.apply(this,arguments)}}(),!1)}()},6014:(t,e,n)=>{"use strict";n.r(e),n.d(e,{tns:()=>F});var i=window,r=i.requestAnimationFrame||i.webkitRequestAnimationFrame||i.mozRequestAnimationFrame||i.msRequestAnimationFrame||function(t){return setTimeout(t,16)},o=window,a=o.cancelAnimationFrame||o.mozCancelAnimationFrame||function(t){clearTimeout(t)};function s(){for(var t,e,n,i=arguments[0]||{},r=1,o=arguments.length;r<o;r++)if(null!==(t=arguments[r]))for(e in t)i!==(n=t[e])&&void 0!==n&&(i[e]=n);return i}function c(t){return["true","false"].indexOf(t)>=0?JSON.parse(t):t}function l(t,e,n,i){if(i)try{t.setItem(e,n)}catch(t){}return n}function u(){var t=document,e=t.body;return e||((e=t.createElement("body")).fake=!0),e}var h=document.documentElement;function d(t){var e="";return t.fake&&(e=h.style.overflow,t.style.background="",t.style.overflow=h.style.overflow="hidden",h.appendChild(t)),e}function f(t,e){t.fake&&(t.remove(),h.style.overflow=e,h.offsetHeight)}function p(t,e,n,i){"insertRule"in t?t.insertRule(e+"{"+n+"}",i):t.addRule(e,n,i)}function g(t){return("insertRule"in t?t.cssRules:t.rules).length}function m(t,e,n){for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i)}var b="classList"in document.createElement("_"),y=b?function(t,e){return t.classList.contains(e)}:function(t,e){return t.className.indexOf(e)>=0},v=b?function(t,e){y(t,e)||t.classList.add(e)}:function(t,e){y(t,e)||(t.className+=" "+e)},x=b?function(t,e){y(t,e)&&t.classList.remove(e)}:function(t,e){y(t,e)&&(t.className=t.className.replace(e,""))};function _(t,e){return t.hasAttribute(e)}function w(t,e){return t.getAttribute(e)}function S(t){return void 0!==t.item}function M(t,e){if(t=S(t)||t instanceof Array?t:[t],"[object Object]"===Object.prototype.toString.call(e))for(var n=t.length;n--;)for(var i in e)t[n].setAttribute(i,e[i])}function A(t,e){t=S(t)||t instanceof Array?t:[t];for(var n=(e=e instanceof Array?e:[e]).length,i=t.length;i--;)for(var r=n;r--;)t[i].removeAttribute(e[r])}function k(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e}function O(t,e){"none"!==t.style.display&&(t.style.display="none")}function C(t,e){"none"===t.style.display&&(t.style.display="")}function P(t){return"none"!==window.getComputedStyle(t).display}function T(t){if("string"==typeof t){var e=[t],n=t.charAt(0).toUpperCase()+t.substr(1);["Webkit","Moz","ms","O"].forEach((function(i){"ms"===i&&"transform"!==t||e.push(i+n)})),t=e}for(var i=document.createElement("fakeelement"),r=(t.length,0);r<t.length;r++){var o=t[r];if(void 0!==i.style[o])return o}return!1}function E(t,e){var n=!1;return/^Webkit/.test(t)?n="webkit"+e+"End":/^O/.test(t)?n="o"+e+"End":t&&(n=e.toLowerCase()+"end"),n}var D=!1;try{var L=Object.defineProperty({},"passive",{get:function(){D=!0}});window.addEventListener("test",null,L)}catch(t){}var I=!!D&&{passive:!0};function R(t,e,n){for(var i in e){var r=["touchstart","touchmove"].indexOf(i)>=0&&!n&&I;t.addEventListener(i,e[i],r)}}function N(t,e){for(var n in e){var i=["touchstart","touchmove"].indexOf(n)>=0&&I;t.removeEventListener(n,e[n],i)}}function j(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(var n=0;n<this.topics[t].length;n++)if(this.topics[t][n]===e){this.topics[t].splice(n,1);break}},emit:function(t,e){e.type=t,this.topics[t]&&this.topics[t].forEach((function(n){n(e,t)}))}}}Object.keys||(Object.keys=function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var F=function(t){t=s({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},t||{});var e=document,n=window,i={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},o={},h=t.useLocalStorage;if(h){var b=navigator.userAgent,S=new Date;try{(o=n.localStorage)?(o.setItem(S,S),h=o.getItem(S)==S,o.removeItem(S)):h=!1,h||(o={})}catch(t){h=!1}h&&(o.tnsApp&&o.tnsApp!==b&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(t){o.removeItem(t)})),localStorage.tnsApp=b)}var D=o.tC?c(o.tC):l(o,"tC",function(){var t=document,e=u(),n=d(e),i=t.createElement("div"),r=!1;e.appendChild(i);try{for(var o,a="(10px * 10)",s=["calc"+a,"-moz-calc"+a,"-webkit-calc"+a],c=0;c<3;c++)if(o=s[c],i.style.width=o,100===i.offsetWidth){r=o.replace(a,"");break}}catch(t){}return e.fake?f(e,n):i.remove(),r}(),h),L=o.tPL?c(o.tPL):l(o,"tPL",function(){var t,e=document,n=u(),i=d(n),r=e.createElement("div"),o=e.createElement("div"),a="";r.className="tns-t-subp2",o.className="tns-t-ct";for(var s=0;s<70;s++)a+="<div></div>";return o.innerHTML=a,r.appendChild(o),n.appendChild(r),t=Math.abs(r.getBoundingClientRect().left-o.children[
vendor: 4,309 bytes, line 2
267].getBoundingClientRect().left)<2,n.fake?f(n,i):r.remove(),t}(),h),I=o.tMQ?c(o.tMQ):l(o,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var t,e=document,n=u(),i=d(n),r=e.createElement("div"),o=e.createElement("style"),a="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return o.type="text/css",r.className="tns-mq-test",n.appendChild(o),n.appendChild(r),o.styleSheet?o.styleSheet.cssText=a:o.appendChild(e.createTextNode(a)),t=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,n.fake?f(n,i):r.remove(),"absolute"===t}(),h),z=o.tTf?c(o.tTf):l(o,"tTf",T("transform"),h),B=o.t3D?c(o.t3D):l(o,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,i=u(),r=d(i),o=n.createElement("p"),a=t.length>9?"-"+t.slice(0,-9).toLowerCase()+"-":"";return a+="transform",i.insertBefore(o,null),o.style[t]="translate3d(1px,1px,1px)",e=window.getComputedStyle(o).getPropertyValue(a),i.fake?f(i,r):o.remove(),void 0!==e&&e.length>0&&"none"!==e}(z),h),H=o.tTDu?c(o.tTDu):l(o,"tTDu",T("transitionDuration"),h),W=o.tTDe?c(o.tTDe):l(o,"tTDe",T("transitionDelay"),h),V=o.tADu?c(o.tADu):l(o,"tADu",T("animationDuration"),h),q=o.tADe?c(o.tADe):l(o,"tADe",T("animationDelay"),h),U=o.tTE?c(o.tTE):l(o,"tTE",E(H,"Transition"),h),Y=o.tAE?c(o.tAE):l(o,"tAE",E(V,"Animation"),h),$=n.console&&"function"==typeof n.console.warn,G=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],X={};if(G.forEach((function(n){if("string"==typeof t[n]){var i=t[n],r=e.querySelector(i);if(X[n]=i,!r||!r.nodeName)return void($&&console.warn("Can't find",t[n]));t[n]=r}})),!(t.container.children.length<1)){var K=t.responsive,Z=t.nested,J="carousel"===t.mode;if(K){0 in K&&(t=s(t,K[0]),delete K[0]);var Q={};for(var tt in K){var et=K[tt];et="number"==typeof et?{items:et}:et,Q[tt]=et}K=Q,Q=null}if(J||function t(e){for(var n in e)J||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(t),!J){t.axis="horizontal",t.slideBy="page",t.edgePadding=!1;var nt=t.animateIn,it=t.animateOut,rt=t.animateDelay,ot=t.animateNormal}var at,st,ct="horizontal"===t.axis,lt=e.createElement("div"),ut=e.createElement("div"),ht=t.container,dt=ht.parentNode,ft=ht.outerHTML,pt=ht.children,gt=pt.length,mt=Dn(),bt=!1;K&&Qn(),J&&(ht.className+=" tns-vpfix");var yt,vt,xt,_t,wt,St,Mt,At,kt=t.autoWidth,Ot=jn("fixedWidth"),Ct=jn("edgePadding"),Pt=jn("gutter"),Tt=Rn(),Et=jn("center"),Dt=kt?1:Math.floor(jn("items")),Lt=jn("slideBy"),It=t.viewportMax||t.fixedWidthViewportWidth,Rt=jn("arrowKeys"),Nt=jn("speed"),jt=t.rewind,Ft=!jt&&t.loop,zt=jn("autoHeight"),Bt=jn("controls"),Ht=jn("controlsText"),Wt=jn("nav"),Vt=jn("touch"),qt=jn("mouseDrag"),Ut=jn("autoplay"),Yt=jn("autoplayTimeout"),$t=jn("autoplayText"),Gt=jn("autoplayHoverPause"),Xt=jn("autoplayResetOnVisibility"),Kt=(Mt=jn("nonce"),At=document.createElement("style"),Mt&&At.setAttribute("nonce",Mt),document.querySelector("head").appendChild(At),At.sheet?At.sheet:At.styleSheet),Zt=t.lazyload,Jt=t.lazyloadSelector,Qt=[],te=Ft?(wt=function(){if(kt||Ot&&!It)return gt-1;var e=Ot?"fixedWidth":"items",n=[];if((Ot||t[e]<gt)&&n.push(t[e]),K)for(var i in K){var r=K[i][e];r&&(Ot||r<gt)&&n.push(r)}return n.length||n.push(0),Math.ceil(Ot?It/Math.min.apply(null,n):Math.max.apply(null,n))}(),St=J?Math.ceil((5*wt-gt)/2):4*wt-gt,St=Math.max(wt,St),Nn("edgePadding")?St+1:St):0,ee=J?gt+2*te:gt+te,ne=!(!Ot&&!kt||Ft),ie=Ot?Ai():null,re=!J||!Ft,oe=ct?"left":"top",ae="",se="",ce=Ot?function(){return Et&&!Ft?gt-1:Math.ceil(-ie/(Ot+Pt))}:kt?function(){for(var t=0;t<ee;t++)if(yt[t]>=-ie)return t}:function(){return Et&&J&&!Ft?gt-1:Ft||J?Math.max(0,ee-Math.ceil(Dt)):ee-1},le=Pn(jn("startIndex")),ue=le,he=(Cn(),0),de=kt?null:ce(),fe=t.preventActionWhenRunning,pe=t.swipeAngle,ge=!pe||"?",me=!1,be=t.onInit,ye=new j,ve=" tns-slider tns-"+t.mode,xe=ht.id||(_t=window.tnsId,window.tnsId=_t?_t+1:1,"tns"+window.tnsId),_e=jn("disable"),we=!1,Se=t.freezable,Me=!(!Se||kt)&&Jn(),Ae=!1,ke={click:Ii,keydown:function(t){t=Wi(t);var e=[i.LEFT,i.RIGHT].indexOf(t.keyCode);e>=0&&(0===e?Ge.disabled||Ii(t,-1):Xe.disabled||Ii(t,1))}},Oe={click:function(t){if(me){if(fe)return;Di()}for(var e=Vi(t=Wi(t));e!==Qe&&!_(e,"data-nav");)e=e.parentNode;
2if(_(e,"data-nav")){var n=rn=Number(w(e,"data-nav")),i=Ot||kt?n*gt/en:n*Dt;Li(Re?n:Math.min(Math.ceil(i),gt-1),t),on===n&&(hn&&zi(),rn=-1)}},keydown:function(t){t=Wi(t);var n=e.activeElement;if(_(n,"data-nav")){var r=[i.LEFT,i.RIGHT,i.ENTER,i.SPACE].indexOf(t.keyCode),o=Number(w(n,"data-nav"));r>=0&&(0===r?o>0&&Hi(Je[o-1]):1===r?o<en-1&&Hi(Je[o+1]):(rn=o,Li(o,t)))}}},Ce={mouseover:function(){hn&&(Ni(),dn=!0)},mouseout:function(){dn&&(Ri(),dn=!1)}},Pe={visibilitychange:function(){e.hidden?hn&&(Ni(),pn=!0):pn&&(Ri(),pn=!1)}},Te={keydown:function(t){t=Wi(t);var e=[i.LEFT,i.RIGHT].indexOf(t.keyCode);e>=0&&Ii(t,0===e?-1:1)}},Ee={touchstart:$i,touchmove:Gi,touchend:Ki,touchcancel:Ki},De={mousedown:$i,mousemove:Gi,mouseup:Ki,mouseleave:Ki},Le=Nn("controls"),Ie=Nn("nav"),Re=!!kt||t.navAsThumbnails,Ne=Nn("autoplay"),je=Nn("touch"),Fe=Nn("mouseDrag"),ze="tns-slide-active",Be="tns-slide-cloned",He="tns-complete",We={load:function(t){ci(Vi(t))},error:function(t){var e;e=Vi(t),v(e,"failed"),li(e)}},Ve="force"===t.preventScrollOnTouch;if(Le)var qe,Ue,Ye=t.controlsContainer,$e=t.controlsContainer?t.controlsContainer.outerHTML:"",Ge=t.prevButton,Xe=t.nextButton,Ke=t.prevButton?t.prevButton.outerHTML:"",Ze=t.nextButton?t.nextButton.outerHTML:"";if(Ie)var Je,Qe=t.navContainer,tn=t.navContainer?t.navContainer.outerHTML:"",en=kt?gt:Ji(),nn=0,rn=-1,on=En(),an=on,sn="tns-nav-active",cn="Carousel Page ",ln=" (Current Slide)";if(Ne)var un,hn,dn,fn,pn,gn="forward"===t.autoplayDirection?1:-1,mn=t.autoplayButton,bn=t.autoplayButton?t.autoplayButton.outerHTML:"",yn=["<span class='tns-visually-hidden'>"," animation</span>"];if(je||Fe)var vn,xn,_n={},wn={},Sn=!1,Mn=ct?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y};kt||On(_e||Me),z&&(oe=z,ae="translate",B?(ae+=ct?"3d(":"3d(0px, ",se=ct?", 0px, 0px)":", 0px)"):(ae+=ct?"X(":"Y(",se=")")),J&&(ht.className=ht.className.replace("tns-vpfix","")),function(){if(Nn("gutter"),lt.className="tns-outer",ut.className="tns-inner",lt.id=xe+"-ow",ut.id=xe+"-iw",""===ht.id&&(ht.id=xe),ve+=L||kt?" tns-subpixel":" tns-no-subpixel",ve+=D?" tns-calc":" tns-no-calc",kt&&(ve+=" tns-autowidth"),ve+=" tns-"+t.axis,ht.className+=ve,J?((at=e.createElement("div")).id=xe+"-mw",at.className="tns-ovh",lt.appendChild(at),at.appendChild(ut)):lt.appendChild(ut),zt&&((at||ut).className+=" tns-ah"),dt.insertBefore(lt,ht),ut.appendChild(ht),m(pt,(function(t,e){v(t,"tns-item"),t.id||(t.id=xe+"-item"+e),!J&&ot&&v(t,ot),M(t,{"aria-hidden":"true",tabindex:"-1"})})),te){for(var n=e.createDocumentFragment(),i=e.createDocumentFragment(),r=te;r--;){var o=r%gt,a=pt[o].cloneNode(!0);if(v(a,Be),A(a,"id"),i.insertBefore(a,i.firstChild),J){var s=pt[gt-1-o].cloneNode(!0);v(s,Be),A(s,"id"),n.appendChild(s)}}ht.insertBefore(n,ht.firstChild),ht.appendChild(i),pt=ht.children}}(),function(){if(!J)for(var e=le,i=le+Math.min(gt,Dt);e<i;e++){var r=pt[e];r.style.left=100*(e-le)/Dt+"%",v(r,nt),x(r,ot)}if(ct&&(L||kt?(p(Kt,"#"+xe+" > .tns-item","font-size:"+n.getComputedStyle(pt[0]).fontSize+";",g(Kt)),p(Kt,"#"+xe,"font-size:0;",g(Kt))):J&&m(pt,(function(t,e){t.style.marginLeft=function(t){return D?D+"("+100*t+"% / "+ee+")":100*t/ee+"%"}(e)}))),I){if(H){var o=at&&t.autoHeight?Vn(t.speed):"";p(Kt,"#"+xe+"-mw",o,g(Kt))}o=Fn(t.edgePadding,t.gutter,t.fixedWidth,t.speed,t.autoHeight),p(Kt,"#"+xe+"-iw",o,g(Kt)),J&&(o=ct&&!kt?"width:"+zn(t.fixedWidth,t.gutter,t.items)+";":"",H&&(o+=Vn(Nt)),p(Kt,"#"+xe,o,g(Kt))),o=ct&&!kt?Bn(t.fixedWidth,t.gutter,t.items):"",t.gutter&&(o+=Hn(t.gutter)),J||(H&&(o+=Vn(Nt)),V&&(o+=qn(Nt))),o&&p(Kt,"#"+xe+" > .tns-item",o,g(Kt))}else J&&zt&&(at.style[H]=Nt/1e3+"s"),ut.style.cssText=Fn(Ct,Pt,Ot,zt),J&&ct&&!kt&&(ht.style.width=zn(Ot,Pt,Dt)),o=ct&&!kt?Bn(Ot,Pt,Dt):"",Pt&&(o+=Hn(Pt)),o&&p(Kt,"#"+xe+" > .tns-item",o,g(Kt));if(K&&I)for(var a in K){a=parseInt(a);var s=K[a],c=(o="",""),l="",u="",h="",d=kt?null:jn("items",a),f=jn("fixedWidth",a),b=jn("speed",a),y=jn("edgePadding",a),_=jn("autoHeight",a),w=jn("gutter",a);H&&at&&jn("autoHeight",a)&&"speed"in s&&(c="#"+xe+"-mw{"+Vn(b)+"}"),("edgePadding"in s||"gutter"in s)&&(l="#"+xe+"-iw{"+Fn(y,w,f,b,_)+"}"),J&&ct&&!kt&&("fixedWidth"in s||"items"in s||Ot&&"gutter"in s)&&(u="width:"+zn(f,w,d)+";
2"),H&&"speed"in s&&(u+=Vn(b)),u&&(u="#"+xe+"{"+u+"}"),("fixedWidth"in s||Ot&&"gutter"in s||!J&&"items"in s)&&(h+=Bn(f,w,d)),"gutter"in s&&(h+=Hn(w)),!J&&"speed"in s&&(H&&(h+=Vn(b)),V&&(h+=qn(b))),h&&(h="#"+xe+" > .tns-item{"+h+"}"),(o=c+l+u+h)&&Kt.insertRule("@media (min-width: "+a/16+"em) {"+o+"}",Kt.cssRules.length)}}(),Un();var An=Ft?J?function(){var t=he,e=de;t+=Lt,e-=Lt,Ct?(t+=1,e-=1):Ot&&(Tt+Pt)%(Ot+Pt)&&(e-=1),te&&(le>e?le-=gt:le<t&&(le+=gt))}:function(){if(le>de)for(;le>=he+gt;)le-=gt;else if(le<he)for(;le<=de-gt;)le+=gt}:function(){le=Math.max(he,Math.min(de,le))},kn=J?function(){var t,e,n,i,r,o,a,s,c,l,u;Si(ht,""),H||!Nt?(Ci(),Nt&&P(ht)||Di()):(t=ht,e=oe,n=ae,i=se,r=ki(),o=Nt,a=Di,s=Math.min(o,10),c=r.indexOf("%")>=0?"%":"px",r=r.replace(c,""),l=Number(t.style[e].replace(n,"").replace(i,"").replace(c,"")),u=(r-l)/o*s,setTimeout((function r(){o-=s,l+=u,t.style[e]=n+l+c+i,o>0?setTimeout(r,s):a()}),s)),ct||Zi()}:function(){Qt=[];var t={};t[U]=t[Y]=Di,N(pt[ue],t),R(pt[le],t),Pi(ue,nt,it,!0),Pi(le,ot,nt),U&&Y&&Nt&&P(ht)||Di()};return{version:"2.9.4",getInfo:tr,events:ye,goTo:Li,play:function(){Ut&&!hn&&(Fi(),fn=!1)},pause:function(){hn&&(zi(),fn=!0)},isOn:bt,updateSliderHeight:gi,refresh:Un,destroy:function(){if(Kt.disabled=!0,Kt.ownerNode&&Kt.ownerNode.remove(),N(n,{resize:Kn}),Rt&&N(e,Te),Ye&&N(Ye,ke),Qe&&N(Qe,Oe),N(ht,Ce),N(ht,Pe),mn&&N(mn,{click:Bi}),Ut&&clearInterval(un),J&&U){var i={};i[U]=Di,N(ht,i)}Vt&&N(ht,Ee),qt&&N(ht,De);var r=[ft,$e,Ke,Ze,tn,bn];for(var o in G.forEach((function(e,n){var i="container"===e?lt:t[e];if("object"==typeof i&&i){var o=!!i.previousElementSibling&&i.previousElementSibling,a=i.parentNode;i.outerHTML=r[n],t[e]=o?o.nextElementSibling:a.firstElementChild}})),G=nt=it=rt=ot=ct=lt=ut=ht=dt=ft=pt=gt=st=mt=kt=Ot=Ct=Pt=Tt=Dt=Lt=It=Rt=Nt=jt=Ft=zt=Kt=Zt=yt=Qt=te=ee=ne=ie=re=oe=ae=se=ce=le=ue=he=de=pe=ge=me=be=ye=ve=xe=_e=we=Se=Me=Ae=ke=Oe=Ce=Pe=Te=Ee=De=Le=Ie=Re=Ne=je=Fe=ze=He=We=vt=Bt=Ht=Ye=$e=Ge=Xe=qe=Ue=Wt=Qe=tn=Je=en=nn=rn=on=an=sn=cn=ln=Ut=Yt=gn=$t=Gt=mn=bn=Xt=yn=un=hn=dn=fn=pn=_n=wn=vn=Sn=xn=Mn=Vt=qt=null,this)"rebuild"!==o&&(this[o]=null);bt=!1},rebuild:function(){return F(s(t,X))}}}function On(t){t&&(Bt=Wt=Vt=qt=Rt=Ut=Gt=Xt=!1)}function Cn(){for(var t=J?le-te:le;t<0;)t+=gt;return t%gt+1}function Pn(t){return t=t?Math.max(0,Math.min(Ft?gt-1:gt-Dt,t)):0,J?t+te:t}function Tn(t){for(null==t&&(t=le),J&&(t-=te);t<0;)t+=gt;return Math.floor(t%gt)}function En(){var t,e=Tn();return t=Re?e:Ot||kt?Math.ceil((e+1)*en/gt-1):Math.floor(e/Dt),!Ft&&J&&le===de&&(t=en-1),t}function Dn(){return n.innerWidth||e.documentElement.clientWidth||e.body.clientWidth}function Ln(t){return"top"===t?"afterbegin":"beforeend"}function In(t){if(null!=t){var n,i,r=e.createElement("div");return t.appendChild(r),i=(n=r.getBoundingClientRect()).right-n.left,r.remove(),i||In(t.parentNode)}}function Rn(){var t=Ct?2*Ct-Pt:0;return In(dt)-t}function Nn(e){if(t[e])return!0;if(K)for(var n in K)if(K[n][e])return!0;return!1}function jn(e,n){if(null==n&&(n=mt),"items"===e&&Ot)return Math.floor((Tt+Pt)/(Ot+Pt))||1;var i=t[e];if(K)for(var r in K)n>=parseInt(r)&&e in K[r]&&(i=K[r][e]);return"slideBy"===e&&"page"===i&&(i=jn("items")),J||"slideBy"!==e&&"items"!==e||(i=Math.floor(i)),i}function Fn(t,e,n,i,r){var o="";if(void 0!==t){var a=t;e&&(a-=e),o=ct?"margin: 0 "+a+"px 0 "+t+"px;":"margin: "+t+"px 0 "+a+"px 0;"}else if(e&&!n){var s="-"+e+"px";o="margin: 0 "+(ct?s+" 0 0":"0 "+s+" 0")+";"}return!J&&r&&H&&i&&(o+=Vn(i)),o}function zn(t,e,n){return t?(t+e)*ee+"px":D?D+"("+100*ee+"% / "+n+")":100*ee/n+"%"}function Bn(t,e,n){var i;if(t)i=t+e+"px";else{J||(n=Math.floor(n));var r=J?ee:n;i=D?D+"(100% / "+r+")":100/r+"%"}return i="width:"+i,"inner"!==Z?i+";":i+" !important;"}function Hn(t){var e="";return!1!==t&&(e=(ct?"padding-":"margin-")+(ct?"right":"bottom")+": "+t+"px;"),e}function Wn(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n&&(n="-"+n+"-"),n}function Vn(t){return Wn(H,18)+"transition-duration:"+t/1e3+"s;"}function qn(t){return Wn(V,17)+"animation-duration:"+t/1e3+"s;"}function Un(){if(Nn("autoHeight")||kt||!ct){var t=ht.querySelectorAll("img");m(t,(function(t){var e=t.src;Zt||(e&&e.indexOf("data:image")<0?(t.src="",R(t,We),v(t,"loading"),t.src=e):ci(t))})),r((function(){di(k(t),(function(){vt=!0}))}
vendor: 4,823 bytes, line 2
2)),Nn("autoHeight")&&(t=ui(le,Math.min(le+Dt-1,ee-1))),Zt?Yn():r((function(){di(k(t),Yn)}))}else J&&Oi(),Gn(),Xn()}function Yn(){if(kt&&gt>1){var t=Ft?le:gt-1;!function e(){var n=pt[t].getBoundingClientRect().left,i=pt[t-1].getBoundingClientRect().right;Math.abs(n-i)<=1?$n():setTimeout((function(){e()}),16)}()}else $n()}function $n(){ct&&!kt||(mi(),kt?(ie=Ai(),Se&&(Me=Jn()),de=ce(),On(_e||Me)):Zi()),J&&Oi(),Gn(),Xn()}function Gn(){if(bi(),lt.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+oi()+"</span>  of "+gt+"</div>"),xt=lt.querySelector(".tns-liveregion .current"),Ne){var e=Ut?"stop":"start";mn?M(mn,{"data-action":e}):t.autoplayButtonOutput&&(lt.insertAdjacentHTML(Ln(t.autoplayPosition),'<button type="button" data-action="'+e+'">'+yn[0]+e+yn[1]+$t[0]+"</button>"),mn=lt.querySelector("[data-action]")),mn&&R(mn,{click:Bi}),Ut&&(Fi(),Gt&&R(ht,Ce),Xt&&R(ht,Pe))}if(Ie){if(Qe)M(Qe,{"aria-label":"Carousel Pagination"}),m(Je=Qe.children,(function(t,e){M(t,{"data-nav":e,tabindex:"-1","aria-label":cn+(e+1),"aria-controls":xe})}));else{for(var n="",i=Re?"":'style="display:none"',r=0;r<gt;r++)n+='<button type="button" data-nav="'+r+'" tabindex="-1" aria-controls="'+xe+'" '+i+' aria-label="'+cn+(r+1)+'"></button>';n='<div class="tns-nav" aria-label="Carousel Pagination">'+n+"</div>",lt.insertAdjacentHTML(Ln(t.navPosition),n),Qe=lt.querySelector(".tns-nav"),Je=Qe.children}if(Qi(),H){var o=H.substring(0,H.length-18).toLowerCase(),a="transition: all "+Nt/1e3+"s";o&&(a="-"+o+"-"+a),p(Kt,"[aria-controls^="+xe+"-item]",a,g(Kt))}M(Je[on],{"aria-label":cn+(on+1)+ln}),A(Je[on],"tabindex"),v(Je[on],sn),R(Qe,Oe)}Le&&(Ye||Ge&&Xe||(lt.insertAdjacentHTML(Ln(t.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+xe+'">'+Ht[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+xe+'">'+Ht[1]+"</button></div>"),Ye=lt.querySelector(".tns-controls")),Ge&&Xe||(Ge=Ye.children[0],Xe=Ye.children[1]),t.controlsContainer&&M(Ye,{"aria-label":"Carousel Navigation",tabindex:"0"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&M([Ge,Xe],{"aria-controls":xe,tabindex:"-1"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&(M(Ge,{"data-controls":"prev"}),M(Xe,{"data-controls":"next"})),qe=vi(Ge),Ue=vi(Xe),wi(),Ye?R(Ye,ke):(R(Ge,ke),R(Xe,ke))),ti()}function Xn(){if(J&&U){var i={};i[U]=Di,R(ht,i)}Vt&&R(ht,Ee,t.preventScrollOnTouch),qt&&R(ht,De),Rt&&R(e,Te),"inner"===Z?ye.on("outerResized",(function(){Zn(),ye.emit("innerLoaded",tr())})):(K||Ot||kt||zt||!ct)&&R(n,{resize:Kn}),zt&&("outer"===Z?ye.on("innerLoaded",hi):_e||hi()),si(),_e?ii():Me&&ni(),ye.on("indexChanged",fi),"inner"===Z&&ye.emit("innerLoaded",tr()),"function"==typeof be&&be(tr()),bt=!0}function Kn(t){r((function(){Zn(Wi(t))}))}function Zn(n){if(bt){"outer"===Z&&ye.emit("outerResized",tr(n)),mt=Dn();var i,r=st,o=!1;K&&(Qn(),(i=r!==st)&&ye.emit("newBreakpointStart",tr(n)));var a,s,c=Dt,l=_e,u=Me,h=Rt,d=Bt,f=Wt,b=Vt,y=qt,_=Ut,w=Gt,S=Xt,M=le;if(i){var A=Ot,k=zt,P=Ht,T=Et,E=$t;if(!I)var D=Pt,L=Ct}if(Rt=jn("arrowKeys"),Bt=jn("controls"),Wt=jn("nav"),Vt=jn("touch"),Et=jn("center"),qt=jn("mouseDrag"),Ut=jn("autoplay"),Gt=jn("autoplayHoverPause"),Xt=jn("autoplayResetOnVisibility"),i&&(_e=jn("disable"),Ot=jn("fixedWidth"),Nt=jn("speed"),zt=jn("autoHeight"),Ht=jn("controlsText"),$t=jn("autoplayText"),Yt=jn("autoplayTimeout"),I||(Ct=jn("edgePadding"),Pt=jn("gutter"))),On(_e),Tt=Rn(),ct&&!kt||_e||(mi(),ct||(Zi(),o=!0)),(Ot||kt)&&(ie=Ai(),de=ce()),(i||Ot)&&(Dt=jn("items"),Lt=jn("slideBy"),(s=Dt!==c)&&(Ot||kt||(de=ce()),An())),i&&_e!==l&&(_e?ii():function(){if(we){if(Kt.disabled=!1,ht.className+=ve,Oi(),Ft)for(var t=te;t--;)J&&C(pt[t]),C(pt[ee-t-1]);if(!J)for(var e=le,n=le+gt;e<n;e++){var i=pt[e],r=e<le+Dt?nt:ot;i.style.left=100*(e-le)/Dt+"%",v(i,r)}ei(),we=!1}}()),Se&&(i||Ot||kt)&&(Me=Jn())!==u&&(Me?(Ci(ki(Pn(0))),ni()):(function(){if(Ae){if(Ct&&I&&(ut.style.margin=""),te)for(var t="tns-transparent",e=te;e--;)J&&x(pt[e],t),x(pt[ee-e-1],t);ei(),Ae=!1}}(),o=!0)),On(_e||Me),Ut||(Gt=Xt=!1),Rt!==h&&(Rt?R(e,Te):N(e,Te)),Bt!==d&&(Bt?Ye?C(Ye):(Ge&&C(Ge),Xe&&C(Xe)):Ye?O(Ye):(Ge&&O(Ge),Xe&&O(Xe))),Wt!==f&&(Wt?(C(Qe),Qi()):O(Qe)),Vt!==b&&(Vt?R(ht,Ee,t.preventScrollOnTouch):N(ht,Ee)),qt!==y&&(qt?R(ht,De):N(ht,De)),Ut!==_&&(Ut?(mn&&C(mn),hn||fn||Fi()):(mn&&O(mn),hn&&zi())),Gt!==w&&(Gt?R(ht,Ce):N(ht,Ce)),Xt!==S&&(Xt?R(e,Pe):N(e,Pe)),i){if(Ot===A&&Et===T||(o=!0),zt!==k&&(zt||(ut.style.height="")),Bt&&Ht!==P&&(Ge.innerHTML=Ht[0],Xe.innerHTML=Ht[1]),mn&&$t!==E){var j=Ut?1:0,F=mn.innerHTML,z=F.length-E[j].length;F.substring(z)===E[j]&&(mn.innerHTML=F.substring(0,z)+$t[j])}}else Et&&(Ot||kt)&&(o=!0);
2if((s||Ot&&!kt)&&(en=Ji(),Qi()),(a=le!==M)?(ye.emit("indexChanged",tr()),o=!0):s?a||fi():(Ot||kt)&&(si(),bi(),ri()),s&&!J&&function(){for(var t=le+Math.min(gt,Dt),e=ee;e--;){var n=pt[e];e>=le&&e<t?(v(n,"tns-moving"),n.style.left=100*(e-le)/Dt+"%",v(n,nt),x(n,ot)):n.style.left&&(n.style.left="",v(n,ot),x(n,nt)),x(n,it)}setTimeout((function(){m(pt,(function(t){x(t,"tns-moving")}))}),300)}(),!_e&&!Me){if(i&&!I&&(Ct===L&&Pt===D||(ut.style.cssText=Fn(Ct,Pt,Ot,Nt,zt)),ct)){J&&(ht.style.width=zn(Ot,Pt,Dt));var B=Bn(Ot,Pt,Dt)+Hn(Pt);!function(t,e){"deleteRule"in t?t.deleteRule(e):t.removeRule(e)}(Kt,g(Kt)-1),p(Kt,"#"+xe+" > .tns-item",B,g(Kt))}zt&&hi(),o&&(Oi(),ue=le)}i&&ye.emit("newBreakpointEnd",tr(n))}}function Jn(){if(!Ot&&!kt)return gt<=(Et?Dt-(Dt-1)/2:Dt);var t=Ot?(Ot+Pt)*gt:yt[gt],e=Ct?Tt+2*Ct:Tt+Pt;return Et&&(e-=Ot?(Tt-Ot)/2:(Tt-(yt[le+1]-yt[le]-Pt))/2),t<=e}function Qn(){for(var t in st=0,K)t=parseInt(t),mt>=t&&(st=t)}function ti(){!Ut&&mn&&O(mn),!Wt&&Qe&&O(Qe),Bt||(Ye?O(Ye):(Ge&&O(Ge),Xe&&O(Xe)))}function ei(){Ut&&mn&&C(mn),Wt&&Qe&&C(Qe),Bt&&(Ye?C(Ye):(Ge&&C(Ge),Xe&&C(Xe)))}function ni(){if(!Ae){if(Ct&&(ut.style.margin="0px"),te)for(var t="tns-transparent",e=te;e--;)J&&v(pt[e],t),v(pt[ee-e-1],t);ti(),Ae=!0}}function ii(){if(!we){if(Kt.disabled=!0,ht.className=ht.className.replace(ve.substring(1),""),A(ht,["style"]),Ft)for(var t=te;t--;)J&&O(pt[t]),O(pt[ee-t-1]);if(ct&&J||A(ut,["style"]),!J)for(var e=le,n=le+gt;e<n;e++){var i=pt[e];A(i,["style"]),x(i,nt),x(i,ot)}ti(),we=!0}}function ri(){var t=oi();xt.innerHTML!==t&&(xt.innerHTML=t)}function oi(){var t=ai(),e=t[0]+1,n=t[1]+1;return e===n?e+"":e+" to "+n}function ai(t){null==t&&(t=ki());var e,n,i,r=le;if(Et||Ct?(kt||Ot)&&(n=-(parseFloat(t)+Ct),i=n+Tt+2*Ct):kt&&(n=yt[le],i=n+Tt),kt)yt.forEach((function(t,o){o<ee&&((Et||Ct)&&t<=n+.5&&(r=o),i-t>=.5&&(e=o))}));else{if(Ot){var o=Ot+Pt;Et||Ct?(r=Math.floor(n/o),e=Math.ceil(i/o-1)):e=r+Math.ceil(Tt/o)-1}else if(Et||Ct){var a=Dt-1;if(Et?(r-=a/2,e=le+a/2):e=le+a,Ct){var s=Ct*Dt/Tt;r-=s,e+=s}r=Math.floor(r),e=Math.ceil(e)}else e=r+Dt-1;r=Math.max(r,0),e=Math.min(e,ee-1)}return[r,e]}function si(){if(Zt&&!_e){var t=ai();t.push(Jt),ui.apply(null,t).forEach((function(t){if(!y(t,He)){var e={};e[U]=function(t){t.stopPropagation()},R(t,e),R(t,We),t.src=w(t,"data-src");var n=w(t,"data-srcset");n&&(t.srcset=n),v(t,"loading")}}))}}function ci(t){v(t,"loaded"),li(t)}function li(t){v(t,He),x(t,"loading"),N(t,We)}function ui(t,e,n){var i=[];for(n||(n="img");t<=e;)m(pt[t].querySelectorAll(n),(function(t){i.push(t)})),t++;return i}function hi(){var t=ui.apply(null,ai());r((function(){di(t,gi)}))}function di(t,e){return vt?e():(t.forEach((function(e,n){!Zt&&e.complete&&li(e),y(e,He)&&t.splice(n,1)})),t.length?void r((function(){di(t,e)})):e())}function fi(){si(),bi(),ri(),wi(),function(){if(Wt&&(on=rn>=0?rn:En(),rn=-1,on!==an)){var t=Je[an],e=Je[on];M(t,{tabindex:"-1","aria-label":cn+(an+1)}),x(t,sn),M(e,{"aria-label":cn+(on+1)+ln}),A(e,"tabindex"),v(e,sn),an=on}}()}function pi(t,e){for(var n=[],i=t,r=Math.min(t+e,ee);i<r;i++)n.push(pt[i].offsetHeight);return Math.max.apply(null,n)}function gi(){var t=zt?pi(le,Dt):pi(te,gt),e=at||ut;e.style.height!==t&&(e.style.height=t+"px")}function mi(){yt=[0];var t=ct?"left":"top",e=ct?"right":"bottom",n=pt[0].getBoundingClientRect()[t];m(pt,(function(i,r){r&&yt.push(i.getBoundingClientRect()[t]-n),r===ee-1&&yt.push(i.getBoundingClientRect()[e]-n)}))}function bi(){var t=ai(),e=t[0],n=t[1];m(pt,(function(t,i){i>=e&&i<=n?_(t,"aria-hidden")&&(A(t,["aria-hidden","tabindex"]),v(t,ze)):_(t,"aria-hidden")||(M(t,{"aria-hidden":"true",tabindex:"-1"}),x(t,ze))}))}function yi(t){return t.nodeName.toLowerCase()}function vi(t){return"button"===yi(t)}function xi(t){return"true"===t.getAttribute("aria-disabled")}function _i(t,e,n){t?e.disabled=n:e.setAttribute("aria-disabled",n.toString())}function wi(){if(Bt&&!jt&&!Ft){var t=qe?Ge.disabled:xi(Ge),e=Ue?Xe.disabled:xi(Xe),n=le<=he,i=!jt&&le>=de;
2n&&!t&&_i(qe,Ge,!0),!n&&t&&_i(qe,Ge,!1),i&&!e&&_i(Ue,Xe,!0),!i&&e&&_i(Ue,Xe,!1)}}function Si(t,e){H&&(t.style[H]=e)}function Mi(t){return null==t&&(t=le),kt?(Tt-(Ct?Pt:0)-(yt[t+1]-yt[t]-Pt))/2:Ot?(Tt-Ot)/2:(Dt-1)/2}function Ai(){var t=Tt+(Ct?Pt:0)-(Ot?(Ot+Pt)*ee:yt[ee]);return Et&&!Ft&&(t=Ot?-(Ot+Pt)*(ee-1)-Mi():Mi(ee-1)-yt[ee-1]),t>0&&(t=0),t}function ki(t){var e;if(null==t&&(t=le),ct&&!kt)if(Ot)e=-(Ot+Pt)*t,Et&&(e+=Mi());else{var n=z?ee:Dt;Et&&(t-=Mi()),e=100*-t/n}else e=-yt[t],Et&&kt&&(e+=Mi());return ne&&(e=Math.max(e,ie)),e+(!ct||kt||Ot?"px":"%")}function Oi(t){Si(ht,"0s"),Ci(t)}function Ci(t){null==t&&(t=ki()),ht.style[oe]=ae+t+se}function Pi(t,e,n,i){var r=t+Dt;Ft||(r=Math.min(r,ee));for(var o=t;o<r;o++){var a=pt[o];i||(a.style.left=100*(o-le)/Dt+"%"),rt&&W&&(a.style[W]=a.style[q]=rt*(o-t)/1e3+"s"),x(a,e),v(a,n),i&&Qt.push(a)}}function Ti(t,e){re&&An(),(le!==ue||e)&&(ye.emit("indexChanged",tr()),ye.emit("transitionStart",tr()),zt&&hi(),hn&&t&&["click","keydown"].indexOf(t.type)>=0&&zi(),me=!0,kn())}function Ei(t){return t.toLowerCase().replace(/-/g,"")}function Di(t){if(J||me){if(ye.emit("transitionEnd",tr(t)),!J&&Qt.length>0)for(var e=0;e<Qt.length;e++){var n=Qt[e];n.style.left="",q&&W&&(n.style[q]="",n.style[W]=""),x(n,it),v(n,ot)}if(!t||!J&&t.target.parentNode===ht||t.target===ht&&Ei(t.propertyName)===Ei(oe)){if(!re){var i=le;An(),le!==i&&(ye.emit("indexChanged",tr()),Oi())}"inner"===Z&&ye.emit("innerLoaded",tr()),me=!1,ue=le}}}function Li(t,e){if(!Me)if("prev"===t)Ii(e,-1);else if("next"===t)Ii(e,1);else{if(me){if(fe)return;Di()}var n=Tn(),i=0;if("first"===t?i=-n:"last"===t?i=J?gt-Dt-n:gt-1-n:("number"!=typeof t&&(t=parseInt(t)),isNaN(t)||(e||(t=Math.max(0,Math.min(gt-1,t))),i=t-n)),!J&&i&&Math.abs(i)<Dt){var r=i>0?1:-1;i+=le+i-gt>=he?gt*r:2*gt*r*-1}le+=i,J&&Ft&&(le<he&&(le+=gt),le>de&&(le-=gt)),Tn(le)!==Tn(ue)&&Ti(e)}}function Ii(t,e){if(me){if(fe)return;Di()}var n;if(!e){for(var i=Vi(t=Wi(t));i!==Ye&&[Ge,Xe].indexOf(i)<0;)i=i.parentNode;var r=[Ge,Xe].indexOf(i);r>=0&&(n=!0,e=0===r?-1:1)}if(jt){if(le===he&&-1===e)return void Li("last",t);if(le===de&&1===e)return void Li("first",t)}e&&(le+=Lt*e,kt&&(le=Math.floor(le)),Ti(n||t&&"keydown"===t.type?t:null))}function Ri(){un=setInterval((function(){Ii(null,gn)}),Yt),hn=!0}function Ni(){clearInterval(un),hn=!1}function ji(t,e){M(mn,{"data-action":t}),mn.innerHTML=yn[0]+t+yn[1]+e}function Fi(){Ri(),mn&&ji("stop",$t[1])}function zi(){Ni(),mn&&ji("start",$t[0])}function Bi(){hn?(zi(),fn=!0):(Fi(),fn=!1)}function Hi(t){t.focus()}function Wi(t){return qi(t=t||n.event)?t.changedTouches[0]:t}function Vi(t){return t.target||n.event.srcElement}function qi(t){return t.type.indexOf("touch")>=0}function Ui(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Yi(){return o=wn.y-_n.y,a=wn.x-_n.x,e=Math.atan2(o,a)*(180/Math.PI),n=pe,i=!1,(r=Math.abs(90-Math.abs(e)))>=90-n?i="horizontal":r<=n&&(i="vertical"),i===t.axis;var e,n,i,r,o,a}function $i(t){if(me){if(fe)return;Di()}Ut&&hn&&Ni(),Sn=!0,xn&&(a(xn),xn=null);var e=Wi(t);ye.emit(qi(t)?"touchStart":"dragStart",tr(t)),!qi(t)&&["img","a"].indexOf(yi(Vi(t)))>=0&&Ui(t),wn.x=_n.x=e.clientX,wn.y=_n.y=e.clientY,J&&(vn=parseFloat(ht.style[oe].replace(ae,"")),Si(ht,"0s"))}function Gi(t){if(Sn){var e=Wi(t);wn.x=e.clientX,wn.y=e.clientY,J?xn||(xn=r((function(){Xi(t)}))):("?"===ge&&(ge=Yi()),ge&&(Ve=!0)),("boolean"!=typeof t.cancelable||t.cancelable)&&Ve&&t.preventDefault()}}function Xi(t){if(ge){if(a(xn),Sn&&(xn=r((function(){Xi(t)}))),"?"===ge&&(ge=Yi()),ge){!Ve&&qi(t)&&(Ve=!0);try{t.type&&ye.emit(qi(t)?"touchMove":"dragMove",tr(t))}catch(t){}var e=vn,n=Mn(wn,_n);!ct||Ot||kt?(e+=n,e+="px"):(e+=z?n*Dt*100/((Tt+Pt)*ee):100*n/(Tt+Pt),e+="%"),ht.style[oe]=ae+e+se}}else Sn=!1}function Ki(e){if(Sn){xn&&(a(xn),xn=null),J&&Si(ht,""),Sn=!1;var n=Wi(e);wn.x=n.clientX,wn.y=n.clientY;var i=Mn(wn,_n);if(Math.abs(i)){if(!qi(e)){var o=Vi(e);R(o,{click:function t(e){Ui(e),N(o,{click:t})}})}J?xn=r((function(){if(ct&&!kt){var t=-i*Dt/(Tt+Pt);t=i>0?Math.floor(t):Math.ceil(t),le+=t}else{var n=-(vn+i);if(n<=0)le=he;else if(n>=yt[ee-1])le=de;else for(var r=0;r<ee&&n>=yt[r];)le=r,n>yt[r]&&i<0&&(le+=1),r++}Ti(e,i),ye.emit(qi(e)?"touchEnd":"dragEnd",tr(e))})):ge&&Ii(e,i>0?-1:1)}}
2"auto"===t.preventScrollOnTouch&&(Ve=!1),pe&&(ge="?"),Ut&&!hn&&Ri()}function Zi(){(at||ut).style.height=yt[le+Dt]-yt[le]+"px"}function Ji(){var t=Ot?(Ot+Pt)*gt/Tt:gt/Dt;return Math.min(Math.ceil(t),gt)}function Qi(){if(Wt&&!Re&&en!==nn){var t=nn,e=en,n=C;for(nn>en&&(t=en,e=nn,n=O);t<e;)n(Je[t]),t++;nn=en}}function tr(t){return{container:ht,slideItems:pt,navContainer:Qe,navItems:Je,controlsContainer:Ye,hasControls:Le,prevButton:Ge,nextButton:Xe,items:Dt,slideBy:Lt,cloneCount:te,slideCount:gt,slideCountNew:ee,index:le,indexCached:ue,displayIndex:Cn(),navCurrentIndex:on,navCurrentIndexCached:an,pages:en,pagesCached:nn,sheet:Kt,isOn:bt,event:t||{}}}$&&console.warn("No slides found in",t.container)}},6349:(t,e,n)=>{"use strict";function i(t){return t+.5|0}n.r(e),n.d(e,{Animation:()=>An,Animations:()=>kn,ArcElement:()=>Pr,BarController:()=>$n,BarElement:()=>Ur,BasePlatform:()=>Si,BasicPlatform:()=>Mi,BubbleController:()=>Gn,CategoryScale:()=>Uo,Chart:()=>Ar,Colors:()=>Jr,DatasetController:()=>Fn,Decimation:()=>eo,DomPlatform:()=>zi,DoughnutController:()=>Xn,Element:()=>Hi,Filler:()=>vo,Interaction:()=>ui,Legend:()=>So,LineController:()=>Kn,LineElement:()=>jr,LinearScale:()=>Go,LogarithmicScale:()=>Qo,PieController:()=>Jn,PointElement:()=>zr,PolarAreaController:()=>Zn,RadarController:()=>Qn,RadialLinearScale:()=>sa,Scale:()=>Ki,ScatterController:()=>ti,SubTitle:()=>Oo,Ticks:()=>Zt,TimeScale:()=>ga,TimeSeriesScale:()=>ba,Title:()=>Ao,Tooltip:()=>Wo,_adapters:()=>ri,_detectPlatform:()=>Bi,animator:()=>wn,controllers:()=>ei,default:()=>xa,defaults:()=>ie,elements:()=>Yr,layouts:()=>wi,plugins:()=>Vo,registerables:()=>va,registry:()=>Qi,scales:()=>ya});const r=(t,e,n)=>Math.max(Math.min(t,n),e);function o(t){return r(i(2.55*t),0,255)}function a(t){return r(i(255*t),0,255)}function s(t){return r(i(t/2.55)/100,0,1)}function c(t){return r(i(100*t),0,100)}const l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},u=[..."0123456789ABCDEF"],h=t=>u[15&t],d=t=>u[(240&t)>>4]+u[15&t],f=t=>(240&t)>>4==(15&t);const p=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function m(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function b(t,e,n){const i=g(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function y(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),o=Math.min(e,n,i),a=(r+o)/2;let s,c,l;return r!==o&&(l=r-o,c=a>.5?l/(2-r-o):l/(r+o),s=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,l,r),s=60*s+.5),[0|s,c||0,a]}function v(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(a)}function x(t,e,n){return v(g,t,e,n)}function _(t){return(t%360+360)%360}const w={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let M;const A=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,k=t=>
vendor: 16,946 bytes, line 2
2t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,O=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function C(t,e,n){if(t){let i=y(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=x(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function P(t,e){return t?Object.assign(e||{},t):t}function T(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=a(t[3]))):(e=P(t,{r:0,g:0,b:0,a:1})).a=a(e.a),e}function E(t){return"r"===t.charAt(0)?function(t){const e=A.exec(t);let n,i,a,s=255;if(e){if(e[7]!==n){const t=+e[7];s=e[8]?o(t):r(255*t,0,255)}return n=+e[1],i=+e[3],a=+e[5],n=255&(e[2]?o(n):r(n,0,255)),i=255&(e[4]?o(i):r(i,0,255)),a=255&(e[6]?o(a):r(a,0,255)),{r:n,g:i,b:a,a:s}}}(t):function(t){const e=p.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?o(+e[5]):a(+e[5]));const r=_(+e[2]),s=+e[3]/100,c=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return v(b,t,e,n)}(r,s,c):"hsv"===e[1]?function(t,e,n){return v(m,t,e,n)}(r,s,c):x(r,s,c),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class D{constructor(t){if(t instanceof D)return t;const e=typeof t;let n;var i,r,o;"object"===e?n=T(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*l[i[1]],g:255&17*l[i[2]],b:255&17*l[i[3]],a:5===o?17*l[i[4]]:255}:7!==o&&9!==o||(r={r:l[i[1]]<<4|l[i[2]],g:l[i[3]]<<4|l[i[4]],b:l[i[5]]<<4|l[i[6]],a:9===o?l[i[7]]<<4|l[i[8]]:255})),n=r||function(t){M||(M=function(){const t={},e=Object.keys(S),n=Object.keys(w);let i,r,o,a,s;for(i=0;i<e.length;i++){for(a=s=e[i],r=0;r<n.length;r++)o=n[r],s=s.replace(o,w[o]);o=parseInt(S[a],16),t[s]=[o>>16&255,o>>8&255,255&o]}return t}(),M.transparent=[0,0,0,0]);const e=M[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||E(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=P(this._rgb);return t&&(t.a=s(t.a)),t}set rgb(t){this._rgb=T(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${s(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>f(t.r)&&f(t.g)&&f(t.b)&&f(t.a))(t)?h:d,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=y(t),n=e[0],i=c(e[1]),r=c(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${s(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const o=e===r?.5:e,a=2*o-1,s=n.a-i.a,c=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-c,n.r=255&c*n.r+r*i.r+.5,n.g=255&c*n.g+r*i.g+.5,n.b=255&c*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=O(s(t.r)),r=O(s(t.g)),o=O(s(t.b));return{r:a(k(i+n*(O(s(e.r))-i))),g:a(k(r+n*(O(s(e.g))-r))),b:a(k(o+n*(O(s(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new D(this.rgb)}alpha(t){return this._rgb.a=a(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=i(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return C(this._rgb,2,t),this}darken(t){return C(this._rgb,2,-t),this}saturate(t){return C(this._rgb,1,t),this}desaturate(t){return C(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=y(t);n[0]=_(n[0]+e),n=x(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function L(){}const I=(()=>{let t=0;return()=>t++})();function R(t){return null==t}function N(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function j(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function F(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function z(t,e){return F(t)?t:e}function B(t,e){return void 0===t?e:t}const H=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function W(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function V(t,e,n,i){let r,o,a;if(N(t))if(o=t.length,i)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<o;r++)e.call(n,t[r],r);else if(j(t))for(a=Object.keys(t),o=a.length,r=0;r<o;r++)e.call(n,t[a[r]],a[r])}function q(t,e){let n,i,r,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],o=e[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function U(t){if(N(t))return t.map(U);if(j(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=U(t[n[r]]);return e}return t}function Y(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function $(t,e,n,i){if(!Y(t))return;const r=e[t],o=n[t];j(r)&&j(o)?G(r,o,i):e[t]=U(o)}function G(t,e,n){const i=N(e)?e:[e],r=i.length;if(!j(t))return t;const o=(n=n||{}).merger||$;let a;for(let e=0;e<r;++e){if(a=i[e],!j(a))continue;const r=Object.keys(a);for(let e=0,i=r.length;e<i;++e)o(r[e],t,a,n)}return t}function X(t,e){return G(t,e,{merger:K})}function K(t,e,n){if(!Y(t))return;const i=e[t],r=n[t];j(i)&&j(r)?X(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=U(r))}const Z={"":t=>t,x:t=>t.x,y:t=>t.y};function J(t,e){const n=Z[e]||(Z[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function Q(t){return t.charAt(0).toUpperCase()+t.slice(1)}const tt=t=>void 0!==t,et=t=>"function"==typeof t,nt=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},it=Math.PI,rt=2*it,ot=rt+it,at=Number.POSITIVE_INFINITY,st=it/180,ct=it/2,lt=it/4,ut=2*it/3,ht=Math.log10,dt=Math.sign;function ft(t,e,n){return Math.abs(t-e)<n}function pt(t){const e=Math.round(t);t=ft(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ht(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function gt(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function mt(t,e,n){let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function bt(t){return t*(it/180)}function yt(t){return t*(180/it)}function vt(t){if(!F(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function xt(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*it&&(o+=rt),{angle:o,distance:r}}function _t(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function wt(t,e){return(t-e+ot)%rt-it}function St(t){return(t%rt+rt)%rt}function Mt(t,e,n,i){const r=St(t),o=St(e),a=St(n),s=St(o-r),c=St(a-r),l=St(r-o),u=St(r-a);return r===o||r===a||i&&o===a||s>c&&l<u}function At(t,e,n){return Math.max(e,Math.min(n,t))}function kt(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Ot(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,o=0;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const Ct=(t,e,n,i)=>Ot(t,n,i?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),Pt=(t,e,n)=>Ot(t,n,(i=>t[i][e]>=n)),Tt=["push","pop","shift","splice","unshift"];function Et(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(Tt.forEach((e=>{delete t[e]})),delete t._chartjs)}function Dt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Lt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function It(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,Lt.call(window,(()=>{i=!1,t.apply(e,n)})))}}const Rt=t=>"start"===t?"left":"end"===t?"right":"center",Nt=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function jt(t,e,n){const i=e.length;let r=0,o=i;if(t._sorted){const{iScale:a,vScale:s,_parsed:c}=t,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=a.axis,{min:h,max:d,minDefined:f,maxDefined:p}=a.getUserBounds();if(f){if(r=Math.min(Ct(c,u,h).lo,n?i:Ct(e,u,a.getPixelForValue(h)).lo),l){const t=c.slice(0,r+1).reverse().findIndex((t=>!R(t[s.axis])));r-=Math.max(0,t)}r=At(r,0,i-1)}if(p){let t=Math.max(Ct(c,a.axis,d,!0).hi+1,n?0:Ct(e,u,a.getPixelForValue(d),!0).hi+1);if(l){const e=c.slice(t-1).findIndex((t=>!R(t[s.axis])));t+=Math.max(0,e)}o=At(t,r,i)-r}else o=i-r}return{start:r,count:o}}function Ft(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=r,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),o}const zt=t=>0===t||1===t,Bt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*rt/n),Ht=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*rt/n)+1,Wt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*ct),easeOutSine:t=>Math.sin(t*ct),easeInOutSine:t=>-.5*(Math.cos(it*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>zt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>zt(t)?t:Bt(t,.075,.3),easeOutElastic:t=>zt(t)?t:Ht(t,.075,.3),easeInOutElastic(t){const e=.1125;return zt(t)?t:t<.5?.5*Bt(2*t,e,.45):.5+.5*Ht(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Wt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*Wt.easeInBounce(2*t):.5*Wt.easeOutBounce(2*t-1)+.5};function Vt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function qt(t){return Vt(t)?t:new D(t)}function Ut(t){return Vt(t)?t:new D(t).saturate(.5).darken(.1).hexString()}const Yt=["x","y","borderWidth","radius","tension"],$t=["color","borderColor","backgroundColor"],Gt=new Map;function Xt(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Gt.get(n);return i||(i=new Intl.NumberFormat(t,e),Gt.set(n,i)),i}(e,n).format(t)}const Kt={values:t=>N(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const a=ht(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),Xt(t,i,c)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(ht(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Kt.numeric.call(this,t,e,n):""}};var Zt={formatters:Kt};const Jt=Object.create(null),Qt=Object.create(null);function te(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function ee(t,e,n){return"string"==typeof e?G(te(t,e),n):G(te(t,""),e)}class ne{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ut(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ut(e.borderColor),this.hoverColor=(t,e)=>Ut(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return ee(this,t,e)}get(t){return te(this,t)}describe(t,e){return ee(Qt,t,e)}override(t,e){return ee(Jt,t,e)}route(t,e,n,i){const r=te(this,t),o=te(this,n),a="_"+e;Object.defineProperties(r,{[a]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[i];return j(t)?Object.assign({},e,t):B(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var ie=new ne({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:$t},numbers:{type:"number",properties:Yt}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function re(t,e,n,i,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i}function oe(t,e,n,i){let r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let a=0;const s=n.length;let c,l,u,h,d;for(c=0;c<s;c++)if(h=n[c],null==h||N(h)){if(N(h))for(l=0,u=h.length;l<u;l++)d=h[l],null==d||N(d)||(a=re(t,r,o,a,d))}else a=re(t,r,o,a,h);t.restore();const f=o.length/2;if(f>n.length){for(c=0;c<f;c++)delete r[o[c]];o.splice(0,f)}return a}function ae(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function se(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ce(t,e,n,i){le(t,e,n,i,null)}function le(t,e,n,i,r){let o,a,s,c,l,u,h,d;const f=e.pointStyle,p=e.rotation,g=e.radius;let m=(p||0)*st;if(f&&"object"==typeof f&&(o=f.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,i),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:r?t.ellipse(n,i,r/2,g,0,0,rt):t.arc(n,i,g,0,rt),t.closePath();break;case"triangle":u=r?r/2:g,t.moveTo(n+Math.sin(m)*u,i-Math.cos(m)*g),m+=ut,t.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*g),m+=ut,t.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*g),t.closePath();break;case"rectRounded":l=.516*g,c=g-l,a=Math.cos(m+lt)*c,h=Math.cos(m+lt)*(r?r/2-l:c),s=Math.sin(m+lt)*c,d=Math.sin(m+lt)*(r?r/2-l:c),t.arc(n-h,i-s,l,m-it,m-ct),t.arc(n+d,i-a,l,m-ct,m),t.arc(n+h,i+s,l,m,m+ct),t.arc(n-d,i+a,l,m+ct,m+it),t.closePath();break;
vendor: 3,897 bytes, line 2
2case"rect":if(!p){c=Math.SQRT1_2*g,u=r?r/2:c,t.rect(n-u,i-c,2*u,2*c);break}m+=lt;case"rectRot":h=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,d=Math.sin(m)*(r?r/2:g),t.moveTo(n-h,i-s),t.lineTo(n+d,i-a),t.lineTo(n+h,i+s),t.lineTo(n-d,i+a),t.closePath();break;case"crossRot":m+=lt;case"cross":h=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,d=Math.sin(m)*(r?r/2:g),t.moveTo(n-h,i-s),t.lineTo(n+h,i+s),t.moveTo(n+d,i-a),t.lineTo(n-d,i+a);break;case"star":h=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,d=Math.sin(m)*(r?r/2:g),t.moveTo(n-h,i-s),t.lineTo(n+h,i+s),t.moveTo(n+d,i-a),t.lineTo(n-d,i+a),m+=lt,h=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,d=Math.sin(m)*(r?r/2:g),t.moveTo(n-h,i-s),t.lineTo(n+h,i+s),t.moveTo(n+d,i-a),t.lineTo(n-d,i+a);break;case"line":a=r?r/2:Math.cos(m)*g,s=Math.sin(m)*g,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(m)*(r?r/2:g),i+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function ue(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function he(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function de(t){t.restore()}function fe(t,e,n,i,r){if(!e)return t.lineTo(n.x,n.y);if("middle"===r){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===r!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function pe(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function ge(t,e,n,i,r){if(r.strikethrough||r.underline){const o=t.measureText(i),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,c=n-o.actualBoundingBoxAscent,l=n+o.actualBoundingBoxDescent,u=r.strikethrough?(c+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function me(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function be(t,e,n,i,r,o={}){const a=N(e)?e:[e],s=o.strokeWidth>0&&""!==o.strokeColor;let c,l;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),R(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),c=0;c<a.length;++c)l=a[c],o.backdrop&&me(t,o.backdrop),s&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),R(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(l,n,i,o.maxWidth)),t.fillText(l,n,i,o.maxWidth),ge(t,n,i,l,o),i+=Number(r.lineHeight);t.restore()}function ye(t,e){const{x:n,y:i,w:r,h:o,radius:a}=e;t.arc(n+a.topLeft,i+a.topLeft,a.topLeft,1.5*it,it,!0),t.lineTo(n,i+o-a.bottomLeft),t.arc(n+a.bottomLeft,i+o-a.bottomLeft,a.bottomLeft,it,ct,!0),t.lineTo(n+r-a.bottomRight,i+o),t.arc(n+r-a.bottomRight,i+o-a.bottomRight,a.bottomRight,ct,0,!0),t.lineTo(n+r,i+a.topRight),t.arc(n+r-a.topRight,i+a.topRight,a.topRight,0,-ct,!0),t.lineTo(n+a.topLeft,i)}const ve=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,xe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function _e(t,e){const n=(""+t).match(ve);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function we(t,e){const n={},i=j(e),r=i?Object.keys(e):e,o=j(t)?i?n=>B(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=+o(t)||0;return n}function Se(t){return we(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Me(t){return we(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ae(t){const e=Se(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ke(t,e){t=t||{},e=e||ie.font;let n=B(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=B(t.style,e.style);i&&!(""+i).match(xe)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);
vendor: 16,120 bytes, line 2
2const r={family:B(t.family,e.family),lineHeight:_e(B(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:B(t.weight,e.weight),string:""};return r.string=function(t){return!t||R(t.size)||R(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function Oe(t,e,n,i){let r,o,a,s=!0;for(r=0,o=t.length;r<o;++r)if(a=t[r],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&N(a)&&(a=a[n%a.length],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}function Ce(t,e){return Object.assign(Object.create(t),e)}function Pe(t,e=[""],n,i,r=()=>t[0]){const o=n||t;void 0===i&&(i=Be("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:n=>Pe([n,...t],e,o,i)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Ie(n,i,(()=>function(t,e,n,i){let r;for(const o of e)if(r=Be(De(o,t),n),void 0!==r)return Le(t,r)?Fe(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>He(t).includes(e),ownKeys:t=>He(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function Te(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ee(t,i),setContext:e=>Te(t,e,n,i),override:r=>Te(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Ie(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t;let s=i[e];return et(s)&&a.isScriptable(e)&&(s=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let c=e(o,a||i);return s.delete(t),Le(t,c)&&(c=Fe(r._scopes,r,t,c)),c}(e,s,t,n)),N(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=n;if(void 0!==o.index&&i(t))return e[o.index%e.length];if(j(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const c of n){const n=Fe(i,r,t,c);e.push(Te(n,o,a&&a[t],s))}}return e}(e,s,t,a.isIndexable)),Le(e,s)&&(s=Te(s,r,o&&o[e],a)),s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function Ee(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:et(n)?n:()=>n,isIndexable:et(i)?i:()=>i}}const De=(t,e)=>t?t+Q(e):e,Le=(t,e)=>j(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ie(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function Re(t,e,n){return et(t)?t(e,n):t}const Ne=(t,e)=>!0===t?e:"string"==typeof t?J(e,t):void 0;function je(t,e,n,i,r){for(const o of e){const e=Ne(n,o);if(e){t.add(e);const o=Re(e._fallback,n,r);if(void 0!==o&&o!==n&&o!==i)return o}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function Fe(t,e,n,i){const r=e._rootScopes,o=Re(e._fallback,n,i),a=[...t,...r],s=new Set;s.add(i);let c=ze(s,a,n,o||n,i);return null!==c&&(void 0===o||o===n||(c=ze(s,a,o,c,i),null!==c))&&Pe(Array.from(s),[""],r,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return N(r)&&j(n)?n:r||{}}(e,n,i)))}function ze(t,e,n,i,r){for(;n;)n=je(t,e,n,i,r);return n}function Be(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function He(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function We(t,e,n,i){const{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i);let s,c,l,u;for(s=0,c=i;s<c;++s)l=s+n,u=e[l],a[s]={r:r.parse(J(u,o),l)};return a}const Ve=Number.EPSILON||1e-14,qe=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ue=t=>"x"===t?"y":"x";function Ye(t,e,n,i){const r=t.skip?e:t,o=e,a=n.skip?e:n,s=_t(o,r),c=_t(a,o);let l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;const h=i*l,d=i*u;return{previous:{x:o.x-h*(a.x-r.x),y:o.y-h*(a.y-r.y)},next:{x:o.x+d*(a.x-r.x),y:o.y+d*(a.y-r.y)}}}function $e(t,e,n){return Math.max(Math.min(t,n),e)}function Ge(t,e,n,i,r){let o,a,s,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const n=Ue(e),i=t.length,r=Array(i).fill(0),o=Array(i);let a,s,c,l=qe(t,0);for(a=0;a<i;++a)if(s=c,c=l,l=qe(t,a+1),c){if(l){const t=l[e]-c[e];r[a]=0!==t?(l[n]-c[n])/t:0}o[a]=s?l?dt(r[a-1])!==dt(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(t,e,n){const i=t.length;let r,o,a,s,c,l=qe(t,0);for(let u=0;u<i-1;++u)c=l,l=qe(t,u+1),c&&l&&(ft(e[u],0,Ve)?n[u]=n[u+1]=0:(r=n[u]/e[u],o=n[u+1]/e[u],s=Math.pow(r,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),n[u]=r*a*e[u],n[u+1]=o*a*e[u])))}(t,r,o),function(t,e,n="x"){const i=Ue(n),r=t.length;let o,a,s,c=qe(t,0);for(let l=0;l<r;++l){if(a=s,s=c,c=qe(t,l+1),!s)continue;const r=s[n],u=s[i];a&&(o=(r-a[n])/3,s[`cp1${n}`]=r-o,s[`cp1${i}`]=u-o*e[l]),c&&(o=(c[n]-r)/3,s[`cp2${n}`]=r+o,s[`cp2${i}`]=u+o*e[l])}}(t,o,e)}(t,r);else{let n=i?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)s=t[o],c=Ye(n,s,t[Math.min(o+1,a-(i?0:1))%a],e.tension),s.cp1x=c.previous.x,s.cp1y=c.previous.y,s.cp2x=c.next.x,s.cp2y=c.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,r,o,a,s=ue(t[0],e);for(n=0,i=t.length;n<i;++n)a=o,o=s,s=n<i-1&&ue(t[n+1],e),o&&(r=t[n],a&&(r.cp1x=$e(r.cp1x,e.left,e.right),r.cp1y=$e(r.cp1y,e.top,e.bottom)),s&&(r.cp2x=$e(r.cp2x,e.left,e.right),r.cp2y=$e(r.cp2y,e.top,e.bottom)))}(t,n)}function Xe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ke(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ze(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Je=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),Qe=["top","right","bottom","left"];function tn(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=Qe[r];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function en(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=Je(n),o="border-box"===r.boxSizing,a=tn(r,"padding"),s=tn(r,"border","width"),{x:c,y:l,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:o}=i;let a,s,c=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,o,t.target))a=r,s=o;else{const t=e.getBoundingClientRect();a=i.clientX-t.left,s=i.clientY-t.top,c=!0}return{x:a,y:s,box:c}}(t,n),h=a.left+(u&&s.left),d=a.top+(u&&s.top);let{width:f,height:p}=e;return o&&(f-=a.width+s.width,p-=a.height+s.height),{x:Math.round((c-h)/f*n.width/i),y:Math.round((l-d)/p*n.height/i)}}const nn=t=>Math.round(10*t)/10;function rn(t,e,n){const i=e||1,r=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o)&&(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const on=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Xe()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function an(t,e){const n=function(t,e){return Je(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function sn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function cn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function ln(t,e,n,i){const r={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=sn(t,r,n),s=sn(r,o,n),c=sn(o,e,n),l=sn(a,s,n),u=sn(s,c,n);return sn(l,u,n)}function un(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function hn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function dn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fn(t){return"angle"===t?{between:Mt,compare:wt,normalize:St}:{between:kt,compare:(t,e)=>t-e,normalize:t=>t}}function pn({start:t,end:e,count:n,loop:i,style:r}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:r}}function gn(t,e,n){if(!n)return[t];const{property:i,start:r,end:o}=n,a=e.length,{compare:s,between:c,normalize:l}=fn(i),{start:u,end:h,loop:d,style:f}=function(t,e,n){const{property:i,start:r,end:o}=n,{between:a,normalize:s}=fn(i),c=e.length;let l,u,{start:h,end:d,loop:f}=t;if(f){for(h+=c,d+=c,l=0,u=c;l<u&&a(s(e[h%c][i]),r,o);++l)h--,d--;h%=c,d%=c}return d<h&&(d+=c),{start:h,end:d,loop:f,style:t.style}}(t,e,n),p=[];let g,m,b,y=!1,v=null;for(let t=u,n=u;t<=h;++t)m=e[t%a],m.skip||(g=l(m[i]),g!==b&&(y=c(g,r,o),null===v&&(y||c(r,b,g)&&0!==s(r,b))&&(v=0===s(g,r)?t:n),null!==v&&(!y||0===s(o,g)||c(o,b,g))&&(p.push(pn({start:v,end:t,loop:d,count:a,style:f})),v=null),n=t,b=g));return null!==v&&p.push(pn({start:v,end:h,loop:d,count:a,style:f})),p}function mn(t,e){const n=[],i=t.segments;for(let r=0;r<i.length;r++){const o=gn(i[r],t.points,e);o.length&&n.push(...o)}return n}function bn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function yn(t,e){if(!e)return!1;const n=[],i=function(t,e){return Vt(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,i)!==JSON.stringify(e,i)}function vn(t,e,n){return t.options.clip?t[n]:e[n]}function xn(t,e){const n=e._clip;if(n.disabled)return!1;const i=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:vn(n,e,"left"),right:vn(n,e,"right"),top:vn(i,e,"top"),bottom:vn(i,e,"bottom")}:e}(e,t.chartArea);return{left:!1===n.left?0:i.left-(!0===n.left?0:n.left),right:!1===n.right?t.width:i.right+(!0===n.right?0:n.right),top:!1===n.top?0:i.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?t.height:i.bottom+(!0===n.bottom?0:n.bottom)}}class _n{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],o=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Lt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o,a=r.length-1,s=!1;for(;a>=0;--a)o=r[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),s=!0):(r[a]=r[r.length-1],r.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var wn=new _n;const Sn="transparent",Mn={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=qt(t||Sn),r=i.valid&&qt(e||Sn);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class An{constructor(t,e,n,i){const r=e[n];i=Oe([t.to,i,r,t.from]);const o=Oe([t.from,r,i]);this._active=!0,this._fn=t.fn||Mn[t.type||typeof o],this._easing=Wt[t.easing]||Wt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=Oe([t.to,e,i,t.from]),this._from=Oe([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,a=this._to;let s;if(this._active=r!==a&&(o||e<n),!this._active)return this._target[i]=a,void this._notify(!0);e<0?this._target[i]=r:(s=e/n%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(r,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class kn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!j(t))return;const e=Object.keys(ie.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const r=t[i];if(!j(r))return;const o={};for(const t of e)o[t]=r[t];(N(r.properties)&&r.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const c=o[s];if("$"===c.charAt(0))continue;if("options"===c){i.push(...this._animateOptions(t,e));continue}const l=e[c];let u=r[c];const h=n.get(c);if(u){if(h&&u.active()){u.update(h,l,a);continue}u.cancel()}h&&h.duration?(r[c]=u=new An(h,t,c,l),i.push(u)):t[c]=l}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(wn.add(this._chart,n),!0):void 0}}function On(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:r,end:i?r:o}}function Cn(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function Pn(t,e,n,i={}){const r=t.keys,o="single"===i.mode;let a,s,c,l;if(null===e)return;let u=!1;for(a=0,s=r.length;a<s;++a){if(c=+r[a],c===n){if(u=!0,i.all)continue;break}l=t.values[c],F(l)&&(o||0===e||dt(e)===dt(l))&&(e+=l)}return u||i.all?e:0}function Tn(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function En(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Dn(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function Ln(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=i,c=o.axis,l=a.axis,u=function(t,e,n){return`${t.id}
2.${e.id}.${n.stack||n.type}`}(o,a,i),h=e.length;let d;for(let t=0;t<h;++t){const n=e[t],{[c]:o,[l]:h}=n;d=(n._stacks||(n._stacks={}))[l]=En(r,u,o),d[s]=h,d._top=Dn(d,a,!0,i.type),d._bottom=Dn(d,a,!1,i.type),(d._visualValues||(d._visualValues={}))[s]=h}}function In(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Rn(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const Nn=t=>"reset"===t||"none"===t,jn=(t,e)=>e?t:Object.assign({},t);class Fn{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Tn(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Rn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=B(n.xAxisID,In(t,"x")),o=e.yAxisID=B(n.yAxisID,In(t,"y")),a=e.rAxisID=B(n.rAxisID,In(t,"r")),s=e.indexAxis,c=e.iAxisID=i(s,r,o,a),l=e.vAxisID=i(s,o,r,a);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Et(this._data,this),t._stacked&&Rn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(j(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,r="x"===n.axis?"x":"y",o="x"===i.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let c,l,u;for(c=0,l=a.length;c<l;++c)u=a[c],s[c]={[r]:u,[o]:t[u]};return s}(e,t)}else if(n!==e){if(n){Et(n,this);const t=this._cachedMeta;Rn(t),t._parsed=[]}e&&Object.isExtensible(e)&&((i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),Tt.forEach((t=>{const e="_onData"+Q(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=Tn(e.vScale,e),e.stack!==n.stack&&(i=!0,Rn(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&(Ln(this,e._parsed),e._stacked=Tn(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:o}=n,a=r.axis;let s,c,l,u=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,l=i;else{l=N(i[t])?this.parseArrayData(n,i,t,e):j(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const r=()=>null===c[a]||h&&c[a]<h[a];for(s=0;s<e;++s)n._parsed[s+t]=c=l[s],u&&(r()&&(u=!1),h=c);n._sorted=u}o&&Ln(this,l)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:o}=t,a=r.axis,s=o.axis,c=r.getLabels(),l=r===o,u=new Array(i);let h,d,f;for(h=0,d=i;h<d;++h)f=h+n,u[h]={[a]:l||r.parse(c[f],f),[s]:o.parse(e[f],f)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:o}=t,a=new Array(i);let s,c,l,u;for(s=0,c=i;s<c;++s)l=s+n,u=e[l],a[s]={x:r.parse(u[0],l),y:o.parse(u[1],l)};return a}parseObjectData(t,e,n,i){const{xScale:r,yScale:o}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c=new Array(i);let l,u,h,d;for(l=0,u=i;l<u;++l)h=l+n,d=e[h],c[l]={x:r.parse(J(d,a),h),y:o.parse(J(d,s),h)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,o=e[t.axis];return Pn({keys:Cn(i,!0),values:e._stacks[t.axis]._visualValues},o,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let o=null===r?NaN:r;const a=i&&n._stacks[e.axis];i&&a&&(i.values=a,o=Pn(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,o=i.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Cn(n,!0),values:null})(e,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:l,max:u}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let h,d;function f(){d=i[h];const e=d[a.axis];return!F(d[t.axis])||l>e||u<e}for(h=0;h<o&&(f()||(this.updateRangeFromParsed(c,t,d,s),!r));++h);if(r)for(h=o-1;h>=0;--h)if(!f()){this.updateRangeFromParsed(c,t,d,s);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,o;for(i=0,r=e.length;i<r;++i)o=e[i][t.axis],F(o)&&n.push(o);return n}getMaxOverflow(){return!1}
vendor: 11,397 bytes, line 2
2getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return j(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(B(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=On(t,n),r=On(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let l;for(n.dataset&&n.dataset.draw(t,r,a,s),l=a;l<a+s;++l){const e=i[l];e.hidden||(e.active&&c?o.push(e):e.draw(t,r))}for(l=0;l<o.length;++l)o[l].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return Ce(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return Ce(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,o=t+"-"+e,a=r[o],s=this.enableOptionSharing&&tt(n);if(a)return jn(a,s);const c=this.chart.config,l=c.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],h=c.getOptionScopes(this.getDataset(),l),d=Object.keys(ie.elements[t]),f=c.resolveNamedOptions(h,d,(()=>this.getContext(n,i,e)),u);return f.$shared&&(f.$shared=s,r[o]=Object.freeze(jn(f,s))),f}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,o=`animation-${e}`,a=r[o];if(a)return a;let s;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),r);s=i.createResolver(o,this.getContext(t,n,e))}const c=new kn(i,s&&s.animations);return s&&s._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Nn(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:o}}updateElement(t,e,n,i){Nn(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Nn(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,o=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(s(r),a=t;a<o;++a)r[a]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Rn(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function zn(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Dt(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,r,o,a,s=e._length;const c=()=>{32767!==o&&-32768!==o&&(tt(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(i=0,r=n.length;i<r;++i)o=e.getPixelForValue(n[i]),c();for(a=void 0,i=0,r=e.ticks.length;i<r;++i)o=e.getPixelForTick(i),c();return s}function Bn(t,e,n,i){return N(t)?function(t,e,n,i){const r=n.parse(t[0],i),o=n.parse(t[1],i),a=Math.min(r,o),s=Math.max(r,o);let c=a,l=s;Math.abs(a)>Math.abs(s)&&(c=s,l=a),e[n.axis]=l,e._custom={barStart:c,barEnd:l,start:r,end:o,min:a,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Hn(t,e,n,i){const r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,c=[];let l,u,h,d;for(l=n,u=n+i;l<u;++l)d=e[l],h={},h[r.axis]=s||r.parse(a[l],l),c.push(Bn(d,h,o,l));return c}function Wn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Vn(t,e,n,i){let r=e.borderSkipped;const o={};if(!r)return void(t.borderSkipped=o);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:c,top:l,bottom:u}=function(t){let e,n,i,r,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",o="start"):(r="start",o="end"),{start:n,end:i,reverse:e,top:r,bottom:o}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=l:(n._bottom||0)===i?r=u:(o[qn(u,a,s,c)]=!0,r=l)),o[qn(r,a,s,c)]=!0,t.borderSkipped=o}function qn(t,e,n,i){var r,o,a;return i?(a=n,t=Un(t=(r=t)===(o=e)?a:r===a?o:r,n,e)):t=Un(t,e,n),t}function Un(t,e,n){return"start"===t?e:"end"===t?n:t}function Yn(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class $n extends Fn{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return Hn(t,e,n,i)}parseArrayData(t,e,n,i){return Hn(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:o}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c="x"===r.axis?a:s,l="x"===o.axis?a:s,u=[];let h,d,f,p;for(h=n,d=n+i;h<d;++h)p=e[h],f={},f[r.axis]=r.parse(J(p,c),h),u.push(Bn(J(p,l),f,o,h));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),o=r._custom,a=Wn(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const r="reset"===i,{index:o,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),c=a.isHorizontal(),l=this._getRuler(),{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,i);for(let d=e;d<e+n;d++){const e=this.getParsed(d),n=r||R(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(d),f=this._calculateBarIndexPixels(d,l),p=(e._stacks||{})[a.axis],g={horizontal:c,base:n.base,enableBorderRadius:!p||Wn(e._custom)||o===p._top||o===p._bottom,x:c?n.head:f.center,y:c?f.center:n.head,height:c?f.size:Math.abs(n.size),width:c?Math.abs(n.size):f.size};h&&(g.options=u||this.resolveDataElementOptions(d,t[d].active?"active":i));const m=g.options||t[d].options;Vn(g,m,p,o),Yn(g,m,l.ratio),this.updateElement(t[d],d,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(e),s=a&&a[n.axis],c=t=>{const e=t._parsed.find((t=>t[n.axis]===s)),i=e&&e[t.vScale.axis];if(R(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!c(n))&&((!1===r||-1===o.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&o.push(n.stack),n.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter((n=>t[n].axis===e)).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[B("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,o;for(r=0,o=e.data.length;r<o;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=t.barThickness;return{min:a||zn(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:r,minBarLength:o}}=this,a=r||0,s=this.getParsed(t),c=s._custom,l=Wn(c);let u,h,d=s[e.axis],f=0,p=n?this.applyStack(e,s,n):d;p!==d&&(f=p-d,p=d),l&&(d=c.barStart,p=c.barEnd-c.barStart,0!==d&&dt(d)!==dt(c.barEnd)&&(f=0),f+=d);const g=R(r)||l?f:r;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(f+p):m,h=u-m,Math.abs(h)<o){h=function(t,e,n){return 0!==t?dt(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(h,e,a)*o,d===a&&(m-=h/2);const t=e.getPixelForDecimal(0),r=e.getPixelForDecimal(1),c=Math.min(t,r),f=Math.max(t,r);m=Math.max(Math.min(m,f),c),u=m+h,n&&!l&&(s._stacks[e.axis]._visualValues[i]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(a)){const t=dt(h)*e.getLineWidthForValue(a)/2;m+=t,h-=t}return{size:h,base:m,head:u,center:u+h/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,r=i.skipNull,o=B(i.maxBarThickness,1/0);let a,s;const c=this._getAxisCount();if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const r=e.pixels,o=r[t];let a=t>
vendor: 17,250 bytes, line 2
20?r[t-1]:null,s=t<r.length-1?r[t+1]:null;const c=n.categoryPercentage;null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a);const l=o-(o-Math.min(a,s))/2*c;return{chunk:Math.abs(s-a)/2*c/i,ratio:n.barPercentage,start:l}}(t,e,i,n*c):function(t,e,n,i){const r=n.barThickness;let o,a;return R(r)?(o=e.min*n.categoryPercentage,a=n.barPercentage):(o=r*i,a=1),{chunk:o/i,ratio:a,start:e.pixels[t]-o/2}}(t,e,i,n*c),u="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(B(u,this.getFirstScaleIdForIndexAxis())),d=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0)+h;a=l.start+l.chunk*d+l.chunk/2,s=Math.min(o,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(o,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}}class Gn extends Fn{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const r=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<r.length;t++)r[t]._custom=this.resolveDataElementOptions(t+n).radius;return r}parseArrayData(t,e,n,i){const r=super.parseArrayData(t,e,n,i);for(let t=0;t<r.length;t++){const i=e[n+t];r[t]._custom=B(i[2],this.resolveDataElementOptions(t+n).radius)}return r}parseObjectData(t,e,n,i){const r=super.parseObjectData(t,e,n,i);for(let t=0;t<r.length;t++){const i=e[n+t];r[t]._custom=B(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=e,o=this.getParsed(t),a=i.getLabelForValue(o.x),s=r.getLabelForValue(o.y),c=o._custom;return{label:n[t]||"",value:"("+a+", "+s+(c?", "+c:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const r="reset"===i,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:c}=this._getSharedOptions(e,i),l=o.axis,u=a.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!r&&this.getParsed(h),d={},f=d[l]=r?o.getPixelForDecimal(.5):o.getPixelForValue(n[l]),p=d[u]=r?a.getBasePixel():a.getPixelForValue(n[u]);d.skip=isNaN(f)||isNaN(p),c&&(d.options=s||this.resolveDataElementOptions(h,e.active?"active":i),r&&(d.options.radius=0)),this.updateElement(e,h,d,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const r=i.radius;return"active"!==e&&(i.radius=0),i.radius+=B(n&&n._custom,r),i}}class Xn extends Fn{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map(((e,r)=>{const o=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:i,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let r,o,a=t=>+n[t];if(j(n[t])){const{key:t="value"}=this._parsing;a=e=>+J(n[e],t)}for(r=t,o=t+e;r<o;++r)i._parsed[r]=a(r)}}_getRotation(){return bt(this.options.rotation-90)}_getCircumference(){return bt(this.options.circumference)}_getRotationExtents(){let t=rt,e=-rt;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,r=i._getRotation(),o=i._getCircumference();t=Math.min(t,r),e=Math.max(e,r+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,r=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-o)/2,0),s=Math.min((l=a,"string"==typeof(c=this.options.cutout)&&c.endsWith("%")?parseFloat(c)/100:+c/l),1);var c,l;const u=this._getRingWeight(this.index),{circumference:h,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,n){let i=1,r=1,o=0,a=0;if(e<rt){const s=t,c=s+e,l=Math.cos(s),u=Math.sin(s),h=Math.cos(c),d=Math.sin(c),f=(t,e,i)=>Mt(t,s,c,!0)?1:Math.max(e,e*n,i,i*n),p=(t,e,i)=>Mt(t,s,c,!0)?-1:Math.min(e,e*n,i,i*n),g=f(0,l,h),m=f(ct,u,d),b=p(it,l,h),y=p(it+ct,u,d);i=(g-b)/2,r=(m-y)/2,o=-(g+b)/2,a=-(m+y)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}(d,h,s),b=(n.width-o)/f,y=(n.height-o)/p,v=Math.max(Math.min(b,y)/2,0),x=H(this.options.radius,v),_=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*u,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*r/rt)}updateElements(t,e,n,i){const r="reset"===i,o=this.chart,a=o.chartArea,s=o.options.animation,c=(a.left+a.right)/2,l=(a.top+a.bottom)/2,u=r&&s.animateScale,h=u?0:this.innerRadius,d=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,r);for(g=e;g<e+n;++g){const e=this._circumference(g,r),n=t[g],o={x:c+this.offsetX,y:l+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:h};p&&(o.options=f||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,o,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const r=t._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(r))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?rt*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=Xt(e._parsed[t],n.options.locale);return{label:i[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,r,o,a,s;if(!t)for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,a=o.controller;break}if(!t)return 0;for(i=0,r=t.length;i<r;++i)s=a.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(B(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Kn extends Fn{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:r}=e,o=this.chart._animationsDisabled;let{start:a,count:s}=jt(e,i,o);this._drawStart=a,this._drawCount=s,Ft(e)&&(a=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:c},t),this.updateElements(i,a,s,t)}updateElements(t,e,n,i){const r="reset"===i,{iScale:o,vScale:a,_stacked:s,_dataset:c}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(e,i),h=o.axis,d=a.axis,{spanGaps:f,segment:p}=this.options,g=gt(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===i,b=e+n,y=t.length;let v=e>0&&this.getParsed(e-1);for(let n=0;n<y;++n){const f=t[n],y=m?f:{};if(n<e||n>=b){y.skip=!0;continue}const x=this.getParsed(n),_=R(x[d]),w=y[h]=o.getPixelForValue(x[h],n),S=y[d]=r||_?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[d],n);y.skip=isNaN(w)||isNaN(S)||_,y.stop=n>0&&Math.abs(x[h]-v[h])>g,p&&(y.parsed=x,y.raw=c.data[n]),u&&(y.options=l||this.resolveDataElementOptions(n,f.active?"active":i)),m||this.updateElement(f,n,y,i),v=x}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class Zn extends Fn{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map(((e,r)=>{const o=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:i,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=Xt(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:r}}parseObjectData(t,e,n,i){return We.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(i/2,0),o=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,i){const r="reset"===i,o=this.chart,a=o.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,l=s.yCenter,u=s.getIndexAngle(0)-.5*it;let h,d=u;const f=360/this.countVisibleElements();for(h=0;h<e;++h)d+=this._computeAngle(h,i,f);for(h=e;h<e+n;h++){const e=t[h];let n=d,p=d+this._computeAngle(h,i,f),g=o.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;d=p,r&&(a.animateScale&&(g=0),a.animateRotate&&(n=p=u));const m={x:c,y:l,innerRadius:0,outerRadius:g,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?bt(this.resolveDataElementOptions(t,e).angle||n):0}}class Jn extends Xn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class Qn extends Fn{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return We.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],r=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===i.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const r=this._cachedMeta.rScale,o="reset"===i;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":i),s=r.getPointPositionForValue(a,this.getParsed(a).r),c=o?r.xCenter:s.x,l=o?r.yCenter:s.y,u={x:c,y:l,angle:s.angle,skip:isNaN(c)||isNaN(l),options:n};this.updateElement(e,a,u,i)}}}class ti extends Fn{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=e,o=this.getParsed(t),a=i.getLabelForValue(o.x),s=r.getLabelForValue(o.y);return{label:n[t]||"",value:"("+a+", "+s+")"}}update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:r,count:o}=jt(e,n,i);if(this._drawStart=r,this._drawCount=o,Ft(e)&&(r=0,o=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:o}=e;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:a},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(n,r,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,n,i){const r="reset"===i,{iScale:o,vScale:a,_stacked:s,_dataset:c}=this._cachedMeta,l=this.resolveDataElementOptions(e,i),u=this.getSharedOptions(l),h=this.includeOptions(i,u),d=o.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,m=gt(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||r||"none"===i;let y=e>0&&this.getParsed(e-1);for(let l=e;l<e+n;++l){const e=t[l],n=this.getParsed(l),p=b?e:{},v=R(n[f]),x=p[d]=o.getPixelForValue(n[d],l),_=p[f]=r||v?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[f],l);p.skip=isNaN(x)||isNaN(_)||v,p.stop=l>0&&Math.abs(n[d]-y[d])>m,g&&(p.parsed=n,p.raw=c.data[l]),h&&(p.options=u||this.resolveDataElementOptions(l,e.active?"active":i)),b||this.updateElement(e,l,p,i),y=n}this.updateSharedOptions(u,i,l)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const r=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,r,o)/2}}var ei=Object.freeze({__proto__:null,BarController:$n,BubbleController:Gn,DoughnutController:Xn,LineController:Kn,PieController:Jn,PolarAreaController:Zn,RadarController:Qn,ScatterController:ti});function ni(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ii{static override(t){Object.assign(ii.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return ni()}parse(){return ni()}format(){return ni()}add(){return ni()}diff(){return ni()}startOf(){return ni()}endOf(){return ni()}}var ri={_date:ii};function oi(t,e,n,i){const{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&e===s.axis&&"r"!==e&&a&&o.length){const a=s._reversePixels?Pt:Ct;if(!i){const i=a(o,e,n);if(c){const{vScale:e}=r._cachedMeta,{_parsed:n}=t,o=n.slice(0,i.lo+1).reverse().findIndex((t=>
vendor: 4,624 bytes, line 2
2!R(t[e.axis])));i.lo-=Math.max(0,o);const a=n.slice(i.hi).findIndex((t=>!R(t[e.axis])));i.hi+=Math.max(0,a)}return i}if(r._sharedOptions){const t=o[0],i="function"==typeof t.getRange&&t.getRange(e);if(i){const t=a(o,e,n-i),r=a(o,e,n+i);return{lo:t.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function ai(t,e,n,i,r){const o=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:s}=o[t],{lo:c,hi:l}=oi(o[t],e,a,r);for(let t=c;t<=l;++t){const e=s[t];e.skip||i(e,n,t)}}}function si(t,e,n,i,r){const o=[];return r||t.isPointInArea(e)?(ai(t,n,e,(function(n,a,s){(r||ue(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&o.push({element:n,datasetIndex:a,index:s})}),!0),o):o}function ci(t,e,n,i,r,o){return o||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,o){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(n);let c=Number.POSITIVE_INFINITY;return ai(t,n,e,(function(n,l,u){const h=n.inRange(e.x,e.y,r);if(i&&!h)return;const d=n.getCenterPoint(r);if(!o&&!t.isPointInArea(d)&&!h)return;const f=s(e,d);f<c?(a=[{element:n,datasetIndex:l,index:u}],c=f):f===c&&a.push({element:n,datasetIndex:l,index:u})})),a}(t,e,n,i,r,o):function(t,e,n,i){let r=[];return ai(t,n,e,(function(t,n,o){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:c}=xt(t,{x:e.x,y:e.y});Mt(c,a,s)&&r.push({element:t,datasetIndex:n,index:o})})),r}(t,e,n,r):[]}function li(t,e,n,i,r){const o=[],a="x"===n?"inXRange":"inYRange";let s=!1;return ai(t,n,e,((t,i,c)=>{t[a]&&t[a](e[n],r)&&(o.push({element:t,datasetIndex:i,index:c}),s=s||t.inRange(e.x,e.y,r))})),i&&!s?[]:o}var ui={evaluateInteractionItems:ai,modes:{index(t,e,n,i){const r=en(e,t),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?si(t,r,o,i,a):ci(t,r,o,!1,i,a),c=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&c.push({element:n,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,n,i){const r=en(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?si(t,r,o,i,a):ci(t,r,o,!1,i,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>si(t,en(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=en(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;return ci(t,r,o,n.intersect,i,a)},x:(t,e,n,i)=>li(t,en(e,t),"x",n.intersect,i),y:(t,e,n,i)=>li(t,en(e,t),"y",n.intersect,i)}};const hi=["left","top","right","bottom"];function di(t,e){return t.filter((t=>t.pos===e))}function fi(t,e){return t.filter((t=>-1===hi.indexOf(t.pos)&&t.box.axis===e))}function pi(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function gi(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function mi(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function bi(t,e,n,i){const{pos:r,box:o}=n,a=t.maxPadding;if(!j(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[r]+=n.size}o.getPadding&&mi(a,o.getPadding());const s=Math.max(0,e.outerWidth-gi(a,t,"left","right")),c=Math.max(0,e.outerHeight-gi(a,t,"top","bottom")),l=s!==t.w,u=c!==t.h;return t.w=s,t.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function yi(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function vi(t,e,n,i){const r=[];let o,a,s,c,l,u;for(o=0,a=t.length,l=0;o<a;++o){s=t[o],c=s.box,c.update(s.width||e.w,s.height||e.h,yi(s.horizontal,e));const{same:a,other:h}=bi(e,n,s,i);l|=a&&r.length,u=u||h,c.fullSize||r.push(s)}return l&&vi(r,e,n,i)||u}function xi(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function _i(t,e,n,i){const r=n.padding;let{x:o,y:a}=e;for(const s of t){const t=s.box,c=i[s.stack]||{count:1,placed:0,weight:1},l=s.stackWeight/c.weight||1;if(s.horizontal){const i=e.w*l,o=c.size||t.height;tt(c.start)&&(a=c.start),t.fullSize?xi(t,r.left,a,n.outerWidth-r.right-r.left,o):xi(t,e.left+c.placed,a,i,o),c.start=a,c.placed+=i,a=t.bottom}else{const i=e.h*l,a=c.size||t.width;tt(c.start)&&(o=c.start),t.fullSize?xi(t,o,r.top,a,n.outerHeight-r.bottom-r.top):xi(t,o,e.top+c.placed,a,i),c.start=o,c.placed+=i,o=t.right}}e.x=o,e.y=a}
vendor: 12,398 bytes, line 2
2var wi={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=Ae(t.options.layout.padding),o=Math.max(e-r.width,0),a=Math.max(n-r.height,0),s=function(t){const e=function(t){const e=[];let n,i,r,o,a,s;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:o,options:{stack:a,stackWeight:s=1}}=r),e.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&o+a,stackWeight:s});return e}(t),n=pi(e.filter((t=>t.box.fullSize)),!0),i=pi(di(e,"left"),!0),r=pi(di(e,"right")),o=pi(di(e,"top"),!0),a=pi(di(e,"bottom")),s=fi(e,"x"),c=fi(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(c).concat(a).concat(s),chartArea:di(e,"chartArea"),vertical:i.concat(r).concat(c),horizontal:o.concat(a).concat(s)}}(t.boxes),c=s.vertical,l=s.horizontal;V(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),d=Object.assign({},r);mi(d,Ae(i));const f=Object.assign({maxPadding:d,w:o,h:a,x:r.left,y:r.top},r),p=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!hi.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let o,a,s;for(o=0,a=t.length;o<a;++o){s=t[o];const{fullSize:a}=s.box,c=n[s.stack],l=c&&s.stackWeight/c.weight;s.horizontal?(s.width=l?l*i:a&&e.availableWidth,s.height=r):(s.width=i,s.height=l?l*r:a&&e.availableHeight)}return n}(c.concat(l),h);vi(s.fullSize,f,h,p),vi(c,f,h,p),vi(l,f,h,p)&&vi(c,f,h,p),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),_i(s.leftAndTop,f,h,p),f.x+=f.w,f.y+=f.h,_i(s.rightAndBottom,f,h,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},V(s.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Si{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Mi extends Si{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ai="$chartjs",ki={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Oi=t=>null===t||""===t,Ci=!!on&&{passive:!0};function Pi(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Ci)}function Ti(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ei(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Ti(n.addedNodes,i),e=e&&!Ti(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Di(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Ti(n.removedNodes,i),e=e&&!Ti(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Li=new Map;let Ii=0;function Ri(){const t=window.devicePixelRatio;t!==Ii&&(Ii=t,Li.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Ni(t,e,n){const i=t.canvas,r=i&&Ke(i);if(!r)return;const o=It(((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)}));return a.observe(r),function(t,e){Li.size||window.addEventListener("resize",Ri),Li.set(t,e)}(t,o),a}function ji(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Li.delete(t),Li.size||window.removeEventListener("resize",Ri)}(t)}function Fi(t,e,n){const i=t.canvas,r=It((e=>{null!==t.ctx&&n(function(t,e){const n=ki[t.type]||t.type,{x:i,y:r}=en(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,Ci)}(i,e,r),r}class zi extends Si{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[Ai]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Oi(r)){const e=an(t,"width");void 0!==e&&(t.width=e)}if(Oi(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=an(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Ai])return!1;const n=e[Ai].initial;["height","width"].forEach((t=>{const i=n[t];R(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Ai],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:Ei,detach:Di,resize:Ni}[e]||Fi;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:ji,detach:ji,resize:ji}[e]||Pi)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const r=Je(t),o=tn(r,"margin"),a=Ze(r.maxWidth,t,"clientWidth")||at,s=Ze(r.maxHeight,t,"clientHeight")||at,c=function(t,e,n){let i,r;if(void 0===e||void 0===n){const o=t&&Ke(t);if(o){const t=o.getBoundingClientRect(),a=Je(o),s=tn(a,"border","width"),c=tn(a,"padding");e=t.width-c.width-s.width,n=t.height-c.height-s.height,i=Ze(a.maxWidth,o,"clientWidth"),r=Ze(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||at,maxHeight:r||at}}(t,e,n);let{width:l,height:u}=c;if("content-box"===r.boxSizing){const t=tn(r,"border","width"),e=tn(r,"padding");l-=e.width+t.width,u-=e.height+t.height}return l=Math.max(0,l-o.width),u=Math.max(0,i?l/i:u-o.height),l=nn(Math.min(l,a,c.maxWidth)),u=nn(Math.min(u,s,c.maxHeight)),l&&!u&&(u=nn(l/2)),(void 0!==e||void 0!==n)&&i&&c.height&&u>c.height&&(u=c.height,l=nn(Math.floor(u*i))),{width:l,height:u}}(t,e,n,i)}isAttached(t){const e=t&&Ke(t);return!(!e||!e.isConnected)}}function Bi(t){return!Xe()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Mi:zi}class Hi{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return gt(this.x)&&gt(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function Wi(t,e,n,i,r){const o=B(i,0),a=Math.min(B(r,t.length),t.length);let s,c,l,u=0;for(n=Math.ceil(n),r&&(s=r-i,n=s/Math.floor(s/n)),l=o;l<0;)u++,l=Math.round(o+u*n);for(c=Math.max(o,0);c<a;c++)c===l&&(e.push(t[c]),u++,l=Math.round(o+u*n))}const Vi=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,qi=(t,e)=>Math.min(e||t,t);function Ui(t,e){const n=[],i=t.length/e,r=t.length;let o=0;for(;o<r;o+=i)n.push(t[Math.floor(o)]);return n}function Yi(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),o=t._startPixel,a=t._endPixel,s=1e-6;let c,l=t.getPixelForTick(r);if(!(n&&(c=1===i?Math.max(l-o,a-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(r-1))/2,l+=r<e?c:-c,l<o-s||l>a+s)))return l}function $i(t){return t.drawTicks?t.tickLength:0}function Gi(t,e){if(!t.display)return 0;const n=ke(t.font,e),i=Ae(t.padding);return(N(t.text)?t.text.length:1)*n.lineHeight+i.height}function Xi(t,e,n){let i=Rt(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class Ki extends Hi{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=z(t,Number.POSITIVE_INFINITY),e=z(e,Number.NEGATIVE_INFINITY),n=z(n,Number.POSITIVE_INFINITY),i=z(i,Number.NEGATIVE_INFINITY),{min:z(t,n),max:z(e,i),minDefined:F(t),maxDefined:F(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let s=0,c=a.length;s<c;++s)e=a[s].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),o||(i=Math.max(i,e.max));return n=o&&n>i?i:n,i=r&&n>i?n:i,{min:z(n,z(i,n)),max:z(i,z(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){W(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:r}=t,o=H(e,(r-i)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(i,-Math.abs(o)),max:a(r,o)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?Ui(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),r=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,s=o[0],c=o[a-1],l=[];if(a>r)return function(t,e,n,i){let r,o=0,a=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===a&&(e.push(t[r]),o++,a=n[o*i])}(e,l,o,a/r),l;const u=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const o=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];
vendor: 16,922 bytes, line 2
2if(e>r)return e}return Math.max(r,1)}(o,e,r);if(a>0){let t,n;const i=a>1?Math.round((c-s)/(a-1)):null;for(Wi(e,l,u,R(i)?0:s-i,s),t=0,n=a-1;t<n;t++)Wi(e,l,u,o[t],o[t+1]);return Wi(e,l,u,c,R(i)?e.length:c+i),l}return Wi(e,l,u),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){W(this.options.afterUpdate,[this])}beforeSetDimensions(){W(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){W(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),W(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){W(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=W(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){W(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){W(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=qi(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,r=e.maxRotation;let o,a,s,c=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const l=this._getLabelSizes(),u=l.widest.width,h=l.highest.height,d=At(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:d/(n-1),u+6>o&&(o=d/(n-(t.offset?.5:1)),a=this.maxHeight-$i(t.grid)-e.padding-Gi(t.title,this.chart.options.font),s=Math.sqrt(u*u+h*h),c=yt(Math.min(Math.asin(At((l.highest.height+6)/o,-1,1)),Math.asin(At(a/s,-1,1))-Math.asin(At(h/s,-1,1)))),c=Math.max(i,Math.min(r,c))),this.labelRotation=c}afterCalculateLabelRotation(){W(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){W(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=Gi(i,e.options.font);if(a?(t.width=this.maxWidth,t.height=$i(r)+o):(t.height=this.maxHeight,t.width=$i(r)+o),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:o}=this._getLabelSizes(),s=2*n.padding,c=bt(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(a){const e=n.mirror?0:u*r.width+l*o.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:l*r.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,u,l)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:o},position:a}=this.options,s=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;s?c?(u=i*t.width,h=n*e.height):(u=n*t.height,h=i*e.width):"start"===r?h=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-l+o)*this.width/(this.width-l),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){W(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)R(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Ui(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:r}=this,o=[],a=[],s=Math.floor(e/qi(e,n));let c,l,u,h,d,f,p,g,m,b,y,v=0,x=0;for(c=0;c<e;c+=s){if(h=t[c].label,d=this._resolveTickFontOptions(c),i.font=f=d.string,p=r[f]=r[f]||{data:{},gc:[]},g=d.lineHeight,m=b=0,R(h)||N(h)){if(N(h))for(l=0,u=h.length;l<u;++l)y=h[l],R(y)||N(y)||(m=re(i,p.data,p.gc,m,y),b+=g)}else m=re(i,p.data,p.gc,m,h),b=g;o.push(m),a.push(b),v=Math.max(m,v),x=Math.max(b,x)}!function(t,e){V(t,(t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}(r,e);const _=o.indexOf(v),w=a.indexOf(x),S=t=>({width:o[t]||0,height:a[t]||0});return{first:S(0),last:S(e-1),widest:S(_),highest:S(w),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return At(this._alignToPixels?ae(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return Ce(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Ce(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=bt(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,a=r?r.widest.width+o:0,s=r?r.highest.height+o:0;return this.isHorizontal()?s*n>a*i?a/n:s/i:s*i<a*n?s/n:a/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:o,border:a}=i,s=r.offset,c=this.isHorizontal(),l=this.ticks.length+(s?1:0),u=$i(r),h=[],d=a.setContext(this.getContext()),f=d.display?d.width:0,p=f/2,g=function(t){return ae(n,t,f)};let m,b,y,v,x,_,w,S,M,A,k,O;if("top"===o)m=g(this.bottom),_=this.bottom-u,S=m-p,A=g(t.top)+p,O=t.bottom;else if("bottom"===o)m=g(this.top),A=t.top,O=g(t.bottom)-p,_=m+p,S=this.top+u;else if("left"===o)m=g(this.right),x=this.right-u,w=m-p,M=g(t.left)+p,k=t.right;else if("right"===o)m=g(this.left),M=t.left,k=g(t.right)-p,x=m+p,w=this.left+u;else if("x"===e){if("center"===o)m=g((t.top+t.bottom)/2+.5);else if(j(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}A=t.top,O=t.bottom,_=m+p,S=_+u}else if("y"===e){if("center"===o)m=g((t.left+t.right)/2);else if(j(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}x=m-p,w=x-u,M=t.left,k=t.right}const C=B(i.ticks.maxTicksLimit,l),P=Math.max(1,Math.ceil(l/C));for(b=0;b<l;b+=P){const t=this.getContext(b),e=r.setContext(t),i=a.setContext(t),o=e.lineWidth,l=e.color,u=i.dash||[],d=i.dashOffset,f=e.tickWidth,p=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=Yi(this,b,s),void 0!==y&&(v=ae(n,y,o),c?x=w=M=k=v:_=S=A=O=v,h.push({tx1:x,ty1:_,tx2:w,ty2:S,x1:M,y1:A,x2:k,y2:O,width:o,color:l,borderDash:u,borderDashOffset:d,tickWidth:f,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=l,this._borderValue=m,h}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:r}=n,o=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:c,padding:l,mirror:u}=r,h=$i(n.grid),d=h+l,f=u?-l:d,p=-bt(this.labelRotation),g=[];let m,b,y,v,x,_,w,S,M,A,k,O,C="middle";if("top"===i)_=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,x=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,x=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+d;else if(j(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+d}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)x=(t.left+t.right)/2-d;else if(j(i)){const t=Object.keys(i)[0],e=i[t];x=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?C="top":"end"===s&&(C="bottom"));const P=this._getLabelSizes();for(m=0,b=a.length;m<b;++m){y=a[m],v=y.label;const t=r.setContext(this.getContext(m));S=this.getPixelForTick(m)+r.labelOffset,M=this._resolveTickFontOptions(m),A=M.lineHeight,k=N(v)?v.length:1;const e=k/2,n=t.color,s=t.textStrokeColor,l=t.textStrokeWidth;let h,d=w;if(o?(x=S,"inner"===w&&(d=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),O="top"===i?"near"===c||0!==p?-k*A+A/2:"center"===c?-P.highest.height/2-e*A+A:-P.highest.height+A/2:"near"===c||0!==p?A/2:"center"===c?P.highest.height/2-e*A:P.highest.height-k*A,u&&(O*=-1),0===p||t.showLabelBackdrop||(x+=A/2*Math.sin(p))):(_=S,O=(1-k)*A/2),t.showLabelBackdrop){const e=Ae(t.backdropPadding),n=P.heights[m],i=P.widths[m];let r=O-e.top,o=0-e.left;switch(C){case"middle":r-=n/2;break;case"bottom":r-=n}switch(w){case"center":o-=i/2;break;case"right":o-=i;break;case"inner":m===b-1?o-=i:m>0&&(o-=i/2)}h={left:o,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({label:v,font:M,textOffset:O,options:{rotation:p,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:C,translation:[x,_],backdrop:h}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-bt(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,o=t+r,a=this._getLabelSizes().widest.width;let s,c;return"left"===e?i?(c=this.right+r,"near"===n?s="left":"center"===n?(s="center",c+=a/2):(s="right",c+=a)):(c=this.right-o,"near"===n?s="right":"center"===n?(s="center",c-=a/2):(s="left",c=this.left)):"right"===e?i?(c=this.left+r,"near"===n?s="right":"center"===n?(s="center",c-=a/2):(s="left",c-=a)):(c=this.left+o,"near"===n?s="left":"center"===n?(s="center",c+=a/2):(s="right",c=this.right)):s="right",{textAlign:s,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const a=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,o=i.length;r<o;++r){const t=i[r];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),o=n.display?r.width:0;if(!o)return;const a=i.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let c,l,u,h;this.isHorizontal()?(c=ae(t,this.left,o)-o/2,l=ae(t,this.right,a)+a/2,u=h=s):(u=ae(t,this.top,o)-o/2,h=ae(t,this.bottom,a)+a/2,c=l=s),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(c,u),e.lineTo(l,h),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&he(e,n);const i=this.getLabelItems(t);for(const t of i){const n=t.options,i=t.font;be(e,t.label,0,t.textOffset,i,n)}n&&de(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const r=ke(n.font),o=Ae(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===e||"center"===e||j(e)?(s+=o.bottom,N(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=o.top;const{titleX:c,titleY:l,maxWidth:u,rotation:h}=function(t,e,n,i){const{top:r,left:o,bottom:a,right:s,chart:c}=t,{chartArea:l,scales:u}=c;let h,d,f,p=0;const g=a-r,m=s-o;if(t.isHorizontal()){if(d=Nt(i,o,s),j(n)){const t=Object.keys(n)[0],i=n[t];f=u[t].getPixelForValue(i)+g-e}else f="center"===n?(l.bottom+l.top)/2+g-e:Vi(t,n,e);h=s-o}else{if(j(n)){const t=Object.keys(n)[0],i=n[t];d=u[t].getPixelForValue(i)-m+e}else d="center"===n?(l.left+l.right)/2-m+e:Vi(t,n,e);f=Nt(i,a,r),p="left"===n?-ct:ct}return{titleX:d,titleY:f,maxWidth:h,rotation:p}}(this,s,e,a);be(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:h,textAlign:Xi(a,e,i),textBaseline:"middle",translation:[c,l]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=B(t.grid&&t.grid.z,-1),i=B(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Ki.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){return ke(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Zi{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=G(Object.create(null),[n?ie.get(n):{},ie.get(e),t.defaults]);ie.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),r=i.pop(),o=[t].concat(i).join("."),a=e[n].split("."),s=a.pop(),c=a.join(".");ie.route(o,r,c,s)}))}(e,t.defaultRoutes),t.descriptors&&ie.describe(e,t.descriptors)}(t,o,n),this.override&&ie.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in ie[i]&&(delete ie[i][n],this.override&&delete Jt[n])}}class Ji{constructor(){this.controllers=new Zi(Fn,"datasets",!0),this.elements=new Zi(Hi,"elements"),this.plugins=new Zi(Object,"plugins"),this.scales=new Zi(Ki,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}
vendor: 3,184 bytes, line 2
2removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):V(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=Q(t);W(n["before"+i],[],n),e[t](n),W(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var Qi=new Ji;class tr{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===W(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){R(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=B(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(Qi.plugins.items);for(let t=0;t<i.length;t++)n.push(Qi.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const o=[],a=t.getContext();for(const s of e){const e=s.id,c=er(i[e],r);null!==c&&o.push({plugin:s,options:nr(t.config,{plugin:s,local:n[e]},c,a)})}return o}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function er(t,e){return e||!1!==t?!0===t?{}:t:null}function nr(t,{plugin:e,local:n},i,r){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(i,o);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ir(t,e){const n=ie.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function rr(t){if("x"===t||"y"===t||"r"===t)return t}function or(t,...e){if(rr(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&rr(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function ar(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function sr(t){const e=t.options||(t.options={});e.plugins=B(e.plugins,{}),e.scales=function(t,e){const n=Jt[t.type]||{scales:{}},i=e.scales||{},r=ir(t.type,e),o=Object.create(null);
vendor: 9,069 bytes, line 2
2return Object.keys(i).forEach((e=>{const a=i[e];if(!j(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=or(e,a,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return ar(t,"x",n[0])||ar(t,"y",n[0])}return{}}(e,t),ie.scales[a.type]),c=function(t,e){return t===e?"_index_":"_value_"}(s,r),l=n.scales||{};o[e]=X(Object.create(null),[{axis:s},a,l[s],l[c]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,a=n.indexAxis||ir(r,e),s=(Jt[r]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,a),r=n[e+"AxisID"]||e;o[r]=o[r]||Object.create(null),X(o[r],[{axis:e},i[r],s[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];X(e,[ie.scales[e.type],ie.scale])})),o}(t,e)}function cr(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lr=new Map,ur=new Set;function hr(t,e){let n=lr.get(t);return n||(n=e(),lr.set(t,n),ur.add(n)),n}const dr=(t,e,n)=>{const i=J(e,n);void 0!==i&&t.add(i)};class fr{constructor(t){this._config=function(t){return(t=t||{}).data=cr(t.data),sr(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=cr(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),sr(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return hr(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return hr(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return hr(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return hr(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,o=this._cachedScopes(t,n),a=o.get(e);if(a)return a;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>dr(s,t,e)))),e.forEach((t=>dr(s,i,t))),e.forEach((t=>dr(s,Jt[r]||{},t))),e.forEach((t=>dr(s,ie,t))),e.forEach((t=>dr(s,Qt,t)))}));const c=Array.from(s);return 0===c.length&&c.push(Object.create(null)),ur.has(e)&&o.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Jt[e]||{},ie.datasets[e]||{},{type:e},ie,Qt]}resolveNamedOptions(t,e,n,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=pr(this._resolverCache,t,i);let s=o;(function(t,e){const{isScriptable:n,isIndexable:i}=Ee(t);for(const r of e){const e=n(r),o=i(r),a=(o||e)&&t[r];if(e&&(et(a)||gr(a))||o&&N(a))return!0}return!1})(o,e)&&(r.$shared=!1,s=Te(o,n=et(n)?n():n,this.createResolver(t,n,a)));for(const t of e)r[t]=s[t];return r}createResolver(t,e,n=[""],i){const{resolver:r}=pr(this._resolverCache,t,n);return j(e)?Te(r,e,void 0,i):r}}function pr(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let o=i.get(r);return o||(o={resolver:Pe(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(r,o)),o}const gr=t=>j(t)&&Object.getOwnPropertyNames(t).some((e=>et(t[e]))),mr=["top","bottom","left","right","chartArea"];function br(t,e){return"top"===t||"bottom"===t||-1===mr.indexOf(t)&&"x"===e}function yr(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function vr(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),W(n&&n.onComplete,[t],e)}function xr(t){const e=t.chart,n=e.options.animation;W(n&&n.onProgress,[t],e)}function _r(t){return Xe()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const wr={},Sr=t=>{const e=_r(t);return Object.values(wr).filter((t=>t.canvas===e)).pop()};function Mr(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const o=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=o)}}}class Ar{static defaults=ie;static instances=wr;static overrides=Jt;static registry=Qi;static version="4.5.0";static getChart=Sr;static register(...t){Qi.add(...t),kr()}static unregister(...t){Qi.remove(...t),kr()}constructor(t,e){const n=this.config=new fr(e),i=_r(t),r=Sr(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Bi(i)),this.platform.updateConfig(n);const a=this.platform.acquireContext(i,o.aspectRatio),s=a&&a.canvas,c=s&&s.height,l=s&&s.width;this.id=I(),this.ctx=a,this.canvas=s,this.width=l,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tr,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],wr[this.id]=this,a&&s?(wn.listen(this,"complete",vr),wn.listen(this,"progress",xr),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:r}=this;return R(t)?e&&r?r:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Qi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():rn(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return se(this.canvas,this.ctx),this}stop(){return wn.stop(this),this}resize(t,e){wn.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,rn(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),W(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){V(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],i=or(t,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),V(r,(e=>{const r=e.options,o=r.id,a=or(o,r),s=B(r.type,e.dtype);void 0!==r.position&&br(r.position,a)===br(e.dposition)||(r.position=e.dposition),i[o]=!0;let c=null;o in n&&n[o].type===s?c=n[o]:(c=new(Qi.getScale(s))({id:o,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(r,t)})),V(i,((t,e)=>{t||delete n[e]})),V(n,(t=>{wi.configure(this,t,t.options),wi.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(yr("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const o=i.type||this.config.type;if(r.type&&r.type!==o&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=o,r.indexAxis=i.indexAxis||ir(o,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=Qi.getController(o),{datasetElementType:i,dataElementType:a}=ie.datasets[o];Object.assign(e,{dataElementType:Qi.getElement(a),datasetElementType:i&&Qi.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){V(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;
vendor: 10,973 bytes, line 2
2e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||V(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(yr("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){V(this.scales,(t=>{wi.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);nt(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)Mr(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!nt(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;wi.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],V(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,et(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(wn.has(this)?this.attached&&!wn.running(this)&&wn.start(this):(this.draw(),vr({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n={meta:t,index:t.index,cancelable:!0},i=xn(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(i&&he(e,i),t.controller.draw(),i&&de(e),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return ue(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=ui.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=Ce(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,i);tt(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),wn.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),se(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete wr[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};V(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){V(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},V(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,o,a,s;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!q(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=r(e,t),a=n?t:r(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,o=e,a=this._getActiveElements(t,i,n,o),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),c=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,W(r.onHover,[t,a,this],this),s&&W(r.onClick,[t,a,this],this));const l=!q(a,i);return(l||e)&&(this._active=a,this._updateHoverStyles(a,i,e)),this._lastEvent=c,l}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}function kr(){return V(Ar.instances,(t=>t._plugins.invalidate()))}function Or(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Cr(t,e,n,i,r,o){const{x:a,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=e,h=Math.max(e.outerRadius+i+n-l,0),d=u>0?u+i+n+l:0;let f=0;const p=r-c;if(i){const t=((u>0?u-i:0)+(h>0?h-i:0))/2;f=(p-(0!==t?p*t/(t+i):p))/2}const g=(p-Math.max(.001,p*h-n/it)/h)/2,m=c+g+f,b=r-g-f,{outerStart:y,outerEnd:v,innerStart:x,innerEnd:_}=function(t,e,n,i){const r=we(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(n-e)/2,a=Math.min(o,i*e/2),s=t=>{const e=(n-Math.min(o,t))*i/2;return At(t,0,Math.min(o,e))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:At(r.innerStart,0,a),innerEnd:At(r.innerEnd,0,a)}}(e,d,h,b-m),w=h-y,S=h-v,M=m+y/w,A=b-v/S,k=d+x,O=d+_,C=m+x/k,P=b-_/O;if(t.beginPath(),o){const e=(M+A)/2;if(t.arc(a,s,h,M,e),t.arc(a,s,h,e,A),v>0){const e=Or(S,A,a,s);t.arc(e.x,e.y,v,A,b+ct)}const n=Or(O,b,a,s);if(t.lineTo(n.x,n.y),_>0){const e=Or(O,P,a,s);t.arc(e.x,e.y,_,b+ct,P+Math.PI)}const i=(b-_/d+(m+x/d))/2;if(t.arc(a,s,d,b-_/d,i,!0),t.arc(a,s,d,i,m+x/d,!0),x>0){const e=Or(k,C,a,s);t.arc(e.x,e.y,x,C+Math.PI,m-ct)}const r=Or(w,m,a,s);if(t.lineTo(r.x,r.y),y>0){const e=Or(w,M,a,s);t.arc(e.x,e.y,y,m-ct,M)}}else{t.moveTo(a,s);const e=Math.cos(M)*h+a,n=Math.sin(M)*h+s;t.lineTo(e,n);const i=Math.cos(A)*h+a,r=Math.sin(A)*h+s;t.lineTo(i,r)}t.closePath()}class Pr extends Hi{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:r,distance:o}=xt(i,{x:t,y:e}
vendor: 5,401 bytes, line 2
2),{startAngle:a,endAngle:s,innerRadius:c,outerRadius:l,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=(this.options.spacing+this.options.borderWidth)/2,d=B(u,s-a),f=Mt(r,a,s)&&a!==s,p=d>=rt||f,g=kt(o,c+h,l+h);return p&&g}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:r,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:c}=this.options,l=(i+r)/2,u=(o+a+c+s)/2;return{x:e+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/4,r=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>rt?Math.floor(n/rt):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const s=i*(1-Math.sin(Math.min(it,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,i,r){const{fullCircles:o,startAngle:a,circumference:s}=e;let c=e.endAngle;if(o){Cr(t,e,n,i,c,r);for(let e=0;e<o;++e)t.fill();isNaN(s)||(c=a+(s%rt||rt))}Cr(t,e,n,i,c,r),t.fill()}(t,this,s,r,o),function(t,e,n,i,r){const{fullCircles:o,startAngle:a,circumference:s,options:c}=e,{borderWidth:l,borderJoinStyle:u,borderDash:h,borderDashOffset:d,borderRadius:f}=c,p="inner"===c.borderAlign;if(!l)return;t.setLineDash(h||[]),t.lineDashOffset=d,p?(t.lineWidth=2*l,t.lineJoin=u||"round"):(t.lineWidth=l,t.lineJoin=u||"bevel");let g=e.endAngle;if(o){Cr(t,e,n,i,g,r);for(let e=0;e<o;++e)t.stroke();isNaN(s)||(g=a+(s%rt||rt))}p&&function(t,e,n){const{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:c}=e;let l=r/s;t.beginPath(),t.arc(o,a,s,i-l,n+l),c>r?(l=r/c,t.arc(o,a,c,n+l,i-l,!0)):t.arc(o,a,r,n+ct,i-ct),t.closePath(),t.clip()}(t,e,g),c.selfJoin&&g-a>=it&&0===f&&"miter"!==u&&function(t,e,n){const{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:c}=e,{borderWidth:l,borderJoinStyle:u}=c,h=Math.min(l/a,St(i-n));if(t.beginPath(),t.arc(r,o,a-l/2,i+h/2,n-h/2),s>0){const e=Math.min(l/s,St(i-n));t.arc(r,o,s+l/2,n-e/2,i+e/2,!0)}else{const e=Math.min(l/2,a*St(i-n));if("round"===u)t.arc(r,o,e,n-it/2,i+it/2,!0);else if("bevel"===u){const a=2*e*e,s=-a*Math.cos(n+it/2)+r,c=-a*Math.sin(n+it/2)+o,l=a*Math.cos(i+it/2)+r,u=a*Math.sin(i+it/2)+o;t.lineTo(s,c),t.lineTo(l,u)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,g),o||(Cr(t,e,n,i,g,r),t.stroke())}(t,this,s,r,o),t.restore()}}function Tr(t,e,n=e){t.lineCap=B(n.borderCapStyle,e.borderCapStyle),t.setLineDash(B(n.borderDash,e.borderDash)),t.lineDashOffset=B(n.borderDashOffset,e.borderDashOffset),t.lineJoin=B(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=B(n.borderWidth,e.borderWidth),t.strokeStyle=B(n.borderColor,e.borderColor)}function Er(t,e,n){t.lineTo(n.x,n.y)}function Dr(t,e,n={}){const i=t.length,{start:r=0,end:o=i-1}=n,{start:a,end:s}=e,c=Math.max(r,a),l=Math.min(o,s),u=r<a&&o<a||r>s&&o>s;return{count:i,start:c,loop:e.loop,ilen:l<c&&!u?i+l-c:l-c}}function Lr(t,e,n,i){const{points:r,options:o}=e,{count:a,start:s,loop:c,ilen:l}=Dr(r,n,i),u=function(t){return t.stepped?fe:t.tension||"monotone"===t.cubicInterpolationMode?pe:Er}(o);let h,d,f,{move:p=!0,reverse:g}=i||{};for(h=0;h<=l;++h)d=r[(s+(g?l-h:h))%a],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):u(t,f,d,g,o.stepped),f=d);return c&&(d=r[(s+(g?l:0))%a],u(t,f,d,g,o.stepped)),!!c}function Ir(t,e,n,i){const r=e.points,{count:o,start:a,ilen:s}=Dr(r,n,i),{move:c=!0,reverse:l}=i||{};let u,h,d,f,p,g,m=0,b=0;const y=t=>(a+(l?s-t:t))%o,v=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(c&&(h=r[y(0)],t.moveTo(h.x,h.y)),u=0;u<=s;++u){if(h=r[y(u)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===d?(n<f?f=n:n>p&&(p=n),m=(b*m+e)/++b):(v(),t.lineTo(e,n),d=i,b=0,f=p=n),g=n}v()}function Rr(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?Lr:Ir}const Nr="function"==typeof Path2D;class jr extends Hi{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Ge(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,r=n.length;if(!r)return[];const o=!!t._loop,{start:a,end:s}=function(t,e,n,i){let r=0,o=e-1;if(n&&!i)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(o+=r);o>
vendor: 4,287 bytes, line 2
2r&&t[o%e].skip;)o--;return o%=e,{start:r,end:o}}(n,r,o,i);return function(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const r=t._chart.getContext(),o=bn(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,c=n.length,l=[];let u=o,h=e[0].start,d=h;function f(t,e,i,r){const o=s?-1:1;if(t!==e){for(t+=c;n[t%c].skip;)t-=o;for(;n[e%c].skip;)e+=o;t%c!=e%c&&(l.push({start:t%c,end:e%c,loop:i,style:r}),u=r,h=e%c)}}for(const t of e){h=s?h:t.start;let e,o=n[h%c];for(d=h+1;d<=t.end;d++){const s=n[d%c];e=bn(i.setContext(Ce(r,{type:"segment",p0:o,p1:s,p0DataIndex:(d-1)%c,p1DataIndex:d%c,datasetIndex:a}))),yn(e,u)&&f(h,d-1,t.loop,u),o=s,u=e}h<d-1&&f(h,d-1,t.loop,u)}return l}(t,e,n,i):e}(t,!0===i?[{start:a,end:s,loop:o}]:function(t,e,n,i){const r=t.length,o=[];let a,s=e,c=t[e];for(a=e+1;a<=n;++a){const n=t[a%r];n.skip||n.stop?c.skip||(i=!1,o.push({start:e%r,end:(a-1)%r,loop:i}),e=s=n.stop?a:null):(s=a,c.skip&&(e=a)),c=n}return null!==s&&o.push({start:e%r,end:s%r,loop:i}),o}(n,a,s<a?s+r:s,!!t._fullLoop&&0===a&&s===r-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],r=this.points,o=mn(this,{property:e,start:i,end:i});if(!o.length)return;const a=[],s=function(t){return t.stepped?cn:t.tension||"monotone"===t.cubicInterpolationMode?ln:sn}(n);let c,l;for(c=0,l=o.length;c<l;++c){const{start:l,end:u}=o[c],h=r[l],d=r[u];if(h===d){a.push(h);continue}const f=s(h,d,Math.abs((i-h[e])/(d[e]-h[e])),n.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return Rr(this)(t,this,e,n)}path(t,e,n){const i=this.segments,r=Rr(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const a of i)o&=r(t,this,a,{start:e,end:e+n-1});return!!o}draw(t,e,n,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),function(t,e,n,i){Nr&&!e.options.segment?function(t,e,n,i){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,i)&&r.closePath()),Tr(t,e.options),t.stroke(r)}(t,e,n,i):function(t,e,n,i){const{segments:r,options:o}=e,a=Rr(e);for(const s of r)Tr(t,o,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Fr(t,e,n,i){const r=t.options,{[n]:o}=t.getProps([n],i);return Math.abs(e-o)<r.radius+r.hitRadius}class zr extends Hi{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:r,y:o}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(e-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Fr(this,t,"x",e)}inYRange(t,e){return Fr(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!ue(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,ce(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Br(t,e){const{x:n,y:i,base:r,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let s,c,l,u,h;return t.horizontal?(h=a/2,s=Math.min(n,r),c=Math.max(n,r),l=i-h,u=i+h):(h=o/2,s=n-h,c=n+h,l=Math.min(i,r),u=Math.max(i,r)),{left:s,top:l,right:c,bottom:u}}function Hr(t,e,n,i){return t?0:At(e,n,i)}function Wr(t,e,n,i){const r=null===e,o=null===n,a=t&&!(r&&o)&&Br(t,i);return a&&(r||kt(e,a.left,a.right))&&(o||kt(n,a.top,a.bottom))}function Vr(t,e){t.rect(e.x,e.y,e.w,e.h)}function qr(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,a=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+o,h:t.h+a,radius:t.radius}}class Ur extends Hi{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmou
vendor: 9,859 bytes, line 2
2nt:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:o}=function(t){const e=Br(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,o=Se(i);return{t:Hr(r.top,o.top,0,n),r:Hr(r.right,o.right,0,e),b:Hr(r.bottom,o.bottom,0,n),l:Hr(r.left,o.left,0,e)}}(t,n/2,i/2),o=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,o=Me(r),a=Math.min(e,n),s=t.borderSkipped,c=i||j(r);return{topLeft:Hr(!c||s.top||s.left,o.topLeft,0,a),topRight:Hr(!c||s.top||s.right,o.topRight,0,a),bottomLeft:Hr(!c||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:Hr(!c||s.bottom||s.right,o.bottomRight,0,a)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:o},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,o.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(r.b,r.r))}}}}(this),a=(s=o.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?ye:Vr;var s;t.save(),o.w===r.w&&o.h===r.h||(t.beginPath(),a(t,qr(o,e,r)),t.clip(),a(t,qr(r,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,qr(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Wr(this,t,e,n)}inXRange(t,e){return Wr(this,t,null,e)}inYRange(t,e){return Wr(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}var Yr=Object.freeze({__proto__:null,ArcElement:Pr,BarElement:Ur,LineElement:jr,PointElement:zr});const $r=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Gr=$r.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Xr(t){return $r[t%$r.length]}function Kr(t){return Gr[t%Gr.length]}function Zr(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Jr={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=Zr(i)||(s=r)&&(s.borderColor||s.backgroundColor)||o&&Zr(o)||"rgba(0,0,0,0.1)"!==ie.borderColor||"rgba(0,0,0,0.1)"!==ie.backgroundColor;var s;if(!n.forceOverride&&a)return;const c=function(t){let e=0;return(n,i)=>{const r=t.getDatasetMeta(i).controller;r instanceof Xn?e=function(t,e){return t.backgroundColor=t.data.map((()=>Xr(e++))),e}(n,e):r instanceof Zn?e=function(t,e){return t.backgroundColor=t.data.map((()=>Kr(e++))),e}(n,e):r&&(e=function(t,e){return t.borderColor=Xr(e),t.backgroundColor=Kr(e),++e}(n,e))}}(t);i.forEach(c)}};function Qr(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function to(t){t.data.datasets.forEach((t=>{Qr(t)}))}var eo={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void to(t);const i=t.width;t.data.datasets.forEach(((e,r)=>{const{_data:o,indexAxis:a}=e,s=t.getDatasetMeta(r),c=o||e.data;if("y"===Oe([a,t.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const l=t.scales[s.xAxisID];if("linear"!==l.type&&"time"!==l.type)return;if(t.options.parsing)return;let u,{start:h,count:d}=function(t,e){const n=e.length;let i,r=0;const{iScale:o}=t,{min:a,max:s,minDefined:c,maxDefined:l}=o.getUserBounds();return c&&(r=At(Ct(e,o.axis,a).lo,0,n-1)),i=l?At(Ct(e,o.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}(s,c);if(d<=(n.threshold||4*i))Qr(e);else{switch(R(o)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":u=function(t,e,n,i,r){const o=r.samples||i;if(o>=n)return t.slice(e,e+n);const a=[],s=(n-2)/(o-2);let c=0;const l=e+n-1;let u,h,d,f,p,g=e;for(a[c++]=t[g],u=0;u<o-2;u++){let i,r=0,o=0;const l=Math.floor((u+1)*s)+1+e,m=Math.min(Math.floor((u+2)*s)+1,n)+e,b=m-l;for(i=l;i<m;i++)r+=t[i].x,o+=t[i].y;r/=b,o/=b;const y=Math.floor(u*s)+1+e,v=Math.min(Math.floor((u+1)*s)+1,n)+e,{x,y:_}=t[g];for(d=f=-1,i=y;i<v;i++)f=.5*Math.abs((x-r)*(t[i].y-_)-(x-t[i].x)*(o-_)),f>d&&(d=f,h=t[i],p=i);a[c++]=h,g=p}return a[c++]=t[l],a}(c,h,d,i,n);break;case"min-max":u=function(t,e,n,i){let r,o,a,s,c,l,u,h,d,f,p=0,g=0;const m=[],b=e+n-1,y=t[e].x,v=t[b].x-y;for(r=e;r<e+n;++r){o=t[r],a=(o.x-y)/v*i,s=o.y;const e=0|a;if(e===c)s<d?(d=s,l=r):s>f&&(f=s,u=r),p=(g*p+o.x)/++g;else{const n=r-1;if(!R(l)&&!R(u)){const e=Math.min(l,u),i=Math.max(l,u);e!==h&&e!==n&&m.push({...t[e],x:p}),i!==h&&i!==n&&m.push({...t[i],x:p})}r>0&&n!==h&&m.push(t[n]),m.push(o),c=e,g=0,d=f=s,l=u=h=r}}return m}(c,h,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=u}}))},destroy(t){to(t)}};function no(t,e,n,i){if(i)return;let r=e[t],o=n[t];return"angle"===t&&(r=St(r),o=St(o)),{property:t,start:r,end:o}}function io(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function ro(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function oo(t,e){let n=[],i=!1;return N(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},r=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=io(t,e,r);const a=r[t],s=r[e];null!==i?(o.push({x:a.x,y:i}),o.push({x:s.x,y:i})):null!==n&&(o.push({x:n,y:a.y}),o.push({x:n,y:s.y}))})),o}(t,e),n.length?new jr({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function ao(t){return t&&!1!==t.fill}function so(t,e,n){let i=t[e].fill;const r=[e];let o;if(!n)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!F(i))return i;if(o=t[i],!o)return!1;if(o.visible)return i;r.push(i),i=o.fill}return!1}function co(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=B(n&&n.target,n);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(t);if(j(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return F(r)&&Math.floor(r)===r?function(t,e,n,i){return"-"!==t&&"+"!==t||(n=e+n),!(n===e||n<0||n>=i)&&n}(i[0],e,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function lo(t,e,n){const i=[];for(let r=0;r<n.length;r++){const o=n[r],{first:a,last:s,point:c}=uo(o,e,"x");if(!(!c||a&&s))if(a)i.unshift(c);else if(t.push(c),!s)break}t.push(...i)}function uo(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const r=i[n],o=t.segments,a=t.points;let s=!1,c=!1;for(let t=0;t<o.length;t++){const e=o[t],i=a[e.start][n],l=a[e.end][n];if(kt(r,i,l)){s=r===i,c=r===l;break}}return{first:s,last:c,point:i}}class ho{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:r,radius:o}=this;return e=e||{start:0,end:rt},t.arc(i,r,o,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,r=t.angle;return{x:e+Math.cos(r)*i,y:n+Math.sin(r)*i,angle:r}}}function fo(t,e,n){const i=function(t){const{chart:e,fill:n,line:i}=t;if(F(n))return function(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,r=[],o=i.segments,a=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const r=i[t];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}(e,n);s.push(oo({x:null,y:e.bottom},i));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)lo(r,a[t],s)}return new jr({points:r,options:{}})}(t);if("shape"===n)return!0;const r=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:n}=t,i=e.options,r=e.getLabels().length,o=i.reverse?e.max:e.min,a=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:j(t)?t.value:e.getBaseValue(),i}(n,e,o),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,o);return new ho({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<r;++t)s.push(e.getPointPositionForValue(t,a));return s}(t):function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:j(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(F(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return r instanceof ho?r:oo(r,i)}(e),{chart:r,index:o,line:a,scale:s,axis:c}=e,l=a.options,u=l.fill,h=l.backgroundColor,{above:d=h,below:f=h}=u||{},p=r.getDatasetMeta(o),g=xn(r,p);i&&a.points.length&&(he(t,n),function(t,e){const{line:n,target:i,above:r,below:o,area:a,scale:s,clip:c}=e,l=n._loop?"angle":e.axis;t.save();let u=o;o!==r&&("x"===l?(po(t,i,a.top),mo(t,{line:n,target:i,color:r,scale:s,property:l,clip:c}),t.restore(),t.save(),po(t,i,a.bottom)):"y"===l&&(go(t,i,a.left),mo(t,{line:n,target:i,color:o,scale:s,property:l,clip:c}),t.restore(),t.save(),go(t,i,a.right),u=r)),mo(t,{line:n,target:i,color:u,scale:s,property:l,clip:c}),t.restore()}(t,{line:a,target:i,above:d,below:f,area:n,scale:s,axis:c,clip:g}),de(t))}function po(t,e,n){const{segments:i,points:r}=e;let o=!0,a=!1;t.beginPath();for(const s of i){const{start:i,end:c}=s,l=r[i],u=r[io(i,c,r)];o?(t.moveTo(l.x,l.y),o=!1):(t.lineTo(l.x,n),t.lineTo(l.x,l.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function go(t,e,n){const{segments:i,points:r}=e;let o=!0,a=!1;t.beginPath();for(const s of i){const{start:i,end:c}
vendor: 4,295 bytes, line 2
2=s,l=r[i],u=r[io(i,c,r)];o?(t.moveTo(l.x,l.y),o=!1):(t.lineTo(n,l.y),t.lineTo(l.x,l.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(n,u.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function mo(t,e){const{line:n,target:i,property:r,color:o,scale:a,clip:s}=e,c=function(t,e,n){const i=t.segments,r=t.points,o=e.points,a=[];for(const t of i){let{start:i,end:s}=t;s=io(i,s,r);const c=no(n,r[i],r[s],t.loop);if(!e.segments){a.push({source:t,target:c,start:r[i],end:r[s]});continue}const l=mn(e,c);for(const e of l){const i=no(n,o[e.start],o[e.end],e.loop),s=gn(t,r,i);for(const t of s)a.push({source:t,target:e,start:{[n]:ro(c,i,"start",Math.max)},end:{[n]:ro(c,i,"end",Math.min)}})}}return a}(n,i,r);for(const{source:e,target:l,start:u,end:h}of c){const{style:{backgroundColor:c=o}={}}=e,d=!0!==i;t.save(),t.fillStyle=c,bo(t,a,s,d&&no(r,u,h)),t.beginPath();const f=!!n.pathSegment(t,e);let p;if(d){f?t.closePath():yo(t,i,h,r);const e=!!i.pathSegment(t,l,{move:f,reverse:!0});p=f&&e,p||yo(t,i,u,r)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function bo(t,e,n,i){const r=e.chart.chartArea,{property:o,start:a,end:s}=i||{};if("x"===o||"y"===o){let e,i,c,l;"x"===o?(e=a,i=r.top,c=s,l=r.bottom):(e=r.left,i=a,c=r.right,l=s),t.beginPath(),n&&(e=Math.max(e,n.left),c=Math.min(c,n.right),i=Math.max(i,n.top),l=Math.min(l,n.bottom)),t.rect(e,i,c-e,l-i),t.clip()}}function yo(t,e,n,i){const r=e.interpolate(n,i);r&&t.lineTo(r.x,r.y)}var vo={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,r=[];let o,a,s,c;for(a=0;a<i;++a)o=t.getDatasetMeta(a),s=o.dataset,c=null,s&&s.options&&s instanceof jr&&(c={visible:t.isDatasetVisible(a),index:a,fill:co(s,a,i),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=c,r.push(c);for(a=0;a<i;++a)c=r[a],c&&!1!==c.fill&&(c.fill=so(r,a,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,r=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=r.length-1;e>=0;--e){const n=r[e].$filler;n&&(n.line.updateControlPoints(o,n.axis),i&&n.fill&&fo(t.ctx,n,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;ao(n)&&fo(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;ao(i)&&"beforeDatasetDraw"===n.drawTime&&fo(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xo=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class _o extends Hi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=W(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=ke(n.font),r=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=xo(n,r);let c,l;e.font=i.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(o,r,a,s)+10):(l=this.maxHeight,c=this._fitCols(o,i,a,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(l,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=i+a;let u=t;r.textAlign="left",r.textBaseline="middle";let h=-1,d=-l;
vendor: 5,684 bytes, line 2
2return this.legendItems.forEach(((t,f)=>{const p=n+e/2+r.measureText(t.text).width;(0===f||c[c.length-1]+p+2*a>o)&&(u+=l,c[c.length-(f>0?0:1)]=0,d+=l,h++),s[f]={left:0,top:d,row:h,width:p,height:i},c[c.length-1]+=p+a})),u}_fitCols(t,e,n,i){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=o-t;let u=a,h=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:g,itemHeight:m}=function(t,e,n,i,r){const o=function(t,e,n,i){let r=t.text;return r&&"string"!=typeof r&&(r=r.reduce(((t,e)=>t.length>e.length?t:e))),e+n.size/2+i.measureText(r).width}(i,t,e,n),a=function(t,e,n){let i=t;return"string"!=typeof e.text&&(i=wo(e,n)),i}(r,i,e.lineHeight);return{itemWidth:o,itemHeight:a}}(n,e,r,t,i);o>0&&d+m+2*a>l&&(u+=h+a,c.push({width:h,height:d}),f+=h+a,p++,h=d=0),s[o]={left:f,top:d,col:p,width:g,height:m},h=Math.max(h,g),d+=m+a})),u+=h,c.push({width:h,height:d}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:r}}=this,o=un(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=Nt(n,this.left+i,this.right-this.lineWidths[r]);for(const s of e)r!==s.row&&(r=s.row,a=Nt(n,this.left+i,this.right-this.lineWidths[r])),s.top+=this.top+t+i,s.left=o.leftForLtr(o.x(a),s.width),a+=s.width+i}else{let r=0,a=Nt(n,this.top+t+i,this.bottom-this.columnSizes[r].height);for(const s of e)s.col!==r&&(r=s.col,a=Nt(n,this.top+t+i,this.bottom-this.columnSizes[r].height)),s.top=a,s.left+=this.left+i,s.left=o.leftForLtr(o.x(s.left),s.width),a+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;he(t,this),this._draw(),de(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:r,labels:o}=t,a=ie.color,s=un(t.rtl,this.left,this.width),c=ke(o.font),{padding:l}=o,u=c.size,h=u/2;let d;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:f,boxHeight:p,itemHeight:g}=xo(o,u),m=this.isHorizontal(),b=this._computeTitleHeight();d=m?{x:Nt(r,this.left+l,this.right-n[0]),y:this.top+l+b,line:0}:{x:this.left+l,y:Nt(r,this.top+b+l,this.bottom-e[0].height),line:0},hn(this.ctx,t.textDirection);const y=g+l;this.legendItems.forEach(((v,x)=>{i.strokeStyle=v.fontColor,i.fillStyle=v.fontColor;const _=i.measureText(v.text).width,w=s.textAlign(v.textAlign||(v.textAlign=o.textAlign)),S=f+h+_;let M=d.x,A=d.y;if(s.setWidth(this.width),m?x>0&&M+S+l>this.right&&(A=d.y+=y,d.line++,M=d.x=Nt(r,this.left+l,this.right-n[d.line])):x>0&&A+y>this.bottom&&(M=d.x=M+e[d.line].width+l,d.line++,A=d.y=Nt(r,this.top+b+l,this.bottom-e[d.line].height)),function(t,e,n){if(isNaN(f)||f<=0||isNaN(p)||p<0)return;i.save();const r=B(n.lineWidth,1);if(i.fillStyle=B(n.fillStyle,a),i.lineCap=B(n.lineCap,"butt"),i.lineDashOffset=B(n.lineDashOffset,0),i.lineJoin=B(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=B(n.strokeStyle,a),i.setLineDash(B(n.lineDash,[])),o.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},c=s.xPlus(t,f/2);le(i,a,c,e+h,o.pointStyleWidth&&f)}else{const o=e+Math.max((u-p)/2,0),a=s.leftForLtr(t,f),c=Me(n.borderRadius);i.beginPath(),Object.values(c).some((t=>0!==t))?ye(i,{x:a,y:o,w:f,h:p,radius:c}):i.rect(a,o,f,p),i.fill(),0!==r&&i.stroke()}i.restore()}(s.x(M),A,v),M=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(w,M+f+h,m?M+S:this.right,t.rtl),function(t,e,n){be(i,n.text,t,e+g/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(M),A,v),m)d.x+=S+l;else if("string"!=typeof v.text){const t=c.lineHeight;d.y+=wo(v,t)+l}else d.y+=y})),dn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=ke(e.font),i=Ae(e.padding);if(!e.display)return;const r=un(t.rtl,this.left,this.width),o=this.ctx,a=e.position,s=n.size/2,c=i.top+s;let l,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),l=this.top+c,u=Nt(t.align,u,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);l=c+Nt(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=Nt(a,u,u+h);o.textAlign=r.textAlign(Rt(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,be(o,e.text,d,l,n)}_computeTitleHeight(){const t=this.options.title,e=ke(t.font),n=Ae(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,r;if(kt(t,this.left,this.right)&&kt(e,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(i=r[n],kt(t,i.left,i.left+i.width)&&kt(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(r=n,null!==(i=o)&&null!==r&&i.datasetIndex===r.datasetIndex&&i.index===r.index);o&&!a&&W(e.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!a&&W(e.onHover,[t,n,this],this)}else n&&W(e.onClick,[t,n,this],this);var i,r}}function wo(t,e){return e*(t.text?t.text.length:0)}var So={id:"legend",_element:_o,start(t,e,n){const i=t.legend=new _o({ctx:t.ctx,options:n,chart:t});wi.configure(t,i,n),wi.addBox(t,i)},stop(t){wi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;wi.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)}
vendor: 5,166 bytes, line 2
2,defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const c=t.controller.getStyle(n?0:void 0),l=Ae(c.borderWidth);return{text:e[t.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Mo extends Hi{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=N(n.text)?n.text.length:1;this._padding=Ae(n.padding);const r=i*ke(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:r,options:o}=this,a=o.align;let s,c,l,u=0;return this.isHorizontal()?(c=Nt(a,n,r),l=e+t,s=r-n):("left"===o.position?(c=n+t,l=Nt(a,i,e),u=-.5*it):(c=r-t,l=Nt(a,e,i),u=.5*it),s=i-e),{titleX:c,titleY:l,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=ke(e.font),i=n.lineHeight/2+this._padding.top,{titleX:r,titleY:o,maxWidth:a,rotation:s}=this._drawArgs(i);be(t,e.text,0,0,n,{color:e.color,maxWidth:a,rotation:s,textAlign:Rt(e.align),textBaseline:"middle",translation:[r,o]})}}var Ao={id:"title",_element:Mo,start(t,e,n){!function(t,e){const n=new Mo({ctx:t.ctx,options:e,chart:t});wi.configure(t,n,e),wi.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;wi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;wi.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ko=new WeakMap;var Oo={id:"subtitle",start(t,e,n){const i=new Mo({ctx:t.ctx,options:n,chart:t});wi.configure(t,i,n),wi.addBox(t,i),ko.set(t,i)},stop(t){wi.removeBox(t,ko.get(t)),ko.delete(t)},beforeUpdate(t,e,n){const i=ko.get(t);wi.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Co={average(t){if(!t.length)return!1;let e,n,i=new Set,r=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i.add(t.x),r+=t.y,++o}}return 0!==o&&0!==i.size&&{x:[...i].reduce(((t,e)=>t+e))/i.size,y:r/o}},nearest(t,e){if(!t.length)return!1;let n,i,r,o=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=_t(e,i.getCenterPoint());t<s&&(s=t,r=i)}}if(r){const t=r.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function Po(t,e){return e&&(N(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function To(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Eo(t,e){const{element:n,datasetIndex:i,index:r}=e,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function Do(t,e){const n=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=e,c=ke(e.bodyFont),l=ke(e.titleFont),u=ke(e.footerFont),h=o.length,d=r.length,f=i.length,p=Ae(e.padding);let g=p.height,m=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*l.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b&&(g+=f*(e.displayColors?Math.max(s,c.lineHeight):c.lineHeight)+(b-f)*c.lineHeight+(b-1)*e.bodySpacing),d&&(g+=e.footerMarginTop+d*u.lineHeight+(d-1)*e.footerSpacing);let y=0;const v=function(t){m=Math.max(m,n.measureText(t).width+y)};return n.save(),n.font=l.string,V(t.title,v),n.font=c.string,V(t.beforeBody.concat(t.afterBody),v),y=e.displayColors?a+2+e.boxPadding:0,V(i,(t=>{V(t.before,v),V(t.lines,v),V(t.after,v)}
vendor: 5,428 bytes, line 2
2)),y=0,n.font=u.string,V(t.footer,v),n.restore(),m+=p.width,{width:m,height:g}}function Lo(t,e,n,i){const{x:r,width:o}=n,{width:a,chartArea:{left:s,right:c}}=t;let l="center";return"center"===i?l=r<=(s+c)/2?"left":"right":r<=o/2?l="left":r>=a-o/2&&(l="right"),function(t,e,n,i){const{x:r,width:o}=i,a=n.caretSize+n.caretPadding;return"left"===t&&r+o+a>e.width||"right"===t&&r-o-a<0||void 0}(l,t,e,n)&&(l="center"),l}function Io(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Lo(t,e,n,i),yAlign:i}}function Ro(t,e,n,i){const{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:c}=n,l=r+o,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=Me(a);let p=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const g=function(t,e,n){let{y:i,height:r}=t;return"top"===e?i+=n:i-="bottom"===e?r+n:r/2,i}(e,c,l);return"center"===c?"left"===s?p+=l:"right"===s&&(p-=l):"left"===s?p-=Math.max(u,d)+r:"right"===s&&(p+=Math.max(h,f)+r),{x:At(p,0,i.width-e.width),y:At(g,0,i.height-e.height)}}function No(t,e,n){const i=Ae(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function jo(t){return Po([],To(t))}function Fo(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const zo={beforeTitle:L,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:L,beforeBody:L,beforeLabel:L,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return R(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:L,afterBody:L,beforeFooter:L,footer:L,afterFooter:L};function Bo(t,e,n,i){const r=t[e].call(n,i);return void 0===r?zo[e].call(n,i):r}class Ho extends Hi{static positioners=Co;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,r=new kn(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Ce(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(t,e){const{callbacks:n}=e,i=Bo(n,"beforeTitle",this,t),r=Bo(n,"title",this,t),o=Bo(n,"afterTitle",this,t);let a=[];return a=Po(a,To(i)),a=Po(a,To(r)),a=Po(a,To(o)),a}getBeforeBody(t,e){return jo(Bo(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,i=[];return V(t,(t=>{const e={before:[],lines:[],after:[]},r=Fo(n,t);Po(e.before,To(Bo(r,"beforeLabel",this,t))),Po(e.lines,Bo(r,"label",this,t)),Po(e.after,To(Bo(r,"afterLabel",this,t))),i.push(e)})),i}getAfterBody(t,e){return jo(Bo(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,i=Bo(n,"beforeFooter",this,t),r=Bo(n,"footer",this,t),o=Bo(n,"afterFooter",this,t);let a=[];return a=Po(a,To(i)),a=Po(a,To(r)),a=Po(a,To(o)),a}_createItems(t){const e=this._active,n=this.chart.data,i=[],r=[],o=[];let a,s,c=[];for(a=0,s=e.length;a<s;++a)c.push(Eo(this.chart,e[a]));return t.filter&&(c=c.filter(((e,i,r)=>t.filter(e,i,r,n)))),t.itemSort&&(c=c.sort(((e,i)=>t.itemSort(e,i,n)))),V(c,(e=>{const n=Fo(t.callbacks,e);i.push(Bo(n,"labelColor",this,e)),r.push(Bo(n,"labelPointStyle",this,e)),o.push(Bo(n,"labelTextColor",this,e))})),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=c,c}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(i.length){const t=Co[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=Do(this,n),a=Object.assign({},t,e),s=Io(this.chart,n,a),c=Ro(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0}
vendor: 4,903 bytes, line 2
2);this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const r=this.getCaretPosition(t,n,i);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:r}=this,{caretSize:o,cornerRadius:a}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=Me(a),{x:h,y:d}=t,{width:f,height:p}=e;let g,m,b,y,v,x;return"center"===r?(v=d+p/2,"left"===i?(g=h,m=g-o,y=v+o,x=v-o):(g=h+f,m=g+o,y=v-o,x=v+o),b=g):(m="left"===i?h+Math.max(s,l)+o:"right"===i?h+f-Math.max(c,u)-o:this.caretX,"top"===r?(y=d,v=y-o,g=m-o,b=m+o):(y=d+p,v=y+o,g=m+o,b=m-o),x=y),{x1:g,x2:m,x3:b,y1:y,y2:v,y3:x}}drawTitle(t,e,n){const i=this.title,r=i.length;let o,a,s;if(r){const c=un(n.rtl,this.x,this.width);for(t.x=No(this,n.titleAlign,n),e.textAlign=c.textAlign(n.titleAlign),e.textBaseline="middle",o=ke(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,s=0;s<r;++s)e.fillText(i[s],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,s+1===r&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,i,r){const o=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:c}=r,l=ke(r.bodyFont),u=No(this,"left",r),h=i.x(u),d=s<l.lineHeight?(l.lineHeight-s)/2:0,f=e.y+d;if(r.usePointStyle){const e={radius:Math.min(c,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=i.leftForLtr(h,c)+c/2,l=f+s/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,ce(t,e,n,l),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,ce(t,e,n,l)}else{t.lineWidth=j(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=i.leftForLtr(h,c),n=i.leftForLtr(i.xPlus(h,1),c-2),a=Me(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=r.multiKeyBackground,ye(t,{x:e,y:f,w:c,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),ye(t,{x:n,y:f+1,w:c-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(e,f,c,s),t.strokeRect(e,f,c,s),t.fillStyle=o.backgroundColor,t.fillRect(n,f+1,c-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=ke(n.bodyFont);let h=u.lineHeight,d=0;const f=un(n.rtl,this.x,this.width),p=function(n){e.fillText(n,f.x(t.x+d),t.y+h/2),t.y+=h+r},g=f.textAlign(o);let m,b,y,v,x,_,w;for(e.textAlign=o,e.textBaseline="middle",e.font=u.string,t.x=No(this,g,n),e.fillStyle=n.bodyColor,V(this.beforeBody,p),d=a&&"right"!==g?"center"===o?c/2+l:c+2+l:0,v=0,_=i.length;v<_;++v){for(m=i[v],b=this.labelTextColors[v],e.fillStyle=b,V(m.before,p),y=m.lines,a&&y.length&&(this._drawColorBox(e,t,v,f,n),h=Math.max(u.lineHeight,s)),x=0,w=y.length;x<w;++x)p(y[x]),h=u.lineHeight;V(m.after,p)}d=0,h=u.lineHeight,V(this.afterBody,p),t.y-=r}drawFooter(t,e,n){const i=this.footer,r=i.length;let o,a;if(r){const s=un(n.rtl,this.x,this.width);for(t.x=No(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",o=ke(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,a=0;a<r;++a)e.fillText(i[a],s.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:r,yAlign:o}=this,{x:a,y:s}=t,{width:c,height:l}=n,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=Me(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(a+u,s),"top"===o&&this.drawCaret(t,e,n,i),e.lineTo(a+c-h,s),e.quadraticCurveTo(a+c,s,a+c,s+h),"center"===o&&"right"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+c,s+l-f),e.quadraticCurveTo(a+c,s+l,a+c-f,s+l),"bottom"===o&&this.drawCaret(t,e,n,i),e.lineTo(a+d,s+l),e.quadraticCurveTo(a,s+l,a,s+l-d),"center"===o&&"left"===r&&this.drawCaret(t,e,n,i),e.lineTo(a,s+u),e.quadraticCurveTo(a,s,a+u,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=Co[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=Do(this,t),a=Object.assign({},n,this._size),s=Io(e,t,a),c=Ro(t,a,s,e);i._to===c.x&&r._to===c.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=Ae(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;
vendor: 16,372 bytes, line 2
2e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,i,e),hn(t,e.textDirection),r.y+=o.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),dn(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),r=!q(n,i),o=this._positionChanged(i,e);(r||o)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],o=this._getActiveElements(t,r,e,n),a=this._positionChanged(o,t),s=e||!q(o,r)||a;return s&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const r=this.options;if("mouseout"===t.type)return[];if(!i)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:r}=this,o=Co[r.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}var Wo={id:"tooltip",_element:Ho,positioners:Co,afterInit(t,e,n){n&&(t.tooltip=new Ho({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:zo},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Vo=Object.freeze({__proto__:null,Colors:Jr,Decimation:eo,Filler:vo,Legend:So,SubTitle:Oo,Title:Ao,Tooltip:Wo});function qo(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Uo extends Ki{static id="category";static defaults={ticks:{callback:qo}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(R(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:At(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,B(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return qo.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Yo(t,e,{horizontal:n,minRotation:i}){const r=bt(i),o=(n?Math.sin(r):Math.cos(r))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}class $o extends Ki{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return R(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const o=t=>i=e?i:t,a=t=>r=n?r:t;if(t){const t=dt(i),e=dt(r);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(i===r){let e=0===r?1:Math.abs(.05*r);a(r+e),t||o(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:r,min:o,max:a,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:h}=t,d=r||1,f=l-1,{min:p,max:g}=e,m=!R(o),b=!R(a),y=!R(c),v=(g-p)/(u+1);let x,_,w,S,M=pt((g-p)/f/d)*d;if(M<1e-14&&!m&&!b)return[{value:p},{value:g}];S=Math.ceil(g/M)-Math.floor(p/M),S>f&&(M=pt(S*M/f/d)*d),R(s)||(x=Math.pow(10,s),M=Math.ceil(M*x)/x),"ticks"===i?(_=Math.floor(p/M)*M,w=Math.ceil(g/M)*M):(_=p,w=g),m&&b&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-o)/r,M/1e3)?(S=Math.round(Math.min((a-o)/M,l)),M=(a-o)/S,_=o,w=a):y?(_=m?o:_,w=b?a:w,S=c-1,M=(w-_)/S):(S=(w-_)/M,S=ft(S,Math.round(S),M/1e3)?Math.round(S):Math.ceil(S));const A=Math.max(vt(M),vt(_));x=Math.pow(10,R(s)?A:s),_=Math.round(_*x)/x,w=Math.round(w*x)/x;let k=0;for(m&&(h&&_!==o?(n.push({value:o}),_<o&&k++,ft(Math.round((_+k*M)*x)/x,o,Yo(o,v,t))&&k++):_<o&&k++);k<S;++k){const t=Math.round((_+k*M)*x)/x;if(b&&t>a)break;n.push({value:t})}return b&&h&&w!==a?n.length&&ft(n[n.length-1].value,a,Yo(a,v,t))?n[n.length-1].value=a:n.push({value:a}):b&&w!==a||n.push({value:w}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&mt(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Xt(t,this.chart.options.locale,this.options.ticks.format)}}class Go extends $o{static id="linear";static defaults={ticks:{callback:Zt.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=F(t)?t:0,this.max=F(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=bt(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Xo=t=>Math.floor(ht(t)),Ko=(t,e)=>Math.pow(10,Xo(t)+e);function Zo(t){return 1==t/Math.pow(10,Xo(t))}function Jo(t,e,n){const i=Math.pow(10,n),r=Math.floor(t/i);return Math.ceil(e/i)-r}class Qo extends Ki{static id="logarithmic";static defaults={ticks:{callback:Zt.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=$o.prototype.parse.apply(this,[t,e]);if(0!==n)return F(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=F(t)?Math.max(0,t):null,this.max=F(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!F(this._userMin)&&(this.min=t===Ko(this.min,0)?Ko(this.min,-1):Ko(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const r=e=>n=t?n:e,o=t=>i=e?i:t;n===i&&(n<=0?(r(1),o(10)):(r(Ko(n,-1)),o(Ko(i,1)))),n<=0&&r(Ko(i,-1)),i<=0&&o(Ko(n,1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,{min:e,max:n}){e=z(t.min,e);const i=[],r=Xo(e);let o=function(t,e){let n=Xo(e-t);for(;Jo(t,e,n)>10;)n++;for(;Jo(t,e,n)<10;)n--;return Math.min(n,Xo(t))}(e,n),a=o<0?Math.pow(10,Math.abs(o)):1;const s=Math.pow(10,o),c=r>o?Math.pow(10,r):0,l=Math.round((e-c)*a)/a,u=Math.floor((e-c)/s/10)*s*10;let h=Math.floor((l-u)/Math.pow(10,o)),d=z(t.min,Math.round((c+u+h*Math.pow(10,o))*a)/a);for(;d<n;)i.push({value:d,major:Zo(d),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,a=o>=0?1:a),d=Math.round((c+u+h*Math.pow(10,o))*a)/a;const f=z(t.max,d);return i.push({value:f,major:Zo(f),significand:h}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&mt(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Xt(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ht(t),this._valueRange=ht(this.max)-ht(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ht(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function ta(t){const e=t.ticks;if(e.display&&t.display){const t=Ae(e.backdropPadding);return B(e.font&&e.font.size,ie.font.size)+t.height}return 0}function ea(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:t<i||t>r?{start:e-n,end:e}:{start:e,end:e+n}}function na(t,e,n,i,r){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,c=0;i.start<e.l?(s=(e.l-i.start)/o,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),r.start<e.t?(c=(e.t-r.start)/a,t.t=Math.min(t.t,e.t-c)):r.end>e.b&&(c=(r.end-e.b)/a,t.b=Math.max(t.b,e.b+c))}function ia(t,e,n){const i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=n,c=t.getPointPosition(e,i+r+a,o),l=Math.round(yt(St(c.angle+ct))),u=function(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}(c.y,s.h,l),h=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(l),d=(f=c.x,p=s.w,"right"===(g=h)?f-=p:"center"===g&&(f-=p/2),f);var f,p,g;return{visible:!0,x:c.x,y:u,textAlign:h,left:d,top:u,right:d+s.w,bottom:u+s.h}}function ra(t,e){if(!e)return!0;const{left:n,top:i,right:r,bottom:o}=t;return!(ue({x:n,y:i},e)||ue({x:n,y:o},e)||ue({x:r,y:i},e)||ue({x:r,y:o},e))}function oa(t,e,n){const{left:i,top:r,right:o,bottom:a}=n,{backdropColor:s}=e;if(!R(s)){const n=Me(e.borderRadius),c=Ae(e.backdropPadding);t.fillStyle=s;const l=i-c.left,u=r-c.top,h=o-i+c.width,d=a-r+c.height;Object.values(n).some((t=>0!==t))?(t.beginPath(),ye(t,{x:l,y:u,w:h,h:d,radius:n}),t.fill()):t.fillRect(l,u,h,d)}}function aa(t,e,n,i){const{ctx:r}=t;if(n)r.arc(t.xCenter,t.yCenter,e,0,rt);else{let n=t.getPointPosition(0,e);r.moveTo(n.x,n.y);for(let o=1;o<i;o++)n=t.getPointPosition(o,e),r.lineTo(n.x,n.y)}}class sa extends $o{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zt.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ae(ta(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=F(t)&&!isNaN(t)?t:0,this.max=F(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ta(this.options))}generateTickLabels(t){$o.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=W(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?it/o:0;for(let h=0;h<o;h++){const o=a.setContext(t.getPointLabelContext(h));r[h]=o.padding;const d=t.getPointPosition(h,t.drawingArea+r[h],s),f=ke(o.font),p=(c=t.ctx,l=f,u=N(u=t._pointLabels[h])?u:[u],{w:oe(c,l.string,u),h:u.length*l.lineHeight});i[h]=p;const g=St(t.getIndexAngle(h)+s),m=Math.round(yt(g));na(n,e,g,ea(m,d.x,p.w,0,180),ea(m,d.y,p.h,90,270))}var c,l,u;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,c={extra:ta(o)/2,additionalAngle:a?it/r:0};let l;for(let o=0;o<r;o++){c.padding=n[o],c.size=e[o];const r=ia(t,o,c);i.push(r),"auto"===s&&(r.visible=ra(r,l),r.visible&&(l=r))}return i}(t,i,r)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return St(t*(rt/(this._pointLabels.length||1))+bt(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(R(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(R(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return Ce(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-ct+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:r}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),aa(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore(
vendor: 7,241 bytes, line 2
2)}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i,border:r}=e,o=this._pointLabels.length;let a,s,c;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let r=e-1;r>=0;r--){const e=t._pointLabelItems[r];if(!e.visible)continue;const o=i.setContext(t.getPointLabelContext(r));oa(n,o,e);const a=ke(o.font),{x:s,y:c,textAlign:l}=e;be(n,t._pointLabels[r],s,c+a.lineHeight/2,a,{color:o.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){s=this.getDistanceFromCenterForValue(t.value);const n=this.getContext(e),a=i.setContext(n),c=r.setContext(n);!function(t,e,n,i,r){const o=t.ctx,a=e.circular,{color:s,lineWidth:c}=e;!a&&!i||!s||!c||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=c,o.setLineDash(r.dash||[]),o.lineDashOffset=r.dashOffset,o.beginPath(),aa(t,n,a,i),o.closePath(),o.stroke(),o.restore())}(this,a,s,o,c)}})),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:r,lineWidth:o}=i;o&&r&&(t.lineWidth=o,t.strokeStyle=r,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,s=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(a,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,a)=>{if(0===a&&this.min>=0&&!e.reverse)return;const s=n.setContext(this.getContext(a)),c=ke(s.font);if(r=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){t.font=c.string,o=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=Ae(s.backdropPadding);t.fillRect(-o/2-e.left,-r-c.size/2-e.top,o+e.width,c.size+e.height)}be(t,i.label,0,-r,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),t.restore()}drawTitle(){}}const ca={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},la=Object.keys(ca);function ua(t,e){return t-e}function ha(t,e){if(R(e))return null;const n=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts;let a=e;return"function"==typeof i&&(a=i(a)),F(a)||(a="string"==typeof i?n.parse(a,i):n.parse(a)),null===a?null:(r&&(a="week"!==r||!gt(o)&&!0!==o?n.startOf(a,r):n.startOf(a,"isoWeek",o)),+a)}function da(t,e,n,i){const r=la.length;for(let o=la.indexOf(t);o<r-1;++o){const t=ca[la[o]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(r*t.size))<=i)return la[o]}return la[r-1]}function fa(t,e,n){if(n){if(n.length){const{lo:i,hi:r}=Ot(n,e);t[n[i]>=e?n[i]:n[r]]=!0}}else t[e]=!0}function pa(t,e,n){const i=[],r={},o=e.length;let a,s;for(a=0;a<o;++a)s=e[a],r[s]=a,i.push({value:s,major:!1});return 0!==o&&n?function(t,e,n,i){const r=t._adapter,o=+r.startOf(e[0].value,i),a=e[e.length-1].value;let s,c;for(s=o;s<=a;s=+r.add(s,1,i))c=n[s],c>=0&&(e[c].major=!0);return e}(t,i,r,n):i}class ga extends Ki{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),i=this._adapter=new ri._date(t.adapters.date);i.init(e),X(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ha(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();function s(t){o||isNaN(t.min)||(i=Math.min(i,t.min)),a||isNaN(t.max)||(r=Math.max(r,t.max))}o&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=F(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),r=F(r)&&!isNaN(r)?r:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,o=function(t,e,n){let i=0,r=t.length;for(;i<r&&t[i]<e;)i++;for(;r>i&&t[r-1]>n;)r--;return i>0||r<t.length?t.slice(i,r):t}(i,r,this.max);return this._unit=e.unit||(n.autoSkip?da(e.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(t,e,n,i,r){for(let o=la.length-1;o>=la.indexOf(n);o--){const n=la[o];if(ca[n].common&&t._adapter.diff(r,i,n)>=e-1)return n}return la[n?la.indexOf(n):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=la.indexOf(t)+1,n=la.length;e<n;++e)if(ca[la[e]].common)return la[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&o.reverse(),pa(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,n,i=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),r=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;i=At(i,0,o),r=At(r,0,o),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,r=i.time,o=r.unit||da(r.minUnit,e,n,this._getLabelCapacity(e)),a=B(i.ticks.stepSize,1),s="week"===o&&r.isoWeekday,c=gt(s)||!0===s,l={};let u,h,d=e;if(c&&(d=+t.startOf(d,"isoWeek",s)),d=+t.startOf(d,c?"day":o),t.diff(n,e,o)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+o);const f="data"===i.ticks.source&&this.getDataTimestamps();for(u=d,h=0;u<n;u=+t.add(u,a,o),h++)fa(l,u,f);return u!==n&&"ticks"!==i.bounds&&1!==h||fa(l,u,f),Object.keys(l).sort(ua).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,i=this._unit,r=e||n[i];return this._adapter.format(t,r)}_tickFormatFunction(t,e,n,i){const r=this.options,o=r.ticks.callback;if(o)return W(o,[t,e,n],this);const a=r.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&a[s],u=c&&a[c],h=n[e],d=c&&u&&h&&h.major;return this._adapter.format(t,i||(d?u:l))}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;
2++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=bt(this.isHorizontal()?e.maxRotation:e.minRotation),r=Math.cos(i),o=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:n*r+a*o,h:n*o+a*r}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,r=this._tickFormatFunction(t,0,pa(this,[t],this._majorUnit),i),o=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(ha(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Dt(t.sort(ua))}}function ma(t,e,n){let i,r,o,a,s=0,c=t.length-1;n?(e>=t[s].pos&&e<=t[c].pos&&({lo:s,hi:c}=Ct(t,"pos",e)),({pos:i,time:o}=t[s]),({pos:r,time:a}=t[c])):(e>=t[s].time&&e<=t[c].time&&({lo:s,hi:c}=Ct(t,"time",e)),({time:i,pos:o}=t[s]),({time:r,pos:a}=t[c]));const l=r-i;return l?o+(a-o)*(e-i)/l:o}class ba extends ga{static id="timeseries";static defaults=ga.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ma(e,this.min),this._tableRange=ma(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],r=[];let o,a,s,c,l;for(o=0,a=t.length;o<a;++o)c=t[o],c>=e&&c<=n&&i.push(c);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,a=i.length;o<a;++o)l=i[o+1],s=i[o-1],c=i[o],Math.round((l+s)/2)!==c&&r.push({time:c,pos:o/(a-1)});return r}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(ma(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return ma(this._table,n*this._tableRange+this._minPos,!0)}}var ya=Object.freeze({__proto__:null,CategoryScale:Uo,LinearScale:Go,LogarithmicScale:Qo,RadialLinearScale:sa,TimeScale:ga,TimeSeriesScale:ba});const va=[ei,Yr,Vo,ya];Ar.register(...va);const xa=Ar},6614:(t,e,n)=>{function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}t.exports=function(){var t=n(404),e=n(9739),r=n(2343),o=r.setCmsCookie,a=(r.getCmsCookie,function(t){var e=t.username||"";try{localStorage.setItem("userName",e)}catch(t){console.error("Error set item localStorage - userName",t)}o("userName",e)}),s=function(t){var e=t.firstName||"";try{localStorage.setItem("userFirstName",e)}catch(t){console.error("Error set item localStorage - setUserFirstName",t)}o("userFirstName",e)};return{hashUserId:function(n,i){return void 0===n&&(n=localStorage.getItem("USER_EMAIL")),void 0===i&&(i=n),null===n?null:t("".concat(i).concat(e(n.substr(0,n.indexOf("@")))))},hashSHA256:t,setUserName:a,setUserFirstName:s,setDateTimeTopics:function(){var t=document.querySelector("#supheader__tiempo");if(t){var e=new Date,n=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][e.getDay()],i=String(e.getDate()).padStart(2,"0"),r=["01","02","03","04","05","06","07","08","09","10","11","12"][e.getMonth()],o=e.getFullYear(),a=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0");t.innerHTML="".concat(n,", ").concat(i,".").concat(r,".").concat(o," / ").concat(a,":").concat(s)}},headBankTopics:function(){var t=document.querySelector("#supheader__temas-del-dia");if(t){var e=document.querySelector(".c-topics__wrap__btn--next"),n=document.querySelector(".c-topics__wrap__btn--prev");t.insertBefore(n,t.firstChild),t.appendChild(e)}},setSourceIframe:function(t){var e=t.route,n=t.id,i=t.path,r=window.location.pathname;if(r&&r===e&&document.querySelector(n)){var o=document.querySelector(n),a=null;a=i?"".concat(o.getAttribute("data-src")).concat(i):"".concat(o.getAttribute("data-src")),"function"==typeof getWebViewState&&getWebViewState()&&(a=i?"".concat(o.getAttribute("data-src")).concat(i,"?webview"):"".concat(o.getAttribute("data-src"),"?webview")),o.setAttribute("src",a)}},logout:function(t){if(SSO_LOGOUT){void 0!==window.vf&&void 0!==window.vf.session&&(console.log("Viafoura logout"),window.vf.session.logout());var e=new Date,n=new Date(e.getFullYear()-1,e.getMonth(),e.getDate());if(o("vfCookie","",n),localStorage.removeItem("loginSuccessEventSent"),function(){try{localStorage.removeItem("identity"),o("suscriptor","false"),a({}),localStorage.removeItem("tokenSession"),localStorage.removeItem("nameUser"),s({}),localStorage.removeItem("USER_EMAIL"),localStorage.removeItem("userId"),localStorage.removeItem("USER_JWT"),localStorage.removeItem("userId"),"undefined"!=typeof IA_KEY_COUNTER&&IA_KEY_COUNTER&&localStorage.removeItem(IA_KEY_COUNTER),localStorage.removeItem("USER_UID"),localStorage.removeItem("USER_SUBSCRIPTION"),"undefined"!=typeof IA_RECORD_STORAGE&&IA_RECORD_STORAGE&&localStorage.removeItem(IA_RECORD_STORAGE),"undefined"!=typeof IA_LANDSCAPE&&IA_LANDSCAPE&&localStorage.removeItem(IA_LANDSCAPE)}catch(t){console.error("Error setStorageDefault - Remove item",t)}}(),"string"==typeof SSO_MODE&&"KC"==SSO_MODE)window.location.href=SSO_LOGOUT;else{var i='<iframe src="'.concat(SSO_LOGOUT,'" style="display: none"></iframe>');t.body.insertAdjacentHTML("beforeend",i),t.location.reload()}}},emailPrebid:function(e){if(void 0===e&&(e=localStorage.getItem("USER_EMAIL")),!e)return null;var n,r,o=(n=e.split("@"),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(n,r)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],s=o[1];return a=(a=(a=a.replace(/\./g,"")).split("+")[0]).toLowerCase(),t("".concat(a,"@").concat(s))},getIdentity:function(){return localStorage.getItem("identity")}}}()},6767:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var r=["Time","Name","isCurrency"],o=["chart","Name","Close","Time"];function a(t){if(null==t)throw new TypeError("Cannot destructure "+t)}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s.apply(null,arguments)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function l(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return m(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function b(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}t.exports=function(){var t=n(3526),e=n(6349).Chart,i=n(9025).getCurrencyByCoin,u=function(t){var e=t.context,n=t.
2image,i=t.color,r=e.dataset,o=e.dataIndex,a=e.raw,s=r.data,c=s[o-1]?s[o-1]:s[o];return n.src="/images/indicators/icon-estable-16px.svg",a>c&&(n.src="/images/indicators/icon-accion-sube.svg",i="#4A5DA9"),a<c&&(n.src="/images/indicators/icon-accion-baja.svg",i="#C51064"),a===c&&(n.src="/images/indicators/icon-estable-16px.svg",i="#D79C26"),[n,i]},d=function(t){var e=t.Time,n=t.Name,o=t.isCurrency,a=b(t,r);return{usePointStyle:!0,callbacks:{title:function(t){return n},labelPointStyle:function(t){return{pointStyle:p(u(h({context:t},a)),1)[0]}},labelTextColor:function(t){return p(u(h({context:t},a)),2)[1]},footer:function(t){if(e){var n=t[0].dataIndex,i=e[n];return new Intl.DateTimeFormat("en-CO",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0,timeZone:"America/Bogota"}).format(new Date("".concat(i,"Z")))}},label:function(t){var e=t.dataset.data[t.dataIndex];return o?i({handleError:function(t){console.error(t)},handleFinally:function(){},number:e,currency:o,digits:2}):e}},padding:{right:40,left:5,top:5,bottom:5},backgroundColor:"#fff",borderColor:"#029581",borderWidth:1,bodyFont:{family:"open-sans",size:12,weight:"600"},footerColor:"#000",footerFont:{family:"open-sans",size:12,weight:"600"},titleColor:"#029581",titleFont:{family:"open-sans",size:12,weight:"bold"}}},f=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.instance=null},n=[{key:"setInstance",value:function(t){var n=s({},(a(t),t));this.instance=function(t){var n,i=t.chart,r=t.Name,a=t.Close,s=t.Time,c=b(t,o),u=c.isCurrency,h=void 0===u?"COP":u,f=c.isChart,p=void 0===f?"ChartIntra":f,g=!1,m={hour:"numeric",minute:"numeric",second:"numeric",timeZone:"America/Bogota"};"ChartIntraDollar"===p?m.hourCycle="h23":m.hour12="h23";var y=s.filter((function(t){return new Date(new Date("".concat(t,"Z")).toLocaleString()).getTime()<=(new Date).getTime()})).map((function(t){return new Intl.DateTimeFormat("en-CO",m).format(new Date("".concat(t,"Z")))}));"ChartIntra"!==p&&"ChartIntraDollar"!==p||(y.length>6?(g=!0,n=y,a=a.slice(0,n.length)):(g=!0,n=s.map((function(t){return new Intl.DateTimeFormat("en-CO",m).format(new Date("".concat(t,"Z")))}))));var v=i.getContext("2d"),x=function(t){var e=t.createLinearGradient(0,0,0,400);return e.addColorStop(0,"rgba(2, 149, 129, 0.4)"),e.addColorStop(1,"rgba(255, 255, 255, 0.05)"),e}(v),_=window.innerWidth<600?0:2,w=window.innerWidth<600?1:2,S=window.innerWidth<600?3:7,M=new Image(15,15);return new e(v,{type:"line",data:{labels:g?n:s,datasets:[{data:a,fill:!0,backgroundColor:x,borderColor:"#029581",pointBackgroun
2dColor:"#fff",pointRadius:_,pointHoverRadius:4,tension:.4,borderWidth:w}]},options:{maintainAspectRatio:!1,responsive:!0,radius:4,layout:{padding:{top:0,right:0,bottom:0,left:0}},elements:{point:{borderWidth:0}},scales:{x:{ticks:{maxTicksLimit:S,align:"start",color:"#000",maxRotation:0,minRotation:0,font:{size:12,family:"open-sans",weight:"600"}},grid:{drawBorder:!1,drawTicks:!1},border:{display:!1},beginAtZero:!1},y:{ticks:{align:"end",stepSize:(Math.max.apply(Math,l(a))-Math.min.apply(Math,l(a)))/5},grid:{drawTicks:!1,drawBorder:!1},border:{display:!1},beginAtZero:!1}},plugins:{legend:{display:!1},tooltip:"ChartIntraDollar"!==p&&d({Time:g?s.slice(0,n.length):null,Name:r,isCurrency:h,image:M,color:"#889777"}),chartAreaShadow:{backgroundColor:"#00000006",shadowColor:"transparent",shadowBlur:10,shadowOffsetY:10,borderColor:"#00000029",borderWidth:1.5}}},plugins:[{id:"chartAreaShadow",beforeDraw:function(t,e,n){var i=t.ctx,r=t.chartArea;if(r){var o=r.left,a=r.top,s=r.width,c=r.height;i.save(),i.globalCompositeOperation="destination-over",i.shadowColor=n.shadowColor||"rgba(0,0,0,0.018)",i.shadowBlur=n.shadowBlur||1,i.shadowOffsetX=n.shadowOffsetX||0,i.shadowOffsetY=n.shadowOffsetY||6,i.fillStyle=n.backgroundColor||"#fff",i.fillRect(o,a,s,c),i.restore(),n.borderColor&&(i.save(),i.strokeStyle=n.borderColor,i.lineWidth=n.borderWidth||1,i.strokeRect(o,a,s,c),i.restore())}}}]})}(h({},n))}},{key:"getInstance",value:function(){return this.instance}},{key:"destroyInstance",value:function(){this.instance&&this.instance.destroy()}},{key:"addEventChart",value:function(t){var e=this,n=t.handleClickArrows;this.instance&&this.instance.canvas.addEventListener("click",(function(t){t.stopImmediatePropagation(),n(t,e.instance)}))}},{key:"reloadInstance",value:function(){this.instance&&this.instance.render()}}],n&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),g=new Map;g.set("actions",new f),g.set("monedas",new f),g.set("materias",new f),g.set("renta",new f),g.set("Indices Colombia",new f),g.set("search",new f);var m=function(t,e){if(e){var n=e.canvas,i=e.chartArea,r=i.left,o=i.right,a=i.top,s=i.height,c=n.getBoundingClientRect(),l=c.left,u=c.top,h=t.clientX-l,d=t.clientY-u;h>=r-15&&h<=r+15&&d>=s/2+a-15&&d<=s/2+a+15&&(e.options.scales.x.min=e.options.scales.x.min-9,e.options.scales.x.max=e.options.scales.x.max-9,e.options.scales.x.min<=0&&(e.options.scales.x.min=0,e.options.scales.x.max=9),e.update()),h>=o-15&&h<=o+15&&d>=s/2+a-15&&d<=s/2+a+15&&(e.options.scales.x.min=e.options.scales.x.min+9,e.options.scales.x.max=e.options.scales.x.max+9,e.options.scales.x.max>=e.data.datasets[0].data.length&&(e.options.scales.x.min=e.data.datasets[0].data.length-9,e.options.scales.x.max=e.data.datasets[0].data.length),e.update())}};return function(e){var n=s({},(a(e),e)),i=t.getState().chart;g.get(i).destroyInstance(),g.get(i).setInstance(h({},n)),g.get(i).addEventChart({handleClickArrows:m})}}()},6852:(t,e,n)=>{function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}t.exports=function(){var t=n(2343).isApp;if((navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))&&("webview"!==localStorage.getItem("webview")&&"webview-ios"!==localStorage.getItem("webview")||localStorage.removeItem("webview")),(window.location.search.indexOf("webview")>-1&&-1===window.location.search.indexOf("q=webview")||localStorage.hasOwnProperty("webview"))&&window.innerWidth<=1024||window.location.hash.indexOf("more_articles?webview")>-1||t()){var e=window.location.origin,r="webview";window.location.search.indexOf("webview-ios")>-1&&(r+="-ios");var o=document.querySelectorAll("a[href]"),a=document.querySelectorAll("nav.o-nav--especiales li.o-nav--especiales__item a");o.forEach((function(t){var n=t.getAttribute("href");!n||!n.startsWith("/")&&!n.startsWith(e)||n.includes("webview")||"/"===n||/^\/[a-z\-]+$/.test(n)||(n+="?"+r,t.setAttribute("href",n))})),a.forEach((function(t){var e,n,r=t.getAttribute("href"),o=new URL(r),a=r.match(/#([^?]+)\?(.+)/);if(a){var s=(n=3,function(t){if(Array.isArray(t))return t}(e=a)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=(s[0],s[1]),l=s[2],u=o.origin+o.pathname+"?"+l+"#"+c;t.setAttribute("href",u)}})),localStorage.setItem("webview",r),document.body.classList.add("webview"),document.querySelectorAll(".header").forEach((function(t){return t.remove()})),document.querySelectorAll(".c-subheader").forEach((function(t){return t.remove()})),document.querySelectorAll(".c-footer").forEach((function(t){return t.remove()})),document.querySelectorAll("#header__principal__usuario__btn-usuario").forEach((function(t){return t.remove()}))}else localStorage.removeItem("webview"),document.cookie="_pc_webview=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}()},7659:(t,e,n)=>{var i;t.exports=(i=n(6014).tns,function(t,e){var n=document.querySelectorAll(t);n&&0===n.length||n.forEach((function(n,r){var o=t.match(/\[data-type="([^"]+)"\]/);if(o){if(n.classList.remove("preview-carrusel"),e.container=n.getAttribute("data-container"),e.prevButton=n.getAttribute("data-btn-prev"),e.nextButton=n.getAttribute("data-btn-next"),e.counterTxt=n.getAttribute("data-txt-counter"),"carousel"===o[1]){var a=n.getAttribute("data-edge-padding-xs")||0,s=n.getAttribute("data-edge-padding-sm")||16,c=n.getAttribute("data-items-to-show-xs")||1,l=n.getAttribute("data-items-to-scroll-xs")||1,u=n.getAttribute("data-items-to-show-sm")||1,h=n.getAttribute("data-items-to-scroll-sm")||1,d=n.getAttribute("data-items-to-show-xsm")||1,f=n.getAttribute("data-items-to-show-xl")||n.getAttribute("data-items-to-show-sm")||1,p=n.getAttribute("data-loop")||!1,g=n.getAttribute("data-autoplay")||!1;e=Object.assign(e,{items:c,slideBy:l,fixedWidth:!1,navPosition:"bottom",edgePadding:a,gutter:15,loop:p,responsive:{768:{items:d},992:{items:u,slideBy:h,fixedWidth:!1,edgePadding:parseInt(s),gutter:15},1920:{items:f}}}),g&&(e=Object.assign(e,{autoplay:!0,autoplayTimeout:g,autoplayButton:!1}))}var m=o[1]+"-"+r;n.classList.add(m);var b=i(Object.assign({},e,{container:".".concat(m," ").concat(e.container),prevButton:".".concat(m," ").concat(e.prevButton),nextButton:".".concat(m," ").concat(e.nextButton)})),y=n.getAttribute("data-slider-sincronized")||!1;if(!1!==y){var v=document.querySelector(y);v&&i({container:v,nav:!1,mode:"gallery",prevButton:"."+m+" "+e.prevButton,nextButton:"."+m+" "+e.nextButton})}if(e.counterTxt){var x=function(t,n){var i=(n=b.getInfo()).index;0===n.index&&(i=n.slideCount),n.index===n.slideCount&&(i=n.slideCount),n.index>n.slideCount&&(i=1),t.querySelector(e.counterTxt).innerText=i+" de "+n.slideCount},_=b.getInfo();x(n,_);var w=n.querySelector(e.prevButton),S=n.querySelector(e.nextButton);w.onclick=function(){x(n,_.slideCount,_.index)},S.onclick=function(){x(n,_.slideCount,_.index)}}}}))})},9004:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(){"use strict";var t=u(),e=t.m(r),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function i(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var h={throw:1,return:2,break:3,continue:3};function f(t){var e,n;return function(i){e||(e={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(t,e){return n(i.a,h[t],e)},delegateYield:function(t,r,a){return e.resultName=r,n(i.d,o(t),a)},finish:function(t){return n(i.f,t)}},n=function(t,n,r){i.p=e.prev,i.n=e.next;try{return t(n,r)}finally{e.next=i.n}}),e.resultName&&(e[e.resultName]=i.v,e.resultName=void 0),e.sent=i.v,e.next=i.n;try{return t.call(this,e)}finally{i.p=e.prev,i.n=e.next}}}return(r=function(){return{wrap:function(e,n,i,r){return t.w(f(e),n,i,r&&r.reverse())},isGeneratorFunction:i,mark:t.m,awrap:function(t,e){return new d(t,e)},AsyncIterator:l,async:function(t,e,n,r,o){return(i(e)?c:s)(f(t),e,n,r,o)},keys:a,values:o}})()}function o(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(i(t)+" is not iterable")}function a(t){var e=Object(t),n=[];for(var i in e)n.unshift(i);return function t(){for(;n.length;)if((i=n.pop())in e)return t.value=i,t.done=!1,t;return t.done=!0,t}}function s(t,e,n,i,r){var o=c(t,e,n,i,r);return o.next().then((function(t){return t.done?t.value:o.next()}))}function c(t,e,n,i,r){return new l(u().w(t,e,n,i),r||Promise)}function l(t,e){function n(i,r,o,a){try{var s=t[i](r),c=s.value;return c instanceof d?e.resolve(c.v).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(c).then((function(t){s.value=t,o(s)}),(function(t){return n("throw",t,o,a)}))}catch(t){a(t)}}var i;this.next||(h(l.prototype),h(l.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),h(this,"_invoke",(function(t,r,o){function a(){return new e((function(e,i){n(t,o,e,i)}))}return i=i?i.then(a,a):a()}),!0)}function u(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return h(l,"_invoke",function(n,i,r){var o,s,c,l=0,u=r||[],h=!1,d={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,n){return o=e,s=0,c=t,d.n=n,a}};function f(n,i){for(s=n,c=i,e=0;!h&&l&&!r&&e<u.length;e++){var r,o=u[e],f=d.p,p=o[2];n>3?(r=p===i)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(s=0,d.v=i,d.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,d.n=p,s=0))}if(r||n>1)return a;throw h=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,c=p;(e=s<2?t:c)||!h;){o||(s?s<3?(s>1&&(d.n=-1),f(s,c)):d.n=c:d.v=c);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(h=d.n<0)?c:n.call(i,d))!==a)break}catch(e){o=t,s=1,c=e}finally{l=1}}return{value:e,done:h}}}(n,r,o),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var d=[][i]?e(e([][i]())):(h(e={},i,(function(){return this})),e),f=l.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,h(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,h(f,"constructor",l),h(l,"constructor",c),c.displayName="GeneratorFunction",h(l,r,"GeneratorFunction"),h(f),h(f,r,"Generator"),h(f,i,(function(){return this})),h(f,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:o,m:p}})()}function h(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}h=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){h(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},h(t,e,n,i)}function d(t,e){this.v=t,this.k=e}function f(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){f(o,i,r,a,s,"next",t)}function s(t){f(o,i,r,a,s,"throw",t)}a(void 0)}))}}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}t.exports=function(){var t=n(2343),e=t.css,i=t.isSupportObserver,o=t.isAdmin,a=n(9009),s=a.isElementInViewport,c=a.revertSticky,l=a.convertSticky,u=a.stickyVideoToolbar,h=n(5886);function d(t,e){var n,i,r=t.parentNode,o=e+1;if(null!==(n=t.querySelector("video"))&&void 0!==n&&n.hasAttribute("data-video-content")&&t.querySelector("video").getAttribute("data-video-content").includes("autoplay"))y(t,!0,r,o);else if(null!==(i=r.querySelector("img"))&&void 0!==i&&i.hasAttribute("src")&&r.querySelector("img").getAttribute("src").endsWith("image_placeholder.jpg"))y(t,!1,r,o);else{var a=[].concat(g(r.querySelectorAll(".c-detail__media__thumb__icon")),g(r.querySelectorAll(".c-detail__media__thumb__icon-play"))).shift(),s=g(r.querySelectorAll(".c-play-media__title-video")).shift();a&&a.addEventListener("click",(function(e){y(t,!1,r,o,!0)})),s&&s.addEventListener("click",(function(e){y(t,!1,r,o,!0)}))}}function f(t,e){t.adTagUrl=b,e.useStyledNonLinearAds=!0}function m(t,e){}var b="";function y(t,n,i,a){var h,d,g,y,x=arguments.length>4&&void 0!==arguments[4]&&arguments[4],_=!1,w=window.innerWidth,S=null===(h=t.querySelector("video"))||void 0===h?void 0:h.getAttribute("href"),M=null===(d=t.querySelector("video"))||void 0===d?void 0:d.getAttribute("source");switch(i.classList.remove("c-play-media__thumb"),M){case"youtube":case"youtube_v3":var A=JSON.parse(t.getAttribute("data-sizes")),k=(i.clientWidth,i.clientHeight);if(A)for(var O in A)w>=parseInt(O)&&(A[O].width,k=A[O].height);var C=0;n?(n=1,C=1):n=0;var P=!1;e(t,{display:"flex"}),t.classList.add("player-ready"),null!==(g=t.querySelector("video"))&&void 0!==g&&g.hasAttribute("data-video-content")&&null!==(y=t.querySelector("video"))&&void 0!==y&&y.getAttribute("data-video-content").includes("sticky")&&(P=!0,C=1),b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoplay,n=void 0===e||e,i=t.muted,r=void 0===i||i,o=new URL("https://pubads.g.doubleclick.net/gampad/ads"),a=window.innerWidth<=768,s="/"===window.location.pathname,c=a?s?"/49787872/m.portafolio.co/video/home/preroll":"/49787872/m.portafolio.co/video/articulo/preroll":s?"/49787872/portafolio.co/video/home/preroll":"/49787872/portafolio.co/video/articulo/preroll",l=new URLSearchParams;l.set("iu",c),l.set("sz","400x300|480x70|480x360|480x361|640x360|640x480"),l.set("plcmt","1"),l.set("vpos","preroll"),l.set("output","vast"),l.set("gdfp_req","1"),l.set("env","vp"),l.set("unviewed_position_start","1"),l.set("correlator",Math.floor(1e9*Math.random()).toString()),l.set("description_url","".concat(window.location.origin).concat(window.location.pathname)),l.set("vpa",n?"auto":"click"),l.set("vpmute",r?"1":"0");var u={pos:"preroll",platform:"web"},h=[window.digitalData.page.section,window.digitalData.page.subsection].map((function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9 ]/g,"").replaceAll(" ","-").toLowerCase()})).filter((function(t){return t}));h.length&&(u.po_secc=h.join());var d=new URLSearchParams(u);return l.set("cust_params",d.toString()),o.search=l.toString(),o.toString()}({autoplay:n,muted:C}
2),x&&(n=1);var T='\n                    <iframe width="100%" height="'.concat(k,'" src="https://www.youtube.com/embed/').concat(S,"?autoplay=").concat(n,"&mute=").concat(C,'"\n                    frameborder="0"\n                    loading="lazy"\n                    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"\n                    allowfullscreen></iframe>\n                    '),E='<div class="player" id="player_'.concat(S,"-").concat(a,"\" style='width:100%; height:").concat(k,"'></div>"),D={rel:1,controls:1,modestbranding:1,autoplay:n,embed_config:JSON.stringify({adsConfig:{adTagUrl:b,nonPersonalizedAd:!1}})};P&&(D.playsinline=1),D.mute=C,v(i,"video"),"undefined"!=typeof YT&&"function"==typeof YT.createPlayerForPublishers&&void 0!==YT.createPlayerForPublishers?(t.insertAdjacentHTML("afterbegin",E),YT.createPlayerForPublishers("player_".concat(S,"-").concat(a),f,{youtubeOptions:{videoId:S,height:k,width:"100%",playerVars:D}},m)):t.insertAdjacentHTML("afterbegin",T),_=!0;var L=i.querySelector(".c-detail__media__txt");L&&i.append(L),P&&function(t){if(!o()){t.classList.add("sticky");var e=!1,n=t.querySelector("iframe");window.addEventListener("scroll",p(r().mark((function i(){return r().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(window.pageYOffset>t.getBoundingClientRect().bottom+t.getBoundingClientRect().x)){i.next=8;break}return i.next=3,s(t.parentNode,t);case 3:if(!i.sent){i.next=7;break}e||(e=!0,l(t),u(t,n)),i.next=8;break;case 7:e&&(e=!1,c(t));case 8:case"end":return i.stop()}}),i)}))))}}(i);break;default:return}_&&(v(i,".c-detail__media__thumb__icon"),v(i,".c-detail__media__thumb__icon-play"),v(i,".c-detail__media__thumb"),v(i,".c-play-media__txt"),i.classList.contains("c-article__thumb")&&i.querySelector("img")&&i.querySelector("img").remove())}function v(t,e){var n=t.querySelector(e);n&&n.remove()}return function(t){i()?h({target:t,isArray:!0,onIntersect:function(t,e,n){d(t.target,n),e.unobserve(t.target)},options:{root:null,rootMargin:"0% 0% 0% 0%",threshold:0}}):t.forEach((function(t,e){d(t,e)}))}}()},9009:(t,e,n)=>{t.exports=function(){var t,e=n(2343),i=e.isMobile,r=e.css,o=e.isSupportObserver;function a(t){r(t,{display:"block"}),t.classList.remove("bottom-left-sticky","c-play-media__embed");var e=t.querySelector(".sticky-video-titulo");e&&e.remove();var n=t.querySelector(".c-detail__media__txt");n&&r(n,{display:"block"}),r(t,{left:"auto",top:"auto"})}return n(5886),{isElementInViewport:function(e,n){return new Promise((function(r){return!!i()||!(!n.hasAttribute("data-video-closed")||"true"!==n.getAttribute("data-video-closed"))||(o()?void(t=new IntersectionObserver((function(t){t.forEach((function(t){var e=t.boundingClientRect,n=e.bottom;t.target.classList.contains("c-play-media")&&(n=e.top+20*e.x),t.isIntersecting||window.pageYOffset<=e.bottom?r(!1):window.pageYOffset>=n?r(!0):r(!1)}))}),{root:null,rootMargin:"0% 0% 0% 0%",threshold:0})).observe(e):r(!0))}))},convertSticky:function(t){var e;null===(e=t.closest("article"))||void 0===e||e.classList.add("sticky-index"),t.classList.add("bottom-left-sticky","c-play-media__embed"),t.insertAdjacentHTML("afterbegin",'\n                <div class="sticky-video-titulo">\n                    <button class="sticky-video-draggable"></button>\n                    <span class="sticky-video-herramientas">\n                        <button class="sticky-video-volver-section"></button>\n                        <button class="sticky-video-cerrar"></button>\n                    </span>\n                </div>\n            ');var n=t.querySelector(".c-detail__media__txt");n&&r(n,{display:"none"}),r(t,{left:"24px"})},stickyVideoToolbar:function(e,n){var i,o,s,c,l=e.querySelector(".sticky-video-cerrar"),u=e.querySelector(".sticky-video-volver-section"),h=!1;e.addEventListener("mousedown",(function(t){h=!0,i=t.clientX,o=t.clientY,s=e.offsetLeft,c=e.offsetTop})),e.addEventListener("touchstart",(function(t){h=!0,i=t.touches[0].clientX,o=t.touches[0].clientY,s=e.offsetLeft,c=e.offsetTop})),document.addEventListener("mousemove",(function(t){if(h){var n=t.clientX-i,a=t.clientY-o;
2r(e,{left:"".concat(s+n,"px"),top:"".concat(c+a,"px")})}})),document.addEventListener("touchmove",(function(t){if(h){var n=t.touches[0].clientX-i,a=t.touches[0].clientY-o;r(e,{left:"".concat(s+n,"px"),top:"".concat(c+a,"px")})}})),document.addEventListener("mouseup",(function(){h=!1})),document.addEventListener("touchend",(function(){h=!1})),l.addEventListener("click",(function(){var i;t&&t.disconnect(),h=!1,a(e),e.setAttribute("data-video-closed","true"),(i=n)&&i.setAttribute("src",i.getAttribute("src").replace("autoplay=1&mute=1",""))})),u.addEventListener("click",(function(){e.draggable=!1,function(t){var e=t.parentNode.closest("section")?t.parentNode.closest("section"):t.closest(".c-board");a(t),window.scrollTo({top:e.offsetTop,behavior:"smooth"})}(e)}))},revertSticky:a}}()},9025:t=>{var e,n=["handleError","handleFinally"];t.exports=(e=[{origin:"es-CO",currency:"COP"},{origin:"es-AR",currency:"ARS"},{origin:"en-AU",currency:"AUD"},{origin:"pt-BR",currency:"BRL"},{origin:"de-DE",currency:"BTC"},{origin:"en-CA",currency:"CAD"},{origin:"rm-CH",currency:"CHF"},{origin:"es-CL",currency:"CLP"},{origin:"ii-CN",currency:"CNY"},{origin:"da-DK",currency:"DKK"},{origin:"es-EG",currency:"EGP"},{origin:"es-ES",currency:"EUR"},{origin:"en-GB",currency:"GBP"},{origin:"zh-Hant-HK",currency:"HKD"},{origin:"hr-HR",currency:"HRK"},{origin:"ja-JP",currency:"JPY"},{origin:"ko-KR",currency:"KRW"},{origin:"es-MX",currency:"MXN"},{origin:"ms-MY",currency:"MYR"},{origin:"ig-NG",currency:"NGN"},{origin:"nb-NO",currency:"NOK"},{origin:"en-NZ",currency:"NZD"},{origin:"es-PE",currency:"PEN"},{origin:"ru-MD",currency:"RUB"},{origin:"sv-SE",currency:"SEK"},{origin:"zh-Hans-SG",currency:"SGD"},{origin:"tr",currency:"TRY"},{origin:"uk",currency:"UAH"},{origin:"en-US",currency:"USD"},{origin:"es-VE",currency:"VES"}],{getCurrency:function(t){var e=t.coin,n=t.Currency;if(e){var i;switch(e){case"Bitcoin":i="BTC";break;case"Libra turca":i="TRY";break;case"Peso colombiano":i="COP";break;default:i=n}return i}},formatForeignExchange:function(t){var n=t.currencyTo,i=t.currencyFrom,r=t.result,o=t.count,a=e.filter((function(t){return t.currency===n})),s=e.filter((function(t){return t.currency===i}));try{if(a.length>0&&s.length>0){var c=a.shift(),l=c.origin,u=c.currency,h=s.shift(),d=h.origin,f=h.currency;return["".concat(new Intl.NumberFormat(d,{style:"currency",currency:f}).format(o)," ").concat(f),"".concat(new Intl.NumberFormat(l,{style:"currency",currency:u}).format(r)," ").concat(u)]}throw exception("Error: Don't exist currency")}catch(t){return console.error({e:t}),["".concat(i," ").concat(o.toLocaleString()),"".concat(n," ").concat(r.toLocaleString())]}},switchCarrousel:function(t,e){var n=document.querySelector(".contenedor-indicadores"),i=document.querySelector("#contenedor-indicadores-intern"),r=t.getAttribute("data-name"),o=i.querySelector(".indicador[data-activo='true']");if(r&&o){if(o.getAttribute("data-name")===r)return;var a=Array.from(t.parentNode.children).indexOf(t),s=0;0!==a&&(s=i.children[a].offsetWidth*a),n.style.scrollBehavior="smooth",n.scrollLeft=s;var c=document.querySelectorAll(".boton-indicadores");e&&(c.forEach((function(t){return t.classList.remove("activo")})),t.classList.add("activo"))}},getCurrencyByCoin:function(t){var i=t.handleError,r=t.handleFinally,o=function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(t,n);try{var a=o.number,s=o.currency,c=o.digits;if(a&&s){var l=e.filter((function(t){return t.currency===s}));if(l&&l.length>0){var u=l.shift()||{},h=u.origin,d=u.currency,f=parseInt(a)>1?2:4;return[new Intl.NumberFormat(h,{style:"currency",currency:d,maximumFractionDigits:void 0===c?f:c}).format(parseFloat(a))]}}else i(new Error("ERROR: coin or currency is required"))}catch(t){i(t)}finally{r()}},setJustTime:function(t){var e=4===t.length?"".concat(t,":00"):t;return new Intl.DateTimeFormat("en-CO",{hour:"numeric",minute:"numeric",second:"numeric",hour12:!0,timeZone:"America/Bogota"}).format(new Date("".concat((new Date).toISOString().split("T")[0],"T").concat(e,"Z")))},addScroll:function(t){var e=t.querySelectorAll(".container-scroll-table");e&&e.forEach((function(t){t.addEventListener("scroll",(function(e){var n,i=e.target.querySelectorAll(".contenedor-info-graficos");
2n=t.scrollLeft,i.forEach((function(t){t.style.marginLeft=n+"px",t.style.transition="all .5s"}))}))}))}})},9739:t=>{t.exports=function(t){var e;function n(t,e,n,i,r,o){return s(function(t,e){return t<<e|t>>>32-e}(s(s(e,t),s(i,o)),r),n)}function i(t,e,i,r,o,a,s){return n(e&i|~e&r,t,e,o,a,s)}function r(t,e,i,r,o,a,s){return n(e&r|i&~r,t,e,o,a,s)}function o(t,e,i,r,o,a,s){return n(e^i^r,t,e,o,a,s)}function a(t,e,i,r,o,a,s){return n(i^(e|~r),t,e,o,a,s)}function s(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return function(t){for(var e,n="0123456789ABCDEF",i="",r=0;r<t.length;r++)e=t.charCodeAt(r),i+=n.charAt(e>>>4&15)+n.charAt(15&e);return i}(function(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>n%32&255);return e}(function(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,c=-271733879,l=-1732584194,u=271733878,h=0;h<t.length;h+=16){var d=n,f=c,p=l,g=u;c=a(c=a(c=a(c=a(c=o(c=o(c=o(c=o(c=r(c=r(c=r(c=r(c=i(c=i(c=i(c=i(c,l=i(l,u=i(u,n=i(n,c,l,u,t[h+0],7,-680876936),c,l,t[h+1],12,-389564586),n,c,t[h+2],17,606105819),u,n,t[h+3],22,-1044525330),l=i(l,u=i(u,n=i(n,c,l,u,t[h+4],7,-176418897),c,l,t[h+5],12,1200080426),n,c,t[h+6],17,-1473231341),u,n,t[h+7],22,-45705983),l=i(l,u=i(u,n=i(n,c,l,u,t[h+8],7,1770035416),c,l,t[h+9],12,-1958414417),n,c,t[h+10],17,-42063),u,n,t[h+11],22,-1990404162),l=i(l,u=i(u,n=i(n,c,l,u,t[h+12],7,1804603682),c,l,t[h+13],12,-40341101),n,c,t[h+14],17,-1502002290),u,n,t[h+15],22,1236535329),l=r(l,u=r(u,n=r(n,c,l,u,t[h+1],5,-165796510),c,l,t[h+6],9,-1069501632),n,c,t[h+11],14,643717713),u,n,t[h+0],20,-373897302),l=r(l,u=r(u,n=r(n,c,l,u,t[h+5],5,-701558691),c,l,t[h+10],9,38016083),n,c,t[h+15],14,-660478335),u,n,t[h+4],20,-405537848),l=r(l,u=r(u,n=r(n,c,l,u,t[h+9],5,568446438),c,l,t[h+14],9,-1019803690),n,c,t[h+3],14,-187363961),u,n,t[h+8],20,1163531501),l=r(l,u=r(u,n=r(n,c,l,u,t[h+13],5,-1444681467),c,l,t[h+2],9,-51403784),n,c,t[h+7],14,1735328473),u,n,t[h+12],20,-1926607734),l=o(l,u=o(u,n=o(n,c,l,u,t[h+5],4,-378558),c,l,t[h+8],11,-2022574463),n,c,t[h+11],16,1839030562),u,n,t[h+14],23,-35309556),l=o(l,u=o(u,n=o(n,c,l,u,t[h+1],4,-1530992060),c,l,t[h+4],11,1272893353),n,c,t[h+7],16,-155497632),u,n,t[h+10],23,-1094730640),l=o(l,u=o(u,n=o(n,c,l,u,t[h+13],4,681279174),c,l,t[h+0],11,-358537222),n,c,t[h+3],16,-722521979),u,n,t[h+6],23,76029189),l=o(l,u=o(u,n=o(n,c,l,u,t[h+9],4,-640364487),c,l,t[h+12],11,-421815835),n,c,t[h+15],16,530742520),u,n,t[h+2],23,-995338651),l=a(l,u=a(u,n=a(n,c,l,u,t[h+0],6,-198630844),c,l,t[h+7],10,1126891415),n,c,t[h+14],15,-1416354905),u,n,t[h+5],21,-57434055),l=a(l,u=a(u,n=a(n,c,l,u,t[h+12],6,1700485571),c,l,t[h+3],10,-1894986606),n,c,t[h+10],15,-1051523),u,n,t[h+1],21,-2054922799),l=a(l,u=a(u,n=a(n,c,l,u,t[h+8],6,1873313359),c,l,t[h+15],10,-30611744),n,c,t[h+6],15,-1560198380),u,n,t[h+13],21,1309151649),l=a(l,u=a(u,n=a(n,c,l,u,t[h+4],6,-145523070),c,l,t[h+11],10,-1120210379),n,c,t[h+2],15,718787259),u,n,t[h+9],21,-343485551),n=s(n,d),c=s(c,f),l=s(l,p),u=s(u,g)}return Array(n,c,l,u)}(function(t){for(var e=Array(t.length>>2),n=0;n<e.length;n++)e[n]=0;for(n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e}(e=t),8*e.length))).toLowerCase()}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(6852),n(5919),n(3055)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.