Files
fad_oa/ruoyi-ui/public/file-viewer/assets/PptxRender-Dad6hvcj.js

32 lines
770 KiB
JavaScript
Raw Normal View History

import{h as e}from"./package-Bop5TfAT.js";import{D as t,X as n,_ as r,f as i,g as a,h as o,i as s,s as c,y as l}from"./runtime-core.esm-bundler-DO-WTVbd.js";import{a as u,c as d,i as f,n as p,o as m,t as h}from"./linear-DAeDjlp3.js";import{t as g}from"./ordinal-hYBb2elL.js";import{A as _,C as v,E as y,M as b,O as x,T as S,a as C,c as w,d as T,i as E,j as D,k as O,l as k,n as ee,o as te,r as ne,s as re,t as ie,x as ae,y as oe}from"./time-B8nkukJS.js";import{$ as se,C as ce,L as le,Q as A,R as ue,S as de,_ as fe,a as pe,b as me,c as he,d as ge,et as _e,f as ve,g as ye,h as be,i as xe,l as Se,m as Ce,n as we,nt as Te,o as Ee,p as De,r as Oe,rt as ke,s as Ae,t as je,tt as Me,u as Ne,v as Pe,x as Fe,y as Ie,z as Le}from"./src-BrOGWJpF.js";import{r as Re,t as ze}from"./defaultLocale-C8Fc0cco.js";import{t as Be}from"./init-D6jRqBbL.js";import{t as Ve}from"./arc-C_eH0vTw.js";import{t as He}from"./pie-CZr-MxNa.js";import{t as Ue}from"./worker-ref-BbTnHTC-.js";function We(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ge(e,t){if(e=We(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function Ke(e){return typeof e==`string`?new se([document.querySelectorAll(e)],[document.documentElement]):new se([Me(e)],_e)}var qe={passive:!1},Je={capture:!0,passive:!1};function Ye(e){e.stopImmediatePropagation()}function Xe(e){e.preventDefault(),e.stopImmediatePropagation()}function Ze(e){var t=e.document.documentElement,n=A(e).on(`dragstart.drag`,Xe,Je);`onselectstart`in t?n.on(`selectstart.drag`,Xe,Je):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Qe(e,t){var n=e.document.documentElement,r=A(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Xe,Je),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var $e=e=>()=>e;function et(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}et.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function tt(e){return!e.ctrlKey&&!e.button}function nt(){return this.parentNode}function rt(e,t){return t??{x:e.x,y:e.y}}function it(){return navigator.maxTouchPoints||`ontouchstart`in this}function at(){var e=tt,t=nt,n=rt,r=it,i={},a=ke(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,qe).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(A(n.view).on(`mousemove.drag`,m,Je).on(`mouseup.drag`,h,Je),Ze(n.view),Ye(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(Xe(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){A(e.view).on(`mousemove.drag mouseup.drag`,null),Qe(e.view,l),Xe(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(Ye(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(Xe(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.
\r]`),n=e.charCodeAt(0);function r(e,t){var n,r,a=i(e,function(e,i){if(n)return n(e,i-1);r=e,n=t?pt(e,t):ft(e)});return a.columns=r||[],a}function i(e,t){var r=[],i=e.length,a=0,o=0,s,c=i<=0,l=!1;e.charCodeAt(i-1)===ut&&--i,e.charCodeAt(i-1)===dt&&--i;function u(){if(c)return ct;if(l)return l=!1,st;var t,r=a,o;if(e.charCodeAt(r)===lt){for(;a++<i&&e.charCodeAt(a)!==lt||e.charCodeAt(++a)===lt;);return(t=a)>=i?c=!0:(o=e.charCodeAt(a++))===ut?l=!0:o===dt&&(l=!0,e.charCodeAt(a)===ut&&++a),e.slice(r+1,t-1).replace(/""/g,`"`)}for(;a<i;){if((o=e.charCodeAt(t=a++))===ut)l=!0;else if(o===dt)l=!0,e.charCodeAt(a)===ut&&++a;else if(o!==n)continue;return e.slice(r,t)}return c=!0,e.slice(r,i)}for(;(s=u())!==ct;){for(var d=[];s!==st&&s!==ct;)d.push(s),s=u();t&&(d=t(d,o++))==null||r.push(d)}return r}function a(t,n){return t.map(function(t){return n.map(function(e){return u(t[e])}).join(e)})}function o(t,n){return n??=mt(t),[n.map(u).join(e)].concat(a(t,n)).join(`
`)}function s(e,t){return t??=mt(e),a(e,t).join(`
`)}function c(e){return e.map(l).join(`
`)}function l(t){return t.map(u).join(e)}function u(e){return e==null?``:e instanceof Date?_t(e):t.test(e+=``)?`"`+e.replace(/"/g,`""`)+`"`:e}return{parse:r,parseRows:i,format:o,formatBody:s,formatRows:c,formatRow:l,formatValue:u}}var yt=vt(`,`),bt=yt.parse,xt=yt.parseRows;yt.format,yt.formatBody,yt.formatRows,yt.formatRow,yt.formatValue;var St=vt(` `),Ct=St.parse,wt=St.parseRows;St.format,St.formatBody,St.formatRows,St.formatRow,St.formatValue;function Tt(e){return Math.log(e)}function Et(e){return Math.exp(e)}function Dt(e){return-Math.log(-e)}function Ot(e){return-Math.exp(-e)}function kt(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function At(e){return e===10?kt:e===Math.E?Math.exp:t=>e**+t}function jt(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function j(e){return(t,n)=>-e(-t,n)}function Mt(e){let t=e(Tt,Et),n=t.domain,r=10,i,a;function o(){return i=jt(r),a=At(r),n()[0]<0?(i=j(i),a=j(a),e(Dt,Ot)):e(Tt,Et),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),f,p,m=e==null?10:+e,h=[];if(!(r%1)&&u-l<m){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(f=1;f<r;++f)if(p=l<0?f/a(-l):f*a(l),!(p<o)){if(p>s)break;h.push(p)}}else for(;l<=u;++l)for(f=r-1;f>=1;--f)if(p=l>0?f/a(-l):f*a(l),!(p<o)){if(p>s)break;h.push(p)}h.length*2<m&&(h=d(o,s,m))}else h=d(l,u,Math.min(u-l,m)).map(a);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=Re(n)).precision==null&&(n.trim=!0),n=ze(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(x(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function Nt(){let e=Mt(u()).domain([1,10]);return e.copy=()=>f(e,Nt()).base(e.base()),Be.apply(e,arguments),e}function Pt(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ft(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function It(e){var t=1,n=e(Pt(t),Ft(t));return n.constant=function(n){return arguments.length?e(Pt(t=+n),Ft(t)):t},p(n)}function Lt(){var e=It(u());return e.copy=function(){return f(e,Lt()).constant(e.constant())},Be.apply(e,arguments)}function Rt(){return Be.apply(ie(w,re,k,T,oe,ae,v,S,y,C).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zt(e,t,n){var r=null,i=le(!0),a=null,o=Fe,s=null,c=ce(l);e=typeof e==`function`?e:e===void 0?Ie:le(+e),t=typeof t==`function`?t:le(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?me:le(+n);function l(l){var u,d,f,p=(l=de(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Pe().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:le(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:le(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:le(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:le(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:le(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:le(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:le(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}function Bt(e,t){if(e===void 0||!e.document)throw Er
`):t)),n};var J=/\[\]$/,Un=/\r?\n/g,Wn=/^(?:submit|button|image|reset|file)$/i,Gn=/^(?:input|select|textarea|keygen)/i;function Kn(e,t,n,r){var i;if(Array.isArray(t))S.each(t,function(t,i){n||J.test(e)?r(e,i):Kn(e+`[`+(typeof i==`object`&&i?t:``)+`]`,i,n,r)});else if(!n&&m(t)===`object`)for(i in t)Kn(e+`[`+i+`]`,t[i],n,r);else r(e,t)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=typeof t==`function`?t():t;r[r.length]=encodeURIComponent(e)+`=`+encodeURIComponent(n??``)};if(e==null)return``;if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Kn(n,e[n],t,i);return r.join(`&`)},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,`elements`);return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(`:disabled`)&&Gn.test(this.nodeName)&&!Wn.test(e)&&(this.checked||!tn.test(e))}).map(function(e,t){var n=S(this).val();return n==null?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Un,`\r
`)}}):{name:t.name,value:n.replace(Un,`\r
`)}}).get()}});var qn=/%20/g,Jn=/#.*$/,Yn=/([?&])_=[^&]*/,Y=/^(.*?):[ \t]*([^\r\n]*)$/gm,X=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Z=/^(?:GET|HEAD)$/,Xn=/^\/\//,Zn={},Q={},Qn=`*/*`,$n=_.createElement(`a`);$n.href=K.href;function er(e){return function(t,n){typeof t!=`string`&&(n=t,t=`*`);var r,i=0,a=t.toLowerCase().match(be)||[];if(typeof n==`function`)for(;r=a[i++];)r[0]===`+`?(r=r.slice(1)||`*`,(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function tr(e,t,n,r){var i={},a=e===Q;function o(s){var c;return i[s]=!0,S.each(e[s]||[],function(e,s){var l=s(t,n,r);if(typeof l==`string`&&!a&&!i[l])return t.dataTypes.unshift(l),o(l),!1;if(a)return!(c=l)}),c}return o(t.dataTypes[0])||!i[`*`]&&o(`*`)}function nr(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((i[n]?e:r||={})[n]=t[n]);return r&&S.extend(!0,e,r),e}function rr(e,t,n){for(var r,i,a,o,s=e.contents,c=e.dataTypes;c[0]===`*`;)c.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader(`Content-Type`));if(r){for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}}if(c[0]in n)a=c[0];else{for(i in n){if(!c[0]||e.converters[i+` `+c[0]]){a=i;break}o||=i}a||=o}if(a)return a!==c[0]&&c.unshift(a),n[a]}function ir(e,t,n,r){var i,a,o,s,c,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift(),a){if(a===`*`)a=c;else if(c!==`*`&&c!==a){if(o=l[c+` `+a]||l[`* `+a],!o){for(i in l)if(s=i.split(` `),s[1]===a&&(o=l[c+` `+s[0]]||l[`* `+s[0]],o)){o===!0?o=l[i]:l[i]!==!0&&(a=s[0],u.unshift(s[1]));break}}if(o!==!0)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:`parsererror`,error:o?e:`No conversion from `+c+` to `+a}}}}return{state:`success`,data:t}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:K.href,type:`GET`,isLocal:X.test(K.protocol),global:!0,processData:!0,async:!0,contentType:`application/x-www-form-urlencoded; charset=UTF-8`,accepts:{"*":Qn,text:`text/plain`,html:`text/html`,xml:`application/xml, text/xml`,json:`application/json, text/javascript`},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:`responseXML`,text:`responseText`,json:`responseJSON`},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?nr(nr(e,S.ajaxSettings),t):nr(S.ajaxSettings,e)},ajaxPrefilter:er(Zn),ajaxTransport:er(Q),ajax:function(t,n){typeof t==`object`&&(n=t,t=void 0),n||={};var r,i,a,o,s,c,l,u,d,f,p=S.ajaxSetup({},n),m=p.context||p,h=p.context&&(m.nodeType||m.jquery)?S(m):S.event,g=S.Deferred(),v=S.Callbacks(`once memory`),y=p.statusCode||{},b={},x={},C=`canceled`,w={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Y.exec(a);)o[t[1].toLowerCase()+` `]=(o[t[1].toLowerCase()+` `]||[]).concat(t[2]);t=o[e.toLowerCase()+` `]}return t==null?null:t.join(`, `)},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return l??(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return l??(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),T(0,t),this}};if(g.promise(w),p.url=((t||p.url||K.href)+``).replace(Xn,K.protocol+`//`),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||`*`).toLowerCase().match(be)||[``],p.crossDomain==null){c=_.createElement(`a`);try{c.href=p.url,c.href=c.href,p.crossDomain=$n.protocol+`//`+$n.host!=c.protocol+`//`+c.host}catch{p.crossDomain=!0}}if(tr(Zn,p,n,w),p.data&&p.processData&&typeof p.data!=`string`&&(p.data=S.param(p.data,p.traditional)),l)return w;for(d in u=S.event&&p.global,u&&S.active++===0&&S.event.trigger(`ajaxStart`),p.type=p.type.toUpperCase(),p.hasContent=!Z.test(p.type),i=p.url.replace(Jn,``),p.hasContent?p.data&&p.processData&&(p.contentType||``).indexOf(`application/x-www-form-urlencod
`).replace(/&tab;/gi,` `).replace(/&nbsp;/gi,` `).replace(/&lt;/gi,`<`).replace(/&gt;/gi,`>`).replace(/&amp;/gi,`&`).replace(/&quot;/gi,`"`).replace(/&apos;/gi,`'`).replace(/&#(\d+);/gi,function(e,t){return String.fromCharCode(parseInt(t,10))}).replace(/&#x([0-9a-f]+);/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})}function An(e){var t=kn(e).trim().replace(/[\s\u0000-\u001f]/g,``).toLowerCase();if(!t||t.startsWith(`#`)||t.startsWith(`/`)||t.startsWith(`./`)||t.startsWith(`../`)||!t.includes(`:`))return!0;var n=t.indexOf(`:`);if(n>0){var r=t.substring(0,n+1);return xn.has(r)}return!1}function jn(e){var t=kn(e).replace(/[\u0000-\u001f]/g,``);Dn.lastIndex=0;for(var n;(n=Dn.exec(t))!==null;)if(!An(n[1]))return null;for(var r=t.toLowerCase().replace(/\s/g,``),i=0,a=On;i<a.length;i++){var o=a[i];if(r.includes(o))return null}return e}var Mn={'"':`&quot;`,"'":`&#39;`,"`":`&#96;`},Nn=/["'`]/g;function Pn(e){return e.replace(Nn,function(e){return Mn[e]})}function Fn(e,t,n){if(n===void 0&&(n=!1),Sn.has(e))return An(t)?n?Pn(t):t:null;if(e===`style`){var r=jn(t);return r===null?null:n?Pn(r):r}var i=kn(t).toLowerCase().replace(/\s/g,``);return/\bon\w+=/.test(i)?null:n?Pn(t):t}function In(e){var t=e.match(Cn);return t?t[1].toLowerCase():null}function Ln(e){var t=In(e);return t!==null&&yn.has(t)}function Rn(e){var t=e.match(wn);if(t)return`</${t[1].toLowerCase()}>`;var n=e.match(Tn);if(!n)return``;var r=n[1],i=n[2],a=n[3],o=r.toLowerCase(),s=[];En.lastIndex=0;for(var c;(c=En.exec(i))!==null;){var l=c[1].toLowerCase(),u=c[2],d=c[3],f=c[4];if(!l.startsWith(`on`)){var p=void 0,m=void 0;if(u!==void 0)p=u,m=`"`;else if(d!==void 0)p=d,m=`'`;else if(f!==void 0)p=f,m=`"`;else{bn.has(l)&&s.push(l);continue}if(bn.has(l)){var h=Fn(l,p,f!==void 0);h!==null&&s.push(`${l}=${m}${h}${m}`)}}}return`<${o}${s.length>0?` ${s.join(` `)}`:``}${a?`/>`:`>`}`}function zn(e){return typeof e!=`string`||!e||e.indexOf(`<`)===-1?e:e.replace(/<\/?[^>]*>|[^<>\s]+>/g,function(e){return e.startsWith(`<!--`)?``:e.startsWith(`<`)?Ln(e)?Rn(e):e.replace(/</g,`&lt;`):e.slice(0,-1)+`&gt;`})}function Bn(e,t,n){n===void 0&&(n=!1);var r=function(t){return t[e?`getBoundingClientRect`:`getBBox`]()};return n?r(t):!(`rect`in t)||`rect`in t&&t.hasAttribute(`width`)&&t.rect.width!==+(t.getAttribute(`width`)||0)?t.rect=r(t):t.rect}function Vn(e,t){for(var n=0;n<e.length;n++){var r=e[n];r&&t(r,n)}}var W=function(e){return e||e===0},G=function(e){return typeof e==`function`},K=function(e){return typeof e==`string`},q=function(e){return typeof e==`number`},Hn=function(e){return e===void 0},J=function(e){return e!==void 0},Un=function(e){return typeof e==`boolean`},Wn=function(e){return Math.ceil(e/10)*10},Gn=function(e){return Math.ceil(e)+.5},Kn=function(e){return e[1]-e[0]},qn=function(e){return typeof e==`object`},Jn=function(e){for(var t in e)return!1;return!0},Yn=function(e){return Hn(e)||e===null||K(e)&&e.length===0||qn(e)&&!(e instanceof Date)&&Jn(e)||q(e)&&isNaN(e)},Y=function(e){return!Yn(e)},X=function(e){return Array.isArray(e)},Z=function(e){return e&&!e?.nodeType&&qn(e)&&!X(e)};function Xn(e,t,n){return J(e[t])?e[t]:n}function Zn(e,t){var n=!1;return Object.keys(e).forEach(function(r){return e[r]===t&&(n=!0)}),n}function Q(e,t){var n=[...arguments].slice(2),r=G(e);return r&&e.call.apply(e,N([t],n,!1)),r}function Qn(e,t){var n=0,r=function(){var e=[...arguments];!--n&&t.apply.apply(t,N([this],e,!1))};`duration`in e?e.each(function(){return++n}).on(`end`,r):(++n,e.call(r))}function $n(e,t,n,r){if(n===void 0&&(n=[-1,1]),r===void 0&&(r=!1),!(!e||!K(t)))if(t.indexOf(`
`)===-1)e.text(t);else{var i=[e.text(),t].map(function(e){return e.replace(/[\s\n]/g,``)});if(i[0]!==i[1]){var a=t.split(`
`),o=r?a.length-1:1;e.html(``),a.forEach(function(t,r){e.append(`tspan`).attr(`x`,0).attr(`dy`,`${r===0?n[0]*o:n[1]}em`).text(t)})}}}function er(e){var t=e.getBBox(),n=t.x,r=t.y,i=t.width,a=t.height;return[{x:n,y:r+a},{x:n,y:r},{x:n+i,y:r},{x:n+i,y:r+a}]}function tr(e){var t=ir(e),n=t.width,r=t.height,i=er(e);return{x:i[0].x,y:Math.min(i[0].y,i[1].y),width:n,height:r}}function nr(e,t){var n=e&&(e.touches||e.sourceEvent&&e.sourceEvent.touches)?.[0],r=[0,0];try{r=Ge(n||e,t)}catch{}return r.map(function(e){return isNaN(e)?0:e})}function rr(e){var t=e.event,n=e.$el,r=n.subchart.main||n.main,i;return t&&t.type===`brush`?i=t.selection:r&&(i=r.select(`.bb-brush`).node())&&(i=ue(i)),i}function ir(e,t){return t===void 0&&(t=!1),Bn(!0,e,t)}function ar(e,t){return t===void 0&&(t=!1),Bn(!1,e,t)}function or(e,t,n){e===void 0&&(e=!0),t===void 0&&(t=0),n===void 0&&(n=1e4);var r=H.crypto||H.msCrypto,i=r?t+r.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(i):i}function sr(e,t,n,r,i){if(n>r)return-1;var a=Math.floor((n+r)/2),o=e[a],s=o.x,c=o.w,l=c===void 0?0:c;return i&&(s=e[a].y,l=e[a].h),t>=s&&t<=s+l?a:t<s?sr(e,t,n,a-1,i):sr(e,t,a+1,r,i)}function cr(e){var t=rr(e);return t?t[0]===t[1]:!0}function lr(){var e=[...arguments],t=function(e){if(Z(e)&&e.constructor){var n=new e.constructor;for(var r in e)n[r]=t(e[r]);return n}return e};return e.map(function(e){return t(e)}).reduce(function(e,t){return M(M({},e),t)})}function ur(e,t){for(var n in e===void 0&&(e={}),X(t)&&t.forEach(function(t){return ur(e,t)}),t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}var dr=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};function fr(e,t){return t===void 0&&(t=`-`),e.split(t).map(function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()}).join(``)}var pr=function(e){return[].slice.call(e)};function mr(e,t,n){var r=e.rootSelector,i=r===void 0?``:r,a=e.sheet,o=`${i} ${function(e){return e.replace(/\s?(bb-)/g,`.$1`).replace(/\.+/g,`.`)}(t)} {${n.join(`;`)}}`;return a[a.insertRule?`insertRule`:`addRule`](o,a.cssRules.length)}function hr(e){var t=[];return e.forEach(function(e){var n;try{e.cssRules&&e.cssRules.length&&(t=t.concat(pr(e.cssRules)))}catch(t){(n=H.console)==null||n.warn(`Error while reading rules from ${e.href}: ${t.toString()}`)}}),t}function gr(e){return{x:(H.pageXOffset??H.scrollX??0)+(e.scrollLeft??0),y:(H.pageYOffset??H.scrollY??0)+(e.scrollTop??0)}}function _r(e,t,n,r){t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=!0);var i=new DOMPoint(t,n),a=e.getScreenCTM(),o=i.matrixTransform(r?a?.inverse():a);if(r===!1){var s=ir(e);o.x-=s.x,o.y-=s.y}return o}function vr(e){var t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function yr(e){var t=e[0]instanceof Date,n=(t?e.map(Number):e).filter(function(e,t,n){return n.indexOf(e)===t});return t?n.map(function(e){return new Date(e)}):n}function br(e){return e&&e.length?e.reduce(function(e,t){return e.concat(t)}):[]}function xr(e){var t=[...arguments].slice(1);if(!t.length||t.length===1&&!t[0])return e;var n=t.shift();return Z(e)&&Z(n)&&Object.keys(n).forEach(function(t){if(!/^(__proto__|constructor|prototype)$/i.test(t)){var r=n[t];Z(r)?(!e[t]&&(e[t]={}),e[t]=xr(e[t],r)):e[t]=X(r)?r.concat():r}}),xr.apply(void 0,N([e],t,!1))}function Sr(e,t){t===void 0&&(t=!0);var n;return e[0]instanceof Date?n=t?function(e,t){return e-t}:function(e,t){return t-e}:t&&!e.every(isNaN)?n=function(e,t){return e-t}:t||(n=function(e,t){return e>t&&-1||e<t&&1||e===t&&0}),e.concat().sort(n)}function Cr(e,t){var n=t.filter(function(e){return Y(e)});return n.length?q(n[0])?n=Math[e].apply(Math,n):n[0]instanceof Date&&(n=Sr(n,e===`min`)[0]):n=void 0,n}var wr={mouse:(function(){var e=function(){return{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}};try{return new MouseEvent(`t`),function(t,n,r){r===void 0&&(r=e()),t.dispatchEvent(new MouseEvent(n,r))}}catch{return function(t,n,r){r===void 0&&(r=e());var i=U.createEvent(`MouseEvent`);i.initMouseEvent(n,r.bubbles,r.
self.onmessage=function({data}) {
const result = (${n}).apply(null, data);
self.postMessage(result);
};`],{type:`text/javascript`})),H.URL.createObjectURL(Yr[r])}function Zr(e){var t=new H.Worker(e);return t.onerror=function(e){console.error?console.error(e):console.log(e)},t}function Qr(e,t,n,r){e===void 0&&(e=!0);var i=function(){var e=[...arguments];n(t.apply(void 0,e))};if(H.Worker&&e){var a=Xr(t,r),o=Zr(a);i=function(){var e=[...arguments];o.postMessage(e),o.onmessage=function(e){return H.URL.revokeObjectURL(a),n(e.data)}}}return i}function $r(e){var t=[];return e.forEach(function(e,n){var r=e[0];e.forEach(function(e,i){if(i>0){if(t[i-1]===void 0&&(t[i-1]={}),e===void 0)throw Error(`Source data is missing a component at (${n}, ${i})!`);t[i-1][r]=e}})}),t}function ei(e){var t=e[0],n=[];return e.forEach(function(e,r){if(r>0){var i={};e.forEach(function(e,n){if(e===void 0)throw Error(`Source data is missing a component at (${r}, ${n})!`);i[t[n]]=e}),n.push(i)}}),n}function ti(e,t){var n=[],r,i;if(Array.isArray(e)){var a=function(e,t){if(e[t]!==void 0)return e[t];var n=t.replace(/\[(\w+)\]/g,`.$1`).replace(/^\./,``).split(`.`),r=e;return n.some(function(e){return!(r=r&&e in r?r[e]:void 0)}),r};r=t.x?t.value.concat(t.x):t.value,n.push(r),e.forEach(function(e){var t=r.map(function(t){var n=a(e,t);return n===void 0&&(n=null),n});n.push(t)}),i=ei(n)}else Object.keys(e).forEach(function(t){var r,i=e[t].concat();(r=i.unshift)==null||r.call(i,t),n.push(i)}),i=$r(n);return i}function ni(e,t,n,r,i){t===void 0&&(t=`csv`);var a=new XMLHttpRequest,o={csv:ii,tsv:ai,json:ti};a.open(`GET`,e),n&&Object.keys(n).forEach(function(e){a.setRequestHeader(e,n[e])}),a.onreadystatechange=function(){if(a.readyState===4)if(a.status===200){var n=a.responseText;n&&i.call(this,o[t](t===`json`?JSON.parse(n):n,r))}else throw Error(`${e}: Something went wrong loading!`)},a.send()}function ri(e,t){var n=e.rows(t),r;return n.length===1?(r=[{}],n[0].forEach(function(e){r[0][e]=null})):r=e.parse(t),r}function ii(e){return ri({rows:xt,parse:bt},e)}function ai(e){return ri({rows:wt,parse:Ct},e)}function oi(e,t){var n=e||t?.data_keys;return n?.x&&(t.data_x=n.x),n}function si(e,t,n){var r=this,i=this,a=i.config,o;e.forEach(function(e){var s=i.getXKey(e);if(n.customX||n.timeSeries?n.xs.indexOf(s)>=0?o=(n.appendXs&&i.data.xs[e]||[]).concat(t.map(function(t,n){var r=W(t[s]);return r?i.generateTargetX(r,e,n):!1}).filter(function(e){return e!==!1})):a.data_x?o=r.getOtherTargetXs():Y(a.data_xs)&&(o=i.getXValuesOfXKey(s,i.data.targets)):o=t.map(function(e,t){return t}),o)i.data.xs[e]=o;else throw Error(`x is not defined for id = "${e}".`)})}var ci={convertData:function(e,t){var n=this.config,r=function(e){return e?.length&&!Yn(e[0])?n.boost_useWorker:!1},i=e;if(e.bindto&&(i={},[`url`,`mimeType`,`headers`,`keys`,`json`,`keys`,`rows`,`columns`].forEach(function(t){var n=`data_${t}`;n in e&&(i[t]=e[n])})),i.url&&t)ni(i.url,i.mimeType,i.headers,oi(i.keys,n),t);else if(i.json)Qr(r(i.json),ti,t,[$r,ei])(i.json,oi(i.keys,n));else if(i.rows)Qr(r(i.rows),ei,t)(i.rows);else if(i.columns)Qr(r(i.columns),$r,t)(i.columns);else if(e.bindto)throw Error(`url or json or rows or columns is required.`)},convertDataToTargets:function(e,t){var n=this,r=n.axis,i=n.config,a=n.state,o=i.data_type,s=Object.keys(e[0]||{}),c=s.length?s.reduce(function(e,t){return n.isX.call(n,t)?e.xs.push(t):n.isNotX.call(n,t)&&e.ids.push(t),e},{ids:[],xs:[]}):{ids:[],xs:[]},l=c.ids,u={appendXs:t,xs:c.xs,idConverter:i.data_idConverter.bind(n.api),categorized:r?.isCategorized(),timeSeries:r?.isTimeSeries(),customX:r?.isCustomX()};si.bind(n)(l,e,u);var d=l.map(function(t,r){var o=i.data_idConverter.bind(n.api)(t),s=n.getXKey(t),c=u.customX&&u.categorized,l=c&&(function(){var t=Pr(i.axis_x_categories);return e.every(function(e){return t.has(e.x)})})(),d=e.__append__,f=s===null&&d?n.api.data.values(t).length:0;return{id:o,id_org:t,values:e.map(function(e,u){var p=e[s],m=e[t],h;return m=m!==null&&!isNaN(m)&&!Z(m)?+m:X(m)||Z(m)?m:null,(c||a.hasRadar)&&r===0&&!Hn(p)?(!l&&r===0&&u===0&&!d&&(i.axis_x_categories=[]),h=i.axis_x_categories.indexOf(p),h===-1&&(h=i.axis_x_categories.length,i.axis_x_categories.push(p)))
<feComposite in="SourceGraphic" />`)})}},getGradienColortUrl:function(e){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(e)})`},updateLinearGradient:function(){var e=this,t=e.config,n=e.data.targets,r=e.state.datetimeId,i=e.$el.defs;n.forEach(function(n){var a=`${r}-gradient${e.getTargetSelectorSuffix(n.id)}`,o=e.hasPointType()&&t.point_radialGradient,s=e.isAreaType(n)&&`area`||e.isBarType(n)&&`bar`;if((o||s)&&i.select(`#${a}`).empty()){var c=e.color(n),l={defs:null,stops:[]};if(o){var u=o.cx,d=u===void 0?.3:u,f=o.cy,p=f===void 0?.3:f,m=o.r,h=m===void 0?.7:m,g=o.stops,_=g===void 0?[[.1,c,0],[.9,c,1]]:g;l.stops=_,l.defs=i.append(`radialGradient`).attr(`id`,`${a}`).attr(`cx`,d).attr(`cy`,p).attr(`r`,h)}else{var v=t.axis_rotated,y=t[`${s}_linearGradient`],b=y.x,x=b===void 0?v?[1,0]:[0,0]:b,S=y.y,C=S===void 0?v?[0,0]:[0,1]:S,w=y.stops,_=w===void 0?[[0,c,1],[1,c,0]]:w;l.stops=_,l.defs=i.append(`linearGradient`).attr(`id`,`${a}`).attr(`x1`,x[0]).attr(`x2`,x[1]).attr(`y1`,C[0]).attr(`y2`,C[1])}l.stops.forEach(function(t){var r=t[0],i=t[1],a=t[2],o=G(i)?i.bind(e.api)(n.id):i;l.defs&&l.defs.append(`stop`).attr(`offset`,r).attr(`stop-color`,o||c).attr(`stop-opacity`,a)})}})},setOverColor:function(e,t){var n=this,r=n.config,i=n.$el.main,a=r.color_onover,o=e?a:n.color;Z(o)?o=function(e){var t=e.id;return t in a?a[t]:n.color(t)}:K(o)?o=function(){return a}:G(a)&&(o=o.bind(n.api)),i.selectAll(Z(t)?`.${F.arc}${n.getTargetSelectorSuffix(t.id)}`:`.${B.shape}-${t}`).style(`fill`,o)}},yi={getYDomainMinMax:function(e,t){var n=this,r=n.axis,i=n.config,a=t===`min`,o=i.data_groups,s=n.mapToIds(e),c=Pr(s),l=n.getValuesAsIdKeyed(e);if(o.length>0){var u=n[`has${a?`Negative`:`Positive`}ValueInTargets`](e),d=new Map(s.map(function(e){return[e,r.getId(e)]}));o.forEach(function(e){var t=e.filter(function(e){return c.has(e)});if(t.length){var n=t[0],r=d.get(n);u&&l[n]&&(l[n]=l[n].map(function(e){return(a?e<0:e>0)?e:0})),t.filter(function(e,t){return t>0}).forEach(function(e){if(l[e]){var t=d.get(e);l[e].forEach(function(e,i){var o=+e;t===r&&!(u&&(a?o>0:o<0))&&(l[n][i]+=o)})}})}})}return Cr(t,Object.keys(l).map(function(e){return Cr(t,l[e])}))},isHiddenTargetWithYDomain:function(e){var t=this;return t.state.hiddenTargetIds.some(function(n){return t.axis.getId(n)===e})},getYDomain:function(e,t,n){var r=this,i=r.axis,a=r.config,o=r.scale,s=`axis_${t}`;if(r.isStackNormalized()&&e.filter(function(e){return i.getId(e.id)===t}).map(function(e){return e.id}).some(function(e){return r.isGrouped(e)}))return[0,100];var c=o?.[t]&&o[t].type===`log`,l=e.filter(function(e){return i.getId(e.id)===t}),u=n?r.filterByXDomain(l,n):l;if(u.length===0)return r.isHiddenTargetWithYDomain(t)?o[t].domain():t===`y2`?o.y.domain():r.getYDomain(e,`y2`,n);var d=a[`${s}_min`],f=a[`${s}_max`],p=a[`${s}_center`],m=a[`${s}_inverted`],h=r.hasDataLabel()&&a.axis_rotated,g=r.hasDataLabel()&&!a.axis_rotated,_=r.getYDomainMinMax(u,`min`),v=r.getYDomainMinMax(u,`max`),y=N([$.BAR,$.BUBBLE,$.SCATTER],Hr.Line,!0).some(function(e){var t=e.indexOf(`area`)>-1?`area`:e;return r.hasType(e,u,!0)&&a[`${t}_zerobased`]});_=W(d)?d:W(f)?_<=f?_:f-10:_,v=W(f)?f:W(d)?d<=v?v:d+10:v,isNaN(_)&&(_=0),isNaN(v)&&(v=_),_===v&&(_<0?v=0:_=0);var b=_>=0&&v>=0,x=_<=0&&v<=0;(W(d)&&b||W(f)&&x)&&(y=!1),y&&(b&&(_=0),x&&(v=0));var S=Math.abs(v-_),C={top:S*.1,bottom:S*.1};if(J(p)){var w=Math.max(Math.abs(_),Math.abs(v));v=p+w,_=p-w}if(h){var T=Kn(o.y.range()),E=r.getDataLabelLength(_,v,`width`).map(function(e){var t=e/T;return isFinite(t)?t:0});[`bottom`,`top`].forEach(function(e,t){C[e]+=S*(E[t]/(1-E[0]-E[1]))})}else if(g){var D=r.getDataLabelLength(_,v,`height`);[`bottom`,`top`].forEach(function(e,t){C[e]+=r.convertPixelToScale(`y`,D[t],S)})}C=r.getResettedPadding(C);var O=a[`${s}_padding`];Y(O)&&[`bottom`,`top`].forEach(function(e){C[e]=i.getPadding(O,e,C[e],S)}),y&&(b&&(C.bottom=_),x&&(C.top=-v));var k=c?[_,v].map(function(e){return e<0?0:e}):[_-C.bottom,v+C.top];return m?k.reverse():k},getXDomainMinMax:function(e,t){var n=this,r=n.config[`axis_x_${t}`],i=Cr(t,e.map(function(e){return C
{=TITLE}
{{<tr class="{=CLASS_TOOLTIP_NAME}">
<td class="name">${this.patterns?`{=COLOR}`:`<span style="background-color:{=COLOR}"></span>`}{=NAME}</td>
<td class="value">{=VALUE}</td>
</tr>}}
</tbody></table>`).replace(/(\r?\n|\t)/g,``).split(/{{(.*)}}/)},setTooltipPosition:function(e,t){var n=this,r=n.config,i=n.scale,a=n.state,o=n.$el,s=o.eventRect,c=o.tooltip,l=o.svg,u=r.tooltip_contents.bindto,d=r.axis_rotated,f=c?.datum();if(!u&&f){var p=e??JSON.parse(f.current),m=nr(a.event,t??s?.node()),h={x:m[0],y:m[1]};if(a.hasAxis&&i.x&&f&&`x`in f){var g=function(e,t,r){e===void 0&&(e=0),r===void 0&&(r=`y`);var o=i[t?n.axis?.getId(t):r];return o?o(e)+(d?a.margin.left:a.margin.top):0};h.xAxis=i.x(f.x)+(r.tooltip_position?d?a.margin.top:a.margin.left:0),p.length===1?h.yAxis=g(p[0].value,p[0].id):h.yAxis=g}var _=f.width,v=_===void 0?0:_,y=f.height,b=y===void 0?0:y,x=r.tooltip_position?.bind(n.api)(p,v,b,s?.node(),h)??(Dr(l)?n.getTooltipPositionViewBox.bind(n)(v,b,h):n.getTooltipPosition.bind(n)(v,b,h));[`top`,`left`].forEach(function(e){var t=x[e];c.style(e,`${t}px`),e===`left`&&!f.xPosInPercent&&(f.xPosInPercent=t/a.current.width*100)})}},getTooltipPositionViewBox:function(e,t,n){var r=this,i=r.$el,a=i.eventRect,o=i.svg,s=r.config,c=r.state,l=s.axis_rotated,u=r.hasArcType()||c.hasFunnel||c.hasTreemap,d=(u?o:a)?.node()??c.event.target,f=n.x,p=n.y;c.hasAxis&&(f=l?f:n.xAxis,p=l?n.xAxis:p);var m=_r(d,f,p,!1),h=ir(d),g=_r(d,20,0,!1).x,_=m.y,v=m.x+e/2+g;return u&&(c.hasFunnel||c.hasTreemap||c.hasRadar?(v-=e/2+g,_+=t):(_+=h.height/2,v+=h.width/2-(e-g))),v+e>h.width&&(v=h.width-e-g),_+t>h.height&&(_-=t*2),{top:_,left:v}},getTooltipPosition:function(e,t,n){var r=this,i=r.config,a=r.scale,o=r.state,s=o.width,c=o.height,l=o.current,u=o.hasFunnel,d=o.hasRadar,f=o.hasTreemap,p=o.isLegendRight,m=o.inputType,h=r.hasType(`gauge`)&&!i.gauge_fullCircle,g=i.axis_rotated,_=r.hasArcType(),v=r.getSvgLeft(!0),y=v+l.width-r.getCurrentPaddingByDirection(`right`),b=20,x=n.x,S=n.y;if(d)x+=x>=s/2?15:-(e+15),S+=15;else if(_){if(m!==`touch`){var C=r.getTitlePadding?.call(r)??0;C&&h&&i.arc_rangeText_values?.length&&(C+=10),x+=(s-(p?r.getLegendWidth():0))/2,S+=(h?c:c/2+t)+C}}else if(u||f)S+=t;else{var w={top:r.getCurrentPaddingByDirection(`top`,!0),left:r.getCurrentPaddingByDirection(`left`,!0)};g?(x+=v+w.left+b,S=w.top+n.xAxis+b,y-=v):(x=v+w.left+b+(a.zoom?x:n.xAxis),S+=w.top-5)}if(x+e+15>y&&(x-=e+(u||f||_?0:g?b*2:38)),S+t>l.height){var T=f?t+10:30;S-=h?t*1.5:t+T}var E={top:S,left:x};return Object.keys(E).forEach(function(e){E[e]<0&&(E[e]=0)}),E},showTooltip:function(e,t){var n=this,r=n.config,i=n.$el.tooltip,a=e.filter(function(e){return e&&W(n.getBaseValue(e))});if(!(!i||a.length===0||!r.tooltip_show)){var o=i.datum(),s=JSON.stringify(e);if(!o||o.current!==s){var c=e.concat().sort()[0],l=c.index,u=c.x;Q(r.tooltip_onshow,n.api,e),i.html(n.getTooltipHTML(e,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style(`display`,null).style(`visibility`,null).datum(o={index:l,x:u,current:s,width:i.property(`offsetWidth`),height:i.property(`offsetHeight`)}),Q(r.tooltip_onshown,n.api,e),n._handleLinkedCharts(!0,l)}n.setTooltipPosition(a,t)}},bindTooltipResizePos:function(){var e=this,t=e.resizeFunction,n=e.state,r=e.$el.tooltip;t.add(function(){if(r.style(`display`)===`block`){var e=n.current,t=r.datum(),i=t.width,a=t.xPosInPercent,o=e.width/100*a,s=e.width-(o+i);s<0&&(o+=s),r.style(`left`,`${o}px`)}})},hideTooltip:function(e){var t=this,n=t.api,r=t.config,i=t.$el.tooltip;if(i&&i.style(`display`)!==`none`&&(!r.tooltip_doNotHide||e)){var a=JSON.parse(i.datum().current??{});Q(r.tooltip_onhide,n,a),i.style(`display`,`none`).datum(null),Q(r.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(e,t){var n=this,r=n.charts,i=n.config;if(n.state.event?.isTrusted&&i.tooltip_linked&&r.length>1){var a=i.tooltip_linked_name;r.filter(function(e){return e!==n.api}).forEach(function(n){var r=n.internal,i=r.config,o=r.$el,s=i.tooltip_linked,c=i.tooltip_linked_name,l=U.body.contains(o.chart.node());if(s&&a===c&&l){var u=t!==o.tooltip.data()[0]?.index;try{n.tooltip[e&&u?`show`:`hide`]({index:t})}catch{}}})}},updateTooltipOnRedraw:function(e,t){var n=this,r=n.config,i=n.$el,a=i.eventRect,o=i.svg,s=i.tooltip,c=n.state,l=c.event,u=c
`)));var d=o.serializeToString(u);return`data:image/svg+xml;base64,${ea(`<svg xmlns="${Te.svg}" width="${i}" height="${a}"
viewBox="0 0 ${n.width} ${n.height}"
preserveAspectRatio="${t?.preserveAspectRatio===!1?`none`:`xMinYMid meet`}">
<foreignObject width="100%" height="100%">
${d}
${l.replace(/(url\()[^#]+/g,`$1`)}
</foreignObject></svg>`)}`}function na(e,t){var n=t.top,r=t.left,i=ar(e,!0),a=i.x,o=i.y,s=e.getScreenCTM(),c=s.a,l=s.b,u=s.c,d=s.d,f=s.e,p=s.f,m=ir(e,!0),h=m.width,g=m.height;return{x:c*a+u*o+f-r,y:l*a+d*o+p-n+(g-Math.round(g/4)),width:h,height:g}}function ra(e){var t=ir(e),n=t.left,r=t.top,i=function(e){return e.textContent||e.childElementCount},a=[];return pr(e.querySelectorAll(`text`)).filter(i).forEach(function(e){var t=function(e){var t,i=H.getComputedStyle(e),a=i.fill,o=i.fontFamily,s=i.fontSize,c=i.textAnchor,l=i.transform,u=na(e,{left:n,top:r}),d=u.x,f=u.y,p=u.width,m=u.height;return t={},t[e.textContent]={x:d,y:f,width:p,height:m,fill:a,fontFamily:o,fontSize:s,textAnchor:c,transform:l},t};if(e.childElementCount>1)return pr(e.querySelectorAll(`tspan`)).filter(i).forEach(function(e){a.push(t(e))}),[];a.push(t(e))}),a}function ia(e,t){t.forEach(function(t){Object.keys(t).forEach(function(n){var r=t[n],i=r.x,a=r.y,o=r.width,s=r.height,c=r.fill,l=r.fontFamily,u=r.fontSize,d=r.transform;if(e.save(),e.font=`${u} ${l}`,e.fillStyle=c,d===`none`)e.fillText(n,i,a);else{var f=d.replace(/(matrix|\(|\))/g,``).split(`,`);f.splice(4).every(function(e){return+e==0})?(f.push(i+o-o/4),f.push(a-s+s/3)):(f.push(i),f.push(a)),e.transform.apply(e,f),e.fillText(n,0,0)}e.restore()})})}var aa={export:function(e,t){var n=this,r=this.internal,i=r.state,a=r.$el,o=a.chart,s=a.svg,c=i.current,l=c.width,u=c.height,d=xr(Object.create(null),{width:l,height:u,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:`image/png`},e),f=ta(o.node(),d,{width:l,height:u}),p=d.preserveFontStyle?ra(s.node()):[];if(t&&G(t)){var m=new Image;m.crossOrigin=`Anonymous`,m.onload=function(){var e=U.createElement(`canvas`),r=e.getContext(`2d`);e.width=d.width||l,e.height=d.height||u,r.drawImage(m,0,0),p.length&&=(ia(r,p),0),t.bind(n)(e.toDataURL(d.mimeType))},m.src=f}return f}},oa={focus:function(e){var t=this.internal,n=t.state,r=t.mapToTargetIds(e),i=t.$el.svg.selectAll(t.selectorTargets(r.filter(t.isTargetToShow,t)));this.revert(),this.defocus(),i.classed(L.focused,!0).classed(L.defocused,!1),t.hasArcType()&&!n.hasRadar&&(t.expandArc(r),t.hasType(`gauge`)&&t.markOverlapped(e,t,`.${Zt.gaugeValue}`)),t.toggleFocusLegend(r,!0),n.focusedTargetIds=r,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(e){return r.indexOf(e)<0})},defocus:function(e){var t=this.internal,n=t.state,r=t.mapToTargetIds(e);t.$el.svg.selectAll(t.selectorTargets(r.filter(t.isTargetToShow,t))).classed(L.focused,!1).classed(L.defocused,!0),t.hasArcType(null,[`polar`])&&(t.unexpandArc(r),t.hasType(`gauge`)&&t.undoMarkOverlapped(t,`.${Zt.gaugeValue}`)),t.toggleFocusLegend(r,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(e){return r.indexOf(e)<0}),n.defocusedTargetIds=r},revert:function(e){var t=this.internal,n=t.config,r=t.state,i=t.$el,a=t.mapToTargetIds(e);i.svg.selectAll(t.selectorTargets(a)).classed(L.focused,!1).classed(L.defocused,!1),t.hasArcType(null,[`polar`])&&t.unexpandArc(a),n.legend_show&&(t.showLegend(a.filter(t.isLegendToShow.bind(t))),i.legend.selectAll(t.selectorLegends(a)).filter(function(){return A(this).classed(L.legendItemFocused)}).classed(L.legendItemFocused,!1)),r.focusedTargetIds=[],r.defocusedTargetIds=[]}},sa={legend:{show:function(e){var t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},hide:function(e){var t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})}}},ca={load:function(e){var t=this.internal,n=t.config;e.xs&&t.addXs(e.xs),`names`in e&&this.data.names(e.names),`classes`in e&&Object.keys(e.classes).forEach(function(t){n.data_classes[t]=e.classes[t]}),`categories`in e&&t.axis.isCategorized()&&(n.axis_x_categories=e.categories),`axes`in e&&Object.keys(e.axes).forEach(function(t){n.data_axes[t]=e.axes[t]}),`colors`in e&&Object.keys(e.colors).forEach(function(t){n.data_colors[t]=e.colors[t]}),`unload`in e&&e.unload!==!1?t.unload(t.mapToTargetIds(e.unload===!0?null:e.unload),function(){vn(function(){return t.loadFromArgs(e)})}):t.loadFromArgs(e)},unload:function(e){var t=this.int
`)>-1?o.split(`
`):[];if(s.length)return s;if(X(o))return o;var c=a.tickWidth;(!c||c<=0)&&(c=r?95:a.isCategory?(a.isInverted?t(n[0])-t(n[1]):t(n[1])-t(n[0]))-12:110);function l(e,t){for(var n,r,a,o=1;o<t.length;o++)if(t.charAt(o)===` `&&(r=o),n=t.substr(0,o+1),a=i*n.length,c<a)return l(e.concat(t.substr(0,r||o)),t.slice(r?r+1:o));return e.concat(t)}return l(s,String(o))},e.prototype.scale=function(e){return arguments.length?(this.helper.scale=e,this):this.helper.scale},e.prototype.orient=function(e){return arguments.length?(this.config.orient=e in{top:1,right:1,bottom:1,left:1}?String(e):`bottom`,this):this.config.orient},e.prototype.tickFormat=function(e){var t=this.config;return arguments.length?(t.tickFormat=e,this):t.tickFormat},e.prototype.tickCentered=function(e){var t=this.config;return arguments.length?(t.tickCentered=e,this):t.tickCentered},e.prototype.tickOffset=function(){return this.config.tickOffset},e.prototype.tickInterval=function(e){var t=this.config,n=t.outerTickSize,r=t.tickOffset,i=t.tickValues,a;if(this.params.isCategory)a=r*2;else{var o=this.params.owner.scale.zoom??this.helper.scale;a=(this.g.select(`path.domain`).node().getTotalLength()-n*2)/(e||this.g.selectAll(`line`).size());var s=i?i.map(function(e,t,n){var r=t+1;return r<n.length?o(n[r])-o(e):null}).filter(Boolean):[];a=Math.min.apply(Math,N(N([],s,!1),[a],!1))}return a===1/0?0:a},e.prototype.ticks=function(){var e=[...arguments],t=this.config;return e.length?(t.tickArguments=pr(e),this):t.tickArguments},e.prototype.tickCulling=function(e){var t=this.config;return arguments.length?(t.tickCulling=e,this):t.tickCulling},e.prototype.tickValues=function(e){var t=this,n=this.config;if(G(e))n.tickValues=function(){return e(t.helper.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=e}return this},e.prototype.setTransition=function(e){return this.config.transition=e,this},e}(),ja={getAxisInstance:function(){return this.axis||new Ma(this)}},Ma=function(){function e(e){this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:`bottom`,y:`left`,y2:`right`,subX:`bottom`},this.owner=e,this.setOrient()}return e.prototype.getAxisClassName=function(e){return`${Wt.axis} ${Wt[`axis${dr(e)}`]}`},e.prototype.isHorizontal=function(e,t){var n=e.config.axis_rotated;return t?n:!n},e.prototype.isCategorized=function(){var e=this.owner,t=e.config,n=e.state;return t.axis_x_type.indexOf(`category`)>=0||n.hasRadar},e.prototype.isCustomX=function(){var e=this.owner.config;return!this.isTimeSeries()&&(e.data_x||Y(e.data_xs))},e.prototype.isTimeSeries=function(e){return e===void 0&&(e=`x`),this.owner.config[`axis_${e}_type`]===`timeseries`},e.prototype.isLog=function(e){return e===void 0&&(e=`x`),this.owner.config[`axis_${e}_type`]===`log`},e.prototype.isTimeSeriesY=function(){return this.isTimeSeries(`y`)},e.prototype.getAxisType=function(e){e===void 0&&(e=`x`);var t=`linear`;return this.isTimeSeries(e)?t=this.owner.config.axis_x_localtime?`time`:`utc`:this.isLog(e)&&(t=`log`),t},e.prototype.getExtent=function(){var e=this.owner,t=e.config,n=e.scale,r=t.axis_x_extent;if(r){if(G(r))r=r.bind(e.api)(e.getXDomain(e.data.targets),n.subX);else if(this.isTimeSeries()&&r.every(isNaN)){var i=Er.bind(e);r=r.map(function(e){return n.subX(i(e))})}}return r},e.prototype.init=function(){var e=this,t=this.owner,n=t.config,r=t.$el,i=r.main,a=r.axis,o=t.state.clip,s=[`x`,`y`];n.axis_y2_show&&s.push(`y2`),s.forEach(function(r){var s=e.getAxisClassName(r);a[r]=i.append(`g`).attr(`class`,s).attr(`clip-path`,function(){var e=null;return r===`x`?e=o.pathXAxis:r===`y`&&(e=o.pathYAxis),e}).attr(`transform`,t.getTranslate(r)).style(`visibility`,n[`axis_${r}_show`]?null:`hidden`),e.generateAxes(r)})},e.prototype.setOrient=function(){var e=this.owner.config,t=e.axis_rotated,n=e.axis_y_inner,r=e.axis_y2_inner;this.orient={x:t?`left`:`bottom`,y:t?n?`top`:`bottom`:n?`right`:`left`,y2:t?r?`bottom`:`top`:r?`left`:`right`,subX:t?`left`:`bottom`}},e.prototype.generateAxes=function(e){var t=this.owner,n=t.config,r=[],i=n[`axis_${e}_axes`],a=n.axis_rotated,o;e===`x`?o=a?_:O:e===