file-viewer-demo/public/file-viewer3/assets/PptxRender-3032ddac.js

52 lines
402 KiB
JavaScript
Raw Permalink Normal View History

2023-04-24 06:36:37 +00:00
import{c as mf,d as _f,r as bf,o as Tf,a as wf,b as $f,_ as Af}from"./index-0fd2d185.js";import{r as Cf}from"./worker-ref-fadf3283.js";var Oa={},Sf={get exports(){return Oa},set exports(t){Oa=t}};/*!
* jQuery JavaScript Library v3.6.4
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-03-08T15:28Z
*/(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return n(i)}})(typeof window<"u"?window:mf,function(e,n){var i=[],r=Object.getPrototypeOf,a=i.slice,o=i.flat?function(c){return i.flat.call(c)}:function(c){return i.concat.apply([],c)},s=i.push,u=i.indexOf,l={},h=l.toString,d=l.hasOwnProperty,v=d.toString,y=v.call(Object),m={},T=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},C=function(f){return f!=null&&f===f.window},A=e.document,S={type:!0,src:!0,nonce:!0,noModule:!0};function D(c,f,p){p=p||A;var x,_,b=p.createElement("script");if(b.text=c,f)for(x in S)_=f[x]||f.getAttribute&&f.getAttribute(x),_&&b.setAttribute(x,_);p.head.appendChild(b).parentNode.removeChild(b)}function L(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?l[h.call(c)]||"object":typeof c}var P="3.6.4",g=function(c,f){return new g.fn.init(c,f)};g.fn=g.prototype={jquery:P,constructor:g,length:0,toArray:function(){return a.call(this)},get:function(c){return c==null?a.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var f=g.merge(this.constructor(),c);return f.prevObject=this,f},each:function(c){return g.each(this,c)},map:function(c){return this.pushStack(g.map(this,function(f,p){return c.call(f,p,f)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(c,f){return(f+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(c,f){return f%2}))},eq:function(c){var f=this.length,p=+c+(c<0?f:0);return this.pushStack(p>=0&&p<f?[this[p]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},g.extend=g.fn.extend=function(){var c,f,p,x,_,b,w=arguments[0]||{},R=1,k=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[R]||{},R++),typeof w!="object"&&!T(w)&&(w={}),R===k&&(w=this,R--);R<k;R++)if((c=arguments[R])!=null)for(f in c)x=c[f],!(f==="__proto__"||w===x)&&(I&&x&&(g.isPlainObject(x)||(_=Array.isArray(x)))?(p=w[f],_&&!Array.isArray(p)?b=[]:!_&&!g.isPlainObject(p)?b={}:b=p,_=!1,w[f]=g.extend(I,b,x)):x!==void 0&&(w[f]=x));return w},g.extend({expando:"jQuery"+(P+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw new Error(c)},noop:function(){},isPlainObject:function(c){var f,p;return!c||h.call(c)!=="[object Object]"?!1:(f=r(c),f?(p=d.call(f,"constructor")&&f.constructor,typeof p=="function"&&v.call(p)===y):!0)},isEmptyObject:function(c){var f;for(f in c)return!1;return!0},globalEval:function(c,f,p){D(c,{nonce:f&&f.nonce},p)},each:function(c,f){var p,x=0;if(F(c))for(p=c.length;x<p&&f.call(c[x],x,c[x])!==!1;x++);else for(x in c)if(f.call(c[x],x,c[x])===!1)break;return c},makeArray:function(c,f){var p=f||[];return c!=null&&(F(Object(c))?g.merge(p,typeof c=="string"?[c]:c):s.call(p,c)),p},inArray:function(c,f,p){return f==null?-1:u.call(f,c,p)},merge:function(c,f){for(var p=+f.length,x=0,_=c.length;x<p;x++)c[_++]=f[x];return c.length=_,c},grep:function(c,f,p){for(var x,_=[],b=0,w=c.length,R=!p;b<w;b++)x=!f(c[b],b),x!==R&&_.push(c[b]);return _},map:function(c,f,p){var x,_,b=0,w=[];if(F(c))for(x=c.length;b<x;b++)_=f(c[b],b,p),_!=null&&w.push(_);else for(b in c)_=f(c[b],b,p),_!=null&&w.push(_);return o(w)},guid:1,support:m}),typeof Symbol=="function"&&(g.fn[Symbol.iterator]=i[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,f){l["[object "+f+"]"]=f.toLowerCase()});function F(c){var f=!!c&&"length"in c&&c.length,p=L(c);return T(c)||C(c)?!1:p==="array"||f===0||typeof f=="number"&&f>0&&f-1 in c}var H=function(c){var f,p,x,_,b,w,R,k,I,X,j,O,B,rt,ft,it,re,te,Ee,Nt="sizzle"+1*new Date,lt=c.document,we=0,Ct=0,jt=Qi(),vi=Qi(),Gi=Qi(),Re=Qi(),Tn=function($,E){return $===E&&(j=!0),0},wn={}.hasOwnProperty,$e=[],hn=$e.pop,Ne=$e.push,dn=$e.push,_s=$e.slice,$n=function($,E){for(var M=0,z=$.length;M<z;M++)if($[M]===E)ret
`):c)),f};var Hl=/\[\]$/,gs=/\r?\n/g,Yl=/^(?:submit|button|image|reset|file)$/i,Ul=/^(?:input|select|textarea|keygen)/i;function ia(c,f,p,x){var _;if(Array.isArray(f))g.each(f,function(b,w){p||Hl.test(c)?x(c,w):ia(c+"["+(typeof w=="object"&&w!=null?b:"")+"]",w,p,x)});else if(!p&&L(f)==="object")for(_ in f)ia(c+"["+_+"]",f[_],p,x);else x(c,f)}g.param=function(c,f){var p,x=[],_=function(b,w){var R=T(w)?w():w;x[x.length]=encodeURIComponent(b)+"="+encodeURIComponent(R??"")};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!g.isPlainObject(c))g.each(c,function(){_(this.name,this.value)});else for(p in c)ia(p,c[p],f,_);return x.join("&")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=g.prop(this,"elements");return c?g.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!g(this).is(":disabled")&&Ul.test(this.nodeName)&&!Yl.test(c)&&(this.checked||!fi.test(c))}).map(function(c,f){var p=g(this).val();return p==null?null:Array.isArray(p)?g.map(p,function(x){return{name:f.name,value:x.replace(gs,`\r
`)}}):{name:f.name,value:p.replace(gs,`\r
`)}}).get()}});var Vl=/%20/g,Wl=/#.*$/,jl=/([?&])_=[^&]*/,ql=/^(.*?):[ \t]*([^\r\n]*)$/mg,Gl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zl=/^(?:GET|HEAD)$/,Kl=/^\/\//,ps={},ra={},vs="*/".concat("*"),aa=A.createElement("a");aa.href=gi.href;function xs(c){return function(f,p){typeof f!="string"&&(p=f,f="*");var x,_=0,b=f.toLowerCase().match(Dt)||[];if(T(p))for(;x=b[_++];)x[0]==="+"?(x=x.slice(1)||"*",(c[x]=c[x]||[]).unshift(p)):(c[x]=c[x]||[]).push(p)}}function ys(c,f,p,x){var _={},b=c===ra;function w(R){var k;return _[R]=!0,g.each(c[R]||[],function(I,X){var j=X(f,p,x);if(typeof j=="string"&&!b&&!_[j])return f.dataTypes.unshift(j),w(j),!1;if(b)return!(k=j)}),k}return w(f.dataTypes[0])||!_["*"]&&w("*")}function oa(c,f){var p,x,_=g.ajaxSettings.flatOptions||{};for(p in f)f[p]!==void 0&&((_[p]?c:x||(x={}))[p]=f[p]);return x&&g.extend(!0,c,x),c}function Ql(c,f,p){for(var x,_,b,w,R=c.contents,k=c.dataTypes;k[0]==="*";)k.shift(),x===void 0&&(x=c.mimeType||f.getResponseHeader("Content-Type"));if(x){for(_ in R)if(R[_]&&R[_].test(x)){k.unshift(_);break}}if(k[0]in p)b=k[0];else{for(_ in p){if(!k[0]||c.converters[_+" "+k[0]]){b=_;break}w||(w=_)}b=b||w}if(b)return b!==k[0]&&k.unshift(b),p[b]}function Jl(c,f,p,x){var _,b,w,R,k,I={},X=c.dataTypes.slice();if(X[1])for(w in c.converters)I[w.toLowerCase()]=c.converters[w];for(b=X.shift();b;)if(c.responseFields[b]&&(p[c.responseFields[b]]=f),!k&&x&&c.dataFilter&&(f=c.dataFilter(f,c.dataType)),k=b,b=X.shift(),b){if(b==="*")b=k;else if(k!=="*"&&k!==b){if(w=I[k+" "+b]||I["* "+b],!w){for(_ in I)if(R=_.split(" "),R[1]===b&&(w=I[k+" "+R[0]]||I["* "+R[0]],w)){w===!0?w=I[_]:I[_]!==!0&&(b=R[0],X.unshift(R[1]));break}}if(w!==!0)if(w&&c.throws)f=w(f);else try{f=w(f)}catch(j){return{state:"parsererror",error:w?j:"No conversion from "+k+" to "+b}}}}return{state:"success",data:f}}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gi.href,type:"GET",isLocal:Gl.test(gi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vs,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":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,f){return f?oa(oa(c,g.ajaxSettings),f):oa(g.ajaxSettings,c)},ajaxPrefilter:xs(ps),ajaxTransport:xs(ra),ajax:function(c,f){typeof c=="object"&&(f=c,c=void 0),f=f||{};var p,x,_,b,w,R,k,I,X,j,O=g.ajaxSetup({},f),B=O.context||O,rt=O.context&&(B.nodeType||B.jquery)?g(B):g.event,ft=g.Deferred(),it=g.Callbacks("once memory"),re=O.statusCode||{},te={},Ee={},Nt="canceled",lt={readyState:0,getResponseHeader:function(Ct){var jt;if(k){if(!b)for(b={};jt=ql.exec(_);)b[jt[1].toLowerCase()+" "]=(b[jt[1].toLowerCase()+" "]||[]).concat(jt[2]);jt=b[Ct.toLowerCase()+" "]}return jt==null?null:jt.join(", ")},getAllResponseHeaders:function(){return k?_:null},setRequestHeader:function(Ct,jt){return k==null&&(Ct=Ee[Ct.toLowerCase()]=Ee[Ct.toLowerCase()]||Ct,te[Ct]=jt),this},overrideMimeType:function(Ct){return k==null&&(O.mimeType=Ct),this},statusCode:function(Ct){var jt;if(Ct)if(k)lt.always(Ct[lt.status]);else for(jt in Ct)re[jt]=[re[jt],Ct[jt]];return this},abort:function(Ct){var jt=Ct||Nt;return p&&p.abort(jt),we(0,jt),this}};if(ft.promise(lt),O.url=((c||O.url||gi.href)+"").replace(Kl,gi.protocol+"//"),O.type=f.method||f.type||O.method||O.type,O.dataTypes=(O.dataType||"*").toLowerCase().match(Dt)||[""],O.crossDomain==null){R=A.createElement("a");try{R.href=O.url,R.href=R.href,O.crossDomain=aa.protocol+"//"+aa.host!=R.protocol+"//"+R.host}catch{O.crossDomain=!0}}if(O.data&&O.processData&&typeof O.data!="string"&&(O.data=g.param(O.data,O.traditional)),ys(ps,O,f,lt),k)return lt;I=g.event&&O.global,I&&g.active++===0&&g.event.trigger("ajaxStart"),O.type=O.type.toUpperCase(),O.hasContent=!Zl.test(O.type),x=O.url.replace(Wl,""),O.hasContent?O.data&
\r]`),n=t.charCodeAt(0);function i(d,v){var y,m,T=r(d,function(C,A){if(y)return y(C,A-1);m=C,y=v?kp(C,v):vu(C)});return T.columns=m||[],T}function r(d,v){var y=[],m=d.length,T=0,C=0,A,S=m<=0,D=!1;d.charCodeAt(m-1)===bi&&--m,d.charCodeAt(m-1)===ba&&--m;function L(){if(S)return ma;if(D)return D=!1,qs;var g,F=T,H;if(d.charCodeAt(F)===_a){for(;T++<m&&d.charCodeAt(T)!==_a||d.charCodeAt(++T)===_a;);return(g=T)>=m?S=!0:(H=d.charCodeAt(T++))===bi?D=!0:H===ba&&(D=!0,d.charCodeAt(T)===bi&&++T),d.slice(F+1,g-1).replace(/""/g,'"')}for(;T<m;){if((H=d.charCodeAt(g=T++))===bi)D=!0;else if(H===ba)D=!0,d.charCodeAt(T)===bi&&++T;else if(H!==n)continue;return d.slice(F,g)}return S=!0,d.slice(F,m)}for(;(A=L())!==ma;){for(var P=[];A!==qs&&A!==ma;)P.push(A),A=L();v&&(P=v(P,C++))==null||y.push(P)}return y}function a(d,v){return d.map(function(y){return v.map(function(m){return h(y[m])}).join(t)})}function o(d,v){return v==null&&(v=Gs(d)),[v.map(h).join(t)].concat(a(d,v)).join(`
`)}function s(d,v){return v==null&&(v=Gs(d)),a(d,v).join(`
`)}function u(d){return d.map(l).join(`
`)}function l(d){return d.map(h).join(t)}function h(d){return d==null?"":d instanceof Date?Rp(d):e.test(d+="")?'"'+d.replace(/"/g,'""')+'"':d}return{parse:i,parseRows:r,format:o,formatBody:s,formatRows:u,formatRow:l,formatValue:h}}var yu=xu(","),Lp=yu.parse,Mp=yu.parseRows,mu=xu(" "),Dp=mu.parse,Np=mu.parseRows;function Ip(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Cr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function ni(t){return t=Cr(Math.abs(t)),t?t[1]:NaN}function Pp(t,e){return function(n,i){for(var r=n.length,a=[],o=0,s=t[0],u=0;r>0&&s>0&&(u+s+1>i&&(s=Math.max(1,i-u)),a.push(n.substring(r-=s,r+s)),!((u+=s+1)>i));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function Op(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Fp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pi(t){if(!(e=Fp.exec(t)))throw new Error("invalid format: "+t);var e;return new mo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Pi.prototype=mo.prototype;function mo(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}mo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Xp(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var _u;function Bp(t,e){var n=Cr(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(_u=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Cr(t,Math.max(0,e+a-1))[0]}function Zs(t,e){var n=Cr(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const Ks={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Ip,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Zs(t*100,e),r:Zs,s:Bp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Qs(t){return t}var Js=Array.prototype.map,tc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zp(t){var e=t.grouping===void 0||t.thousands===void 0?Qs:Pp(Js.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?Qs:Op(Js.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function l(d){d=Pi(d);var v=d.fill,y=d.align,m=d.sign,T=d.symbol,C=d.zero,A=d.width,S=d.comma,D=d.precision,L=d.trim,P=d.type;P==="n"?(S=!0,P="g"):Ks[P]||(D===void 0&&(D=12),L=!0,P="g"),(C||v==="0"&&y==="=")&&(C=!0,v="0",y="=");var g=T==="$"?n:T==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",F=T==="$"?i:/[%p]/.test(P)?o:"",H=Ks[P],K=/[defgprs%]/.test(P);D=D===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function W(V){var nt=g,U=F,G,vt,mt;if(P==="c")U=H(V)+U,V="";else{V=+V;var ut=V<0||1/V<0;if(V=isNaN(V)?u:H(Math.abs(V),D),L&&(V=Xp(V)),ut&&+V==0&&m!=="+"&&(ut=!1),nt=(ut?m==="("?m:s:m==="-"||m==="("?"":m)+nt,U=(P==="s"?tc[8+_u/3]:"")+U+(ut&&m==="("
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.7.5
*/var At=function(){var t=typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self;return t||Function("return this")()}();At.requestIdleCallback=At.requestIdleCallback||function(t){return setTimeout(t,1)};At.requestAnimationFrame=At.requestAnimationFrame||function(t){return setTimeout(t,1)};var qt=At==null?void 0:At.document,Tt={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},Ea={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},gn={Area:[Tt.AREA,Tt.AREA_SPLINE,Tt.AREA_SPLINE_RANGE,Tt.AREA_LINE_RANGE,Tt.AREA_STEP],AreaRange:[Tt.AREA_SPLINE_RANGE,Tt.AREA_LINE_RANGE],Arc:[Tt.PIE,Tt.DONUT,Tt.GAUGE,Tt.POLAR,Tt.RADAR],Line:[Tt.LINE,Tt.SPLINE,Tt.AREA,Tt.AREA_SPLINE,Tt.AREA_SPLINE_RANGE,Tt.AREA_LINE_RANGE,Tt.STEP,Tt.AREA_STEP],Step:[Tt.STEP,Tt.AREA_STEP],Spline:[Tt.SPLINE,Tt.AREA_SPLINE,Tt.AREA_SPLINE_RANGE]},wt=function(){return wt=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},wt.apply(this,arguments)};function xe(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,a;i<r;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return t.concat(a||Array.prototype.slice.call(e))}var pt=function(t){return t||t===0},$t=function(t){return typeof t=="function"},Qt=function(t){return typeof t=="string"},yt=function(t){return typeof t=="number"},ke=function(t){return typeof t>"u"},Yt=function(t){return typeof t<"u"},Zu=function(t){return typeof t=="boolean"},Ra=function(t){return Math.ceil(t/10)*10},Ai=function(t){return Math.ceil(t)+.5},Li=function(t){return t[1]-t[0]},Ke=function(t){return typeof t=="object"},ui=function(t){return ke(t)||t===null||Qt(t)&&t.length===0||Ke(t)&&!(t instanceof Date)&&Object.keys(t).length===0||yt(t)&&isNaN(t)},Kt=function(t){return!ui(t)},Xt=function(t){return Array.isArray(t)},Ut=function(t){return t&&!(t!=null&&t.nodeType)&&Ke(t)&&!Xt(t)};function xn(t,e,n){return Yt(t[e])?t[e]:n}function Qx(t,e){var n=!1;return Object.keys(t).forEach(function(i){return t[i]===e&&(n=!0)}),n}function Zt(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=$t(t);return r&&t.call.apply(t,xe([e],n,!1)),r}function Fo(t,e){var n=0,i=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];!--n&&e.apply.apply(e,xe([this],r,!1))};"duration"in t?t.each(function(){return++n}).on("end",i):(++n,t.call(i))}function Ci(t){return Qt(t)?t.replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function Ir(t,e,n,i){if(n===void 0&&(n=[-1,1]),i===void 0&&(i=!1),!(!t||!Qt(e)))if(e.indexOf(`
`)===-1)t.text(e);else{var r=[t.text(),e].map(function(s){return s.replace(/[\s\n]/g,"")});if(r[0]!==r[1]){var a=e.split(`
`),o=i?a.length-1:1;t.html(""),a.forEach(function(s,u){t.append("tspan").attr("x",0).attr("dy","".concat(u===0?n[0]*o:n[1],"em")).text(s)})}}}function Ku(t){var e=t.getBBox(),n=e.x,i=e.y,r=e.width,a=e.height;return[{x:n,y:i+a},{x:n,y:i},{x:n+r,y:i},{x:n+r,y:i+a}]}function Jx(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height,r=Ku(t),a=r[0].x,o=Math.min(r[0].y,r[1].y);return{x:a,y:o,width:n,height:i}}function Ze(t,e){var n,i=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)===null||n===void 0?void 0:n[0]),r=Ya(i||t,e);return r.map(function(a){return isNaN(a)?0:a})}function Qu(t){var e=t.event,n=t.$el,i=n.subchart.main||n.main,r;return e&&e.type==="brush"?r=e.selection:i&&(r=i.select(".bb-brush").node())&&(r=$p(r)),r}function Ri(t){var e=!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width");return e?t.rect=t.getBoundingClientRect():t.rect}function Xn(t,e,n){t===void 0&&(t=!0),e===void 0&&(e=0),n===void 0&&(n=1e4);var i=At.crypto||At.msCrypto,r=i?e+i.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?String(r):r}function to(t,e,n,i,r){if(n>i)return-1;var a=Math.floor((n+i)/2),o=t[a],s=o.x,u=o.w,l=u===void 0?0:u;return r&&(s=t[a].y,l=t[a].h),e>=s&&e<=s+l?a:e<s?to(t,e,n,a-1,r):to(t,e,a+1,i,r)}function ty(t){var e=Qu(t);return e?e[0]===e[1]:!0}function ey(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=function(i){if(Ut(i)&&i.constructor){var r=new i.constructor;for(var a in i)r[a]=n(i[a]);return r}return i};return t.map(function(i){return n(i)}).reduce(function(i,r){return wt(wt({},i),r)})}function Ye(t,e){t===void 0&&(t={}),Xt(e)&&e.forEach(function(i){return Ye(t,i)});for(var n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var fn=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};function ny(t,e){return e===void 0&&(e="-"),t.split(e).map(function(n,i){return i?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}).join("")}var In=function(t){return[].slice.call(t)};function iy(t,e,n){var i=t.rootSelctor,r=t.sheet,a=function(s){return s.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,".")},o="".concat(i," ").concat(a(e)," {").concat(n.join(";"),"}");return r[r.insertRule?"insertRule":"addRule"](o,r.cssRules.length)}function ry(t){var e=[];return t.forEach(function(n){var i;try{n.cssRules&&n.cssRules.length&&(e=e.concat(In(n.cssRules)))}catch(r){(i=At.console)===null||i===void 0||i.warn("Error while reading rules from ".concat(n.href,": ").concat(r.toString()))}}),e}function Cc(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function eo(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter(function(i,r,a){return a.indexOf(i)===r});return e?n.map(function(i){return new Date(i)}):n}function La(t){return t&&t.length?t.reduce(function(e,n){return e.concat(n)}):[]}function ai(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!e.length||e.length===1&&!e[0])return t;var i=e.shift();return Ut(t)&&Ut(i)&&Object.keys(i).forEach(function(r){var a=i[r];Ut(a)?(!t[r]&&(t[r]={}),t[r]=ai(t[r],a)):t[r]=Xt(a)?a.concat():a}),ai.apply(void 0,xe([t],e,!1))}function oi(t,e){e===void 0&&(e=!0);var n;return t[0]instanceof Date?n=e?function(i,r){return i-r}:function(i,r){return r-i}:e&&!t.every(isNaN)?n=function(i,r){return i-r}:e||(n=function(i,r){return i>r&&-1||i<r&&1||i===r&&0}),t.concat().sort(n)}function pn(t,e){var n=e.filter(function(i){return Kt(i)});return n.length?yt(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=oi(n,t==="min")[0]):n=void 0,n}var ay={mouse:function(){var t=function(){return{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}};try{return new MouseEvent("t"),function(e,n,i){i===void 0&&(i=t()),e.dispatchEvent(new MouseEvent(n,i))}}catch{return function(n,i,r){r===void 0&&(r=t());var a=qt.createEvent("MouseEvent");a.initMouseEvent(i,r.bubbles,r.cancelable,At,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(a)}}}(),touch:function(t,e,n){var i=new Touch(ai({identifier:
self.onmessage=function({data}) {
const result = (`).concat(i,`).apply(null, data);
self.postMessage(result);
};`)],{type:"text/javascript"})),At.URL.createObjectURL(Ma[r])}function Da(t,e,n,i){t===void 0&&(t=!0);var r;if(At.Worker&&t){var a=Cy(e,i),o=new At.Worker(a);r=function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];o.postMessage(s),o.onmessage=function(l){return At.URL.revokeObjectURL(a),n(l.data)},o.onerror=function(l){console.error(l)}}}else r=function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];var l=e.apply(void 0,s);n(l)};return r}function oo(t){var e=[];return t.forEach(function(n,i){var r=n[0];n.forEach(function(a,o){if(o>0){if(typeof e[o-1]>"u"&&(e[o-1]={}),typeof a>"u")throw new Error("Source data is missing a component at (".concat(i,", ").concat(o,")!"));e[o-1][r]=a}})}),e}function so(t){var e=t[0],n=[];return t.forEach(function(i,r){if(r>0){var a={};i.forEach(function(o,s){if(typeof o>"u")throw new Error("Source data is missing a component at (".concat(r,", ").concat(s,")!"));a[e[s]]=o}),n.push(a)}}),n}function il(t,e){var n=[],i,r;if(Array.isArray(t)){var a=function(o,s){if(o[s]!==void 0)return o[s];var u=s.replace(/\[(\w+)\]/g,".$1"),l=u.replace(/^\./,"").split("."),h=o;return l.some(function(d){return!(h=h&&d in h?h[d]:void 0)}),h};e.x?i=e.value.concat(e.x):i=e.value,n.push(i),t.forEach(function(o){var s=i.map(function(u){var l=a(o,u);return typeof l>"u"&&(l=null),l});n.push(s)}),r=so(n)}else Object.keys(t).forEach(function(o){var s,u=t[o].concat();(s=u.unshift)===null||s===void 0||s.call(u,o),n.push(u)}),r=oo(n);return r}function Sy(t,e,n,i,r){e===void 0&&(e="csv");var a=new XMLHttpRequest,o={csv:ky,tsv:Ey,json:il};a.open("GET",t),n&&Object.keys(n).forEach(function(s){a.setRequestHeader(s,n[s])}),a.onreadystatechange=function(){if(a.readyState===4)if(a.status===200){var s=a.responseText;s&&r.call(this,o[e](e==="json"?JSON.parse(s):s,i))}else throw new Error("".concat(t,": Something went wrong loading!"))},a.send()}function rl(t,e){var n=t.rows(e),i;return n.length===1?(i=[{}],n[0].forEach(function(r){i[0][r]=null})):i=t.parse(e),i}function ky(t){return rl({rows:Mp,parse:Lp},t)}function Ey(t){return rl({rows:Np,parse:Dp},t)}function kc(t,e){var n=t||(e==null?void 0:e.data_keys);return n!=null&&n.x&&(e.data_x=n.x),n}var Ry={convertData:function(t,e){var n=this.config,i=n.boost_useWorker,r=t;if(t.bindto&&(r={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(function(a){var o="data_".concat(a);o in t&&(r[a]=t[o])})),r.url&&e)Sy(r.url,r.mimeType,r.headers,kc(r.keys,n),e);else if(r.json)Da(i,il,e,[oo,so])(r.json,kc(r.keys,n));else if(r.rows)Da(i,so,e)(r.rows);else if(r.columns)Da(i,oo,e)(r.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets:function(t,e){var n=this,i=this,r=i.axis,a=i.config,o=i.state,s=!1,u=!1,l=!1;r&&(s=r.isCategorized(),u=r.isTimeSeries(),l=r.isCustomX());var h=Object.keys(t[0]||{}),d=h.length?h.filter(i.isNotX,i):[],v=h.length?h.filter(i.isX,i):[],y;d.forEach(function(T){var C=n.getXKey(T);l||u?v.indexOf(C)>=0?y=(e&&i.data.xs[T]||[]).concat(t.map(function(A){return A[C]}).filter(pt).map(function(A,S){return i.generateTargetX(A,T,S)})):a.data_x?y=n.getOtherTargetXs():Kt(a.data_xs)&&(y=i.getXValuesOfXKey(C,i.data.targets)):y=t.map(function(A,S){return S}),y&&(n.data.xs[T]=y)}),d.forEach(function(T){if(!n.data.xs[T])throw new Error('x is not defined for id = "'.concat(T,'".'))});var m=d.map(function(T,C){var A=a.data_idConverter.bind(i.api)(T),S=i.getXKey(T),D=l&&s,L=D&&t.map(function(F){return F.x}).every(function(F){return a.axis_x_categories.indexOf(F)>-1}),P=t.__append__,g=S===null&&P?i.api.data.values(T).length:0;return{id:A,id_org:T,values:t.map(function(F,H){var K=F[S],W=F[T],V;return W=W!==null&&!isNaN(W)&&!Ut(W)?+W:Xt(W)||Ut(W)?W:null,(D||o.hasRadar)&&C===0&&!ke(K)?(!L&&C===0&&H===0&&!P&&(a.axis_x_categories=[]),V=a.axis_x_categories.indexOf(K),V===-1&&(V=a.axis_x_categories.length,a.axis_x_categories.push(K))):V=i.generateTargetX(K,T,g+H),(ke(W)||i.data.xs[T].length<=H)&&(V=void 0),{x:V,value:W,id:A,index:-1}}).filter(function(F){return Yt(F.x)})}});return m.forEach(fu
{=TITLE}
{{<tr class="{=CLASS_TOOLTIP_NAME}">
<td class="name">`.concat(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(/{{(.*)}}/)},tooltipPosition:function(t,e,n,i){var r=this,a=r.config,o=r.scale,s=r.state,u=s.width,l=s.height,h=s.current,d=s.isLegendRight,v=s.inputType,y=s.event,m=r.hasType("gauge")&&!a.gauge_fullCircle,T=s.hasTreemap,C=r.getSvgLeft(!0),A=C+h.width-r.getCurrentPaddingRight(),S=r.getCurrentPaddingLeft(!0),D=20,L=Ze(y,i),P=L[0],g=L[1];if(r.hasArcType()){var F=v==="touch"||r.hasType("radar");F||(g+=m?l:l/2,P+=(u-(d?r.getLegendWidth():0))/2)}else if(!T){var H=o.x(t[0].x);a.axis_rotated?(g=H+D,P+=C+100,A-=C):(g-=5,P=C+S+D+(o.zoom?P:H))}if(P+e+15>A&&(P-=e+(T?0:S)),g+n>h.height){var K=T?0:30;g-=m?n*3:n+K}var W={top:g,left:P};return Object.keys(W).forEach(function(V){W[V]<0&&(W[V]=0)}),W},showTooltip:function(t,e){var n,i,r=this,a=r.config,o=r.scale,s=r.state,u=r.$el.tooltip,l=a.tooltip_contents.bindto,h=t.filter(function(W){return W&&pt(r.getBaseValue(W))});if(!(!u||h.length===0||!a.tooltip_show)){var d=u.datum(),v=d||{},y=v.width,m=y===void 0?0:y,T=v.height,C=T===void 0?0:T,A=JSON.stringify(t);if(!d||d.current!==A){var S=t.concat().sort()[0].index;Zt(a.tooltip_onshow,r.api,t),u.html(r.getTooltipHTML(t,r.axis?r.axis.getXAxisTickFormat():r.categoryName.bind(r),r.getDefaultValueFormat(),r.color)).style("display",null).style("visibility",null).datum(d={index:S,current:A,width:m=u.property("offsetWidth"),height:C=u.property("offsetHeight")}),Zt(a.tooltip_onshown,r.api,t),r._handleLinkedCharts(!0,S)}if(!l){var D=((n=a.tooltip_position)===null||n===void 0?void 0:n.bind(r.api))||r.tooltipPosition.bind(r),L=Ze(s.event,e),P=L[0],g=L[1],F={x:P,y:g},H=(i=t.filter(Boolean))===null||i===void 0?void 0:i.shift();o.x&&H&&"x"in H&&(F.xAxis=o.x(H.x));var K=D(h,m,C,e,F);["top","left"].forEach(function(W){var V=K[W];u.style(W,"".concat(V,"px")),W==="left"&&!d.xPosInPercent&&(d.xPosInPercent=V/s.current.width*100)})}}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,i=t.$el.tooltip;e.add(function(){if(i.style("display")==="block"){var r=n.current,a=i.datum(),o=a.width,s=a.xPosInPercent,u=r.width/100*s,l=r.width-(u+o);l<0&&(u+=l),i.style("left","".concat(u,"px"))}})},hideTooltip:function(t){var e=this,n=e.api,i=e.config,r=e.$el.tooltip;if(r&&r.style("display")!=="none"&&(!i.tooltip_doNotHide||t)){var a=JSON.parse(r.datum().current);Zt(i.tooltip_onhide,n,a),r.style("display","none").style("visibility","hidden").datum(null),Zt(i.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n=this,i=n.charts,r=n.config,a=n.state.event;if(a!=null&&a.isTrusted&&r.tooltip_linked&&i.length>1){var o=r.tooltip_linked_name;i.filter(function(s){return s!==n.api}).forEach(function(s){var u=s.internal,l=u.config,h=u.$el,d=l.tooltip_linked,v=l.tooltip_linked_name,y=qt.body.contains(h.chart.node());if(d&&o===v&&y){var m=h.tooltip.data()[0],T=e!==(m==null?void 0:m.index);try{s.tooltip[t&&T?"show":"hide"]({index:e})}catch{}}})}}},Jy={getTranslate:function(t,e){e===void 0&&(e=0);var n=this,i=n.config,r=n.state,a=i.axis_rotated,o=0,s,u;if(e&&/^(x|y2?)$/.test(t)&&(o=n.getAxisSize(t)*e),t==="main")s=Ai(r.margin.left),u=Ai(r.margin.top);else if(t==="context")s=Ai(r.margin2.left),u=Ai(r.margin2.top);else if(t==="legend")s=r.margin3.left,u=r.margin3.top;else if(t==="x")s=a?-o:0,u=a?0:r.height+o;else if(t==="y")s=a?0:-o,u=a?r.height+o:0;else if(t==="y2")s=a?0:r.width+o,u=a?1-o:0;else if(t==="subX")s=0,u=a?0:r.height2;else if(t==="arc")s=r.arcWidth/2,u=r.arcHeight/2;else if(t==="polar")s=r.arcWidth/2,u=r.arcHeight/2;else if(t==="radar"){var l=n.getRadarSize()[0];s=r.width/2-l,u=Ai(r.margin.top)}return"translate(".concat(s,", ").concat(u,")")},transformMain:function(t,e){var n=this,i=n.$el.main,r=n.$T,a=e!=null&&e.axisX?e.axisX:r(i.select(".".concat(ce.axisX)),t),o=e!=null&&e.axisY?e.axisY:r(i.select(".".concat(ce.axisY)),t),s=e!=null&&e.axisY2?e.axisY2:r(i.select(".".concat(ce.axisY2)),t);r(i,t).attr("transform",n.getTranslate("main")),a.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),s.attr("transform",n.getTranslate("y2")),i.select(".".concat(Jt.chartArcs)).attr
`)));var d=o.serializeToString(h),v='<svg xmlns="'.concat(Jn.svg,'" width="').concat(r,'" height="').concat(a,`"
viewBox="0 0 `).concat(n.width," ").concat(n.height,`"
preserveAspectRatio="`).concat((e==null?void 0:e.preserveAspectRatio)===!1?"none":"xMinYMid meet",`">
<foreignObject width="100%" height="100%">
`).concat(d,`
`).concat(l.replace(/(url\()[^#]+/g,"$1"),`
</foreignObject></svg>`).replace(`/
/g`,"%0A");return"data:image/svg+xml;base64,".concat(a0(v))}function s0(t,e){var n=e.top,i=e.left,r=t.getBBox(),a=r.x,o=r.y,s=t.getScreenCTM(),u=s.a,l=s.b,h=s.c,d=s.d,v=s.e,y=s.f,m=t.getBoundingClientRect(),T=m.width,C=m.height;return{x:u*a+h*o+v-i,y:l*a+d*o+y-n+(C-Math.round(C/4)),width:T,height:C}}function c0(t){var e=t.getBoundingClientRect(),n=e.left,i=e.top,r=function(o){return o.textContent||o.childElementCount},a=[];return In(t.querySelectorAll("text")).filter(r).forEach(function(o){var s=function(l){var h,d=At.getComputedStyle(l),v=d.fill,y=d.fontFamily,m=d.fontSize,T=d.textAnchor,C=d.transform,A=s0(l,{left:n,top:i}),S=A.x,D=A.y,L=A.width,P=A.height;return h={},h[l.textContent]={x:S,y:D,width:L,height:P,fill:v,fontFamily:y,fontSize:m,textAnchor:T,transform:C},h};if(o.childElementCount>1){var u=[];return In(o.querySelectorAll("tspan")).filter(r).forEach(function(l){a.push(s(l))}),u}else a.push(s(o))}),a}function u0(t,e){e.forEach(function(n){Object.keys(n).forEach(function(i){var r=n[i],a=r.x,o=r.y,s=r.width,u=r.height,l=r.fill,h=r.fontFamily,d=r.fontSize,v=r.transform;if(t.save(),t.font="".concat(d," ").concat(h),t.fillStyle=l,v==="none")t.fillText(i,a,o);else{var y=v.replace(/(matrix|\(|\))/g,"").split(",");y.splice(4).every(function(m){return+m==0})?(y.push(a+s-s/4),y.push(o-u+u/3)):(y.push(a),y.push(o)),t.transform.apply(t,y),t.fillText(i,0,0)}t.restore()})})}var l0={export:function(t,e){var n=this,i=this.internal,r=i.state,a=i.$el,o=a.chart,s=a.svg,u=r.current,l=u.width,h=u.height,d=ai({width:l,height:h,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),v=o0(o.node(),d,{width:l,height:h}),y=d.preserveFontStyle?c0(s.node()):[];if(e&&$t(e)){var m=new Image;m.crossOrigin="Anonymous",m.onload=function(){var T=qt.createElement("canvas"),C=T.getContext("2d");T.width=d.width||l,T.height=d.height||h,C.drawImage(m,0,0),y.length&&(u0(C,y),y.length=0),e.bind(n)(T.toDataURL(d.mimeType))},m.src=v}return v}},f0={focus:function(t){var e=this.internal,n=e.state,i=e.mapToTargetIds(t),r=e.$el.svg.selectAll(e.selectorTargets(i.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),r.classed(Ht.focused,!0).classed(Ht.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(i),e.hasType("gauge")&&e.markOverlapped(t,e,".".concat(We.gaugeValue))),e.toggleFocusLegend(i,!0),n.focusedTargetIds=i,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(a){return i.indexOf(a)<0})},defocus:function(t){var e=this.internal,n=e.state,i=e.mapToTargetIds(t),r=e.$el.svg.selectAll(e.selectorTargets(i.filter(e.isTargetToShow,e)));r.classed(Ht.focused,!1).classed(Ht.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(i),e.hasType("gauge")&&e.undoMarkOverlapped(e,".".concat(We.gaugeValue))),e.toggleFocusLegend(i,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(a){return i.indexOf(a)<0}),n.defocusedTargetIds=i},revert:function(t){var e=this.internal,n=e.config,i=e.state,r=e.$el,a=e.mapToTargetIds(t),o=r.svg.selectAll(e.selectorTargets(a));o.classed(Ht.focused,!1).classed(Ht.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),r.legend.selectAll(e.selectorLegends(a)).filter(function(){return dt(this).classed(Ht.legendItemFocused)}).classed(Ht.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}},h0={show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}},d0={legend:h0},g0={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(function(i){n.data_classes[i]=t.classes[i]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(function(i){n.data_axes[i]=t.axes[i]}),"colors"in t&&Object.keys(t.colors).forEach(function(i){n.data_colors[i]=t.colors[i]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload==
`)>-1?s.split(`
`):[];if(u.length)return u;if(Xt(s))return s;var l=o.tickWidth;(!l||l<=0)&&(l=r?95:o.isCategory?Math.ceil(n(i[1])-n(i[0]))-12:110);function h(d,v){for(var y,m,T,C=1;C<v.length;C++)if(v.charAt(C)===" "&&(m=C),y=v.substr(0,C+1),T=a*y.length,l<T)return h(d.concat(v.substr(0,m||C)),v.slice(m?m+1:C));return d.concat(v)}return h(u,String(s))},t.prototype.scale=function(e){return arguments.length?(this.helper.scale=e,this):this.helper.scale},t.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},t.prototype.tickFormat=function(e){var n=this.config;return arguments.length?(n.tickFormat=e,this):n.tickFormat},t.prototype.tickCentered=function(e){var n=this.config;return arguments.length?(n.tickCentered=e,this):n.tickCentered},t.prototype.tickOffset=function(){return this.config.tickOffset},t.prototype.tickInterval=function(e){var n=this,i=this.config,r=i.outerTickSize,a=i.tickOffset,o=i.tickValues,s;if(this.params.isCategory)s=a*2;else{var u=this.g.select("path.domain").node().getTotalLength()-r*2;s=u/(e||this.g.selectAll("line").size());var l=o?o.map(function(h,d,v){var y=d+1;return y<v.length?n.helper.scale(v[y])-n.helper.scale(h):null}).filter(Boolean):[];s=Math.min.apply(Math,xe(xe([],l,!1),[s],!1))}return s===1/0?0:s},t.prototype.ticks=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this.config;return e.length?(i.tickArguments=In(e),this):i.tickArguments},t.prototype.tickCulling=function(e){var n=this.config;return arguments.length?(n.tickCulling=e,this):n.tickCulling},t.prototype.tickValues=function(e){var n=this,i=this.config;if($t(e))i.tickValues=function(){return e(n.helper.scale.domain())};else{if(!arguments.length)return i.tickValues;i.tickValues=e}return this},t.prototype.setTransition=function(e){return this.config.transition=e,this},t}(),k0={getAxisInstance:function(){return this.axis||new E0(this)}},E0=function(){function t(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 t.prototype.getAxisClassName=function(e){return"".concat(ce.axis," ").concat(ce["axis".concat(fn(e))])},t.prototype.isHorizontal=function(e,n){var i=e.config.axis_rotated;return n?i:!i},t.prototype.isCategorized=function(){var e=this.owner,n=e.config,i=e.state;return n.axis_x_type.indexOf("category")>=0||i.hasRadar},t.prototype.isCustomX=function(){var e=this.owner.config;return!this.isTimeSeries()&&(e.data_x||Kt(e.data_xs))},t.prototype.isTimeSeries=function(e){return e===void 0&&(e="x"),this.owner.config["axis_".concat(e,"_type")]==="timeseries"},t.prototype.isLog=function(e){return e===void 0&&(e="x"),this.owner.config["axis_".concat(e,"_type")]==="log"},t.prototype.isTimeSeriesY=function(){return this.isTimeSeries("y")},t.prototype.getAxisType=function(e){e===void 0&&(e="x");var n="linear";return this.isTimeSeries(e)?n=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(n="log"),n},t.prototype.init=function(){var e=this,n=this.owner,i=n.config,r=n.$el,a=r.main,o=r.axis,s=n.state.clip,u=i.axis_rotated,l=["x","y"];i.axis_y2_show&&l.push("y2"),l.forEach(function(h){var d=e.getAxisClassName(h),v=ce["axis".concat(h.toUpperCase(),"Label")];o[h]=a.append("g").attr("class",d).attr("clip-path",function(){var y=null;return h==="x"?y=s.pathXAxis:h==="y"&&(y=s.pathYAxis),y}).attr("transform",n.getTranslate(h)).style("visibility",i["axis_".concat(h,"_show")]?null:"hidden"),o[h].append("text").attr("class",v).attr("transform",["rotate(-90)",null][h==="x"?+!u:+u]).style("text-anchor",function(){return e.textAnchorForAxisLabel(h)}),e.generateAxes(h)})},t.prototype.setOrient=function(){var e=this.owner,n=e.config,i=n.axis_rotated,r=n.axis_y_inner,a=n.axis_y2_inner;this.orient={x:i?"left":"bottom",y:i?r?"top":"bottom":r?"right":"left",y2:i?a?"bottom":"top":a?"left":"right",subX:i?"left":"bottom"}},t.prototype.generateAxes=function(e){var n=this.owner,i=n.config,r=[],a=i["axis_".concat(e,"_axes")],o=i.axis_rotated,