Files
WEBtomaste/Atomaste Reference/public_html/wp-content/plugins/burst-statistics/settings/build/734.1cf3903ce0e80c1da569.js

1 line
184 KiB
JavaScript
Raw Normal View History

2025-12-10 12:17:30 -05:00
"use strict";(globalThis.webpackChunkburst_statistics=globalThis.webpackChunkburst_statistics||[]).push([[734],{6734:(t,e,i)=>{i.d(e,{N1:()=>g});var s=i(1609),n=i.n(s),o=i(3050);const a="label";function r(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function h(t,e){t.labels=e}function l(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;const s=[];t.datasets=e.map((e=>{const n=t.datasets.find((t=>t[i]===e[i]));return n&&e.data&&!s.includes(n)?(s.push(n),Object.assign(n,e),n):{...e}}))}function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;const i={labels:[],datasets:[]};return h(i,t.labels),l(i,t.datasets,e),i}function d(t,e){let{height:i=150,width:a=300,redraw:d=!1,datasetIdKey:u,type:f,data:g,options:p,plugins:m=[],fallbackContent:b,updateMode:x,..._}=t;const y=(0,s.useRef)(null),v=(0,s.useRef)(),M=()=>{y.current&&(v.current=new o.t1(y.current,{type:f,data:c(g,u),options:p&&{...p},plugins:m}),r(e,v.current))},w=()=>{r(e,null),v.current&&(v.current.destroy(),v.current=null)};return(0,s.useEffect)((()=>{var t,e;!d&&v.current&&p&&(t=v.current,e=p,Object.assign(t.options,e))}),[d,p]),(0,s.useEffect)((()=>{!d&&v.current&&h(v.current.config.data,g.labels)}),[d,g.labels]),(0,s.useEffect)((()=>{!d&&v.current&&g.datasets&&l(v.current.config.data,g.datasets,u)}),[d,g.datasets]),(0,s.useEffect)((()=>{v.current&&(d?(w(),setTimeout(M)):v.current.update(x))}),[d,p,g.labels,g.datasets,x]),(0,s.useEffect)((()=>{v.current&&(w(),setTimeout(M))}),[f]),(0,s.useEffect)((()=>(M(),()=>w())),[]),n().createElement("canvas",Object.assign({ref:y,role:"img",height:i,width:a},_),b)}const u=(0,s.forwardRef)(d);function f(t,e){return o.t1.register(e),(0,s.forwardRef)(((e,i)=>n().createElement(u,Object.assign({},e,{ref:i,type:t}))))}const g=f("line",o.ZT)},3050:(t,e,i)=>{function s(){}i.d(e,{PP:()=>so,t1:()=>pn,s$:()=>Nn,ZT:()=>ji,No:()=>An,kc:()=>ao,FN:()=>Ln,hE:()=>jn,m_:()=>io});const n=function(){let t=0;return function(){return t++}}();function o(t){return null==t}function a(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 r(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const h=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function l(t,e){return h(t)?t:e}function c(t,e){return void 0===t?e:t}const d=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function u(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function f(t,e,i,s){let n,o,h;if(a(t))if(o=t.length,s)for(n=o-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if(r(t))for(h=Object.keys(t),o=h.length,n=0;n<o;n++)e.call(i,t[h[n]],h[n])}function g(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function p(t){if(a(t))return t.map(p);if(r(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=p(t[i[n]]);return e}return t}function m(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function b(t,e,i,s){if(!m(t))return;const n=e[t],o=i[t];r(n)&&r(o)?x(n,o,s):e[t]=p(o)}function x(t,e,i){const s=a(e)?e:[e],n=s.length;if(!r(t))return t;const o=(i=i||{}).merger||b;for(let a=0;a<n;++a){if(!r(e=s[a]))continue;const n=Object.keys(e);for(let s=0,a=n.length;s<a;++s)o(n[s],t,e,i)}return t}function _(t,e){return x(t,e,{merger:y})}function y(t,e,i){if(!m(t))return;const s=e[t],n=i[t];r(s)&&r(n)?_(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=p(n))}const v={"":t=>t,x:t=>t.x,y:t=>t.y};function M(t,e){const i=v[e]||(v[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function w(t){return t.charAt(0).toUpperCase()+t.slice(1)}const k=t=>void 0!==t,S=t=>"function"==typeof t,P=(t,e)=>{if(t.size!==e.size)return!1;for(const