1"use strict";(self.webpackChunkCloudRadial=self.webpackChunkCloudRadial||[]).push([[6005],{46005:(zE,cd,S)=>{S.r(cd),S.d(cd,{PartnerCenterHomeComponent:()=>VE});var en={};S.r(en),S.d(en,{easeInOutBack:()=>vb,easeInOutCubic:()=>hb,easeInOutExpo:()=>mb,easeInOutQuad:()=>ub,easeInOutQuint:()=>bb,easeInOutSine:()=>gb,easeOutBack:()=>xb,easeOutCirc:()=>pb,easeOutCubic:()=>cb,easeOutElastic:()=>lb,easeOutExpo:()=>fb,easeOutQuad:()=>db,easeOutQuint:()=>yb,linear:()=>ab,swing:()=>rb});var Je={};S.r(Je),S.d(Je,{l5:()=>j1,jl:()=>ye.A,YJ:()=>et.A,wA:()=>E.w,ui:()=>Ii.A,EY:()=>mu.A});var ty=S(6744),l=S(54438),it=S(60177),ey=S(25558),sy=S(70980),qa=S(96231),hd=S(96926),Ja=S(31638),Et=S(57854),ts=S(10446),At=S(76558);const es="arc",dd="ArrowUp",ud="ArrowDown",pd="ArrowLeft",gd="ArrowRight",ni="aria-activedescendant",pt="#000",$="bottom",F="center",Nt="circle",tl="cross",Me="date",fd="12px sans-serif",sn="end",xd=/\{\d+:?/,Lo="height",sl="inside",yd="inherit",U="left",ft=Number.MAX_VALUE,_t=-Number.MAX_VALUE,il="none",nn="object",Io="outside",Y="right",bd="roundedRect",Ro="start",nl="string",j="top",Xt="value",W="#fff",Bo="width",D="x",P="y",ol="pointer",rl="horizontal";function Dt(o){return Array.isArray(o)}function gt(o,t){const e=Dt(t)?t:[t];for(let s=0;s<e.length;s++){const i=e[s];-1===o.className.indexOf(i)&&(o.className+=" "+i)}}const gy=/\s+/g;function al(o,t){o&&o.className&&(o.className=o.className.replace(t,"").replace(gy," "))}var ll=S(20178);function Wt(o){let t=.5;o.options.stroke&&ll.A(o.options.stroke.width)&&o.options.stroke.width%2==0&&(t=0);for(let e=0;e<o.segments.length;e++)o.segments[e].anchor().round(0).translate(t,t);return o}function Cd(o,t){return-o.x*t.y+o.y*t.x<0}function G(o){return"number"==typeof o&&!isNaN(o)}function zt(o){return typeof o===nl}function wd(o){return G(o)||zt(o)&&isFinite(o)}function Ad(o,t){return(o+1)%t}function Sd(o,t){let e=o-1;return e<0?t-1:e}function Oo(o,t){return 1===t||o%t==0?0:o<0?t+o%t:o>=t?o%t:o}function ct(o){return"function"==typeof o}const kd="object",fy="undefined";function Td(o,t){for(let e in t){if("__proto__"===e||"constructor"===e)continue;let n,s=t[e],i=typeof s;if(n=i===kd&&null!==s?s.constructor:null,n&&n!==Array)if(s instanceof Date)o[e]=new Date(s.getTime());else if(ct(s.clone))o[e]=s.clone();else{let r=o[e];o[e]=typeof r===kd&&r||{},Td(o[e],s)}else i!==fy&&(o[e]=s)}return o}function x(o){const t=arguments.length;for(let e=1;e<t;e++)Td(o,arguments[e]);return o}function Jt(o){return"object"==typeof o}function oi(o){return G(o)?o+"px":o}const my=/width|height|top|left|bottom|right/i;function xy(o){return my.test(o)}function ht(o,t){const e=zt(t)?[t]:t;if(Dt(e)){const s={},i=window.getComputedStyle(o);for(let n=0;n<e.length;n++){let r=e[n];s[r]=xy(r)?parseFloat(i[r]):i[r]}return s}if(Jt(t))for(let s in t)o.style[s]=oi(t[s])}function K(o,t=0){const e={top:0,right:0,bottom:0,left:0};return"number"==typeof o?e[j]=e[Y]=e[$]=e[U]=o:(e[j]=o[j]||t,e[Y]=o[Y]||t,e[$]=o[$]||t,e[U]=o[U]||t),e}let Md={compile:function(o){return o}};const Vo=class vy{static register(t){Md=t}static compile(t,e){return Md.compile(t,e)}};function kt(o={}){let t;return o.template?o.template=t=Vo.compile(o.template):ct(o.content)&&(t=o.content),t}function Ed(o={}){let t;return o.ariaTemplate?o.ariaTemplate=t=Vo.compile(o.ariaTemplate):ct(o.ariaContent)&&(t=o.ariaContent),t}const yy=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,on={};function Ee(o){if(on[o])return on[o];const t=[];return o.replace(yy,function(e,s,i,n){t.push(ll.A(s)?s:i||n)}),on[o]=function(e){let s=e;for(let i=0;i<t.length&&s;i++)s=s[t[i]];return s},on[o]}function Yt(o,t){const e=o.length,s=[];for(let i=0;i<e;i++)t(o[i])&&s.push(o[i]);return s}function Fo(o,t){if(o.className){const e=t.split(" ");for(let s=0;s<e.length;s++)if(o.className.indexOf&&-1!==o.className.indexOf(e[s]))return!0}}on.undefined=function(o){return o};class by{constructor(){this._map=new Map}get(t){return this._map.get(t)}set(t,e){this._map.set(t,e)}}function N(o,t){if(t)return-1!==t.indexOf(o)}var _y=S(50507);function te(o,t,e){return _y.A(o+(t-o)*e,3)}const Dd="trigger",cl=class Cy{constructor(t,e){this.observer=t,this.handlerMap=x({},this.handlerMap,e)}trigger(t,e){const{observer:s,handlerMap:i}=this;let n;return i[t]?n=this.callObserver(i[t],e):s[Dd]&&(n=this.callObserver(Dd,t,e)),n}callObserver(t,...e){return this.observer[t].apply(this.observer,e)}requiresHandlers(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(let e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0}};function Pd(o,t){const e=o.length,s=[];for(let i=0;i<e;i++){let n=t(o[i]);ll.A(n)&&s.push(n)}return s}var Ld=S(53105);const Ay=Ld.A.browser||{};function hl(o){let t=0;return o.wheelDelta?(t=-o.wheelDelta/120,Ay.webkit&&(t/=2*Math.max(window.devicePixelRatio,.625))):o.detail&&(t=o.detail/3),t=t>0?Math.ceil(t):Math.floor(t),t}var L=S(5678),Sy=S(34452),ky=S(26821);const{BC:ks,vY:rn,sw:_,rc:ss,a_:ri,YS:De,AS:Id,XB:ae,EN:Ty,HV:mt,rb:I,T5:My,eM:Ct,LI:k,S2:an,a4:O}=ky;class ln{static fetchFonts(t,e,s={depth:0}){!t||s.depth>
15||!document.fonts||Object.keys(t).forEach(function(n){const r=t[n];"dataSource"===n||"$"===n[0]||!r||("font"===n?e.push(r):"object"==typeof r&&(s.depth++,ln.fetchFonts(r,e,s),s.depth--))})}static loadFonts(t,e){let s=[];if(t.length>0&&document.fonts){try{s=t.map(function(i){return document.fonts.load(i)})}catch(i){(0,Sy.A)(i)}Promise.all(s).then(e,e)}else e()}static preloadFonts(t,e){const s=[];ln.fetchFonts(t,s),ln.loadFonts(s,e)}}const Ey=ln;function w(o,t){const e=o.prototype;e.options=e.options?x({},e.options,t):t}const dl="k-i-",Rd="k-svg-i-";class ul{constructor(t,e){this.element=t,this.options=x({},this.options,e),this.wrapper()}wrapper(){this.addClasses()}addClasses(){}html(){return this.element.outerHTML}}w(ul,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]});class Bd extends ul{constructor(t,e){super(t,e)}wrapper(){let t=this.element.className.split(" ").find(s=>s.startsWith(dl)),e=this.options.icon?`${this.options.icon.startsWith(dl)?"":dl}${this.options.icon}`:"";this._className=e,gt(this.element,"k-icon"),gt(this.element,"k-font-icon"),al(this.element,t),gt(this.element,e),gt(this.element,this.options.iconClass||""),super.wrapper()}}w(Bd,{name:"HTMLFontIcon",icon:null});class Od extends ul{constructor(t,e){t.innerHTML="",super(t,e)}wrapper(){let t=this.options.icon,e=this.options.iconClass,s=this.element.className.split(" ").find(n=>n.startsWith(Rd));if(!t&&e){let r=e.match(/k-i-(\w+(?:-\w+)*)/);r&&(t=r[1],e=e.replace(r[0],""))}zt(t)&&(t=t.replace("k-i-","").replace(/-./g,n=>n[1].toUpperCase()),t=this.options.svgIcons[t]||this.options.svgIcons[`${t}Icon`]);let i=t&&t.name?`${Rd}${t.name}`:"";if(this._className=i,gt(this.element,"k-svg-icon"),al(this.element,s),gt(this.element,i),gt(this.element,e||""),this.element.setAttribute("aria-hidden","true"),t&&function wy(o){return"[object Object]"===Object.prototype.toString.call(o)}(t)){let n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("viewBox",t.viewBox||""),n.setAttribute("focusable","false"),n.innerHTML=t.content||"",this.element.appendChild(n)}super.wrapper()}}w(Od,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});const Vd={svg:Od,font:Bd};function ai(o,t){let e=o,s=t;return(!e||Jt(e)&&!(e instanceof HTMLElement)||zt(e))&&(s=e,e=document.createElement("span")),zt(s)&&(s={icon:s}),s.type||(s.type="svg"),Vd[s.type]?new Vd[s.type](e,s).html():null}function pl(o){let t=ft,e=_t;for(let s=0,i=o.length;s<i;s++){const n=o[s];null!==n&&isFinite(n)&&(t=Math.min(t,n),e=Math.max(e,n))}return{min:t===ft?void 0:t,max:e===_t?void 0:e}}function Fd(o,t){for(let e=0;e<o.length;e++){const s=o[e];if(t(s,e,o))return s}}const No=S(1042).A,Ry=/matrix\((.*)\)/;function Nd(o){const t=getComputedStyle(o).transform;return"none"===t?No.unit():function By(o){const t=o.match(Ry);if(null===t||2!==t.length)return No.unit();const e=t[1].split(",").map(s=>parseFloat(s));return new No(...e)}(t)}var xe=S(8521);const zo=function Vy(o){return new xe.A(o).isDark()?W:pt},zd={};class Fy{constructor(t){this._index={},this._values=t?t.slice(0):[];for(let e=0;e<this._values.length;e++)this._index[this._values[e]]=e}values(){return this._values.filter(t=>t!==zd)}has(t){return void 0!==this._index[t]}add(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))}delete(t){const e=this._index[t];void 0!==e&&(this._values[e]=zd,delete this._index[t])}clear(){this._index={},this._values=[]}get size(){return this._values.length}}class Ny{constructor(t){this._set=new Set(t)}values(){return Array.from(this._set)}has(t){return this._set.has(t)}add(t){this._set.add(t)}delete(t){this._set.delete(t)}clear(){this._set.clear()}get size(){return this._set.size}}function Ud(o){return(()=>{let o=!1;return"function"==typeof Set&&(o=new Set([1]).has(1)),o})()?new Ny(o):new Fy(o)}function Hd(o){throw o}function gl(o,t){return Object.prototype.hasOwnProperty.call(o,t)}class is{constructor(){this.height=0,this.width=0,this.data=[]}clone(){const t=new is;return t.height=this.height,t.width=this.width,t.data=this.data.map(e=>e.slice()),t}get(t,e){const s=this.data[t];return s?s[e]:null}set(t,e,s){let i=this.data[t];null==i&&(i=this.data[t]=[]),i[e]=s,t>=this.height&&(this.height=t+1),e>=this.width&&(this.width=e+1)}each(t,e){for(let s=0;s<this.height;++s)for(let i=0;i<this.width;++i){let n=this.get(s,i);if((e||null!=n)&&(n=t(n,s,i),void 0!==n))return n}}map(t,e){const s=new is;return this.each(function(i,n,r){s.set(n,r,t(i,n,r))},e),s}transpose(){const t=new is;return this.each(function(e,s,i){t.set(i,s,e)}),t}unit(t){this.width=this.height=t;const e=this.data=new Array(t);for(let s=t;--s>=0;){const i=e[s]=new Array(t);for(let n=t;--n>=0;)i[n]=s===n?1:0}return this}multiply(t){const e=this,s=new is;for(let i=0;i<e.height;++i)for(let n=0;n<t.width;++n){let r=0;for(let a=0;a<e.width;++a){const c=e.get(i,a),h=t.get(a,n);"number"==typeof c&&"number"==typeof h&&(r+=c*h)}s.set(i,n,r)}return s}inverse(){const t=this.width,e=this.augment((new is).unit(t)),s=e.data;for(let i=0;i<t;++i){const n=Uy(i,t,function(r){return s[r][i]});if(!s[n][i])return null;if(i!==n){let r=s[i];s[i]=s[n],s[n]=r}for(let r=i+1;r<t;++r){for(let a=i+1;a<2*t;++a)s[r][a]-=s[i][a]*s[r][i]/s[i][i];s[r][i]=0}}for(let i=0;i<t;++i)for(let n=s[i][i],r=0;r<2*t;++r)s[i][r]/=n;for(let i=t;--i>=0;)for(let n=i;--n>=0;)if(s[n][i])for(let r=2*t;--r>=t;)s[n][r]-=s[i][r]*s[n][i];return e.slice(0,t,t,t)}augment(t){const e=this.clone(),s=e.width;return t.each(function(i,n,r){e.set(n,r+s,i)}),e}slice(t,e,s,i){const n=new is;for(let r=0;r<s;++r)for(let a=0;a<i;++a)n.set(r,a,this.get(t+r,e+a));return n}}
1function Uy(o,t,e){let s=e(o),i=o;for(let n=o+1;n<t;n++){const r=e(o);r>s&&(s=r,i=o)}return i}const jd=is,ci={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"};function Hy(o){return ci[o]||o}const ve=o=>o.replace(/([^ ]+)/g,Hy);function cn(){let t,e,o="";for(t=0;t<32;t++)e=16*Math.random()|0,(8===t||12===t||16===t||20===t)&&(o+="-"),o+=(12===t?4:16===t?3&e|8:e).toString(16);return o}const fl=new WeakMap,Uo=Symbol("id");function Ut(o,t,e,s,i){!function Gy(o,t,e,s,i){(Dt(t)?t:(t||"").split(" ")).forEach(function(r){!function Xy(o,t,e,s,i){let r,n=s;e&&ct(e)&&!s?n=e:e&&function jy(o){return"string"==typeof o}(e)&&ct(n)&&(r=e);const a=function(h){const d=h.target?h.target.closest(r):null;(!r||r&&h.target&&d)&&(Object.defineProperty(h,"currentTarget",{value:r?d:h.currentTarget}),Object.defineProperty(h,"delegateTarget",{value:o}),n(h))};n[Uo]=cn();let c=fl.get(o);c||(c=new Map,fl.set(o,c)),c.set(n[Uo],a),o.addEventListener(t,a,!!i)}(o,r,e,s,i)})}(o,t,e,s,i)}function $t(o,t,e,s,i){!function Wy(o,t,e,s){(Dt(t)?t:(t||"").split(" ")).forEach(function(n){!function Yy(o,t,e,s){const i=fl.get(o);if(i&&e&&e[Uo]){const n=e[Uo],r=i.get(n);i.delete(n),r&&o.removeEventListener(t,r,!!s)}}(o,n,e,s)})}(o,t,e,s)}function hn(){const o=function $y(o){let t=!1;const e={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i},s={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i};for(let i in e)if(o.match(e[i])){if("windows"===i&&"plugins"in navigator)return!1;t={},t.device=i,t.name=Zy(i,s),t[t.name]=!0;break}return t}(navigator.userAgent),t={};return t.mobileOS=o,t}function Zy(o,t,e){for(let s in t)if(t[s].test(o))return s;return void 0!==e?e:o}function Gd(){}function ns(){return(new Date).getTime()}const Wd="function";let Qy=function(){this._defaultPrevented=!0},Ky=function(){return!0===this._defaultPrevented};class ee extends L.A{constructor(){super(),this._events={}}destroy(){this.unbind()}bind(t,e,s){let n,a,c,h,u,i=this,r="string"==typeof t?[t]:t||[],d=typeof e===Wd;if(void 0===e){for(n in t)i.bind(n,t[n]);return i}for(n=0,a=r.length;n<a;n++){let p=r[n];h=d?e:e[p],h&&(s&&(c=h,h=function(){i.unbind(p,h),c.apply(i,arguments)},h.original=c),u=i._events[p]=i._events[p]||[],u.push(h))}return i}one(t,e){return this.bind(t,e,!0)}first(t,e){let i,r,a,h,s=this,n="string"==typeof t?[t]:t,c=typeof e===Wd;for(i=0,r=n.length;i<r;i++){let d=n[i];a=c?e:e[d],a&&(h=s._events[d]=s._events[d]||[],h.unshift(a))}return s}trigger(t,e){let n,r,s=this,i=s._events[t];if(i){let a=e||{};for(a.sender=s,a._defaultPrevented=!1,a.preventDefault=Qy,a.isDefaultPrevented=Ky,i=i.slice(),n=0,r=i.length;n<r;n++)i[n].call(s,a);return!0===a._defaultPrevented}return!1}unbind(t,e){let n,s=this,i=s._events[t];if(void 0===t)s._events={};else if(i)if(e)for(n=i.length-1;n>=0;n--)(i[n]===e||i[n].original===e)&&i.splice(n,1);else s._events[t]=[];return s}_setEvents(t){const e=(this.events||[]).length;for(let s=0;s<e;s++){let i=this.events[s];this.options[i]&&t[i]&&(this.unbind(i,this.options[i]),this._events&&this._events[i]&&delete this._events[i])}this.bind(this.events,t)}}const Ho=Object.assign,qy=o=>{o.preventDefault()};let Yd=800,$d=0,ml="move",jo="tap",tu="doubleTap",eu="release",su="gesturechange",iu="gestureend",nu="gesturetap",eb={api:0,touch:0,mouse:9,pointer:9};function ou(o){let t=[],e=o.originalEvent||o;return t.push(o.api?{id:2,event:o,target:o.target,currentTarget:o.target,location:o,type:"api"}:{location:e,event:o,target:o.target,currentTarget:o.currentTarget,id:e.pointerId,type:"pointer"}),t}class ru extends L.A{constructor(t,e){super();let s=this;s.support=hn(),s.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,s.axis=t,s._updateLocationData(e),s.startLocation=s.location,s.velocity=s.delta=0,s.timeStamp=ns()}move(t){let e=this,s=t["page"+e.axis],i=ns(),n=i-e.timeStamp||1;!s&&this.invalidZeroEvents||(e.delta=s-e.location,e._updateLocationData(t),e.initialDelta=s-e.startLocation,e.velocity=e.delta/n,e.timeStamp=i)}_updateLocationData(t){let e=this,s=e.axis;e.location=t["page"+s],e.client=t["client"+s],e.screen=t["screen"+s]}}class ib extends L.A{constructor(t,e,s){super(),Ho(this,{x:new ru("X",s.location),y:new ru("Y",s.location),type:s.type,threshold:t.threshold||eb[s.type],userEvents:t,target:e,currentTarget:s.currentTarget,initialTouch:s.target,id:s.id,pressEvent:s,_clicks:t._clicks,supportDoubleTap:t.supportDoubleTap,_moved:!1,_finished:!1})}press(){this._holdTimeout=setTimeout(()=>this._hold(),this.userEvents.minHold),this._trigger("press",this.pressEvent)}_tap(t){let e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout(function(){e._trigger(1===e.userEvents._clicks?jo:tu,t),e.userEvents._clicks=0},300))}_hold(){this._trigger("hold",this.pressEvent)}move(t){let e=this;if(!(e._finished||"api"!==t.type&&e.userEvents._shouldNotMove)){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if(Ts.current&&Ts.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(ml,t)}}end(t){this.endTime=ns(),!this._finished&&(this._finished=!0,this._trigger(eu,t),this._moved?this._trigger("end",t):this.supportDoubleTap?this._tap(t):this._trigger(jo,t),clearTimeout(this._holdTimeout),this.dispose())}dispose(){let e=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);const s=e.indexOf(this);e.splice(s,1)}skip(){this.dispose()}cancel(){this.dispose()}isMoved(){return this._moved}_start(t){clearTimeout(this._holdTimeout),this.startTime=ns(),this._moved=!0,this._trigger("start",t)}_trigger(t,e){const s=e.event;this.userEvents.notify(t,{touch:this,x:this.x,y:this.y,target:this.target,event:s})&&s.preventDefault()}_withinIgnoreThreshold(){let t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold}}function au(o){let t=ci.up.split(" "),e=0,s=t.length;for(;e<s;e++)o(t[e])}class Ts extends ee{constructor(t,e){super();let i,s=this;const n=hn();if(this.support=n,this.options=e=e||{},i=s.filter=e.filter,s.threshold=e.threshold||$d,s.minHold=e.minHold||Yd,s.touches=[],s._maxTouches=e.multiTouch?2:1,s.allowSelection=e.allowSelection,s.captureUpIfMoved=e.captureUpIfMoved,s._clicks=0,s.supportDoubleTap=e.supportDoubleTap,Ho(s,{element:t,surface:e.surface||t,stopPropagation:e.stopPropagation,pressed:!1}),this._surfaceMoveHandler=this._move.bind(this),Ut(s.surface,ve("move"),this._surfaceMoveHandler),this._surfaceEndHandler=this._end.bind(this),Ut(s.surface,ve("up cancel"),this._surfaceEndHandler),this._elementStartHandler=this._start.bind(this),Ut(t,ve("down"),i,this._elementStartHandler),t.style["touch-action"]=e.touchAction||"none",e.preventDragEvent&&(this._elementDragStartHandler=qy,Ut(t,ve("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=this._select.bind(this),Ut(t,ve("mousedown"),i,this._elementSelectHandler),s.captureUpIfMoved){let r=s.surface,a=s.preventIfMoving.bind(s);au(function(c){r.addEventListener(c,a,!0)})}s.bind(["press","hold",jo,tu,"start",ml,"end",eu,"cancel","gesturestart",su,iu,nu,"select"],e)}preventIfMoving(t){this._isMoved()&&t.preventDefault()}destroy(){let t=this;const e=this.options,s=this.element;
1if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved){let i=t.surface;au(function(n){i.removeEventListener(n,t.preventIfMoving)})}$t(t.surface,ve("move"),this._surfaceMoveHandler),$t(t.surface,ve("up cancel"),this._surfaceEndHandler),$t(s,ve("down"),this._elementStartHandler),e.preventDragEvent&&$t(s,ve("dragstart"),this._elementDragStartHandler),$t(s,ve("mousedown"),this._elementSelectHandler),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget}}capture(){Ts.current=this}cancel(){this._disposeAll(),this.trigger("cancel")}notify(t,e){let i=this.touches,n=t;if(this._isMultiTouch()){switch(n){case ml:n=su;break;case"end":n=iu;break;case jo:n=nu}Ho(e,{touches:i},function sb(o,t){let e=o.x.location,s=o.y.location,i=t.x.location,n=t.y.location,r=e-i,a=s-n;return{center:{x:(e+i)/2,y:(s+n)/2},distance:Math.sqrt(r*r+a*a)}}(i[0],i[1]))}return this.trigger(n,Ho(e,{type:n}))}press(t,e,s){this._apiCall("_start",t,e,s)}move(t,e){this._apiCall("_move",t,e)}end(t,e){this._apiCall("_end",t,e)}_isMultiTouch(){return this.touches.length>1}_maxTouchesReached(){return this.touches.length>=this._maxTouches}_disposeAll(){let t=this.touches;for(;t.length>0;)t.pop().dispose()}_isMoved(){return Yt(this.touches,function(t){return t.isMoved()}).length}_select(t){(!this.allowSelection||this.trigger("select",{event:t}))&&t.preventDefault()}_start(t){if(t.which&&t.which>1||this._maxTouchesReached())return;let e;Ts.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();const s=ou(t);for(let i=0;i<s.length&&!this._maxTouchesReached();i++){const n=s[i];if(e=this.filter?n.currentTarget:this.element,e&&0===e.length)continue;const r=new ib(this,e,n);this.touches.push(r),r.press(),this._isMultiTouch()&&this.notify("gesturestart",{})}}_move(t){this._eachTouch("move",t)}_end(t){this._eachTouch("end",t)}_eachTouch(t,e){let a,c,h,d,i={},n=ou(e),r=this.touches;for(a=0;a<r.length;a++)c=r[a],i[c.id]=c;for(a=0;a<n.length;a++)h=n[a],d=i[h.id],d&&("move"===t&&"pointer"===h.type&&!this.surface.hasPointerCapture(h.id)&&this.surface.setPointerCapture(h.id),d[t](h))}_apiCall(t,e,s,i){this[t]({api:!0,pageX:e,pageY:s,clientX:e,clientY:s,target:i||this.element,stopPropagation:Gd,preventDefault:Gd})}static defaultThreshold(t){$d=t}static minHold(t){Yd=t}}function hi(o,t){let e=k(t-o,9);if(0===e){if(0===t)return.1;e=Math.abs(t)}const s=Math.pow(10,Math.floor(Math.log(e)/Math.log(10))),i=k(e/s,10);let n=1;return n=i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2,k(s*n,10)}class Go extends L.A{constructor(t,e){super(),this.x=t||0,this.y=e||0}clone(){return new Go(this.x,this.y)}equals(t){return t&&this.x===t.x&&this.y===t.y}rotate(t,e){const s=Ct(e),i=Math.cos(s),n=Math.sin(s),{x:r,y:a}=t,{x:c,y:h}=this;return this.x=k(r+(c-r)*i+(h-a)*n,3),this.y=k(a+(h-a)*i-(c-r)*n,3),this}multiply(t){return this.x*=t,this.y*=t,this}distanceTo(t){const e=this.x-t.x,s=this.y-t.y;return Math.sqrt(e*e+s*s)}static onCircle(t,e,s){const i=Ct(e);return new Go(t.x-s*Math.cos(i),t.y-s*Math.sin(i))}}const V=Go;var wt=S(7577);class Xo extends L.A{constructor(t,e,s,i){super(),this.x1=t||0,this.y1=e||0,this.x2=s||0,this.y2=i||0}equals(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2}width(){return this.x2-this.x1}height(){return this.y2-this.y1}translate(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this}move(t,e){const s=this.height(),i=this.width();return _(t)&&(this.x1=t,this.x2=this.x1+i),_(e)&&(this.y1=e,this.y2=this.y1+s),this}wrap(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this}wrapPoint(t){const e=Dt(t),s=e?t[0]:t.x,i=e?t[1]:t.y;return this.wrap(new Xo(s,i,s,i)),this}snapTo(t,e){return(e===D||!e)&&(this.x1=t.x1,this.x2=t.x2),(e===P||!e)&&(this.y1=t.y1,this.y2=t.y2),this}alignTo(t,e){const s=this.height(),i=this.width(),n=e===j||e===$?P:D,r=n===P?s:i;if(e===F){const a=t.center(),c=this.center();this.x1+=a.x-c.x,this.y1+=a.y-c.y}else this[n+1]=e===j||e===U?t[n+1]-r:t[n+2];return this.x2=this.x1+i,this.y2=this.y1+s,this}shrink(t,e){return this.x2-=t,this.y2-=e,this}expand(t,e){return this.shrink(-t,-e),this}pad(t){const e=K(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this}unpad(t){const e=K(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)}clone(){return new Xo(this.x1,this.y1,this.x2,this.y2)}
1center(){return new V(this.x1+this.width()/2,this.y1+this.height()/2)}containsPoint(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2}points(){return[new V(this.x1,this.y1),new V(this.x2,this.y1),new V(this.x2,this.y2),new V(this.x1,this.y2)]}getHash(){return[this.x1,this.y1,this.x2,this.y2].join(",")}overlaps(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)}rotate(t){let e=this.width(),s=this.height();const{x:i,y:n}=this.center(),r=Wo(0,0,i,n,t),a=Wo(e,0,i,n,t),c=Wo(e,s,i,n,t),h=Wo(0,s,i,n,t);return e=Math.max(r.x,a.x,c.x,h.x)-Math.min(r.x,a.x,c.x,h.x),s=Math.max(r.y,a.y,c.y,h.y)-Math.min(r.y,a.y,c.y,h.y),this.x2=this.x1+e,this.y2=this.y1+s,this}toRect(){return new wt.A([this.x1,this.y1],[this.width(),this.height()])}hasSize(){return 0!==this.width()&&0!==this.height()}align(t,e,s){const i=e+1,n=e+2,r=e===D?Bo:Lo,a=this[r]();N(s,[U,j])?(this[i]=t[i],this[n]=this[i]+a):N(s,[Y,$])?(this[n]=t[n],this[i]=this[n]-a):s===F&&(this[i]=t[i]+(t[r]()-a)/2,this[n]=this[i]+a)}}function Wo(o,t,e,s,i){const n=Ct(i);return new V(e+(o-e)*Math.cos(n)+(t-s)*Math.sin(n),s-(o-e)*Math.sin(n)+(t-s)*Math.cos(n))}const A=Xo;class vl extends L.A{constructor(t,e,s,i,n){super(),this.center=t,this.innerRadius=e,this.radius=s,this.startAngle=i,this.angle=n}clone(){return new vl(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)}middle(){return this.startAngle+this.angle/2}setRadius(t,e){return e?this.innerRadius=t:this.radius=t,this}point(t,e){const s=Ct(t),i=Math.cos(s),n=Math.sin(s),r=e?this.innerRadius:this.radius,a=k(this.center.x-i*r,3),c=k(this.center.y-n*r,3);return new V(a,c)}adjacentBox(t,e,s){const i=this.clone().expand(t),n=i.middle(),r=i.point(n),a=e/2,c=s/2,h=Math.sin(Ct(n)),d=Math.cos(Ct(n));let u=r.x-a,p=r.y-c;return Math.abs(h)<.9&&(u+=a*-d/Math.abs(d)),Math.abs(d)<.9&&(p+=c*-h/Math.abs(h)),new A(u,p,u+e,p+s)}containsPoint(t){const e=this.center,s=this.innerRadius,i=this.radius,n=this.startAngle,r=this.startAngle+this.angle,a=t.x-e.x,c=t.y-e.y,h=new V(a,c),d=this.point(n),u=new V(d.x-e.x,d.y-e.y),p=this.point(r),f=new V(p.x-e.x,p.y-e.y),g=k(a*a+c*c,3);return(u.equals(h)||Cd(u,h))&&!Cd(f,h)&&g>=s*s&&g<=i*i}getBBox(){const t=new A(ft,ft,_t,_t),e=k(this.startAngle%360),s=k((e+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,e,s].sort(nb),r=n.indexOf(e),a=n.indexOf(s);let c;c=e===s?n:r<a?n.slice(r,a+1):[].concat(n.slice(0,a+1),n.slice(r,n.length));for(let h=0;h<c.length;h++){let d=this.point(c[h]);t.wrapPoint(d),t.wrapPoint(d,i)}return i||t.wrapPoint(this.center),t}expand(t){return this.radius+=t,this}}function nb(o,t){return o-t}const dn=vl;var H=S(54305),di=S(69928),E=S(73039);class yl extends L.A{createRing(t,e){const s=t.startAngle+180;let i=t.angle+s;(0===t.angle||t.angle>0&&s===i)&&(i+=.001);const n=new H.A(t.center.x,t.center.y),r=Math.max(t.radius,0),a=Math.max(t.innerRadius,0),c=new di.A(n,{startAngle:s,endAngle:i,radiusX:r,radiusY:r}),h=E.w.fromArc(c,e).close();if(a){c.radiusX=c.radiusY=a;const d=c.pointAt(i);h.lineTo(d.x,d.y),h.arc(i,s,a,a,!0)}else h.lineTo(n.x,n.y);return h}}yl.current=new yl;const Yo=yl;var ye=S(48309),se=S(72907),vt=S(50291),et=S(62542);function rb(o){return.5-Math.cos(o*Math.PI)/2}function ab(o){return o}function lb(o){return 0===o||1===o?o:Math.pow(2,-10*o)*Math.sin((o-.125)*(1.1*Math.PI)/.5)+1}function cb(o){return 1-Math.pow(1-o,3)}function hb(o){return o<.5?4*o*o*o:1-Math.pow(-2*o+2,3)/2}function db(o){return 1-Math.pow(1-o,2)}function ub(o){return o<.5?2*o*o:1-Math.pow(-2*o+2,2)/2}function pb(o){return Math.sqrt(1-Math.pow(o-1,2))}function gb(o){return-(Math.cos(Math.PI*o)-1)/2}function fb(o){return 1===o?1:1-Math.pow(2,-10*o)}function mb(o){return 0===o||1===o?o:o<.5?Math.pow(2,20*o-10)/2:(2-Math.pow(2,-20*o+10))/2}function xb(o){return 1+2.70158*Math.pow(o-1,3)+1.70158*Math.pow(o-1,2)}function vb(o){const e=2.5949095;return o<.5?Math.pow(2*o,2)*(2*(e+1)*o-e)/2:(Math.pow(2*o-2,2)*((e+1)*(2*o-2)+e)+2)/2}function yb(o){return 1-Math.pow(1-o,5)}function bb(o){return o<.5?16*Math.pow(o,5):1-Math.pow(-2*o+2,5)/2}var cu=S(37739),_b=S(51404),Cb=S(60576);let bl;class _l extends L.A{static get current(){return bl||(bl=new _l),bl}constructor(){super(),this._items=[]}register(t,e){this._items.push({name:t,type:e})}create(t,e){const s=this._items;let i;if(e&&e.type){const n=e.type.toLowerCase();for(let r=0;r<s.length;r++)if(s[r].name.toLowerCase()===n){i=s[r];break}}if(i)return new i.type(t,e)}}const be=_l;const hu={duration:500,easing:"swing"},ie=class Sb extends L.A{static create(t,e,s){return be.current.create(t,e,s)}get options(){return this._options||hu}set options(t){this._options=t}constructor(t,e){super(),this.options=Object.assign({},this.options,e),this.element=t}setup(){}step(){}play(){const t=this.options;t.easing="string"==typeof t.easing&&en[t.easing]?en[t.easing]:Array.isArray(t.easing)&&4
1===t.easing.length?function Ab(o,t,e,s){const i=3*o,n=3*(e-o)-i,r=1-i-n,a=3*t,c=3*(s-t)-a,h=1-a-c;function d(g){return((r*g+n)*g+i)*g}function p(g){return(3*r*g+2*n)*g+i}return g=>{const m=function wb(o){return Math.min(1,Math.max(0,o))}(g);if(0===m||1===m)return m;const v=function f(g){let m=g;for(let C=0;C<8;C++){const M=d(m)-g,R=p(m);if(Math.abs(M)<1e-7)return m;if(Math.abs(R)<1e-7)break;m-=M/R}let v=0,y=1;m=g;for(let C=0;C<24;C++){const M=(v+y)/2,R=d(M);if(Math.abs(R-g)<1e-7)return M;R<g?v=M:y=M}return(v+y)/2}(m);return function u(g){return((h*g+c)*g+a)*g}(v)}}(...t.easing):en[hu.easing];const{duration:e,delay:s=0,easing:i}=t,n=(0,cu.A)()+s,r=n+e;0===e?(this.step(1),this.abort()):setTimeout(()=>{const a=()=>{if(this._stopped)return;const c=(0,cu.A)(),h=(0,_b.A)(c-n,0,e),d=i(h/e);this.step(d),c<r?(0,Cb.A)(a):this.abort()};a()},s)}abort(){this._stopped=!0}destroy(){this.abort()}};class du extends L.A{constructor(t){super(),this.children=[],this.options=x({},this.options,this.initUserOptions(t))}initUserOptions(t){return t}reflow(t){const e=this.children;let s;for(let i=0;i<e.length;i++){let n=e[i];n.reflow(t),s=s?s.wrap(n.box):n.box.clone()}this.box=s||t}destroy(){const t=this.children;this.animation&&this.animation.destroy();for(let e=0;e<t.length;e++)t[e].destroy()}getRoot(){const t=this.parent;return t?t.getRoot():null}getSender(){const t=this.getService();if(t)return t.sender}getService(){let t=this;for(;t;){if(t.chartService)return t.chartService;t=t.parent}}translateChildren(t,e){const s=this.children,i=s.length;for(let n=0;n<i;n++)s[n].box.translate(t,e)}append(){for(let t=0;t<arguments.length;t++){let e=arguments[t];this.children.push(e),e.parent=this}}renderVisual(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())}addVisual(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))}renderChildren(){const t=this.children,e=t.length;for(let s=0;s<e;s++)t[s].renderVisual()}createVisual(){this.visual=new et.A({zIndex:this.options.zIndex,visible:O(this.options.visible,!0)})}createAnimation(){this.visual&&this.options.animation&&(this.animation=ie.create(this.visual,this.options.animation))}appendVisual(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):_(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)}clipRoot(){return this.parent?this.parent.clipRoot():this}stackRoot(){return this.parent?this.parent.stackRoot():this}stackVisual(t){const e=t.options.zIndex||0,s=this.visual.children,i=s.length;let n;for(n=0;n<i&&!(O(s[n].options.zIndex,0)>e);n++);this.visual.insert(n,t)}traverse(t){const e=this.children,s=e.length;for(let i=0;i<s;i++){let n=e[i];t(n),n.traverse&&n.traverse(t)}}closest(t){let e=this,s=!1;for(;e&&!s;)s=t(e),s||(e=e.parent);if(s)return e}renderComplete(){}hasHighlight(){const t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)}toggleHighlight(t,e){const s=(this.options||{}).highlight||{},i=s.visual;let n=this._highlight;if(!n){const r={fill:{color:W,opacity:e||.2},stroke:{color:W,width:1,opacity:e||.2}};if(i){if(n=this._highlight=i(Object.assign(this.highlightVisualArgs(),{createVisual:()=>this.createHighlight(r),sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total})),!n)return}else n=this._highlight=this.createHighlight(r);_(n.options.zIndex)||(n.options.zIndex=O(s.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)}toggleFocusHighlight(t){const e=((this.options||{}).accessibility||{}).highlight||{};let s=this._focusHighlight;if(t||s){if(!s){const i=this.getRoot().options.background,n=zo(i),r={fill:{opacity:e.opacity,color:e.color},stroke:Object.assign({},{color:n},e.border),zIndex:e.zIndex};s=this._focusHighlight=this.createFocusHighlight(r),this.appendVisual(s)}s.visible(t)}}createGradientOverlay(t,e,s){const i=new E.w(Object.assign({stroke:{color:"none"},fill:this.createGradient(s),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i}createGradient(t){if(this.parent)return this.parent.createGradient(t)}supportsPointInactiveOpacity(){return!0}}du.prototype.options={};const q=du;class uu extends q{constructor(t){super(t),this.options.margin=K(this.options.margin),this.options.padding=K(this.options.padding)}reflow(t){const e=this.options,{width:s,height:i,shrinkToFit:n}=e,r=s&&i,a=e.margin,c=e.padding,h=e.border.width;let d;const u=()=>{this.align(t,D,e.align),this.align(t,P,e.vAlign),this.paddingBox=d.clone().unpad(a).unpad(
1h)};let p=t.clone();r&&(p.x2=p.x1+s,p.y2=p.y1+i),n&&p.unpad(a).unpad(h).unpad(c),super.reflow(p),d=r?this.box=new A(0,0,s,i):this.box,n&&r?(u(),p=this.contentBox=this.paddingBox.clone().unpad(c)):(p=this.contentBox=d.clone(),d.pad(c).pad(h).pad(a),u()),this.translateChildren(d.x1-p.x1+a.left+h+c.left,d.y1-p.y1+a.top+h+c.top);const f=this.children;for(let g=0;g<f.length;g++){let m=f[g];m.reflow(m.box)}}align(t,e,s){this.box.align(t,e,s)}hasBox(){const t=this.options;return t.border.width||t.background}createVisual(){super.createVisual(),this.options.visible&&this.hasBox()&&this.visual.append(E.w.fromRect(this.paddingBox.toRect(),this.visualStyle()))}visualStyle(){const t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:O(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}}}w(uu,{align:U,vAlign:j,margin:{},padding:{},border:{color:pt,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const os=uu;function Cl(o,t){t&&(o.options.className=t.className,o.options.role=t.role,o.options.ariaLabel=t.ariaLabel,o.options.ariaRoleDescription=t.ariaRoleDescription,o.options.ariaChecked=t.ariaChecked)}class pu extends os{constructor(t,e){super(t),this.pointData=e}getElement(){const{options:t,paddingBox:e}=this,{type:s,rotation:i}=t,n=e.center(),r=e.width()/2,a=e.height()/2;if(!t.visible||!this.hasBox())return null;const c=this.visualStyle();let h;if(s===Nt)h=new ye.A(new se.A([k(e.x1+r,3),k(e.y1+a,3)],Math.min(r,a)),c);else if("triangle"===s)h=E.w.fromPoints([[e.x1+r,e.y1],[e.x1,e.y2],[e.x2,e.y2]],c).close();else if(s===tl)h=new E.P(c),h.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),h.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{const d=e.toRect();if(s===bd){const u=O(t.borderRadius,d.width()/5);d.setCornerRadius(u)}h=E.w.fromRect(d,c)}return i&&h.transform(vt.A().rotate(-i,[n.x,n.y])),h.options.zIndex=t.zIndex,h}createElement(){const t=this.options.visual,e=this.pointData||{};let s;return s=t?t({value:e.value,dataItem:e.dataItem,sender:this.getSender(),series:e.series,category:e.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:()=>this.getElement()}):this.getElement(),s}visualOptions(){const t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}}createVisual(){this.visual=this.createElement(),Cl(this.visual,this.options.accessibilityOptions)}}w(pu,{type:Nt,align:F,vAlign:F});const Rt=pu;var kb=S(85344),Tb=S(43010);const un="radial",Eb={glass:{type:"linear",rotation:0,stops:[{offset:0,color:W,opacity:0},{offset:.25,color:W,opacity:.3},{offset:1,color:W,opacity:0}]},sharpBevel:{type:un,stops:[{offset:0,color:W,opacity:.55},{offset:.65,color:W,opacity:0},{offset:.95,color:W,opacity:.25}]},roundedBevel:{type:un,stops:[{offset:.33,color:W,opacity:.06},{offset:.83,color:W,opacity:.2},{offset:.95,color:W,opacity:0}]},roundedGlass:{type:un,supportVML:!1,stops:[{offset:0,color:W,opacity:0},{offset:.5,color:W,opacity:.3},{offset:.99,color:W,opacity:0}]},sharpGlass:{type:un,supportVML:!1,stops:[{offset:0,color:W,opacity:.2},{offset:.15,color:W,opacity:.15},{offset:.17,color:W,opacity:.35},{offset:.85,color:W,opacity:.05},{offset:.87,color:W,opacity:.15},{offset:.99,color:W,opacity:0}]},bubbleShadow:{type:un,center:[.5,.5],radius:.5}};function Db(o,t){if(o.x1===t.x1&&o.y1===t.y1&&o.x2===t.x2&&o.y2===t.y2)return t;const e=Math.min(o.x1,t.x1),s=Math.max(o.x1,t.x1),i=Math.min(o.x2,t.x2),n=Math.max(o.x2,t.x2),r=Math.min(o.y1,t.y1),a=Math.max(o.y1,t.y1),c=Math.min(o.y2,t.y2),h=Math.max(o.y2,t.y2),d=[];return d[0]=new A(s,r,i,a),d[1]=new A(e,a,s,c),d[2]=new A(i,a,n,c),d[3]=new A(s,c,i,h),o.x1===e&&o.y1===r||t.x1===e&&t.y1===r?(d[4]=new A(e,r,s,a),d[5]=new A(i,c,n,h)):(d[4]=new A(i,r,n,a),d[5]=new A(e,c,s,h)),Yt(d,function(u){return u.height()>0&&u.width()>0})[0]}class gu extends q{constructor(t){super(t);const e=this.options;e.width=parseInt(e.width,10),e.height=parseInt(e.height,10),this.gradients={}}reflow(){const{options:t,children:e}=this;let s=new A(0,0,t.width,t.height);this.box=s.unpad(t.margin);for(let i=0;i<e.length;i++)e[i].reflow(s),s=Db(s,e[i].box)||new A}
1createVisual(){this.visual=new et.A,this.createBackground()}createBackground(){const t=this.options,e=t.border||{},s=this.box.clone().pad(t.margin).unpad(e.width),i=E.w.fromRect(s.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(i)}getRoot(){return this}createGradient(t){const e=this.gradients,s=My(t),i=Eb[t.gradient];let n;if(e[s])n=e[s];else{const r=Object.assign({},i,t);"linear"===i.type?n=new kb.A(r):(t.innerRadius&&(r.stops=function Pb(o){const t=o.stops,e=o.innerRadius/o.radius*100,s=t.length,i=[];for(let n=0;n<s;n++){let r=Object.assign({},t[n]);r.offset=(r.offset*(100-e)+e)/100,i.push(r)}return i}(r)),n=new Tb.A(r),n.supportVML=!1!==i.supportVML),e[s]=n}return n}cleanGradients(){const t=this.gradients;for(let e in t)t[e]._observers=[]}size(){const t=this.options;return new A(0,0,t.width,t.height)}}w(gu,{width:600,height:400,background:W,border:{color:pt,width:0},margin:K(5),zIndex:-2});const Lb=gu;class fu extends q{constructor(t){super(t),this._initDirection()}_initDirection(){const t=this.options;t.vertical?(this.groupAxis=D,this.elementAxis=P,this.groupSizeField=Bo,this.elementSizeField=Lo,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=P,this.elementAxis=D,this.groupSizeField=Lo,this.elementSizeField=Bo,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)}reflow(t){this.box=t.clone(),this.reflowChildren()}reflowChildren(){const{box:t,elementAxis:e,groupAxis:s,elementSizeField:i,groupSizeField:n}=this,{groups:r,groupsSize:a,maxGroupElementsSize:c}=this.groupOptions(),h=r.length,d=t[s+1]+this.alignStart(a,t[n]());if(h){let u=d;for(let p=0;p<h;p++){let f=r[p],g=f.groupElements,m=t[e+1],v=g.length;for(let y=0;y<v;y++){let C=g[y],M=this.elementSize(C),R=u+this.alignStart(M[n],f.groupSize),B=new A;B[s+1]=R,B[s+2]=R+M[n],B[e+1]=m,B[e+2]=m+M[i],C.reflow(B),m+=M[i]+this.elementSpacing}u+=f.groupSize+this.groupSpacing}t[s+1]=d,t[s+2]=d+a,t[e+2]=t[e+1]+c}}alignStart(t,e){let s=0;const i=this.options.align;return i===Y||i===$?s=e-t:i===F&&(s=(e-t)/2),s}groupOptions(){const{box:t,children:e,elementSizeField:s,groupSizeField:i,elementSpacing:n,groupSpacing:r}=this,a=k(t[s]()),c=e.length,h=[];let d=0,u=0,p=0,f=0,g=[];for(let m=0;m<c;m++){let v=e[m];v.box||v.reflow(t);let y=this.elementSize(v);this.options.wrap&&k(u+n+y[s])>a&&(h.push({groupElements:g,groupSize:d,groupElementsSize:u}),f=Math.max(f,u),p+=r+d,d=0,u=0,g=[]),d=Math.max(d,y[i]),u>0&&(u+=n),u+=y[s],g.push(v)}return h.push({groupElements:g,groupSize:d,groupElementsSize:u}),f=Math.max(f,u),p+=d,{groups:h,groupsSize:p,maxGroupElementsSize:f}}elementSize(t){return{width:t.box.width(),height:t.box.height()}}createVisual(){}}w(fu,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const wl=fu;var mu=S(20786),xu=S(72821);const Ib=mu.A;class vu extends q{constructor(t,e){super(e),this.content=t,this.reflow(new A)}reflow(t){const e=this.options,s=e.size=xu.A(this.content,{font:e.font});this.baseline=s.baseline,this.box=new A(t.x1,t.y1,t.x1+s.width,t.y1+s.height)}createVisual(){const{font:t,color:e,opacity:s,cursor:i,stroke:n,paintOrder:r}=this.options;this.visual=new Ib(this.content,this.box.toRect().topLeft(),{font:t,fill:{color:e,opacity:s},cursor:i,stroke:n,paintOrder:r})}}w(vu,{font:fd,color:pt});const Rb=vu;function ui(o){const t=o.origin,e=o.bottomRight();return new A(t.x,t.y,e.x,e.y)}const Bb=/\n/m,Ht=class Ob extends os{constructor(t,e,s){super(e),this.content=t,this.data=s,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new A)}_initContainer(){const t=this.options,e=String(this.content).split(Bb),s=new wl({vertical:!0,align:t.align,wrap:!1}),i=x({},t,{opacity:1,animation:null});this.container=s,this.append(s);for(let n=0;n<e.length;n++){let r=new Rb(e[n].trim(),i);s.append(r)}}reflow(t){const e=this.options,s=e.visual;if(this.container.options.align=e.align,s&&!this._boxReflow){let i=t;i.hasSize()||(this._boxReflow=!0,this.reflow(i),this._boxReflow=!1,i=this.box);const n=this.visual=s(this.visualContext(i));n&&(i=ui(n.clippedBBox()||new wt.A),n.options.zIndex=e.zIndex),this.box=this.contentBox=this.paddingBox=i}else if(super.reflow(t),e.rotation){const i=K(e.margin);let n=this.box.unpad(i);this.targetBox=t,this.normalBox=n.clone(),n=this.rotate(),n.translate(i.left-i.right,i.top-i.bottom),this.rotatedBox=n.clone(),n.pad(i)}}createVisual(){const t=this.options;if(this.visual=new et.A({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){const e=E.w.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}}renderVisual(){if(this.options.visible)if(this.options.visual){const t=this.visual;t&&!_(t.options.noclip)&&(t.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else super.renderVisual()}visualContext(t){const e={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:()=>(this._boxReflow=!0,this.reflow(t),this._boxReflow=!1,this.getDefaultVisual())};return this.data&&Object.assign(e,this.data),e}getDefaultVisual(){this.createVisual(),this.renderChildren();const t=this.visual;return delete this.visual,t}rotate(){const t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,D,t.align),this.align(this.targetBox,P,t.vAlign),this.box}rotationTransform(){const t=this.options.rotation;if(!t)return null;const{x:e,y:s}=this.normalBox.center(),i=this.rotatedBox.center();return vt.A().translate(i.x-e,i.y-s).rotate(t,[e,s])}};class $o extends q{constructor(t){super(t),this._textBox=new Ht(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})),this.append(this._textBox)}reflow(t){super.reflow(t),this.box.snapTo(t,D)}static buildTitle(t,e){let i,s=t;return"string"==typeof t&&(s={text:t}),s=Object.assign({visible:!0},e,s),s&&s.visible&&s.text&&(i=new $o(s)),i}static orderTitles(t){const e=[].concat(t),s=e.filter(n=>n&&n.options.position!==$),i=e.filter(n=>n&&n.options.position===$);return yu(s),yu(i),i.reverse(),s.concat(i)}}function yu(o){for(let t=1;t<o.length;t++){const e=o[t]._textBox,s=o[t-1]._textBox;s.options.margin=Object.assign(K(s.options.margin),{bottom:0}),e.options.margin=Object.assign(K(e.options.margin),{top:0})}}w($o,{color:pt,position:j,align:F,margin:K(5),padding:K(5)});const pn=$o;class bu extends Ht{constructor(t,e,s,i,n){super(e,n),this.text=e,this.value=t,this.index=s,this.dataItem=i,this.reflow(new A)}visualContext(t){const e=super.visualContext(t);return e.value=this.value,e.dataItem=this.dataItem,e.format=this.options.format,e.culture=this.options.culture,e}click(t,e){t.trigger("axisLabelClick",{element:ae(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})}rotate(){if(this.options.alignRotation!==F){const t=this.normalBox.toRect(),e=this.rotationTransform();this.box=ui(t.bbox(e.matrix()))}else super.rotate();return this.box}rotationTransform(){const t=this.options,e=t.rotation;if(!e)return null;if(t.alignRotation===F)return super.rotationTransform();const s=vt.A().rotate(e).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),r=t.rotationOrigin||j,a=r===j||r===$?D:P,c=r===j||r===$?P:D,h=r===j||r===U?n.origin:n.bottomRight(),d=i.topLeft().transformCopy(s),u=i.topRight().transformCopy(s),p=i.bottomRight().transformCopy(s),f=i.bottomLeft().transformCopy(s),g=wt.A.fromPoints(d,u,p,f),m={[c]:n.origin[c]-g.origin[c]},v=Math.abs(d[c]+m[c]-h[c]),y=Math.abs(u[c]+m[c]-h[c]);let C,M;k(v,10)===k(y,10)?(C=d,M=u):y<v?(C=u,M=p):(C=d,M=f);const R=C[a]+(M[a]-C[a])/2;return m[a]=n.center()[a]-R,vt.A().translate(m.x,m.y).rotate(e)}}w(bu,{_autoReflow:!1});const Ms=bu;class Cu extends os{constructor(t,e,s){super(e),this.fields=t,this.chartService=s,this.render()}hide(){this.options.visible=!1}show(){this.options.visible=!0}render(){const t=this.options;if(t.visible){const{label:e,icon:s}=t,i=new A,n=()=>this;let c,h,r=s.size,a=this.fields.text;if(_(e)&&e.visible){const u=kt(e);u?a=u(this.fields):e.format&&(a=this.chartService.format.auto(e.format,a)),e.color||(e.color=e.position===sl?"#fff":s.background),this.label=new Ht(a,x({},e)),this.label.aliasFor=n,e.position===sl&&!_(r)&&(s.type===Nt?r=Math.max(this.label.box.width(),this.label.box.height()):(c=this.label.box.width(),h=this.label.box.height()),i.wrap(this.label.box))}s.width=c||r||7,s.height=h||r||7;const d=new Rt(x({},s));d.aliasFor=n,this.marker=d,this.append(d),this.label&&this.append(this.label),d.reflow(new A),this.wrapperBox=i.wrap(d.box)}}reflow(t){const{options:e,label:s,marker:i,wrapperBox:n}=this,r=t.center(),a=e.line.length,c=e.position;if(e.visible){let h,d,u;N(c,[U,Y])?c===U?(u=n.alignTo(t,c).translate(-a,t.center().y-n.center().y),e.line.visible&&(h=[t.x1,r.y],this.linePoints=[h,[u.x2,r.y]],d=u.clone().wrapPoint(h))):(u=n.alignTo(t,c).translate(a,t.center().y-n.center().y),e.line.visible&&(h=[t.x2,r.y],this.linePoints=[h,[u.x1,r.y]],d=u.clone().wrapPoint(h))):c===$?(u=n.alignTo(t,c).translate(t.center().x-n.center().x,a),e.line.visible&&(h=[r.x,t.y2],this.linePoints=[h,[r.x,u.y1]],d=u.clone().wrapPoint(h))):(u=n.alignTo(t,c).translate(t.center().x-n.center().x,-a),e.line.visible&&(h=[r.x,t.y1],this.linePoints=[h,[r.x,u.y2]],d=u.clone().wrapPoint(h))),i&&i.reflow(u),s&&(s.reflow(u),i&&(e.label.position===Io&&s.box.alignTo(i.box,c),s.reflow(s.box))),this.contentBox=u,this.targetBox=t,this.box=d||u}}createVisual(){super.createVisual(),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()}renderVisual(){const t=this.options,e=t.visual;t.visible&&e?(this.visual=e(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:t.background,border:t.background,icon:t.icon,label:t.label,line:t.line,position:t.position,visible:t.visible},createVisual:()=>{this.createVisual(),this.renderChildren();const s=this.visual;return delete this.visual,s}})),this.addVisual()):super.renderVisual()}createLine(){const t=this.options.line;if(this.linePoints){const e=E.w.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});Wt(e),this.visual.append(e)}}click(t,e){const s=this.eventArgs(e);
1t.trigger("noteClick",s)||e.preventDefault()}over(t,e){const s=this.eventArgs(e);t.trigger("noteHover",s)||e.preventDefault()}out(t,e){const s=this.eventArgs(e);t.trigger("noteLeave",s)}eventArgs(t){const e=this.options;return Object.assign(this.fields,{element:ae(t),text:_(e.label)?e.label.text:"",visual:this.visual})}}w(Cu,{icon:{visible:!0,type:Nt},label:{position:sl,visible:!0,align:F,vAlign:F},line:{visible:!0},visible:!0,position:j,zIndex:2});const wu=Cu;let Au={format:(o,t)=>t,toString:o=>o,parseDate:o=>new Date(o),firstDay:()=>0};const Su=class Fb{static register(t){Au=t}static get implementation(){return Au}},Nb=/\{(\d+)(:[^\}]+)?\}/g,Ub=class zb{constructor(t){this._intlService=t}get intl(){return this._intlService||Su.implementation}set intl(t){this._intlService=t}auto(t,...e){const s=this.intl;return zt(t)&&t.match(xd)?s.format(t,...e):s.toString(e[0],t)}localeAuto(t,e,s){const i=this.intl;let n;return n=zt(t)&&t.match(xd)?t.replace(Nb,function(r,a,c){let h=e[parseInt(a,10)];return i.toString(h,c?c.substring(1):"",s)}):i.toString(e[0],t,s),n}},Al=class Hb{constructor(t,e={}){this._intlService=e.intlService,this.sender=e.sender||t,this.format=new Ub(e.intlService),this.chart=t,this.rtl=!!e.rtl}get intl(){return this._intlService||Su.implementation}set intl(t){this._intlService=t,this.format.intl=t}notify(t,e){this.chart&&this.chart.trigger(t,e)}isPannable(t){const e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t}};let Sl;const ku=class jb{static register(t){Sl=t}static create(t,e){let s;return s=Sl?Sl.create(t,e):new Ts(t,Object.assign({},{multiTouch:!0},e)),s}};function Tu(o,t){const{tickX:e,tickY:s,position:i}=o,n=new E.w({stroke:{width:t.width,color:t.color}});return o.vertical?n.moveTo(e,i).lineTo(e+t.size,i):n.moveTo(i,s).lineTo(i,s+t.size),Wt(n),n}function Mu(o,t){const{lineStart:e,lineEnd:s,position:i}=o,n=new E.w({stroke:{width:t.width,color:t.color,dashType:t.dashType}});return o.vertical?n.moveTo(e,i).lineTo(s,i):n.moveTo(i,e).lineTo(i,s),Wt(n),n}class Eu extends q{constructor(t,e=new Al){super(t),this.chartService=e,this.options.visible||(this.options=x({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=x({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==il},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=x({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.majorTickType!==il},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}initFields(){}labelsRange(){return{min:this.options.labels.skip,max:this.labelsCount()}}normalizeLabelRotation(t){const e=t.rotation;Jt(e)&&(t.alignRotation=e.align,t.rotation=e.angle)}createLabels(){const t=this.options,s=x({},t.labels,{align:t.vertical?Y:F,zIndex:t.zIndex}),i=Math.max(1,s.step);if(this.clearLabels(),s.visible){this.normalizeLabelRotation(s),"auto"===s.rotation&&(s.rotation=0,t.autoRotateLabels=!0);const n=this.labelsRange();for(let r=n.min;r<n.max;r+=i){let c=this.createAxisLabel(r,s,{index:r,count:n.max});c&&(this.append(c),this.labels.push(c))}}}clearLabels(){this.children=Yt(this.children,t=>!(t instanceof Ms)),this.labels=[]}clearTitle(){this.title&&(this.children=Yt(this.children,t=>t!==this.title),this.title=void 0)}clear(){this.clearLabels(),this.clearTitle()}lineBox(){const{options:t,box:e}=this,i=t.labels.mirror,n=i?e.x1:e.x2,r=i?e.y2:e.y1,a=t.line.width||0;return t.vertical?new A(n,e.y1,n,e.y2-a):new A(e.x1,r,e.x2-a,r)}createTitle(){const t=this.options,e=x({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){const s=new Ht(e.text,e);this.append(s),this.title=s}}createNotes(){const t=this.options,e=t.notes,s=e.data||[];this.notes=[];for(let i=0;i<s.length;i++){const n=x({},e,s[i]);n.value=this.parseNoteValue(n.value);const r=new wu({value:n.value,text:n.label.text,dataItem:n},n,this.chartService);
1r.options.visible&&(_(r.options.position)?t.vertical&&!N(r.options.position,[U,Y])?r.options.position=t.reverse?U:Y:!t.vertical&&!N(r.options.position,[j,$])&&(r.options.position=t.reverse?$:j):r.options.position=t.vertical?t.reverse?U:Y:t.reverse?$:j,this.append(r),this.notes.push(r))}}parseNoteValue(t){return t}renderVisual(){super.renderVisual(),this.createPlotBands()}createVisual(){super.createVisual(),this.createBackground(),this.createLine()}gridLinesVisual(){let t=this._gridLines;return t||(t=this._gridLines=new et.A({zIndex:-2}),this.appendVisual(this._gridLines)),t}createTicks(t){const e=this.options,s=this.lineBox(),i=e.labels.mirror,n=e.majorTicks.visible?e.majorUnit:0,r={vertical:e.vertical};function a(c,h,d){const u=c.length,p=Math.max(1,h.step);if(h.visible)for(let f=h.skip;f<u;f+=p)_(d)&&f%d==0||(r.tickX=i?s.x2:s.x2-h.size,r.tickY=i?s.y1-h.size:s.y1,r.position=c[f],t.append(Tu(r,h)))}a(this.getMajorTickPositions(),e.majorTicks),a(this.getMinorTickPositions(),e.minorTicks,n/e.minorUnit)}createLine(){const t=this.options,e=t.line,s=this.lineBox();if(e.width>0&&e.visible){const i=new E.w({stroke:{width:e.width,color:e.color,dashType:e.dashType}});i.moveTo(s.x1,s.y1).lineTo(s.x2,s.y2),t._alignLines&&Wt(i);const n=this._lineGroup=new et.A;n.append(i),this.visual.append(n),this.createTicks(n)}}getActualTickSize(){const t=this.options;let e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e}createBackground(){const{options:t,box:e}=this,s=t.background;s&&(this._backgroundPath=E.w.fromRect(e.toRect(),{fill:{color:s},stroke:null}),this.visual.append(this._backgroundPath))}createPlotBands(){const t=this.options,e=t.plotBands||[],s=t.vertical,i=this.plotArea;if(0===e.length)return;const n=this._plotbandGroup=new et.A({zIndex:-1}),r=Yt(this.pane.axes,a=>a.options.vertical!==this.options.vertical)[0];for(let a=0;a<e.length;a++){let h,d,p,c=e[a],u=c.label;if(s?(h=(r||i.axisX).lineBox(),d=this.getSlot(c.from,c.to,!0)):(h=this.getSlot(c.from,c.to,!0),d=(r||i.axisY).lineBox()),u&&(u.vAlign=u.position||U,p=this.createPlotBandLabel(u,c,new A(h.x1,d.y1,h.x2,d.y2))),0!==h.width()&&0!==d.height()){const f=new wt.A([h.x1,d.y1],[h.width(),d.height()]),g=E.w.fromRect(f,{fill:{color:c.color,opacity:c.opacity},stroke:null});n.append(g),p&&n.append(p)}}this.appendVisual(n)}createPlotBandLabel(t,e,s){if(!1===t.visible)return null;let n,i=t.text;if(_(t)&&t.visible){const r=kt(t);r?i=r({text:i,item:e}):t.format&&(i=this.chartService.format.auto(t.format,i)),t.color||(t.color=this.options.labels.color)}return n=new Ht(i,t),n.reflow(s),n.renderVisual(),n.visual}createGridLines(t){const e=this.options,{minorGridLines:s,majorGridLines:i,minorUnit:n,vertical:r}=e,a=t.options.line.visible,c=i.visible?e.majorUnit:0,h=t.lineBox(),d=h[r?"y1":"x1"],u={lineStart:h[r?"x1":"y1"],lineEnd:h[r?"x2":"y2"],vertical:r},p=[],f=this.gridLinesVisual();function g(m,v,y){const C=m.length,M=Math.max(1,v.step);if(v.visible)for(let R=v.skip;R<C;R+=M){let B=k(m[R]);N(B,p)||R%y!=0&&(!a||d!==B)&&(u.position=B,f.append(Mu(u,v)),p.push(B))}}return g(this.getMajorTickPositions(),i),g(this.getMinorTickPositions(),s,c/n),f.children}reflow(t){const{options:e,labels:s,title:i}=this,n=e.vertical,r=s.length,a=n?Bo:Lo,c=i?i.box[a]():0,h=this.getActualTickSize()+e.margin+c,u=((this.getRoot()||{}).box||t)[a]();let p=0;for(let f=0;f<r;f++){let g=s[f].box[a]();g+h<=u&&(p=Math.max(p,g))}this.box=n?new A(t.x1,t.y1,t.x1+p+h,t.y2):new A(t.x1,t.y1,t.x2,t.y1+p+h),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()}getLabelsTickPositions(){return this.getMajorTickPositions()}labelTickIndex(t){return t.index}arrangeLabels(){const{options:t,labels:e}=this,s=this.labelsBetweenTicks(),i=t.vertical,n=t.labels.mirror,r=this.getLabelsTickPositions();for(let a=0;a<e.length;a++){const c=e[a],h=this.labelTickIndex(c),d=i?c.box.height():c.box.width(),u=r[h],p=r[h+1];let f,g;i?(f=s?u+(p-u)/2-d/2:u-d/2,g=f):s?(f=u,g=p):(f=u-d/2,g=f+d),this.positionLabel(c,n,f,g)}}positionLabel(t,e,s,i=s){const n=this.options,r=n.vertical,a=this.lineBox(),c=this.getActualTickSize()+n.margin;let h;if(r){let d=a.x2;e?(d+=c,t.options.rotationOrigin=U):(d-=c+t.box.width(),t.options.rotationOrigin=Y),h=t.box.move(d,s)}else{let d=a.y1;e?(d-=c+t.box.height(),t.options.rotationOrigin=$):(d+=c,t.options.rotationOrigin=j),h=new A(s,d,i,d+t.box.height())}t.reflow(h)}autoRotateLabelAngle(t,e){return t.width()<e?0:t.height()>e?-90:-45}autoRotateLabels(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;const t=this.getMajorTickPositions(),e=this.labels,s=Math.min(e.length,t.length-1);let i=0;for(let n=0;n<s;n++){const r=Math.abs(t[n+1]-t[n]),c=this.autoRotateLabelAngle(e[n].box,r);if(0!==c&&(i=c),-90===i)break}if(0!==i){for(let n=0;n<e.length;n++)e[n].options.rotation=i,e[n].reflow(new A);return!0}}arrangeTitle(){const{options:t,title:e}=this,s=t.labels.mirror;e&&(t.vertical?(e.options.align=s?Y:U,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=s?j:$),e.reflow(this.box))}arrangeNotes(){for(let t=0;t<this.notes.length;t++){const e=this.notes[t],s=e.options.value;let i;_(s)?(this.shouldRenderNote(s)?e.show():e.hide(),i=this.noteSlot(s)):e.hide(),e.reflow(i||this.lineBox())}}
1noteSlot(t){return this.getSlot(t)}alignTo(t){const e=t.lineBox(),s=this.options.vertical,i=s?P:D;this.box.snapTo(e,i),s?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[i+1]-=this.lineBox()[i+1]-e[i+1],this.box[i+2]-=this.lineBox()[i+2]-e[i+2]}axisLabelText(t,e,s){let i;const n=kt(e),r=()=>e.format?this.chartService.format.localeAuto(e.format,[t],e.culture):t;return i=n?n(Object.assign({},s,{get text(){return r()},value:t,format:e.format,culture:e.culture})):r(),i}slot(t,e,s){const i=this.getSlot(t,e,s);if(i)return i.toRect()}contentBox(){const t=this.box.clone(),e=this.labels;if(e.length){const s=this.options.vertical?P:D;if(this.chartService.isPannable(s)){const i=this.maxLabelOffset();t[s+1]-=i.start,t[s+2]+=i.end}else{e[0].options.visible&&t.wrap(e[0].box);const i=e[e.length-1];i.options.visible&&t.wrap(i.box)}}return t}maxLabelOffset(){const{vertical:t,reverse:e}=this.options,s=this.labelsBetweenTicks(),i=this.getLabelsTickPositions(),n=t?P:D,r=this.labels,a=e?1:0,c=e?0:1;let h=0,d=0;for(let u=0;u<r.length;u++){const p=r[u],f=this.labelTickIndex(p);let g,m;s?(g=i[f+a],m=i[f+c]):g=m=i[f],h=Math.max(h,g-p.box[n+1]),d=Math.max(d,p.box[n+2]-m)}return{start:h,end:d}}limitRange(t,e,s,i,n){const r=this.options;if(t<s&&n<0&&(!_(r.min)||r.min<=s)||i<e&&n>0&&(!_(r.max)||i<=r.max))return null;if(e<s&&n>0||i<t&&n<0)return{min:t,max:e};const a=e-t;let c=t,h=e;return t<s&&n<0?(c=I(t,s,i),h=I(t+a,s+a,i)):e>i&&n>0&&(h=I(e,s,i),c=I(e-a,s,i-a)),{min:c,max:h}}valueRange(){return{min:this.seriesMin,max:this.seriesMax}}lineDir(){const{vertical:t,reverse:e}=this.options;return(t?-1:1)*(e?-1:1)}lineInfo(){const{vertical:t}=this.options,e=this.lineBox(),s=t?e.height():e.width(),i=t?P:D,n=this.lineDir(),a=i+(1===n?1:2).toString();return{axis:i,axisOrigin:a,axisDir:n,lineBox:e,lineSize:s,lineStart:e[a]}}pointOffset(t){const{axis:e,axisDir:s,axisOrigin:i,lineBox:n,lineSize:r}=this.lineInfo();return(s>0?t[e]-n[i]:n[i]-t[e])/r}scaleToDelta(t,e){const i=I(t,-.999,.999);let n;return n=i>0?e*Math.min(1,i):e-e/(1+i),n}labelsBetweenTicks(){return!this.options.justified}prepareUserOptions(){}}w(Eu,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:pt,visible:!0},title:{visible:!0,position:F},majorTicks:{align:Io,size:4,skip:0,step:1},minorTicks:{align:Io,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:Io,minorTickType:il,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:pt,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});const gn=Eu,Zo="milliseconds",kl="seconds",Tl="minutes",fn="hours",_e="days",mn="weeks",Es="months",Pe="years",Ml=1e3,pi=60*Ml,Qo=60*pi,Le=24*Qo,El=7*Le,Dl=31*Le,Pl=365*Le,Ce={years:Pl,months:Dl,weeks:El,days:Le,hours:Qo,minutes:pi,seconds:Ml,milliseconds:1};function Ll(o,t){return o.getTime()-t-(o.getTimezoneOffset()-t.getTimezoneOffset())*pi}function Tt(o,t){return new Date(o.getTime()+t)}function nt(o){let t;return o instanceof Date?t=o:o&&(t=new Date(o)),t}function Ko(o,t){return 0===t&&23===o.getHours()&&(o.setHours(o.getHours()+2),!0)}function It(o,t,e,s){let i=o;if(o){let n=nt(o);const r=n.getHours();e===Pe?(i=new Date(n.getFullYear()+t,0,1),Ko(i,0)):e===Es?(i=new Date(n.getFullYear(),n.getMonth()+t,1),Ko(i,r)):e===mn?(i=It(function Xb(o,t=0){let e=0,s=o.getDay();if(!isNaN(s))for(;s!==t;)0===s?s=6:s--,e++;return Tt(o,-e*Le)}(n,s),7*t,_e),Ko(i,r)):e===_e?(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+t),Ko(i,r)):e===fn?i=function Wb(o,t){const e=new Date(o);e.setMinutes(0,0,0);const s=(o.getTimezoneOffset()-e.getTimezoneOffset())*pi;return Tt(e,s+t*Qo)}(n,t):e===Tl?(i=Tt(n,t*pi),i.getSeconds()>0&&i.setSeconds(0)):e===kl?i=Tt(n,t*Ml):e===Zo&&(i=Tt(n,t)),e!==Zo&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function Il(o,t,e){return It(nt(o),0,t,e)}function Du(o,t,e){const s=nt(o);return s&&Il(s,t,e).getTime()===s.getTime()?s:It(s,1,t,e)}function qo(o,t){return o&&t?o.getTime()-t.getTime():-1}function we(o,t){return o.getTime()-t}function ot(o){if(Dt(o)){let t=[];for(let e=0;e<o.length;
1e++)t.push(ot(o[e]));return t}if(o)return nt(o).getTime()}function Jo(o,t){return o&&t?ot(o)===ot(t):o===t}function Pu(o,t,e){return Ll(o,t)/Ce[e]}function Ds(o,t,e,s){const i=nt(o),n=nt(t);let r;return r=e===Es?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+Pu(i,new Date(i.getFullYear(),i.getMonth()),_e)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():e===Pe?i.getFullYear()-n.getFullYear()+Ds(i,new Date(i.getFullYear(),0),Es,1)/12:e===_e||e===mn?Pu(i,n,e):we(i,t)/Ce[e],r/s}function Rl(o,t,e){let s;return s=e===Pe?t.getFullYear()-o.getFullYear():e===Es?12*Rl(o,t,Pe)+t.getMonth()-o.getMonth():e===_e?Math.floor(we(t,o)/Le):Math.floor(we(t,o)/Ce[e]),s}function Pt(o,t){let e;return e=zt(t)&&o.parseDate(t)||nt(t),e}function Lu(o,t){if(Dt(t)){const e=[];for(let s=0;s<t.length;s++)e.push(Pt(o,t[s]));return e}return Pt(o,t)}function Iu(o,t){return G(o.weekStartDay)?o.weekStartDay:t&&t.firstDay?t.firstDay():0}class tr extends gn{initFields(){this._ticks={}}categoriesHash(){return""}clone(){const t=new tr(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t}initUserOptions(t){const e=t.categories||[],s=_(t.min),i=_(t.max);if(t.srcCategories=t.categories=e,(s||i)&&e.length){const n=s?Math.floor(t.min):0;let r;r=i?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,r)}return t}rangeIndices(){const t=this.options,e=t.categories.length||1,s=G(t.min)?t.min%1:0;let i;return i=G(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0),{min:s,max:i}}range(){const t=this.options;return{min:G(t.min)?t.min:0,max:G(t.max)?t.max:this.totalRange().max}}roundedRange(){return this.range()}totalRange(){const t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}}scaleOptions(){const{min:t,max:e}=this.rangeIndices(),s=this.lineBox();return{scale:(this.options.vertical?s.height():s.width())/(e-t||1)*(this.options.reverse?-1:1),box:s,min:t,max:e}}arrangeLabels(){super.arrangeLabels(),this.hideOutOfRangeLabels()}hideOutOfRangeLabels(){const{box:t,labels:e}=this;if(e.length>0){const s=this.options.vertical?P:D,i=t[s+1],n=t[s+2],r=e[0],a=mt(e);(r.box[s+1]>n||r.box[s+2]<i)&&(r.options.visible=!1),(a.box[s+1]>n||a.box[s+2]<i)&&(a.options.visible=!1)}}getMajorTickPositions(){return this.getTicks().majorTicks}getMinorTickPositions(){return this.getTicks().minorTicks}getLabelsTickPositions(){return this.getTicks().labelTicks}tickIndices(t){const{min:e,max:s}=this.rangeIndices(),i=Math.ceil(s);let n=Math.floor(e);const r=[];for(;n<=i;)r.push(n),n+=t;return r}getTickPositions(t){const{vertical:e,reverse:s}=this.options,{scale:i,box:n,min:r}=this.scaleOptions(),a=n[(e?P:D)+(s?2:1)],c=this.tickIndices(t),h=[];for(let d=0;d<c.length;d++)h.push(a+k(i*(c[d]-r),3));return h}getTicks(){const t=this.options,e=this._ticks,s=this.rangeIndices(),i=this.lineBox(),n=i.getHash()+s.min+","+s.max+t.reverse+t.justified;if(e._hash!==n){const r=t.minorTicks.visible||t.minorGridLines.visible;e._hash=n,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,i),e.minorTicks=r?this.filterOutOfRangePositions(this.getTickPositions(.5),i):[]}return e}filterOutOfRangePositions(t,e){if(!t.length)return t;const s=this.options.vertical?P:D,i=c=>e[s+1]<=c&&c<=e[s+2],n=t.length-1;let r=0;for(;!i(t[r])&&r<=n;)r++;let a=n;for(;!i(t[a])&&a>=0;)a--;return t.slice(r,a+1)}lineInfo(){const{vertical:t,reverse:e}=this.options,s=this.lineBox(),i=t?s.height():s.width(),n=t?P:D,r=e?-1:1,c=n+(1===r?1:2).toString();return{axis:n,axisOrigin:c,axisDir:r,lineBox:s,lineSize:i,lineStart:s[c]}}lineDir(){const{reverse:t}=this.options;return t?-1:1}getSlot(t,e,s){const i=this.options,{reverse:n,justified:r}=i,{scale:a,box:c,min:h}=this.scaleOptions(),{axis:d,lineStart:u}=this.lineInfo(),p=c.clone(),f=!_(e),g=O(t,0);let m=O(e,g);m=Math.max(m-1,g),m=Math.max(g,m);let v=u+(g-h)*a,y=u+(m+1-h)*a;return f&&r&&(y=v),s&&(v=I(v,c[d+1],c[d+2]),y=I(y,c[d+1],c[d+2])),p[d+1]=n?y:v,p[d+2]=n?v:y,p}limitSlot(t){const s=this.options.vertical?P:D,i=this.lineBox(),n=t.clone();return n[s+1]=I(t[s+1],i[s+1],i[s+2]),n[s+2]=I(t[s+2],i[s+1],i[s+2]),n}slot(t,e,s){const i=Math.floor(this.options.min||0);let n=t,r=e;return"string"==typeof n?n=this.categoryIndex(n):G(n)&&(n-=i),"string"==typeof r?r=this.categoryIndex(r):G(r)&&(r-=i),super.slot(n,r,s)}pointCategoryIndex(t){const{reverse:e,justified:s,vertical:i}=this.options,n=i?P:D,{scale:r,box:a,min:c,max:h}=this.scaleOptions(),u=a[n+1],f=t[n];if(f<u||f>a[n+2])return null;let g=(e?h:c)+(f-u)/r;const m=g%1;return s?g=Math.round(g):0===m&&g>0&&g--,Math.floor(g)}getCategory(t){const e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]}categoryIndex(t){return this.totalIndex(t)-Math.floor(this.options.min||0)}categoryAt(t,e){const s=this.options;return(e?s.srcCategories:s.categories)[t]}categoriesCount(){return(this.options.categories||[]).length}translateRange(t){const e=this.options,s=this.lineBox(),i=e.vertical?s.height():s.width(),n=e.categories.length,a=k(t/(i/n),10);return{min:a,max:n+a}}scaleRange(t,e){const s=Math.abs(this.pointOffset(e)),i=this.limitedRangeIndices(),r=this.scaleToDelta(t,i.max-i.min),h=i.min+s*r;let d=i.max-(1-s)*r;return d-h<.1&&(d=h+.1),{min:h,max:d}}zoomRange(t,e){const{min:s,max:i}=this.totalRange(),n=this.scaleRange(t,e);return{min:I(n.min,s,i),max:I(n.max,s,i)}}labelsCount(){const t=this.labelsRange();return t.max-t.min}labelsRange(){const t=this.options,{justified:e,labels:s}=t;let{min:i,max:n}=this.limitedRangeIndices(!0);const r=Math.floor(i);let a;return e?(i=Math.ceil(i),n=Math.floor(n)):(i=Math.floor(i),n=Math.ceil(n)),a=i>s.skip?s.skip+s.step*Math.ceil((i-s.skip)/s.step):s.skip,{min:a-r,max:(t.categories.length?n+(e?1:0):0)-r}}createAxisLabel(t,e,s){const i=this.options,n=i.dataItems?i.dataItems[t]:null,r=O(i.categories[t],"");s.dataItem=n;const a=this.axisLabelText(r,e,s);return new Ms(r,a,t,n,e)}shouldRenderNote(t){const e=this.limitedRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)}noteSlot(t){const s=t-Math.floor(this.options.min||0);
1return this.getSlot(s)}arrangeNotes(){super.arrangeNotes(),this.hideOutOfRangeNotes()}hideOutOfRangeNotes(){const{notes:t,box:e}=this;if(t&&t.length){const s=this.options.vertical?P:D,i=e[s+1],n=e[s+2];for(let r=0;r<t.length;r++){const a=t[r];a.box&&(n<a.box[s+1]||a.box[s+2]<i)&&a.hide()}}}pan(t){const e=this.limitedRangeIndices(!0),{scale:s}=this.scaleOptions(),i=k(t/s,10),n=this.totalRange();return this.limitRange(e.min+i,e.max+i,0,n.max,i)}pointsRange(t,e){const{reverse:s,vertical:i}=this.options,n=i?P:D,r=this.limitedRangeIndices(!0),{scale:a,box:c}=this.scaleOptions(),h=c[n+(s?2:1)],p=r.min+(t[n]-h)/a,f=r.min+(e[n]-h)/a,g=Math.min(p,f),m=Math.max(p,f);if(m-g>=.01)return{min:g,max:m}}valueRange(){return this.range()}totalIndex(t){const e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function $b(o,t){if(o instanceof Date){const e=t.length;for(let s=0;s<e;s++)if(Jo(t[s],o))return s;return-1}return t.indexOf(o)}(t,e.srcCategories)}currentRangeIndices(){const t=this.options;let s,e=0;return G(t.min)&&(e=Math.floor(t.min)),s=G(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1,{min:e,max:s}}limitedRangeIndices(t){const e=this.options;let i,s=G(e.min)?e.min:0;if(i=G(e.max)?e.max:G(e.min)?s+e.categories.length:this.totalRange().max||1,t){const n=this.totalRange();s=I(s,0,n.max),i=I(i,0,n.max)}return{min:s,max:i}}totalRangeIndices(){return{min:0,max:this.totalRange().max||1}}indexCategories(){if(!this._categoriesMap){const t=this._categoriesMap=new by,e=this.options.srcCategories;for(let s=0;s<e.length;
1s++)t.set(e[s],s)}}totalCount(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)}}w(tr,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:pt},labels:{zIndex:1},justified:!1,_deferLabels:!0});const Ie=tr,Ou={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},Re=[Zo,kl,Tl,fn,_e,mn,Es,Pe],er="fit";function sr(o,t){t&&(o._range=void 0);let e=o._range;return e||(e=o._range=pl(o),e.min=nt(e.min),e.max=nt(e.max)),e}class Qb{constructor(t){this.options=t}displayIndices(){return{min:0,max:1}}displayRange(){return{}}total(){return{}}valueRange(){return{}}valueIndex(){return-1}values(){return[]}totalIndex(){return-1}valuesCount(){return 0}totalCount(){return 0}dateAt(){return null}}class Bl{constructor(t,e,s){this.options=s,s.baseUnitStep=s.baseUnitStep||1;const{roundToBaseUnit:i,justified:n}=s;this.start=It(t,0,s.baseUnit,s.weekStartDay);const r=this.roundToTotalStep(e),a=!n&&Jo(e,r)&&!s.justifyEnd;this.end=this.roundToTotalStep(e,!n,a?1:0);const c=s.min||t;this.valueStart=this.roundToTotalStep(c),this.displayStart=i?this.valueStart:c;const h=s.max;if(h){const d=!n&&Jo(h,this.roundToTotalStep(h))?-1:0;this.valueEnd=this.roundToTotalStep(h,!1,d),this.displayEnd=i?this.roundToTotalStep(h,!n):s.max}else this.valueEnd=r,this.displayEnd=i||a?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))}displayRange(){return{min:this.displayStart,max:this.displayEnd}}displayIndices(){if(!this._indices){const t=this.options,{baseUnit:e,baseUnitStep:s}=t,i=Ds(this.displayStart,this.valueStart,e,s),n=Ds(this.displayEnd,this.valueStart,e,s);this._indices={min:i,max:n}}return this._indices}total(){return{min:this.start,max:this.end}}totalCount(){return this.totalIndex(this.end)+(this.options.justified?1:0)}valueRange(){return{min:this.valueStart,max:this.valueEnd}}valueIndex(t){const e=this.options;return Math.floor(Ds(t,this.valueStart,e.baseUnit,e.baseUnitStep))}totalIndex(t){const e=this.options;return Math.floor(Ds(t,this.start,e.baseUnit,e.baseUnitStep))}dateIndex(t){const e=this.options;return Ds(t,this.valueStart,e.baseUnit,e.baseUnitStep)}valuesCount(){return this.valueIndex(this.valueEnd)+1}values(){let t=this._values;if(!t){const e=this.options,s=this.valueRange();this._values=t=[];for(let i=s.min;i<=s.max;)t.push(i),i=It(i,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t}dateAt(t,e){const s=this.options;return It(e?this.start:this.valueStart,s.baseUnitStep*t,s.baseUnit,s.weekStartDay)}roundToTotalStep(t,e,s){const{baseUnit:i,baseUnitStep:n,weekStartDay:r}=this.options,a=this.start,c=Ds(t,a,i,n);let h=e?Math.ceil(c):Math.floor(c);return s&&(h+=s),It(a,h*n,i,r)}}function Fu(o,t,e){const s=sr(o.categories),i=(o.max||s.max)-(o.min||s.min),{autoBaseUnitSteps:n,maxDateGroups:r}=o,a=o.baseUnit===er;let p,f,g,c=t?Re.indexOf(t):0,h=a?Re[c++]:o.baseUnit,d=i/Ce[h],u=d;for(;!f||d>=r;){p=p||n[h].slice(0);do{g=p.shift()}while(g&&t===h&&g<e);if(g)f=g,d=u/f;else{if(h===mt(Re)){f=Math.ceil(u/r);break}if(!a){d>r&&(f=Math.ceil(u/r));break}h=Re[c++]||mt(Re),u=i/Ce[h],p=null}}o.baseUnitStep=f,o.baseUnit=h}class ir extends Ie{clone(){const t=new ir(Object.assign({},this.options),this.chartService);return t.createLabels(),t}categoriesHash(){const t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t}initUserOptions(t){return t}initFields(){super.initFields();const t=this.chartService,e=t.intl;let s=this.options,i=s.categories||[];if(i._parsed||(i=Lu(e,i),i._parsed=!0),s=x({roundToBaseUnit:!0},s,{categories:i,min:Pt(e,s.min),max:Pt(e,s.max),weekStartDay:Iu(s,e)}),t.panning&&t.isPannable(s.vertical?P:D)&&(s.roundToBaseUnit=!1),s.userSetBaseUnit=s.userSetBaseUnit||s.baseUnit,s.userSetBaseUnitStep=s.userSetBaseUnitStep||s.baseUnitStep,this.options=s,s.srcCategories=i,i.length>0){const n=sr(i,!0),r=s.maxDivisions,a=function qb(o){const t=(o.baseUnit||"").toLowerCase();return t!==er&&!N(t,Re)&&function Kb(o){const t=o.categories,e=_(t)?t.length:0;let i,n,s=ft;for(let r=0;r<e;r++){const a=t[r];if(a&&i){let c=Math.abs(Ll(a,i));0!==c&&(s=Math.min(s,c),n=s>=Pl?Pe:s>=Dl-3*Le?Es:s>=El?mn:s>=Le?_e:s>=Qo?fn:s>=pi?Tl:kl)}i=a}o.baseUnit=n||_e}(o),(t===er||"auto"===o.baseUnitStep)&&Fu(o),o}(s),c=s._forecast;if(c&&(c.before>0&&(n.min=It(n.min,-c.before,a.baseUnit,a.weekStartDay)),c.after>
10&&(n.max=It(n.max,c.after,a.baseUnit,a.weekStartDay))),this.dataRange=new Bl(n.min,n.max,a),r){const h=this.dataRange.displayRange(),d=Object.assign({},s,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:h.min,max:h.max,maxDateGroups:r}),u=this.dataRange.options;Fu(d,u.baseUnit,u.baseUnitStep),this.divisionRange=new Bl(n.min,n.max,d)}else this.divisionRange=this.dataRange}else s.baseUnit=s.baseUnit||_e,this.dataRange=this.divisionRange=new Qb(s);this.rangeLabels=[]}tickIndices(t){const{dataRange:e,divisionRange:s}=this,i=s.valuesCount();if(!this.options.maxDivisions||!i)return super.tickIndices(t);const n=[];let r=s.values(),a=0;this.options.justified||(r=r.concat(s.dateAt(i)),a=.5);for(let c=0;c<r.length;c++)if(n.push(e.dateIndex(r[c])+a),1!==t&&c>=1){const h=n.length-1;n.splice(c,0,n[h-1]+(n[h]-n[h-1])*t)}return n}shouldRenderNote(t){const e=this.range(),s=this.options.categories||[];return qo(t,e.min)>=0&&qo(t,e.max)<=0&&s.length}parseNoteValue(t){return Pt(this.chartService.intl,t)}noteSlot(t){return this.getSlot(t)}translateRange(t){const e=this.options,{baseUnit:s,weekStartDay:i,vertical:n}=e,r=this.lineBox(),a=n?r.height():r.width();let c=this.range();const d=k(t/(a/(c.max-c.min)),10);if(c.min&&c.max){const u=Tt(e.min||c.min,d),p=Tt(e.max||c.max,d);c={min:It(u,0,s,i),max:It(p,0,s,i)}}return c}labelsRange(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}}pan(t){if(this.isEmpty())return null;const e=this.options,s=this.lineBox(),i=e.vertical?s.height():s.width(),{min:n,max:r}=this.dataRange.displayRange(),a=this.dataRange.total(),h=k(t/(i/(r-n)),10)*(e.reverse?-1:1),d=Tt(n,h),u=Tt(r,h),p=this.limitRange(ot(d),ot(u),ot(a.min),ot(a.max),h);return p?(p.min=nt(p.min),p.max=nt(p.max),p.baseUnit=e.baseUnit,p.baseUnitStep=e.baseUnitStep||1,p.userSetBaseUnit=e.userSetBaseUnit,p.userSetBaseUnitStep=e.userSetBaseUnitStep,p):void 0}pointsRange(t,e){if(this.isEmpty())return null;const s=super.pointsRange(t,e),i=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),r=we(i.max,i.min)/(n.max-n.min),a=this.options;return{min:Tt(i.min,s.min*r),max:Tt(i.min,s.max*r),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}}scaleRange(t,e){if(this.isEmpty())return{};const s=this.options,i=s.userSetBaseUnit===er,n=this.dataRange.total(),{min:r,max:a}=this.dataRange.displayRange(),c=Math.abs(this.pointOffset(e)),d=this.scaleToDelta(t,a-r),u=Math.round(c*d),p=Math.round((1-c)*d);let{baseUnit:f}=this.dataRange.options,g=new Date(r.getTime()+u),m=new Date(a.getTime()-p);if(i){const{autoBaseUnitSteps:v,maxDateGroups:y}=s,C=mt(v[f])*y*Ce[f],M=we(a,r),R=we(m,g);let st,Z,B=Re.indexOf(f);if(R<Ce[f]&&f!==Zo)f=Re[B-1],st=mt(v[f]),Z=(M-(y-1)*st*Ce[f])/2,g=Tt(r,Z),m=Tt(a,-Z);else if(R>C&&f!==Pe){let Q=0;do{B++,f=Re[B],Q=0,Z=2*Ce[f];do{st=v[f][Q],Q++}while(Q<v[f].length&&Z*st<M)}while(f!==Pe&&Z*st<M);Z=(Z*st-M)/2,Z>0&&(g=Tt(r,-Z),m=Tt(a,Z),g=Tt(g,I(m,n.min,n.max)-m),m=Tt(m,I(g,n.min,n.max)-g))}}return g&&m&&we(m,g)>0?{min:g,max:m,baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.baseUnitStep}:void 0}zoomRange(t,e){const s=this.dataRange.total(),i=this.scaleRange(t,e);return i&&(i.min<s.min&&(i.min=s.min),i.max>s.max&&(i.max=s.max)),i}range(){return this.dataRange.displayRange()}createLabels(){super.createLabels(),this.createRangeLabels()}clearLabels(){super.clearLabels(),this.rangeLabels=[]}arrangeLabels(){this.arrangeRangeLabels(),super.arrangeLabels()}arrangeRangeLabels(){const{options:t,rangeLabels:e}=this;if(0===e.length)return;const s=this.lineBox(),i=t.vertical,n=t.rangeLabels.mirror||t.labels.mirror,r=e[0];if(r){const c=i?s.y1-r.box.height()/2:s.x1;this.positionLabel(r,n,c)}const a=e[1];if(a){const c=i?s.y2-a.box.height()/2:s.x2;this.positionLabel(a,n,c)}}autoRotateLabels(){super.autoRotateLabels(),this.autoRotateRangeLabels()}hideOutOfRangeLabels(){super.hideOutOfRangeLabels(),this.hideOverlappingLabels()}hideOverlappingLabels(){const{rangeLabels:t,labels:e}=this;if(0===t.length)return;function s(r,a){return!(a.options.visible&&!a.box.overlaps(r.box)||(a.options.visible=!1,0))}const i=t[0];if(i&&i.options.visible)for(let r=0;r<e.length&&s(i,e[r]);r++);const n=t[1];if(n&&n.options.visible)for(let r=e.length-1;r>0&&s(n,e[r]);--r);}contentBox(){const t=super.contentBox(),e=this.rangeLabels;for(let s=0;s<e.length;s++){const i=e[s];i.options.visible&&t.wrap(i.box)}return t}createAxisLabel(t,e,s={}){const i=this.options,n=i.dataItems&&!i.maxDivisions?i.dataItems[t]:null,r=this.divisionRange.dateAt(t);e.format=e.format||e.dateFormats[this.divisionRange.options.baseUnit],s.dataItem=n;const c=this.axisLabelText(r,e,s);if(c)return new Ms(r,c,t,n,e)}createRangeLabels(){const{displayStart:t,displayEnd:e}=this.divisionRange,s=this.options,i=Object.assign({},s.labels,s.rangeLabels,{align:F,zIndex:s.zIndex});if(!0!==i.visible)return;this.normalizeLabelRotation(i),i.alignRotation=F,"auto"===i.rotation&&(i.rotation=0,s.autoRotateRangeLabels=!0),i.format=i.format||i.dateFormats[this.divisionRange.options.baseUnit];const r=(h,d,u)=>{if(u){const p=new Ms(d,u,h,null,i);this.append(p),this.rangeLabels.push(p)}};r(0,t,this.axisLabelText(t,i,{index:0,count:2})),r(1,e,this.axisLabelText(e,i,{index:1,count:2}))}autoRotateRangeLabels(){const t=this.rangeLabels;if(!this.options.autoRotateRangeLabels||this.options.vertical||2!==t.length)return;const e=(i,n,r)=>
1{const a=2*Math.abs(n[r+1]-n[r]),c=this.autoRotateLabelAngle(i.box,a);0!==c&&(i.options.rotation=c,i.reflow(new A))},s=this.getMajorTickPositions();e(t[0],s,0),e(t[1],s,s.length-2)}categoryIndex(t){return this.dataRange.valueIndex(t)}slot(t,e,s){const i=this.dataRange;let n=t,r=e;n instanceof Date&&(n=i.dateIndex(n)),r instanceof Date&&(r=i.dateIndex(r));const a=this.getSlot(n,r,s);if(a)return a.toRect()}getSlot(t,e,s){let i=t,n=e;return typeof i===nn&&(i=this.categoryIndex(i)),typeof n===nn&&(n=this.categoryIndex(n)),super.getSlot(i,n,s)}valueRange(){const e=sr(this.options.srcCategories);return{min:nt(e.min),max:nt(e.max)}}categoryAt(t,e){return this.dataRange.dateAt(t,e)}categoriesCount(){return this.dataRange.valuesCount()}rangeIndices(){return this.dataRange.displayIndices()}labelsBetweenTicks(){return!this.divisionRange.options.justified}prepareUserOptions(){this.isEmpty()||(this.options.categories=this.dataRange.values())}getCategory(t){const e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)}totalIndex(t){return this.dataRange.totalIndex(t)}currentRangeIndices(){const t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}}totalRange(){return this.dataRange.total()}totalRangeIndices(){const t=this.dataRange.total();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}}totalCount(){return this.dataRange.totalCount()}isEmpty(){return!this.options.srcCategories.length}roundedRange(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();const t=this.options,e=sr(t.srcCategories);return new Bl(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:!1})).displayRange()}}w(ir,{type:Me,labels:{dateFormats:Ou},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});const xn=ir;function Nu(o,t){return k(Math.floor(o/t)*t,10)}function nr(o,t){return k(Math.ceil(o/t)*t,10)}function or(o){return Math.max(Math.min(o,3e5),-3e5)}const Ol=Math.pow(10,-9);class rr extends gn{constructor(t,e,s,i){super(Object.assign({},s,{seriesMin:t,seriesMax:e}),i)}initUserOptions(t){const e=function e_(o,t,e){const s=e.narrowRange;let i=function Jb(o,t,e){if(!o&&!t)return 0;let s;if(o>=0&&t>=0){const i=o===t?0:o;if(!1===e||!e&&(t-i)/t>.2)return 0;s=Math.max(0,i-(t-i)/2)}else s=o;return s}(o,t,s),n=function t_(o,t,e){if(!o&&!t)return 1;let s;if(o<=0&&t<=0){const i=o===t?0:t;let n=Math.abs((i-o)/i);if(!1===e||!e&&n>.2)return 0;s=Math.min(0,i-(o-i)/2)}else s=t;return s}(o,t,s);const r=hi(i,n),a={majorUnit:r};return!1!==e.roundToMajorUnit&&(i<0&&zu(i,r,1/3)&&(i-=r),n>0&&zu(n,r,1/3)&&(n+=r)),a.min=Nu(i,r),a.max=nr(n,r),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function s_(o,t){return{min:_(t.min)?Math.min(o.min,t.min):o.min,max:_(t.max)?Math.max(o.max,t.max):o.max,majorUnit:o.majorUnit}}(e,t),function n_(o,t){let s,i,e=t;if(t){(function i_(o,t){for(let e=0;e<t.length;e++){const s=t[e];null===o[s]&&(o[s]=void 0)}})(t,["min","max"]),s=_(t.min),i=_(t.max);const r=s||i;r&&t.min===t.max&&(t.min>0?t.min=0:t.max=1),t.majorUnit?(o.min=Nu(o.min,t.majorUnit),o.max=nr(o.max,t.majorUnit)):r&&(e=x(o,t),o.majorUnit=hi(e.min,e.max))}o.minorUnit=(e.majorUnit||o.majorUnit)/5;const n=x(o,e);return n.min>=n.max&&(s&&!i?n.max=n.min+n.majorUnit:!s&&i&&(n.min=n.max-n.majorUnit)),n}(e,t)}initFields(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax}clone(){return new rr(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}startValue(){return 0}range(){const t=this.options;return{min:t.min,max:t.max}}getDivisions(t){if(0===t)return 1;const e=this.options;return Math.floor(k((e.max-e.min)/t,3))+1}getTickPositions(t,e){const s=this.options,{axisDir:i,axisOrigin:n,lineBox:r,lineSize:a}=this.lineInfo(),d=t*(a/(s.max-s.min)),u=this.getDivisions(t),p=[];let f=r[n],g=0;e&&(g=e/t);for(let m=0;m<u;m++)m%g!=0&&p.push(k(f,3)),f+=d*i;return p}getMajorTickPositions(){return this.getTickPositions(this.options.majorUnit)}getMinorTickPositions(){return this.getTickPositions(this.options.minorUnit)}getSlot(t,e,s=!1){const i=this.options,{axis:n,axisDir:r,lineBox:a,lineSize:c,lineStart:h}=this.lineInfo(),d=r*(c/(i.max-i.min));let u=O(t,e||0),p=O(e,t||0);s&&(u=I(u,i.min,i.max),p=I(p,i.min,i.max));const f=Math.min(u,p)-i.min,g=Math.max(u,p)-i.min,m=new A(a.x1,a.y1,a.x1,a.y1);return m[n+1]=or(h+d*(r>0?f:g)),m[n+2]=or(h+d*(r>0?g:f)),m}getValue(t){const e=this.options,s=Number(e.max),i=Number(e.min),n=this.pointOffset(t);return n<0||n>1?null:k(i+n*(s-i),10)}translateRange(t){const e=this.options,{vertical:s,reverse:i,max:n,min:r}=e,{lineSize:a}=this.lineInfo();let d=k(t/(a/(n-r)),10);return(s||i)&&!(s&&i)&&(d=-d),{min:r+d,max:n+d,offset:d}}labelsCount(){return this.getDivisions(this.options.majorUnit)}createAxisLabel(t,e,s){const i=this.options,n=k(i.min+t*i.majorUnit,10),r=this.axisLabelText(n,e,s);return new Ms(n,r,t,null,e)}shouldRenderNote(t){const e=this.range();return e.min<=t&&t<=e.max}pan(t){const e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)}pointsRange(t,e){const s=this.getValue(t),i=this.getValue(e),n=Math.min(s,i),r
1=Math.max(s,i);if(this.isValidRange(n,r))return{min:n,max:r}}scaleRange(t,e){const s=Math.abs(this.pointOffset(e)),n=this.scaleToDelta(t,this.options.max-this.options.min),a=(1-s)*n,c=k(this.options.min+s*n,10);let h=k(this.options.max-a,10);return h-c<Ol&&(h=c+Ol),{min:c,max:h}}zoomRange(t,e){const{totalMin:s,totalMax:i}=this,n=this.scaleRange(t,e);return{min:I(n.min,s,i),max:I(n.max,s,i),narrowRange:!1}}isValidRange(t,e){return e-t>Ol}}function zu(o,t,e){const s=k(Math.abs(o%t),10);return 0===s||s>t*(1-e)}w(rr,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:pt},labels:{format:"#.####################"},zIndex:1});const ne=rr;class ar extends gn{constructor(t,e,s,i){const n=nt(t),r=nt(e),a=i.intl;let c=s||{};c=x(c||{},{min:Pt(a,c.min),max:Pt(a,c.max),axisCrossingValue:Lu(a,c.axisCrossingValues||c.axisCrossingValue),weekStartDay:Iu(c,a)}),c=function r_(o,t,e){const s=e.min||o,i=e.max||t,n=e.baseUnit||(i&&s?function o_(o){let t=fn;return o>=Pl?t=Pe:o>=Dl?t=Es:o>=El?t=mn:o>=Le&&(t=_e),t}(Ll(i,s)):fn),r=Ce[n],a=e.weekStartDay||0,c=Il(ot(s)-1,n,a)||nt(i),h=Du(ot(i)+1,n,a),u=(e.majorUnit?e.majorUnit:void 0)||nr(hi(c.getTime(),h.getTime()),r)/r,p=Rl(c,h,n),g=nr(p,u)-p,m=Math.floor(g/2),v=g-m;return e.baseUnit||delete e.baseUnit,e.baseUnit=e.baseUnit||n,e.min=e.min||It(c,-m,n,a),e.max=e.max||It(h,v,n,a),e.minorUnit=e.minorUnit||u/5,e.majorUnit=u,e}(n,r,c),super(c,i),this.intlService=a,this.seriesMin=n,this.seriesMax=r;const h=c.weekStartDay||0;this.totalMin=ot(Il(ot(n)-1,c.baseUnit,h)),this.totalMax=ot(Du(ot(r)+1,c.baseUnit,h))}clone(){return new ar(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}range(){const t=this.options;return{min:t.min,max:t.max}}getDivisions(t){const e=this.options;return Math.floor(Rl(e.min,e.max,e.baseUnit)/t+1)}getTickPositions(t){const e=this.options,{axisDir:s,lineSize:i,lineStart:n}=this.lineInfo(),r=this.getDivisions(t),c=i/we(e.max,e.min),h=e.weekStartDay||0,d=[n];for(let u=1;u<r;u++){const f=n+we(It(e.min,u*t,e.baseUnit,h),e.min)*c*s;d.push(k(f,3))}return d}getMajorTickPositions(){return this.getTickPositions(this.options.majorUnit)}getMinorTickPositions(){return this.getTickPositions(this.options.minorUnit)}getSlot(t,e,s){return ne.prototype.getSlot.call(this,Pt(this.intlService,t),Pt(this.intlService,e),s)}getValue(t){const e=ne.prototype.getValue.call(this,t);return null!==e?nt(e):null}labelsCount(){return this.getDivisions(this.options.majorUnit)}createAxisLabel(t,e,s){const i=this.options,n=t*i.majorUnit;let a=i.min;n>0&&(a=It(a,n,i.baseUnit,i.weekStartDay||0)),e.format=e.format||e.dateFormats[i.baseUnit];const h=this.axisLabelText(a,e,s);return new Ms(a,h,t,null,e)}translateRange(t){const e=this.options,s=this.lineBox(),{vertical:i,reverse:n}=e,r=i?s.height():s.width(),a=this.range(),c=r/we(a.max,a.min);let h=k(t/c,10);return(i||n)&&(!i||!n)&&(h=-h),{min:Tt(e.min,h),max:Tt(e.max,h),offset:h}}shouldRenderNote(t){const e=this.range();return qo(t,e.min)>=0&&qo(t,e.max)<=0}pan(t){const e=this.translateRange(t,!0),s=this.limitRange(ot(e.min),ot(e.max),this.totalMin,this.totalMax,e.offset);if(s)return{min:nt(s.min),max:nt(s.max)}}pointsRange(t,e){const s=this.getValue(t),i=this.getValue(e),n=Math.min(s,i),r=Math.max(s,i);return{min:nt(n),max:nt(r)}}scaleRange(t,e){const s=Math.abs(this.pointOffset(e)),n=this.scaleToDelta(t,this.options.max-this.options.min),r=s*n,a=(1-s)*n,c=nt(ot(this.options.min)+r);let h=nt(ot(this.options.max)-a);return h-c<1e3&&(h=nt(ot(c)+1e3)),{min:c,max:h}}zoomRange(t,e){const s=this.scaleRange(t,e);return{min:nt(I(ot(s.min),this.totalMin,this.totalMax)),max:nt(I(ot(s.max),this.totalMin,this.totalMax))}}}w(ar,{type:Me,majorGridLines:{visible:!0,width:1,color:pt},labels:{dateFormats:Ou}});const Hu=ar;class lr extends gn{constructor(t,e,s,i){const n=x({majorUnit:10,min:t,max:e},s),r=n.majorUnit,a=function c_(o,t){const e=k(le(o,t),10)%1;let s;return s=o<=0?t:0!==e&&(e<.3||e>.9)?Math.pow(t,le(o,t)+.2):Math.pow(t,Math.ceil(le(o,t))),s}(e,r),c=function l_(o,t,e){const s=e.majorUnit;let i=o;return o<=0?i=t<=1?Math.pow(s,-2):1:e.narrowRange||(i=Math.pow(s,Math.floor(le(o,s)))),i}(t,e,n),h=function a_(o,t,e,s){let{min:i,max:n}=e;return _(e.axisCrossingValue)&&e.axisCrossingValue<=0&&Vl(),_(s.max)?s.max<=0&&Vl():n=t,_(s.min)?s.min<=0&&Vl():i=o,{min:i,max:n}}(c,a,n,s);n.max=h.max,n.min=h.min,n.minorUnit=s.minorUnit||k(r-1,10),super(n,i),this.totalMin=_(s.min)?Math.min(c,s.min):c,this.totalMax=_(s.max)?Math.max(a,s.max):a,this.logMin=k(le(h.min,r),10),this.logMax=k(le(h.max,r),10),this.seriesMin=t,this.seriesMax=e,this.createLabels()}clone(){return new lr(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}startValue(){return this.options.min}getSlot(t,e,s){const{options:i,logMin:n,logMax:r}=this,{majorUnit:a,min:c,max:h}=i,{axis:d,axisDir:u,lineBox:p,lineSize:f,lineStart:g}=this.lineInfo(),m=u*(f/(r-n));let v=O(t,e||1),y=O(e,t||1);if(v<=0||y<=0)return null;s&&(v=I(v,c,h),y=I(y,c,h)),v=le(v,a),y=le(y,a);const C=Math.min(v,y)-n,M=Math.max(v,y)-n,R=new A(p.x1,p.y1,p.x1,p.y1);return R[d+1]=or(g+m*(u>0?C:M)),R[d+2]=or(g+m*(u>0?M:C)),R}getValue(t){const{options:e,logMin:s,logMax:i}=this,{majorUnit:n}=e,{axis:r,axisDir:a,lineStart:c,lineSize:h}=this.lineInfo(),u=a*(t[r]-c);return u<0||u>h?null:k(Math.pow(n,s+u*((i-s)/h)),10)}range(){const t=this.options;return{min:t.min,max:t.max}}translateRange(t){const{options:e,logMin:s,logMax:i}=this,{reverse:n,vertical:r,majorUnit:a}=e,c=this.lineBox(),d=(r?c.height():c.width())/(i-s);let u=k(t/d,10);return(r||n)&&!(r&&n)&&(u=-u),{min:Math.pow(a,s+u),max:Math.pow(a,i+u),offset:u}}labelsCount(){const t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1}getMajorTickPositions(){const t=[];return this.traverseMajorTicksPositions(e=>{t.push(e)},{step:1,skip:0}),t}createTicks(t){const e=this.options,{majorTicks:s,minorTicks:i,vertical:n}=e,r=e.labels.mirror,a=this.lineBox(),h={vertical:n};function d(u,p){h.tickX=r?a.x2:a.x2-p.size,h.tickY=r?a.y1-p.size:a.y1,h.position=u,t.append(Tu(h,p))}return s.visible&&this.traverseMajorTicksPositions(d,s),i.visible&&this.traverseMinorTicksPositions(d,i),[]}createGridLines(t){const e=this.options,{minorGridLines:s,majorGridLines:i,vertical:n}=e,r=t.lineBox(),a={lineStart:r[n?"x1":"y1"],lineEnd:r[n?"x2":"y2"],vertical:n},c=[],h=this.gridLinesVisual();
1function d(u,p){N(u,c)||(a.position=u,h.append(Mu(a,p)),c.push(u))}return i.visible&&this.traverseMajorTicksPositions(d,i),s.visible&&this.traverseMinorTicksPositions(d,s),h.children}traverseMajorTicksPositions(t,e){const{lineStart:s,step:i}=this.lineInfo(),{logMin:n,logMax:r}=this;for(let a=Math.ceil(n)+e.skip;a<=r;a+=e.step)t(k(s+i*(a-n),10),e)}traverseMinorTicksPositions(t,e){const{min:s,max:i,minorUnit:n,majorUnit:r}=this.options,{lineStart:a,step:c}=this.lineInfo(),{logMin:h,logMax:d}=this;for(let p=Math.floor(h);p<d;p++){const f=this._minorIntervalOptions(p);for(let g=e.skip;g<n;g+=e.step){const m=f.value+g*f.minorStep;if(m>i)break;m>=s&&t(k(a+c*(le(m,r)-h),10),e)}}}createAxisLabel(t,e,s){const i=Math.ceil(this.logMin+t),n=Math.pow(this.options.majorUnit,i),r=this.axisLabelText(n,e,s);return new Ms(n,r,t,null,e)}shouldRenderNote(t){const e=this.range();return e.min<=t&&t<=e.max}pan(t){const e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)}pointsRange(t,e){const s=this.getValue(t),i=this.getValue(e);return{min:Math.min(s,i),max:Math.max(s,i)}}scaleRange(t,e){const{majorUnit:s}=this.options,i=le(this.options.min,s),n=le(this.options.max,s),r=Math.abs(this.pointOffset(e)),c=this.scaleToDelta(t,n-i),h=Math.pow(s,i+r*c);let d=Math.pow(s,n-(1-r)*c);return d-h<1e-6&&(d=h+1e-6),{min:h,max:d}}zoomRange(t,e){const s=this.scaleRange(t,e),{totalMin:i,totalMax:n}=this;return{min:I(s.min,i,n),max:I(s.max,i,n)}}_minorIntervalOptions(t){const{minorUnit:e,majorUnit:s}=this.options,i=Math.pow(s,t);return{value:i,minorStep:(Math.pow(s,t+1)-i)/e}}lineInfo(){const t=super.lineInfo();return t.step=t.axisDir*(t.lineSize/(this.logMax-this.logMin)),t}}function Vl(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function le(o,t){return Math.log(o)/Math.log(t)}w(lr,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:pt},zIndex:1,_deferLabels:!0});const cr=lr,Xu={createGridLines:function(o){const t=this.options,e=Math.abs(this.box.center().y-o.lineBox().y1);let n,r,s=[],i=!1;return t.majorGridLines.visible&&(n=this.majorGridLineAngles(o),i=!0,s=this.renderMajorGridLines(n,e,t.majorGridLines)),t.minorGridLines.visible&&(r=this.minorGridLineAngles(o,i),ks(s,this.renderMinorGridLines(r,e,t.minorGridLines,o,i))),s},renderMajorGridLines:function(o,t,e){return this.renderGridLines(o,t,e)},renderMinorGridLines:function(o,t,e,s,i){const n=this.radiusCallback&&this.radiusCallback(t,s,i);return this.renderGridLines(o,t,e,n)},renderGridLines:function(o,t,e,s){const i={stroke:{width:e.width,color:e.color,dashType:e.dashType}},n=this.box.center(),r=new se.A([n.x,n.y],t),a=this.gridLinesVisual();for(let c=0;c<o.length;c++){const h=new E.w(i);s&&(r.radius=s(o[c])),h.moveTo(r.center).lineTo(r.pointAt(o[c]+180)),a.append(h)}return a.children},gridLineAngles:function(o,t,e,s,i){const n=this.intervals(t,e,s,i),r=o.options,a=r.visible&&!1!==(r.line||{}).visible;return Pd(n,c=>{const h=this.intervalAngle(c);if(!a||90!==h)return h})}};class Fl extends Ie{range(){return{min:0,max:this.options.categories.length}}reflow(t){this.box=t,this.reflowLabels()}lineBox(){return this.box}reflowLabels(){const{labels:t,options:{labels:e}}=this,s=e.skip||0,i=e.step||1,n=new A;for(let r=0;r<t.length;r++){t[r].reflow(n);const a=t[r].box;t[r].reflow(this.getSlot(s+r*i).adjacentBox(0,a.width(),a.height()))}}intervals(t,e,s,i=!1){const n=this.options,a=n.categories.length/t||1,c=360/a,d=s||1,u=[];let p=0;for(let f=e||0;f<a;f+=d)p=n.reverse?360-f*c:f*c,p=k(p,3)%360,i&&N(p,i)||u.push(p);return u}majorIntervals(){return this.intervals(1)}minorIntervals(){return this.intervals(.5)}intervalAngle(t){return(360+t+this.options.startAngle)%360}majorAngles(){return Pd(this.majorIntervals(),t=>this.intervalAngle(t))}createLine(){return[]}majorGridLineAngles(t){const e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)}minorGridLineAngles(t,e){const{minorGridLines:s,majorGridLines:i}=this.options,n=e?this.intervals(1,i.skip,i.step):null;return this.gridLineAngles(t,.5,s.skip,s.step,n)}radiusCallback(t,e,s){if(e.options.type!==es){const i=Ct(360/(2*this.options.categories.length)),n=Math.cos(i)*t,r=this.majorAngles();return function(c){return!s&&N(c,r)?t:n}}}createPlotBands(){const t=this.options.plotBands||[],e=this._plotbandGroup=new et.A({zIndex:-1});for(let s=0;s<t.length;s++){const i=t[s],n=this.plotBandSlot(i),r=this.getSlot(i.from),a=i.from-Math.floor(i.from);n.startAngle+=a*r.angle;const c=Math.ceil(i.to)-i.to;n.angle-=(c+a)*r.angle;const h=Yo.current.createRing(n,{fill:{color:i.color,opacity:i.opacity},stroke:{opacity:i.opacity}});e.append(h)}this.appendVisual(e)}
1plotBandSlot(t){return this.getSlot(t.from,t.to-1)}getSlot(t,e){const s=this.options,i=s.justified,n=this.box,r=this.majorAngles(),a=r.length,c=360/a;let h=t;s.reverse&&!i&&(h=(h+1)%a),h=I(Math.floor(h),0,a-1);let d=r[h];i&&(d-=c/2,d<0&&(d+=360));const f=c*(I(Math.ceil(e||h),h,a-1)-h+1);return new dn(n.center(),0,n.height()/2,d,f)}slot(t,e){const s=this.getSlot(t,e),i=s.startAngle+180;return new di.A([s.center.x,s.center.y],{startAngle:i,endAngle:i+s.angle,radiusX:s.radius,radiusY:s.radius})}pointCategoryIndex(t){const e=this.options.categories.length;let s=null;for(let i=0;i<e;i++)if(this.getSlot(i).containsPoint(t)){s=i;break}return s}}w(Fl,{startAngle:90,labels:{margin:K(10)},majorGridLines:{visible:!0},justified:!0}),x(Fl.prototype,Xu);const Nl=Fl;class zl extends gn{constructor(t,e){super(t,e);const s=this.options;s.minorUnit=s.minorUnit||s.majorUnit/2}getDivisions(t){return ne.prototype.getDivisions.call(this,t)-1}reflow(t){this.box=t,this.reflowLabels()}reflowLabels(){const{options:t,labels:e,options:{labels:s}}=this,i=s.skip||0,n=s.step||1,r=new A,a=this.intervals(t.majorUnit,i,n);for(let c=0;c<e.length;c++){e[c].reflow(r);const h=e[c].box;e[c].reflow(this.getSlot(a[c]).adjacentBox(0,h.width(),h.height()))}}lineBox(){return this.box}intervals(t,e,s,i=!1){const n=this.options.min,r=this.getDivisions(t),a=[],h=s||1;for(let d=e||0;d<r;d+=h){const u=(360+n+d*t)%360;i&&N(u,i)||a.push(u)}return a}majorIntervals(){return this.intervals(this.options.majorUnit)}minorIntervals(){return this.intervals(this.options.minorUnit)}intervalAngle(t){return(540-t-this.options.startAngle)%360}createLine(){return[]}majorGridLineAngles(t){const e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)}minorGridLineAngles(t,e){const s=this.options,{minorGridLines:i,majorGridLines:n}=s,r=e?this.intervals(s.majorUnit,n.skip,n.step):null;return this.gridLineAngles(t,s.minorUnit,i.skip,i.step,r)}plotBandSlot(t){return this.getSlot(t.from,t.to)}getSlot(t,e){const{options:s,box:i}=this,n=s.startAngle;let r=I(t,s.min,s.max),a=I(e||r,r,s.max);if(s.reverse&&(r*=-1,a*=-1),r=(540-r-n)%360,a=(540-a-n)%360,a<r){const c=r;r=a,a=c}return new dn(i.center(),0,i.height()/2,r,a-r)}slot(t,e=t){const s=this.options,i=360-s.startAngle,n=this.getSlot(t,e),r=Math.min(t,e),a=Math.max(t,e);let c,h;return s.reverse?(c=r,h=a):(c=360-a,h=360-r),c=(c+i)%360,h=(h+i)%360,new di.A([n.center.x,n.center.y],{startAngle:c,endAngle:h,radiusX:n.radius,radiusY:n.radius})}getValue(t){const e=this.options,s=this.box.center();let r=Math.round(ss(Math.atan2(t.y-s.y,t.x-s.x))),a=e.startAngle;return e.reverse||(r*=-1,a*=-1),(r+a+360)%360}valueRange(){return{min:0,max:2*Math.PI}}}w(zl,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:K(10)},majorGridLines:{color:pt,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),x(zl.prototype,Xu,{createPlotBands:Nl.prototype.createPlotBands,majorAngles:Nl.prototype.majorAngles,range:ne.prototype.range,labelsCount:ne.prototype.labelsCount,createAxisLabel:ne.prototype.createAxisLabel});const h_=zl;function hr(o,t){return 180-Math.abs(Math.abs(o-t)-180)}const Wu={options:{majorGridLines:{visible:!0}},createPlotBands:function(){const{majorGridLines:{type:o},plotBands:t=[]}=this.options,e=this.plotArea.polarAxis,s=e.majorAngles(),i=e.box.center(),n=this._plotbandGroup=new et.A({zIndex:-1});for(let r=0;r<t.length;r++){const a=t[r],c={fill:{color:a.color,opacity:a.opacity},stroke:{opacity:a.opacity}},h=this.getSlot(a.from,a.to,!0),d=new dn(i,i.y-h.y2,i.y-h.y1,0,360);let u;u=o===es?Yo.current.createRing(d,c):E.w.fromPoints(this.plotBandPoints(d,s),c).close(),n.append(u)}this.appendVisual(n)},plotBandPoints:function(o,t){const e=[],s=[],i=[o.center.x,o.center.y],n=new se.A(i,o.innerRadius),r=new se.A(i,o.radius);for(let a=0;a<t.length;a++)e.push(n.pointAt(t[a]+180)),s.push(r.pointAt(t[a]+180));return e.reverse(),e.push(e[0]),s.push(s[0]),s.concat(e)},createGridLines:function(o){const t=this.options,e=this.radarMajorGridLinePositions(),s=o.majorAngles(),i=o.box.center();let n=[];if(t.majorGridLines.visible&&(n=this.renderGridLines(i,e,s,t.majorGridLines)),t.minorGridLines.visible){const r=this.radarMinorGridLinePositions();ks(n,this.renderGridLines(i,r,s,t.minorGridLines))}return n},renderGridLines:function(o,t,e,s){const i={stroke:{width:s.width,color:s.color,dashType:s.dashType}},{skip:n=0,step:r=0}=s,a=this.gridLinesVisual();for(let c=n;c<t.length;c+=r){const h=o.y-t[c];if(h>0){const d=new se.A([o.x,o.y],h);if(s.type===es)a.append(new ye.A(d,i));else{const u=new E.w(i);for(let p=0;p<e.length;p++)u.lineTo(d.pointAt(e[p]+180));u.close(),a.append(u)}}}return a.children},getValue:function(o){const t=this.lineBox(),e=this.plotArea.polarAxis,s=e.majorAngles(),i=e.box.center(),n=o.distanceTo(i);let r=n;if(this.options.majorGridLines.type!==es&&s.length>1){const h=(ss(Math.atan2(o.y-i.y,o.x-i.x))+540)%360;s.sort(function(g,m){return hr(g,h)-hr(m,h)});const d=hr(s[0],s[1])/2,u=hr(h,s[0]),p=90-d;r=n*(Math.sin(Ct(180-u-p))/Math.sin(Ct(p)))}return this.axisType().prototype.getValue.call(this,new V(t.x1,t.y2-r))}};class Yu extends ne{radarMajorGridLinePositions(){return this.getTickPositions(this.options.majorUnit)}radarMinorGridLinePositions(){const t=this.options;let e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)}axisType(){return ne}}x(Yu.prototype,Wu);const u_=Yu;class $u extends cr{radarMajorGridLinePositions(){const t=[];return this.traverseMajorTicksPositions(function(e){t.push(e)},this.options.majorGridLines),t}radarMinorGridLinePositions(){const t=[];return this.traverseMinorTicksPositions(function(e){t.push(e)},this.options.minorGridLines),t}axisType(){return cr}}x($u.prototype,Wu);
1const p_=$u;var Be=S(21281);function Qu(o){return o<=0?-1:1}const dr=class f_ extends L.A{constructor(t){super(),this.closed=t}process(t){const e=t.slice(0),s=[];let i=this.closed,n=e.length;if(n>2&&(this.removeDuplicates(0,e),n=e.length),n<2||2===n&&e[0].equals(e[1]))return s;let h,d,r=e[0],a=e[1],c=e[2];for(s.push(new Be.A(r));r.equals(e[n-1]);)i=!0,e.pop(),n--;if(2===n){const p=this.tangent(r,a,D,P);return mt(s).controlOut(this.firstControlPoint(p,r,a,D,P)),s.push(new Be.A(a,this.secondControlPoint(p,r,a,D,P))),s}if(i){r=e[n-1],a=e[0],c=e[1];const p=this.controlPoints(r,a,c);h=p[1],d=p[0]}else{const p=this.tangent(r,a,D,P);h=this.firstControlPoint(p,r,a,D,P)}let u=h;for(let p=0;p<=n-3;p++)if(this.removeDuplicates(p,e),n=e.length,p+3<=n){r=e[p],a=e[p+1],c=e[p+2];const f=this.controlPoints(r,a,c);mt(s).controlOut(u),u=f[1],s.push(new Be.A(a,f[0]))}if(i){r=e[n-2],a=e[n-1],c=e[0];const p=this.controlPoints(r,a,c);mt(s).controlOut(u),s.push(new Be.A(a,p[0])),mt(s).controlOut(p[1]),s.push(new Be.A(c,d))}else{const p=this.tangent(a,c,D,P);mt(s).controlOut(u),s.push(new Be.A(c,this.secondControlPoint(p,a,c,D,P)))}return s}removeDuplicates(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)}invertAxis(t,e,s){let i=!1;if(t.x===e.x)i=!0;else if(e.x===s.x)(e.y<s.y&&t.y<=e.y||s.y<e.y&&e.y<=t.y)&&(i=!0);else{const n=this.lineFunction(t,e),r=this.calculateFunction(n,s.x);t.y<=e.y&&s.y<=r||e.y<=t.y&&s.y>=r||(i=!0)}return i}isLine(t,e,s){const i=this.lineFunction(t,e),n=this.calculateFunction(i,s.x);return t.x===e.x&&e.x===s.x||k(n,1)===k(s.y,1)}lineFunction(t,e){const s=(e.y-t.y)/(e.x-t.x);return[t.y-s*t.x,s]}controlPoints(t,e,s){let c,i=D,n=P,r=!1,a=!1;if(this.isLine(t,e,s))c=this.tangent(t,e,D,P);else{const u={x:this.isMonotonicByField(t,e,s,D),y:this.isMonotonicByField(t,e,s,P)};if(u.x&&u.y)c=this.tangent(t,s,D,P),r=!0;else if(this.invertAxis(t,e,s)&&(i=P,n=D),u[i])c=0;else{let p;p=s[n]<t[n]&&t[n]<=e[n]||t[n]<s[n]&&e[n]<=t[n]?Qu((s[n]-t[n])*(e[i]-t[i])):-Qu((s[i]-t[i])*(e[n]-t[n])),c=.01*p,a=!0}}const h=this.secondControlPoint(c,t,e,i,n);if(a){const u=i;i=n,n=u}const d=this.firstControlPoint(c,e,s,i,n);return r&&(this.restrictControlPoint(t,e,h,c),this.restrictControlPoint(e,s,d,c)),[h,d]}restrictControlPoint(t,e,s,i){t.y<e.y?e.y<s.y?(s.x=t.x+(e.y-t.y)/i,s.y=e.y):s.y<t.y&&(s.x=e.x-(e.y-t.y)/i,s.y=t.y):s.y<e.y?(s.x=t.x-(t.y-e.y)/i,s.y=e.y):t.y<s.y&&(s.x=e.x+(t.y-e.y)/i,s.y=t.y)}tangent(t,e,s,i){const n=e[s]-t[s];let a;return a=0===n?0:(e[i]-t[i])/n,a}isMonotonicByField(t,e,s,i){return s[i]>e[i]&&e[i]>t[i]||s[i]<e[i]&&e[i]<t[i]}firstControlPoint(t,e,s,i,n){const r=e[i],c=.333*(s[i]-r);return this.point(r+c,e[n]+c*t,i,n)}secondControlPoint(t,e,s,i,n){const a=s[i],c=.333*(a-e[i]);return this.point(a-c,s[n]-c*t,i,n)}point(t,e,s,i){const n=new H.A;return n[s]=t,n[i]=e,n}calculateFunction(t,e){const s=t.length;let i=0;for(let n=0;n<s;n++)i+=Math.pow(e,n)*t[n];return i}},x_=class m_ extends L.A{constructor(t){super(),this._axis=t,this.options=t.options}value(t){const e=this._axis;return e.getCategory?e.getCategory(t):e.getValue(t)}slot(t,e,s=!0){return this._axis.slot(t,e,s)}range(){return this._axis.range()}valueRange(){return this._axis.valueRange()}};function Ku(o,t){for(let e=0;e<t.length;e++)if(t[e].options.name===o)return t[e].prepareUserOptions(),new x_(t[e])}const Ul=class v_{constructor(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t}findAxisByName(t){return Ku(t,this._pane.axes)}},b_=class y_ extends L.A{constructor(t){super(),this._plotArea=t,this.visual=t.visual,this.backgroundVisual=t._bgVisual}};function Hl(o){const t=o.length;let e=0;for(let s=0;s<t;s++)G(o[s])&&e++;return e}const jl={min:function(o){const t=o.length;let e=ft;for(let s=0;s<t;s++){const i=o[s];G(i)&&(e=Math.min(e,i))}return e===ft?o[0]:e},max:function(o){const t=o.length;let e=_t;for(let s=0;s<t;s++){const i=o[s];G(i)&&(e=Math.max(e,i))}return e===_t?o[0]:e},sum:function(o){const t=o.length;let e=0;for(let s=0;s<t;s++){const i=o[s];G(i)&&(e+=i)}return e},sumOrNull:function(o){let t=null;return Hl(o)&&(t=jl.sum(o)),t},count:function(o){const t=o.length;let e=0;for(let s=0;s<t;s++){const i=o[s];null!==i&&_(i)&&e++}return e},avg:function(o){const t=Hl(o);let e=o[0];return t>0&&(e=jl.sum(o)/t),e},first:function(o){const t=o.length;for(let e=0;e<t;e++){const s=o[e];if(null!==s&&_(s))return s}return o[0]}},__=jl;function C_(o,t){return null===t?t:Ee(o)(t)}class Gl extends L.A{constructor(){super(),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}register(t,e=[Xt],s={}){for(let i=0;i<t.length;i++){const n=t[i];this._valueFields[n]=e,this._otherFields[n]=s,this._nullValue[n]=this._makeValue(e,null),this._undefinedValue[n]=this._makeValue(e,void 0)}}canonicalFields(t){return this.valueFields(t).concat(this.otherFields(t))}valueFields(t){return this._valueFields[t.type]||[Xt]}otherFields(t){return this._otherFields[t.type]||[Xt]}bindPoint(t,e,s){const i=t.data,n=_(s)?s:i[e],r={valueFields:{value:n}},a=this.valueFields(t),c=this._otherFields[t.type];let h,d;if(null===n)d=this._nullValue[t.type];else if(_(n)){if(Array.isArray(n)){const u=n.slice(a.length);d=this._bindFromArray(n,a),h=this._bindFromArray(u,c)}else if("object"==typeof n){const u=this.sourceFields(t,a),p=this.sourceFields(t,c);d=this._bindFromObject(n,a,u),h=this._bindFromObject(n,c,p)}}else d=this._undefinedValue[t.type];
1return _(d)&&(1===a.length?r.valueFields.value=d[a[0]]:r.valueFields=d),r.fields=h||{},r}_makeValue(t,e){const s={},i=t.length;for(let n=0;n<i;n++)s[t[n]]=e;return s}_bindFromArray(t,e){const s={};if(e){const i=Math.min(e.length,t.length);for(let n=0;n<i;n++)s[e[n]]=t[n]}return s}_bindFromObject(t,e,s=e){const i={};if(e){const n=e.length;for(let r=0;r<n;r++){const c=s[r];null!==c&&(i[e[r]]=C_(c,t))}}return i}sourceFields(t,e){const s=[];if(e){const i=e.length;for(let n=0;n<i;n++){const r=e[n],a=r===Xt?"field":r+"Field";s.push(null!==t[a]?t[a]||r:null)}}return s}}Gl.current=new Gl;const rt=Gl,S_=/percent(?:\w*)\((\d+)\)/,k_=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),qu=class T_ extends L.A{constructor(t,e,s){super(),this.initGlobalRanges(t,e,s)}initGlobalRanges(t,e,s){const i=e.data,n=k_.exec(t);if(n){this.valueGetter=this.createValueGetter(e,s);const r=this.getAverage(i),a=this.getStandardDeviation(i,r,!1),c=n[1]?parseFloat(n[1]):1,h={low:r.value-a*c,high:r.value+a*c};this.globalRange=function(){return h}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,s);const r=this.getStandardError(i,this.getAverage(i));this.globalRange=function(a){return{low:a-r,high:a+r}}}}createValueGetter(t,e){const s=t.data,i=rt.current,n=i.valueFields(t),r=_(s[0])?s[0]:{};let a;return Dt(r)?a=Ee("["+(e?n.indexOf(e):0)+"]"):G(r)?a=Ee():typeof r===nn&&(a=Ee(i.sourceFields(t,n)[n.indexOf(e)])),a}getErrorRange(t,e){let s,i,n;if(!_(e))return null;if(this.globalRange)return this.globalRange(t);if(Dt(e))s=t-e[0],i=t+e[1];else if(G(n=parseFloat(e)))s=t-n,i=t+n;else{if(!(n=S_.exec(e)))throw new Error("Invalid ErrorBar value: "+e);
1{const r=t*(parseFloat(n[1])/100);s=t-Math.abs(r),i=t+Math.abs(r)}}return{low:s,high:i}}getStandardError(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)}getStandardDeviation(t,e,s){const i=t.length,n=s?e.count-1:e.count;let r=0;for(let a=0;a<i;a++){const c=this.valueGetter(t[a]);G(c)&&(r+=Math.pow(c-e.value,2))}return Math.sqrt(r/n)}getAverage(t){const e=t.length;let s=0,i=0;for(let n=0;n<e;n++){const r=this.valueGetter(t[n]);G(r)&&(s+=r,i++)}return{value:s/i,count:i}}},oe=600,rs="fadeIn",vn=(Ld.A.browser||{}).msie?.001:0,Ju="errorLow",tp="errorHigh",Oe="zero",gi="interpolate",gr="above",Xl="below",fi="smooth",yn="step",Ve="area",re="bar",bn="boxPlot",mi="bubble",as="bullet",xi="candlestick",Ae="column",fr="donut",_n="funnel",Cn="pyramid",Wl="heatmap",vi="horizontalWaterfall",Fe="line",yi="ohlc",ls="pie",Yl="polarArea",mr="polarLine",$l="polarScatter",wn="radarArea",xr="radarColumn",bi="radarLine",_i="rangeArea",Ci="rangeBar",An="rangeColumn",Zl="scatter",Ql="scatterLine",Ps="verticalArea",wi="verticalBoxPlot",Sn="verticalBullet",Ls="verticalLine",Is="verticalRangeArea",kn="waterfall",sp=[re,Ae,yi,xi,bn,wi,as,An,Ci,kn,vi],Kl="exponentialTrendline",ql="linearTrendline",Jl="logarithmicTrendline",tc="movingAverageTrendline",ec="polynomialTrendline",sc="powerTrendline",Ai=[Kl,ql,Jl,tc,ec,sc],ip="legendItemClick",np="seriesClick",op="seriesHover",rp="seriesOver",ap="seriesLeave",lp="plotAreaHover",ic="plotAreaLeave",Tn="drag",Mn="dragEnd",nc="dragStart",En="zoomStart",Si="zoom",ki="zoomEnd",oc="selectStart",Dn="select",rc="selectEnd",cp="showTooltip",hp="hideTooltip",cs="graphics-symbol",hs="k-chart-point",ds="Point",vr="log",he="category",yr="insideEnd",Rs="outsideEnd",br="wheel",Ne="drilldown";class up extends q{constructor(t,e,s,i,n,r){super(r),this.low=t,this.high=e,this.isVertical=s,this.chart=i,this.series=n}reflow(t){const e=this.options.endCaps,s=this.isVertical,n=this.getAxis().getSlot(this.low,this.high),r=t.center(),a=this.getCapsWidth(t,s),c=s?r.x:r.y,h=c-a,d=c+a;let u;s?(u=[new V(r.x,n.y1),new V(r.x,n.y2)],e&&u.push(new V(h,n.y1),new V(d,n.y1),new V(h,n.y2),new V(d,n.y2)),this.box=new A(h,n.y1,d,n.y2)):(u=[new V(n.x1,r.y),new V(n.x2,r.y)],e&&u.push(new V(n.x1,h),new V(n.x1,d),new V(n.x2,h),new V(n.x2,d)),this.box=new A(n.x1,h,n.x2,d)),this.linePoints=u}getCapsWidth(t,e){const s=e?t.width():t.height();return Math.min(Math.floor(s/2),4)||4}createVisual(){const t=this.options,e=t.visual;e?this.visual=e({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:t.endCaps,color:t.color,line:t.line},createVisual:()=>{this.createDefaultVisual();const s=this.visual;return delete this.visual,s}}):this.createDefaultVisual()}createDefaultVisual(){const{options:t,linePoints:e}=this,s={stroke:{color:t.color,width:t.line.width,dashType:t.line.dashType}};super.createVisual();for(let i=0;i<e.length;i+=2){const n=new E.w(s).moveTo(e[i].x,e[i].y).lineTo(e[i+1].x,e[i+1].y);Wt(n),this.visual.append(n)}}}w(up,{animation:{type:rs,delay:oe},endCaps:!0,line:{width:2},zIndex:1});const pp=up,X_=class G_ extends pp{getAxis(){return this.chart.seriesValueAxis(this.series)}};function gp(o){for(let t=0;t<o.length;t++)if(_(o[t].zIndex))return!0}function _r(o,t){null!==t&&o.push(t)}function fp(o){return Hl(o)===o.length}function W_(o,t,e){const s=t.visible;if(_(s))return s;const i=o.pointVisibility;return i?i[e]:void 0}function mp(o){const t=o.data,e=[];let s=0,i=0;for(let n=0;n<t.length;n++){const r=rt.current.bindPoint(o,n);let a=r.valueFields.value;zt(a)&&(a=parseFloat(a)),G(a)?(r.visible=!1!==W_(o,r.fields,n),r.value=Math.abs(a),e.push(r),r.visible&&(s+=r.value),0!==a&&i++):e.push(null)}return{total:s,points:e,count:i}}function cc(o){const t=o.length;let e=0;for(let s=0;s<t;s++)e=Math.max(e,o[s].data.length);return e}function ze(o,t){return o&&t?o.toLowerCase()===t.toLowerCase():o===t}function Ue(o,t,e={},s=!1){const i=e.defaults=e.defaults||{},n=e.depth=e.depth||0;let r=!1;if(e.excluded=e.excluded||[],n>5)return null;for(let a in o)if(!N(a,e.excluded)&&gl(o,a)){const c=o[a];ct(c)?(r=!0,s||(o[a]=O(c(t),i[a]))):Jt(c)&&(s||(e.defaults=i[a]),e.depth++,r=Ue(c,t,e,s)||r,e.depth--)}return r}function dt(o,t){const e=[],s=[].concat(t);for(let i=0;i<o.length;i++){const n=o[i];
1N(n.type,s)&&e.push(n)}return e}const xp=new WeakMap;function vp(o,t,e){if(null===t||"object"!=typeof t)return Pt(e,o);let s=xp.get(t);return s||(s=Pt(e,o),xp.set(t,s)),s}function hc(o){const t=o.overlay;return t&&t.gradient&&"none"!==t.gradient}function jt(o){return _(o)&&null!==o}function yp(o,t){const e=o.type,s=t instanceof Date;return!e&&s||ze(e,Me)}function Ti(o){return 1===o.length?o[0]:o}const $_=/area/i;function dc(o,t){const s=rt.current.bindPoint(o,null,t).valueFields;for(let i in s)if(wd(s[i]))return!0}function bp({start:o,dir:t,min:e,max:s,getter:i,hasItem:n,series:r}){let a,c,h=o;do{h+=t,n(h)&&(c=i(h),a=dc(r,c.item))}while(e<=h&&h<=s&&!a);if(a)return c}function _p(o,t,e,s,i){const{min:n,max:r}=t,a=n>0&&n<e,c=r+1<e;if(a||c){const h=function Z_(o){return o.missingValues?o.missingValues:$_.test(o.type)||o.stack?Oe:gi}(o);let d,u;if(h!==gi)a&&(d=s(n-1)),c&&(u=s(r+1));else{let p,f;a&&(p=s(n-1),f=dc(o,p.item),d=f?p:bp({start:n,dir:-1,min:0,max:e-1,getter:s,hasItem:i,series:o})),c&&(p=s(r+1),f=dc(o,p.item),u=f?p:bp({start:r,dir:1,min:0,max:e-1,getter:s,hasItem:i,series:o}))}d&&(o._outOfRangeMinPoint=d),u&&(o._outOfRangeMaxPoint=u)}}class Cp extends q{constructor(t,e){super(e),this.plotArea=t,this.chartService=t.chartService,this.categoryAxis=t.seriesCategoryAxis(e.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}render(){this.traverseDataPoints(this.addValue.bind(this))}pointOptions(t,e){let s=this.seriesOptions[e];if(!s){const i=this.pointType().prototype.defaults;this.seriesOptions[e]=s=x({},i,{vertical:!this.options.invertAxes},t)}return s}plotValue(t){if(!t)return 0;if(this.options.isStacked100&&G(t.value)){const s=this.categoryPoints[t.categoryIx],i=[];let n=0;for(let r=0;r<s.length;r++){const a=s[r];if(a){const c=t.series.stack,h=a.series.stack;if(c&&h&&c.group!==h.group)continue;G(a.value)&&(n+=Math.abs(a.value),i.push(Math.abs(a.value)))}}if(n>0)return t.value/n}return t.value}plotRange(t,e=0){const s=this.categoryPoints[t.categoryIx];if(this.options.isStacked){let a=this.plotValue(t);const c=a>=0;let h=e,d=!1;const u=_(t.series.stack)?t.series.stack:this.options.defaultStack,p=f=>!0===f||typeof f===nn&&!f.group;if(u)for(let f=0;f<s.length;f++){const g=s[f];if(t===g)break;const m=_(g.series.stack)?g.series.stack:this.options.defaultStack;if(!m||typeof u===nl&&u!==m||p(u)&&!p(m)||u.group&&u.group!==m.group)continue;const v=this.plotValue(g);(v>=0&&c||v<0&&!c)&&(0===e||0!==v)&&(h+=v,a+=v,d=!0,this.options.isStacked100&&(a=Math.min(a,1)))}return d&&(h-=e),[h,a]}const n=this.seriesValueAxis(t.series),r=this.categoryAxisCrossingValue(n);return[r,wd(t.value)?t.value:r]}stackLimits(t,e){let s=ft,i=_t;for(let n=0;n<this.categoryPoints.length;n++){const r=this.categoryPoints[n];if(r)for(let a=0;a<r.length;a++){const c=r[a];if(c&&(c.series.stack===e||c.series.axis===t)){const h=this.plotRange(c,0)[1];_(h)&&isFinite(h)&&(i=Math.max(i,h),s=Math.min(s,h))}}}return{min:s,max:i}}updateStackRange(){const{isStacked:t,series:e}=this.options,s={};if(t)for(let i=0;i<e.length;i++){const n=e[i],r=n.axis,a=r+n.stack;let c=s[a];if(!c){c=this.stackLimits(r,n.stack);const h=this.errorTotals;h&&(h.negative.length&&(c.min=Math.min(c.min,pl(h.negative).min)),h.positive.length&&(c.max=Math.max(c.max,pl(h.positive).max))),c.min!==ft||c.max!==_t?s[a]=c:c=null}c&&(this.valueAxisRanges[r]=c)}}addErrorBar(t,e,s){const{value:i,series:n,seriesIx:r}=t,a=t.options.errorBars,c=e.fields[Ju],h=e.fields[tp];let d;G(c)&&G(h)?d={low:c,high:h}:a&&_(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[r]=this.seriesErrorRanges[r]||new qu(a.value,n,Xt),d=this.seriesErrorRanges[r].getErrorRange(i,a.value)),d&&(t.low=d.low,t.high=d.high,this.addPointErrorBar(t,s))}addPointErrorBar(t,e){const s=!this.options.invertAxes,i=t.options.errorBars;let{series:n,low:r,high:a}=t;if(this.options.isStacked){const h=this.stackedErrorRange(t,e);r=h.low,a=h.high}else{const h={categoryIx:e,series:n};this.updateRange({value:r},h),this.updateRange({value:a},h)}const c=new X_(r,a,s,this,n,i);t.errorBars=[c],t.append(c)}stackedErrorRange(t,e){const s=this.plotRange(t,0)[1]-t.value,i=t.low+s,n=t.high+s;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},i<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,i)),n>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,n)),{low:i,high:n}}addValue(t,e){const{categoryIx:s,series:i,seriesIx:n}=e;let r=this.categoryPoints[s];r||(this.categoryPoints[s]=r=[]);let a=this.seriesPoints[n];a||(this.seriesPoints[n]=a=[]);const c=this.createPoint(t,e);c&&(Object.assign(c,e),c.owner=this,c.noteText=t.fields.noteText,_(c.dataItem)||(c.dataItem=i.data[s]),this.addErrorBar(c,t,s)),this.points.push(c),a.push(c),r.push(c),this.updateRange(t.valueFields,e)}evalPointOptions(t,e,s){const i=s.categoryIx,n=s.category,r=s.series,a=s.seriesIx,c={defaults:r._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory","ariaTemplate","ariaContent"]};let h=this._evalSeries[a];_(h)||(this._evalSeries[a]=h=Ue(t,{},c,!0));let d=t;
1return h&&(d=x({},d),Ue(d,{value:e,category:n,index:i,series:r,dataItem:r.data[i]},c)),d}updateRange(t,e){const s=e.series.axis,i=t.value;let n=this.valueAxisRanges[s];isFinite(i)&&null!==i&&(n=this.valueAxisRanges[s]=n||{min:ft,max:_t},n.min=Math.min(n.min,i),n.max=Math.max(n.max,i))}seriesValueAxis(t){const e=this.plotArea,s=t.axis,i=s?e.namedValueAxes[s]:e.valueAxis;if(!i)throw new Error("Unable to locate value axis with name "+s);return i}reflow(t){const e=this.categorySlots=[],s=this.points,i=this.categoryAxis;let n=0;this.traverseDataPoints((r,a)=>{const{categoryIx:c,series:h}=a,d=this.seriesValueAxis(h),u=s[n++];let p=e[c];if(p||(e[c]=p=this.categorySlot(i,c,d)),u){const f=this.plotRange(u,d.startValue()),g=this.valueSlot(d,f);if(g){const m=this.pointSlot(p,g);u.aboveAxis=this.aboveAxis(u,d),u.stackValue=f[1],this.options.isStacked100&&(u.percentage=this.plotValue(u)),this.reflowPoint(u,m)}else u.visible=!1}}),this.reflowCategories(e),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t}valueSlot(t,e){return t.getSlot(e[0],e[1],!this.options.clip)}limitPoints(){const t=this.categoryPoints,e=t[0].concat(mt(t));for(let s=0;s<e.length;s++)e[s]&&this.limitPoint(e[s])}limitPoint(t){const e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)}aboveAxis(t,e){const s=this.categoryAxisCrossingValue(e),i=t.value;return e.options.reverse?i<s:i>=s}categoryAxisCrossingValue(t){const e=this.categoryAxis,s=t.options;return[].concat(s.axisCrossingValues||s.axisCrossingValue)[e.axisIndex||0]||0}reflowPoint(t,e){t.reflow(e)}reflowCategories(){}pointSlot(t,e){const i=this.options.invertAxes,n=i?e:t,r=i?t:e;return new A(n.x1,r.y1,n.x2,r.y2)}categorySlot(t,e){return t.getSlot(e)}traverseDataPoints(t){const e=this.options.series,s=cc(e),i=e.length;for(let n=0;n<i;n++)this._outOfRangeCallback(e[n],"_outOfRangeMinPoint",n,t);for(let n=0;n<s;n++)for(let r=0;r<i;r++){const a=e[r],c=this.categoryAxis.categoryAt(n);t(this.plotArea.bindPoint(a,n),{category:c,categoryIx:n,categoriesCount:s,series:a,seriesIx:r})}for(let n=0;n<i;n++)this._outOfRangeCallback(e[n],"_outOfRangeMaxPoint",n,t)}_outOfRangeCallback(t,e,s,i){const n=t[e];if(n){const r=n.categoryIx;i(this.plotArea.bindPoint(t,r,n.item),{category:n.category,categoryIx:r,series:t,seriesIx:s,dataItem:n.item})}}formatPointValue(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)}pointValue(t){return t.valueFields.value}}w(Cp,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});const Bs=Cp,de={click:function(o,t){return o.trigger(np,this.eventArgs(t))},hover:function(o,t){return o.trigger(op,this.eventArgs(t))},over:function(o,t){return o.trigger(rp,this.eventArgs(t))},out:function(o,t){return o.trigger(ap,this.eventArgs(t))},eventArgs:function(o){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:ae(o),originalEvent:o,point:this}}},Mi={createNote:function(){const o=this.options.notes,t=this.noteText||o.label.text;!1!==o.visible&&_(t)&&null!==t&&(this.note=new wu({value:this.value,text:t,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}};class Cr extends q{constructor(t,e){super(),this.value=t,this.options=e,this.aboveAxis=O(this.options.aboveAxis,!0),this.tooltipTracking=!0,this._id=cn()}render(){const{markers:t}=this.options;this._rendered||(this._rendered=!0,t.visible&&t.size&&(this.marker=this.createMarker(),this.append(this.marker)),this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))}createLabel(){const e=this.options.labels;e.visible&&(this.label=this.createLabelElement(e),this.append(this.label))}createLabelElement(t){return new Ht(this.getLabelText(t),x({align:F,vAlign:F,margin:{left:5,right:5},zIndex:O(t.zIndex,this.series.zIndex)},t),this.pointData())}getLabelText(t){let e=kt(t);return e?e(this.pointData()):t.format?this.formatValue(t.format):this.value}getAriaLabelText(){const t=this.options.labels,e=Ed(t);return e?e(this.pointData()):this.getLabelText(t)}
1markerBorder(){const t=this.options.markers,e=t.background,s=x({color:this.color},t.border);return _(s.color)||(s.color=new xe.A(e).brightness(.8).toHex()),s}createVisual(){}createMarker(){const t=this.options.markers;return new Rt({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:t.opacity,zIndex:O(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual,accessibilityOptions:x({ariaLabel:this.getAriaLabelText(this.options.labels)},this.options.accessibility)},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})}markerBox(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box}reflow(t){const{options:e,aboveAxis:s}=this,i=e.vertical;this.render(),this.box=t;const n=t.clone();if(i?s?n.y1-=n.height():n.y2+=n.height():s?n.x1+=n.width():n.x2-=n.width(),this._childBox=n,this.marker&&this.marker.reflow(n),this.reflowLabel(n),this.errorBars)for(let r=0;r<this.errorBars.length;r++)this.errorBars[r].reflow(n);if(this.note){let r=this.markerBox();if(!e.markers.visible||!e.markers.size){const a=r.center();r=new A(a.x,a.y,a.x,a.y)}this.note.reflow(r)}}reflowLabel(t){const{options:e,label:s}=this;let i=e.labels.position;s&&(i=i===gr?j:i,i=i===Xl?$:i,s.reflow(t),s.box.alignTo(this.markerBox(),i),s.reflow(s.box))}createHighlight(){const t=this.options.highlight.markers,e=this.markerBorder().color,s=this.options.markers,i=s.size+(s.border.width||0)+(t.border.width||0),n=new Rt({type:s.type,width:i,height:i,rotation:s.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:O(t.border.opacity,1)},opacity:O(t.opacity,1)});return n.reflow(this._childBox),n.getElement()}highlightVisual(){return(this.marker||{}).visual}highlightVisualArgs(){const t=this.marker;let e,s;if(t)s=t.paddingBox.toRect(),e=t.visual;else{const i=this.options.markers.size,n=i/2,r=this.box.center();s=new wt.A([r.x-n,r.y-n],[i,i])}return{options:this.options,rect:s,visual:e}}createFocusHighlight(){const t=this.options.markers,e=this.options.accessibility.highlight,s=t.size+(t.border.width||0),i=new Rt({type:t.type,width:s,height:s,rotation:t.rotation,background:e.color,border:e.border,opacity:e.opacity,padding:e.border.width/2,zIndex:e.zIndex});return i.reflow(this._childBox),i.getElement()}tooltipAnchor(){const t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){const n=U;let r,a;return this.aboveAxis?(r=t.y1,a=$):(r=t.y2,a=j),{point:new V(t.x2+5,r),align:{horizontal:n,vertical:a}}}}formatValue(t){return this.owner.formatPointValue(this,t)}overlapsBox(t){return this.markerBox().overlaps(t)}unclipElements(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}}focusVisual(){this.marker&&(this.marker.visual&&this.marker.visual.options.set("id",this._id),this.toggleFocusHighlight(!0))}clearFocusFromVisual(){this.marker&&(this.marker.visual&&this.marker.visual.options.set("id",""),this.toggleFocusHighlight(!1))}getIndex(){return _(this.categoryIx)?this.categoryIx:this.pointIx}}Cr.prototype.defaults={vertical:!0,markers:{visible:!0,background:W,size:8,type:Nt,border:{width:2},opacity:1},labels:{visible:!1,position:gr,margin:K(3),padding:K(4),animation:{type:rs,delay:oe}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}},accessibility:{tabIndex:0,role:cs,className:hs,ariaRoleDescription:ds}},x(Cr.prototype,de),x(Cr.prototype,Mi);const Os=Cr;class wp extends q{constructor(t,e,s){super(),this.linePoints=t,this.series=e,this.seriesIx=s}points(){return this.toGeometryPoints(this.linePoints)}toGeometryPoints(t){const e=[];for(let s=0,i=t.length;s<i;s++)t[s]&&!1!==t[s].visible&&e.push(t[s]._childBox.toRect().center());return e}createVisual(){const t=this.series.visual;t?(this.visual=t({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:()=>(this.segmentVisual(),this.visual)}),this.visual&&!_(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()}segmentVisual(){const{options:t,series:e}=this;let{color:s,_defaults:i}=e;ct(s)&&i&&(s=i.color);const n=E.w.fromPoints(this.points(),{stroke:{color:s,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&n.close(),this.visual=n}aliasFor(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)}}w(wp,{closed:!1}
1);const Ei=wp;function uc(o,t,e,s,i){const n=o.box,r=new H.A;return r[t]=n[t+e],r[s]=n[s+i],r}const pc={calculateStepPoints:function(o){const t=this.parent.plotArea.seriesCategoryAxis(this.series),{justified:e,vertical:s,reverse:i}=t.options,n=s?D:P,r=s?P:D,a=i?2:1,c=a;let h=uc(o[0],n,a,r,c);const d=[h];for(let u=1;u<o.length;u++){const p=uc(o[u],n,a,r,c);if(h[n]!==p[n]){const f=new H.A;f[n]=h[n],f[r]=p[r],d.push(f,p)}h=p}return e?h!==mt(d)&&d.push(h):d.push(uc(mt(o),n,a,r,i?1:2)),d}};class Ap extends Ei{points(){return this.calculateStepPoints(this.linePoints)}}x(Ap.prototype,pc);const K_=Ap,gc=class q_ extends Ei{segmentVisual(){const t=this.series,e=t._defaults;let s=t.color;ct(s)&&e&&(s=e.color);const n=new dr(this.options.closed).process(this.points()),r=new E.w({stroke:{color:s,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});r.segments.push.apply(r.segments,n),this.visual=r}},fc={renderSegments:function(){const{options:o,seriesPoints:t}=this,e=o.series,s=t.length;let i;this._segments=[];for(let n=0;n<s;n++){const r=e[n],a=this.sortPoints(t[n]),c=a.length;let h=[];for(let d=0;d<c;d++){const u=a[d];u?h.push(u):this.seriesMissingValues(r)!==gi&&(h.length>1&&(i=this.createSegment(h,r,n,i),this._addSegment(i)),h=[])}h.length>1&&(i=this.createSegment(h,r,n,i),this._addSegment(i))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(o){this._segments.push(o),o.parent=this},sortPoints:function(o){return o},seriesMissingValues:function(o){const t=o.missingValues;return!t&&this.options.isStacked?Oe:t||gi},getNearestPoint:function(o,t,e){const s=new V(o,t),i=this.seriesPoints[e];let r,n=ft;for(let a=0;a<i.length;a++){const c=i[a];if(c&&_(c.value)&&null!==c.value&&!1!==c.visible){const d=c.box.center().distanceTo(s);d<n&&(r=c,n=d)}}return r}};class mc extends ie{setup(){this._setEnd(this.options.box.x1)}step(t){const e=this.options.box;this._setEnd(te(e.x1,e.x2,t))}_setEnd(t){const e=this.element,s=e.segments,i=s[1].anchor(),n=s[2].anchor();e.suspend(),i.setX(t),e.resume(),n.setX(t)}}w(mc,{duration:oe}),be.current.register("clip",mc);const J_=mc,wr={createAnimation:function(){const o=this.getRoot();if(o&&!1!==(o.options||{}).transitions){const t=o.size(),e=E.w.fromRect(t.toRect());this.visual.clip(e),this.animation=new J_(e,{box:t}),gp(this.options.series)&&this._setChildrenAnimation(e)}},_setChildrenAnimation:function(o){const t=this.animationPoints();for(let e=0;e<t.length;e++){const s=t[e];s&&s.visual&&_(s.visual.options.zIndex)&&s.visual.clip(o)}}};class Sp extends Bs{render(){super.render(),this.updateStackRange(),this.renderSegments()}pointType(){return Os}createPoint(t,e){const{series:s,seriesIx:i}=e,n=this.seriesMissingValues(s);let r=t.valueFields.value;if(!_(r)||null===r){if(n!==Oe)return null;r=0}let a=this.pointOptions(s,i);a=this.evalPointOptions(a,r,e);let c=t.fields.color||s.color;ct(s.color)&&(c=a.color);const h=new Os(r,a);return h.color=c,this.append(h),h}plotRange(t){let e=this.plotValue(t);if(this.options.isStacked){const i=this.categoryPoints[t.categoryIx];for(let n=0;n<i.length;n++){const r=i[n];if(t===r)break;e+=this.plotValue(r),this.options.isStacked100&&(e=Math.min(e,1))}}return[e,e]}createSegment(t,e,s){const i=e.style;let n;return n=i===yn?K_:i===fi?gc:Ei,new n(t,e,s)}animationPoints(){const t=this.points,e=[];for(let s=0;s<t.length;s++)e.push((t[s]||{}).marker);return e.concat(this._segments)}supportsPointInactiveOpacity(){return!1}}x(Sp.prototype,fc,wr);const xc=Sp,Di=class t0 extends Ei{constructor(t,e,s,i,n){super(t,e,s),this.prevSegment=i,this.stackPoints=n}createVisual(){const t=this.series,e=t._defaults,s=t.line||{};let i=t.color;ct(i)&&e&&(i=e.color),this.visual=new et.A({zIndex:t.zIndex}),this.createFill({fill:{color:i,opacity:t.opacity},stroke:null}),s.width>0&&!1!==s.visible&&this.createStroke({stroke:x({color:i,opacity:t.opacity,lineCap:"butt"},s)})}strokeSegments(){let t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t}createStrokeSegments(){return this.segmentsFromPoints(this.points())}stackSegments(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)}createStackSegments(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()}segmentsFromPoints(t){return t.map(e=>new Be.A(e))}createStroke(t){const e=new E.w(t);
1e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)}hasStackSegment(){return this.prevSegment||this.stackPoints&&this.stackPoints.length}createFill(t){const e=this.strokeSegments(),s=e.slice(0),i=this.hasStackSegment();if(i){const r=this.stackSegments();ks(s,r)}const n=new E.w(t);n.segments.push.apply(n.segments,s),!i&&e.length>1&&this.fillToAxes(n),this.visual.append(n)}fillToAxes(t){const e=this.parent,s=e.options.invertAxes,i=e.seriesValueAxis(this.series),n=e.categoryAxisCrossingValue(i),r=i.getSlot(n,n,!0),a=this.strokeSegments(),c=a[0].anchor(),h=mt(a).anchor();let d=s?r.x1:r.y1;s?t.lineTo(d,h.y).lineTo(d,c.y):t.lineTo(h.x,d).lineTo(c.x,d)}};class kp extends Di{createStrokeSegments(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))}createStackSegments(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()}}x(kp.prototype,pc);const e0=kp,vc=class s0 extends Di{createStrokeSegments(){const t=new dr(this.options.closed),e=this.points();return t.process(e)}createStackSegments(){const t=this.strokeSegments(),e=[];for(let s=t.length-1;s>=0;s--){const i=t[s];e.push(new Be.A(i.anchor(),i.controlOut(),i.controlIn()))}return e}},o0=class n0 extends xc{createSegment(t,e,s,i){const r=(e.line||{}).style;let a,c,h;return this.options.isStacked&&s>0&&i&&("gap"!==this.seriesMissingValues(e)?(c=i.linePoints,a=i):c=this._gapStackPoints(t,s,r)),h=r===yn?e0:r===fi?vc:Di,new h(t,e,s,a,c)}reflow(t){super.reflow(t);const e=this._stackPoints;if(e)for(let s=0;s<e.length;s++){const i=e[s],n=this.categoryAxis.getSlot(i.categoryIx);i.reflow(n)}}_gapStackPoints(t,e,s){const i=this.seriesPoints;let n=t[0].categoryIx,r=t.length;n<0&&(n=0,r--);const a=n+r,c=this.seriesOptions[0]._outOfRangeMinPoint?1:0,h=[];this._stackPoints=this._stackPoints||[];for(let d=n;d<a;d++){const u=d+c;let f,p=e;do{p--,f=i[p][u]}while(p>0&&!f);if(f)s!==yn&&d>n&&!i[p][u-1]&&h.push(this._previousSegmentPoint(d,u,u-1,p)),h.push(f),s!==yn&&d+1<a&&!i[p][u
1+1]&&h.push(this._previousSegmentPoint(d,u,u+1,p));else{const g=this._createGapStackPoint(d);this._stackPoints.push(g),h.push(g)}}return h}_previousSegmentPoint(t,e,s,i){const n=this.seriesPoints;let a,r=i;for(;r>0&&!a;)r--,a=n[r][s];return a?a=n[r][e]:(a=this._createGapStackPoint(t),this._stackPoints.push(a)),a}_createGapStackPoint(t){const e=this.pointOptions({},0),s=new Os(0,e);return s.categoryIx=t,s.series={},s}seriesMissingValues(t){return t.missingValues||Oe}supportsPointInactiveOpacity(){return!1}},Ar=class r0 extends L.A{constructor(){super(),this.axisRanges={}}update(t){const e=this.axisRanges;for(let s in t){const i=t[s];let n=e[s];e[s]=n=n||{min:ft,max:_t},n.min=Math.min(n.min,i.min),n.max=Math.max(n.max,i.max)}}reset(t){this.axisRanges[t]=void 0}query(t){return this.axisRanges[t]}};class Tp extends q{constructor(t,e,s){super(e),this.textBox=new Ht(t,this.options,s),this.append(this.textBox)}createVisual(){this.textBox.options.noclip=this.options.noclip}reflow(t){const e=this.options,{vertical:s,aboveAxis:i}=e,n=this.children[0],r=n.options,a=n.box,c=n.options.padding;let h=t;r.align=s?F:U,r.vAlign=s?j:F,e.position===yr?s?(r.vAlign=j,!i&&a.height()<t.height()&&(r.vAlign=$)):r.align=i?Y:U:e.position===F?(r.vAlign=F,r.align=F):"insideBase"===e.position?s?r.vAlign=i?$:j:r.align=i?U:Y:e.position===Rs&&(s?h=i?new A(t.x1,t.y1-a.height(),t.x2,t.y1):new A(t.x1,t.y2,t.x2,t.y2+a.height()):(r.align=F,h=i?new A(t.x2,t.y1,t.x2+a.width(),t.y2):new A(t.x1-a.width(),t.y1,t.x1,t.y2))),e.rotation||(s?c.left=c.right=(h.width()-n.contentBox.width())/2:c.top=c.bottom=(h.height()-n.contentBox.height())/2),n.reflow(h)}alignToClipBox(t){const s=this.options.vertical?P:D,i=s+"1",n=s+"2",a=this.parent.box;if(a[i]<t[i]||t[n]<a[n]){const c=this.children[0].paddingBox.clone();c[i]=Math.max(a[i],t[i]),c[n]=Math.min(a[n],t[n]),this.reflow(c)}}}w(Tp,{position:Rs,margin:K(3),padding:K(4),color:pt,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:rs,delay:oe},zIndex:2});const Mp=Tp,Pi={addAccessibilityAttributesToVisual:function(){this._id=this._id||cn();const o=x({ariaLabel:this.getAriaLabelText()},this.options.accessibility);Cl(this.visual,o)},getAriaLabelText(){const o=this.options.labels,t=Ed(o);return t?t(this.pointData()):this.getLabelText(o)},focusVisual(){this.visual.options.set("id",this._id),this.toggleFocusHighlight(!0)},clearFocusFromVisual(){this.visual.options.set("id",""),this.toggleFocusHighlight(!1)}};class Pn extends q{constructor(t,e){super(),this.options=e,this.color=e.color||W,this.aboveAxis=O(this.options.aboveAxis,!0),this.value=t}render(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))}createLabel(){const e=this.options.labels;e.visible&&(this.label=this.createLabelElement(e),this.append(this.label))}createLabelElement(t){return new Mp(this.getLabelText(t),x({vertical:this.options.vertical},t),this.pointData())}getLabelText(t){let e=kt(t);return e?e(this.pointData()):this.formatValue(t.format)}formatValue(t){return this.owner.formatPointValue(this,t)}reflow(t){this.render();const e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(let s=0;s<this.errorBars.length;s++)this.errorBars[s].reflow(t)}createVisual(){const{box:t,options:e}=this,s=e.visual;if(!1!==this.visible)if(super.createVisual(),this.addAccessibilityAttributesToVisual(),s){const i=this.rectVisual=s({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:t.toRect(),createVisual:()=>{const n=new et.A;return this.createRect(n),n},options:e});i&&this.visual.append(i)}else t.width()>0&&t.height()>0&&this.createRect(this.visual)}createRect(t){const e=this.options,s=e.border,i=_(s.opacity)?s.opacity:e.opacity,n=this.box.toRect();n.size.width=Math.round(n.size.width);const r=this.rectVisual=E.w.fromRect(n,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:s.width,opacity:i,dashType:s.dashType}}),a=this.box.width(),c=this.box.height();if((e.vertical?a:c)>6&&(Wt(r),(a<1||c<1)&&(r.options.stroke.lineJoin="round")),t.append(r),hc(e)){const d=this.createGradientOverlay(r,{baseColor:this.color},x({end:e.vertical?void 0:[0,1]},e.overlay));t.append(d)}}createHighlight(t){return Wt(E.w.fromRect(this.box.toRect(),t))}highlightVisual(){return this.rectVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}createFocusHighlight(t){return Wt(E.w.fromRect(this.box.pad(this.options.accessibility.highlight.border.width/2).toRect(),t))}getBorderColor(){const t=this.color,e=this.options.border,s=e._brightness||.8;let i=e.color;return _(i)||(i=new xe.A(t).brightness(s).toHex()),i}tooltipAnchor(){const{options:t,box:e,aboveAxis:s}=this,i=this.owner.pane.clipBox()||e;let a,c,n=U,r=j;if(t.vertical)a=Math.min(e.x2,i.x2)+5,s?c=Math.max(e.y1,i.y1):(c=Math.min(e.y2,i.y2),r=$);else{const h=Math.max(e.x1,i.x1),d=Math.min(e.x2,i.x2);t.isStacked?(r=$,s?(n=Y,a=d):a=h,c=Math.max(e.y1,i.y1)-5):(s?a=d+5:(a=h-5,n=Y),c=Math.max(e.y1,i.y1))}return{point:new V(a,c),align:{horizontal:n,vertical:r}}}overlapsBox(t){return this.box.overlaps(t)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}getIndex(){return this.categoryIx}}x(Pn.prototype,de),x(Pn.prototype,Mi),x(Pn.prototype,Pi),Pn.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}},accessibility:{role:cs,className:hs,ariaRoleDescription:ds}};const Ln=Pn;function Ep(o,t){o.forEach(t)}function Dp(o,t){const e=o.length;for(let s=e-1;s>=0;s--)t(o[s],s-e-1)}class Pp extends q{constructor(t){super(t),this.forEach=t.rtl?Dp:Ep}reflow(t){const{vertical:e,gap:s,spacing:i}=this.options,n=this.children,r=n.length,a=e?P:D,c=r+s+i*(r-1),h=(e?t.height():t.width())/c;let d=t[a+1]+h*(s/2);this.forEach(n,(u,p)=>
1{const f=(u.box||t).clone();f[a+1]=d,f[a+2]=d+h,u.reflow(f),p<r-1&&(d+=h*i),d+=h})}}w(Pp,{vertical:!1,gap:0,spacing:0});const Sr=Pp;class Lp extends q{reflow(t){const e=this.options.vertical?D:P,s=this.children,i=s.length;let n=this.box=new A;for(let r=0;r<i;r++){const a=s[r];if(!1!==a.visible){const c=a.box.clone();c.snapTo(t,e),0===r&&(n=this.box=c.clone()),a.reflow(c),n.wrap(c)}}}}w(Lp,{vertical:!0});const l0=Lp;class Ip extends Bs{render(){super.render(),this.updateStackRange()}pointType(){return Ln}clusterType(){return Sr}stackType(){return l0}stackLimits(t,e){return super.stackLimits(t,e)}createPoint(t,e){const{categoryIx:s,series:i,seriesIx:n}=e,{options:r,children:a}=this,c=_(i.stack)?i.stack:r.defaultStack,h=this.pointValue(t);let d=this.pointOptions(i,n);const u=d.labels;c&&u.position===Rs&&(u.position=yr),d.isStacked=c;let p=t.fields.color||i.color;h<0&&d.negativeColor&&(p=d.negativeColor),d=this.evalPointOptions(d,h,e),ct(i.color)&&(p=d.color);const g=new(this.pointType())(h,d);g.color=p;let m=a[s];return m||(m=new(this.clusterType())({vertical:r.invertAxes,gap:r.gap,spacing:r.spacing,rtl:!r.invertAxes&&(this.chartService||{}).rtl}),this.append(m)),r.isStacked?this.getStackWrap(c,m).append(g):m.append(g),g}getStackWrap(t,e){const s=typeof t===nn?t.group||!0:t,i=e.children;let n;if(typeof s===nl||!0===s)for(let r=0;r<i.length;r++)if(i[r]._stackGroup===s){n=i[r];break}return n||(n=new(this.stackType())({vertical:!this.options.invertAxes}),n._stackGroup=s,e.append(n)),n}categorySlot(t,e,s){const i=this.options,n=t.getSlot(e),r=s.startValue();if(i.isStacked){const a=s.getSlot(r,r,!0),c=i.invertAxes?D:P;n[c+1]=n[c+2]=a[c+1]}return n}reflowCategories(t){const e=this.children,s=e.length;for(let i=0;i<s;i++)e[i].reflow(t[i])}createAnimation(){this._setAnimationOptions(),super.createAnimation(),gp(this.options.series)&&this._setChildrenAnimation()}_setChildrenAnimation(){const t=this.points;for(let e=0;e<t.length;e++){const s=t[e],i=s.visual;i&&_(i.options.zIndex)&&(s.options.animation=this.options.animation,s.createAnimation())}}_setAnimationOptions(){const t=this.options,e=t.animation||{};let s;if(t.isStacked){const i=this.seriesValueAxis(t.series[0]);s=i.getSlot(i.startValue())}else s=this.categoryAxis.getSlot(0);e.origin=new H.A(s.x1,s.y1),e.vertical=!t.invertAxes}}w(Ip,{animation:{type:re}});const In=Ip;class Li extends q{constructor(t,e){super(e),this.value=t}getLabelText(t){return this.formatValue(t.format)}reflow(t){const{options:e,value:s,owner:i}=this,n=i.seriesValueAxis(e),r=n.getSlot(s.open,s.close),a=n.getSlot(s.low,s.high);r.x1=a.x1=t.x1,r.x2=a.x2=t.x2,this.realBody=r;const c=a.center().x,h=[];h.push([[c,a.y1],[c,r.y1]]),h.push([[c,r.y2],[c,a.y2]]),this.lines=h,this.box=a.clone().wrap(r),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()}reflowNote(){this.note&&this.note.reflow(this.box)}createVisual(){super.createVisual(),this.addAccessibilityAttributesToVisual(),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()}mainVisual(t){const e=new et.A;return this.createBody(e,t),this.createLines(e,t),e}createBody(t,e){const s=E.w.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&s.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:O(e.border.opacity,e.opacity)}),Wt(s),t.append(s),hc(e)&&t.append(this.createGradientOverlay(s,{baseColor:this.color},x({end:e.vertical?void 0:[0,1]},e.overlay)))}createLines(t,e){this.drawLines(t,e,this.lines,e.line)}drawLines(t,e,s,i){if(!s)return;const n={stroke:{color:i.color||this.color,opacity:O(i.opacity,e.opacity),width:i.width,dashType:i.dashType,lineCap:"butt"}};for(let r=0;r<s.length;r++){const a=E.w.fromPoints(s[r],n);Wt(a),t.append(a)}}getBorderColor(){const t=this.options.border;let e=t.color;return _(e)||(e=new xe.A(this.color).brightness(t._brightness).toHex()),e}createOverlay(){const t=E.w.fromRect(this.box.toRect(),{fill:{color:W,opacity:0},stroke:null});this.visual.append(t)}createHighlight(){const t=this.options.highlight,e=this.color;this.color=t.color||this.color;const s=this.mainVisual(x({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,s}highlightVisual(){return this._mainVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}}tooltipAnchor(){const t=this.box,e=this.owner.pane.clipBox()||t;return{point:new V(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:U,vertical:j}}}formatValue(t){return this.owner.formatPointValue(this,t)}overlapsBox(t){return this.box.overlaps(t)}pointData(){return{dataItem:this.dataItem,value:this.value,meanPoints:this.meanPoints,medianPoints:this.medianPoints,whiskerPoints:this.whiskerPoints,stackValue:this.stackValue,series:this.series}}getIndex(){return this.categoryIx}}Li.prototype.createFocusHighlight=Ln.prototype.createFocusHighlight,w(Li,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},labels:{format:""},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},accessibility:{role:cs,className:hs,ariaRoleDescription:ds}}),x(Li.prototype,de),x(Li.prototype,Mi),x(Li.prototype,Pi);const yc=Li;class Rp extends Bs{reflowCategories(t){const e=this.children,s=e.length;for(let i=0;i<s;i++)e[i].reflow(t[i])}addValue(t,e){const{categoryIx:s,category:i,series:n,seriesIx:r}=e,{children:a,options:c}=this,h=t.valueFields,u=fp(this.splitValue(h)),p=n.data[s];let g,f=this.categoryPoints[s];f||(this.categoryPoints[s]=f=[]),u&&(g=this.createPoint(t,e));let m=a[s];m||(m=new Sr({vertical:c.invertAxes,gap:c.gap,spacing:c.spacing,rtl:!c.invertAxes&&(this.chartService||{}).rtl}),this.append(m)),g&&(this.updateRange(h,e),m.append(g),g.categoryIx=s,g.category=i,g.series=n,g.seriesIx=r,g.owner=this,g.dataItem=p,g.noteText=t.fields.noteText),this.points.push(g),f.push(g)}pointType(){return yc}createPoint(t,e){const{series:s}=e,i=this.pointType(),n=t.valueFields;let r=x({},s),a=t.fields.color||s.color;r=this.evalPointOptions(r,n,e),(s.type===xi||s.type===yi)&&n.open>n.close&&(a=t.fields.downColor||s.downColor||s.color),ct(s.color)&&(a=r.color),r.vertical=!this.options.invertAxes;const c=new i(n,r);return c.color=a,c}splitValue(t){return[t.low,t.open,t.close,t.high]}updateRange(t,e){const s=e.series.axis,i=this.splitValue(t);let n=this.valueAxisRanges[s]||{min:ft,max:_t};
1this.valueAxisRanges[s]={min:Math.min.apply(Math,i.concat([n.min])),max:Math.max.apply(Math,i.concat([n.max]))}}formatPointValue(t,e){const s=t.value;return this.chartService.format.auto(e,s.open,s.high,s.low,s.close,t.category)}animationPoints(){return this.points}}x(Rp.prototype,wr);const bc=Rp;class _c extends yc{constructor(t,e){super(t,e),this.createNote()}reflow(t){const{options:e,value:s,owner:i}=this,n=i.seriesValueAxis(e);let r,a;this.boxSlot=a=n.getSlot(s.q1,s.q3),this.realBody=a,this.reflowBoxSlot(t),this.whiskerSlot=r=n.getSlot(s.lower,s.upper),this.reflowWhiskerSlot(t);const c=n.getSlot(s.median);if(s.mean){const h=n.getSlot(s.mean);this.meanPoints=this.calcMeanPoints(t,h)}this.whiskerPoints=this.calcWhiskerPoints(a,r),this.medianPoints=this.calcMedianPoints(t,c),this.box=r.clone().wrap(a),this.reflowNote()}reflowBoxSlot(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2}reflowWhiskerSlot(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2}calcMeanPoints(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]}calcWhiskerPoints(t,e){const s=e.center().x;return[[[s-5,e.y1],[s+5,e.y1],[s,e.y1],[s,t.y1]],[[s-5,e.y2],[s+5,e.y2],[s,e.y2],[s,t.y2]]]}calcMedianPoints(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]}renderOutliers(t){const e=this.value,s=e.outliers||[],i=3*Math.abs(e.q3-e.q1),n=[];let r=t.markers||{};for(let a=0;a<s.length;a++){const c=s[a];r=c<e.q3+i&&c>e.q1-i?t.outliers:t.extremes;let h=x({},r.border);_(h.color)||(h.color=_(this.color)?this.color:new xe.A(r.background).brightness(.8).toHex());const d=new Rt({type:r.type,width:r.size,height:r.size,rotation:r.rotation,background:r.background,border:h,opacity:r.opacity});d.value=c,n.push(d)}return this.reflowOutliers(n),n}reflowOutliers(t){const e=this.owner.seriesValueAxis(this.options),s=this.box.center();for(let i=0;i<t.length;i++){const r=e.getSlot(t[i].value);this.options.vertical?r.move(s.x):r.move(void 0,s.y),this.box=this.box.wrap(r),t[i].reflow(r)}}mainVisual(t){const e=super.mainVisual(t),s=this.renderOutliers(t);for(let i=0;i<s.length;i++){const n=s[i].getElement();n&&e.append(n)}return e}createLines(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)}getBorderColor(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:super.getBorderColor()}}w(_c,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:tl,background:W,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:Nt,background:W,border:{width:2,opacity:1},opacity:0}}),x(_c.prototype,de);const Bp=_c,h0=class c0 extends Bp{reflowBoxSlot(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2}reflowWhiskerSlot(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2}calcMeanPoints(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]}calcWhiskerPoints(t,e){const s=e.center().y;return[[[e.x1,s-5],[e.x1,s+5],[e.x1,s],[t.x1,s]],[[e.x2,s-5],[e.x2,s+5],[e.x2,s],[t.x2,s]]]}calcMedianPoints(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]}},u0=class d0 extends bc{addValue(t,e){const{categoryIx:s,category:i,series:n,seriesIx:r}=e,{children:a,options:c}=this,h=t.valueFields,u=fp(this.splitValue(h)),p=n.data[s];let g,f=this.categoryPoints[s];f||(this.categoryPoints[s]=f=[]),u&&(g=this.createPoint(t,e));let m=a[s];m||(m=new Sr({vertical:c.invertAxes,gap:c.gap,spacing:c.spacing,rtl:!c.invertAxes&&(this.chartService||{}).rtl}),this.append(m)),g&&(this.updateRange(h,e),m.append(g),g.categoryIx=s,g.category=i,g.series=n,g.seriesIx=r,g.owner=this,g.dataItem=p),this.points.push(g),f.push(g)}pointType(){return this.options.invertAxes?h0:Bp}splitValue(t){return[t.lower,t.q1,t.median,t.q3,t.upper]}updateRange(t,e){const s=e.series.axis;let i=this.splitValue(t).concat(this.filterOutliers(t.outliers));_(t.mean)&&(i=i.concat(t.mean));let n=this.valueAxisRanges[s]||{min:ft,max:_t};
1this.valueAxisRanges[s]={min:Math.min.apply(Math,i.concat([n.min])),max:Math.max.apply(Math,i.concat([n.max]))}}formatPointValue(t,e){const s=t.value;return this.chartService.format.auto(e,s.lower,s.q1,s.median,s.q3,s.upper,s.mean,t.category)}filterOutliers(t){const e=(t||[]).length,s=[];for(let i=0;i<e;i++){const n=t[i];_(n)&&null!==n&&s.push(n)}return s}supportsPointInactiveOpacity(){return!1}},g0=class p0 extends pp{getAxis(){const t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x}};class Cc extends q{constructor(t,e){super(e),this.plotArea=t,this.chartService=t.chartService,this._initFields(),this.render()}_initFields(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]}render(){this.traverseDataPoints(this.addValue.bind(this))}addErrorBar(t,e,s){const i=t.value[e],n=e+"Value",r=e+"ErrorLow",a=e+"ErrorHigh",{seriesIx:c,series:h}=s,d=t.options.errorBars,u=s[r],p=s[a];if(G(i)){let f;G(u)&&G(p)&&(f={low:u,high:p}),d&&_(d[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][c]=this.seriesErrorRanges[e][c]||new qu(d[n],h,e),f=this.seriesErrorRanges[e][c].getErrorRange(i,d[n])),f&&this.addPointErrorBar(f,t,e)}}addPointErrorBar(t,e,s){const{low:i,high:n}=t,{series:r,options:{errorBars:a}}=e,c=s===P,h={};e[s+"Low"]=i,e[s+"High"]=n,e.errorBars=e.errorBars||[];const d=new g0(i,n,c,this,r,a);e.errorBars.push(d),e.append(d),h[s]=i,this.updateRange(h,r),h[s]=n,this.updateRange(h,r)}addValue(t,e){const{x:s,y:i}=t,n=e.seriesIx,a=this.seriesMissingValues(this.options.series[n]),c=this.seriesPoints[n];let d,h=t;jt(s)&&jt(i)||(h=this.createMissingValue(h,a)),h&&(d=this.createPoint(h,e),d&&(Object.assign(d,e),this.addErrorBar(d,D,e),this.addErrorBar(d,P,e)),this.updateRange(h,e.series)),this.points.push(d),c.push(d)}seriesMissingValues(t){return t.missingValues}createMissingValue(){}updateRange(t,e){const s=this.chartService.intl,{xAxis:i,yAxis:n}=e;let{x:r,y:a}=t,c=this.xAxisRanges[i],h=this.yAxisRanges[n];jt(r)&&(c=this.xAxisRanges[i]=c||{min:ft,max:_t},zt(r)&&(r=Pt(s,r)),c.min=Math.min(c.min,r),c.max=Math.max(c.max,r)),jt(a)&&(h=this.yAxisRanges[n]=h||{min:ft,max:_t},zt(a)&&(a=Pt(s,a)),h.min=Math.min(h.min,a),h.max=Math.max(h.max,a))}evalPointOptions(t,e,s){const{series:i,seriesIx:n}=s,r={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory","ariaTemplate","ariaContent"]};let a=this._evalSeries[n];_(a)||(this._evalSeries[n]=a=Ue(t,{},r,!0));let c=t;return a&&(c=x({},t),Ue(c,{value:e,series:i,dataItem:s.dataItem},r)),c}pointType(){return Os}pointOptions(t,e){let s=this.seriesOptions[e];if(!s){const i=this.pointType().prototype.defaults;this.seriesOptions[e]=s=x({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return s}createPoint(t,e){const s=e.series;let i=this.pointOptions(s,e.seriesIx),n=e.color||s.color;i=this.evalPointOptions(i,t,e),ct(s.color)&&(n=i.color);const r=new Os(t,i);return r.color=n,this.append(r),r}seriesAxes(t){const{xAxis:e,yAxis:s}=t,i=this.plotArea,n=e?i.namedXAxes[e]:i.axisX,r=s?i.namedYAxes[s]:i.axisY;if(!n)throw new Error("Unable to locate X axis with name "+e);if(!r)throw new Error("Unable to locate Y axis with name "+s);return{x:n,y:r}}reflow(t){const e=this.points,s=!this.options.clip;let i=0;this.traverseDataPoints((n,r)=>{const a=e[i++],c=this.seriesAxes(r.series),h=c.x.getSlot(n.x,n.x,s),d=c.y.getSlot(n.y,n.y,s);if(a)if(h&&d){const u=this.pointSlot(h,d);a.reflow(u)}else a.visible=!1}),this.box=t}pointSlot(t,e){return new A(t.x1,e.y1,t.x2,e.y2)}traverseDataPoints(t){const{options:{series:e},seriesPoints:s}=this;for(let i=0;i<e.length;i++){const n=e[i];s[i]||(s[i]=[]);for(let a=0;a<n.data.length;a++){const{valueFields:c,fields:h}=this.plotArea.bindPoint(n,a);t(c,x({pointIx:a,series:n,seriesIx:i,dataItem:n.data[a],owner:this},h))}}}formatPointValue(t,e){const s=t.value;return this.chartService.format.auto(e,s.x,s.y)}animationPoints(){const t=this.points,e=[];for(let s=0;s<t.length;s++)e.push((t[s]||{}).marker);return e}}w(Cc,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),x(Cc.prototype,wr);const kr=Cc;class Tr extends Os{constructor(t,e){super(t,e),this.category=t.category}createHighlight(){const t=this.options.highlight,e=t.border,s=this.options.markers,i=this.box.center(),n=(s.size+s.border.width+e.width)/2,r=new et.A,a=new ye.A(new se.A([i.x,i.y+n/5+e.width/2],n+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:s.background,stops:[{offset:0,color:s.background,opacity:.3},{offset:1,color:s.background,opacity:0}
1]})}),c=new ye.A(new se.A([i.x,i.y],n),{stroke:{color:e.color||new xe.A(s.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:s.background,opacity:t.opacity}});return r.append(a,c),r}createFocusHighlight(t){const e=this.options.accessibility.highlight,s=this.options.markers,i=this.box.center();return new ye.A(new se.A([i.x,i.y],(s.size+s.border.width)/2+e.border.width/2),t)}}Tr.prototype.defaults=x({},Tr.prototype.defaults,{labels:{position:F},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),Tr.prototype.defaults.highlight.zIndex=void 0;const Op=Tr;class Vp extends kr{_initFields(){this._maxSize=_t,super._initFields()}addValue(t,e){null!==t.size&&(t.size>0||t.size<0&&e.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(t.size)),super.addValue(t,e)):(this.points.push(null),this.seriesPoints[e.seriesIx].push(null))}reflow(t){this.updateBubblesSize(t),super.reflow(t)}pointType(){return Op}createPoint(t,e){const s=e.series,n=e.pointIx*(oe/s.data.length),r={delay:n,duration:oe-n,type:mi};let a=e.color||s.color;t.size<0&&s.negativeValues.visible&&(a=O(s.negativeValues.color,a));let c=x({labels:{animation:{delay:n,duration:oe-n}}},this.pointOptions(s,e.seriesIx),{markers:{type:Nt,border:s.border,opacity:s.opacity,animation:r}});c=this.evalPointOptions(c,t,e),ct(s.color)&&(a=c.color),c.markers.background=a;const h=new Op(t,c);return h.color=a,this.append(h),h}updateBubblesSize(t){const{options:{series:e}}=this,s=Math.min(t.width(),t.height());for(let i=0;i<e.length;i++){const n=e[i],r=this.seriesPoints[i],h=(n.minSize||Math.max(.02*s,10))/2,d=(n.maxSize||.2*s)/2,u=Math.PI*h*h,g=(Math.PI*d*d-u)/this._maxSize;for(let m=0;m<r.length;m++){const v=r[m];if(v){const y=Math.abs(v.value.size)*g,C=Math.sqrt((u+y)/Math.PI),R=O(v.options.zIndex,0)+(1-C/d);x(v.options,{zIndex:R,markers:{size:2*C,zIndex:R},labels:{zIndex:R+1}})}}}}formatPointValue(t,e){const s=t.value;return this.chartService.format.auto(e,s.x,s.y,s.size,t.category)}createAnimation(){}createVisual(){}}w(Vp,{tooltip:{format:"{3}"},labels:{format:"{3}"}});const f0=Vp;class Fp extends Rt{}x(Fp.prototype,de);const m0=Fp;class Vs extends q{constructor(t,e){super(e),this.aboveAxis=this.options.aboveAxis,this.color=e.color||W,this.value=t}render(){const t=this.options;this._rendered||(this._rendered=!0,_(this.value.target)&&(this.target=new m0({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:j,align:Y}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createLabel(),this.createNote())}createLabel(){const e=this.options.labels;e.visible&&(this.label=this.createLabelElement(e),this.append(this.label))}createLabelElement(t){return new Mp(this.getLabelText(t),t,this.pointData())}getLabelText(t){let e=kt(t);return e?e(this.pointData()):this.formatValue(t.format)}reflow(t){this.render();const{options:e,target:s,owner:i}=this,n=e.invertAxes,r=i.seriesValueAxis(this.options),a=i.categorySlot(i.categoryAxis,e.categoryIx,r),c=r.getSlot(this.value.target),h=n?c:a,d=n?a:c;if(s){const p=new A(h.x1,d.y1,h.x2,d.y2);s.options.height=n?p.height():e.target.line.width,s.options.width=n?e.target.line.width:p.width(),s.reflow(p)}const u=this.label;u&&(u.options.aboveAxis=this.aboveAxis,u.reflow(t)),this.note&&this.note.reflow(t),this.box=t}createVisual(){super.createVisual(),this.addAccessibilityAttributesToVisual();const t=this.options,e=E.w.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:t.opacity},stroke:null});t.border.width>0&&e.options.set("stroke",{color:t.border.color||this.color,width:t.border.width,dashType:t.border.dashType,opacity:O(t.border.opacity,t.opacity)}),this.bodyVisual=e,Wt(e),this.visual.append(e)}createAnimation(){this.bodyVisual&&(this.animation=ie.create(this.bodyVisual,this.options.animation))}createHighlight(t){return E.w.fromRect(this.box.toRect(),t)}highlightVisual(){return this.bodyVisual}highlightVisualArgs(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}}formatValue(t){return this.owner.formatPointValue(this,t)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series}}overlapsBox(t){return this.box.overlaps(t)}getIndex(){return this.categoryIx}}Vs.prototype.tooltipAnchor=Ln.prototype.tooltipAnchor,Vs.prototype.createFocusHighlight=Ln.prototype.createFocusHighlight,w(Vs,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},labels:{visible:!1},tooltip:{format:"Current: {0}<br />Target: {1}"},notes:{label:{}},accessibility:{role:cs,className:hs,ariaRoleDescription:ds}}),x(Vs.prototype,de),x(Vs.prototype,Mi),x(Vs.prototype,Pi);const x0=Vs;class wc extends Bs{constructor(t,e){(function v0(o){const t=o.series;for(let e=0;e<t.length;e++){const s=t[e],i=s.data;i&&!Dt(i[0])&&!Jt(i[0])&&(s.data=[i])}})(e),super(t,e)}reflowCategories(t){const e=this.children,s=e.length;for(let i=0;i<s;i++)e[i].reflow(t[i])}plotRange(t){const s=this.seriesValueAxis(t.series),i=this.categoryAxisCrossingValue(s);return[i,t.value.current||i]}createPoint(t,e){const{categoryIx:s,series:i}=e,{options:n,children:r}=this,a=t.valueFields;let c=x({vertical:!n.invertAxes,overlay:i.overlay,categoryIx:s,invertAxes:n.invertAxes},i),h=t.fields.color||i.color;c=this.evalPointOptions(c,a,e),ct(i.color)&&(h=c.color);const d=new x0(a,c);d.color=h;let u=r[s];return u||(u=new Sr({vertical:n.invertAxes,gap:n.gap,spacing:n.spacing,rtl:!n.invertAxes&&(this.chartService||{}).rtl}),this.append(u)),u.append(d),d}updateRange(t,e){const{current:s,target:i}=t,n=e.series.axis;let r=this.valueAxisRanges[n];
1_(s)&&!isNaN(s)&&_(i&&!isNaN(i))&&(r=this.valueAxisRanges[n]=r||{min:ft,max:_t},r.min=Math.min(r.min,s,i),r.max=Math.max(r.max,s,i))}formatPointValue(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)}pointValue(t){return t.valueFields.current}aboveAxis(t){return t.value.current>0}createAnimation(){const t=this.points;this._setAnimationOptions();for(let e=0;e<t.length;e++){const s=t[e];s.options.animation=this.options.animation,s.createAnimation()}}}wc.prototype._setAnimationOptions=In.prototype._setAnimationOptions,w(wc,{animation:{type:re}});const y0=wc;class Np extends L.A{constructor(t,e){super(),this.chartService=t,this.options=x({},this.options,e)}getStyle(t,e){let{background:s,border:{color:i}}=t;if(e){const r=e.color||e.options.color;s=O(s,r),i=O(i,r)}const n=K(t.padding||{},"auto");return{backgroundColor:s,borderColor:i,font:t.font,color:t.color,opacity:t.opacity,borderWidth:oi(t.border.width),paddingTop:oi(n.top),paddingBottom:oi(n.bottom),paddingLeft:oi(n.left),paddingRight:oi(n.right)}}show(t,e,s){t.format=e.format;const i=this.getStyle(e,s);t.style=i;const n=new xe.A(i.backgroundColor);!_(e.color)&&!n.isDark()&&(t.className="k-chart-tooltip-inverse"),this.chartService.notify(cp,t),this.visible=!0}hide(){this.chartService&&this.chartService.notify(hp),this.visible=!1}destroy(){delete this.chartService}}w(Np,{border:{width:1},opacity:1});const Ac=Np;class zp extends Ac{constructor(t,e,s){super(t,s),this.crosshair=e,this.formatService=t.format,this.initAxisName()}initAxisName(){const t=this.crosshair.axis;let s;s=t.plotArea.categoryAxis?t.getCategory?"categoryAxis":"valueAxis":t.options.vertical?"yAxis":"xAxis",this.axisName=s}showAt(t){const{crosshair:{axis:e},options:s}=this;let i=e[s.stickyMode?"getCategory":"getValue"](t),n=i;s.format?n=this.formatService.auto(s.format,i):e.options.type===Me&&(n=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],i)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:n,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)}hide(){this.chartService.notify(hp,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})}getAnchor(){const{crosshair:t,options:{position:e,padding:s}}=this,i=!t.axis.options.vertical,n=t.line.bbox();let r,a,c;return i?(r=F,e===$?(a=j,c=n.bottomLeft().translate(0,s)):(a=$,c=n.topLeft().translate(0,-s))):(a=F,e===U?(r=Y,c=n.topLeft().translate(-s,0)):(r=U,c=n.topRight().translate(s,0))),{point:c,align:{horizontal:r,vertical:a}}}}w(zp,{padding:10});const b0=zp;class Up extends q{constructor(t,e,s){super(s),this.axis=e,this.stickyMode=e instanceof Ie;const i=this.options.tooltip;i.visible&&(this.tooltip=new b0(t,this,x({},i,{stickyMode:this.stickyMode})))}showAt(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)}hide(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()}moveLine(){const{axis:t,point:e}=this,s=t.options.vertical,i=this.getBox(),n=s?P:D,r=new H.A(i.x1,i.y1);let a;if(a=s?new H.A(i.x2,i.y1):new H.A(i.x1,i.y2),e)if(this.stickyMode){const c=t.getSlot(t.pointCategoryIndex(e));r[n]=a[n]=c.center()[n]}else r[n]=a[n]=e[n];this.box=i,this.line.moveTo(r).lineTo(a)}getBox(){const t=this.axis,e=t.pane.axes,s=e.length,i=t.options.vertical,n=t.lineBox().clone(),r=i?D:P;let a;for(let c=0;c<s;c++){const h=e[c];h.options.vertical!==i&&(a?a.wrap(h.lineBox()):a=h.lineBox().clone())}return n[r+1]=a[r+1],n[r+2]=a[r+2],n}createVisual(){super.createVisual();const t=this.options;this.line=new E.w({stroke:{color:t.color,width:t.width,opacity:t.opacity,dashType:t.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)}destroy(){this.tooltip&&this.tooltip.destroy(),super.destroy()}}w(Up,{color:pt,width:2,zIndex:-1,tooltip:{visible:!1}});const _0=Up;class Hp extends q{constructor(t,e){super(t),this.pane=e}shouldClip(){const t=this.children,e=t.length;for(let s=0;s<e;s++)if(!0===t[s].options.clip)return!0;return!1}_clipBox(){return this.pane.chartsBox()}createVisual(){if(this.visual=new et.A({zIndex:0}),this.shouldClip()){const e=(this.clipBox=this._clipBox()).toRect(),s=E.w.fromRect(e);Wt(s),this.visual.clip(s),this.unclipLabels()}}stackRoot(){return this}unclipLabels(){const{children:t,clipBox:e}=this;for(let s=0;s<t.length;s++){const i=t[s].points||{},n=i.length;for(let r=0;r<n;r++){const a=i[r];if(a&&!1!==a.visible&&a.overlapsBox&&a.overlapsBox(e))if(a.unclipElements)a.unclipElements();else{const{label:c,note:h}=a;c&&c.options.visible&&(c.alignToClipBox&&c.alignToClipBox(e),c.options.noclip=!0),h&&h.options.visible&&(h.options.noclip=!0)}}}}destroy(){super.destroy(),delete this.parent}}Hp.prototype.isStackRoot=!0;const C0=Hp;class Rn extends os{constructor(t){super(t),this.id=function A0(){return"pane"+w0++}(),this.createTitle(),this.content=new q,this.chartContainer=new C0({},this),this.append(this.content),this.axes=[],this.charts=[]}createTitle(){let t=this.options.title;Jt(t)&&(t=x({},t,{align:t.position,position:j})),this.title=pn.buildTitle(t,Rn.prototype.options.title),this.title&&this.append(this.title)}appendAxis(t){this.content.append(t),this.axes.push(t),t.pane=this}appendAxisAt(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this}appendChart(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this}empty(){const t=this.parent;if(t){for(let e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(let e=0;e<this.charts.length;e++)t.removeChart(this.charts[e])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]}reflow(t){let e;mt(this.children)===this.content&&(e=this.children.pop()),super.reflow(t),e&&this.children.push(e),this.title&&(this.contentBox.y1+=this.title.box.height())}visualStyle(){const t=super.visualStyle();return t.zIndex=-10,t}renderComplete(){this.options.visible&&this.createGridLines()}stackRoot(){return this}clipRoot(){return this}createGridLines(){const t=this.axes,e=t.concat(this.parent.axes),s=[],i=[];for(let n=0;n<t.length;n++){const r=t[n],a=r.options.vertical,c=a?s:i;for(let h=0;h<e.length;h++)if(0===c.length){const d=e[h];a!==d.options.vertical&&ks(c,r.createGridLines(d))}}}refresh(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()}chartsBox(){const t=this.axes,e=t.length,s=new A;for(let i=0;i<e;i++){const n=t[i],r=n.options.vertical?P:D,a=n.lineBox();s[r+1]=a[r+1],s[r+2]=a[r+2]}if(0===s.x2){const i=this.parent.axes,n=i.length;for(let r=0;r<n;r++){const a=i[r];if(!a.options.vertical){const c=a.lineBox();s.x1=c.x1,s.x2=c.x2}}}return s}clipBox(){return this.chartContainer.clipBox}notifyRender(){const t=this.getService();t&&t.notify("paneRender",{pane:new Ul(this),index:this.paneIndex,name:this.options.name})}}let w0=1;Rn.prototype.isStackRoot=!0,w(Rn,{zIndex:-1,shrinkToFit:!0,title:{align:U},visible:!0});const S0=Rn;class jp extends q{constructor(t,e,s){super(e),this.initFields(t,e),this.series=t,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.data=[],this.axes=[],this.crosshairs=[],this.chartService=s,this.originalOptions=e,this.originalSeries=t,this._bindCache=new WeakMap,this.createPanes(),this.render(),this.createCrosshairs()}initFields(){}initSeries(){const t=this.series;for(let e=0;e<t.length;e++)t[e].index=e}bindPoint(t,e,s){let i=this._bindCache.get(t);i||(i=[],this._bindCache.set(t,i));let n=i[e];return n||(n=i[e]=rt.current.bindPoint(t,e,s)),n}createPanes(){const t=this.options.title||{},e=this.options.paneDefaults,s=this.options.panes||[],i=Math.max(s.length,1),n=[],r=x({title:{color:t.color}},e);for(let a=0;a<i;a++){const c=x({},r,s[a]);zt(c.title)&&(c.title=x({text:c.title},r.title));const h=new S0(c);h.paneIndex=a,n.push(h),this.append(h)}this.panes=n}crosshairOptions(t){return t.options.crosshair}createCrosshairs(t=this.panes){for(let e=0;e<t.length;e++){const s=t[e];for(let i=0;i<s.axes.length;i++){const n=s.axes[i],r=this.crosshairOptions(n);if(r&&r.visible){const a=new _0(this.chartService,n,r);this.crosshairs.push(a),s.content.append(a)}}}}removeCrosshairs(t){const e=this.crosshairs,s=t.axes;for(let i=e.length-1;i>=0;i--)for(let n=0;n<s.length;n++)if(e[i].axis===s[n]){e.splice(i,1);break}}hideCrosshairs(){const t=this.crosshairs;for(let e=0;e<t.length;e++)t[e].hide()}findPane(t){const e=this.panes;let s;for(let i=0;i<e.length;i++)if(e[i].options.name===t){s=e[i];break}return s||e[0]}findPointPane(t){const e=this.panes;let s;for(let i=0;i<e.length;
1i++)if(e[i].box.containsPoint(t)){s=e[i];break}return s}appendAxis(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this}removeAxis(t){const e=[];for(let s=0;s<this.axes.length;s++){const i=this.axes[s];t!==i?e.push(i):i.destroy()}this.axes=e}appendChart(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)}removeChart(t){const e=[];for(let s=0;s<this.charts.length;s++){const i=this.charts[s];i!==t?e.push(i):i.destroy()}this.charts=e}addToLegend(t){const e=t.length,s=this.options.legend,i=s.labels||{},n=s.inactiveItems||{},r=n.labels||{},a=[];for(let c=0;c<e;c++){const h=t[c],d=!1!==h.visible;if(!1===h.visibleInLegend)continue;let u=h.name;const p=d?kt(i):kt(r)||kt(i);p&&(u=p({text:jt(u)?u:"",series:h}));const f=h._defaults;let m,v,g=h.color;ct(g)&&f&&(g=f.color),d?(m={},v=g):(m={color:r.color,font:r.font},v=n.markers.color),jt(u)&&""!==u&&a.push({text:u,labels:m,markerColor:v,series:h,active:d})}ks(s.data,a)}groupAxes(t){const e=[],s=[];for(let i=0;i<t.length;i++){const n=t[i].axes;for(let r=0;r<n.length;r++){const a=n[r];a.options.vertical?s.push(a):e.push(a)}}return{x:e,y:s,any:e.concat(s)}}groupSeriesByPane(){const t=this.series,e={};for(let s=0;s<t.length;s++){const i=t[s],n=this.seriesPaneName(i);e[n]?e[n].push(i):e[n]=[i]}return e}filterVisibleSeries(t){const e=[];for(let s=0;s<t.length;s++){const i=t[s];!1!==i.visible&&e.push(i)}return e}reflow(t){const s=this.panes,i=K(this.options.plotArea.margin);this.box=t.clone().unpad(i),this.reflowPanes(),this.detachLabels(),this.reflowAxes(s),this.reflowCharts(s)}redraw(t){const e=[].concat(t);this.initSeries();const s=this.getRoot();s&&s.cleanGradients();for(let i=0;i<e.length;i++)this.removeCrosshairs(e[i]),e[i].empty();this._bindCache=new WeakMap,this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(let i=0;i<e.length;i++)e[i].refresh()}axisCrossingValues(t,e){const s=t.options,i=[].concat(s.axisCrossingValues||s.axisCrossingValue),n=e.length-i.length,r=i[0]||0;for(let a=0;a<n;a++)i.push(r);return i}alignAxisTo(t,e,s,i){const n=t.getSlot(s,s,!0),r=t.options.reverse?2:1,a=e.getSlot(i,i,!0),c=e.options.reverse?2:1,h=t.box.translate(a[D+c]-n[D+r],a[P+c]-n[P+r]);t.pane!==e.pane&&h.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(h)}alignAxes(t,e){const s=t[0],i=e[0],n=this.axisCrossingValues(s,e),r=this.axisCrossingValues(i,t),a={},c={},h={},d={};for(let u=0;u<e.length;u++){const p=e[u],f=p.pane,g=f.id,m=!1!==p.options.visible,v=Mr(t,f)||s;let y=n;
1if(v!==s&&(y=this.axisCrossingValues(v,e)),this.alignAxisTo(p,v,r[u],y[u]),p.options._overlap)continue;k(p.lineBox().x1)===k(v.lineBox().x1)&&(a[g]&&p.reflow(p.box.alignTo(a[g].box,U).translate(-p.options.margin,0)),m&&(a[g]=p)),k(p.lineBox().x2)===k(v.lineBox().x2)&&(p._mirrored||(p.options.labels.mirror=!p.options.labels.mirror,p._mirrored=!0),this.alignAxisTo(p,v,r[u],y[u]),c[g]&&p.reflow(p.box.alignTo(c[g].box,Y).translate(p.options.margin,0)),m&&(c[g]=p));const C=Mr(e,f)||i;C!==p&&(p.alignTo(C),p.reflow(p.box))}for(let u=0;u<t.length;u++){const p=t[u],f=p.pane,g=f.id,m=!1!==p.options.visible,v=Mr(e,f)||i;let y=r;v!==i&&(y=this.axisCrossingValues(v,t)),this.alignAxisTo(p,v,n[u],y[u]),!p.options._overlap&&(k(p.lineBox().y1)===k(v.lineBox().y1)&&(p._mirrored||(p.options.labels.mirror=!p.options.labels.mirror,p._mirrored=!0),this.alignAxisTo(p,v,n[u],y[u]),h[g]&&p.reflow(p.box.alignTo(h[g].box,j).translate(0,-p.options.margin)),m&&(h[g]=p)),k(p.lineBox().y2,3)===k(v.lineBox().y2,3)&&(d[g]&&p.reflow(p.box.alignTo(d[g].box,$).translate(0,p.options.margin)),m&&(d[g]=p)),0!==u&&(p.alignTo(s),p.reflow(p.box)))}}shrinkAxisWidth(t){const e=this.groupAxes(t).any,s=Sc(e);let i=0;for(let n=0;n<t.length;n++){const r=t[n];r.axes.length>0&&(i=Math.max(i,s.width()-r.contentBox.width()))}if(0!==i)for(let n=0;n<e.length;n++){const r=e[n];r.options.vertical||r.reflow(r.box.shrink(i,0))}}shrinkAxisHeight(t){let e;for(let s=0;s<t.length;s++){const i=t[s],n=i.axes,r=Math.max(0,Sc(n).height()-i.contentBox.height());if(0!==r){for(let a=0;a<n.length;a++){const c=n[a];c.options.vertical&&c.reflow(c.box.shrink(0,r))}e=!0}}return e}fitAxes(t){const e=this.groupAxes(t).any;let s=0;for(let i=0;i<t.length;i++){const n=t[i],r=n.axes,a=n.contentBox;if(r.length>0){const c=Sc(r),h=Math.max(a.y1-c.y1,a.y2-c.y2);s=Math.max(s,a.x1-c.x1);for(let d=0;d<r.length;d++){const u=r[d];u.reflow(u.box.translate(0,h))}}}for(let i=0;i<e.length;i++){const n=e[i];n.reflow(n.box.translate(s,0))}}reflowAxes(t){const e=this.groupAxes(t);for(let s=0;s<t.length;s++)this.reflowPaneAxes(t[s]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))}autoRotateAxisLabels(t){const{panes:e}=this,s=M0(e);let i;for(let n=0;n<s.length;n++)s[n].autoRotateLabels()&&(i=!0);if(i){for(let n=0;n<e.length;n++)this.reflowPaneAxes(e[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(e))}}reflowPaneAxes(t){const e=t.axes,s=e.length;if(s>0)for(let i=0;i<s;i++)e[i].reflow(t.contentBox)}reflowCharts(t){const e=this.charts,s=e.length,i=this.box;for(let n=0;n<s;n++){const r=e[n].pane;(!r||N(r,t))&&e[n].reflow(i)}}reflowPanes(){const{box:t,panes:e}=this,s=e.length;let i=t.height(),n=0,r=t.y1;for(let a=0;a<s;a++){const c=e[a],h=c.options.height;if(c.options.width=t.width(),c.options.height){if(h.indexOf&&h.indexOf("%")){const d=parseInt(h,10)/100;c.options.height=d*t.height()}c.reflow(t.clone()),i-=c.options.height}else n++}for(let a=0;a<s;a++){const c=e[a];c.options.height||(c.options.height=i/n)}for(let a=0;a<s;a++){const c=e[a],h=t.clone().move(t.x1,r);c.reflow(h),r+=c.options.height}}backgroundBox(){const t=this.axes,e=t.length;let s;for(let i=0;i<e;i++){const n=t[i];for(let r=0;r<e;r++){const a=t[r];if(n.options.vertical!==a.options.vertical){const c=n.lineBox().clone().wrap(a.lineBox());s=s?s.wrap(c):c}}}return s||this.box}chartsBoxes(){const t=this.panes,e=[];for(let s=0;s<t.length;s++)e.push(t[s].chartsBox());return e}addBackgroundPaths(t){const e=this.chartsBoxes();for(let s=0;s<e.length;s++)t.paths.push(E.w.fromRect(e[s].toRect()))}backgroundContainsPoint(t){const e=this.chartsBoxes();for(let s=0;s<e.length;s++)if(e[s].containsPoint(t))return!0}createVisual(){super.createVisual();const t=this.options.plotArea;let{opacity:e,background:s,border:i={}}=t;(function T0(o){return""===o||null===o||"none"===o||"transparent"===o||!_(o)})(s)&&(s=W,e=0);const n=this._bgVisual=new E.P({fill:{color:s,opacity:e},stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType},zIndex:-1});
1this.addBackgroundPaths(n),this.appendVisual(n)}pointsByCategoryIndex(t){const e=this.charts,s=[];if(null!==t)for(let i=0;i<e.length;i++){if("_navigator"===e[i].pane.options.name)continue;const r=e[i].categoryPoints[t];if(r&&r.length)for(let a=0;a<r.length;a++){const c=r[a];c&&_(c.value)&&null!==c.value&&s.push(c)}}return s}pointsBySeriesIndex(t){return this.filterPoints(function(e){return e.series.index===t})}pointsByPointIndex(t){return this.filterPoints(function(e){return e.getIndex()===t})}pointsBySeriesName(t){return this.filterPoints(function(e){return e.series.name===t})}filterPoints(t){const e=this.charts,s=[];for(let i=0;i<e.length;i++){const r=e[i].points;for(let a=0;a<r.length;a++){const c=r[a];c&&!1!==c.visible&&t(c)&&s.push(c)}}return s}findPoint(t){const e=this.charts;for(let s=0;s<e.length;s++){const n=e[s].points;for(let r=0;r<n.length;r++){const a=n[r];if(a&&!1!==a.visible&&t(a))return a}}}paneByPoint(t){const e=this.panes;for(let s=0;s<e.length;s++){const i=e[s];if(i.box.containsPoint(t))return i}}detachLabels(){const t=this.groupAxes(this.panes),e=t.x,s=t.y;this.detachAxisGroupLabels(s,e),this.detachAxisGroupLabels(e,s)}detachAxisGroupLabels(t,e){let s=0;for(let i=0;i<t.length;i++){const n=t[i],r=n.pane,a=Mr(e,r)||e[0],h=this.createLabelAxis(n,i+s,a);if(h){s++;const d=r.axes.indexOf(n)+s;r.appendAxisAt(h,d)}}}createLabelAxis(t,e,s){const i=t.options.labels,n=i.position;if(n!==sn&&n!==Ro||!1===i.visible)return null;const c=this.groupAxes(this.panes),d=this.axisCrossingValues(s,s.options.vertical?c.x:c.y),u=n===sn,p=s.range(),f=u?p.max:p.min;if(I(d[e],p.min,p.max)-f==0)return null;d.splice(e+1,0,f),s.options.axisCrossingValues=d;const m=t.clone();return t.clear(),m.options.name=void 0,m.options.line.visible=!1,m.options.crosshair=void 0,m.options.notes=void 0,m.options.plotBands=void 0,m}isTrendline(t){return t&&N(t.type,Ai)}trendlineFactory(){}createTrendlineSeries(){const t=[];return this.series=this.series.map(e=>{if(!this.isTrendline(e))return e;const s=this.seriesByName(e.for);if(!s)throw new Error(`Invalid Configuration: Unable to locate linked series "${e.for}" for trendline "${e.name}".`);const i=rt.current.valueFields(s),n=mt(i),r=this.trendlineFactory(Object.assign({},{field:n},e),s);return r&&(!1===s.visible&&(r.visible=!1),r.color===yd&&(r.color=s.color),t.push(r)),r}).filter(e=>null!==e),t}seriesByName(t){return this.series.find(e=>e.name===t)}getFirstPoint(){return this.pointsBySeriesIndex(0)[0]}getPointBelow(t){return this._getNextPoint(t,this._pointsByVertical,1)}getPointAbove(t){return this._getNextPoint(t,this._pointsByVertical,-1)}getPointToTheRight(t){return this._getNextPoint(t,this._pointsByHorizontal,1)}getPointToTheLeft(t){return this._getNextPoint(t,this._pointsByHorizontal,-1)}_getNextPoint(t,e,s){let i=e.call(this,t),r=i.indexOf(t)+s;const a=c=>{let h,d=0;do{d+=c,h=e.call(this,t,d)}while(0===h.length);return h};return r<0?(i=a(-1),i.at(-1)):r>=i.length?(i=a(1),i.at(0)):i[r]}_pointsByVertical(t){return this.pointsByPointIndex(t.getIndex())}_pointsByHorizontal(t,e=0){let s=Oo(t.series.index+e,this.series.length);return this.pointsBySeriesIndex(s)}}function k0(o){return!o.pane.axes.some(t=>t.options.vertical===o.options.vertical&&t!==o&&!1!==t.options.visible)}function Sc(o){const t=o.length;let e;for(let s=0;s<t;s++){const i=o[s],n=!1!==i.options.visible;if(n||k0(i)){const r=n?i.contentBox():i.lineBox();e?e.wrap(r):e=r.clone()}}return e||new A}function Mr(o,t){for(let e=0;e<o.length;e++){const s=o[e];if(s&&s.pane===t)return s}}const M0=o=>o.reduce((t,e)=>t.concat(e.axes),[]);w(jp,{series:[],plotArea:{margin:{}},background:"",border:{color:pt,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const us=jp,Bn={hover:function(o,t){this._dispatchEvent(o,t,lp)},click:function(o,t){this._dispatchEvent(o,t,"plotAreaClick")}};function D0(o,t,e){let s=t,i=o;if(o.indexOf(".")>-1){const n=o.split(".");for(;n.length>1;)i=n.shift(),_(s[i])||(s[i]={}),s=s[i];i=n.shift()}s[i]=e}const P0=class E0 extends L.A{constructor(t,e,s){super();const i=e.canonicalFields(t),n=e.valueFields(t),r=e.sourceFields(t,i),a=this._seriesFields=[],c=s.query(t.type),h=t.aggregate||c;this._series=t,this._binder=e;for(let d=0;d<i.length;d++){const u=i[d];let p;if(Jt(h))p=h[u];else{if(0!==d&&!N(u,n))break;p=h}p&&a.push({canonicalName:u,name:r[d],transform:ct(p)?p:__[p]})}}aggregatePoints(t,e){const{_series:s,_seriesFields:i}=this,n=this._bindPoints(t||[]),r=n.dataItems[0];let a={};if(r&&!G(r)&&!Dt(r)){const c=function(){};c.prototype=r,a=new c}for(let c=0;c<i.length;c++){const h=i[c],d=this._bindField(n.values,h.canonicalName),u=h.transform(d,s,n.dataItems,e);if(!(null===u||!Jt(u)||_(u.length)||u instanceof Date)){a=u;break}_(u)&&D0(h.name,a,u)}return a}_bindPoints(t){const{_binder:e,_series:s}=this,i=[],n=[];for(let r=0;r<t.length;r++){const a=t[r];i.push(e.bindPoint(s,a)),n.push(s.data[a])}return{values:i,dataItems:n}}_bindField(t,e){const s=[],i=t.length;for(let n=0;n<i;n++){const r=t[n],a=r.valueFields;let c;c=_(a[e])?a[e]:r.fields[e],s.push(c)}return s}};class kc extends L.A{constructor(){super(),this._defaults={}}register(t,e){for(let s=0;s<t.length;s++)this._defaults[t[s]]=e}query(t){return this._defaults[t]}}
1kc.current=new kc;const Fs=kc;class Tc extends Ln{createLabel(){const t=this.options.labels,e=x({},t,t.from),s=x({},t,t.to);e.visible&&(this.labelFrom=this.createLabelElement(e),this.append(this.labelFrom)),s.visible&&(this.labelTo=this.createLabelElement(s),this.append(this.labelTo))}reflow(t){this.render();const{labelFrom:e,labelTo:s,value:i}=this;this.box=t,e&&(e.options.aboveAxis=i.from>i.to,e.reflow(t)),s&&(s.options.aboveAxis=i.to>i.from,s.reflow(t)),this.note&&this.note.reflow(t)}}Tc.prototype.defaults=x({},Tc.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const L0=Tc;class Gp extends In{pointType(){return L0}pointValue(t){return t.valueFields}formatPointValue(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)}plotRange(t){return t?[t.value.from,t.value.to]:0}updateRange(t,e){const s=e.series.axis,{from:i,to:n}=t;let r=this.valueAxisRanges[s];null!==t&&G(i)&&G(n)&&(r=this.valueAxisRanges[s]=r||{min:ft,max:_t},r.min=Math.min(r.min,i),r.max=Math.max(r.max,i),r.min=Math.min(r.min,n),r.max=Math.max(r.max,n))}aboveAxis(t){const e=t.value;return e.from<e.to}}Gp.prototype.plotLimits=Bs.prototype.plotLimits;const I0=Gp,Xp=class R0 extends Os{aliasFor(){return this.parent}};class Er extends q{constructor(t,e){super(),this.value=t,this.options=e,this.aboveAxis=O(this.options.aboveAxis,!0),this.tooltipTracking=!0,this._id=cn(),this.initLabelsFormat()}render(){if(this._rendered)return;this._rendered=!0;const{markers:t,labels:e}=this.options,s=this.value,i=this.fromPoint=new Xp(s,x({},this.options,{labels:e.from,markers:t.from})),n=this.toPoint=new Xp(s,x({},this.options,{labels:e.to,markers:t.to}));this.copyFields(i),this.copyFields(n),this.append(i),this.append(n)}reflow(t){this.render();const{from:e,to:s}=t;this.positionLabels(e,s),this.fromPoint.reflow(e),this.toPoint.reflow(s),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())}createHighlight(){const t=new et.A;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t}highlightVisual(){return this.visual}highlightVisualArgs(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}}createFocusHighlight(){const t=new et.A;return t.append(this.fromPoint.createFocusHighlight()),t.append(this.toPoint.createFocusHighlight()),t}tooltipAnchor(){const t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){const s=this.box,i=s.center(),n=U;let r,a,c;return this.options.vertical?(r=i.x,a=s.y1-5,c=$):(r=s.x2+5,a=i.y,c=F),{point:new V(r,a),align:{horizontal:n,vertical:c}}}}formatValue(t){return this.owner.formatPointValue(this,t)}overlapsBox(t){return this.box.overlaps(t)}unclipElements(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()}initLabelsFormat(){const t=this.options.labels;t.format||((!t.from||!t.from.format)&&(t.from=Object.assign({},t.from,{format:"{0}"})),(!t.to||!t.to.format)&&(t.to=Object.assign({},t.to,{format:"{1}"})))}positionLabels(t,e){const{labels:s,vertical:i}=this.options;if("auto"===s.position){let n,r;i?e.y1<=t.y1?(r=gr,n=Xl):(r=Xl,n=gr):e.x1<=t.x1?(r=U,n=Y):(r=Y,n=U),(!s.from||!s.from.position)&&(this.fromPoint.options.labels.position=n),(!s.to||!s.to.position)&&(this.toPoint.options.labels.position=r)}}copyFields(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner}focusVisual(){this.fromPoint.focusVisual()}clearFocusFromVisual(){this.toPoint.clearFocusFromVisual()}getIndex(){return this.categoryIx}}x(Er.prototype,de),x(Er.prototype,Mi),Er.prototype.defaults={markers:{visible:!1,background:W,size:8,type:Nt,border:{width:2},opacity:1},labels:{visible:!1,margin:K(3),padding:K(4),animation:{type:rs,delay:oe},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:W,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"},accessibility:{role:cs,className:hs,ariaRoleDescription:ds}};const Yp=Er,Mc=class V0 extends Di{createStrokeSegments(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))}stackSegments(){let t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t}createStroke(t){const e=new E.w(t),s=new E.w(t);
1e.segments.push.apply(e.segments,this.strokeSegments()),s.segments.push.apply(s.segments,this.stackSegments()),this.visual.append(e),this.visual.append(s)}hasStackSegment(){return!0}fromPoints(){return this.linePoints.map(t=>t.fromPoint)}toPoints(){return this.linePoints.map(t=>t.toPoint)}},N0=class F0 extends Mc{createStrokeSegments(){return this.createCurveSegments(this.toPoints())}stackSegments(){let t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t}createCurveSegments(t){return(new dr).process(this.toGeometryPoints(t))}};class $p extends Mc{createStrokeSegments(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))}stackSegments(){let t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints())),t.reverse()),t}}x($p.prototype,pc);const z0=$p;class Zp extends Bs{render(){super.render(),this.renderSegments()}pointType(){return Yp}createPoint(t,e){const{series:s,seriesIx:i}=e;let n=t.valueFields;if(!jt(n.from)&&!jt(n.to)){if(this.seriesMissingValues(s)!==Oe)return null;n={from:0,to:0}}let r=this.pointOptions(s,i);r=this.evalPointOptions(r,n,e);let a=t.fields.color||s.color;ct(s.color)&&(a=r.color);const c=new Yp(n,r);return c.color=a,this.append(c),c}createSegment(t,e,s){const i=(e.line||{}).style;let n;return n="smooth"===i?N0:"step"===i?z0:Mc,new n(t,e,s)}plotRange(t,e){return t?[t.value.from,t.value.to]:[e,e]}valueSlot(t,e){const s=t.getSlot(e[0],e[0],!this.options.clip),i=t.getSlot(e[1],e[1],!this.options.clip);if(s&&i)return{from:s,to:i}}pointSlot(t,e){const{from:s,to:i}=e;let n,r;return this.options.invertAxes?(n=new A(s.x1,t.y1,s.x2,t.y2),r=new A(i.x1,t.y1,i.x2,t.y2)):(n=new A(t.x1,s.y1,t.x2,s.y2),r=new A(t.x1,i.y1,t.x2,i.y2)),{from:n,to:r}}addValue(t,e){const s=t.valueFields;G(s.from)||(s.from=s.to),G(s.to)||(s.to=s.from),super.addValue(t,e)}updateRange(t,e){if(null!==t&&G(t.from)&&G(t.to)){const s=e.series.axis,i=this.valueAxisRanges[s]=this.valueAxisRanges[s]||{min:ft,max:_t},{from:n,to:r}=t;i.min=Math.min(i.min,n,r),i.max=Math.max(i.max,n,r)}}formatPointValue(t,e){const s=t.value;return this.chartService.format.auto(e,s.from,s.to)}animationPoints(){const t=this.points,e=[];for(let s=0;s<t.length;s++){const i=t[s];i&&(e.push((i.fromPoint||{}).marker),e.push((i.toPoint||{}).marker))}return e.concat(this._segments)}}x(Zp.prototype,fc,wr);const U0=Zp,j0=class H0 extends yc{reflow(t){const{options:e,value:s,owner:i}=this,n=i.seriesValueAxis(e),r=[],a=[],c=[],h=n.getSlot(s.low,s.high),d=n.getSlot(s.open,s.open),u=n.getSlot(s.close,s.close);d.x1=u.x1=h.x1=t.x1,d.x2=u.x2=h.x2=t.x2;const p=h.center().x;r.push([d.x1,d.y1]),r.push([p,d.y1]),a.push([p,u.y1]),a.push([u.x2,u.y1]),c.push([p,h.y1]),c.push([p,h.y2]),this.lines=[r,a,c],this.box=h.clone().wrap(d.clone().wrap(u)),this.reflowNote()}createBody(){}},X0=class G0 extends bc{pointType(){return j0}};class Qp extends q{constructor(t,e,s){super(),this.from=t,this.to=e,this.series=s}linePoints(){const t=this.from,{from:{box:e},to:{box:s}}=this,i=[];if(t.isVertical){const n=t.aboveAxis?e.y1:e.y2;i.push([e.x1,n],[s.x2,n])}else{const n=t.aboveAxis?e.x2:e.x1;i.push([n,e.y1],[n,s.y2])}return i}createVisual(){super.createVisual();const t=this.series.line||{},e=E.w.fromPoints(this.linePoints(),{stroke:{color:t.color,width:t.width,opacity:t.opacity,dashType:t.dashType}});Wt(e),this.visual.append(e)}}w(Qp,{animation:{type:rs,delay:oe}});const W0=Qp,$0=class Y0 extends In{render(){super.render(),this.createSegments()}traverseDataPoints(t){const e=this.options.series,s=cc(e),i=!this.options.invertAxes;for(let n=0;n<e.length;n++){const r=e[n];let a=0,c=0;for(let h=0;h<s;h++){const d=rt.current.bindPoint(r,h),u=d.valueFields.value,p=d.fields.summary;let g,f=a;p?"total"===p.toLowerCase()?(d.valueFields.value=a,f=0,g=a):(d.valueFields.value=c,g=f-c,c=0):G(u)&&(c+=u,a+=u,g=a),t(d,{category:this.categoryAxis.categoryAt(h),categoryIx:h,series:r,seriesIx:n,total:a,runningTotal:c,from:f,to:g,isVertical:i})}}}updateRange(t,e){super.updateRange({value:e.to},e)}aboveAxis(t){return t.value>=0}plotRange(t){return[t.from,t.to]}createSegments(){const t=this.options.series,e=this.seriesPoints,s=this.segments=[];for(let i=0;i<t.length;i++){const n=t[i],r=e[i];if(r){let a;for(let c=0;c<r.length;c++){const h=r[c];if(h&&a){const d=new W0(a,h,n);s.push(d),this.append(d)}a=h}}}}},Kp=function Z0(o,t,e){const s=o[String(t)];return s?s(e):null},ps=function Q0(o,t){let a,c,e=0,s=0,i=0,n=0,r=0,h=Number.MAX_VALUE,d=Number.MIN_VALUE;for(let u=0;u<o.length;u++){const p=o[u],{xValue:f,yValue:g}=t(p);isFinite(f)&&null!==f&&isFinite(g)&&null!==g&&(h=Math.min(f,h),d=Math.max(f,d),r++,e+=f,s+=g,i+=Math.pow(f,2),n+=f*g)}return r>0&&(a=(r*n-e*s)/(r*i-Math.pow(e,2)),c=(s-a*e)/r),{slope:a,intercept:c,count:r,xMin:h,xMax:d}},On=(o,t)=>o.every(({valueFields:e})=>!jt(e[t])||e[t]>0),Vn=function K0(o,t){const e=[],s=t.totalRangeIndices(),i=t.currentRangeIndices(),n={min:Math.floor(Math.max(i.min-1,s.min)),max:Math.ceil(Math.min(i.max+2,s.max))};for(let r=n.min;r<n.max;r++){const a=r+1;e[r]={category:t.categoryAt(r,!0),value:o(a)}}return e},qp=function hC(o,t,e){const s=[],i=[],n=Math.max(2,e)-1;let r=0,a=0;for(let c=0;c<o.length;c++){const h=o[c],{xValue:d,yValue:u}=t(h);if(isFinite(u)&&null!==u?(i.push(u),a+=u,r=Math.max(c,r)):i.push(null),c>=n){const p=i.filter(g=>null!==g).length,f=i.shift()||0;if(p>0){s.push([d,a/p]),a-=f;continue}}s.push([d,null])}return s.slice(0,r+1)},tg=function xC(o,t,e){let s=Math.min(Math.max(e||1,1),6)+1,i=new jd,n=new jd,r=0,a=Number.MAX_VALUE,c=Number.MIN_VALUE,h=u=>u,d=[];for(let u=0;u<o.length;u++){const p=o[u];let{xValue:f,yValue:g}=t(p);if(isFinite(f)&&null!==f&&isFinite(g)&&null!==g){a=Math.min(f,a),c=Math.max(f,c),r++,n.set(u,0,g),i.set(u,0,1),i.set(u,1,f);for(let m=2;m<=s;m++)i.set(u,m,Math.pow(i.get(u,1),m))}else i.set(u,0,0)}return i.width=Math.min(s,r),r>0&&(d=function vC(o,t){const e=o.transpose(),s=e.multiply(o).inverse().multiply(e).multiply(t),i=[];for(let n=0;n<s.height;n++)i.push(s.get(n,0));return i}(i,n),h=u=>d.reduce((p,f,g)=>p+f*Math.pow(u,g),0)),{coefficients:d,count:r,valueMapper:h,xMin:a,xMax:c}},Ns={};Ns[Kl]=function q0(o){const{options:t,categoryAxis:e,seriesValues:s}=o,i=function tC({seriesValues:o,categoryAxis:t,options:e}){const s=o();if(!On(s,e.field))return null;let{slope:i,intercept:n,count:r}=ps(s,(o=>({categoryIx:t,valueFields:e})=>({xValue:t+1,yValue:Math.log(e[o])}
1))(e.field));if(r>0){const a=Math.exp(n),c=i;return Vn(h=>a*Math.exp(c*h),t)}return null}({seriesValues:s,categoryAxis:e,options:t});return i?Object.assign({},t,{type:"line",data:i,categoryField:"category",field:"value"}):null},Ns[ql]=function sC(o){const{options:t,categoryAxis:e,seriesValues:s}=o,i=function nC({seriesValues:o,categoryAxis:t,options:e}){const{slope:s,intercept:i,count:n}=ps(o(),(o=>({categoryIx:t,valueFields:e})=>({xValue:t+1,yValue:e[o]}))(e.field));return n>0?Vn(r=>s*r+i,t):null}({seriesValues:s,categoryAxis:e,options:t});return i?Object.assign({},t,{type:"line",data:i,categoryField:"category",field:"value"}):null},Ns[Jl]=function rC(o){const{options:t,categoryAxis:e,seriesValues:s}=o,i=function lC({seriesValues:o,categoryAxis:t,options:e}){let{slope:s,intercept:i,count:n}=ps(o(),(o=>({categoryIx:t,valueFields:e})=>({xValue:Math.log(t+1),yValue:e[o]}))(e.field));if(n>0){const r=s,a=i;return Vn(c=>r*Math.log(c)+a,t)}return null}({seriesValues:s,categoryAxis:e,options:t});return i?Object.assign({},t,{type:"line",data:i,categoryField:"category",field:"value"}):null},Ns[tc]=function dC(o){const{options:t}=o,e=function gC(o){const{categoryAxis:t}=o,e=function pC({options:o,categoryAxis:t,seriesValues:e}){const s=(o.trendline||{}).period||2,i=t.totalRangeIndices(),n=t.currentRangeIndices(),r={min:Math.floor(Math.max(n.min-s,i.min)),max:Math.ceil(Math.min(n.max+s+2,i.max))};return qp(e(r),(o=>({categoryIx:t,valueFields:e})=>({xValue:t,yValue:e[o]}))(o.field),s)}(o),s=[];return e.forEach(([i,n])=>{s[i]={category:t.categoryAt(i,!0),value:n}}),s.length>0?s:null}(o);return e?Object.assign({},t,{type:"line",data:e,categoryField:"category",field:"value"}):null},Ns[ec]=function yC(o){const{options:t,categoryAxis:e,seriesValues:s}=o,i=function _C({seriesValues:o,categoryAxis:t,options:e}){const s=(e.trendline||{}).order,{count:i,valueMapper:n}=tg(o(),(o=>({categoryIx:t,valueFields:e})=>({xValue:t+1,yValue:e[o]}))(e.field),s);return i>0?Vn(r=>n(r),t):null}({seriesValues:s,categoryAxis:e,options:t});return i?Object.assign({},t,{type:"line",data:i,categoryField:"category",field:"value"}):null},Ns[sc]=function wC(o){const{options:t,categoryAxis:e,seriesValues:s}=o,i=function SC({seriesValues:o,categoryAxis:t,options:e}){const s=o();if(!On(s,e.field))return null;let{slope:i,intercept:n,count:r}=ps(s,(o=>({categoryIx:t,valueFields:e})=>({xValue:Math.log(t+1),yValue:Math.log(e[o])}))(e.field));if(r>0){const a=Math.exp(n),c=i;return Vn(h=>a*Math.pow(h,c),t)}return null}({seriesValues:s,categoryAxis:e,options:t});return i?Object.assign({},t,{type:"line",data:i,categoryField:"category",field:"value"}):null};const TC=Ns,Ec=[Ve,Ps,_i,Is],eg=[Fe,Ls].concat(Ec);class Dc extends us{initFields(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Ar,this._seriesPointsCache={},this._currentPointsCache={},t.length>0){this.invertAxes=N(t[0].type,[re,as,Ls,Ps,Is,Ci,vi,wi]);for(let e=0;e<t.length;e++){const s=t[e].stack;if(s&&"100%"===s.type){this.stack100=!0;break}}}}render(t=this.panes){this.series=[...this.originalSeries],this.createCategoryAxes(t),this.aggregateCategories(t),this.createTrendlineSeries(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)}removeAxis(t){const e=t.options.name;super.removeAxis(t),t instanceof Ie?delete this.namedCategoryAxes[e]:(this.valueAxisRangeTracker.reset(e),delete this.namedValueAxes[e]),t===this.categoryAxis&&delete this.categoryAxis,t===this.valueAxis&&delete this.valueAxis}trendlineFactory(t,e){const s=this.seriesCategoryAxis(t),i=this.seriesValues.bind(this,e.index),n=Kp(TC,t.type,{options:t,categoryAxis:s,seriesValues:i});return n&&(n.categoryAxis=e.categoryAxis,n.valueAxis=e.valueAxis,this.filterSeries(n,s))}trendlineAggregateForecast(){return this.series.map(t=>(t.trendline||{}).forecast).filter(t=>void 0!==t).reduce((t,e)=>({before:Math.max(t.before,e.before||0),after:Math.max(t.after,e.after||0)}),{before:0,after:0})}seriesValues(t,e){const s=[];let i=this.srcSeries[t];const n=this.seriesCategoryAxis(i);ze(n.options.type,Me)&&(this._seriesPointsCache={},this._currentPointsCache={},n.options.dataItems=[],i=this.aggregateSeries(i,n,n.totalRangeIndices()));const c=e?e.max:i.data.length;for(let h=e?e.min:0;h<c;h++){const d=this.bindPoint(i,h);s.push({categoryIx:h,category:d.fields.category,valueFields:d.valueFields})}return s}createCharts(t){const e=this.groupSeriesByPane();for(let s=0;s<t.length;s++){const i=t[s],n=e[i.options.name||"default"]||[];this.addToLegend(n);const r=this.filterVisibleSeries(n);if(!r)continue;const a=this.groupSeriesByCategoryAxis(r);for(let c=0;c<a.length;c++)this.createChartGroup(a[c],i)}}createChartGroup(t,e){this.createAreaChart(dt(t,[Ve,Ps]),e),this.createRangeAreaChart(dt(t,[_i,Is]),e),this.createBarChart(dt(t,[Ae,re]),e),this.createRangeBarChart(dt(t,[An,Ci]),e),this.createBulletChart(dt(t,[as,Sn]),e),this.createCandlestickChart(dt(t,xi),e),this.createBoxPlotChart(dt(t,[bn,wi]),e),this.createOHLCChart(dt(t,yi),e),this.createWaterfallChart(dt(t,[kn,vi]),e),this.createLineChart(dt(t,[Fe,Ls]),e)}aggregateCategories(t){const e=[...this.series],s=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(let i=0;i<e.length;i++){let n=e[i];if(!this.isTrendline(n)){const r=this.seriesCategoryAxis(n),a=this.findPane(r.options.pane);n=(ze(r.options.type,Me)||n.categoryField)&&N(a,t)?this.aggregateSeries(n,r,r.currentRangeIndices()):this.filterSeries(n,r)}s.push(n)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=s}filterSeries(t,e){const s=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,s),!_(e.options.min)&&!_(e.options.max))return t;const i=e.currentRangeIndices(),n=N(t.type,eg),r=x({},t);return r.data=(r.data||[]).slice(i.min,i.max+1),n&&_p(r,i,s,a=>({item:t.data[a],category:e.categoryAt(a,!0),categoryIx:a-i.min}),a=>_(t.data[a])),r}clearSeriesPointsCache(){this._seriesPointsCache={}}seriesSourcePoints(t,e){const s=`${t.index};${e.categoriesHash()}`;if(this._seriesPointsCache&&this._seriesPointsCache[s])return this._currentPointsCache[s]=this._seriesPointsCache[s],this._seriesPointsCache[s];
1const i=e.options,n=i.srcCategories,r=ze(i.type,Me),a=t.data,c=[];r||e.indexCategories();for(let h=0;h<a.length;h++){let d=rt.current.bindPoint(t,h).fields.category;if(r&&(d=vp(d,a[h],this.chartService.intl)),_(d)||(d=n[h]),_(d)&&null!==d){const u=e.totalIndex(d);c[u]=c[u]||{items:[],category:d},c[u].items.push(h)}}return this._currentPointsCache[s]=c,c}aggregateSeries(t,e,s){if(!t.data.length)return t;const n=this.seriesSourcePoints(t,e),r=x({},t),a=new P0(x({},t),rt.current,Fs.current),c=r.data=[],h=e.options.dataItems||[],d=u=>{const p=u-s.min;let f=n[u];if(f||(f=n[u]={}),f.categoryIx=p,!f.item){const g=e.categoryAt(u,!0);f.category=g,f.item=a.aggregatePoints(f.items,g)}return f};for(let u=s.min;u<=s.max;u++){const p=d(u);c[p.categoryIx]=p.item,p.items&&p.items.length&&(h[p.categoryIx]=p.item)}return N(r.type,eg)&&_p(r,s,e.totalCount(),d,u=>n[u]),e.options.dataItems=h,r}appendChart(t,e){const s=t.options.series,i=this.seriesCategoryAxis(s[0]);let n=i.options.categories,r=Math.max(0,cc(s)-n.length);if(r>0)for(n=i.options.categories=i.options.categories.slice(0);r--;)n.push("");this.valueAxisRangeTracker.update(t.valueAxisRanges),super.appendChart(t,e)}seriesPaneName(t){const e=this.options,s=t.axis;return(Yt([].concat(e.valueAxis),function(h){return h.name===s})[0]||{}).pane||((e.panes||[{}])[0]||{}).name||"default"}seriesCategoryAxis(t){const e=t.categoryAxis,s=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!s)throw new Error("Unable to locate category axis with name "+e);return s}stackableChartOptions(t,e){const s=t.some(r=>r.stack),i=t.some(r=>r.stack&&"100%"===r.stack.type);return{defaultStack:t[0].stack,isStacked:s,isStacked100:i,clip:e.options.clip}}groupSeriesByCategoryAxis(t){const e=[],s={};for(let n=0;n<t.length;n++){const r=t[n].categoryAxis||"$$default$$";gl(s,r)||(s[r]=!0,e.push(r))}const i=[];for(let n=0;n<e.length;n++){const a=MC(t,e[n],n);0!==a.length&&i.push(a)}return i}createBarChart(t,e){if(0===t.length)return;const s=t[0],i=new In(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:s.gap,spacing:s.spacing},this.stackableChartOptions(t,e)));this.appendChart(i,e)}createRangeBarChart(t,e){if(0===t.length)return;const s=t[0],i=new I0(this,{series:t,invertAxes:this.invertAxes,gap:s.gap,spacing:s.spacing});this.appendChart(i,e)}createBulletChart(t,e){if(0===t.length)return;const s=t[0],i=new y0(this,{series:t,invertAxes:this.invertAxes,gap:s.gap,spacing:s.spacing,clip:e.options.clip});this.appendChart(i,e)}createLineChart(t,e){if(0===t.length)return;const s=new xc(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(t,e)));this.appendChart(s,e)}createAreaChart(t,e){if(0===t.length)return;const s=new o0(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(t,e)));this.appendChart(s,e)}createRangeAreaChart(t,e){if(0===t.length)return;const s=new U0(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(s,e)}createOHLCChart(t,e){if(0===t.length)return;const s=t[0],i=new X0(this,{invertAxes:this.invertAxes,gap:s.gap,series:t,spacing:s.spacing,clip:e.options.clip});this.appendChart(i,e)}createCandlestickChart(t,e){if(0===t.length)return;const s=t[0],i=new bc(this,{invertAxes:this.invertAxes,gap:s.gap,series:t,spacing:s.spacing,clip:e.options.clip});this.appendChart(i,e)}createBoxPlotChart(t,e){if(0===t.length)return;const s=t[0],i=new u0(this,{invertAxes:this.invertAxes,gap:s.gap,series:t,spacing:s.spacing,clip:e.options.clip});this.appendChart(i,e)}createWaterfallChart(t,e){if(0===t.length)return;const s=t[0],i=new $0(this,{series:t,invertAxes:this.invertAxes,gap:s.gap,spacing:s.spacing});this.appendChart(i,e)}axisRequiresRounding(t,e){const s=dt(this.series,sp);for(let i=0;i<this.series.length;i++){const n=this.series[i];if(N(n.type,Ec)){const r=n.line;r&&r.style===yn&&s.push(n)}}for(let i=0;i<s.length;i++){const n=s[i].categoryAxis||"";if(n===t||!n&&0===e)return!0}}aggregatedAxis(t,e){const s=this.series;for(let i=0;i<s.length;i++){const n=s[i].categoryAxis||"";if((n===t||!n&&0===e)&&s[i].categoryField)return!0}}createCategoryAxesLabels(){const t=this.axes;for(let e=0;e<t.length;e++)t[e]instanceof Ie&&t[e].createLabels()}createCategoryAxes(t){const e=this.invertAxes,s=[].concat(this.options.categoryAxis),i=[];for(let r=0;r<s.length;r++){let a=s[r];if(N(this.findPane(a.pane),t)){const{name:h,categories:d=[]}=a;let u;if(a=x({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?ft:0},a),_(a.justified)||(a.justified=this.isJustified()),this.axisRequiresRounding(h,r)&&(a.justified=!1),yp(a,d[0])?(a._forecast=this.trendlineAggregateForecast(),u=new xn(a,this.chartService)):u=new Ie(a,this.chartService),s[r].categories=u.options.srcCategories,h){if(this.namedCategoryAxes[h])throw new Error(`Category axis with
1name ${h} is already defined`);this.namedCategoryAxes[h]=u}u.axisIndex=r,i.push(u),this.appendAxis(u)}}const n=this.categoryAxis||i[0];this.categoryAxis=n,e?this.axisY=n:this.axisX=n}isJustified(){const t=this.series;for(let e=0;e<t.length;e++)if(!N(t[e].type,Ec))return!1;return!0}createValueAxes(t){const e=this.valueAxisRangeTracker,s=e.query(),i=[].concat(this.options.valueAxis),n=this.invertAxes,r={vertical:!n,reverse:n&&this.chartService.rtl},a=[];this.stack100&&(r.roundToMajorUnit=!1,r.labels={format:"P0"});for(let h=0;h<i.length;h++){const d=i[h];if(N(this.findPane(d.pane),t)){const p=d.name,f=ze(d.type,vr)?{min:.1,max:1}:{min:0,max:1},g=e.query(p)||s||f;let m;0===h&&g&&s&&(g.min=Math.min(g.min,s.min),g.max=Math.max(g.max,s.max)),m=ze(d.type,vr)?cr:ne;const v=new m(g.min,g.max,x({},r,d),this.chartService);if(p){if(this.namedValueAxes[p])throw new Error(`Value axis with name ${p} is already defined`);this.namedValueAxes[p]=v}v.axisIndex=h,a.push(v),this.appendAxis(v)}}const c=this.valueAxis||a[0];this.valueAxis=c,n?this.axisX=c:this.axisY=c}_dispatchEvent(t,e,s){const i=t._eventCoordinates(e),n=new V(i.x,i.y),r=this.pointPane(n),a=[],c=[];if(!r)return;const h=r.axes;for(let d=0;d<h.length;d++){const u=h[d];u.getValue?_r(c,u.getValue(n)):_r(a,u.getCategory(n))}0===a.length&&_r(a,this.categoryAxis.getCategory(n)),a.length>0&&c.length>0&&t.trigger(s,{element:ae(e),originalEvent:e,category:Ti(a),value:Ti(c)})}pointPane(t){const e=this.panes;for(let s=0;s<e.length;s++){const i=e[s];if(i.contentBox.containsPoint(t))return i}}updateAxisOptions(t,e){sg(this.options,t,e),sg(this.originalOptions,t,e)}_pointsByVertical(t,e=0){return this.invertAxes?this._siblingsBySeriesIndex(t.series.index,e):this._siblingsByPointIndex(t.getIndex())}_pointsByHorizontal(t,e=0){if(this.invertAxes)return this._siblingsByPointIndex(t.getIndex());const s=this._siblingsBySeriesIndex(t.series.index,e);return this.chartService.rtl?s.reverse():s}_siblingsByPointIndex(t){const e=this.charts,s=[];for(let i=0;i<e.length;i++){let n=e[i];if(n.pane&&"_navigator"===n.pane.options.name)continue;let r=n.points.filter(a=>a&&!1!==a.visible&&a.getIndex()===t);s.push(...r.sort(this._getSeriesCompareFn(r[0])))}return s}_siblingsBySeriesIndex(t,e){const s=Oo(t+e,this.series.length);return this.pointsBySeriesIndex(s)}_getSeriesCompareFn(t){const e=this._isInStackedSeries(t);return e&&this.invertAxes||!e&&!this.invertAxes?(s,i)=>s.box.center().x-i.box.center().x:(s,i)=>s.box.center().y-i.box.center().y}_isInStackedSeries(t){const e=N(t.series.type,[Ve,Ps,_i,Is,Fe,Ls,bi,wn]),s=N(t.series.type,[Ae,re]);return e||s&&t.options.isStacked}}function sg(o,t,e){x([].concat(t instanceof Ie?o.categoryAxis:o.valueAxis)[t.axisIndex],e)}function MC(o,t,e){return Yt(o,function(s){return 0===e&&!s.categoryAxis||s.categoryAxis===t})}w(Dc,{categoryAxis:{},valueAxis:{}}),x(Dc.prototype,Bn);const He=Dc;var Ii=S(57917),Pc=S(31992);function DC(){this._defaultPrevented=!0}const PC=class EC extends L.A{constructor(){super(),this._points=[]}destroy(){this._points=[]}show(t,e){const s=[].concat(t);this.hide();for(let i=0;i<s.length;i++){const n=s[i];n&&n.toggleHighlight&&n.hasHighlight()&&(this.togglePointHighlight(n,!0,e),this._points.push(n))}}togglePointHighlight(t,e,s){const i=(t.options.highlight||{}).toggle;if(i){const n={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:DC,visual:t.highlightVisual(),show:e};i(n),n._defaultPrevented||t.toggleHighlight(e,s)}else t.toggleHighlight(e,s)}hide(){const t=this._points;for(;t.length;)this.togglePointHighlight(t.pop(),!1)}isHighlighted(t){const e=this._points;for(let s=0;s<e.length;s++)if(t===e[s])return!0;return!1}};function ig(o,t){const e=(t||"").toLowerCase(),s=o.event;return"none"===e&&!(s.ctrlKey||s.shiftKey||s.altKey)||s[e+"Key"]}function Lc(o){const t={};for(let e=0;e<o.length;e++){const s=o[e];s.axis.options.name&&(t[s.axis.options.name]={min:s.range.min,max:s.range.max})}return t}class ng extends L.A{constructor(t,e){super(),this.plotArea=t,this.options=x({},this.options,e)}start(t){return this._active=ig(t,this.options.key),this._active}
1move(t){if(this._active){const e=this.axisRanges=this._panAxes(t,D).concat(this._panAxes(t,P));if(e.length)return this.axisRanges=e,Lc(e)}}end(){const t=this._active;return this._active=!1,t}pan(){const{plotArea:t,axisRanges:e}=this;if(e.length){for(let s=0;s<e.length;s++){const i=e[s];t.updateAxisOptions(i.axis,i.range)}t.redraw(t.panes)}}destroy(){delete this.plotArea}_panAxes(t,e){const s=this.plotArea,i=-t[e].delta,n=(this.options.lock||"").toLowerCase(),r=[];if(0!==i&&(n||"").toLowerCase()!==e){const a=s.axes;for(let c=0;c<a.length;c++){const h=a[c];if(e===D&&!h.options.vertical||e===P&&h.options.vertical){const d=h.pan(i);d&&(d.limitRange=!0,r.push({axis:h,range:d}))}}}return r}}ng.prototype.options={key:"none",lock:"none"};const LC=ng;class og extends L.A{constructor(t,e){super(),this.chart=t,this.options=x({},this.options,e),this.createElement()}createElement(){const t=this._marquee=document.createElement("div");t.className="k-marquee";const e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)}removeElement(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)}setStyles(t){ht(this._marquee,t)}start(t){if(ig(t,this.options.key)){const e=this.chart,s=e._eventCoordinates(t),i=this._zoomPane=e._plotArea.paneByPoint(s),n=i?i.chartsBox().clone():null;if(i&&n){const r=this._elementOffset();return n.translate(r.left,r.top),this._zoomPaneClipBox=n,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1}_elementOffset(){const t=this.chart.element,{paddingLeft:e,paddingTop:s}=ht(t,["paddingLeft","paddingTop"]),i=ri(t);return{left:e+i.left,top:s+i.top}}move(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))}end(t){if(this._zoomPane){const s=this._elementOffset(),i=this._selectionPosition(t);return i.left-=s.left,i.top-=s.top,this._updateAxisRanges({x:i.left,y:i.top},{x:i.left+i.width,y:i.top+i.height}),this.removeElement(),delete this._zoomPane,Lc(this.axisRanges)}}zoom(){const t=this.axisRanges;if(t&&t.length){const e=this.chart._plotArea;for(let s=0;s<t.length;s++){const i=t[s];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}}destroy(){this.removeElement(),delete this._marquee,delete this.chart}_updateAxisRanges(t,e){const s=(this.options.lock||"").toLowerCase(),i=[],n=this._zoomPane.axes;for(let r=0;r<n.length;r++){const a=n[r],c=a.options.vertical;if((s!==D||c)&&(s!==P||!c)&&_(a.axisIndex)){const h=a.pointsRange(t,e);h&&i.push({axis:a,range:h})}}this.axisRanges=i}_selectionPosition(t){const e=this._zoomPaneClipBox,s={x:t.x.startLocation,y:t.y.startLocation},{x:{location:i},y:{location:n}}=t,r=(this.options.lock||"").toLowerCase();let a=Math.min(s.x,i),c=Math.min(s.y,n),h=Math.abs(s.x-i),d=Math.abs(s.y-n);return r===D&&(a=e.x1,h=e.width()),r===P&&(c=e.y1,d=e.height()),i>e.x2&&(h=e.x2-s.x),i<e.x1&&(h=s.x-e.x1),n>e.y2&&(d=e.y2-s.y),n<e.y1&&(d=s.y-e.y1),{left:Math.max(a,e.x1),top:Math.max(c,e.y1),width:h,height:d}}}og.prototype.options={key:"shift",lock:"none"};const IC=og,FC=class VC extends L.A{constructor(t,e){super(),this.chart=t,this.options=x({rate:.3},this.options,e)}updateRanges(t,e){const s=(this.options.lock||"").toLowerCase(),i=[],n=this.chart._plotArea.axes;for(let r=0;r<n.length;r++){const a=n[r],c=a.options.vertical;if((s!==D||c)&&(s!==P||!c)&&a.zoomRange){const h=I(this.options.rate,.01,.9),d=a.zoomRange(-t*h,e);d&&i.push({axis:a,range:d})}}return this.axisRanges=i,Lc(i)}zoom(){const t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(let s=0;s<t.length;s++){const i=t[s];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}}destroy(){delete this.chart}};var Ic=S(10626);function Dr(o,t,e,s,i){let n;return n="start"===e?t.origin[s]:"end"===e?t.origin[s]+t.size[i]-o:t.origin[s]+(t.size[i]-o)/2,n}function zC(o,t,e,s,i){let n;return n="start"===e?t.origin[s]+t.size[i]-o:"end"===e?t.origin[s]:t.origin[s]+(t.size[i]-o)/2,n}const UC={alignContent:"start",justifyContent:"start",alignItems:"start",spacing:0,orientation:"horizontal",lineSpacing:0,wrap:!0,revers:!1},HC=(o,t)=>{o.forEach(t)},jC=(o,t)=>{for(let s=o.length-1;s>=0;s--)t(o[s],s)},XC=class GC extends et.A{constructor(t,e){super(Object.assign({},UC,e)),this._rect=t,this._fieldMap={}}rect(t){return t?(this._rect=t,this):this._rect}appendBreak(){const t=new et.A;return t._isBreakMarker=!0,this.append(t),this}_initMap(){const t=this.options,e=this._fieldMap;"horizontal"===t.orientation?(e.sizeField="width",e.groupsSizeField="height",e.groupAxis="x",e.groupsAxis="y"):(e.sizeField="height",e.groupsSizeField="width",e.groupAxis="y",e.groupsAxis="x"),t.reverse?(this.forEach=jC,this.justifyAlign=zC):(this.forEach=HC,this.justifyAlign=Dr)}reflow(){if(!this._rect||0===this.children.length)return;this._initMap(),this.options.transform&&this.transform(null);const t=this.options,e=this._rect,{groups:s,groupsSize:i}=this._initGroups(),{sizeField:n,groupsSizeField:r,groupAxis:a,groupsAxis:c}=this._fieldMap,h=new H.A,d=new H.A,u=new Ic.A;let f,g,m,p=Dr(i,e,t.alignContent,c,r);const v=(y,C)=>{const M=g.elements[C];d[a]=f,d[c]=Dr(y.size[r],m,t.alignItems,c,r),function NC(o,t,e){const s=e.transform()||(0,vt.A)(),i=s.matrix();i.e+=o.x-t.origin.x,i.f+=o.y-t.origin.y,s.matrix(i),e.transform(s)}(d,y,M),f+=y.size[n]+t.spacing};for(let y=0;y<s.length;y++)g=s[y],h[a]=f=this.justifyAlign(g.size,e,t.justifyContent,a,n),h[c]=p,u[n]=g.size,u[r]=g.lineSize,m=new wt.A(h,u),this.forEach(g.bboxes,v),p+=g.lineSize+t.lineSpacing;if(!t.wrap&&g.size>e.size[n]){const y=e.size[n]/m.size[n],C=m.topLeft().scale(y,y),R=Dr(m.size[r]*y,e,t.alignContent,c,r),B=(0,vt.A)();"x"===a?B.translate(e.origin.x-C.x,R-C.y):B.translate(R-C.x,e.origin.y-C.y),B.scale(y,y),this.transform(B)}}_initGroups(){const{options:t,children:e}=this,{lineSpacing:s,wrap:i,spacing:n}=t,r=this._fieldMap.sizeField;let a=this._newGroup();const c=[],h=function(){c.push(a),d+=a.lineSize+s};let d=-s;for(let u=0;u<e.length;u++){let p=e[u],f=e[u].clippedBBox();p._isBreakMarker?a.bboxes.length>0&&(h(),a=this._newGroup()):p.visible()&&f&&(i&&a.size+f.size[r]+n>this._rect.size[r]?0===a.bboxes.length?(this._addToGroup(a,f,p),h(),a=this._newGroup()):(h(),a=this._newGroup(),this._addToGroup(a,f,p)):this._addToGroup(a,f,p))}return a.bboxes.length&&h(),{groups:c,groupsSize:d}}_addToGroup(t,e,s){t.size+=e.size[this._fieldMap.sizeField]+this.options.spacing,t.lineSize=Math.max(e.size[this._fieldMap.groupsSizeField],t.lineSize),t.bboxes.push(e),t.elements.push(s)}_newGroup(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}},$C=class YC extends q{constructor(t,e){super(t),this.chartService=e}render(){const{children:t,options:e}=this,s=e.vertical;var o;this.visual=new XC(null,{spacing:s?0:e.spacing,lineSpacing:s?e.spacing:0,orientation:s?"vertical":rl,reverse:e.rtl,alignItems:s?(o=e.rtl,o?sn:Ro):F});for(let i=0;i<t.length;i++){let n=t[i];n.reflow(new A),n.renderVisual()}}reflow(t){this.visual.rect(t.toRect()),this.visual.reflow();const e=this.visual.clippedBBox();this.box=e?ui(e):new A}renderVisual(){this.addVisual()}createVisual(){}};class rg extends Rt{visualStyle(){const t=this.markerOptions(),e=t.border;return{stroke:{width:e.width,color:e.color,opacity:O(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}}markerOptions(){return this.options}markerHighlightOptions(){const t=this.markerOptions();return x({},t,{background:t.border.color},t.highlight,t.type===tl?{background:t.highlight.border.color,border:{color:t.highlight.background,width:t.highlight.border.width/2},width:t.width,height:t.height,margin:{top:0,left:0}}:{})}createHighlight(){const t=new Rt(this.markerHighlightOptions()),e=this.paddingBox.clone();return t.reflow(e.pad(t.options.border.width)),this.highlight=[t.getElement()],this.highlight}}w(rg,{border:{width:2},width:8,height:8,background:W,margin:{top:-1,left:-1}
1,vAlign:j,align:U,highlight:{width:10,height:10,border:{color:W,width:2}}});const ZC=rg;class ag extends Rt{getElement(){const t=new et.A,e=new E.P(this.visualStyle()),{paddingBox:s}=this,i=s.height()/2;return e.moveTo(s.x1,s.y1+i).lineTo(s.x1,s.y2).lineTo(s.x2,s.y2),t.append(e),t}}w(ag,{width:15,height:15,align:Y,vAlign:$,margin:{right:-2,bottom:2}});const lg=ag;class cg extends Rt{getElement(){const t=new et.A,e=new E.P({stroke:{color:this.options.border.color,opacity:this.options.opacity,width:this.options.height,dashType:this.options.dashType}}),s=this.paddingBox,i=s.center().y;return e.moveTo(s.x1,i).lineTo(s.x2,i),t.append(e),t}createHighlight(){return this.highlight=[this.createHighlightLine(),this.createHighlightMarker()],this.highlight}createHighlightLine(){const t=x({},{border:{color:this.options.border.color,opacity:this.options.border.opacity,dashType:this.options.border.dashType}},this.options.highlight),e=new lg(t);return e.reflow(this.parent.paddingBox.clone()),this.highlightLine=e.getElement(),this.highlightLine}createHighlightMarker(){const t=x({},{background:this.options.background},this.options.highlight.markers),e=new Rt(t),s=this.parent.paddingBox,i=t.border.width,n=this.parent.box.clone();return n.pad({left:i-s.x1,top:i-s.y1}),e.reflow(n),this.highlightMarker=e.getElement(),this.highlightMarker}}w(cg,{border:{width:0},type:"rect",align:U,vAlign:F,highlight:{border:{width:2},markers:{type:Nt,width:10,height:10,border:{width:2,color:W},align:U,vAlign:j}}});const QC=cg;class hg extends Rt{createHighlight(){const t=x({},{background:this.options.background},this.options.highlight.markers),e=new Rt(t),s=this.paddingBox.clone(),i=this.parent.box.clone();return s.align(i,D,U),s.align(i,P,j),e.reflow(s),this.highlight=[e.getElement()],this.highlight}}w(hg,{highlight:{markers:{type:Nt,width:10,height:10,border:{width:2,color:W},margin:{top:-3,left:-3}}}});const KC=hg;class dg extends os{constructor(t){super(t),this.createContainer(),t.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel()),this._id=cn(),this.options.accessibility.ariaChecked=t.active}createContainer(){this.container=new wl({vertical:!1,wrap:!1,align:F,spacing:this.options.spacing}),this.append(this.container)}createMarker(){this.markerWrap=new os({vertical:!1,shrinkToFit:!0,wrap:!1,margin:1,width:22,height:22}),this.container.append(this.markerWrap),this.createMarkerArea(),this.options.markers.visible&&(this._marker=this._createMarker(),this.markerWrap.append(this._marker))}createMarkerArea(){const t=this.options,{markerColor:e,line:s={}}=t,i={border:{color:s.color||e,opacity:s.opacity,dashType:s.dashType}};return this._createLine(i)||this._createMarkerLine(i,s)||this._createSquare()}markerOptions(){const t=this.options,{markers:e={},markerColor:s}=t,{border:i={}}=e;return e.zIndex=void 0,x({},e,{border:{color:i.color||s},highlight:t.highlight.markers})}_highlightOptions(){const t=this.options;return x({markers:{type:t.markers.type}},t.highlight)}_createLine(t){const e=this.options;return e.type===Fe&&!e.markers.visible&&(this._line=new QC(x({},{background:e.markerColor,highlight:this._highlightOptions()},t,e.line)),this.markerWrap.append(this._line)),this._line}_createMarkerLine(t,e){return this.options.type===Fe&&(this._markerLineArea=new lg(x({},{border:{width:e.height}},t)),this.markerWrap.append(this._markerLineArea)),this._markerLineArea}_createSquare(){const t=this.options;return t.type===Ve&&(this._square=new KC(Object.assign({},{border:t.border,vAlign:t.markers.visible?$:F,highlight:this._highlightOptions()},t.area,{background:t.area.background||t.markerColor})),this.markerWrap.append(this._square)),this._square}_createMarker(){return new ZC(this.markerOptions())}_highlightMarkers(){this.options.active&&this._toggleHighlight(!0)}_restoreMarkers(){this._toggleHighlight(!1)}_toggleHighlight(t){if(!this.options.highlight.visible)return;const e=this._marker||this._square||this._line;if(e&&e===this._line&&this._line.visual.visible(!t),e){let s=e.highlight;s||(s=e.createHighlight(),s.forEach(i=>
1i&&this.markerWrap.appendVisual(i))),s.forEach(i=>i&&i.visible(t))}}createLabel(){const t=this.options,e=x({},t.labels);this.container.append(new Ht(t.text,e))}getAriaLabelText(){return this.options.text}focusVisual(){this.visual.options.set("id",this._id),this.toggleFocusHighlight(!0),this._highlightMarkers()}clearFocusFromVisual(){this.visual.options.set("id",""),this.toggleFocusHighlight(!1),this._restoreMarkers()}renderComplete(){super.renderComplete();const t=this.options.cursor||{},e=this._itemOverlay=E.w.fromRect(this.container.box.toRect(),{fill:{color:W,opacity:0},stroke:null,cursor:t.style||t});this.appendVisual(e)}click(t,e){const s=this.eventArgs(e);!t.trigger(ip,s)&&e&&"contextmenu"===e.type&&e.preventDefault()}over(t,e){const s=this.eventArgs(e);return t.trigger("legendItemHover",s)||(t._legendItemHover(s.seriesIndex,s.pointIndex),this._highlightMarkers()),!0}out(t,e){t._unsetActivePoint(),this._restoreMarkers(),t.trigger("legendItemLeave",this.eventArgs(e))}eventArgs(t){const e=this.options;return{element:ae(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}}createVisual(){super.createVisual();const t=this.options;if(this.options.visible){const e=x({ariaLabel:void 0!==t.accessibility.ariaLabel?t.accessibility.ariaLabel:t.text},t.accessibility);Cl(this.visual,e)}}renderVisual(){const t=this.options,e=t.visual;e?(this.visual=e({active:t.active,series:t.series,sender:this.getSender(),pointIndex:t.pointIndex,options:{type:t.type,markers:x({background:this.options.markerColor},this.markerOptions()),labels:t.labels},createVisual:()=>{this.createVisual(),this.renderChildren(),this.renderComplete();const s=this.visual;return delete this.visual,s}}),this._marker=this._markerLineArea=this._square=this._line=null,this.addVisual()):super.renderVisual()}createFocusHighlight(t){return E.w.fromRect(this.container.box.pad(t.stroke.width/2).toRect(),t)}}w(dg,{accessibility:{role:"checkbox",className:"k-chart-legend-item",ariaRoleDescription:"Legend item"},markers:{},highlight:{visible:!0,markers:{}}});const qC=dg,Pr="custom";class ug extends q{constructor(t,e={}){super(t),this.chartService=e,N(this.options.position,[j,Y,$,U,Pr])||(this.options.position=Y),this.createContainers(),this.createLegendTitle(t.title),this.createItems()}createContainers(){const t=this.options,{position:e,align:s}=t;let i=e,n=F;e===Pr?i=U:N(e,[j,$])?(i=s===Ro?U:s===sn?Y:F,n=e):s&&(s===Ro?n=j:s===sn&&(n=$)),this.container=new os({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:n,align:i,zIndex:t.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new os({vAlign:n,align:i,zIndex:t.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)}createItems(){const t=this.getService(),e=this.options,s=this.isVertical(),i=new $C({vertical:s,spacing:e.spacing,rtl:t.rtl},t);let n=e.data;e.reverse&&(n=n.slice(0).reverse());const r=n.length;for(let a=0;a<r;a++){let c=n[a];const{markers:h={},dashType:d,legendItem:u,opacity:p}=c.series||{},f=x({visible:!1!==h.visible,type:Nt},h);delete f.size;const g=x({},{markers:f,labels:e.labels,rtl:t.rtl,line:Object.assign({},{dashType:d},e.line),area:Object.assign({},{opacity:p},e.area),opacity:p,accessibility:e.accessibility},e.item,u,c,{markers:e.markers});i.append(new qC(g))}i.render(),this.itemsContainer.append(i)}isVertical(){const{orientation:t,position:e}=this.options;return e===Pr&&t!==rl||(_(t)?t!==rl:N(e,[U,Y]))}hasItems(){return this.container.children[0].children.length>0}getItems(){return this.itemsContainer.children[0].children}reflow(t){const e=this.options,s=t.clone();this.hasItems()?(e.position===Pr?(this.containerCustomReflow(s),this.box=s):this.containerReflow(s),this.hasTitle()&&this.title.reflow(new A(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=s}containerReflow(t){const{options:e,container:s}=this,{position:i,width:n,height:r}=e,a=i===j||i===$?D:P,c=this.isVertical(),h=t.clone();let d=t.clone();(i===U||i===Y)&&(d.y1=h.y1=0),c&&r?(d.y2=d.y1+r,d.align(h,P,s.options.vAlign)):!c&&n&&(d.x2=d.x1+n,d.align(h,D,s.options.align)),s.reflow(d),d=s.box;const u=d.clone();(e.offsetX||e.offsetY)&&(d.translate(e.offsetX,e.offsetY),s.reflow(d)),u[a+1]=t[a+1],u[a+2]=t[a+2],this.box=u}containerCustomReflow(t){const{options:e,container:s}=this,{offsetX:i,offsetY:n,width:r,height:a}=e,c=this.isVertical();let h=t.clone();c&&a?h.y2=h.y1+a:!c&&r&&(h.x2=h.x1+r),s.reflow(h),h=s.box,s.reflow(new A(i,n,i+h.width(),n+h.height()))}renderVisual(){this.hasItems()&&super.renderVisual()}createLegendTitle(t){let e=x({},{color:pt,position:j,align:F},t),s=e.text;if(t&&!1!==t.visible&&t.text){if(_(e)&&e.visible){const i=kt(e);i?s=i({text:s}):e.format&&(s=this.chartService.format.auto(e.format,s))}this.title=new Ht(s,e),this.createTitleLayout(),this.appendTitleLayoutContent()}}createTitleLayout(){this.layout=new wl({vertical:!0,wrap:!1}),this.container.append(this.layout)}hasTitle(){return!(!this.options.title||!1===this.options.title.visible||!this.options.title.text)}appendTitleLayoutContent(){this.options.title.position===$?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}w(ug,{position:Y,data:[],offsetX:0,offsetY:0,margin:K(2),padding:K(5),border:{color:pt,width:0},item:{cursor:ol,spacing:6},spacing:6,background:"",zIndex:1,markers:{},line:{width:20,height:2,cursor:ol,opacity:1},area:{type:"square",align:Y,width:15,height:15}});const pg=ug;class Rc extends L.A{constructor(){super(),this._registry=[]}register(t,e){this._registry.push({type:t,seriesTypes:e})}create(t,e,s){const i=this._registry;let r,n=i[0];for(let a=0;a<i.length;a++){const c=i[a];r=dt(t,c.seriesTypes);const h=dt(t,Ai);if(r.length-h.length>0){n=c;break}}return new n.type(r,e,s)}}
1Rc.current=new Rc;const je=Rc;function Ge(o){const t=document.createElement("div");return o&&(t.className=o),t}function gg(o){let t=o;for(;t&&!Fo(t,"k-handle");)t=t.parentNode;return t}class fg extends L.A{constructor(t,e,s,i){super();const n=t.element;this.options=x({},this.options,s),this.chart=t,this.observer=i,this.chartElement=n,this.categoryAxis=e,this._dateAxis=this.categoryAxis instanceof xn,this.initOptions(),this.visible=this.options.visible&&n.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}onPane(t){return this.categoryAxis.pane===t}createElements(){const t=this.options,e=this.wrapper=Ge("k-selector k-pointer-events-none");ht(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});const s=this.selection=Ge("k-selection k-pointer-events-none");this.leftMask=Ge("k-mask k-pointer-events-none"),this.rightMask=Ge("k-mask k-pointer-events-none"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(s);const i=this.body=Ge("k-selection-bg k-pointer-events-none");s.appendChild(i);const n=this.leftHandle=Ge("k-handle k-left-handle k-pointer-events-auto"),r=this.rightHandle=Ge("k-handle k-right-handle k-pointer-events-auto");n.appendChild(Ge()),r.appendChild(Ge()),s.appendChild(n),s.appendChild(r),this.chartElement.appendChild(e);const a=ht(s,["borderLeftWidth","borderRightWidth","height"]),c=ht(n,"height").height,h=ht(r,"height").height;t.selection={border:{left:a.borderLeftWidth,right:a.borderRightWidth}},ht(n,{top:(a.height-c)/2}),ht(r,{top:(a.height-h)/2}),e.style.cssText=e.style.cssText}bindEvents(){!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),rn(this.chartElement,{[br]:this._mousewheelHandler})),this._domEvents=ku.create(this.chartElement,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})}initOptions(){const{options:t,categoryAxis:e}=this,s=e.pane.chartsBox(),i=this.chart.chartService.intl;this._dateAxis&&x(t,{min:Pt(i,t.min),max:Pt(i,t.max),from:Pt(i,t.from),to:Pt(i,t.to)});const{paddingLeft:n,paddingTop:r}=ht(this.chartElement,["paddingLeft","paddingTop"]);this.options=x({},{width:s.width(),height:s.height()+.1,padding:{left:n,top:r},offset:{left:s.x1+n,top:s.y1+r},from:t.min,to:t.max},t)}destroy(){this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(an(this.chartElement,{[br]:this._mousewheelHandler}),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)}_rangeEventArgs(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}}_pointInPane(t,e){const s=this.categoryAxis.pane.box,i=this.chart._toModelCoordinates(t,e);return s.containsPoint(i)}_start(t){const e=this.options,s=ae(t);if(this._state||!s)return;const i=Id(t);if(!this._pointInPane(i.x,i.y))return;const r=gg(s),a=this.body.getBoundingClientRect(),c=!r&&i.x>=a.x&&i.x<=a.x+a.width&&i.y>=a.y&&i.y<=a.y+a.height;this.chart._unsetActivePoint(),this._state={moveTarget:r,startLocation:t.x?t.x.location:0,inBody:c,range:{from:this._index(e.from),to:this._index(e.to)}};const h=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger(oc,h)&&(this._state=null)}_press(t){let e;e=this._state?this._state.moveTarget:gg(ae(t)),e&>(e,"k-handle-active")}_move(t){if(!this._state)return;const{_state:e,options:s,categoryAxis:i}=this,{range:n,moveTarget:r}=e,a=i.options.reverse,c=this._index(s.from),h=this._index(s.to),d=this._index(s.min),u=this._index(s.max),p=e.startLocation-t.x.location,f_from=n.from,f_to=n.to,g=n.to-n.from,m=ht(this.wrapper,"width").width/(i.categoriesCount()-1),v=Math.round(p/m)*(a?-1:1);if(!r&&!e.inBody)return;const y=r&&Fo(r,"k-left-handle"),C=r&&Fo(r,"k-right-handle");e.inBody?(n.from=Math.min(Math.max(d,c-v),u-g),n.to=Math.min(n.from+g,u)):y&&!a||C&&a?(n.from=Math.min(Math.max(d,c-v),u-1),n.to=Math.max(n.from+1,n.to)):(y&&a||C&&!a)&&(n.to=Math.min(Math.max(d+1,h-v),u),n.from=Math.min(n.to-1,n.from)),(n.from!==f_from||n.to!==f_to)&&(this.move(n.from,n.to),this.trigger(Dn,this._rangeEventArgs(n)))}_end(){if(this._state){const t=this._state.moveTarget;t&&al(t,"k-handle-active");const e=this._state.range;this.set(e.from,e.to),this.trigger(rc,this._rangeEventArgs(e)),delete this._state}}_tap(t){const{options:e,categoryAxis:s}=this,i=this.chart._eventCoordinates(t),n=s.pointCategoryIndex(new V(i.x,s.box.y1)),r=this._index(e.from),a=this._index(e.to),c=this._index(e.min),h=this._index(e.max),d=a-r,p={},f=3===t.event.which;let g=Math.round(r+d/2-n);this._state||f||(this.chart._unsetActivePoint(),s.options.justified||g--,p.from=Math.min(Math.max(c,r-g),h-d),p.to=Math.min(p.from+d,h),this._start(t),this._state&&(this._state.range=p,this.trigger(Dn,this._rangeEventArgs(p)),this._end()))}_mousewheel(t){let e=hl(t);if(this._start(t),this._state){const s=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(e)>1&&(e*=3),this.options.mousewheel.reverse&&(e*=-1),this.expand(e)&&this.trigger(Dn,{axis:this.categoryAxis.options,delta:e,originalEvent:t,from:this._value(s.from),to:this._value(s.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(()=>{this._end()},150)}}_gesturestart(t){const e=this.options,s=t.touches[0];if(!this._pointInPane(s.pageX,s.pageY))return;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};const n=this._rangeEventArgs(this._state.range);this.trigger(oc,n)?this._state=null:t.preventDefault()}_gestureend(){this._state&&(this.trigger(rc,this._rangeEventArgs(this._state.range)),delete this._state)}_gesturechange(t){if(!this._state)return;const{chart:e,_state:s,options:i,categoryAxis:n}=this,r=s.range,a=e._toModelCoordinates(t.touches[0].x.location).x,c=e._toModelCoordinates(t.touches[1].x.location).x,h=Math.min(a,c
1),d=Math.max(a,c);t.preventDefault(),r.from=n.pointCategoryIndex(new V(h))||i.min,r.to=n.pointCategoryIndex(new V(d))||i.max,this.move(r.from,r.to),this.trigger(Dn,this._rangeEventArgs(r))}_index(t){let e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e}_value(t){let e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t),e>this.options.max&&(e=this.options.max)),e}_slot(t){const e=this.categoryAxis,s=this._index(t);return e.getSlot(s,s,!0)}move(t,e){const s=this.options,i=this.categoryAxis.options.reverse,{offset:n,padding:r,selection:{border:a}}=s,h=i?t:e,d="x"+(i?2:1);let u=this._slot(i?e:t);const p=k(u[d]-n.left+r.left);ht(this.leftMask,{width:p}),ht(this.selection,{left:p}),u=this._slot(h);const f=k(s.width-(u[d]-n.left+r.left));ht(this.rightMask,{width:f});let g=s.width-f;g!==s.width&&(g+=a.right),ht(this.rightMask,{left:g}),ht(this.selection,{width:Math.max(s.width-(p+f)-a.right,0)})}set(t,e){const s=this.options,i=this._index(s.min),n=this._index(s.max),r=I(this._index(t),i,n),a=I(this._index(e),r+1,n);s.visible&&this.move(r,a),s.from=this._value(r),s.to=this._value(a)}expand(t){const e=this.options,s=this._index(e.min),i=this._index(e.max),n=e.mousewheel.zoom,r=this._index(e.from),a=this._index(e.to);let c={from:r,to:a};const h=x({},c);if(this._state&&(c=this._state.range),n!==Y&&(c.from=I(I(r-t,0,a-1),s,i)),n!==U&&(c.to=I(I(a+t,c.from+1,i),s,i)),c.from!==h.from||c.to!==h.to)return this.set(c.from,c.to),!0}zoom(t,e){const s=this.options,i=this._index(s.min),n=this._index(s.max),r=this._index(s.from),a=this._index(s.to);let c={from:r,to:a};const h=x({},c),{reverse:d}=this.categoryAxis.options,u=D+(d?"2":"1"),p=this.categoryAxis.lineBox(),f=Math.abs(p[u]-e[D]),g=p.width(),m=k(f/g,2),v=k(m*t),y=k((1-m)*t);if(this._state&&(c=this._state.range),c.from=I(I(r-v,0,a-1),i,n),c.to=I(I(a+y,c.from+1,n),i,n),c.from!==h.from||c.to!==h.to)return this.set(c.from,c.to),!0}trigger(t,e){return(this.observer||this.chart).trigger(t,e)}}w(fg,{visible:!0,mousewheel:{zoom:"both"},min:_t,max:ft});const mg=fg,sw=class ew extends Ac{show(t){if(!t||!t.tooltipAnchor||this._current&&this._current===t)return;const e=x({},this.options,t.options.tooltip),s=t.tooltipAnchor();s?(this._current=t,super.show({point:t,anchor:s},e,t)):this.hide()}hide(){delete this._current,super.hide()}};class xg extends Ac{constructor(t,e){super(t.chartService,e),this.plotArea=t,this.formatService=t.chartService.format}showAt(t,e){const s=Yt(t,function(i){const n=i.series.tooltip;return!(n&&!1===n.visible)});if(s.length>0){const i=s[0],n=this.plotArea.categoryAxis.getSlot(i.categoryIx),r=e?this._slotAnchor(e,n):this._defaultAnchor(i,n);this.show({anchor:r,shared:!0,points:t,category:i.category,categoryText:this.formatService.auto(this.options.categoryFormat,i.category),series:this.plotArea.series},this.options)}}_slotAnchor(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}}_defaultAnchor(t,e){const s=t.owner.pane.chartsBox(),i=this.plotArea.categoryAxis.options.vertical,n=s.center(),r=e.center();let c;return c=i?new V(n.x,r.y):new V(r.x,n.y),{point:c,align:{horizontal:"center",vertical:"center"}}}}w(xg,{categoryFormat:"{0:d}"});const vg=xg;class yg extends ie{setup(){const{element:t,options:e}=this;if(t.bbox()){this.origin=e.origin;const i=e.vertical?P:D,n=this.fromScale=new H.A(1,1);n[i]=vn,t.transform(vt.A().scale(n.x,n.y))}else this.abort()}step(t){const e=te(this.fromScale.x,1,t),s=te(this.fromScale.y,1,t);this.element.transform(vt.A().scale(e,s,this.origin))}abort(){super.abort(),this.element.transform(null)}}w(yg,{duration:oe}),be.current.register(re,yg);class bg extends ie{setup(){const t=this.center=this.element.bbox().center();this.element.transform(vt.A().scale(vn,vn,t))}step(t){this.element.transform(vt.A().scale(t,t,this.center))}}w(bg,{easing:"easeOutElastic"}),be.current.register(mi,bg);class _g extends ie{setup(){this.fadeTo=this.element.opacity(),this.element.opacity(0)}step(t){this.element.opacity(t*this.fadeTo)}}w(_g,{duration:200,easing:"linear"}),be.current.register(rs,_g);class Cg extends ie{setup(){this.element.transform(vt.A().scale(vn,vn,this.options.center))}step(t){this.element.transform(vt.A().scale(t,t,this.options.center))}}w(Cg,{easing:"easeOutElastic",duration:oe}),be.current.register(ls,Cg);class wg extends kr{render(){super.render(),this.renderSegments()}createSegment(t,e,s){let n;return n=e.style===fi?gc:Ei,new n(t,e,s)}animationPoints(){return super.animationPoints().concat(this._segments)}createMissingValue(t,e){if(e===Oe){const s={x:t.x,y:t.y};return jt(s.x)||(s.x=0),jt(s.y)||(s.y=0),s}}}x(wg.prototype,fc);const Ag=wg,Fn=function iw(o,t,e){const s=[];let{xMin:i,xMax:n}=t;const r=(e||{}).forecast;r&&(r.before>0&&(i-=r.before),r.after>0&&(n+=r.after));const a=(e||{}).samplingInterval;let c=O(a,hi(i,n)/10);a<=0&&(c=n-i);for(let h=i;h<=n;h+=c)s.push([h,o(h)]);return s},Lr=o=>({valueFields:t})=>({xValue:t.x,yValue:t[o]}),Sg=function dw(o,t){let e=Number.MAX_VALUE,s=Number.MIN_VALUE;for(let i=0;i<o.length;i++){const n=o[i],{xValue:r,yValue:a}=t(n);isFinite(r)&&null!==r&&isFinite(a)&&null!==a&&(e=Math.min(r,e),s=Math.max(r,s))}return{xMin:e,xMax:s}},Us={};Us[Kl]=function nw(o){const{options:t,seriesValues:e}=o,s=function rw({seriesValues:o,options:t}){const e=o();if(!On(e,t.field))return null;let{slope:s,intercept:i,count:n,xMin:r,xMax:a}=ps(e,(o=>({valueFields:t})=>({xValue:t.x,yValue:Math.log(t[o])}))(t.field));const c={xMin:r,xMax:a};if(n>0){const h=Math.exp(i),d=s;return Fn(u=>h*Math.exp(d*u),c,t.trendline)}return null}({seriesValues:e,options:t});return s?Object.assign({},t,{type:"scatterLine",data:s}):null},Us[ql]=function lw(o){const{options:t,seriesValues:e}=o,s=function cw({seriesValues:o,options:t}){let{slope:e,intercept:s,count:i,xMin:n,xMax:r}=ps(o(),Lr(t.field));return i>0?Fn(c=>e*c+s,{xMin:n,xMax:r},t.trendline):null}({seriesValues:e,options:t});return s?Object.assign({},t,{type:"scatterLine",data:s}):null},Us[Jl]=function uw(o){const{options:t,seriesValues:e}=o,s=function fw({seriesValues:o,options:t}){const e=o();if(!On(e,"x"))return null;let{slope:s,intercept:i,count:n}=ps(e,(o=>({valueFields:t})=>({xValue:Math.log(t.x),yValue:t[o]}
1))(t.field)),r=Sg(e,(o=>({valueFields:t})=>({xValue:t.x,yValue:t[o]}))(t.field));if(n>0){const a=s,c=i;return Fn(h=>a*Math.log(h)+c,r,t.trendline)}return null}({seriesValues:e,options:t});return s?Object.assign({},t,{type:"scatterLine",data:s}):null},Us[tc]=function xw(o){const{options:t}=o,e=function vw({options:o,seriesValues:t}){const e=(o.trendline||{}).period||2,i=qp(t({before:e,after:e}),Lr(o.field),e);return i.length>0?i:null}(o);return e?Object.assign({},t,{type:"scatterLine",data:e}):null},Us[ec]=function bw(o){const{options:t,seriesValues:e}=o,s=function _w({seriesValues:o,options:t}){const e=(t.trendline||{}).order,s=Lr(t.field),{count:i,valueMapper:n,xMin:r,xMax:a}=tg(o(),s,e);return i>0?Fn(n,{xMin:r,xMax:a},t.trendline):null}({seriesValues:e,options:t});return s?Object.assign({},t,{type:"scatterLine",data:s}):null},Us[sc]=function ww(o){const{options:t,seriesValues:e}=o,s=function Sw({seriesValues:o,options:t}){const e=o();if(!On(e,"x"))return null;let{slope:s,intercept:i,count:n}=ps(e,(o=>({valueFields:t})=>({xValue:Math.log(t.x),yValue:Math.log(t[o])}))(t.field)),r=Sg(e,Lr(t.field));if(n>0){const a=Math.exp(i),c=s;return Fn(h=>a*Math.pow(h,c),r,t.trendline)}return null}({seriesValues:e,options:t});return s?Object.assign({},t,{type:"scatterLine",data:s}):null};const Tw=Us;class Bc extends us{initFields(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Ar,this.yAxisRangeTracker=new Ar}render(t=this.panes){this.series=[...this.originalSeries],this.createTrendlineSeries();const e=this.groupSeriesByPane();for(let s=0;s<t.length;s++){const i=t[s],n=e[i.options.name||"default"]||[];this.addToLegend(n);const r=this.filterVisibleSeries(n);r&&(this.createScatterChart(dt(r,Zl),i),this.createScatterLineChart(dt(r,Ql),i),this.createBubbleChart(dt(r,mi),i))}this.createAxes(t)}appendChart(t,e){this.xAxisRangeTracker.update(t.xAxisRanges),this.yAxisRangeTracker.update(t.yAxisRanges),super.appendChart(t,e)}removeAxis(t){const e=t.options.name;super.removeAxis(t),t.options.vertical?(this.yAxisRangeTracker.reset(e),delete this.namedYAxes[e]):(this.xAxisRangeTracker.reset(e),delete this.namedXAxes[e]),t===this.axisX&&delete this.axisX,t===this.axisY&&delete this.axisY}seriesPaneName(t){const e=this.options,s=t.xAxis,n=Yt([].concat(e.xAxis),function(p){return p.name===s})[0],r=t.yAxis,c=Yt([].concat(e.yAxis),function(p){return p.name===r})[0];return(n||{}).pane||(c||{}).pane||(e.panes||[{}])[0].name||"default"}createScatterChart(t,e){t.length>0&&this.appendChart(new kr(this,{series:t,clip:e.options.clip}),e)}createScatterLineChart(t,e){t.length>0&&this.appendChart(new Ag(this,{series:t,clip:e.options.clip}),e)}createBubbleChart(t,e){t.length>0&&this.appendChart(new f0(this,{series:t,clip:e.options.clip}),e)}createXYAxis(t,e,s){const i=t.name,n=e?this.namedYAxes:this.namedXAxes,r=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=x({reverse:!e&&this.chartService.rtl},t,{vertical:e}),c=ze(a.type,vr),h=r.query(),d=c?{min:.1,max:1}:{min:0,max:1},u=r.query(i)||h||d,p=[a.min,a.max],f=this.series;for(let y=0;y<f.length;y++){const C=f[y],M=C[e?"yAxis":"xAxis"];if(M===a.name||0===s&&!M){const R=rt.current.bindPoint(C,0).valueFields;p.push(R[e?"y":"x"]);break}}let g,m;0===s&&h&&(u.min=Math.min(u.min,h.min),u.max=Math.max(u.max,h.max));for(let y=0;y<p.length;y++)if(p[y]instanceof Date){g=!0;break}m=ze(a.type,Me)||!a.type&&g?Hu:c?cr:ne;const v=new m(u.min,u.max,a,this.chartService);if(v.axisIndex=s,i){if(n[i])throw new Error(`${e?"Y":"X"} axis with name ${i} is already defined`);n[i]=v}return this.appendAxis(v),v}createAxes(t){const e=this.options,s=[].concat(e.xAxis),i=[],n=[].concat(e.yAxis),r=[];for(let a=0;a<s.length;a++)N(this.findPane(s[a].pane),t)&&i.push(this.createXYAxis(s[a],!1,a));for(let a=0;a<n.length;a++)N(this.findPane(n[a].pane),t)&&r.push(this.createXYAxis(n[a],!0,a));this.axisX=this.axisX||i[0],this.axisY=this.axisY||r[0]}_dispatchEvent(t,e,s){const i=t._eventCoordinates(e),n=new V(i.x,i.y),r=this.axes,a=r.length,c=[],h=[];for(let d=0;d<a;d++){const u=r[d],p=u.options.vertical?h:c,f=u.getValue(n);null!==f&&p.push(f)}c.length>0&&h.length>0&&t.trigger(s,{element:ae(e),originalEvent:e,x:Ti(c),y:Ti(h)})}
1updateAxisOptions(t,e){const s=t.options.vertical,i=this.groupAxes(this.panes),n=(s?i.y:i.x).indexOf(t);kg(this.options,n,s,e),kg(this.originalOptions,n,s,e)}trendlineFactory(t,e){const s=this.seriesValues.bind(this,e.index),i=Kp(Tw,t.type,{options:t,seriesValues:s});return i&&(i.xAxis=e.xAxis,i.yAxis=e.yAxis),i}seriesValues(t){const e=[],s=this.series[t];for(let i=0;i<s.data.length;i++){const n=this.bindPoint(s,i);e.push({pointIx:i,valueFields:n.valueFields})}return e}}function kg(o,t,e,s){x([].concat(e?o.yAxis:o.xAxis)[t],s)}w(Bc,{xAxis:{},yAxis:{}}),x(Bc.prototype,Bn);const Oc=Bc;class Ir extends q{constructor(t,e,s){super(s),this.value=t,this.sector=e}render(){this._rendered||!1===this.visible||(this._rendered=!0,this.createLabel())}createLabel(){const t=this.options.labels,e=this.owner.chartService;let s=this.getLabelText(t);if(t.visible&&(s||0===s)){if(t.position===F||t.position===yr)t.color||(t.color=zo(this.options.color)),t.background||(t.background=this.options.color);else{const i=e.theme.seriesDefaults.labels;t.color=t.color||i.color,t.background=t.background||i.background}this.label=new Ht(s,x({},t,{align:F,vAlign:"",animation:{type:rs,delay:this.animationDelay}}),this.pointData()),this.append(this.label)}}getLabelText(t){let e=kt(t);return e?e(this.pointData()):this.owner.chartService.format.auto(t.format,this.value)}reflow(t){this.render(),this.box=t,this.reflowLabel()}reflowLabel(){const{options:{labels:t},label:e}=this,s=this.sector.clone(),i=t.distance,n=s.middle();if(e){const r=e.box.height(),a=e.box.width();let c;if(t.position===F)s.radius=Math.abs((s.radius-r)/2)+r,c=s.point(n),e.reflow(new A(c.x,c.y-r/2,c.x,c.y));else if(t.position===yr)s.radius=s.radius-r/2,c=s.point(n),e.reflow(new A(c.x,c.y-r/2,c.x,c.y));else{let h;c=s.clone().expand(i).point(n),c.x>=s.center.x?(h=c.x+a,e.orientation=Y):(h=c.x-a,e.orientation=U),e.reflow(new A(h,c.y-r,c.x,c.y))}}}createVisual(){const{sector:t,options:e}=this;if(super.createVisual(),this.addAccessibilityAttributesToVisual(),this.value)if(e.visual){const s=(t.startAngle+180)%360,i=e.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new H.A(t.center.x,t.center.y),radius:t.radius,innerRadius:t.innerRadius,startAngle:s,endAngle:s+t.angle,options:e,sender:this.getSender(),createVisual:()=>{const n=new et.A;return this.createSegmentVisual(n),n}});i&&this.visual.append(i)}else this.createSegmentVisual(this.visual)}createSegmentVisual(t){const{sector:e,options:s}=this,i=s.border||{},r=s.color,a={color:r,opacity:s.opacity},c=this.createSegment(e,x({fill:a,stroke:{opacity:s.opacity},zIndex:s.zIndex},i.width>0?{stroke:{color:i.color,width:i.width,opacity:i.opacity,dashType:i.dashType}}:{}));t.append(c),hc(s)&&t.append(this.createGradientOverlay(c,{baseColor:r,fallbackFill:a},x({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},s.overlay)))}createSegment(t,e){return e.singleSegment?new ye.A(new se.A(new H.A(t.center.x,t.center.y),t.radius),e):Yo.current.createRing(t,e)}createAnimation(){const{options:t,sector:{center:e}}=this;x(t,{animation:{center:[e.x,e.y],delay:this.animationDelay}}),super.createAnimation()}createHighlight(t){const e=this.options.highlight||{},s=e.border||{};return this.createSegment(this.sector,x({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:s.opacity,width:s.width,color:s.color}}))}highlightVisual(){return this.visual.children[0]}highlightVisualArgs(){const t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new H.A(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}}createFocusHighlight(t){const s=this.createSegment(this.sector,x({},t,{stroke:{width:2*this.options.accessibility.highlight.border.width}})),i=new E.P;return i.paths.push(E.w.fromRect(s.bbox())),i.paths.push(this.createSegment(this.sector,{})),s.clip(i),s}tooltipAnchor(){const t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:Dw(e+180)}}formatValue(t){return this.owner.formatPointValue(this,t)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}getIndex(){return this.index}}const Mw=k(Ct(30),10),Ew=k(Ct(60),10);function Dw(o){const t=Ct(o),e=k(Math.sin(t),10),s=k(Math.cos(t),10);let i,n;return i=Math.abs(e)>Ew?F:s<0?Y:U,n=Math.abs(e)<Mw?F:e<0?$:j,{horizontal:i,vertical:n}}w(Ir,{color:W,overlay:{gradient:"roundedBevel"},border:{width:.5}
1,labels:{visible:!1,distance:35,font:fd,margin:K(.5),align:Nt,zIndex:1,position:Rs},animation:{type:ls},highlight:{visible:!0,border:{width:1}},visible:!0,accessibility:{role:cs,className:hs,ariaRoleDescription:ds}}),x(Ir.prototype,de),x(Ir.prototype,Pi);const Tg=Ir,Mg={createLegendItem:function(o,t,e){const s=this.options.legend||{},i=s.labels||{},n=s.inactiveItems||{},r=n.labels||{};if(e&&!1!==e.visibleInLegend){const a=!1!==e.visible,c=a?kt(i):kt(r)||kt(i);let d,u,h=e.category;c&&(h=c({text:h,series:e.series,dataItem:e.dataItem,percentage:e.percentage,value:o})),a?(d={},u=t.color):(d={color:r.color,font:r.font},u=(n.markers||{}).color),jt(h)&&""!==h&&this.legendItems.push({active:a,pointIndex:e.index,text:h,series:e.series,markerColor:u,labels:d})}}};class Rr extends q{constructor(t,e){super(e),this.plotArea=t,this.chartService=t.chartService,this.points=[],this.legendItems=[],this.render()}render(){this.traverseDataPoints(this.addValue.bind(this))}traverseDataPoints(t){const{options:e,plotArea:{options:{seriesColors:s=[]}}}=this,i=s.length,n=e.series,r=n.length;for(let a=0;a<r;a++){const c=n[a],h=c.data,{total:d,points:u,count:p}=mp(c),f=360/d;let g,m;isFinite(f)||(g=360/p),m=_(c.startAngle)?c.startAngle:e.startAngle,a!==r-1&&c.labels.position===Rs&&(c.labels.position=F);for(let v=0;v<u.length;v++){const y=u[v];if(!y)continue;const{fields:C,value:M,visible:R}=y,B=0!==M?g||M*f:0,st=1!==h.length&&!!C.explode;ct(c.color)||(c.color=C.color||s[v%i]),t(M,new dn(null,0,0,m,B),{owner:this,category:_(C.category)?C.category:"",index:v,series:c,seriesIx:a,dataItem:h[v],percentage:0!==d?M/d:0,explode:st,visibleInLegend:C.visibleInLegend,visible:R,zIndex:r-a,animationDelay:this.animationDelay(v,a,r)}),!1!==R&&(m+=B)}}}evalSegmentOptions(t,e,s){const i=s.series;Ue(t,{value:e,series:i,dataItem:s.dataItem,category:s.category,percentage:s.percentage},{defaults:i._defaults,excluded:["data","content","template","visual","toggle","ariaTemplate","ariaContent"]})}addValue(t,e,s){const i=x({},s.series,{index:s.index});if(this.evalSegmentOptions(i,t,s),this.createLegendItem(t,i,s),!1===s.visible)return;const n=new Tg(t,e,i);Object.assign(n,s),this.append(n),this.points.push(n)}reflow(t){const{options:e,points:s,seriesConfigs:i=[]}=this,n=s.length,r=t.clone(),c=Math.min(r.width(),r.height()),h=c/2,d=c-.85*c,u=new A(r.x1,r.y1,r.x1+c,r.y1+c),p=u.center(),f=r.center(),g=e.series.length,m=[],v=[];let y=O(e.padding,d);this.targetBox=t,y=y>h-5?h-5:y,u.translate(f.x-p.x,f.y-p.y);const C=h-y,M=new V(C+u.x1+y,C+u.y1+y);for(let R=0;R<n;R++){const B=s[R],st=B.sector,Z=B.seriesIx;if(st.radius=C,st.center=M,i.length){const xt=i[Z];st.innerRadius=xt.innerRadius,st.radius=xt.radius}Z===g-1&&B.explode&&(st.center=st.clone().setRadius(.15*st.radius).point(st.middle())),B.reflow(u);const Q=B.label;Q&&Q.options.position===Rs&&Z===g-1&&(Q.orientation===Y?v.push(Q):m.push(Q))}m.length>0&&(m.sort(this.labelComparator(!0)),this.leftLabelsReflow(m)),v.length>0&&(v.sort(this.labelComparator(!1)),this.rightLabelsReflow(v)),this.box=u}leftLabelsReflow(t){const e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)}rightLabelsReflow(t){const e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)}distanceBetweenLabels(t){const e=mt(this.points),s=e.sector,i=t.length-1,n=s.radius+e.options.labels.distance,r=[];let a=t[0].box,c=k(a.y1-(s.center.y-n-a.height()-a.height()/2));r.push(c);for(let h=0;h<i;h++)a=t[h].box,c=k(t[h+1].box.y1-a.y2),r.push(c);return c=k(s.center.y+n-t[i].box.y2-t[i].box.height()/2),r.push(c),r}distributeLabels(t,e){const s=t.length;let i,n,r;for(let a=0;a<s;a++)for(r=-t[a],i=n=a;r>0&&(i>=0||n<s);)r=this._takeDistance(t,a,--i,r),r=this._takeDistance(t,a,++n,r);this.reflowLabels(t,e)}_takeDistance(t,e,s,i){let n=i;if(t[s]>0){const r=Math.min(t[s],n);n-=r,t[s]-=r,t[e]+=r}return n}reflowLabels(t,e){const s=mt(this.points),i=s.sector,n=s.options.labels,r=e.length,a=n.distance;let h,c=i.center.y-(i.radius+a)-e[0].box.height();t[0]+=2;for(let d=0;d<r;d++){const u=e[d],p=u.box;c+=t[d],h=this.hAlignLabel(p.x2,i.clone().expand(a),c,c+p.height(),u.orientation===Y),u.orientation===Y?(n.align!==Nt&&(h=i.radius+i.center.x+a),u.reflow(new A(h+p.width(),c,h,c))):(n.align!==Nt&&(h=i.center.x-i.radius-a),u.reflow(new A(h-p.width(),c,h,c))),c+=p.height()}}createVisual(){const{options:{connectors:t},points:e}=this,s=e.length;super.createVisual(),this._connectorLines=[];for(let n=0;n<s;n++){const r=e[n],{sector:a,label:c}=r,h=a.middle();if(c){const u=new E.w({stroke:{color:(r.options.connectors||{}).color||t.color,width:t.width},animation:{type:rs,delay:r.animationDelay}});if(c.options.position===Rs){const p=c.box,f=a.center;let v,y,C,g=a.point(h),m=new V(p.x1,p.center().y);g=a.clone().expand(t.padding).point(h),u.moveTo(g.x,g.y),c.orientation===Y?(y=new V(p.x1-t.padding,p.center().y),C=Eg(f,g,m,y),m=new V(y.x-4,y.y),C=C||m,C.x=Math.min(C.x,m.x),this.pointInCircle(C,a.center,a.radius+4)||C.x<a.center.x?(v=a.center.x+a.radius+4,u.lineTo(r.options.labels.align!==Ae?v<m.x?v:g.x+8:v,g.y),u.lineTo(m.x,y.y)):(C.y=y.y,u.lineTo(C.x,C.y))):(y=new V(p.x2
1+t.padding,p.center().y),C=Eg(f,g,m,y),m=new V(y.x+4,y.y),C=C||m,C.x=Math.max(C.x,m.x),this.pointInCircle(C,a.center,a.radius+4)||C.x>a.center.x?(v=a.center.x-a.radius-4,u.lineTo(r.options.labels.align!==Ae?v>m.x?v:g.x-8:v,g.y),u.lineTo(m.x,y.y)):(C.y=y.y,u.lineTo(C.x,C.y))),u.lineTo(y.x,y.y),this._connectorLines.push(u),this.visual.append(u)}}}}renderVisual(){if(super.renderVisual(),Fd(this.options.series,t=>t.autoFit)){const t=this.targetBox,e=this.box.center(),s=this.visual.bbox();if(!s)return;const i=s.bottomRight(),n=Math.min((e.y-t.y1)/(e.y-s.origin.y),(t.y2-e.y)/(i.y-e.y),(e.x-t.x1)/(e.x-s.origin.x),(t.x2-e.x)/(i.x-e.x));n<1&&this.visual.transform(vt.A().scale(n,n,[e.x,e.y]))}}labelComparator(t){const e=t?-1:1;return function(s,i){return((s.parent.sector.middle()+270)%360-(i.parent.sector.middle()+270)%360)*e}}hAlignLabel(t,e,s,i,n){const{radius:r,center:{x:a,y:c}}=e,h=Math.min(Math.abs(c-s),Math.abs(c-i));return h>r?t:a+Math.sqrt(r*r-h*h)*(n?1:-1)}pointInCircle(t,e,s){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(s,2)}formatPointValue(t,e){return this.chartService.format.auto(e,t.value)}animationDelay(t){return 70*t}stackRoot(){return this}}function Eg(o,t,e,s){const n=(s.y-e.y)*(t.x-o.x)-(s.x-e.x)*(t.y-o.y);let r;if(0!==n){const a=((s.x-e.x)*(o.y-e.y)-(s.y-e.y)*(o.x-e.x))/n;r=new V(o.x+a*(t.x-o.x),o.y+a*(t.y-o.y))}return r}w(Rr,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),x(Rr.prototype,Mg),Rr.prototype.isStackRoot=!0;const Dg=Rr,Pg=class Lw extends us{render(){this.createPieChart(this.series)}createPieChart(t){const e=t[0],s=new Dg(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(s)}appendChart(t,e){super.appendChart(t,e),ks(this.options.legend.data,t.legendItems)}getPointBelow(t){return this.getPointToTheRight(t)}getPointAbove(t){return this.getPointToTheLeft(t)}};class Vc extends Tg{reflowLabel(){const{options:{labels:t},label:e}=this,s=this.sector.clone(),i=s.middle();if(e){const n=e.box.height();if(t.position===F){s.radius-=(s.radius-s.innerRadius)/2;const r=s.point(i);e.reflow(new A(r.x,r.y-n/2,r.x,r.y))}else super.reflowLabel()}}createSegment(t,e){return Yo.current.createRing(t,e)}}w(Vc,{overlay:{gradient:"roundedGlass"},labels:{position:F},animation:{type:ls}}),x(Vc.prototype,de);const Lg=Vc;class Ig extends Dg{addValue(t,e,s){const i=x({},s.series,{index:s.index});if(this.evalSegmentOptions(i,t,s),this.createLegendItem(t,i,s),!1===s.visible)return;const n=new Lg(t,e,i);Object.assign(n,s),this.append(n),this.points.push(n)}reflow(t){const e=this.options,s=t.clone(),n=Math.min(s.width(),s.height()),r=n/2,c=e.series,h=c.length;let d=O(e.padding,n-.85*n);d=d>r-5?r-5:d;let f,u=r-d,p=0;for(let C=0;C<h;C++){const M=c[C];0===C&&_(M.holeSize)&&(f=M.holeSize,u-=M.holeSize),_(M.size)?u-=M.size:p++,_(M.margin)&&C!==h-1&&(u-=M.margin)}_(f)||(f=(r-d)/(h+.75)*.75,u-=f);let v,y,g=f,m=0;this.seriesConfigs=[];for(let C=0;C<h;C++){const M=c[C];v=O(M.size,u/p),g+=m,y=g+v,this.seriesConfigs.push({innerRadius:g,radius:y}),m=M.margin||0,g=y}super.reflow(t)}animationDelay(t,e,s){return 50*t+oe*(e+1)/(s+1)}}w(Ig,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});const Rw=Ig,Rg=class Fw extends us{initFields(){this.valueAxisRangeTracker=new Ar}render(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()}alignAxes(){const t=this.valueAxis,e=t.range(),i=t.getSlot(t.options.reverse?e.max:e.min),n=this.polarAxis.getSlot(0).center,r=t.box.translate(n.x-i.x1,n.y-i.y1);t.reflow(r)}createValueAxis(){const t=this.valueAxisRangeTracker,e=t.query(),s=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});let i,n;s.type===vr?(i=p_,n={min:.1,max:1}):(i=u_,n={min:0,max:1});const r=t.query(name)||e||n;r&&e&&(r.min=Math.min(r.min,e.min),r.max=Math.max(r.max,e.max));const a=new i(r.min,r.max,s,this.chartService);this.valueAxis=a,this.appendAxis(a)}reflowAxes(){const{options:{plotArea:t},valueAxis:e,polarAxis:s,box:i}=this,n=.15*Math.min(i.width(),i.height()),r=K(t.padding||{},n),a=i.clone().unpad(r),c=a.clone();c.y2=c.y1+Math.min(c.width(),c.height()),c.align(a,P,F);const h=c.clone().shrink(0,c.height()/2);s.reflow(c),e.reflow(h);const d=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:d})),this.axisBox=c,this.alignAxes(c)}backgroundBox(){return this.box}detachLabels(){}};class Bg extends kr{pointSlot(t,e){const i=V.onCircle(t.center,t.startAngle,t.center.y-e.y1);return new A(i.x,i.y,i.x,i.y)}}w(Bg,{clip:!1});const Og=Bg;class Fc extends Ag{}Fc.prototype.pointSlot=Og.prototype.pointSlot,w(Fc,{clip:!1});const Vg=Fc,zw=class Nw extends vc{fillToAxes(t){const e=this._polarAxisCenter();t.lineTo(e.x,e.y)}_polarAxisCenter(){return this.parent.plotArea.polarAxis.box.center()}strokeSegments(){let t=this._strokeSegments;if(!t){const e=this._polarAxisCenter(),s=new dr(!1),i=this.points();i.push(e),t=this._strokeSegments=s.process(i),t.pop()}return t}},Hw=class Uw extends Di{fillToAxes(t){const s=this.parent.plotArea.polarAxis.box.center(),i=new Be.A([s.x,s.y]);t.segments.unshift(i),t.segments.push(i)}};function Gw(o,t){return o.value.x-t.value.x}const Xw=class jw extends Vg{createSegment(t,e,s){let n;return n=(e.line||{}).style===fi?new zw(t,e,s):new Hw(t,e,s),n}createMissingValue(t,e){let s;return jt(t.x)&&e!==gi&&(s={x:t.x,y:t.y},e===Oe&&(s.y=0)),s}seriesMissingValues(t){return t.missingValues||Oe}_hasMissingValuesGap(){const t=this.options.series;for(let e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0}sortPoints(t){if(t.sort(Gw),this._hasMissingValuesGap())for(let e=0;e<t.length;e++){const s=t[e];s&&!jt(s.value.y)&&"gap"===this.seriesMissingValues(s.series)&&delete t[e]}return t}};class Nc extends Rg{createPolarAxis(){const t=new h_(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)}render(){this.series=[...this.originalSeries],this.createTrendlineSeries(),super.render()}valueAxisOptions(t){return x(t,{majorGridLines:{type:es},minorGridLines:{type:es}},this.options.yAxis)}createValueAxis(){super.createValueAxis(),this.axisY=this.valueAxis}trendlineFactory(t,e){const s=Oc.prototype.trendlineFactory.call(this,t,e);return s&&(s.type=mr),s}appendChart(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),us.prototype.appendChart.call(this,t,e)}createCharts(){const t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(dt(t,[mr]),e),this.createScatterChart(dt(t,[$l]),e),this.createAreaChart(dt(t,[Yl]),e)}createLineChart(t,e){if(0===t.length)return;const s=new Vg(this,{series:t});this.appendChart(s,e)}createScatterChart(t,e){if(0===t.length)return;const s=new Og(this,{series:t});this.appendChart(s,e)}createAreaChart(t,e){if(0===t.length)return;const s=new Xw(this,{series:t});this.appendChart(s,e)}_dispatchEvent(t,e,s){const i=t._eventCoordinates(e),n=new V(i.x,i.y),r
1=this.axisX.getValue(n),a=this.axisY.getValue(n);null!==r&&null!==a&&t.trigger(s,{element:ae(e),x:r,y:a})}createCrosshairs(){}}w(Nc,{xAxis:{},yAxis:{}}),x(Nc.prototype,Bn,{seriesValues:Oc.prototype.seriesValues});const Ww=Nc;class Fg extends xc{pointSlot(t,e){const s=t.center.y-e.y1,i=V.onCircle(t.center,t.middle(),s);return new A(i.x,i.y,i.x,i.y)}renderSegments(){if(super.renderSegments(),this._segments&&this._segments.length>1){const t=function Yw(o){const t=[];for(let e=0;e<o.length;e++){const s=o[e];t[s.seriesIx]=t[s.seriesIx]||[],t[s.seriesIx].push(s)}return t}(this._segments);for(let e=0;e<t.length;e++){const s=t[e];if(s&&s.length>1){const i=s[0].linePoints[0],n=mt(s),r=mt(n.linePoints);0===i.categoryIx&&r.categoryIx===r.categoriesCount-1&&mt(s).linePoints.push(i)}}}}createSegment(t,e,s){let n;n=e.style===fi?gc:Ei;const r=new n(t,e,s),a=this.seriesMissingValues(e);return(t.length===e.data.length||a===gi)&&(r.options.closed=!0),r}}w(Fg,{clip:!1,limitPoints:!1});const Ng=Fg,Zw=class $w extends vc{fillToAxes(){}},Kw=class Qw extends Di{fillToAxes(){}},Jw=class qw extends Ng{createSegment(t,e,s,i){const r=(e.line||{}).style;let a,c,h;return this.options.isStacked&&s>0&&i&&(c=i.linePoints.slice(0),a=i),r===fi?(h=new Zw(t,e,s,a,c),h.options.closed=!0):(t.push(t[0]),h=new Kw(t,e,s,a,c)),h}seriesMissingValues(t){return t.missingValues||Oe}};class zg extends Lg{constructor(t,e){super(t,null,e)}getIndex(){return this.categoryIx}}w(zg,{overlay:{gradient:"none"},labels:{distance:10}});const t1=zg;class Ug extends q{constructor(t){super(t),this.forEach=t.rtl?Dp:Ep}reflow(t){const{options:e,children:s}=this,{gap:i,spacing:n}=e,r=s.length,c=t.angle/(r+i+n*(r-1));let h=t.startAngle+c*(i/2);this.forEach(s,d=>{const u=t.clone();u.startAngle=h,u.angle=c,d.sector&&(u.radius=d.sector.radius),d.reflow(u),d.sector=u,h+=c+c*n})}}w(Ug,{gap:1,spacing:0});const e1=Ug,i1=class s1 extends q{reflow(t){const{options:{reverse:e},children:s}=this,i=s.length,n=e?i-1:0,r=e?-1:1;this.box=new A;for(let a=n;a>=0&&a<i;a+=r){const c=s[a].sector;c.startAngle=t.startAngle,c.angle=t.angle}}};class zc extends In{pointType(){return t1}clusterType(){return e1}stackType(){return i1}categorySlot(t,e){return t.getSlot(e)}pointSlot(t,e){const s=t.clone(),i=t.center.y;return s.radius=i-e.y1,s.innerRadius=i-e.y2,s}reflowPoint(t,e){t.sector=e,t.reflow()}createAnimation(){this.options.animation.center=this.box.toRect().center(),super.createAnimation()}}zc.prototype.reflow=Bs.prototype.reflow,w(zc,{clip:!1,limitPoints:!1,animation:{type:"pie"}});const n1=zc;class Uc extends Rg{createPolarAxis(){const t=new Nl(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createTrendlineSeries(),this.createCategoryAxesLabels()}valueAxisOptions(t){return this._hasBarCharts&&x(t,{majorGridLines:{type:es},minorGridLines:{type:es}}),this._isStacked100&&x(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),x(t,this.options.valueAxis)}aggregateCategories(){He.prototype.aggregateCategories.call(this,this.panes)}createCategoryAxesLabels(){He.prototype.createCategoryAxesLabels.call(this,this.panes)}filterSeries(t){return t}trendlineFactory(t,e){const s=He.prototype.trendlineFactory.call(this,t,e);return s&&(s.type=bi),s}createCharts(){const t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(dt(t,[wn]),e),this.createLineChart(dt(t,[bi]),e),this.createBarChart(dt(t,[xr]),e)}chartOptions(t){const e={series:t},s=t[0];if(s){const i=this.filterVisibleSeries(t),n=s.stack;e.isStacked=n&&i.length>1,e.isStacked100=n&&"100%"===n.type&&i.length>1,e.isStacked100&&(this._isStacked100=!0)}return e}createAreaChart(t,e){if(0===t.length)return;const s=new Jw(this,this.chartOptions(t));this.appendChart(s,e)}createLineChart(t,e){if(0===t.length)return;const s=new Ng(this,this.chartOptions(t));this.appendChart(s,e)}createBarChart(t,e){if(0===t.length)return;const s=t[0],i=this.chartOptions(t),n=this.filterVisibleSeries(t),r=n.some(h=>h.stack),a=n.some(h=>h.stack&&"100%"===h.stack.type);i.gap=s.gap,i.spacing=s.spacing,i.defaultStack=s.stack&&n.length>1,i.isStacked=r&&n.length>1,i.isStacked100=a&&n.length>1;const c=new n1(this,i);this.appendChart(c,e),this._hasBarCharts=!0}seriesCategoryAxis(){return this.categoryAxis}_dispatchEvent(t,e,s){const i=t._eventCoordinates(e),n=new V(i.x,i.y),r
1=this.categoryAxis.getCategory(n),a=this.valueAxis.getValue(n);null!==r&&null!==a&&t.trigger(s,{element:ae(e),category:r,value:a})}createCrosshairs(){}_pointsByVertical(t){return super._pointsByVertical(t).sort(this._getSeriesCompareFn())}_getSeriesCompareFn(){return(t,e)=>e.value-t.value}}x(Uc.prototype,Bn,{appendChart:He.prototype.appendChart,aggregateSeries:He.prototype.aggregateSeries,seriesSourcePoints:He.prototype.seriesSourcePoints,seriesValues:He.prototype.seriesValues}),w(Uc,{categoryAxis:{categories:[]},valueAxis:{}});const o1=Uc;class Br extends q{constructor(t,e,s){super(e),this.value=t,this.options.index=s.index}getLabelText(t){let e=kt(t);return e?e(this.pointData()):t.format?this.formatValue(t.format):this.value}reflow(t){const e=this.points,s=this.children[0],i=Math.min(e[0].x,e[3].x),n=Math.max(e[1].x,e[2].x);this.box=new A(i,e[0].y,n,e[2].y),s&&s.reflow(new A(t.x1,e[0].y,t.x2,e[2].y))}createVisual(){const t=this.options;let e;super.createVisual(),this.addAccessibilityAttributesToVisual(),e=t.visual?t.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:t,sender:this.getSender(),createVisual:()=>this.createPath()}):this.createPath(),e&&this.visual.append(e)}createPath(){const t=this.options,e=t.border;return E.w.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()}createHighlight(t){return E.w.fromPoints(this.points,t)}highlightVisual(){return this.visual.children[0]}highlightVisualArgs(){const t=E.w.fromPoints(this.points).close();return{options:this.options,path:t}}createFocusHighlight(t){const e=this.options.accessibility.highlight.border.width,s=E.w.fromPoints(this.points,x({},t,{stroke:{width:2*e}})).close(),i=new E.P;return i.paths.push(E.w.fromRect(this.box.clone().pad(e).toRect())),i.paths.push(E.w.fromPoints(this.points)),s.clip(i),s}tooltipAnchor(){const t=this.box;return{point:new V(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}}formatValue(t){return this.owner.formatPointValue(this,t)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}getIndex(){return this.index}}w(Br,{color:W,border:{width:1},labels:{format:""},accessibility:{role:cs,className:hs,ariaRoleDescription:ds}}),x(Br.prototype,de),x(Br.prototype,Pi);const r1=Br;class Hc extends q{constructor(t,e){super(e),this.plotArea=t,this.chartService=t.chartService,this.points=[],this.labels=[],this.legendItems=[],this.render()}formatPointValue(t,e){return this.plotArea.chartService.format.auto(e,t.value)}render(){const{options:e,plotArea:{options:{seriesColors:s=[]}}}=this,i=e.series[0],n=i.data;if(!n)return;const{total:r,points:a}=mp(i);for(let c=0;c<a.length;c++){const h=a[c];if(!h)continue;let d=h.fields;ct(i.color)||(i.color=d.color||s[c%s.length]),d=x({index:c,owner:this,series:i,seriesIx:0,dataItem:n[c],percentage:h.value/r},d,{visible:h.visible});const u=h.valueFields.value,p=this.createSegment(u,d),f=this.createLabel(u,d);p&&f&&p.append(f)}}evalSegmentOptions(t,e,s){const i=s.series;Ue(t,{value:e,series:i,dataItem:s.dataItem,index:s.index},{defaults:i._defaults,excluded:["data","content","template","toggle","visual","ariaTemplate","ariaContent"]})}createSegment(t,e){const s=x({},e.series);if(this.evalSegmentOptions(s,t,e),this.createLegendItem(t,s,e),!1!==e.visible){const i=new r1(t,s,e);return Object.assign(i,e),this.append(i),this.points.push(i),i}}createLabel(t,e){const{series:s,dataItem:i}=e,n=x({},this.options.labels,s.labels);let r=t;if(n.visible){const a=kt(n),c={dataItem:i,value:t,percentage:e.percentage,category:e.category,series:s};a?r=a(c):n.format&&(r=this.chartService.format.auto(n.format,r)),n.color||(n.color=zo(s.color),n.background||(n.background=s.color)),this.evalSegmentOptions(n,t,e);const h=new Ht(r,x({vAlign:n.position},n),c);return this.labels.push(h),h}}labelPadding(){const t=this.labels,e={left:0,right:0};for(let s=0;s<t.length;s++){const n=t[s].options.align;if(n!==F){const r=t[s].box.width();n===U?e.left=Math.max(e.left,r):e.right=Math.max(e.right,r)}}return e}dynamicSlopeReflow(t,e,s){const{options:i,points:n}=this,r=n.length,a=n[0];let c=a;for(let p=0;p<n.length;p++)n[p].percentage>c.percentage&&(c=n[p]);let h=a.percentage/c.percentage*e,d=(e-h)/2,u=0;for(let p=0;p<r;p++){const f=n[p].percentage,g=n[p+1],m=g?g.percentage:f,v=n[p].points=[],y=i.dynamicHeight?s*f:s/r;let C;C=f?(e-h*(m/f))/2:m?0:e/2,C=I(C,0,e),v.push(new H.A(t.x1+d,t.y1+u)),v.push(new H.A(t.x1+e-d,t.y1+u)),v.push(new H.A(t.x1+e-C,t.y1+y+u)),v.push(new H.A(t.x1+C,t.y1+y+u)),d=C,u+=y+i.segmentSpacing,h=I(e-2*C,0,e)}}constantSlopeReflow(t,e,s){const{options:i,points:n}=this,r=n.length,a=i.neckRatio<=1;let h=a?0:(e-e/i.neckRatio)/2;const u=((a?e:e-2*h)-(a?i.neckRatio*e:e))/2;let p=0;for(let f=0;f<r;f++){const g=n[f].points=[],m=n[f].percentage,v=i.dynamicHeight?u*m:u/r,y=i.dynamicHeight?s*m:s/r;g.push(new H.A(t.x1+h,t.y1+p)),g.push(new H.A(t.x1+e-h,t.y1+p)),g.push(new H.A(t.x1+e-h-v,t.y1+y+p)),g.push(new H.A(t.x1+h+v,t.y1+y+p)),h+=v,p+=y+i.segmentSpacing}}reflow(t){const e=this.points,s=e.length;if(!s)return;const i=this.options,n=t.clone().unpad(this.labelPadding()),r=n.height()-i.segmentSpacing*(s-1),a=n.width();i.dynamicSlope?this.dynamicSlopeReflow(n,a,r):this.constantSlopeReflow(n,a,r);for(let c=0;c<s;c++)e[c].reflow(t)}}w(Hc,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:F,position:F,zIndex:1}}),x(Hc.prototype,Mg);const Hg=Hc,c1=class l1 extends Hg{constructor(t,e){e.dynamicSlope=!1,e.neckRatio=1e6,super(t,e)}};var u1=S(45503);class Nn extends q{constructor(t,e){super(),this.options=e,this.color=e.color||W,this.value=t}render(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())}createLabel(){const e=this.options.labels;e.visible&&(this.label=this.createLabelElement(e),this.append(this.label))}createLabelElement(t){let e=t.color;return e||(e=zo(this.color)),new Ht(this.getLabelText(t),x({align:F,vAlign:F,margin:{left:5,right:5},zIndex:O(t.zIndex,this.series.zIndex)},t,{color:e}),this.pointData())}getLabelText(t){let e=kt(t);return e?e(this.pointData()):this.formatValue(t.format)}formatValue(t){return this.owner.formatPointValue(this,t)}reflow(t){this.render();const e=this.label;this.box=t,e&&e.reflow(this.markerBox()),this.note&&this.note.reflow(t),this.marker.reflow(this.markerBox())}createVisual(){super.createVisual(),this.addAccessibilityAttributesToVisual()}markerBox(){const e=this.options.markers,s=e.border,i=this.box.toRect(),r=O(e.type,"rect")===bd;let a=O(s.width,r?1:0);const c=Math.round(a/2);if(e.size){const h=i.center();i.size.width=i.size.height=e.size,i.origin.x=Math.round(h.x-i.size.width/2),i.origin.y=Math.round(h.y-i.size.height/2)}return i.size.width-=a,i.size.height-=a,i.origin.y+=c+.5,i.origin.x+=c+.5,ui(i)}markerBorder(){const t=this.options,s=t.markers.border,i=O(s.opacity,t.opacity);return{color:s.color||this.color,width:s.width,opacity:i,dashType:s.dashType}}createMarker(){const t=this.options,e=t.markers,s=new Rt({type:O(e.type,"rect"),width:e.size,height:e.size,rotation:e.rotation,background:this.color,border:this.markerBorder(),borderRadius:e.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:O(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=s,this.append(s)}createHighlight(t){const e=this.options,s=this.options.highlight.markers||this.options.markers,i=new Rt({type:O(s.type,"rect"),width:s.size,height:s.size,rotation:s.rotation,background:s.
1color||this.color,border:this.markerBorder(),borderRadius:s.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:O(e.zIndex,this.series.zIndex)});i.reflow(this.markerBox());const n=i.getElement();return n.options.fill=t.fill,n.options.stroke=t.stroke,n}highlightVisual(){return this.rectVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}createFocusHighlight(){const t=this.options.markers,e=this.options.accessibility.highlight,s=new Rt({type:O(t.type,"rect"),width:t.size,height:t.size,rotation:t.rotation,background:e.color,border:e.border,borderRadius:t.borderRadius,padding:e.border.width/2,zIndex:e.zIndex});return s.reflow(this.markerBox()),s.getElement()}tooltipAnchor(){const t=this.box.center().x;return{point:new V(t,this.box.y1-5),align:{horizontal:F,vertical:$}}}overlapsBox(t){return this.box.overlaps(t)}unclipElements(){}pointData(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}}}x(Nn.prototype,de),x(Nn.prototype,Mi),x(Nn.prototype,Pi),Nn.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}},accessibility:{role:cs,className:hs,ariaRoleDescription:ds}};const jg=Nn;class Gg extends q{constructor(t,e){super(e),this.plotArea=t,this.chartService=t.chartService,this._initFields(),this.render()}_initFields(){this.points=[],this.seriesOptions=[],this.valueRange={min:ft,max:_t},this._evalSeries=[]}render(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))}setRange(){const{options:{series:t}}=this;for(let e=0;e<t.length;e++){const s=t[e];for(let i=0;i<s.data.length;i++){const{valueFields:n}=this.plotArea.bindPoint(s,i);_(n.value)&&null!==n.value&&(this.valueRange.min=Math.min(this.valueRange.min,n.value),this.valueRange.max=Math.max(this.valueRange.max,n.value))}}}addValue(t,e){let s;t&&_(t.value)&&null!==t.value&&(s=this.createPoint(t,e),s&&Object.assign(s,e)),this.points.push(s)}evalPointOptions(t,e,s){const{series:i,seriesIx:n}=s,r={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","drilldownSeriesFactory","ariaTemplate","ariaContent"]};let a=this._evalSeries[n];_(a)||(this._evalSeries[n]=a=Ue(t,{},r,!0));let c=t;return a&&(c=x({},t),Ue(c,{value:e,series:i,dataItem:s.dataItem,min:this.valueRange.min,max:this.valueRange.max},r)),c}pointType(){return jg}pointOptions(t,e){let s=this.seriesOptions[e];if(!s){const i=this.pointType().prototype.defaults;this.seriesOptions[e]=s=x({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return s}createPoint(t,e){const s=e.series;let i=this.pointOptions(s,e.seriesIx),n=e.color||s.color;i=this.evalPointOptions(i,t,e),ct(s.color)?n=i.color:0!==this.valueRange.max&&(n=((o,t=.05)=>{const e=(0,u1.Ay)(o),s=1-t;return i=>{const n=e.toHSL(),r=100-n.l;return n.l+=Math.min((s-i)*r,r),n.toCss()}})(n)(t.value/this.valueRange.max));const r=new jg(t,i);return r.color=n,this.append(r),r}seriesAxes(t){const{xAxis:e,yAxis:s}=t,i=this.plotArea,n=e?i.namedXAxes[e]:i.axisX,r=s?i.namedYAxes[s]:i.axisY;if(!n)throw new Error("Unable to locate X axis with name "+e);if(!r)throw new Error("Unable to locate Y axis with name "+s);return{xAxis:n,yAxis:r}}reflow(t){const e=this.points,s=!this.options.clip;let i=0;this.traverseDataPoints((n,r)=>{const a=e[i++],{xAxis:c,yAxis:h}=this.seriesAxes(r.series),d=c.categoryIndex(n.x),u=h.categoryIndex(n.y),p=c.getSlot(d,d,s),f=h.getSlot(u,u,s);if(a)if(p&&f){const g=this.pointSlot(p,f);a.reflow(g)}else a.visible=!1}),this.box=t}pointSlot(t,e){return new A(t.x1,e.y1,t.x2,e.y2)}traverseDataPoints(t){const{options:{series:e}}=this;for(let s=0;s<e.length;s++){const i=e[s],{xAxis:n,yAxis:r}=this.seriesAxes(i),a=n.currentRangeIndices(),c=r.currentRangeIndices();for(let h=0;h<i.data.length;h++){const{valueFields:d,fields:u}=this.plotArea.bindPoint(i,h),p=n.totalIndex(d.x),f=r.totalIndex(d.y);a.min<=p&&p<=a.max&&c.min<=f&&f<=c.max&&t(d,x({pointIx:h,series:i,seriesIx:s,dataItem:i.data[h],owner:this},u))}}}formatPointValue(t,e){const s=t.value;return this.chartService.format.auto(e,s.x,s.y,s.value)}animationPoints(){const t=this.points,e=[];for(let s=0;s<t.length;s++)e.push((t[s]||{}).marker);return e}}w(Gg,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0});const g1=Gg;class jc extends us{initFields(){this.namedXAxes={},this.namedYAxes={}}render(t=this.panes){this.bindCategories(),this.createAxes(t),this.createCharts(t),this.createAxisLabels()}bindCategories(){const t=this.srcSeries||this.series;for(let e=0;e<t.length;e++){const s=t[e],i=s.data||[],{xAxis:n,yAxis:r}
1=this.seriesAxes(s),a=Ud(n.categories||[]),c=Ud(r.categories||[]);for(let h=0;h<i.length;h++){const{x:d,y:u}=rt.current.bindPoint(s,h).valueFields;a.has(d)||a.add(d),c.has(u)||c.add(u)}n.categories=a.values(),r.categories=c.values()}}createCharts(t){const e=this.groupSeriesByPane();for(let s=0;s<t.length;s++){const i=t[s],n=e[i.options.name||"default"]||[];this.addToLegend(n);const r=this.filterVisibleSeries(n);r&&this.createHeatmapChart(dt(r,[Wl]),i)}}createHeatmapChart(t,e){const s=new g1(this,{series:t});this.appendChart(s,e)}seriesPaneName(t){const e=this.options,s=t.xAxis,n=Yt([].concat(e.xAxis),function(p){return p.name===s})[0],r=t.yAxis,c=Yt([].concat(e.yAxis),function(p){return p.name===r})[0];return(n||{}).pane||(c||{}).pane||(e.panes||[{}])[0].name||"default"}seriesAxes(t){let e,s;const i=this.options,n=[].concat(i.xAxis),r=t.xAxis;e=r?n.find(h=>h.name===r):n[0];const a=[].concat(i.yAxis),c=t.yAxis;if(s=c?a.find(h=>h.name===c):a[0],!e)throw new Error("Unable to locate X axis with name "+r);if(!s)throw new Error("Unable to locate Y axis with name "+c);return{xAxis:e,yAxis:s}}createAxisLabels(){const t=this.axes;for(let e=0;e<t.length;e++)t[e].createLabels()}createXYAxis(t,e,s){const i=t.name,n=e?this.namedYAxes:this.namedXAxes,r=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),c=[r.min,r.max,r.categories?r.categories[0]:null],h=this.series;for(let f=0;f<h.length;f++){const g=h[f],m=g[e?"yAxis":"xAxis"];if(m===r.name||0===s&&!m){const v=rt.current.bindPoint(g,0).valueFields;c.push(v[e?"y":"x"]);break}}let d,u;for(let f=0;f<c.length;f++)if(c[f]instanceof Date){d=!0;break}u=ze(r.type,Me)||!r.type&&d?xn:Ie;const p=new u(r,this.chartService);if(p.axisIndex=s,i){if(n[i])throw new Error(`${e?"Y":"X"} axis with name ${i} is already defined`);n[i]=p}return this.appendAxis(p),p.indexCategories(),p}createAxes(t){const e=this.options,s=[].concat(e.xAxis),i=[],n=[].concat(e.yAxis),r=[];for(let a=0;a<s.length;a++)N(this.findPane(s[a].pane),t)&&i.push(this.createXYAxis(s[a],!1,a));for(let a=0;a<n.length;a++)N(this.findPane(n[a].pane),t)&&r.push(this.createXYAxis(n[a],!0,a));this.axisX=this.axisX||i[0],this.axisY=this.axisY||r[0]}removeAxis(t){const e=t.options.name;super.removeAxis(t),t.options.vertical?delete this.namedYAxes[e]:delete this.namedXAxes[e],t===this.axisX&&delete this.axisX,t===this.axisY&&delete this.axisY}_dispatchEvent(t,e,s){const i=t._eventCoordinates(e),n=new V(i.x,i.y),r=this.axes,a=r.length,c=[],h=[];for(let d=0;d<a;d++){const u=r[d];_r(u.options.vertical?h:c,u.getCategory(n))}c.length>0&&h.length>0&&t.trigger(s,{element:ae(e),originalEvent:e,x:Ti(c),y:Ti(h)})}updateAxisOptions(t,e){const s=t.options.vertical,i=this.groupAxes(this.panes),n=(s?i.y:i.x).indexOf(t);Xg(this.options,n,s,e),Xg(this.originalOptions,n,s,e)}crosshairOptions(t){return Object.assign({},t.options.crosshair,{zIndex:0})}_pointsByVertical(t,e=0){const s=this.axisX.options.reverse?-1*e:e,i=this.axisX.children;let n=this._getPointAxisXIndex(t)+s;n=Oo(n,i.length);const r=i[n].value,a=this.filterPoints(c=>Gc(c.pointData().x,r)).sort((c,h)=>this._getPointAxisYIndex(c)-this._getPointAxisYIndex(h));return this.axisY.options.reverse?a.reverse():a}_pointsByHorizontal(t,e=0){const s=this.axisY.options.reverse?-1*e:e,i=this.axisY.children;let n=this._getPointAxisYIndex(t)+s;n=Oo(n,i.length);const r=i[n].value,a=this.filterPoints(c=>Gc(c.pointData().y,r)).sort((c,h)=>this._getPointAxisXIndex(c)-this._getPointAxisXIndex(h));return this.axisX.options.reverse?a.reverse():a}_getPointAxisXIndex(t){return this._getPointAxisIndex(this.axisX,t.pointData().x)}_getPointAxisYIndex(t){return this._getPointAxisIndex(this.axisY,t.pointData().y)}_getPointAxisIndex(t,e){return t.children.findIndex(s=>Gc(e,s.value))}}function Gc(o,t){return o instanceof Date&&t instanceof Date?Jo(o,t):o===t}function Xg(o,t,e,s){x([].concat(e?o.yAxis:o.xAxis)[t],s)}w(jc,{xAxis:{},yAxis:{}}),x(jc.prototype,Bn);const f1=jc,Zt="color",Qt="first",Ot="max",Xe="noteText";je.current.register(He,[re,Ae,Fe,Ls,Ve,Ps,xi,yi,as,Sn,bn,wi,An,Ci,kn,vi,_i,Is,...Ai]),je.current.register(Oc,[Zl,Ql,mi,...Ai]),je.current.register(Pg,[ls]),je.current.register(class Bw extends Pg{render(){this.createDonutChart(this.series)}createDonutChart(t){const e=t[0],s=new Rw(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(s)}
1getPointBelow(t){return this._getNextPoint(t,this._pointsByVertical,-1)}getPointAbove(t){return this._getNextPoint(t,this._pointsByVertical,1)}},[fr]),je.current.register(class h1 extends us{render(){this.createChart(Hg,dt(this.series,[_n])),this.createChart(c1,dt(this.series,[Cn]))}createChart(t,e){const s=e[0];if(!s)return;const i=new t(this,{series:e,legend:this.options.legend,neckRatio:s.neckRatio,dynamicHeight:s.dynamicHeight,dynamicSlope:s.dynamicSlope,segmentSpacing:s.segmentSpacing,highlight:s.highlight});this.appendChart(i)}appendChart(t,e){super.appendChart(t,e),ks(this.options.legend.data,t.legendItems)}_pointsByVertical(t){return this.pointsBySeriesIndex(t.series.index)}getPointToTheRight(t){return this.getPointBelow(t)}getPointToTheLeft(t){return this.getPointAbove(t)}},[_n,Cn]),je.current.register(Ww,[Yl,mr,$l,...Ai]),je.current.register(o1,[wn,xr,bi,...Ai]),je.current.register(f1,[Wl]),rt.current.register([re,Ae,Fe,Ls,Ve,Ps],[Xt],[he,Zt,Xe,Ju,tp,Ne]),rt.current.register([An,Ci,_i,Is],["from","to"],[he,Zt,Xe,Ne]),rt.current.register([kn,vi],[Xt],[he,Zt,Xe,"summary",Ne]),rt.current.register([Yl,mr,$l],[D,P],[Zt,Ne]),rt.current.register([wn,xr,bi],[Xt],[he,Zt,Ne]),rt.current.register([_n,Cn],[Xt],[he,Zt,"visibleInLegend","visible",Ne]),Fs.current.register([re,Ae,Fe,Ls,Ve,Ps,kn,vi],{value:Ot,color:Qt,noteText:Qt,errorLow:"min",errorHigh:Ot}),Fs.current.register([An,Ci,_i,Is],{from:"min",to:Ot,color:Qt,noteText:Qt}),Fs.current.register([wn,xr,bi],{value:Ot,color:Qt}),rt.current.register([Zl,Ql,mi],[D,P],[Zt,Xe,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),rt.current.register([mi],[D,P,"size"],[Zt,he,Xe]),rt.current.register([Wl],[D,P,Xt],[Zt,Xe]),rt.current.register([xi,yi],["open","high","low","close"],[he,Zt,"downColor",Xe]),Fs.current.register([xi,yi],{open:Ot,high:Ot,low:"min",close:Ot,color:Qt,downColor:Qt,noteText:Qt}),rt.current.register([bn,wi],["lower","q1","median","q3","upper","mean","outliers"],[he,Zt,Xe,Ne]),Fs.current.register([bn,wi],{lower:Ot,q1:Ot,median:Ot,q3:Ot,upper:Ot,mean:Ot,outliers:Qt,color:Qt,noteText:Qt}),rt.current.register([as,Sn],["current","target"],[he,Zt,"visibleInLegend",Xe,Ne]),Fs.current.register([as,Sn],{current:Ot,target:Ot,color:Qt,noteText:Qt}),rt.current.register([ls,fr],[Xt],[he,Zt,"explode","visibleInLegend","visible",Ne]);const Wc=[he,Xt,D,P],y1="mousedown",Hs="mousemove",Wg="contextmenu",Yg="mouseleave",$g="keydown",Zg="focus",Qg="blur";class Kg extends L.A{constructor(t,e,s,i={}){super(),this.observers=[],this.addObserver(i.observer),this.chartService=new Al(this,i),this.chartService.theme=s,this._initElement(t);const n=x({},this.options,e);this._originalOptions=x({},n),this._theme=s,this._initTheme(n,s),this._focusState={},this._initHandlers(),this._initSurface(),this.bindCategories(),Ey.preloadFonts(e,()=>{this.fontLoaded=!0,this._destroyed||(this.trigger("init"),this._redraw(),this._attachEvents())})}_initElement(t){for(this._setElementClass(t),t.style.position="relative",t.tabIndex=t.getAttribute("tabindex")?t.getAttribute("tabindex"):0,t.setAttribute("role","graphics-document document");t.firstChild;)t.removeChild(t.firstChild);this.element=t}_setElementClass(t){gt(t,"k-chart")}_initTheme(t,e){const s=[],i=t.series||[];for(let n=0;n<i.length;n++)s.push(Object.assign({},i[n]));t.series=s,function _1(o){const t=Wc;for(let e=0;e<t.length;e++){const s=t[e]+"Axes";o[s]&&(o[t[e]+"Axis"]=o[s],delete o[s])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,zt(t.title)&&(t.title={text:t.title}),this.options=x({},e,t),this.applySeriesColors()}getSize(){const t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}}resize(t){const e=this.getSize(),s=this._size,i=e.width>0||e.height>0;t||i&&(!s||e.width!==s.width||e.height!==s.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):i&&this._selections&&Fd(this._selections,n=>!n.visible)&&(this._destroySelections(),this._setupSelection())}_resize(){this._noTransitionsRedraw()}redraw(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){const e=this._model._plotArea,s=e.findPane(t);e.redraw(s)}else this._redraw()}getAxis(t){return Ku(t,this._plotArea.axes)}findAxisByName(t){return this.getAxis(t)}findPaneByName(t){const e=this._plotArea.panes;for(let s=0;s<e.length;s++)if(e[s].options.name===t)return new Ul(e[s])}findPaneByIndex(t){const e=this._plotArea.panes;if(e[t])return new Ul(e[t])}plotArea(){return new b_(this._plotArea)}toggleHighlight(t,e){const s=this._plotArea,i=(s.srcSeries||s.series||[])[0];let n;if(ct(e))n=s.filterPoints(e);else{let r,a;Jt(e)?(r=e.series,a=e.category):r=a=e,n=i.type===fr?qg(s.pointsBySeriesName(r),a):N(i.type,[ls,_n,Cn])?qg((s.charts[0]||{}).points,a):s.pointsBySeriesName(r)}n&&this.togglePointsHighlight(t,n)}togglePointsHighlight(t,e){const s=this._highlight;for(let i=0;i<e.length;i++)s.togglePointHighlight(e[i],t)}showTooltip(t){const e=this._sharedTooltip(),{_tooltip:s,_plotArea:i}=this;let n,r;if(ct(t)?(n=i.findPoint(t),n&&e&&(r=n.categoryIx)):e&&_(t)&&(r=i.categoryAxis.categoryIndex(t)),e){if(r>=0){const a=this._plotArea.pointsByCategoryIndex(r);s.showAt(a)}}else n&&s.show(n)}hideTooltip(){this._tooltip.hide()}_initSurface(){const t=this.surface,e=this._surfaceWrap(),s=this.options.chartArea||{};s.width&&De(e,{width:s.width}),s.height&&De(e,{height:s.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=Ii.A.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler)),this.element._kendoExportVisual=this._kendoExportVisual.bind(this)}_surfaceWrap(){return this.element}_redraw(){const t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._setElementAccessibilityAttributes(),this._model=t,this._plotArea=t._plotArea,this._legend=t._legend,t.renderVisual(),!1!==this.options.transitions&&t.traverse(function(e){e.animation&&e.animation.setup()}),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse(function(e){e.animation&&e.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new PC,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),tf(this._plotArea.panes),this._navState||this._cancelDomEvents(),this._redrawFocusHighlight()}_redrawFocusHighlight(){const{_focusState:{legendInFocus:t,preserveHighlight:e}}=this;t&&e&&(this._focusElement(this._getFocusedLegendItem(),!1),this._focusState.preserveHighlight=!1)}_setElementAccessibilityAttributes(){let t=this.options.title,e=zt(t)?t:t.description||t.text;e&&this.element.setAttribute("aria-roledescription",e)}_kendoExportVisual(t){if(t&&t.width&&t.height){const e=this._originalOptions.chartArea||{};return this.exportVisual({width:e.width||t.width,height:e.height||t.height})}return this.exportVisual()}exportVisual(t){let e;if(t&&(t.width||t.height||t.options)){const s=this.options,i=x({},t.options,{chartArea:{width:t.width,height:t.height}});Yc(this._originalOptions,i),this.options=x({},this._originalOptions,i),this._initTheme(this.options,this._theme),this.bindCategories();const n=this._getModel();n.renderVisual(),tf(n._plotArea.panes),e=n.visual,this.options=s}else e=this.surface.exportVisual();return e}_sharedTooltip(){return this._plotArea instanceof He&&this.options.tooltip&&this.options.tooltip.shared}_createPannable(){const t=this.options;!1!==t.pannable&&(this._pannable=new LC(this._plotArea,t.pannable))}_createZoomSelection(){const t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new IC(this,e))}_createMousewheelZoom(){const t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new FC(this,e))}_toggleDragZoomEvents(){const e=this.options.zoomable,i=(e||{}).mousewheel,n=!(this.options.pannable||!1!==e&&!1!==(e||{}).selection||this.requiresHandlers([nc,Tn,Mn])),r=(!1===e||!1===i)&&!this.requiresHandlers([En,Si,ki]),a=this.element;this._dragZoomEnabled&&n&&r?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):!this._dragZoomEnabled&&!(n&&r)&&(a.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!n,!r)}_toggleDomEvents(t,e){const s=this.domEvents;s&&(s.toggleDrag&&s.toggleDrag(t),s.toggleZoom&&s.toggleZoom(e))}_createTooltip(){const{options:{tooltip:t}}=this;let e;return e=this._sharedTooltip()?this._createSharedTooltip(t):new sw(this.chartService,t),e}_createSharedTooltip(t){return new vg(this._plotArea,t)}
1applyDefaults(t,e){(function C1(o,t){const e=(t||{}).axisDefaults||{};let s,i,n;function r(a){const c=(a||{}).color||i.color,h=x({},e,e[s],i,i[s],{line:{color:c},labels:{color:c},title:{color:c}},a);return delete h[s],h}for(let a=0;a<Wc.length;a++)s=Wc[a]+"Axis",i=o.axisDefaults||{},n=[].concat(o[s]),n=n.map(r),o[s]=n.length>1?n:n[0]})(t,e),function w1(o,t){const e=o.series,s=e.length,i=o.seriesDefaults,n=x({},o.seriesDefaults),r=t?x({},t.seriesDefaults):{},a=x({},r);Jg(n),Jg(a);for(let c=0;c<s;c++){const h=e[c].type||o.seriesDefaults.type,d=x({data:[]},a,r[h],{tooltip:o.tooltip},n,i[h]);e[c]._defaults=d,e[c]=x({},d,e[c]),e[c].data=e[c].data||[]}}(t,e)}applySeriesColors(){const t=this.options,e=t.series,s=t.seriesColors||[];for(let i=0;i<e.length;i++){const n=e[i],r=s[i%s.length],a=n._defaults;n.color=n.color||r,a&&(a.color=a.color||r)}}_getModel(){const t=this.options,e=this._createPlotArea(),s=new Lb(this._modelOptions());s.chart=this,s._plotArea=e;const i=pn.buildTitle(t.title),n=pn.buildTitle(t.subtitle,{align:t.title.align,position:t.title.position});if(s.append.apply(s,pn.orderTitles([i,n])),t.legend&&t.legend.visible){const r=new pg(e.options.legend,this.chartService);s.append(r),s._legend=r}return s.append(e),s.reflow(),s}_modelOptions(){const t=this.options,e=this.getSize();return x({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)}_createPlotArea(t){const e=this.options;return je.current.create(t?[]:e.series,e,this.chartService)}_setupSelection(){const{_plotArea:{axes:t}}=this,e=this._selections=[];for(let s=0;s<t.length;s++){const i=t[s],n=i.options;if(i instanceof Ie&&n.select&&!n.vertical){const r=i.range(),a=new mg(this,i,x({min:r.min,max:r.max},n.select));e.push(a)}}}_selectStart(t){return this.trigger(oc,t)}_select(t){return this.trigger(Dn,t)}_selectEnd(t){return this.trigger(rc,t)}_initHandlers(){this._clickHandler=this._click.bind(this),this._keydownHandler=this._keydown.bind(this),this._focusHandler=this._focus.bind(this),this._blurHandler=this._blur.bind(this),this._mousedownHandler=this._mousedown.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=(0,Pc.A)(this._mousemove.bind(this),20)}addObserver(t){t&&this.observers.push(t)}removeObserver(t){const e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)}requiresHandlers(t){const e=this.observers;for(let s=0;s<e.length;s++)if(e[s].requiresHandlers(t))return!0}trigger(t,e={}){e.sender=this,t===cp?e.anchor.point=this._toDocumentCoordinates(e.anchor.point):t===rp?this._updateDrilldownPoint(e.point):t===ap?this._resetDrilldownPoint():t===np?(this._focusPoint(e.point),this._startDrilldown(e.point)):t===ip&&this._focusLegendItem(e);const s=this.observers;let i=!1;for(let n=0;n<s.length;n++)s[n].trigger(t,e)&&(i=!0);return i}_attachEvents(){const t=this.element;this._touchAction=t.style.touchAction,rn(t,{[Wg]:this._clickHandler,[br]:this._mousewheelHandler,[Yg]:this._mouseleaveHandler,[$g]:this._keydownHandler,[y1]:this._mousedownHandler,[Zg]:this._focusHandler,[Qg]:this._blurHandler}),this._shouldAttachMouseMove()&&rn(t,{[Hs]:this._mousemove}),this.domEvents=ku.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()}_mouseleave(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotAreaHovered&&(this._plotAreaHovered=!1,this.trigger(ic)),this._hasInactiveOpacity()&&this._activeChartInstance&&(this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._updateSeriesOpacity(null,!0))}_cancelDomEvents(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()}_gesturestart(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this._clearFocusedElement(),this.surface.suspendTracking())}_gestureend(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger(ki,{}))}_gesturechange(t){const e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();let i=-t.distance/this._gestureDistance+1;if(Math.abs(i)>=.1){i=Math.round(10*i),this._gestureDistance=t.distance;const n={delta:i,axisRanges:zn(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger(En,n)){const r=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(n.axisRanges=e.updateRanges(i,r))&&!this.trigger(Si,n)&&e.zoom()}}}}_mouseout(t){if(t.element){const e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}}_start(t){const e=this._eventCoordinates(t);this._stopChartHandlers(t)||!this._plotArea.backgroundContainsPoint(e)||(this.requiresHandlers([nc,Tn,Mn])&&this._startNavigation(t,e,nc),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._clearFocusedElement(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger(En,{axisRanges:zn(this._plotArea.axes),originalEvent:t}))}_move(t){let{_navState:e,_pannable:s}=this;if(!this._stopChartHandlers(t)){if(s){const i=s.move(t);i&&!this.trigger(Tn,{axisRanges:i,originalEvent:t})&&s.pan()}else if(e){const i={},n=e.axes;for(let r=0;r<n.length;r++){const a=n[r];if(a.options.name){const h=a.options.vertical?t.y:t.x,d=h.startLocation-h.location;0!==d&&(i[a.options.name]=a.translateRange(d))}}e.axisRanges=i,this.trigger(Tn,{axisRanges:i,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}}_end(t){if(this._stopChartHandlers(t))return;const e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger(Mn,{axisRanges:zn(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,Mn),this._zoomSelection){const s=this._zoomSelection.end(t);s&&!this.trigger(Si,{axisRanges:s,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger(ki,{axisRanges:s,originalEvent:t}))}}_stopChartHandlers(t){const e=this._selections||[];if(!e.length)return!1;const s=this._eventCoordinates(t),i=this._plotArea.paneByPoint(s);if(i)for(let n=0;n<e.length;n++)if(e[n].onPane(i))return!0}_mousewheelZoomRate(){return O(((this.options.zoomable||{}).mousewheel||{}).rate,.3)}_mousewheel(t){const e=hl(t),s=this._mousewheelZoom,i=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(i))if(s){const n={delta:e,axisRanges:zn(this._plotArea.axes),originalEvent:t};(this._zooming||!this.trigger(En,n))&&(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this._clearFocusedElement(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=s.updateRanges(e,i),n.axisRanges&&!this.trigger(Si,n)&&s.zoom(),this._mwTimeout=setTimeout(()=>{this.trigger(ki,n),this._zooming=!1,this.surface&&this.surface.resumeTracking()},150))}else{let n=this._navState;if(n||this._startNavigation(t,i,En)||(n=this._navState),n){const r=n.totalDelta||e;n.totalDelta=r+e;const a=this._navState.axes,c={};for(let h=0;h<a.length;h++){const d=a[h],u=d.options.name;u&&(c[u]=d.scaleRange(-r*this._mousewheelZoomRate(),i))}this.trigger(Si,{delta:e,axisRanges:c,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(()=>{this._endNavigation(t,ki)},150)}}}_startNavigation(t,e,s){const i=this._model._plotArea,n=i.findPointPane(e),r=i.axes.slice(0);if(!n)return;const a=zn(r);this.trigger(s,{axisRanges:a,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._clearFocusedElement(),this._navState={axisRanges:a,pane:n,axes:r})}_endNavigation(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)}_getChartElement(t,e){const s=this.surface.eventTarget(t);if(s)return this._drawingChartElement(s,t,e)}_drawingChartElement(t,e,s){let n,i=t;for(;i&&!n;)n=i.chartElement,i=i.parent;if(n)return n.aliasFor&&(n=n.aliasFor(e,this._eventCoordinates(e))),s&&(n=n.closest(s),n&&n.aliasFor&&(n=n.aliasFor())),n}_eventCoordinates(t){const e=Id(t);return this._toModelCoordinates(e.x,e.y)}_elementPadding(){if(!this._padding){const{paddingLeft:t,paddingTop:e}=ht(this.element,["paddingLeft","paddingTop"]);this._padding={top:e,left:t}}return this._padding}_toDocumentCoordinates(t){const e=this._elementPadding(),s=ri(this.element);return{left:k(t.x+e.left+s.left),top:k(t.y+e.top+s.top)}}_toModelCoordinates(t,e){const s=this.element,i=ri(s),n=this._elementPadding(),r=function Oy(o){if(!o)return No.unit();let t=Nd(o),e=o.parentElement;for(;e;){const s=Nd(e);t=t.multiplyCopy(s),e=e.parentElement}return t.b=t.c=t.e=t.f=0,t}(s).invert(),a=new H.A(t-i.left-n.left,e-i.top-n.top).transform(r);return new V(a.x,a.y)}_tap(t){const e=this.surface.eventTarget(t),s=this._drawingChartElement(e,t),i=this._sharedTooltip();!this._startHover(e,t)&&!i&&this._unsetActivePoint(),i&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(s,t),this.handlingTap=!0,setTimeout(()=>{this.handlingTap=!1},0)}_click(t){const e=this._getChartElement(t);this._propagateClick(e,t)}_propagateClick(t,e){let s=t;for(;s;)s.click&&s.click(this,e),s=s.parent}_isLegendBeforeChart(){const{options:{legend:{position:t}},_legend:e}=this;return e&&e.hasItems()&&(t===j||t===U)}_focus(){this._preventInitialPointFocus||(this._isLegendBeforeChart()?this._focusFirstLegendItem():this._focusFirstPoint()),this._preventInitialPointFocus=!1}_keydown(t){const{_focusState:{legendInFocus:e,focusedElement:s},_legend:i}=this;if("Tab"===t.key){this._clearFocusedElement();const n=this._isLegendBeforeChart();e&&n!==t.shiftKey?this._navigatePoints(t):!e&&n===t.shiftKey&&i.hasItems()&&this._navigateLegend(t)}else"Escape"===t.key?(s&&t.stopPropagation(),this._tooltip&&this._tooltip.visible?this._hideTooltip():this._blur()):"Enter"===t.key?s&&(this._focusState.preserveHighlight=!0,this._propagateClick(s,t),this._focusElement(s)):e?this._navigateLegend(t):this._navigatePoints(t)}_navigatePoints(t){const{_focusState:e,_plotArea:s}=this;if(e.legendInFocus=!1,!e.focusedElement)return this._focusFirstPoint(),void t.preventDefault();const i=n=>{e.focusedPoint=n,this._focusElement(e.focusedPoint),this._displayTooltip(n),t.preventDefault()};switch(t.key){case gd:i(s.getPointToTheRight(e.focusedPoint));break;
1case pd:i(s.getPointToTheLeft(e.focusedPoint));break;case ud:i(s.getPointBelow(e.focusedPoint));break;case dd:i(s.getPointAbove(e.focusedPoint))}}_navigateLegend(t){const{_focusState:e,_legend:s,chartService:{rtl:i}}=this;if(e.legendInFocus=!0,!e.focusedElement)return this._focusFirstLegendItem(),void t.preventDefault();const n=s.getItems().length,r=a=>{e.focusedLegendItemIndex=a(e.focusedLegendItemIndex,n),this._focusElement(this._getFocusedLegendItem()),t.preventDefault()};switch(t.key){case dd:case pd:r(i?Ad:Sd);break;case ud:case gd:r(i?Sd:Ad)}}_focusFirstPoint(){const t=this._focusState.focusedPoint=this._plotArea.getFirstPoint();t&&(this._focusElement(t),this._displayTooltip(t))}_hasFocus(){return this.element.ownerDocument.activeElement===this.element}_mousedown(){this._hasFocus()||(this._preventInitialPointFocus=!0)}_focusChart(){this._hasFocus()||(this._preventInitialPointFocus=!0,this.element.focus())}_focusPoint(t){this._focusState.focusedPoint=t,this._focusChart(),this._focusElement(t,!0)}_focusFirstLegendItem(){const{_focusState:t}=this;t.focusedLegendItemIndex=0,this._focusElement(this._getFocusedLegendItem()),t.legendInFocus=!0,this._hideTooltip()}_focusLegendItem(t){const{_focusState:e}=this;e.focusedLegendItemIndex=this._legend.getItems().findIndex(s=>s.options.series.index===t.seriesIndex&&s.options.pointIndex===t.pointIndex),e.legendInFocus=!0,this._focusChart(),this._focusElement(this._getFocusedLegendItem(),!0)}_getFocusedLegendItem(){const{_focusState:t,_legend:e}=this;return e.getItems()[t.focusedLegendItemIndex]}_focusElement(t,e){const{_focusState:s}=this;if(this._clearFocusedElement(),t&&(s.focusedElement=t,this._setElementActiveDescendant(t),!e))if(t.focusVisual(),s.legendInFocus){const i=t.options;this._showSeriesInactiveOpacity(i.series.index,i.pointIndex)}else this._showInactiveOpacity(t)}_clearFocusedElement(){const{_focusState:t}=this;t&&(t.focusedElement&&(t.focusedElement.clearFocusFromVisual(),this._clearElementActiveDescendant()),t.focusedElement=null)}_setElementActiveDescendant(t){"canvas"===this.options.renderAs&&(this._pseudoFocusedElement=this._createPseudoFocusedElement(t),this.element.append(this._pseudoFocusedElement)),this.element.setAttribute(ni,t._id)}_clearElementActiveDescendant(){this._pseudoFocusedElement&&(this._pseudoFocusedElement.remove(),this._pseudoFocusedElement=null),this.element.removeAttribute(ni)}_createPseudoFocusedElement(t){const e=document.createElement("div"),s=t.options.accessibility;e.id=t._id,e.setAttribute("aria-label",t.getAriaLabelText()),e.setAttribute("role",s.role),e.setAttribute("aria-roledescription",s.ariaRoleDescription);const i=s.ariaChecked;return _(i)&&e.setAttribute("aria-checked",i),e}_blur(){this._focusState.legendInFocus=!1,this._clearFocusedElement(),this._hideInactiveOpacity()}_startHover(t,e){if(this._suppressHover)return!1;let s=this._drawingChartElement(t,e,function(n){return(n.hover||n.over)&&!(n instanceof us)});const i=this._activePoint;return this._updateHoveredPoint(s,e),s&&i!==s&&s.hover&&(this._activePoint=s,!this._sharedTooltip()&&!s.hover(this,e)&&(this._displayTooltip(s),this._showInactiveOpacity(s))),s}_displayTooltip(t){x({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)}_hideTooltip(){this._tooltip&&this._tooltip.hide()}_displayInactiveOpacity(t,e,s){const i=this._activeChartInstance=this._chartInstanceFromPoint(t);if(i)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(i.children,null,!0),this._applySeriesOpacity(i.children,t.series),this._highlight.show(s||t);else{let n;if(!i.supportsPointInactiveOpacity())return void this._highlight.show(t);n=this._getInactivePoints(t,i),n&&n.length&&this._highlight.show(n,1-this._getInactiveOpacityForSeries(t.series))}}_getInactivePoints(t,e){return this._getAllPointsOfType(e,t.constructor).filter(i=>i!==t)}_getAllPointsOfType(t,e){let s=[];for(let i=0;i<t.children.length;i++){const n=t.children[i];n.constructor===e?s.push(n):n.children&&n.children.length&&(s=s.concat(this._getAllPointsOfType(n,e)))}return s}_updateHoveredPoint(t,e){const s=this._hoveredPoint;s&&s!==t&&(s.out(this,e),this._hoveredPoint=null),t&&s!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))}_updateDrilldownPoint(t){if(!t||!t.series)return;const{fields:e}=rt.current.bindPoint(t.series,null,t.dataItem);e.drilldown&&(this._drilldownState={cursor:this.element.style.cursor},this.element.style.cursor="pointer")}_resetDrilldownPoint(){this._drilldownState&&(this.element.style.cursor=this._drilldownState.cursor,this._drilldownState=null)}_startDrilldown(t){if(!t||!t.series)return;const e=t.series,{fields:s}=rt.current.bindPoint(e,null,t.dataItem),i=s.drilldown;i&&this.trigger("drilldown",{series:e,point:t,value:i,sender:this})}_updateSeriesOpacity(t,e){const s=this._plotArea,i=s.series.length;for(let n=0;n<i;n++){const r=s.series[n],a=this._getDefaultOpacityForSeries(r),c=this._getInactiveOpacityForSeries(r);
1e||r===t.series?(r.opacity=a,r.line&&(r.line.opacity=a)):(r.defaultOpacity=a,r.opacity=c,r.line&&(r.line.opacity=c))}}_applySeriesOpacity(t,e,s,i){for(let n=0;n<t.length;n++){const r=t[n],a=r.series||i;a&&(a.highlight||{}).visible&&r.visual&&(a!==e||s)&&r.visual.opacity(s?1:i?i.opacity:r.series.opacity),r.children&&r.children.length&&this._applySeriesOpacity(r.children,e,s,r.series)}}_chartInstanceFromPoint(t){let e=t.parent;for(;e&&!e.plotArea;)e=e.parent;return e}_showInactiveOpacity(t){const e=this._plotArea.series.length>1;this._hasInactiveOpacity()?this._displayInactiveOpacity(t,e):this._highlight.show(t)}_hideInactiveOpacity(t){const e=this._plotArea.series.length>1;this._hasInactiveOpacity()&&(e&&this._activeChartInstance&&(this._updateSeriesOpacity(t,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null)}_hasInactiveOpacity(){let t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter(s=>void 0!==s.highlight.inactiveOpacity).length>0;return t||e}_getInactiveOpacityForSeries(t){return t.highlight.inactiveOpacity||this.options.seriesDefaults.highlight.inactiveOpacity||t.opacity||1}_getDefaultOpacityForSeries(t){return t.defaultOpacity||t.opacity||1}_mouseover(t){const e=this._startHover(t.element,t.originalEvent);e&&e.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),rn(document,{[Hs]:this._mouseMoveTrackHandler}))}_mouseMoveTracking(t){const{options:e,_tooltip:s,_highlight:i,_activePoint:n}=this,r=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(r)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){const a=n.parent.getNearestPoint(r.x,r.y,n.seriesIx);a&&a!==n&&(this._activePoint=a,a.hover(this,t)||(x({},e.tooltip,a.options.tooltip).visible&&s.show(a),i.show(a)))}}else an(document,{[Hs]:this._mouseMoveTrackHandler}),this._unsetActivePoint(),this._clearFocusedElement(),this._mouseMoveTrackHandler=null,this._hideInactiveOpacity(n)}_mousemove(t){const e=this._eventCoordinates(t),s=this._plotArea;if(this._trackCrosshairs(e),s.hover){const i=s.backgroundContainsPoint(e);i?(this._plotAreaHovered=!0,this._plotArea.hover(this,t)):this._plotAreaHovered&&!i&&(this._plotAreaHovered=!1,this.trigger(ic))}this._sharedTooltip()&&this._trackSharedTooltip(e,t)}_trackCrosshairs(t){const e=this._plotArea.crosshairs;for(let s=0;s<e.length;s++){const i=e[s];i.box.containsPoint(t)?i.showAt(t):i.hide()}}_trackSharedTooltip(t,e,s){if(this._suppressHover)return;const{options:{tooltip:i},_plotArea:n,_plotArea:{categoryAxis:r},_tooltip:a,_highlight:c}=this;if(n.backgroundContainsPoint(t)){const h=r.pointCategoryIndex(t);if(h!==this._tooltipCategoryIx||!this._sharedHighlight&&s){const d=n.pointsByCategoryIndex(h),u=d.map(function(f){return f.eventArgs(e)}),p=u[0]||{};p.categoryPoints=u,d.length>0&&!this.trigger(op,p)?(i.visible&&a.showAt(d,t),c.show(d),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=h}else s&&this._sharedHighlight&&(c.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(c.hide(),a.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}hideElements(t){const e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)}_unsetActivePoint(t){const{_highlight:e}=this;this._activePoint=null,this._hoveredPoint=null,(!t||!t.keepTooltipOpen)&&this._hideTooltip(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,e&&e.hide()}_deferRedraw(){this._redraw()}_clearRedrawTimeout(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)}bindCategories(){const e=[].concat(this.options.categoryAxis);for(let s=0;s<e.length;s++){const i=e[s];!1!==i.autoBind&&this.bindCategoryAxisFromSeries(i,s)}}bindCategoryAxisFromSeries(t,e){const s=new Set,i=this.options.series.filter(d=>d.categoryAxis===t.name||!d.categoryAxis&&0===e),n=i.some(d=>!!d.categoryField),r=i.filter(d=>d.data&&d.data.length>0),a=r.map(d=>rt.current.bindPoint(d,0).fields.category),c=a.reduce((d,u)=>d||yp(t,u),!1);if(r.filter((d,u)=>
1d.categoryField||_(a[u])).forEach(d=>d.data.forEach((u,p)=>{let f=rt.current.bindPoint(d,p).fields.category;if(c){const g=vp(f,u,this.chartService.intl);f=g?g.getTime():void 0}s.add(f)})),s.size>0){let d=Array.from(s.values());c&&(d=d.sort().map(u=>u&&new Date(u))),t.categories=d}else n&&(t.categories=[])}_isBindable(t){const e=rt.current.valueFields(t);let s=!0;for(let i=0;i<e.length;i++){let n=e[i];if(n===Xt?n="field":n+="Field",!_(t[n])){s=!1;break}}return s}_noTransitionsRedraw(){const t=this.options;let e;!1!==t.transitions&&(t.transitions=!1,e=!0),this._redraw(),e&&(t.transitions=!0)}_legendItemHover(t,e){this._showSeriesInactiveOpacity(t,e)}_showSeriesInactiveOpacity(t,e){const{_plotArea:s,_highlight:i}=this,n=(s.srcSeries||s.series)[t];let r;r=N(n.type,[ls,fr,_n,Cn])?s.findPoint(function(a){return a.series.index===t&&a.index===e}):s.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&r?this._displayInactiveOpacity(r.length?r[0]:r,s.series.length>1,r):i.show(r)}_shouldAttachMouseMove(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([lp,ic])}updateMouseMoveHandler(){an(this.element,{[Hs]:this._mousemove}),this._shouldAttachMouseMove()&&rn(this.element,{[Hs]:this._mousemove})}applyOptions(t,e){Yc(this._originalOptions,t),this._originalOptions=x(this._originalOptions,t),this.options=x({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()}setOptions(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()}setDirection(t){this.chartService.rtl=!!t,this.surface&&"svg"===this.surface.type&&this._destroySurface()}setIntlService(t){this.chartService.intl=t}noTransitionsRedraw(){this._noTransitionsRedraw()}destroy(){this._destroyed=!0,an(this.element,{[Wg]:this._clickHandler,[br]:this._mousewheelHandler,[Hs]:this._mousemove,[Yg]:this._mouseleaveHandler,[$g]:this._keydownHandler,[Zg]:this._focusHandler,[Qg]:this._blurHandler}),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&an(document,{[Hs]:this._mouseMoveTrackHandler}),this._focusState=null,this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()}_destroySurface(){const t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)}_destroySelections(){const t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()}_destroyView(){const t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._clearFocusedElement(),this._resetDrilldownPoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}function qg(o,t){if(o)for(let e=0;e<o.length;e++)if(o[e].category===t)return[o[e]]}function Jg(o){delete o.bar,delete o.column,delete o.rangeColumn,delete o.line,delete o.verticalLine,delete o.pie,delete o.donut,delete o.area,delete o.verticalArea,delete o.scatter,delete o.scatterLine,delete o.bubble,delete o.candlestick,delete o.ohlc,delete o.boxPlot,delete o.bullet,delete o.verticalBullet,delete o.polarArea,delete o.polarLine,delete o.radarArea,delete o.radarLine,delete o.waterfall}function zn(o){const t={};for(let e=0;e<o.length;e++){const s=o[e],i=s.options.name;i&&(t[i]=s.range())}return t}const A1=["data","categories"];function Yc(o,t){for(let e in t)if(!N(e,A1)&&gl(t,e)){const s=t[e],i=o[e];if(_(i)){const n=null===s;n||!_(s)?(delete o[e],n&&delete t[e]):i&&Jt(s)&&Jt(i)&&Yc(i,s)}}}function tf(o){for(let t=0;t<o.length;t++)o[t].notifyRender()}w(Kg,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{},accessibility:{highlight:{border:{opacity:1,color:pt,width:2}}}},categoryAxis:{},seriesDefaults:{type:Ae,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1},accessibility:{highlight:{border:{opacity:1,width:2},zIndex:200}}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});const $c=Kg,T1=class k1 extends vg{_slotAnchor(t,e){const i=this.plotArea.categoryAxis.options.vertical,n=i?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};let r;return r=i?new V(this.plotArea.box.x2,e.center().y):new V(e.center().x,-2),{point:r,align:n}}_defaultAnchor(t,e){return this._slotAnchor({},e)}},ef=[re,as];function sf(o){const t=[];for(let e=0;e<o.length;e++){const s=o[e];t[e]=s.style.display,s.style.display="none"}return t}function nf(o,t){for(let e=0;e<o.length;e++)o[e].style.display=t[e]}function of(o){return G(o)?[o]:o}class rf extends $c{_setElementClass(t){gt(t,"k-sparkline")}_initElement(t){super._initElement(t),this._initialWidth=Math.floor(De(t).width)}_resize(){const t=this.element,e=sf(t.childNodes);this._initialWidth=Math.floor(De(t).width),nf(t.childNodes,e),super._resize()}_modelOptions(){const t=this.options,e=this._surfaceWrap(),s=sf(e.childNodes),i=document.createElement("span");i.innerHTML=" ",e.appendChild(i);const n=x({width:this._autoWidth,height:De(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return De(e,{width:n.width,height:n.height}),e.removeChild(i),nf(e.childNodes,s),this.surface&&this.surface.resize(),n}_surfaceWrap(){if(!this.stage){const t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage}_createPlotArea(t){const e=super._createPlotArea(t);return this._autoWidth=this._initialWidth||this._calculateWidth(e),e}_calculateWidth(t){const e=this.options,s=K(e.chartArea.margin),i=t.charts,n=this._surfaceWrap();let r=0;for(let c=0;c<i.length;c++){const h=i[c],d=(h.options.series||[])[0];if(!d)continue;if(d.type===re)return 150;
1if(d.type===as)return 150;if(d.type===ls)return De(n).height;const u=h.categoryAxis;if(u){const p=u.categoriesCount()*(!h.options.isStacked&&N(d.type,[Ae,Sn])?h.seriesOptions.length:1);r=Math.max(r,p)}}let a=r*e.pointWidth;return a>0&&(a+=s.left+s.right),a}_createSharedTooltip(t){return new T1(this._plotArea,t)}static normalizeOptions(t){let e=of(t);return e=Dt(e)?{seriesDefaults:{data:e}}:x({},e),e.series||(e.series=[{data:of(e.data)}]),x(e,{seriesDefaults:{type:e.type}}),(N(e.series[0].type,ef)||N(e.seriesDefaults.type,ef))&&(e=x({},{categoryAxis:{crosshair:{visible:!1}}},e)),e}}w(rf,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});const Zc=rf,P1=class D1 extends ie{setup(){this._initialOpacity=parseFloat(ht(this.element,"opacity").opacity)}step(t){ht(this.element,{opacity:String(te(this._initialOpacity,0,t))})}abort(){super.abort(),ht(this.element,{display:"none",opacity:String(this._initialOpacity)})}cancel(){super.abort(),ht(this.element,{opacity:String(this._initialOpacity)})}};function Qc(o,t){const e=document.createElement("div");return e.className=o,t&&(e.style.cssText=t),e}class af extends L.A{constructor(t,e,s){super(),this.options=x({},this.options,s),this.container=t,this.chartService=e;const i=ht(t,["paddingLeft","paddingTop"]);this.chartPadding={top:i.paddingTop,left:i.paddingLeft},this.createElements(),t.appendChild(this.element)}createElements(){const t=this.element=Qc("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=Qc("k-tooltip k-chart-tooltip"),s=this.scroll=Qc("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(s)}show(t,e,s){const{element:i,options:n,scroll:r,tooltip:a}=this,c=nt(ot(t)+ot(e-t)/2),h=.4*s.width(),d=s.center().x-h,g=(s.center().x-d)/(n.max-n.min),m=c-n.min;let v=this.chartService.intl.format(n.format,t,e);const y=kt(n);this.clearHideTimeout(),this._visible||(ht(i,{visibility:"hidden",display:"block"}),this._visible=!0),y&&(v=y({from:t,to:e})),a.innerHTML=v,ht(a,{left:s.center().x-a.offsetWidth/2,top:s.y1});const C=ht(a,["marginTop","borderTopWidth","height"]);ht(r,{width:h,left:d+m*g,top:s.y1+C.marginTop+C.borderTopWidth+C.height/2}),ht(i,{visibility:"visible"})}clearHideTimeout(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()}hide(){this.clearHideTimeout(),this._hideTimeout=setTimeout(()=>{this._visible=!1,this._hideAnimation=new P1(this.element),this._hideAnimation.setup(),this._hideAnimation.play()},this.options.hideDelay)}destroy(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}w(af,{format:"{0:d} - {1:d}",hideDelay:500});const L1=af,We="_navigator",Ye=We,lf="_default";class Or extends L.A{constructor(t){super(),this.chart=t;const e=this.options=x({},this.options,t.options.navigator),s=e.select;s&&(s.from=this.parseDate(s.from),s.to=this.parseDate(s.to)),_(e.hint.visible)||(e.hint.visible=e.visible),this.chartObserver=new cl(this,{[Tn]:"_drag",[Mn]:"_dragEnd",[Si]:"_zoom",[ki]:"_zoomEnd"}),t.addObserver(this.chartObserver)}parseDate(t){return Pt(this.chart.chartService.intl,t)}clean(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)}destroy(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()}redraw(){this._redrawSelf(),this.initSelection()}initSelection(){const{chart:t,options:e}=this,s=this.mainAxis(),{min:i,max:n}=s.roundedRange(),{from:r,to:a,mousewheel:c}=e.select,h=function R1(o){return cf.prototype=o,new cf}(s);0!==s.categoriesCount()&&(this.clean(),h.box=s.box,this.selection=new mg(t,h,{min:i,max:n,from:r||i,to:a||n,mousewheel:O(c,{zoom:"left"}),visible:e.visible},new cl(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),e.hint.visible&&(this.hint=new L1(t.element,t.chartService,{min:i,max:n,template:kt(e.hint),format:e.hint.format})))}setRange(){const e=this.chart._createPlotArea(!0).namedCategoryAxes[Ye],{min:s,max:i}=e.roundedRange(),n=this.options.select||{};let r=n.from||s;r<s&&(r=s);let a=n.to||i;a>i&&(a=i),this.options.select=x({},n,{from:r,to:a}),this.filterAxes()}_redrawSelf(t){const e=this.chart._plotArea;e&&e.redraw(mt(e.panes),t)}redrawSlaves(){const t=this.chart,e=t._plotArea,s=e.panes.filter(i=>i.options.name!==We);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(s)}_drag(t){const{chart:e,selection:s}=this,i=e._eventCoordinates(t.originalEvent),n=this.mainAxis(),r=n.roundedRange(),a=n.pane.box.containsPoint(i),h=t.axisRanges[e._plotArea.categoryAxis.options.name],d=this.options.select;let u;if(!h||a||!s)return;u=d.from&&d.to?ot(d.to)-ot(d.from):ot(s.options.to)-ot(s.options.from);const p=nt(I(ot(h.min),r.min,ot(r.max)-u)),f=nt(I(ot(p)+u,ot(r.min)+u,r.max));this.options.select={from:p,to:f},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),s.set(p,f),this.showHint(p,f)}_dragEnd(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()}readSelection(){const{selection:{options:{from:t,to:e}},options:{select:s}}=this;s.from=t,s.to=e}filterAxes(){const{options:{select:t={}},chart:e}=this,s=e.options.categoryAxis,{from:i,to:n}=t;
1for(let r=0;r<s.length;r++){const a=s[r];a.pane!==We&&(a.min=i,a.max=n)}}filter(){const{chart:t,options:{select:e}}=this;if(!t.requiresHandlers(["navigatorFilter"]))return;const s=this.mainAxis(),i={from:e.from,to:e.to};if("category"!==s.options.type){const n=new xn(x({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;i.from=It(n.min,-n.baseUnitStep,n.baseUnit),i.to=It(n.max,n.baseUnitStep,n.baseUnit)}this.chart.trigger("navigatorFilter",i)}_zoom(t){const{chart:{_plotArea:{categoryAxis:e}},selection:s,options:{select:i,liveDrag:n}}=this,r=this.mainAxis();let a=t.delta;if(!s)return;const c=r.categoryIndex(s.options.from),h=r.categoryIndex(s.options.to),d=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),h-c>1?(s.zoom(a,d),this.readSelection()):(e.options.min=i.from,i.from=e.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),d).min),n&&(this.filterAxes(),this.redrawSlaves()),s.set(i.from,i.to),this.showHint(this.options.select.from,this.options.select.to)}_zoomEnd(t){this._dragEnd(t)}showHint(t,e){this.hint&&this.hint.show(t,e,this.chart._plotArea.backgroundBox())}_selectStart(t){return this.chart._selectStart(t)}_select(t){return this.showHint(t.from,t.to),this.chart._select(t)}_selectEnd(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)}mainAxis(){const t=this.chart._plotArea;if(t)return t.namedCategoryAxes[Ye]}select(t,e){const s=this.options.select;return t&&e&&(s.from=this.parseDate(t),s.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:s.from,to:s.to}}static setup(t={},e={}){if(t.__navi)return;t.__navi=!0;const s=x({},e.navigator,t.navigator),i=t.panes=[].concat(t.panes),n=x({},s.pane,{name:We});s.visible||(n.visible=!1,n.height=.1),"top"!==t.navigator.position?i.push(n):i.unshift(n),i.forEach(r=>{r.name=r.name||lf}),Or.attachAxes(t,s),Or.attachSeries(t,s,e)}static attachAxes(t,e){const s=e.series||[],i=t.categoryAxis=[].concat(t.categoryAxis),n=t.valueAxis=[].concat(t.valueAxis);i.concat(n).forEach(u=>{u.pane=u.pane||lf});const c=0===dt(s,sp).length,h=x({type:"date",pane:We,roundToBaseUnit:!c,justified:c,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),d=e.categoryAxis;i.push(x({},h,{maxDateGroups:200},d,{name:Ye,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),x({},h,d,{name:Ye+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),x({},h,d,{name:Ye+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),n.push(x({name:Ye,pane:We,majorGridLines:{visible:!1},visible:!1},e.valueAxis))}static attachSeries(t,e,s){const i=t.series=t.series||[],n=[].concat(e.series||[]),r=s.seriesColors,a=e.seriesDefaults;for(let c=0;c<n.length;c++)i.push(x({color:r[c%r.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},a,n[c],{axis:Ye,categoryAxis:Ye,autoBind:e.autoBindElements}))}}function cf(){}const hf=Or;class df extends $c{applyDefaults(t,e){const s=De(this.element).width||600;let i=e;const n={seriesDefaults:{categoryField:t.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(s/28)}}};i&&(i=x({},i,n)),hf.setup(t,i),super.applyDefaults(t,i)}_setElementClass(t){gt(t,"k-chart k-stockchart")}setOptions(t){this.destroyNavigator(),super.setOptions(t)}noTransitionsRedraw(){const t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t}_resize(){this.noTransitionsRedraw()}_redraw(){const t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()}_dirty(){const t=this.options,s=Yt([].concat(t.series,t.navigator.series),function(n){return n&&n.visible}).length,i=this._seriesCount!==s;return this._seriesCount=s,i}_fullRedraw(){let t=this.navigator;t||(t=this.navigator=new hf(this),this.trigger("navigatorCreated",{navigator:t})),t.clean(),t.setRange(),super._redraw(),t.initSelection()}_trackSharedTooltip(t){const s=this._plotArea.paneByPoint(t);s&&s.options.name===We?this._unsetActivePoint():super._trackSharedTooltip(t)}bindCategories(){super.bindCategories(),this.copyNavigatorCategories()}copyNavigatorCategories(){const t=[].concat(this.options.categoryAxis);let e;for(let s=0;s<t.length;s++){const i=t[s];i.name===Ye?e=i.categories:e&&i.pane===We&&(i.categories=e)}}destroyNavigator(){this.navigator&&(this.navigator.destroy(),this.navigator=null)}destroy(){this.destroyNavigator(),super.destroy()}_stopChartHandlers(t){const e=this._eventCoordinates(t),s=this._plotArea.paneByPoint(e);return super._stopChartHandlers(t)||s&&s.options.name===We}_toggleDragZoomEvents(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)}}w(df,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!1},highlight:{visible:!1},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});const O1=df;var V1=S(43461),F1=S(97233),N1=S(95580),z1=S(33970);class H1 extends((0,F1.A)((0,N1.A)((0,z1.A)(V1.A)))){get nodeType(){return"Arc"}constructor(t=new di.A,e={}){super(e),this.geometry(t),void 0===this.options.stroke&&this.stroke("#000")}_bbox(t){return this._geometry.bbox(t)}rawBBox(){return this.geometry().bbox()}toPath(){const t=new E.w,e=this.geometry().curvePoints();if(e.length>0){t.moveTo(e[0].x,e[0].y);for(let s=1;s<e.length;s+=3)t.curveTo(e[s],e[s+1],e[s+2])}return t}_containsPoint(t){return this.geometry().containsPoint(t)}_isOnPath(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)}}const j1=H1,pf="arrowPointer",Hn="barPointer",mf=Math.PI/180,fs="inside",Vr="linear",Kc="outside",xf="radialPointer",vf="radialRangePointer";function yf(o,t){const e=o.getOrigin(),s=o.getSize(),i=K(t);return o.setOrigin([e.x-i.left,e.y-i.top]),o.setSize([s.width+(i.left+i.right),s.height+(i.top+i.bottom)]),o}const{YJ:X1,wA:bf,EY:W1}=Je;function _f(o,t){const e=o.box,s=o.children[0].box,i=t.border||{},n=t.background||"",r=bf.fromRect(new wt.A([e.x1,e.y1],[e.width(),e.height()]),{stroke:{}}),a=new W1(o.text,new H.A(s.x1,s.y1),{font:t.font,fill:{color:t.color}}),c=yf(a.bbox().clone(),t.padding),h=bf.fromRect(c,{stroke:{color:i.width?i.color:"",width:i.width,opacity:i.opacity,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),d=new X1;return d.append(r),d.append(h),d.append(a),d}function Cf(o,t,e){const s=_(o.from)?o.from:_t,i=_(o.to)?o.to:ft;return o.from=Math.max(Math.min(i,s),t),o.to=Math.min(Math.max(i,s),e),o}function wf(o,t){const e=K(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,yf(o,e)}const{wA:$1,ui:Z1}=Je;class Af extends L.A{constructor(t,e,s,i={}){super(),this.element=t,this.theme=s,this.contextService=new Al(this,i),this._originalOptions=x({},this.options,e),this.options=x({},this._originalOptions),this._initTheme(s),this.redraw()}destroy(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement}value(t){const e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)}_draw(){const t=this.surface;t.clear(),t.draw(this._visuals)}exportVisual(){return this._visuals}allValues(t){const e=this.pointers,s=[];if(0===arguments.length){for(let i=0;i<e.length;
1i++)s.push(e[i].value());return s}if(Dt(t))for(let i=0;i<t.length;i++)G(t[i])&&e[i].value(t[i]);this._setValueOptions(t)}_setValueOptions(t){const e=[].concat(this.options.pointer),s=[].concat(t);for(let i=0;i<s.length;i++)e[i].value=s[i]}resize(){this.noTransitionsRedraw()}noTransitionsRedraw(){const t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)}redraw(){const t=this._surfaceSize(),e=new wt.A([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();const s=wf(e.bbox(),this._gaugeAreaMargin);this.reflow(s)}setOptions(t,e){this._originalOptions=x(this._originalOptions,t),this.options=x({},this._originalOptions),this._initTheme(e),this.redraw()}setDirection(t){this.contextService.rtl=!!t,this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)}setIntlService(t){this.contextService.intl=t}_initTheme(t){let e=t||this.theme||{};this.theme=e,this.options=x({},e,this.options);const s=this.options,i=s.pointer;if(Dt(i)){const n=[];for(let r=0;r<i.length;r++)n.push(x({},e.pointer,i[r]));s.pointer=n}}_createGaugeArea(){const t=this.options.gaugeArea,e=this.surface.size(),s=t.border||{};let i=new wt.A([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,s.width>0&&(i=wf(i,s.width)),$1.fromRect(i,{stroke:{color:s.width?s.color:"",width:s.width,opacity:s.opacity,dashType:s.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})}_initSurface(){const{options:t,surface:e}=this,s=this._surfaceElement(),i=this._surfaceSize();De(s,i),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Z1.create(s,{type:t.renderAs}))}_surfaceSize(){const t=this.options,e=this._getSize();return t.gaugeArea&&x(e,t.gaugeArea),e}_surfaceElement(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement}getSize(){return this._getSize()}_getSize(){const t=this.element,e=this._defaultSize();let s=t.offsetWidth,i=t.offsetHeight;return s||(s=e.width),i||(i=e.height),{width:s,height:i}}_defaultSize(){return{width:200,height:200}}_toggleTransitions(t){this.options.transitions=t;for(let e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t}}w(Af,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});const Sf=Af,{wA:qc,YJ:jn}=Je,Fr=H.A;function Q1(o,t){const{position:e,tickX:s,tickY:i}=o;let n,r;return o.vertical?(n=new Fr(s,e),r=new Fr(s+t.size,e)):(n=new Fr(e,i),r=new Fr(e,i+t.size)),new qc({stroke:{color:t.color,width:t.width}}).moveTo(n).lineTo(r)}function kf(o,t,e,s){const i=t.length;if(s.visible){const{mirror:n,lineBox:r}=e;for(let a=s.skip;a<i;a+=s.step)a%s.skipUnit!=0&&(e.tickX=n?r.x2:r.x2-s.size,e.tickY=n?r.y1-s.size:r.y1,e.position=t[a],o.append(Q1(e,s)))}}class Tf extends ne{constructor(t,e){let s=t||{};!_(s.reverse)&&!1===s.vertical&&(e||{}).rtl&&(s=Object.assign({},s,{reverse:!0})),super(0,1,s,e),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}initUserOptions(t){let e=x({},this.options,t);return e=x({},e,{labels:{mirror:e.mirror}}),e.majorUnit=e.majorUnit||hi(e.min,e.max),e}initFields(){}render(){const t=this.elements=new jn,e=this.renderLabels(),s=this.renderLine(),i=this.renderTicks(),n=this.renderRanges();return t.append(s,e,i,n),t}renderRanges(){const t=this.options,{min:e,max:s,vertical:i,labels:{mirror:n}}=t,r=t.ranges||[],a=new jn,c=r.length,h=t.rangeSize||t.minorTicks.size/2;for(let d=0;d<c;d++){const u=Cf(r[d],e,s),p=this.getSlot(u.from,u.to),f=i?this.lineBox():p,g=i?p:this.lineBox();i?f.x1-=h*(n?-1:1):g.y2+=h*(n?-1:1),a.append(qc.fromRect(new wt.A([f.x1,g.y1],[f.x2-f.x1,g.y2-g.y1]),{fill:{color:u.color,opacity:u.opacity},stroke:{}}))}return a}renderLabels(){const{labels:t,options:e}=this,s=new jn;for(let i=0;i<t.length;i++)s.append(_f(t[i],e.labels));return s}renderLine(){const t=this.options.line,e=this.lineBox(),s=new jn;if(t.width>0&&t.visible){const i=new qc({stroke:{color:t.color,dashType:t.dashType,width:t.width}});i.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),s.append(i)}return s}renderTicks(){const t=new jn,e=this.options,s=e.majorTicks.visible?e.majorUnit:0,i={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return kf(t,this.getMajorTickPositions(),i,e.majorTicks),kf(t,this.getMinorTickPositions(),i,x({},{skipUnit:s/e.minorUnit},e.minorTicks)),t}}w(Tf,{min:0,max:50,majorTicks:{size:15,align:fs,color:pt,width:.5,visible:!0},minorTicks:{size:10,align:fs,color:pt,width:.5,visible:!0},line:{width:.5},labels:{position:fs,padding:2},mirror:!1,_alignLines:!1});const K1=Tf;class Mf extends L.A{constructor(t,e){super();const{min:s,max:i}=t.options,n=this.options=x({},this.options,e);n.fill=n.color,this.scale=t,n.value=_(n.value)?I(n.value,s,i):s}value(t){const e=this.options;if(0===arguments.length)return e.value;const{min:i,max:n}=this.scale.options;
1e._oldValue=_(e._oldValue)?e.value:i,e.value=I(t,i,n),this.elements&&this.repaint()}}w(Mf,{color:pt});const Jc=Mf;class Ef extends Jc{constructor(t,e){super(t,e),this.options=x({track:{visible:_(e.track)}},this.options)}reflow(){const{options:t,scale:e}=this,{mirror:s,vertical:i}=e.options,n=e.lineBox(),r=t.track.size||t.size,a=t.size/2,c=K(t.margin);let d,u,p,h=i?c[s?"left":"right"]:c[s?"bottom":"top"];h=s?-h:h,i?(p=new A(n.x1+h,n.y1,n.x1+h,n.y2),s?p.x1-=r:p.x2+=r,t.shape!==Hn&&(u=new A(n.x2+h,n.y1-a,n.x2+h,n.y2+a),d=u)):(p=new A(n.x1,n.y1-h,n.x2,n.y1-h),s?p.y2+=r:p.y1-=r,t.shape!==Hn&&(u=new A(n.x1-a,n.y1-h,n.x2+a,n.y1-h),d=u)),this.trackBox=p,this.pointerRangeBox=u,this.box=d||p.clone().pad(t.border.width)}getElementOptions(){const t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:_(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}}_margin(){const{scale:t,options:e}=this,{mirror:s,vertical:i}=t.options,n=K(e.margin);return i?n[s?"left":"right"]:n[s?"bottom":"top"]}}w(Ef,{shape:Hn,track:{border:{width:1}},color:pt,border:{width:1},opacity:1,margin:K(3),animation:{type:Hn},visible:!0});const Df=Ef;class th extends ie{setup(){const t=this.options,{margin:e,from:s,to:i,vertical:n}=t,r=n?"x1":"y1";t.mirror===n?(s[r]-=e,i[r]-=e):(s[r]+=e,i[r]+=e);const a=this.fromScale=new H.A(s.x1,s.y1),c=this.toScale=new H.A(i.x1,i.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(c)/t.duration*1e3,1))}step(t){const e=te(this.fromScale.x,this.toScale.x,t),s=te(this.fromScale.y,this.toScale.y,t);this.element.transform(vt.A().translate(e,s))}}w(th,{easing:Vr,duration:250}),be.current.register(pf,th);const q1=th,Bi=H.A,J1=E.w,eA=class tA extends Df{constructor(t,e){super(t,e),_(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}pointerShape(){const{scale:t,options:{size:e}}=this,s=e/2,i=t.options.mirror?-1:1;let n;return n=t.options.vertical?[new Bi(0,0-s),new Bi(0-i*e,0),new Bi(0,0+s)]:[new Bi(0-s,0),new Bi(0,0+i*e),new Bi(0+s,0)],n}repaint(){const{scale:t,options:e}=this,s=new q1(this.elements,x(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(s.options.duration=0),s.setup(),s.play()}render(){const{scale:t,options:e}=this,s=this.getElementOptions(),i=this.pointerShape(e.value);e.animation.type=pf;const n=new J1({stroke:s.stroke,fill:s.fill}).moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).close(),r=t.getSlot(e.value);return n.transform(vt.A().translate(r.x1,r.y1)),this.elements=n,n}};class eh extends ie{setup(){const t=this.options,e=this.axis=t.vertical?P:D,s=this.to=t.newPoints[0][e],i=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(s-i)/t.speed*1e3,1)),this._set(i)}step(t){const e=te(this.from,this.to,t);this._set(e)}_set(t){const e="set"+this.axis.toUpperCase(),s=this.options.newPoints;s[0][e](t),s[1][e](t)}}w(eh,{easing:Vr,speed:250}),be.current.register(Hn,eh);const sA=eh,{YJ:iA,wA:Pf}=Je,oA=class nA extends Df{constructor(t,e){super(t,e),_(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}pointerShape(t){const{scale:e,options:s}=this,{mirror:i,vertical:n}=e.options,r=i===n?-1:1,a=s.size*r,c=e.getSlot(e.options.min),h=e.getSlot(t),d=n?P:D,u=n?D:P,p=this._margin()*r,f=new H.A;f[d]=c[d+"1"],f[u]=c[u+"1"];const g=new H.A;g[d]=h[d+"1"],g[u]=h[u+"1"],n?(f.translate(p,0),g.translate(p,0)):(f.translate(0,p),g.translate(0,p));const m=g.clone(),v=f.clone();return n?(m.translate(a,0),v.translate(a,0)):(m.translate(0,a),v.translate(0,a)),[f,g,m,v]}repaint(){const{scale:t,options:e}=this,s=this.pointerShape(e.value),i=this.pointerPath,n=this.pointerShape(e._oldValue);i.moveTo(s[0]).lineTo(s[1]).lineTo(s[2]).lineTo(s[3]).close();const r=new sA(i,x(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[n[1],n[2]],newPoints:[s[1],s[2]]}));!1===e.animation.transitions&&(r.options.duration=0),r.setup(),r.play()}render(){const t=new iA,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());const s=this.pointerPath=new Pf({stroke:e.stroke,fill:e.fill});return t.append(s),this.elements=t,t}renderTrack(){const t=this.options.track,e=t.border||{},s=this.trackBox.clone().pad(e.width||0);return new Pf.fromRect(s.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})}},lA=et.A;w(class cA extends Sf{reflow(t){const e=this.pointers,s=t.origin.x,i=t.origin.y,n=new A(s,i,s+t.width(),i+t.height());this.scale.reflow(n),this._shrinkScaleWidth(n);for(let r=0;r<e.length;r++)e[r].reflow();this.bbox=this._getBox(n),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()}_buildVisual(){const t=new lA,e=this.scale.render(),s=this.pointers;t.append(this.gaugeArea),t.append(e);for(let i=0;i<s.length;i++){const n=s[i];t.append(n.render()),n.value(n.options.value)}this._visuals=t}_createModel(){const t=this.options,e=this.scale=new K1(t.scale,this.contextService);this.pointers=[];let s=t.pointer;s=Dt(s)?s:[s];for(let i=0;i<s.length;i++){const n=x({},s[i],{animation:{transitions:t.transitions}});this.pointers.push(new("arrow"===n.shape?eA:oA)(e,n))}}_defaultSize(){const t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}}_getBox(t){const{scale:e,pointers:s}=this,i=t.center();let r,n=s[0].box.clone().wrap(e.box);for(let a=0;a<s.length;a++)n.wrap(s[a].box.clone());return e.options.vertical?(r=n.width()/2,n=new A(i.x-r,t.y1,i.x+r,t.y2)):(r=n.height()/2,n=new A(t.x1,i.y-r,t.x2,i.y+r)),n}_alignElements(){const{scale:t,pointers:e}=this,s=t.box,i=e[0].box.clone().wrap(t.box),n=this.bbox;for(let a=0;a<e.length;a++)i.wrap(e[a].box.clone());let r;t.options.vertical?(r=n.center().x-i.center().x,t.reflow(new A(s.x1+r,n.y1,s.x2+r,n.y2))):(r=n.center().y-i.center().y,t.reflow(new A(s.x1,s.y1+r,s.x2,s.y2+r)));for(let a=0;a<e.length;a++)e[a].reflow(this.bbox)}_shrinkScaleWidth(t){const{scale:e}=this;if(!e.options.vertical){const s=e.contentBox().width()-t.width();s>0&&(e.box.shrink(s,0),e.box.alignTo(t,"center"),e.reflow(e.box))}}_shrinkElements(){const{scale:t,pointers:e}
1=this,s=t.box.clone(),i=t.options.vertical?"y":"x",n=e[0].box;for(let r=0;r<e.length;r++)n.wrap(e[r].box.clone());s[i+1]+=Math.max(s[i+1]-n[i+1],0),s[i+2]-=Math.max(n[i+2]-s[i+2],0),t.reflow(s);for(let r=0;r<e.length;r++)e[r].reflow(this.bbox)}},{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});const{l5:hA,wA:dA,YJ:zr}=Je;function Lf(o,t,e,s){const i=new zr,n=o.center,r=o.getRadiusX();if(s.visible)for(let a=0;a<t.length;a++){const c=o.pointAt(t[a]),h=new H.A(n.x+r-s.size,n.y).rotate(t[a],n);i.append(new dA({stroke:{color:s.color,width:s.width}}).moveTo(c).lineTo(h))}return i}function sh(o,t,e,s){return{from:o,to:t,color:e,opacity:s}}class If extends ne{constructor(t,e){super(0,1,t,e)}initUserOptions(t){const e=x({},this.options,t);return e.majorUnit=e.majorUnit||hi(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e}initFields(){}render(t,e){const s=this.renderArc(t,e);this.bbox=s.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()}reflow(t){const e=t.center(),s=Math.min(t.height(),t.width())/2;if(!_(this.bbox))return this.render(e,s);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()}slotAngle(t){const{min:e,max:s,reverse:i,startAngle:n,endAngle:r}=this.options,a=r-n;let c;return c=i?r-(t-e)/(s-e)*a:(t-e)/(s-e)*a+n,c+180}hasRanges(){const t=this.options.ranges;return t&&t.length}ticksSize(){const{majorTicks:t,minorTicks:e}=this.options;let s=0;return t.visible&&(s=t.size),e.visible&&(s=Math.max(e.size,s)),s}labelsCount(){let t=super.labelsCount();const e=this.options;return e.endAngle-e.startAngle>=360&&e.max%e.majorUnit==0&&(t-=1),t}renderLabels(){const t=this.options,e=this.arc.clone();let s=e.getRadiusX();const i=this.tickAngles(e,t.majorUnit),n=t.rangeSize=t.rangeSize||.1*s,r=new zr;let a=.05*s;_(t.rangeDistance)?a=t.rangeDistance:t.rangeDistance=a;const c=t.labels,h=c.position===fs,d=_(this.labelElements);h&&(s-=this.ticksSize(),this.hasRanges()&&!d&&(s-=n+a),e.setRadiusX(s).setRadiusY(s));const u=this.labels,p=u.length,f=K(c.padding),g=(f.left+f.right)/2,m=(f.top+f.bottom)/2;for(let v=0;v<p;v++){const y=u[v],C=y.box.width()/2,M=y.box.height()/2,R=i[v],B=(R-180)*mf,st=e.pointAt(R),Z=st.x+Math.cos(B)*(C+g)*(h?1:-1),Q=st.y+Math.sin(B)*(M+m)*(h?1:-1);y.reflow(new A(Z-C,Q-M,Z+C,Q+M));const xt=new H.A(y.box.x1,y.box.y1);let lt;if(d){lt=this.labelElements.children[v];const qt=lt.bbox().origin,fe=lt.transform()||vt.A();fe.translate(xt.x-qt.x,xt.y-qt.y),lt.transform(fe)}else lt=_f(y,t.labels),r.append(lt);this.bbox=wt.A.union(this.bbox,lt.bbox())}return r}repositionRanges(){const t=this.ranges.children;if(t.length>0){const{rangeDistance:e,rangeSize:s}=this.options;let i=this.getRangeRadius();this.options.labels.position===fs&&(i+=s+e);const n=i+s/2;for(let r=0;r<t.length;r++)t[r]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=wt.A.union(this.bbox,this.ranges.bbox())}}renderRanges(){const t=this.rangeSegments(),e=t.length,s=new zr;if(e){const{rangeSize:i,reverse:n,rangeDistance:r}=this.options,a=this.getRangeRadius();this.radius(this.radius()-i-r);for(let c=0;c<e;c++){const h=t[c],d=this.slotAngle(h[n?"to":"from"]),u=this.slotAngle(h[n?"from":"to"]);u-d!=0&&s.append(this.createRange(d,u,a,h))}}return s}createRange(t,e,s,i){const n=this.options.rangeSize,r=new di.A(this.arc.center,{radiusX:s+n/2,radiusY:s+n/2,startAngle:t,endAngle:e});return new hA(r,{stroke:{width:n,color:i.color,opacity:i.opacity,lineCap:i.lineCap}})}rangeSegments(){const t=this.options,e=t.ranges||[],s=e.length,i=[];if(s){const{min:n,max:r,rangePlaceholderColor:a}=t;i.push(sh(n,r,a));for(let c=0;c<s;c++){const h=Cf(e[c],n,r),d=i.length;for(let u=0;u<d;u++){const p=i[u];if(p.from<=h.from&&h.from<=p.to){i.push(sh(h.from,h.to,h.color,h.opacity)),p.from<=h.to&&h.to<=p.to&&i.push(sh(h.to,p.to,a,h.opacity)),p.to=h.from;break}}}}return i}getRangeRadius(){const{arc:t,options:e}=this,{rangeSize:s,rangeDistance:i,majorTicks:{size:n}}=e;let r;return r=e.labels.position===Kc?t.getRadiusX()-n-i-s:t.getRadiusX()-s,r}renderArc(t,e){const s=this.options;
1return this.arc=new di.A(t,{radiusX:e,radiusY:e,startAngle:s.startAngle+180,endAngle:s.endAngle+180})}renderTicks(){const{arc:t,options:e}=this,s=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=Lf(s,this.majorTickAngles,0,e.majorTicks);const i=new zr;i.append(this.majorTicks);const n=e.majorTicks.size,r=e.minorTicks.size;if(this._tickDifference=n-r,e.labels.position===Kc){const a=s.getRadiusX();s.setRadiusX(a-n+r).setRadiusY(a-n+r)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=Lf(s,this.minorTickAngles,0,e.minorTicks),i.append(this.minorTicks),i}normalizeTickAngles(t){const e=this.options,s=e.majorUnit/e.minorUnit;for(let i=t.length-1;i>=0;i--)i%s==0&&t.splice(i,1);return t}tickAngles(t,e){const s=this.options,r=t.endAngle-t.startAngle;let a=(s.max-s.min)/e,c=t.startAngle,h=r/a;s.reverse&&(c+=r,h=-h),r>=360&&s.max%e==0&&(a-=1);const d=[];for(let u=0;u<a;u++)d.push(k(c,3)),c+=h;return k(c)<=t.endAngle&&d.push(c),d}radius(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)}repositionTicks(t,e,s){const i=s&&this._tickDifference||0;let n=this.arc;const r=n.getRadiusX();s&&this.options.labels.position===Kc&&0!==i&&(n=this.arc.clone(),n.setRadiusX(r-i).setRadiusY(r-i));for(let a=0;a<t.length;a++){const c=n.pointAt(e[a]),h=t[a].segments,d=c.x-h[0].anchor().x,u=c.y-h[0].anchor().y;t[a].transform((new vt.A).translate(d,u))}}}w(If,{min:0,max:100,majorTicks:{size:15,align:fs,color:pt,width:.5,visible:!0},minorTicks:{size:10,align:fs,color:pt,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:fs,padding:2}});const Rf=If;class ih extends ie{constructor(t,e){super(t,e);const s=this.options;s.duration=Math.max(Math.abs(s.newAngle-s.oldAngle)/s.duration*1e3,1)}step(t){const e=this.options,s=te(e.oldAngle,e.newAngle,t);this.element.transform(vt.A().rotate(s,e.center))}}w(ih,{easing:Vr,duration:150}),be.current.register(xf,ih);const uA=ih,{jl:gA,YJ:fA,wA:mA}=Je;class Bf extends Jc{setAngle(t){this.elements.transform(vt.A().rotate(t,this.center))}repaint(){const{scale:t,options:e}=this,s=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(i):new uA(this.elements,x(e.animation,{oldAngle:s,newAngle:i})).play()}render(){const{scale:t,options:e}=this,s=new fA;return!1!==e.animation&&x(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),s.append(this._renderNeedle(),this._renderCap()),this.elements=s,this.setAngle(mf),s}reflow(t){const e=this.center=t.center,s=I(this.options.length||1,.1,1.5),i=this.radius=t.getRadiusX()*s,n=this.capSize=Math.round(i*this.options.cap.size);this.bbox=wt.A.fromPoints(new H.A(e.x-n,e.y-n),new H.A(e.x+n,e.y+n))}_renderNeedle(){const t=this.scale.options.minorTicks.size,e=this.center,s=this.options.color,i=new mA({fill:{color:s},stroke:{color:s,width:.5}});return i.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),i}_renderCap(){const t=this.options,e=t.cap.color||t.color,s=new se.A(this.center,this.capSize);return new gA(s,{fill:{color:e},stroke:{color:e}})}}w(Bf,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:xf,duration:150}});const xA=Bf,vA=et.A;w(class yA extends Sf{reflow(t){const e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(let s=0;s<e.length;s++)e[s].reflow(this.scale.arc),this._initialPlotArea=wt.A.union(this._initialPlotArea,e[s].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()}_buildVisual(t,e,s){const i=this._visuals=new vA;i.append(t),i.append(s.ticks),i.append(s.ranges),this._buildPointers(e),i.append(s.labelElements)}_buildPointers(t){for(let e=0;e<t.length;e++){const s=t[e];s.render(),this._visuals.append(s.elements),s.value(s.options.value)}}fitScale(t){const e=this.scale.arc,i=Math.abs(this.getDiff(this._initialPlotArea,t));let a,c,h,d,u,n=k(i,3),r=k(-i,3),p=0,f=0;for(;f++<100&&(p=u===h?p+1:0,!(p>5||n!==d&&(a=this.getPlotBox(n,t,e),0<=a&&a<=2)||r!==d&&(h=this.getPlotBox(r,t,e),0<=h&&h<=2)||(d=a>0&&h>0?2*n:a<0&&h<0?2*r:k((n+r)/2||1,3),c=this.getPlotBox(d,t,e),0<=c&&c<=2)));)u=h,c>0?(r=d,h=c):(n=d,a=c)}getPlotBox(t,e,s){const i=this.scale,n=this.pointers,r=s.getRadiusX(),a=s.clone();
1a.setRadiusX(r+t).setRadiusY(r+t),i.arc=a,i.reflow(e),this.plotBbox=i.bbox;for(let c=0;c<n.length;c++)n[c].reflow(a),this.plotBbox=wt.A.union(this.plotBbox,n[c].bbox);return this.getDiff(this.plotBbox,e)}getDiff(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())}alignScale(t){const e=this.plotBbox.center(),s=t.center(),i=e.x-s.x,n=e.y-s.y,{scale:r,pointers:a}=this;r.arc.center.x-=i,r.arc.center.y-=n,r.reflow(t);for(let c=0;c<a.length;c++)a[c].reflow(r.arc),this.plotBbox=wt.A.union(r.bbox,a[c].bbox)}_createModel(){const t=this.options,e=t.pointer,s=this.scale=new Rf(t.scale,this.contextService);this.pointers=[];const i=Dt(e)?e:[e];for(let n=0;n<i.length;n++){const r=new xA(s,x({},i[n],{animation:{transitions:t.transitions}}));this.pointers.push(r)}}},{transitions:!0,gaugeArea:{background:""}}),w(class bA extends Rf{rangeSegments(){const{min:t,max:e,rangePlaceholderColor:s,rangeLineCap:i}=this.options;return[{from:t,to:e,color:s,lineCap:i}]}hasRanges(){return!0}placeholderRangeAngle(t){const e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)}addRange(t,e,s){const i=this.options.reverse,n=this.slotAngle(i?e:t),r=this.slotAngle(i?t:e),a=this.createRange(n,r,this.getRangeRadius(),s);return this.ranges.append(a),a}},{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});class nh extends ie{constructor(t,e){super(t,e);const s=this.options,i=Math.abs(s.newAngle-s.oldAngle)/s.duration*1e3;s.duration=I(i,150,800);const n=t.elements.options.get("stroke.color"),r=t.currentColor();n!==r&&(this.startColor=new xe.A(n),this.color=new xe.A(r))}step(t){const{options:e,startColor:s,color:i}=this,n=te(e.oldAngle,e.newAngle,t);if(this.element.angle(n),i){const r=k(te(s.r,i.r,t)),a=k(te(s.g,i.g,t)),c=k(te(s.b,i.b,t));this.element.stroke(new xe.A(r,a,c).toHex())}}}w(nh,{easing:Vr,duration:150}),be.current.register(vf,nh);const CA=nh;w(class wA extends Jc{repaint(){const{scale:t,options:e}=this,s=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(i),this.stroke(this.currentColor())):(this.animation=new CA(this,x(e.animation,{oldAngle:s,newAngle:i})),this.animation.play())}angle(t){const e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)}stroke(t){this.elements.stroke(t)}render(){if(this.elements)return;const{scale:t,options:e}=this;!1!==e.animation&&x(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}currentColor(){const{min:t,max:e}=this.scale.options,{colors:s,color:i,value:n}=this.options,r=G(n)?n:t;if(s)for(let a=0;a<s.length;a++){const{color:c,from:h=t,to:d=e}=s[a];if(h<=r&&r<=d)return c}return i}reflow(){this.render(),this.bbox=this.elements.bbox()}},{animation:{type:vf,duration:150}});class js extends L.A{constructor(t){super(),this.setOptions(t),this.initProperties()}initProperties(){}setOptions(t){this.options=Object.assign({},this.options,t),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0}encode(t,e,s){const i=_(t)?String(t):t;return this.initValue(i,e,s),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}}initValue(){}addQuietZone(){this.pattern.push(this.options.quietZoneLength||10)}addData(){}invalidCharacterError(t){throw new Error(`Character "${t}" is not valid for symbology ${this.name}.`)}}w(js,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});const SA=Object.assign;class Vf extends js{initProperties(){super.initProperties(),SA(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})}initValue(t,e){this.pattern=[],this.value=t,this.width=e,this.totalUnits=0}addData(){const t=this.value;this.addPattern(this.START);for(let e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()}setBaseUnit(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}addCheckSum(){const t=this.value;let e=t.length;const s=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(s),this.addPattern(this.characterMap[s]),e++,e>=this.kCheckSumMinLength){let i=(s+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=i,this.addPattern(this.characterMap[i])}}getWeightedSum(t,e,s){let i=0;for(let n=0;n<t.length;n++)i+=this.weightedValue(this.getValue(t.charAt(n)),e,n,s);return i}weightedValue(t,e,s,i){return((e-s)%i||i)*t}getValue(t){return isNaN(t)?(t!==this.DASH&&this.invalidCharacterError(t),this.DASH_VALUE):parseInt(t,10)}addCharacter(t){const e=this.getValue(t);this.addPattern(this.characterMap[e])}addPattern(t){let e;for(let s=0;s<t.length;s++)e=parseInt(t.charAt(s),10),this.pattern.push(e),this.totalUnits+=e}}w(Vf,{addCheckSum:!0});const Ff=Object.assign;class Nf extends js{initProperties(){super.initProperties(),Ff(this,{minBaseUnitLength:.7}
1)}addData(){const t=this.value;this.addStart();for(let e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()}addCharacter(t){const e=this.characterMap[t];e||this.invalidCharacterError(t),this.addBase(e)}addBase(){}}class oh extends Nf{initProperties(){super.initProperties(),Ff(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})}initValue(t,e,s){this.width=e,this.height=s,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""}prepareValues(){const t=this.minBaseUnitLength,e=this.minRatio,s=Math.ceil(Math.max(.15*this.width,24));let i,n=this.maxRatio;if(this.height<s)throw new Error(`Insufficient height for Code39 encoding: the current height is ${this.height}px and the minimum height is ${s}px.`);for(i=this.getBaseUnit(n);i<t&&n>e;)n=parseFloat((n-.1).toFixed(1)),i=this.getBaseUnit(n);if(i<t){let r=Math.ceil(this.getBaseWidth(e)*t);throw new Error(`Insufficient width for Code39 encoding: the current width is ${this.width}px and the minimum width for value "${this.value}" is ${r}px.`)}this.ratio=n,this.baseUnit=i,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,n).split(this.splitCharacter))}getBaseUnit(t){return this.width/this.getBaseWidth(t)}getBaseWidth(t){return this.quietZoneLength+3*(t+2)*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)}addStart(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()}addBase(t){this.addPattern(t.pattern),this.addCharacterGap()}addStop(){this.addPattern(this.characterMap.START.pattern)}addPattern(t){for(let e=0;e<t.length;e++)this.patternString+=this.patternMappings[t.charAt(e)]}addCharacterGap(){this.patternString+=this.gapWidth+this.splitCharacter}}w(oh,{addCheckSum:!1});const zf={addCharacter(o){this.characterMap[o]?this.addBase(this.characterMap[o]):o.charCodeAt(0)>127?this.invalidCharacterError(o):this.addExtended(o.charCodeAt(0))},addExtended(o){let t;for(let e=0;e<this.extendedMappings.length;e++)if(t=this.extendedMappings[e].call(this,o),t){for(let s=0;s<t.length;s++)this.addBase(t[s]);return void(this.dataLength+=t.length-1)}},extendedMappings:[function(o){if(97<=o&&o<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(o-32)]]},function(o){if(33<=o&&o<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(o+32)]]},function(o){if(1<=o&&o<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(o+64)]]},function(o){let t,e;if(this.specialAsciiCodes[o]){t=[];for(let s=0;s<this.specialAsciiCodes[o].length;s++)t.push(this.characterMap[this.shiftCharacters[3]]),t.push(this.characterMap[this.specialAsciiCodes[o][s]])}else e=6*Math.floor(o/32)+(o-27)%32+64,t=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(e)]];return t}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},TA=Object.assign;class Uf extends Nf{initProperties(){super.initProperties(),TA(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})}initValue(t,e,s){this.value=t,this.width=e,this.height=s,this.pattern=[],this.values=[],this.dataLength=t.length}prepareValues(){let t=Math.ceil(Math.max(.15*this.width,24));if(this.height<t)throw new Error(`Insufficient height for Code93 encoding: the current height is ${this.height}px, the minimum required height is ${t}px.`);if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength){const e=Math.ceil(this.minBaseUnitLength*(this.width/this.baseUnit));throw new Error(`Insufficient width for Code93 encoding: the current width is ${this.width}px and the minimum required width for value "${this.value}" is ${e}px.`)}}setBaseUnit(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)}addStart(){this.addPattern(this.characterMap.START.pattern)}addStop(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)}
vendor: 6,692 bytes, line 1
1addBase(t){this.addPattern(t.pattern),this.values.push(t.value)}pushCheckSum(){const t=this._getCheckValues();let e;this.checksum=t.join("");for(let s=0;s<t.length;s++)e=this.characterMap[this._findCharacterByValue(t[s])],this.addPattern(e.pattern)}_getCheckValues(){const t=this.values,e=t.length;let i,n,r,s=0;for(r=e-1;r>=0;r--)s+=this.weightedValue(t[r],e-r,this.cCheckSumTotal);for(i=s%this.checkSumMod,s=this.weightedValue(i,1,this.kCheckSumTotal),r=e-1;r>=0;r--)s+=this.weightedValue(t[r],e-r+1,this.kCheckSumTotal);return n=s%this.checkSumMod,[i,n]}_findCharacterByValue(t){for(let e in this.characterMap)if(this.characterMap[e].value===t)return e}weightedValue(t,e,s){return(e%s||s)*t}addPattern(t){let e;for(let s=0;s<t.length;s++)e=parseInt(t.charAt(s),10),this.pattern.push(e)}}const EA=/^\d+$/,DA=Object.assign,rh=/^\d+$/,LA=/^[a-z0-9]+$/i,ue=Object.assign;class Ur extends L.A{constructor(t){super(),this.encoding=t,this.initProperties()}initProperties(){}addStart(){}is(){}isCode(){return!1}move(){}pushState(){}}class Hf extends Ur{constructor(t,e){super(t),this.states=e,this._initMoves(e)}initProperties(){super.initProperties(),x(this,{FNC4:"FNC4",SHIFT:98})}addStart(){this.encoding.addPattern(this.START)}is(t,e){let s=t.charCodeAt(e);return this.isCode(s)}move(t){let e=0;for(;!this._moves[e].call(this,t)&&e<this._moves.length;)e++}pushState(t){let n,s=t.value,i=s.length;if(N("C",this.states)){let r=s.substr(t.index).match(/\d{4,}/g);r&&(i=s.indexOf(r[0],t.index))}for(;(n=t.value.charCodeAt(t.index))>=0&&this.isCode(n)&&t.index<i;)this.encoding.addPattern(this.getValue(n)),t.index++}_initMoves(t){this._moves=[],N(this.FNC4,t)&&this._moves.push(this._moveFNC),N(this.shiftKey,t)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)}_moveFNC(t){if(t.fnc)return t.fnc=!1,t.previousState===this.key}_shiftState(t){if(t.previousState===this.shiftKey&&(t.index+1>=t.value.length||this.encoding[this.shiftKey].is(t.value,t.index+1)))return this.encoding.addPattern(this.SHIFT),t.shifted=!0,!0}_moveState(){return this.encoding.addPattern(this.MOVE),!0}}const Oi={};Oi.A=class extends Hf{initProperties(){super.initProperties(),ue(this,{key:"A",shiftKey:"B",MOVE:101,START:103})}isCode(t){return 0<=t&&t<96}getValue(t){return t<32?t+64:t-32}},Oi.B=class extends Hf{initProperties(){super.initProperties(),ue(this,{key:"B",shiftKey:"A",MOVE:100,START:104})}isCode(t){return 32<=t&&t<128}getValue(t){return t-32}},Oi.C=class extends Ur{initProperties(){super.initProperties(),ue(this,{key:"C",MOVE:99,START:105})}addStart(){this.encoding.addPattern(this.START)}is(t,e){let s=ah(t,e,4);return(e+4<=t.length||2===t.length)&&rh.test(s)}move(){this.encoding.addPattern(this.MOVE)}pushState(t){let e;for(;(e=ah(t.value,t.index,2))&&rh.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2}getValue(t){return t}},Oi.FNC4=class extends Ur{constructor(t,e){super(t),this._initSubStates(e)}initProperties(){super.initProperties(),ue(this,{key:"FNC4",dependentStates:["A","B"]})}addStart(t){let e=t.value.charCodeAt(0)-128,s=this._getSubState(e);this.encoding[s].addStart()}is(t,e){let s=t.charCodeAt(e);return this.isCode(s)}isCode(t){return 128<=t&&t<256}pushState(t){let n,e=this._initSubState(t),s=this.encoding,i=e.value.length;if(t.index+=i,i<3)for(;e.index<i;e.index++)n=e.value.charCodeAt(e.index),e.state=this._getSubState(n),e.previousState!==e.state&&(e.previousState=e.state,s[e.state].move(e)),s.addPattern(s[e.state].MOVE),s.addPattern(s[e.state].getValue(n));else e.state!==e.previousState&&s[e.state].move(e),this._pushStart(e),s.pushData(e,this.subStates),t.index<t.value.length&&this._pushStart(e);t.fnc=!0,t.state=e.state}_pushStart(t){this.encoding.addPattern(this.encoding[t.state].MOVE),this.encoding.addPattern(this.encoding[t.state].MOVE)}_initSubState(t){const e={value:this._getAll(t.value,t.index),index:0};return e.state=this._getSubState(e.value.charCodeAt(0)),e.previousState=t.previousState===this.key?e.state:t.previousState,e}_initSubStates(t){this.subStates=[];for(let e=0;e<t.length;e++)N(t[e],this.dependentStates)&&this.subStates.push(t[e])}_getSubState(t){for(let e=0;e<this.subStates.length;e++)if(this.encoding[this.subStates[e]].isCode(t))return this.subStates[e]}_getAll(t,e){let s,i="",n=e;for(;(s=t.charCodeAt(n++))&&this.isCode(s);)i+=String.fromCharCode(s-128);return i}},Oi.FNC1=class extends Ur{constructor(t,e){super(t),this.states=e}initProperties(){super.initProperties(),ue(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})}addStart(){this.encoding[this.startState].addStart()}is(){return N(this.key,this.states)}pushState(t){let a,c,h,e=this.encoding,s=t.value.replace(/\s/g,""),i=new RegExp("["+this.startAI+this.endAI+"]","g"),n=t.index,r={state:this.startState};for(e.addPattern(this.START);;){if(r.index=0,h=s.charAt(n)===this.startAI?2:0,a=h>0?this.getBySeparator(s,n):this.getByLength(s,n),a.ai.length)c=n+h+a.id.length+a.ai.length;else if(c=s.indexOf(this.startAI,n+1),c<0){if(n+a.ai.max+a.id.length+h<s.length)throw new Error("Separators are required after variable length identifiers");c=s.length}if(r.value=s.substring(n,c).replace(i,""),this.validate(a,r.value),e.pushData(r,this.dependentStates),c>=s.length)break;n=c,r.state!==this.startState&&(e[this.startState].move(r),r.state=this.startState),a.ai.length||e.addPattern(this.START)}t.index=t.value.length}validate(t,e){let s=e.substr(t.id.length),i=t.ai;if(!i.type&&!rh.test(s))throw new Error("Application identifier "+t.id+" is numeric only but contains
1non numeric character(s).");if("alphanumeric"===i.type&&!LA.test(s))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(i.length&&i.length!==s.length)throw new Error("Application identifier "+t.id+" must be "+i.length+" characters long.");if(i.min&&i.min>s.length)throw new Error("Application identifier "+t.id+" must be at least "+i.min+" characters long.");if(i.max&&i.max<s.length)throw new Error("Application identifier "+t.id+" must be at most "+i.max+" characters long.")}getByLength(t,e){let s,i;for(let n=2;n<=4;n++)if(s=ah(t,e,n),i=this.getApplicationIdentifier(s)||this.getApplicationIdentifier(s.substring(0,s.length-1)),i)return{id:s,ai:i};this.unsupportedAIError(s)}unsupportedAIError(t){throw new Error("'"+t+"' is not a supported Application Identifier")}getBySeparator(t,e){let s=t.indexOf(this.startAI,e),i=t.indexOf(this.endAI,s),n=t.substring(s+1,i),r=this.getApplicationIdentifier(n)||this.getApplicationIdentifier(n.substr(n.length-1));return r||this.unsupportedAIError(n),{ai:r,id:n}}getApplicationIdentifier(t){let e=this.applicationIdentifiers,s=e.multiKey;if(e[t])return e[t];for(let i=0;i<s.length;i++){if(s[i].ids&&N(t,s[i].ids))return s[i].type;if(s[i].ranges){let n=s[i].ranges;for(let r=0;r<n.length;r++)if(n[r][0]<=t&&t<=n[r][1])return s[i].type}}}};class Gn extends js{constructor(t){super(t),this._initStates()}initProperties(){super.initProperties(),ue(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})}_initStates(){for(let t=0;t<this.states.length;t++)this[this.states[t]]=new Oi[this.states[t]](this,this.states)}initValue(t,e,s){this.pattern=[],this.value=t,this.width=e,this.height=s,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1}addData(){let t={value:this.value,index:0,state:""};0!==this.value.length&&(t.state=t.previousState=this.getNextState(t,this.states),this.addStart(t),this.pushData(t,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())}pushData(t,e){for(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){let i=t.state;t.state=t.previousState,t.previousState=i,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,e),this[t.state].move(t)}addStart(t){this[t.state].addStart(t),this.position=1}addCheckSum(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)}addStop(){this.addPattern(this.STOP)}setBaseUnit(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}addPattern(t){const e=this.characterMap[t].toString();let s;for(let i=0;i<e.length;i++)s=parseInt(e.charAt(i),10),this.pattern.push(s),this.totalUnits+=s;this.checkSum+=t*this.position++}getNextState(t,e){for(let s=0;s<e.length;s++)if(this[e[s]].is(t.value,t.index))return e[s];this.invalidCharacterError(t.value.charAt(t.index))}}function ah(o,t,e){return o.substring(t,t+e)}const Xn=Object.assign;class Hr extends js{initProperties(){super.initProperties(),Xn(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:HA})}initValue(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e}setBaseUnit(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)}addData(){const t=this.value;this.addPattern(this.START);for(let e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()}addCharacter(t){const e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)}addPattern(t){for(let e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))}addCheckSum(){const e=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=e.join("");for(let s=0;s<e.length;s++)this.checkSumLength++,this.addPattern(this.characterMap[e[s]])}}const HA={Modulo10(o){let s,i,n,t=[0,""],e=o.length%2;
1for(s=0;s<o.length;s++)t[(s+e)%2]+=parseInt(o.charAt(s),10);for(n=t[0],i=(2*t[1]).toString(),s=0;s<i.length;s++)n+=parseInt(i.charAt(s),10);return[(10-n%10)%10]},Modulo11(o){let i,n,t=0,s=o.length;for(let r=0;r<s;r++)i=((s-r)%6||6)+1,t+=i*o.charAt(r);return n=(11-t%11)%11,10!==n?[n]:[1,0]},Modulo11Modulo10(o){let e,t=this.Modulo11(o);return e=o+t[0],t.concat(this.Modulo10(e))},Modulo10Modulo10(o){let e,t=this.Modulo10(o);return e=o+t[0],t.concat(this.Modulo10(e))}},jA=Object.assign;class jf extends js{initProperties(){super.initProperties(),jA(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})}initValue(t,e,s){const i=String(t);if(12!==i.length||/\D/.test(i))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=s,this.baseUnit=e/(95+this.quietZoneLength),this.value=i,this.checksum=this.calculateChecksum(),this.leftKey=i[0],this.leftPart=i.substr(1,6),this.rightPart=i.substr(7)+this.checksum}addData(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)}addSide(t,e){for(let s=0;s<t.length;s++)e&&parseInt(this.keyTable[e].charAt(s),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(s)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(s)],!0)}addPieces(t,e){for(let s=0;s<t.length;s++)this.pattern.push(e?{y1:0,y2:.95*this.options.height,width:t[s]}:t[s])}calculateChecksum(){let t=0,e=0,s=this.value.split("").reverse().join("");for(let n=0;n<s.length;n++)n%2?e+=parseInt(s.charAt(n),10):t+=parseInt(s.charAt(n),10);return(10-(3*t+e)%10)%10}}const GA=Object.assign,Gf={code11:Vf,code39:oh,code39extended:class kA extends oh{initProperties(){super.initProperties(),x(this,zf,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})}},code93:Uf,code93extended:class MA extends Uf{initProperties(){super.initProperties(),x(this,zf,{name:"Code 93 extended",pushCheckSum:function(){const t=this._getCheckValues();let e;this.checksum=t.join("");for(let s=0;s<t.length;s++)if(e=t[s],this.shiftValuesAsciiCodes[e])this.addExtended(this.shiftValuesAsciiCodes[e]);else{const i=this._findCharacterByValue(e);this.addPattern(this.characterMap[i].pattern)}}})}},code128:class OA extends Gn{initProperties(){super.initProperties(),ue(this,{name:"Code 128",states:["C","B","A","FNC4"]})}},code128a:class IA extends Gn{initProperties(){super.initProperties(),ue(this,{name:"Code 128 A",states:["A"]})}},code128b:class RA extends Gn{initProperties(){super.initProperties(),ue(this,{name:"Code 128 B",
1states:["B"]})}},code128c:class BA extends Gn{initProperties(){super.initProperties(),ue(this,{name:"Code 128 C",states:["C"]})}},"gs1-128":class VA extends Gn{initProperties(){super.initProperties(),ue(this,{name:"Code GS1-128",states:["FNC1","C","B"]})}},msimod10:class FA extends Hr{initProperties(){super.initProperties(),Xn(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})}},msimod11:class NA extends Hr{initProperties(){super.initProperties(),Xn(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})}},msimod1010:class zA extends Hr{initProperties(){super.initProperties(),Xn(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})}},msimod1110:class UA extends Hr{initProperties(){super.initProperties(),Xn(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})}},postnet:class PA extends js{initProperties(){super.initProperties(),DA(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})}initValue(t,e,s){this.height=s,this.width=e,this.baseHeight=s/2,this.value=t.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()}addData(){const t=this.value;this.addPattern(this.START);for(let e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()}addCharacter(t){const e=this.characterMap[t];this.checkSum+=parseInt(t,10),this.addPattern(e)}addCheckSum(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)}setBaseUnit(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)}validate(t){if(EA.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!N(t.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(",")+".")}addPattern(t){let e;for(let s=0;s<t.length;s++)e=this.height-this.baseHeight*t.charAt(s),this.pattern.push({width:1,y1:e,y2:this.height}),this.pattern.push(1)}},ean8:class XA extends jf{initProperties(){super.initProperties(),GA(this,{name:"EAN 8"})}initValue(t,e,s){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=s,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=e/(67+this.quietZoneLength)}},ean13:jf};function Xf(o,t){const e=o.style.display;"canvas"===t&&(o.style.display="block");const s={width:o.clientWidth,height:o.clientHeight};return o.style.display=e,s}w(class $A extends L.A{constructor(t,e,s=Hd){super(),this.options=x({},this.options,e),this.element=t,this.onError=s,this._initElement(),this._initSurface(),this._setOptions(e),e&&_(e.value)&&this.redraw()}destroy(){this._destroySurface()}_initElement(){gt(this.element,"k-barcode")}_initSurface(){const{options:t,surface:e}=this;(!e||e.options.type!==t.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}_createSurface(){return Ii.A.create(this.surfaceElement,{type:this.options.renderAs})}_destroySurface(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}_initSurfaceElement(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}_destroySurfaceElement(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}setOptions(t){this._setOptions(t),this._initSurface(),this.redraw()}redraw(){let t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)}getSize(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}}_resize(){this.redraw()}createVisual(){this.visual=this._render()}_render(){const t=this.options,e=t.value,s=t.text,i=K(s.margin),n=this._getSize(),r=t.border||{},a=this.encoding,c=new A(0,0,n.width,n.height).unpad(r.width).unpad(t.padding);let d,u,p,h=c.height();const f=new et.A;
1this.contentBox=c,f.append(this._getBackground(n)),s.visible&&(p=xu.A(e,{font:s.font}).height,h-=p+i.top+i.bottom);try{d=a.encode(e,c.width(),h)}catch(g){return this.onError(g),f}return s.visible&&(u=e,t.checksum&&_(a.checksum)&&(u+=" "+a.checksum),f.append(this._getText(u))),this.barHeight=h,this._bandsGroup=this._getBands(d.pattern,d.baseUnit),f.append(this._bandsGroup),f}exportVisual(){return this._render()}_getSize(){const e=Xf(this.element,this.options.renderAs),s=new Ic.A(300,100);return e.width>0&&(s.width=e.width),e.height>0&&(s.height=e.height),this.options.width&&(s.width=this.options.width),this.options.height&&(s.height=this.options.height),s}value(t){if(!_(t))return this.options.value;this.options.value=String(t),this.redraw()}_getBands(t,e){const s=this.contentBox;let n,r,i=s.x1;const a=new et.A;for(let c=0;c<t.length;c++){if(r=Jt(t[c])?t[c]:{width:t[c],y1:0,y2:this.barHeight},n=r.width*e,c%2){const h=wt.A.fromPoints(new H.A(i,r.y1+s.y1),new H.A(i+n,r.y2+s.y1)),d=E.w.fromRect(h,{fill:{color:this.options.color},stroke:null});a.append(d)}i+=n}return a}_getBackground(t){const e=this.options,s=e.border||{},i=new A(0,0,t.width,t.height).unpad(s.width/2);return E.w.fromRect(i.toRect(),{fill:{color:e.background},stroke:{color:s.width?s.color:"",width:s.width,dashType:s.dashType}})}_getText(t){const e=this.options.text,s=this._textbox=new Ht(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return s.reflow(this.contentBox),s.renderVisual(),s.visual}_setOptions(t){if(this.type=(t.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",t.value="0"+t.value),"upce"===this.type&&(this.type="ean8",t.value="0"+t.value),!Gf[this.type])throw new Error(`Encoding '${this.type}' is not supported.`);this.encoding=new Gf[this.type],this.options=x({},this.options,t)}},{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var KA=S(53244);const Vi=Object.assign;function Wf(o,t){let e=[],s=0;for(;s<o.length;)e.push(o.substring(s,s+t)),s+=t;return e}function Gt(o,t){let e=Number(o).toString(2);return e.length<t&&(e=new Array(t-e.length+1).join(0)+e),e}function jr(o){return parseInt(o,2)}class qA extends L.A{constructor(t){super(),this.matrix=t,this.row=t.length-1,this.column=t.length-1,this.startColumn=this.column,this.dir=-1,this.c=0}move(){this.row+=this.dir*this.c,this.c^=1,this.column=this.startColumn-this.c}getNextCell(){for(;void 0!==this.matrix[this.row][this.column];)this.move(),(this.row<0||this.row>=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}}getNextRemainderCell(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}}}class Yf extends L.A{constructor(t,e){super(),this.dataString=t,this.version=e}}class JA extends L.A{getEncodingResult(t,e){let s=function OS(o){let e,t=[],s=0,i=o;for(t.push(tm(i,_S,CS,wS,e)),e=t[0].mode,i=i.substr(t[0].modeString.length);i.length>0;){let n=tm(i,AS,SS,kS,e);n.mode!==e?(e=n.mode,t.push(n),s++):t[s].modeString+=n.modeString,i=i.substr(n.modeString.length)}return t}(t),i=function VS(o){let e,t=0;for(let s=0;s<o.length;s++)e=ch[o[s].mode],t+=e.getStringBitsLength(o[s].modeString.length);return Math.ceil(t/8)}(s),n=em(i,e),r=function FS(o,t){let s,e="";for(let i=0;i<o.length;i++)s=ch[o[i].mode],e+=s.encode(o[i].modeString,t);return e}(s,n);return new Yf(r,n)}}class lh extends L.A{constructor(){super(),this.initProperties()}initProperties(){Vi(this,{modeIndicator:"",bitsInCharacterCount:[]})}getVersionIndex(t){return t<10?0:t>26?2:1}getBitsCharacterCount(t){return this.bitsInCharacterCount[this.getVersionIndex(t||40)]}getModeCountString(t,e){return this.modeIndicator+Gt(t,this.getBitsCharacterCount(e))}encode(){}getStringBitsLength(){}getValue(){}}
1const iS="numeric",nS="alphanumeric",oS="byte";let ch={[iS]:new class tS extends lh{initProperties(){super.initProperties(),Vi(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})}getValue(t){return parseInt(t,10)}encode(t,e){let r,i=Wf(t,3),n=this.getModeCountString(t.length,e);for(r=0;r<i.length-1;r++)n+=Gt(i[r],10);return n+Gt(i[r],1+3*i[r].length)}getStringBitsLength(t,e){let s=t%3;return 4+this.getBitsCharacterCount(e)+10*Math.floor(t/3)+3*s+(0===s?0:1)}},[nS]:new class eS extends lh{initProperties(){super.initProperties(),Vi(this,{characters:{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,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010"})}getValue(t){return this.characters[t]}encode(t,e){let n,r,s=Wf(t,2),i=this.getModeCountString(t.length,e);for(r=0;r<s.length-1;r++)n=45*this.getValue(s[r].charAt(0))+this.getValue(s[r].charAt(1)),i+=Gt(n,11);return n=2===s[r].length?45*this.getValue(s[r].charAt(0))+this.getValue(s[r].charAt(1)):this.getValue(s[r].charAt(0)),i+Gt(n,1+5*s[r].length)}getStringBitsLength(t,e){return 4+this.getBitsCharacterCount(e)+11*Math.floor(t/2)+t%2*6}},[oS]:new class sS extends lh{initProperties(){super.initProperties(),Vi(this,{bitsInCharacterCount:[8,16,16],modeIndicator:"0100"})}getValue(t){let e=t.charCodeAt(0);if(e<=127||160<=e&&e<=255)return e;throw new Error(`Unsupported character in QR Code: "${t}".`)}encode(t,e){let s=this,i=s.getModeCountString(t.length,e);for(let n=0;n<t.length;n++)i+=Gt(s.getValue(t.charAt(n)),8);return i}getStringBitsLength(t,e){return 4+this.getBitsCharacterCount(e)+8*t}}};class aS extends L.A{constructor(){super(),this.initProperties(),this.mode=ch[this.encodingMode]}initProperties(){Vi(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})}getEncodingResult(t,e){let s=this.encode(t),n=em(this.getDataCodewordsCount(s),e),r=this.mode.getModeCountString(s.length/8,n)+s;return new Yf(r,n)}getDataCodewordsCount(t){return Math.ceil((this.initialModeCountStringLength+t.length)/8)}encode(t){let e=this.utfBOM;for(let s=0;s<t.length;s++)e+=this.encodeCharacter(t.charCodeAt(s));return e}encodeCharacter(t){let e=this.getBytesCount(t),s=e-1,i="";if(1===e)i=Gt(t,8);else{let n=8-e;for(let r=0;r<s;r++)i=Gt(t>>6*r&63|128,8)+i;i=(t>>6*s|255>>n<<n).toString(2)+i}return i}getBytesCount(t){let e=this.ranges;for(let s=0;s<e.length;s++)if(t<e[s])return s+1}}const Wn
vendor: 12,216 bytes, line 1
1=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}];
1let lS="numeric",Zf="alphanumeric",cS="byte",hh={1:0},ms={0:1},hS={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},dh=[1,0,1,1,1],dS=[1,0,1],uS={L:"01",M:"00",Q:"11",H:"10"},mS=["11101100","00010001"],xS=93,uh=[(o,t)=>(o+t)%2==0,(o,t)=>o%2==0,(o,t)=>t%3==0,(o,t)=>(o+t)%3==0,(o,t)=>(Math.floor(o/2)+Math.floor(t/3))%2==0,(o,t)=>o*t%2+o*t%3==0,(o,t)=>(o*t%2+o*t%3)%2==0,(o,t)=>((o+t)%2+o*t%3)%2==0],vS=/^\d+/,Qf="A-Z0-9 $%*+./:-",bS=new RegExp("^[A-Z $%*+./:-]+"),Kf=new RegExp("^["+Qf+"]+"),qf=new RegExp("^[^"+Qf+"]+"),_S=8,CS=5,wS=8,AS=17,SS=9,kS=16;const ph=[[1,0],[1,25,0]];function Vt(o,t,e,s){for(let i=0;i<o.length;i++)o[i][e][s]=t}function Jf(o,t,e,s){for(let i=0;i<uh.length;i++)o[i][e][s]=uh[i](e,s)?1^t:parseInt(t,10)}function DS(o,t){let e=[];for(let i=o.length-2;i>=0;i--)e[i]=o[i]^t[i];return e}function PS(o,t){let e=[];for(let s=0;s<o.length;s++)for(let i=0;i<t.length;i++)e[s+i]=void 0===e[s+i]?(o[s]+(t[i]>=0?t[i]:0))%255:hh[ms[e[s+i]]^ms[(o[s]+t[i])%255]];return e}function IS(o,t){let e=[],s=o.length-1;do{e[s]=ms[(o[s]+t)%255],s--}while(void 0!==o[s]);return e}function RS(o,t){let a,c,e=ph[t-1],s=new Array(t).concat(o),i=new Array(s.length-e.length).concat(e),n=o.length,r=[];for(c=0;c<n;c++)a=IS(i,hh[s[s.length-1]]),i.splice(0,1),s=DS(a,s);for(c=s.length-1;c>=0;c--)r[t-1-c]=Gt(s[c],8);return r}function tm(o,t,e,s,i){let u,p,n=vS.exec(o),r=n?n[0]:"",a=bS.exec(o),c=a?a[0]:"",h=Kf.exec(o),d=h?h[0]:"";return r&&(r.length>=t||o.length===r.length||r.length>=e&&!Kf.test(o.charAt(r.length)))?(u=lS,p=r):d&&(o.length===d.length||d.length>=s||i===Zf)?(u=Zf,p=r||c):(u=cS,p=d?d+qf.exec(o.substring(d.length))[0]:qf.exec(o)[0]),{mode:u,modeString:p}}function em(o,t){let e=0,s=Wn.length-1,i=Math.floor(Wn.length/2);do{o<Wn[i][t].totalDataCodewords?s=i:e=i,i=e+Math.floor((s-e)/2)}while(s-e>1);return o<=Wn[e][t].totalDataCodewords?i+1:s+1}function sm(o,t,e){let s=jr(t),i=t.length-1,n=o<<i,a=Gt(o,e-i),c=function zS(o,t){let e=t.toString(2).length,s=o.toString(2).length,i=o;do{i^=t<<s-e,s=i.toString(2).length}while(s>=e);return i}(n,s);return c=a+Gt(c,i),c}function Yn(o,t){return parseInt(o.charAt(t),10)}function im(o,t){let s,i,e=o[0],n=0,r=t.length;for(s=0,i=8;s<=8;s++)6!==s&&Vt(o,Yn(t,r-1-n++),s,i);for(s=8,i=7;i>=0;i--)6!==i&&Vt(o,Yn(t,r-1-n++),s,i);for(n=0,i=e.length-1,s=8;i>=e.length-8;i--)Vt(o,Yn(t,r-1-n++),s,i);for(Vt(o,1,e.length-8,8),s=e.length-7,i=8;s<e.length;s++)Vt(o,Yn(t,r-1-n++),s,i)}function nm(o,t){let c,h,d,s=o[0].length,n=s-11,r=s-11;for(let u=0;u<t.length;u++)c=Math.floor(u/3),h=u%3,d=Yn(t,t.length-u-1),Vt(o,d,0+c,n+h),Vt(o,d,r+h,0+c)}function Gr(o,t,e,s){let r,i=t.length+2,n=t.length+1;for(let a=0;a<t.length;a++)for(let c=a;c<i-a;c++)r=t[a],Vt(o,r,e+c,s+a),Vt(o,r,e+a,s+c),Vt(o,r,e+n-c,s+n-a),Vt(o,r,e+n-a,s+n-c)}function gh(o,t,e,s){let i=e,n=s,r=o[0];do{Vt(o,0,i,s),Vt(o,0,e,n),i+=t[0],n+=t[1]}while(i>=0&&i<r.length)}function om(o,t,e,s,i){t[o][s]=(t[o][s]<<1^i)%128,t[o][s]===xS&&(e[o]+=40)}function rm(o,t,e,s,i,n){e[o][n]===s?i[o][n]++:(e[o][n]=s,i[o][n]>=5&&(t[o]+=3+i[o][n]-5),i[o][n]=1)}function YS(o,t){let e=Math.floor(o/t*100),s=e%5,i=Math.abs(e-s-50),n=Math.abs(e+5-s-50);return 10*Math.min(i/5,n/5)}(function ES(){let o,t;for(t=1;t<255;t++)o=2*ms[t-1],o>255&&(o^=285),ms[t]=o,hh[o]=t;o=2*ms[t-1]^285,ms[t]=o,ms[-1]=0})(),function LS(){for(let t=2;t<=68;t++)ph[t]=PS(ph[t-1],[t,0])}();const $n=Math.round,QS=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],am=[[0,1],[1,1],[1,0]];w(class KS extends L.A{constructor(t,e,s=Hd){super(),this.options=x({},this.options,e),this.element=t,this.wrapper=this.element,this.onError=s,this._initElement(),this._initSurface(),this.setOptions(e)}destroy(){this._destroySurface()}_initElement(){gt(this.element,"k-qrcode")}_initSurface(){const{options:t,surface:e}=this;(!e||e.options.type!==t.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}_createSurface(){return Ii.A.create(this.surfaceElement,{type:this.options.renderAs})}_destroySurface(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}_initSurfaceElement(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}_destroySurfaceElement(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}redraw(){let t=this._getSize();this.surface.clear(),this.surface.setSize({width:t,height:t}),this.createVisual(),this.surface.draw(this.visual)}getSize(){const t=this.element,e=t.clientWidth,s=t.clientHeight,i={width:0,height:0};return e>0&&(i.width=e),s&&(i.height=s),i}_resize(){this.redraw()}createVisual(){this.visual=this._render()}
1exportVisual(){return this._render()}_render(){let e,r,a,c,h,d,t=this._value,s=this.options.border||{},i=this.options.padding||0,n=s.width||0;s.width=n;let u=new et.A;try{t&&(a=function ZS(o,t,e){let s=function $S(o){return o&&o.toLowerCase().indexOf("utf_8")>=0?new aS:new JA}(e),i=s.getEncodingResult(o,t),n=i.version,r=Wn[n-1][t],a=function MS(o,t){let e=8*t,s=0,i=0,n=o;for(;n.length<e&&s<4;)n+="0000".charAt(s++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<e;)n+=mS[i],i^=1;return n}(i.dataString,r.totalDataCodewords),c=function BS(o,t){let n,a,c,h,d,e=0,s=[],i=[],r=t.groups;for(let u=0;u<r.length;u++){c=r[u][0];for(let p=0;p<c;p++){a=r[u][1],n=[],h=[];for(let f=1;f<=a;f++)d=o.substring(e,e+8),n.push(d),h[a-f]=jr(d),e+=8;s.push(n),i.push(RS(h,t.errorCodewordsPerBlock))}}return[s,i]}(a,r),h=function US(o){let t=[],e=17+4*o;for(let s=0;s<uh.length;s++){t[s]=new Array(e);for(let i=0;i<e;i++)t[s][i]=new Array(e)}return t}(n);(function jS(o){let t=o[0].length;Gr(o,dh,0,0),gh(o,[-1,-1],7,7),Gr(o,dh,t-7,0),gh(o,[1,-1],t-8,7),Gr(o,dh,0,t-7),gh(o,[-1,1],7,t-8)})(h),function GS(o,t){if(t<2)return;let r,a,e=o[0],s=e.length,i=Math.floor(t/7),n=[6],c=0;for((r=hS[t])?a=(s-13-r)/i:r=a=(s-13)/(i+1),n.push(n[c++]+r);n[c]+a<s;)n.push(n[c++]+a);for(let h=0;h<n.length;h++)for(let d=0;d<n.length;d++)void 0===e[n[h]][n[d]]&&Gr(o,dS,n[h]-2,n[d]-2)}(h,n),function XS(o){let s=1,i=o[0].length;for(let n=8;n<i-8;n++)Vt(o,s,6,n),Vt(o,s,n,6),s^=1}(h),n>=7&&nm(h,Gt(0,18)),im(h,Gt(0,15)),function TS(o,t){let s,i,n,e=new qA(o[0]);for(let r=0;r<t.length;r++)for(s=t[r],i=0;s.length>0;){for(let a=0;a<s.length;a++)for(let c=0;c<8;c++)n=e.getNextCell(),Jf(o,s[a][i].charAt(c),n.row,n.column);for(i++;s[0]&&i===s[0].length;)s.splice(0,1)}for(;n=e.getNextRemainderCell();)Jf(o,0,n.row,n.column)}(h,c);let d=function WS(o){let r,a,t=[],e=[],s=[],i=[],n=[],d=o[0].length;for(a=0;a<o.length;a++)t[a]=0,s[a]=0,n[a]=[0,0],i[a]=[0,0],e[a]=[];for(let g=0;g<d;g++)for(let m=0;m<d;m++)for(let v=0;v<o.length;v++)r=o[v],s[v]+=parseInt(r[g][m],10),e[v][0]===r[g][m]&&g+1<d&&m-1>=0&&r[g+1][m]===e[v][0]&&r[g+1][m-1]===e[v][0]&&(t[v]+=3),om(v,i,t,0,r[g][m]),om(v,i,t,1,r[m][g]),rm(v,t,e,r[g][m],n,0),rm(v,t,e,r[m][g],n,1);let p,u=d*d,f=Number.MAX_VALUE;for(a=0;a<t.length;a++)t[a]+=YS(s[a],u),t[a]<f&&(f=t[a],p=a);return p}(h),u=h[d];return n>=7&&nm([u],function HS(o){return sm(o,"1111100100101",18)}(n)),im([u],function NS(o){let e,s="";if(0===jr(o))return"101010000010010";e=sm(jr(o),"10100110111",15);for(let i=0;i<e.length;i++)s+=e.charAt(i)^"101010000010010".charAt(i);return s}(uS[t]+Gt(d,3))),u}(t,this.options.errorCorrection,this.options.encoding),c=this._getSize(),d=c-2*(n+i),e=this._calculateBaseUnit(d,a.length),h=a.length*e,r=n+i+(d-h)/2,u.append(this._renderBackground(c,s)),u.append(this._renderMatrix(a,e,r)),this._hasCustomLogo()?u.append(this._renderLogo(c,e)):this._isSwiss()&&u.append(this._renderSwissCode(c,e)))}catch(p){this.onError(p)}return u}_renderLogo(t,e){let s,i,n=$n(t/2),r=this._getLogoSize(7*e),a=this.options.overlay.imageUrl,c={x:n-r.width/2,y:n-r.height/2};return i=new wt.A(new H.A(c.x,c.y),new Ic.A(r.width,r.height)),s=new KA.A(a,i),s}_renderSwissCode(t,e){let s=this._getLogoSize(7*e);s=Math.max(s.width,s.height);let i=s/4,n=i/2,r=t/2,a={},c=new et.A;return a.x=a.y=Math.ceil(r-e-s/2),c.append(this._renderShape(a,Math.ceil(s+2*e),am,"#fff")),a.x=a.y=r-s/2,c.append(this._renderShape(a,s,am,this.options.color)),a.x=r+n-s/2,a.y=r+n+i-s/2,c.append(this._renderShape(a,i,QS,"#fff")),c}_renderShape(t,e,s,i){let n=new E.P({fill:{color:i},stroke:null});n.moveTo(t.x,t.y);for(let r=0;r<s.length;r++)n.lineTo(t.x+e*s[r][0],t.y+e*s[r][1]);return n.close(),n}_getSize(){let t;if(this.options.size)t=parseInt(this.options.size,10);else{const s=Xf(this.element,this.options.renderAs),i=Math.min(s.width,s.height);t=i>0?i:200}return t}_calculateBaseUnit(t,e){let s=Math.floor(t/e);if(s<1){const i=Math.ceil(1*e);this.onError(new Error(`Insufficient size for QR Code: the current size is ${t}px and the minimum size is ${i}px.`))}else s*e>=t&&s-1>=1&&s--;return s}_renderMatrix(t,e,s){let i=new E.P({fill:{color:this.options.color},stroke:null});for(let n=0;n<t.length;n++){let r=s+n*e,a=0;for(;a<t.length;){for(;0===t[n][a]&&a<t.length;)a++;if(a<t.length){let c=a;for(;1===t[n][a];)a++;let h=$n(s+c*e),d=$n(r),u=$n(s+a*e),p=$n(r+e);i.moveTo(h,d).lineTo(h,p).lineTo(u,p).lineTo(u,d).close()}}}return i}
1_renderBackground(t,e){const s=new A(0,0,t,t).unpad(e.width/2);return E.w.fromRect(s.toRect(),{fill:{color:this.options.background},stroke:{color:e.color,width:e.width}})}setOptions(t){this.options=Vi(this.options,t||{}),void 0!==t.value&&(this._value=String(this.options.value)),this._initSurface(),this.redraw()}value(t){if(void 0===t)return this._value;this._value=String(t),this.redraw()}_hasCustomLogo(){return!!this.options.overlay.imageUrl}_isSwiss(){return"swiss"===this.options.overlay.type}_getLogoSize(t){let e=this.options.overlay.width,s=this.options.overlay.height;return e||s?e&&!s?s=e:!e&&s&&(e=s):e=s=t,{width:e,height:s}}},{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:"L",background:"#fff",color:"#000",size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});const fh={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function Se(o){return o*o}let xs=Math,JS=xs.abs,lm=xs.atan,Xr=xs.atan2,vs=xs.cos,Ze=xs.sin,cm=xs.tan;class at extends L.A{constructor(t,e){super(),this.initProperties(),1===arguments.length?(this.lat=t[0],this.lng=t[1]):(this.lat=t,this.lng=e)}initProperties(){x(this,{DISTANCE_ITERATIONS:100,DISTANCE_CONVERGENCE:1e-12,DISTANCE_PRECISION:2,FORMAT:"{0:N6}{1:N6}"})}toArray(){return[this.lat,this.lng]}equals(t){return t&&t.lat===this.lat&&t.lng===this.lng}clone(){return new at(this.lat,this.lng)}round(t){return this.lng=k(this.lng,t),this.lat=k(this.lat,t),this}wrap(){return this.lng=this.lng%180,this.lat=this.lat%90,this}distanceTo(t,e){return this.greatCircleTo(t,e).distance}destination(t,e,s){let i=Ct(e),n=s||fh.WGS84,r=Ct(this.lat),a=Ct(this.lng),c=t/n.a,h=xs.asin(Ze(r)*vs(c)+vs(r)*Ze(c)*vs(i)),d=a+Xr(Ze(i)*Ze(c)*vs(r),vs(c)-Ze(r)*Ze(h));return new at(ss(h),ss(d))}greatCircleTo(t,e){let s=at.create(s),i=e||fh.WGS84;if(!s||this.clone().round(8).equals(s.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};let v,M,R,B,st,Z,Q,xt,n=i.a,r=i.b,a=i.f,c=Ct(s.lng-this.lng),h=lm((1-a)*cm(Ct(this.lat))),d=Ze(h),u=vs(h),p=lm((1-a)*cm(Ct(s.lat))),f=Ze(p),g=vs(p),m=c,y=this.DISTANCE_ITERATIONS,C=!1;for(;!C&&y-- >0;){M=Ze(m),R=vs(m),B=xs.sqrt(Se(g*M)+Se(u*f-d*g*R)),Z=d*f+u*g*R,xt=Xr(B,Z);let ut=u*g*M/B;st=1-Se(ut),Q=0,0!==st&&(Q=Z-2*d*f/st),v=m;let Mt=a/16*st*(4+a*(4-3*st));m=c+(1-Mt)*a*ut*(xt+Mt*B*(Q+Mt*Z*(2*Se(Q)-1))),C=JS(m-v)<=this.DISTANCE_CONVERGENCE}let lt=st*(Se(n)-Se(r))/Se(r),qt=1+lt/16384*(4096+lt*(lt*(320-175*lt)-768)),fe=lt/1024*(256+lt*(lt*(74-47*lt)-128)),Do=fe*B*(Q+fe/4*(Z*(2*Se(Q)-1)-fe/6*Q*(4*Se(B)-3)*(4*Se(Q)-3))),Po=Xr(g*M,u*f-d*g*R),J=Xr(u*M,-d*g+u*f*R);return{distance:k(r*qt*(xt-Do),this.DISTANCE_PRECISION),azimuthFrom:ss(Po),azimuthTo:ss(J)}}toString(){return String(this.lat)+","+String(this.lng)}static fromLngLat(t){return new at(t[1],t[0])}static fromLatLng(t){return new at(t[0],t[1])}static create(t,e){if(_(t))return t instanceof at?t.clone():1===arguments.length&&2===t.length?at.fromLatLng(t):new at(t,e)}}let ys=Math,mh=ys.atan,hm=ys.exp,dm=ys.pow,um=ys.sin,pm=ys.log,gm=ys.tan,fm=H.A,Wr=ys.PI,xh=Wr/2,mm=Wr/4,tk=Wr/180,ek=fh.WGS84;
1class vh extends L.A{constructor(t){super(),this.initProperties(),this._initOptions(t)}_initOptions(t){this.options=x({},this.options,t)}initProperties(){x(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})}forward(t,e){let s=this,i=s.options,r=i.datum.a,a=i.centralMeridian,c=I(t.lat,-s.MAX_LAT,s.MAX_LAT),h=e?I(t.lng,-s.MAX_LNG,s.MAX_LNG):t.lng,d=Ct(h-a)*r,u=s._projectLat(c);return new fm(d,u)}_projectLat(t){let e=this.options.datum,s=e.e,i=e.a,n=Ct(t),r=gm(mm+n/2),a=s*um(n),c=dm((1-a)/(1+a),s/2);return i*pm(r*c)}inverse(t,e){let s=this,i=s.options,c=t.x/(tk*i.datum.a)+i.centralMeridian,h=I(s._inverseY(t.y),-s.MAX_LAT,s.MAX_LAT);return e&&(c=I(c,-s.MAX_LNG,s.MAX_LNG)),new at(h,c)}_inverseY(t){let h,e=this,s=e.options.datum,n=s.e,r=n/2,a=hm(-t/s.a),c=xh-2*mh(a);for(h=0;h<=e.INVERSE_ITERATIONS;h++){let d=n*um(c),u=dm((1-d)/(1+d),r),p=xh-2*mh(a*u)-c;if(c+=p,ys.abs(p)<=e.INVERSE_CONVERGENCE)break}return ss(c)}}w(vh,{centralMeridian:0,datum:ek});class sk extends vh{initProperties(){super.initProperties(),x(this,{MAX_LAT:85.0511287798})}_projectLat(t){let e=this.options.datum.a,s=Ct(t),i=gm(mm+s/2);return e*pm(i)}_inverseY(t){let s=hm(-t/this.options.datum.a);return ss(xh-2*mh(s))}}class nk extends L.A{constructor(){super();let e=this._proj=new sk,s=this.c=2*Wr*e.options.datum.a;this._tm=vt.A().translate(.5,.5).scale(1/s,-1/s),this._itm=vt.A().scale(s,-s).translate(-.5,-.5)}toPoint(t,e,s){return this._proj.forward(t,s).transform(this._tm).scale(e||1)}toLocation(t,e,s){let i=t.clone().scale(1/(e||1)).transform(this._itm);return this._proj.inverse(i,s)}}const yt=(o,t)=>o.bind(t);let Gs=o=>{const t=document.createElement("div");return t.innerHTML=o,t.firstChild},Zn=o=>{for(;o.firstChild;)o.removeChild(o.firstChild)},xm=(o,t)=>{t.insertBefore(o,t.firstChild)},vm=o=>o.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()}),ym=o=>{let t;return t=o&&String(o).endsWith("px")?o:String(o)+"px",t};const Yr=(o,t)=>{const e=o.prototype;e.events?t.forEach(s=>{e.events.indexOf(s)<0&&e.events.push(s)}):e.events=t},bm=o=>{let t=[];if(o){let e=vm(o).split("-");for(let s=0;s<e.length;s++)t.push("k-pos-"+e[s])}return t.join(" ")};class _m extends ee{constructor(t,e){super(),this.element=t,this._initOptions(e),this.items=[],gt(this.element,"k-widget k-attribution")}_initOptions(t){this.options=x({},this.options,t)}filter(t,e){this._extent=t,this._zoom=e,this._render()}add(t){let e=t;_(t)&&("string"==typeof t&&(e={text:t}),this.items.push(e),this._render())}remove(t){let e=[];for(let s=0;s<this.items.length;s++){let i=this.items[s];i.text!==t&&e.push(i)}this.items=e,this._render()}clear(){this.items=[],Zn(this.element)}_render(){let t=[];for(let e=0;e<this.items.length;e++){let i=this._itemText(this.items[e]);""!==i&&t.push(i)}t.length>0?(Zn(this.element),((o,t)=>{const e=document.createElement("div");for(e.innerHTML=o;e.childNodes.length>0;)t.appendChild(e.childNodes[0])})(t.join(this.options.separator),this.element),this.showElement()):this.hideElement()}hideElement(){this.element.style.display="none"}showElement(){this.element.style.display=""}_itemText(t){let e="",s=this._inZoomLevel(t.minZoom,t.maxZoom),i=this._inArea(t.extent);return s&&i&&(e+=t.text),e}_inZoomLevel(t,e){let s=!0,i=O(t,-Number.MAX_VALUE),n=O(e,Number.MAX_VALUE);return s=this._zoom>i&&this._zoom<n,s}_inArea(t){let e=!0;return t&&(e=t.contains(this._extent)),e}}w(_m,{name:"Attribution",separator:" | "});const ck={up:{className:"k-navigator-n",iconClass:"k-i-caret-alt-up"},down:{className:"k-navigator-s",iconClass:"k-i-caret-alt-down"},right:{className:"k-navigator-e",iconClass:"k-i-caret-alt-right"},left:{className:"k-navigator-w",iconClass:"k-i-caret-alt-left"}};function $r(o,t){const e='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+ck[o].className+'" aria-label="move '+o+'">'+ai({icon:`caret-alt-${o}`,iconClass:"k-button-icon",svgIcons:t.svgIcons,type:t.type})+"</button>";return Gs(e)}class yh extends ee{constructor(t,e){super(),this.element=t,this._initOptions(e);const s=$r("up",e.icons),i=$r("right",e.icons),n=$r("down",e.icons),r=$r("left",e.icons);this.element.appendChild(s),this.element.appendChild(i),this.element.appendChild(n),this.element.appendChild(r),gt(this.element,"k-widget k-navigator"),Ut(this.element,"click",".k-button",yt(this._click,this));let a=this.element.parentNode.closest("[data-role]");this._keyroot=a||this.element,this._tabindex(this._keyroot),this._key
1downHandler=yt(this._keydown,this),Ut(this._keyroot,"keydown",this._keydownHandler)}destroy(){this.dispose()}dispose(){$t(this._keyroot,"keydown",this._keydownHandler)}_tabindex(t){const e=t||this.wrapper||this.element;let s=this.element,i="tabindex",n=e.getAttribute(i)||s.getAttribute(i);s.removeAttribute(i),e.setAttribute(i,isNaN(n)?0:n)}_initOptions(t){this.options=x({},this.options,t)}_pan(t,e){let s=this.options.panStep;this.trigger("pan",{x:t*s,y:e*s})}_click(t){let e=0,s=0,i=t.currentTarget;i.matches(".k-navigator-n")?s=1:i.matches(".k-navigator-s")?s=-1:i.matches(".k-navigator-e")?e=1:i.matches(".k-navigator-w")&&(e=-1),this._pan(e,s),t.preventDefault()}_keydown(t){switch(t.which){case 38:this._pan(0,1),t.preventDefault();break;case 40:this._pan(0,-1),t.preventDefault();break;case 39:this._pan(1,0),t.preventDefault();break;case 37:this._pan(-1,0),t.preventDefault()}}}function wm(o,t,e){const s='<button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-zoom-'+o+'" title="zoom-'+o+'" aria-label="zoom-'+o+'">'+ai({icon:t,iconClass:"k-button-icon",svgIcons:e.svgIcons,type:e.type})+"</button>";return Gs(s)}w(yh,{name:"Navigator",panStep:1}),Yr(yh,["pan"]);class bh extends ee{constructor(t,e,s){super(),this.element=t,this._initOptions(e);const i=wm("in","plus",s),n=wm("out","minus",s);this.element.appendChild(i),this.element.appendChild(n),this.element.setAttribute("role","group"),gt(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),Ut(this.element,"click",".k-button",this._clickHandler);let r=this.element.parentNode.closest("[data-role]");this._keyroot=r||this.element,this._tabindex(this._keyroot),this._key
1downHandler=this._keydown.bind(this),Ut(this._keyroot,"keydown",this._keydownHandler)}destroy(){this.element&&$t(this.element,"click",this._clickHandler),this._keyroot&&$t(this._keyroot,"keydown",this._keydownHandler)}_tabindex(t){const e=t||this.wrapper||this.element;let s=this.element,i="tabindex",n=e.getAttribute(i)||s.getAttribute(i);s.removeAttribute(i),e.setAttribute(i,isNaN(n)?0:n)}_initOptions(t){this.options=x({},this.options,t)}_change(t){this.trigger("change",{delta:t*this.options.zoomStep})}_click(t){let s=1;Fo(t.currentTarget,"k-zoom-out")&&(s=-1),this._change(s),t.preventDefault()}_keydown(t){switch(t.which){case 107:case 187:case 61:this._change(1);break;case 109:case 189:case 173:this._change(-1)}}}w(bh,{name:"ZoomControl",zoomStep:1}),Yr(bh,["change"]);let Sm=Math,km=Sm.max,Tm=Sm.min;class Qe extends L.A{constructor(t,e){super();let s=at.create(t),i=at.create(e);s.lng+180>i.lng+180&&s.lat+90<i.lat+90?(this.se=s,this.nw=i):(this.se=i,this.nw=s)}contains(t){let e=this.nw,s=this.se,i=O(t.lng,t[1]),n=O(t.lat,t[0]);return t&&i+180>=e.lng+180&&i+180<=s.lng+180&&n+90>=s.lat+90&&n+90<=e.lat+90}center(){let t=this.nw,e=this.se;return new at(t.lat+(e.lat-t.lat)/2,t.lng+(e.lng-t.lng)/2)}containsAny(t){let e=!1;for(let s=0;s<t.length;s++)e=e||this.contains(t[s]);return e}include(t){let e=this.nw,s=this.se,i=O(t.lng,t[1]),n=O(t.lat,t[0]);e.lng=Tm(e.lng,i),e.lat=km(e.lat,n),s.lng=km(s.lng,i),s.lat=Tm(s.lat,n)}includeAll(t){for(let e=0;e<t.length;e++)this.include(t[e])}edges(){let t=this.nw,e=this.se;return{nw:this.nw,ne:new at(t.lat,e.lng),se:this.se,sw:new at(e.lat,t.lng)}}toArray(){let t=this.nw,e=this.se;return[t,new at(t.lat,e.lng),e,new at(e.lat,t.lng)]}overlaps(t){return this.containsAny(t.toArray())||t.containsAny(this.toArray())}static create(t,e){return t instanceof Qe?t:t&&e?new Qe(t,e):t&&4===t.length&&!e?new Qe([t[0],t[1]],[t[2],t[3]]):void 0}static get World(){return new Qe([90,-180],[-90,180])}}const Mm="centerChange";class Em extends L.A{constructor(t,e){super(),this.widgetService=t,this.options=x({},this.options,e),this.offset={x:0,y:0}}show(t,e){this.location!==e.location&&(this.anchor=t,this.location=e.location,this.widgetService.notify("showTooltip",Object.assign({anchor:this.anchor},e)),this.visible=!0)}hide(){this.widgetService&&this.widgetService.notify("hideTooltip"),this.visible=!1,this.location=null}get anchor(){return this._anchor}set anchor(t){const e=this.widgetService.widget._toDocumentCoordinates({x:t.left-this.offset.x,y:t.top-this.offset.y});this._anchor={left:e.left,top:e.top}}destroy(){this.widgetService=null}}w(Em,{border:{width:1},opacity:1});class _h extends L.A{constructor(t,e){super(),this.support=hn(),this._initOptions(e),this.map=t;let s=document.createElement("div");gt(s,"k-layer"),s.style.zIndex=this.options.zIndex,s.style.opacity=this.options.opacity,this.element=s,t.scrollElement.appendChild(this.element),this._beforeReset=this._beforeReset.bind(this),this._reset=this._reset.bind(this),this._resize=this._resize.bind(this),this._panEnd=this._panEnd.bind(this),this._activate(),this._updateAttribution()}destroy(){this._deactivate()}_initOptions(t){this.options=x({},this.options,t)}show(){this.reset(),this._activate(),this._applyExtent(!0)}hide(){this._deactivate(),this._setVisibility(!1)}reset(){this._beforeReset(),this._reset()}_reset(){this._applyExtent()}_beforeReset(){}_resize(){}_panEnd(){this._applyExtent()}_applyExtent(){let t=this.options,e=this.map.zoom(),s=!_(t.minZoom)||e>=t.minZoom,i=!_(t.maxZoom)||e<=t.maxZoom,n=Qe.create(t.extent),r=!n||n.overlaps(this.map.extent());this._setVisibility(s&&i&&r)}_setVisibility(t){this.element.style.display=t?"":"none"}_activate(){let t=this.map;this._deactivate(),t.bind("beforeReset",this._beforeReset),t.bind("reset",this._reset),t.bind("resize",this._resize),t.bind("panEnd",this._panEnd)}_deactivate(){let t=this.map;t.unbind("beforeReset",this._beforeReset),t.unbind("reset",this._reset),t.unbind("resize",this._resize),t.unbind("panEnd",this._panEnd)}_updateAttribution(){const t=this.map.attribution;t&&t.add(this.options.attribution)}_readData(){return this.options.data||[]}_hasData(){return this._data&&this._data.length>0}_layerIndex(){return(this.map.layers||[]).indexOf(this)}}let bs=Math,Ch=H.A;function Dm(o){return ct(o)?o:Vo.compile(o)}
vendor: 11,778 bytes, line 1
1function Pm(o){let t=o;return"string"!=typeof o&&(t+="px"),t}class Lm extends _h{constructor(t,e){super(t,e),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));let s=this._viewType();this._view=new s(this.element,this.options)}destroy(){super.destroy(),this._view.destroy(),this._view=null}_beforeReset(){let t=this.map,e=t.locationToLayer(t.extent().nw).round();this._view.viewOrigin(e)}_reset(){super._reset(),this._updateView(),this._view.reset()}_viewType(){return yk}_activate(){super._activate(),this.support.mobileOS||(this._pan||(this._pan=(0,Pc.A)(this._render.bind(this),100)),this.map.bind("pan",this._pan))}_deactivate(){super._deactivate(),this._pan&&this.map.unbind("pan",this._pan)}_updateView(){let t=this._view,e=this.map,s=e.extent(),i={nw:e.locationToLayer(s.nw).round(),se:e.locationToLayer(s.se).round()};t.center(e.locationToLayer(e.center())),t.extent(i),t.zoom(e.zoom())}_resize(){this._render()}_panEnd(t){super._panEnd(t),this._render()}_render(){this._updateView(),this._view.render()}}w(Lm,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});class yk extends L.A{constructor(t,e){super(),this.element=t,this._initOptions(e),this.pool=new Rm}_initOptions(t){this.options=x({},this.options,t)}center(t){this._center=t}extent(t){this._extent=t}viewOrigin(t){this._viewOrigin=t}zoom(t){this._zoom=t}pointToTileIndex(t){return new Ch(bs.floor(t.x/this.options.tileSize),bs.floor(t.y/this.options.tileSize))}tileCount(){let t=this.size(),e=this.pointToTileIndex(this._extent.nw),s=this._extent.nw,i=this.indexToPoint(e).translate(-s.x,-s.y);return{x:bs.ceil((bs.abs(i.x)+t.width)/this.options.tileSize),y:bs.ceil((bs.abs(i.y)+t.height)/this.options.tileSize)}}size(){let t=this._extent.nw,s=this._extent.se.clone().translate(-t.x,-t.y);return{width:s.x,height:s.y}}indexToPoint(t){return new Ch(t.x*this.options.tileSize,t.y*this.options.tileSize)}subdomainText(){let t=this.options.subdomains;return t[this.subdomainIndex++%t.length]}destroy(){Zn(this.element),this.pool.empty()}reset(){this.pool.reset(),this.subdomainIndex=0,this.render()}render(){let s,i,n,t=this.tileCount(),e=this.pointToTileIndex(this._extent.nw);for(i=0;i<t.x;i++)for(n=0;n<t.y;n++)s=this.createTile({x:e.x+i,y:e.y+n}),s.visible||s.show()}createTile(t){let e=this.tileOptions(t),s=this.pool.get(this._center,e);return s.element.parentNode||this.element.append(s.element),s}tileOptions(t){let e=this.wrapIndex(t),s=this.indexToPoint(t),i=this._viewOrigin,n=s.clone().translate(-i.x,-i.y);return{index:e,currentIndex:t,point:s,offset:(o=n,new Ch(k(o.x),k(o.y))),zoom:this._zoom,size:this.options.tileSize,subdomain:this.subdomainText(),urlTemplate:this.options.urlTemplate,errorUrlTemplate:this.options.errorUrlTemplate};var o}wrapIndex(t){let e=bs.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:I(t.y,0,e-1)}}wrapValue(t,e){let s=bs.abs(t)%e,i=t;return i=t>=0?s:e-(0===s?e:s),i}}class Im extends L.A{constructor(t,e){super(),this.id=t,this.visible=!0,this._initOptions(e),this.createElement(),this.show()}destroy(){const t=this.element,e=t?t.parentNode:null;t&&(e&&e.removeChild(t),this.element=null)}_initOptions(t){this.options=x({},this.options,t)}createElement(){let t=document.createElement("img");const e=this.options.size+"px";t.setAttribute("alt",""),t.style.position="absolute",t.style.display="block",t.style.width=t.style.maxWidth=e,t.style.height=t.style.maxHeight=e,this.element=t}show(){let t=this.element;t.style.top=Pm(this.options.offset.y),t.style.left=Pm(this.options.offset.x);let e=this.url();e&&t.setAttribute("src",e),t.style.visibility="visible",this.visible=!0}hide(){this.element.style.visibility="hidden",this.visible=!1}url(){return Dm(this.options.urlTemplate)(this.urlOptions())}errorUrl(){return Dm(this.options.errorUrlTemplate)(this.urlOptions())}urlOptions(){let t=this.options;return{zoom:t.zoom,subdomain:t.subdomain,z:t.zoom,x:t.index.x,y:t.index.y,s:t.subdomain,quadkey:t.quadkey,q:t.quadkey,culture:t.culture,c:t.culture}}}w(Im,{urlTemplate:"",errorUrlTemplate:""});class Rm extends L.A{constructor(){super(),this._items=[]}get(t,e){return this._items.length>=this.options.maxSize&&this._remove(t),this._create(e)}empty(){let t=this._items;for(let e=0;e<t.length;e++)t[e].destroy();this._items=[]}reset(){let t=this._items;for(let e=0;e<t.length;e++)t[e].hide()}_create(t){let s,e=this._items,i=Ty(t.point.toString()+t.offset.toString()+t.zoom+t.urlTemplate);for(let n=0;n<e.length;n++)if(e[n].id===i){s=e[n];break}return s?s.show():(s=new Im(i,t),this._items.push(s)),s}_remove(t){let e=this._items,s=-1,i=-1;for(let n=0;n<e.length;n++){let r=e[n].options.point.distanceTo(t);r>s&&!e[n].visible&&(i=n,s=r)}-1!==i&&(e[i].destroy(),e.splice(i,1))}}w(Rm,{maxSize:100});const Xs=Object.assign,Qn="change";class bk extends ee{constructor(t,e){super();let s=this,i=t[0]||t;s.capture=!1,i.addEventListener?(ci.down.split(" ").forEach(function(n){i.addEventListener(n,yt(s._press,s),!0)}),ci.up.split(" ").forEach(function(n){i.addEventListener(n,yt(s._release,s),!0)})):(ci.down.split(" ").forEach(function(n){i.attachEvent(n,yt(s._press,s))}),ci.up.split(" ").forEach(function(n){i.attachEvent(n,yt(s._release,s))})),s.bind(["press","release"],e||{})}captureNext(){this.capture=!0}cancelCapture(){this.capture=!1}_press(t){this.trigger("press"),this.capture&&t.preventDefault()}_release(t){let e=this;e.trigger("release"),e.capture&&(t.preventDefault(),e.cancelCapture())}}class Bm extends ee{constructor(t){super();let e=this;e.forcedEnabled=!1,Xs(e,t),e.scale=1,e.horizontal?(e.measure="offsetWidth",e.scrollSize="scrollWidth",e.axis="x"):(e.measure="offsetHeight",e.scrollSize="scrollHeight",e.axis="y")}makeVirtual(){Xs(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})}virtualSize(t,e){(this._virtualMin!==t||this._virtualMax!==e)&&(this._virtualMin=t,this._virtualMax=e,this.update())}outOfBounds(t){return t>this.max||t<this.min}forceEnabled(){this.forcedEnabled=!0}getSize(){return this.container[this.measure]}getTotal(){return this.element[this.scrollSize]}rescale(t){this.scale=t}update(t){let e=this,s=e.virtual?e._virtualMax:e.getTotal(),i=s*e.scale,n=e.getSize();0===s&&!e.forcedEnabled||(e.max=e.virtual?-e._virtualMin:0,e.size=n,e.total=i,e.min=Math.min(e.max,n-i),e.minScale=n/s,e.centerOffset=(i-n)/2,e.enabled=e.forcedEnabled||i>n,t||e.trigger(Qn,e))}}class _k extends ee{constructor(t){super();let e=this;e.x=new Bm(Xs({horizontal:!0},t)),e.y=new Bm(Xs({horizontal:!1},t)),e.container=t.container,e.forcedMinScale=t.minScale,e.maxScale=t.maxScale||100,e.bind(Qn,t)}rescale(t){this.x.rescale(t),this.y.rescale(t),this.refresh()}centerCoordinates(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}}refresh(){let t=this;t.x.update(),t.y.update(),t.enabled=t.x.enabled||t.y.enabled,t.minScale=t.forcedMinScale||Math.min(t.x.minScale,t.y.minScale),t.fitScale=Math.max(t.x.minScale,t.y.minScale),t.trigger(Qn)}}class Om extends ee{constructor(t){super(),Xs(this,t)}outOfBounds(){return this.dimension.outOfBounds(this.movable[this.axis])}dragMove(t){let e=this,s=e.dimension,i=e.axis,n=e.movable,r=n[i]+t;if(!s.enabled)return;let a=t;(r<s.min&&t<0||r>s.max&&t>0)&&(a*=e.resistance),n.translateAxis(i,a),e.trigger(Qn,e)}}class Ck extends L.A{constructor(t){super();let s,i,n,r,e=this;Xs(e,{elastic:!0},t),n=e.elastic?.5:0,r=e.movable,e.x=s=new Om({axis:"x",dimension:e.dimensions.x,resistance:n,movable:r}),e.y=i=new Om({axis:"y",dimension:e.dimensions.y,resistance:n,movable:r}),e.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart(a){e.gesture=a,e.offset=ri(e.dimensions.container)},press(a){const c=a.event.target.closest("a");c&&c.matches("[data-navigate-on-press=true]")&&a.sender.cancel()},gesturechange(a){let g,c=e.gesture,h=c.center,d=a.center,u=a.distance/c.distance,f=e.dimensions.maxScale;r.scale<=e.dimensions.minScale&&u<1&&(u+=.8*(1-u)),r.scale*u>=f&&(u=f/r.scale);let m=r.x+e.offset.left,v=r.y+e.offset.top;g={x:(m-h.x)*u+d.x-m,y:(v-h.y)*u+d.y-v},r.scaleWith(u),s.dragMove(g.x),i.dragMove(g.y),e.dimensions.rescale(r.scale),e.gesture=a,a.preventDefault()},move(a){a.event.target.tagName.match(/textarea|input/i)||(s.dimension.enabled||i.dimension.enabled?(s.dragMove(a.x.delta),i.dragMove(a.y.delta),a.preventDefault()):a.touch.skip())},end(a){a.preventDefault()}})}}let Vm=function(o,t,e){return"translate3d("+o+"px,"+t+"px,0) scale("+e+")"};class wh extends ee{constructor(t){super();let e=this;e.element=t,e.element.style.transformOrigin="left top",e.x=0,e.y=0,e.scale=1;const s=Vm(e.x,e.y,e.scale);e.element.style.transform=s,e._saveCoordinates(s)}translateAxis(t,e){this[t]+=e,this.refresh()}scaleTo(t){this.scale=t,this.refresh()}scaleWith(t){this.scale*=t,this.refresh()}translate(t){this.x+=t.x,this.y+=t.y,this.refresh()}moveAxis(t,e){this[t]=e,this.refresh()}moveTo(t){Xs(this,t),this.refresh()}refresh(){let i,t=this,e=t.x,s=t.y;t.round&&(e=Math.round(e),s=Math.round(s)),i=Vm(e,s,t.scale),i!==t.coordinates&&(t.element.style.transform=i,t._saveCoordinates(i),t.trigger(Qn))}_saveCoordinates(t){this.coordinates=t}}const Ah=et.A;class Sh extends _h{constructor(t,e){super(t,e),this._pan=yt(this._pan,this),this.surface=Ii.A.create(this.element,{width:t.scrollElement.clientWidth,height:t.scrollElement.clientHeight}),this._initRoot(),this.movable=new wh(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),this.surface.bind("mouseenter",this._mouseenter.bind(this))}destroy(){super.destroy(),this.surface.destroy()}_reset(){super._reset(),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)}_initRoot(){this._root=new Ah,this.surface.draw(this._root)}_beforeReset(){this.surface.clear(),this._initRoot()}_resize(){this.surface.size(this.map.size())}_readData(){const t=super._readData();return"FeatureCollection"===t.type?t.features:"GeometryCollection"===t.type?t.geometries:t}_load(t){this._data=t,this._clearMarkers(),this._loader||(this._loader=new wk(this.map,this.options.style,this));let e=new Ah;for(let s=0;s<t.length;s++){let i=this._loader.parse(t[s]);i&&e.append(i)}this._root.clear(),this._root.append(e)}shapeCreated(t){let e=!1;return t instanceof ye.A&&this.map.options.renderPointsAsMarkers&&(e=_(this._createMarker(t))),e||(e=this.map.trigger("shapeCreated",{layer:this,shape:t})),e}featureCreated(t){t.layer=this,this.map.trigger("shapeFeatureCreated",t)}_createMarker(t){let e=this.map.markers.bind({location:t.location},t.dataItem);return e&&this._markers.push(e),e}_clearMarkers(){for(let t=0;t<this._markers.length;t++)this.map.markers.remove(this._markers[t]);this._markers=[]}_pan(){this._panning||(this._panning=!0,this.surface.suspendTracking())}_panEnd(t){super._panEnd(t),this._translateSurface(),this.surface.resumeTracking(),this._panning=!1}_translateSurface(){let t=this.map,e=t.locationToView(t.extent().nw);this.surface.translate&&(this.surface.translate(e),this.movable.moveTo({x:e.x,y:e.y}))}_eventArgs(t){return{layer:this,layerIndex:this._layerIndex(),shape:t.element,shapeIndex:(this._data||[]).indexOf(t.element.dataItem),originalEvent:t.originalEvent}}_handler(t){return e=>{e.element&&this.map.trigger(t,this._eventArgs(e))}}_mouseenter(t){if(!t.element)return;this.map.trigger("shapeMouseEnter",this._eventArgs(t));const e=t.element,s=this._tooltipAnchor(t);this.map._tooltip.show(s,this._tooltipContext(e))}_tooltipContext(t){return{type:"shape",layerIndex:this._layerIndex(),className:"k-map-shape-tooltip",dataItem:t.dataItem,location:t.location}}_tooltipAnchor(t){const e=this.map.eventOffset(t.originalEvent);
1return{top:e.y,left:e.x}}_activate(){super._activate(),this._panHandler=yt(this._pan,this),this.map.bind("pan",this.panHandler)}_deactivate(){super._deactivate(),this.map.unbind("pan",this._panHandler)}}w(Sh,{autoBind:!0,zIndex:100});class wk extends L.A{constructor(t,e,s){super(),this.observer=s,this.locator=t,this.style=e}parse(t){let e=new Ah,s=!0;return"Feature"===t.type?(s=!1,this._loadGeometryTo(e,t.geometry,t),this._featureCreated(e,t)):this._loadGeometryTo(e,t,t),s&&e.children.length<2&&(e=e.children[0]),e}_shapeCreated(t){let e=!1;return this.observer&&this.observer.shapeCreated&&(e=this.observer.shapeCreated(t)),e}_featureCreated(t,e){this.observer&&this.observer.featureCreated&&this.observer.featureCreated({group:t,dataItem:e,properties:e.properties})}_loadGeometryTo(t,e,s){let n,r,i=e.coordinates;switch(e.type){case"LineString":r=this._loadPolygon(t,[i],s),this._setLineFill(r);break;case"MultiLineString":for(n=0;n<i.length;n++)r=this._loadPolygon(t,[i[n]],s),this._setLineFill(r);break;case"Polygon":this._loadPolygon(t,i,s);break;case"MultiPolygon":for(n=0;n<i.length;n++)this._loadPolygon(t,i[n],s);break;case"Point":this._loadPoint(t,i,s);break;case"MultiPoint":for(n=0;n<i.length;n++)this._loadPoint(t,i[n],s)}}_setLineFill(t){let e=t.segments;(e.length<4||!e[0].anchor().equals(mt(e).anchor()))&&(t.options.fill=null)}_loadShape(t,e){return this._shapeCreated(e)||t.append(e),e}_loadPolygon(t,e,s){let i=this._buildPolygon(e);return i.dataItem=s,i.location=this.locator.viewToLocation(i.bbox().center()),this._loadShape(t,i)}_buildPolygon(t){let s=new(t.length>1?E.P:E.w)(this.style);for(let i=0;i<t.length;i++)for(let n=0;n<t[i].length;n++){let r=this.locator.locationToView(at.fromLngLat(t[i][n]));0===n?s.moveTo(r.x,r.y):s.lineTo(r.x,r.y)}return s}_loadPoint(t,e,s){let i=at.fromLngLat(e),n=this.locator.locationToView(i),r=new se.A(n,10),a=new ye.A(r,this.style);return a.dataItem=s,a.location=i,this._loadShape(t,a)}}class Fm extends Sh{_readData(){return this.options.data||[]}_load(t){if(this._data=t,this.surface.clear(),0===t.length)return;let e=this.options,s=Ee(e.valueField),i=t.slice(0);i.sort(function(c,h){return s(h)-s(c)});let r,n=this._scaleType(),a=Ee(this.options.locationField);for(let c=0;c<i.length;c++){let h=i[c],d=a(h),u=s(h);if(_(d)&&_(u)){r||(r=new n([0,u],[e.minSize,e.maxSize])),d=at.create(d);let p=this.map.locationToView(d),f=r.map(u),g=this._createSymbol({center:p,size:f,style:e.style,dataItem:h,location:d});g.dataItem=h,g.location=d,g.value=u,this._drawSymbol(g)}}}_scaleType(){let t=this.options.scale;return ct(t)?t:Sk[t]}_createSymbol(t){let e=this.options.symbol;return ct(e)||(e=kk[e]),e(t)}_drawSymbol(t){this.map.trigger("shapeCreated",{layer:this,shape:t})||this.surface.draw(t)}_tooltipContext(t){return{type:"bubble",layerIndex:this._layerIndex(),className:"k-map-bubble-tooltip",dataItem:t.dataItem,location:t.location,value:t.value}}_tooltipAnchor(t){const s=t.element.bbox().center();return{top:s.y,left:s.x}}}w(Fm,{locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle",zIndex:200});let Sk={sqrt:class Ak extends L.A{constructor(t,e){super(),this._domain=t,this._range=e;let s=Math.sqrt(t[1])-Math.sqrt(t[0]);this._ratio=(e[1]-e[0])/s}map(t){let e=(Math.sqrt(t)-Math.sqrt(this._domain[0]))*this._ratio;return this._range[0]+e}}},kk={circle:function(o){let t=new se.A(o.center,o.size/2);return new ye.A(t,o.style)},square:function(o){let t=new E.w(o.style),e=o.size/2,s=o.center;return t.moveTo(s.x-e,s.y-e).lineTo(s.x+e,s.y-e).lineTo(s.x+e,s.y+e).lineTo(s.x-e,s.y+e).close(),t}};const zm="mouseenter",Um="mouseleave",Tk=Object.assign,Hm="k-marker",kh="."+Hm;class Th extends _h{constructor(t,e){super(t,e),this._markerClickHandler=yt(this._markerClick,this),Ut(this.element,"click",kh,this._markerClickHandler),this.items=[],this._load(this._readData())}destroy(){super.destroy(),$t(this.element,"click",this._markerClickHandler),this.clear()}add(t){if(!Dt(t))return this._addOne(t);for(let e=0;e<t.length;e++)this._addOne(t[e])}remove(t){t.destroy();let e=(this.items||[]).indexOf(t);e>-1&&this.items.splice(e,1)}clear(){for(let t=0;t<this.items.length;t++)this.items[t].destroy();this.items=[]}update(t){let e=t.location();e&&(t.showAt(this.map.locationToView(e)),this.map.trigger("markerActivate",{marker:t,layer:this}))}_reset(){super._reset();let t=this.items;for(let e=0;e<t.length;e++)this.update(t[e])}bind(t,e){let s=Kn.create(t,this.options);if(s.dataItem=e,!this.map.trigger("markerCreated",{marker:s,layer:this}))return this.add(s),s}_addOne(t){let e=Kn.create(t,this.options);return e.addTo(this),e}_readData(){return this.options.data||[]}_load(t){this._data=t,this.clear();let e=Ee(this.options.locationField),s=Ee(this.options.titleField);for(let i=0;i<t.length;i++){let n=t[i];this.bind({location:e(n),title:s(n)},n)}}_markerClick(t){const e=t.currentTarget._kendoNode;let s={layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e),originalEvent:t};this.map.trigger("markerClick",s)}_markerMouseEnter(t){const e=this._createMarkerEventArgs(t);this.map.trigger("markerMouseEnter",e)}_markerMouseLeave(t){const e=this._createMarkerEventArgs(t);this.map.trigger("markerMouseLeave",e)}_createMarkerEventArgs(t){const e=t.marker;return Tk({},{layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e)},t)}}w(Th,{zIndex:1e3,autoBind:!0,locationField:"location",titleField:"title",template:""});class Kn extends L.A{constructor(t){super(),this.options=t||{}}destroy(){this.layer=null,this.unbindEvents(),this.hide()}addTo(t){this.layer=t.markers||t,this.layer.items.push(this),this.layer.update(this)}location(t){return t?(this.options.location=at.create(t).toArray(),this.layer&&this.layer.update(this),this):at.create(this.options.location)}showAt(t){this.render(),this._anchor={left:Math.round(t.x),top:Math.round(t.y)},this.element.style.left=ym(this._anchor.left),this.element.style.top=ym(this._anchor.top)}hide(){this.element&&(this.element.remove(),this.element=null)}bindEvents(){this.element&&(this._mouseEnterHandler=yt(this._mouseEnter,this),Ut(this.element,zm,kh,this._mouseEnterHandler),this._mouseLeaveHandler=yt(this._mouseLeave,this),Ut(this.element,Um,kh,this._mouseLeaveHandler))}unbindEvents(){this.element&&($t(this.element,zm,this._mouseEnterHandler),$t(this.element,Um,this._mouseLeaveHandler))}
1render(){if(!this.element){let t=this.options,e=this.layer,s=document.createElement("span");if(gt(s,Hm),this.options.template){const r=this._compileTemplate(this.options.template)(this.dataItem),a=Gs(r);s.appendChild(a)}else if(t.svgIcon)ai(s,{icon:t.svgIcon,iconClass:"k-icon-xxl",svgIcons:this.options.icons.svgIcons,type:"svg"});else{let n={icon:"map-marker",iconClass:"k-icon-xxl",svgIcons:this.options.icons.svgIcons,type:this.options.icons.type};t.shape?"pinTarget"===t.shape?(n.icon="map-marker-target",ai(s,n)):"pin"===t.shape?ai(s,n):gt(s,"k-icon k-icon-xxl k-i-marker-"+vm(t.shape||"pin")):ai(s,n)}t.title&&s.setAttribute("title",t.title);const i=t.attributes||{};Object.keys(i).forEach(function(n){s.setAttribute(n,i[n])}),s._kendoNode=this,s.style.zIndex=t.zIndex,this.element=s,e&&e.element.appendChild(this.element),this.bindEvents()}}_mouseEnter(t){const e=this._createEventArgs(t);this.layer._markerMouseEnter(e),this.layer.map._tooltip.show({top:this._anchor.top-this.element.offsetHeight,left:this._anchor.left},this._tooltipContext())}_tooltipContext(){return{type:"marker",layerIndex:this.layer._layerIndex(),className:"k-map-marker-tooltip",dataItem:this.dataItem,title:this.options.title,location:this.location()}}_mouseLeave(t){const e=this._createEventArgs(t);this.layer._markerMouseLeave(e)}_createEventArgs(t){return{marker:this,originalEvent:t}}_compileTemplate(t){return Vo.compile(t,{paramName:"dataItem",useWithBlock:!1})}static create(t,e){return t instanceof Kn?t:new Kn(x({},e,t))}}const Mk=Object.assign;function jm(o){window.requestAnimationFrame(o)}class Zr extends L.A{constructor(){super();let t=this;t._tickProxy=yt(t._tick,t),t._started=!1}tick(){}done(){}onEnd(){}onCancel(){}start(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,jm(this._tickProxy)))}enabled(){return!0}cancel(){this._started=!1,this.onCancel()}_tick(){let t=this;t._started&&(t.tick(),t.done()?(t._started=!1,t.onEnd()):jm(t._tickProxy))}}class Gm extends Zr{constructor(t){super(),Mk(this,t)}done(){return this.timePassed()>=this.duration}timePassed(){return Math.min(this.duration,ns()-this.startDate)}moveTo(t){let e=this;e.initial=e.movable[e.axis],e.delta=t.location-e.initial,e.duration="number"==typeof t.duration?t.duration:300,e.tick=e._easeProxy(t.ease),e.startDate=ns(),e.start()}_easeProxy(t){let e=this;return function(){e.movable.moveAxis(e.axis,t(e.timePassed(),e.initial,e.delta,e.duration))}}static easeOutExpo(t,e,s,i){return t===i?e+s:s*(1-Math.pow(2,-10*t/i))+e}}let Fi=Object.assign,Ws=Math.abs,Qr="change";class Vk extends Zr{constructor(t){super(t);let e=this;Fi(e,t),e.userEvents.bind("gestureend",e.start.bind(this)),e.tapCapture.bind("press",e.cancel.bind(this))}enabled(){return this.movable.scale<this.dimensions.minScale}done(){return this.dimensions.minScale-this.movable.scale<.01}tick(){let t=this.movable;t.scaleWith(1.1),this.dimensions.rescale(t.scale)}onEnd(){let t=this.movable;t.scaleTo(this.dimensions.minScale),this.dimensions.rescale(t.scale)}}class Fk extends Zr{constructor(t){super();let e=this;Fi(e,t,{transition:new Gm({axis:t.axis,movable:t.movable,onEnd(){e._end()}})}),e.tapCapture.bind("press",function(){e.cancel()}),e.userEvents.bind("end",yt(e.start,e)),e.userEvents.bind("gestureend",yt(e.start,e)),e.userEvents.bind("tap",yt(e.onEnd,e))}onCancel(){this.transition.cancel()}freeze(t){this.cancel(),this._moveTo(t)}onEnd(){let t=this;t.paneAxis.outOfBounds()?t._snapBack():t._end()}done(){return Ws(this.velocity)<1}start(t){let s,e=this;e.dimension.enabled&&(e.paneAxis.outOfBounds()?e.transition._started?(e.transition.cancel(),e.velocity=Math.min(t.touch[e.axis].velocity*e.velocityMultiplier,55),super.start()):e._snapBack():(s=2===t.touch.id?0:t.touch[e.axis].velocity,e.velocity=Math.max(Math.min(s*e.velocityMultiplier,55),-55),e.tapCapture.captureNext(),super.start()))}tick(){let t=this,e=t.dimension,s=t.paneAxis.outOfBounds()?.5:t.friction,i=t.velocity*=s,n=t.movable[t.axis]+i;!t.elastic&&e.outOfBounds(n)&&(n=Math.max(Math.min(n,e.max),e.min),t.velocity=0),t.movable.moveAxis(t.axis,n)}_end(){this.tapCapture.cancelCapture(),this.end()}_snapBack(){let t=this,e=t.dimension;t._moveTo(t.movable[t.axis]>e.max?e.max:e.min)}_moveTo(t){this.transition.moveTo({location:t,duration:500,ease:Gm.easeOutExpo})}}class Nk extends Zr{constructor(t){super(t),Fi(this,t,{origin:{},destination:{},offset:{}})}tick(){this._updateCoordinates(),this.moveTo(this.origin)}done(){return Ws(this.offset.y)<5&&Ws(this.offset.x)<5}onEnd(){this.moveTo(this.destination),this.callback&&this.callback.call()}setCoordinates(t,e){this.offset={},this.origin=t,this.destination=e}setCallback(t){t&&ct(t)?this.callback=t:t=void 0}_updateCoordinates(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}class zk extends L.A{constructor(t){super();let e=this,s="x"===t.axis;const n=Gs('<div class="km-touch-scrollbar km-'+(s?"horizontal":"vertical")+'-scrollbar" />');Fi(e,t,{element:n,elementSize:0,movable:new wh(n),scrollMovable:t.movable,alwaysVisible:t.alwaysVisible,size:s?"width":"height"}),e.scrollMovable.bind(Qr,e.refresh.bind(e)),e.container.appendChild(n),t.alwaysVisible&&e.show()}refresh(){let t=this,e=t.axis,s=t.dimension,i=s.size,r=i/s.total,a=Math.round(-t.scrollMovable[e]*r),c=Math.round(i*r);this.element.style.display=r>=1?"none":"",a+c>i?c=i-a:a<0&&(c+=a,a=0),t.elementSize!==c&&(t.element.style[t.size]=c+"px",t.elementSize=c),t.movable.moveAxis(e,a)}show(){this.element.style.opacity=.7,this.element.style.visibility="visible"}hide(){this.alwaysVisible||(this.element.style.opacity=0)}}class Eh extends ee{constructor(t,e){super();let s=this;this.element=t,this._initOptions(e);const i=(()=>{const{mobileOS:t}=hn();return t.ios||t.android})(navigator);s._native=s.options.useNative&&i;const n=Gs('<div class="km-scroll-header"/>');if(s._native)return gt(t,"km-native-scroller"),xm(n,t),void Fi(s,{scrollElement:t,fixedContainer:t.children[0]});t.style.overflow="hidden",gt(t,"km-scroll-wrapper"),((o,t)=>{for(o.appendChild(t);o.firstChild!==t;)t.appendChild(o.firstChild)})(t,Gs('<div class="km-scroll-container"/>')),xm(n,t);let a=t.children[1],c=new bk(t),h=new wh(a),d=new _k({element:a,container:t,forcedEnabled:s.options.zoom}),u=this.options.avoidScrolling,p=new Ts(t,{touchAction:"none",allowSelection:!0,preventDragEvent:!0,
1captureUpIfMoved:!0,multiTouch:s.options.zoom,supportDoubleTap:s.options.supportDoubleTap,start(v){d.refresh();let y=Ws(v.x.velocity),C=Ws(v.y.velocity),M=2*y>=C,B=2*C>=y;!s.fixedContainer.contains(v.event.target)&&!u(v)&&s.enabled&&(d.x.enabled&&M||d.y.enabled&&B)?p.capture():p.cancel()}}),f=new Ck({movable:h,dimensions:d,userEvents:p,elastic:s.options.elastic}),g=new Vk({movable:h,dimensions:d,userEvents:p,tapCapture:c}),m=new Nk({moveTo(v){s.scrollTo(v.x,v.y)}});h.bind(Qr,function(){s.scrollTop=-h.y,s.scrollLeft=-h.x,s.trigger("scroll",{scrollTop:s.scrollTop,scrollLeft:s.scrollLeft})}),s.options.mousewheelScrolling&&(this._wheelScrollHandler=this._wheelScroll.bind(this),Ut(t,"wheel",this._wheelScrollHandler)),Fi(s,{movable:h,dimensions:d,zoomSnapBack:g,animatedScroller:m,userEvents:p,pane:f,tapCapture:c,pulled:!1,enabled:!0,scrollElement:a,scrollTop:0,scrollLeft:0,fixedContainer:t.children[0]}),s._initAxis("x"),s._initAxis("y"),s._wheelEnd=function(){s._wheel=!1,s.userEvents.end(0,s._wheelY)},d.refresh(),s.options.pullToRefresh&&s._initPullToRefresh()}_initOptions(t){this.options=x({},this.options,t)}_wheelScroll(t){if(t.ctrlKey)return;this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);let e=(o=>{const t=o.wheelDeltaY;let e;return o.wheelDelta?(void 0===t||t)&&(e=o.wheelDelta):o.detail&&o.axis===o.VERTICAL_AXIS&&(e=10*-o.detail),e})(t);e&&(this._wheelY+=e,this.userEvents.move(0,this._wheelY)),t.preventDefault()}makeVirtual(){this.dimensions.y.makeVirtual()}virtualSize(t,e){this.dimensions.y.virtualSize(t,e)}height(){return this.dimensions.y.size}scrollHeight(){return this.scrollElement.scrollHeight}scrollWidth(){return this.scrollElement.scrollWidth}_resize(){this._native||this.contentResized()}setOptions(t){this._initOptions(t),t.pullToRefresh&&this._initPullToRefresh()}reset(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))}contentResized(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)}zoomOut(){let t=this.dimensions;t.refresh(),this._scale(t.fitScale),this.movable.moveTo(t.centerCoordinates())}enable(){this.enabled=!0}disable(){this.enabled=!1}scrollTo(t,e){this._native?(this.scrollElement.scrollLeft(Ws(t)),this.scrollElement.scrollTop(Ws(e))):(this.dimensions.refresh(),this.movable.moveTo({x:t,y:e}))}animatedScrollTo(t,e,s){let i,n;this._native?this.scrollTo(t,e):(i={x:this.movable.x,y:this.movable.y},n={x:t,y:e},this.animatedScroller.setCoordinates(i,n),this.animatedScroller.setCallback(s),this.animatedScroller.start())}pullHandled(){}destroy(){$t(this.element,"wheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()}_scale(t){this.dimensions.rescale(t),this.movable.scaleTo(t)}_initPullToRefresh(){}_dragEnd(){}_paneChange(){}_initAxis(t){let e=this,s=e.movable,i=e.dimensions[t],n=e.tapCapture,r=e.pane[t],a=new zk({axis:t,movable:s,dimension:i,container:e.element,alwaysVisible:e.options.visibleScrollHints});i.bind(Qr,function(){a.refresh()}),r.bind(Qr,function(){a.show()}),e[t+"inertia"]=new Fk({axis:t,paneAxis:r,movable:s,tapCapture:n,userEvents:e.userEvents,dimension:i,elastic:e.options.elastic,friction:e.options.friction||.96,velocityMultiplier:e.options.velocityMultiplier||10,end(){a.hide(),e.trigger("scrollEnd",{axis:t,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}})}}w(Eh,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:()=>!1,pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),Yr(Eh,["pull","scroll","resize"]);const Hk=class Uk{constructor(t,e={}){this.sender=e.sender||t,this.widget=t,this.rtl=!!e.rtl}notify(t,e){this.widget&&this.widget.trigger(t,e)}};let _s=Math,Ym=_s.min,Dh=_s.pow,$m=H.A,Kr="marker",qr="location";const $k={bubble:Fm,shape:Sh,tile:Lm,[Kr]:Th};class Qm extends ee{constructor(t,e={},s={},i={}){super(),this._init(t,e,s,i)}destroy(){this.scroller.destroy(),this._tooltip&&this._tooltip.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),Dt(this.markers)?this.markers.forEac
1h(t=>{t.destroy()}):this.markers.destroy();for(let t=0;t<this.layers.length;t++)this.layers[t].destroy();$t(this.element,"wheel",this._mousewheelHandler),super.destroy()}_init(t,e={},s={},i={}){this.support=hn(),this.context=i,this.initObserver(i),this.initServices(i),this._notifyObserver("init"),this._initOptions(e),this._setEvents(e),this.crs=new nk,this._initElement(t),this._viewOrigin=this._getOrigin(),this._tooltip=this._createTooltip(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset();const n=(0,Pc.A)(this._mousewheel.bind(this),50);this._mousewheelHandler=r=>{r.preventDefault(),n(r)},Ut(this.element,"wheel",this._mousewheelHandler)}_initOptions(t){this.options=x({},this.options,t)}_initElement(t){this.element=t,gt(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),Zn(t);const e=Gs("<div />");this.element.appendChild(e)}initServices(t={}){this.widgetService=new Hk(this,t)}initObserver(t={}){this.observers=[],this.addObserver(t.observer)}addObserver(t){t&&this.observers.push(t)}removeObserver(t){const e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)}requiresHandlers(t){const e=this.observers;for(let s=0;s<e.length;s++)if(e[s].requiresHandlers(t))return!0}trigger(t,e={}){e.sender=this;const s=this.observers;let i=!1;for(let n=0;n<s.length;n++)s[n].trigger(t,e)&&(i=!0);return i||super.trigger(t,e),i}_notifyObserver(t,e={}){e.sender=this;const s=this.observers;let i=!1;for(let n=0;n<s.length;n++)s[n].trigger(t,e)&&(i=!0);return i}zoom(t){let s,e=this.options;if(_(t)){const i=_s.round(I(t,e.minZoom,e.maxZoom));e.zoom!==i&&(e.zoom=i,this.widgetService.notify("zoomChange",{zoom:e.zoom}),this._reset()),s=this}else s=e.zoom;return s}center(t){let e;if(t){const s=at.create(t),i=at.create(this.options.center);s.equals(i)||(this.options.center=s.toArray(),this.widgetService.notify(Mm,{center:this.options.center}),this._reset()),e=this}else e=at.create(this.options.center);return e}extent(t){let e;return t?(this._setExtent(t),e=this):e=this._getExtent(),e}setOptions(t={}){const e=this.element;this.destroy(),Zn(e),this._init(e,t,{},this.context),this._reset()}locationToLayer(t,e){let s=!this.options.wraparound;const i=at.create(t);return this.crs.toPoint(i,this._layerSize(e),s)}layerToLocation(t,e){let s=!this.options.wraparound;const i=$m.create(t);return this.crs.toLocation(i,this._layerSize(e),s)}locationToView(t){const e=at.create(t);let s=this.locationToLayer(this._viewOrigin);return this.locationToLayer(e).translateWith(s.scale(-1))}viewToLocation(t,e){const s=this.locationToLayer(this._getOrigin(),e),n=$m.create(t).clone().translateWith(s);return this.layerToLocation(n,e)}eventOffset(t){let e,s,i=ri(this.element);if(t.x&&t.x[qr]||t.y&&t.y[qr])e=t.x[qr]-i.left,s=t.y[qr]-i.top;else{let r=t.originalEvent||t;e=O(r.pageX,r.clientX)-i.left,s=O(r.pageY,r.clientY)-i.top}return new H.A(e,s)}eventToView(t){let e=this.eventOffset(t);return this.locationToView(this.viewToLocation(e))}eventToLayer(t){return this.locationToLayer(this.eventToLocation(t))}eventToLocation(t){let e=this.eventOffset(t);return this.viewToLocation(e)}viewSize(){let t=this.element,e=this._layerSize(),s=t.clientWidth;return this.options.wraparound||(s=Ym(e,s)),{width:s,height:Ym(e,t.clientHeight)}}exportVisual(){return this._reset(),!1}hideTooltip(){this._tooltip&&this._tooltip.hide()}_setOrigin(t,e){let i,s=this.viewSize();const n=this._origin=at.create(t);return i=this.locationToLayer(n,e),i.x+=s.width/2,i.y+=s.height/2,this.options.center=this.layerToLocation(i,e).toArray(),this.widgetService.notify(Mm,{center:this.options.center}),this}_getOrigin(t){let s,e=this.viewSize();return(t||!this._origin)&&(s=this.locationToLayer(this.center()),s.x-=e.width/2,s.y-=e.height/2,this._origin=this.layerToLocation(s)),this._origin}_setExtent(t){let e=Qe.create(t),s=e.se.clone();this.options.wraparound&&s.lng<0&&t.nw.lng>0&&(s.lng=180+(180+s.lng));const i=new Qe(e.nw,s);this.center(i.center());let a,n=this.element.clientWidth,r=this.element.clientHeight;for(a=this.options.maxZoom;a>=this.options.minZoom;a--){let c=this.locationToLayer(i.nw,a),h=this.locationToLayer(i.se,a),d=_s.abs(h.x-c.x),u=_s.abs(h.y-c.y);if(d<=n&&u<=r)break}this.zoom(a)}_getExtent(){let t=this._getOrigin(),e=this.locationToLayer(t),s=this.viewSize();e.x+=s.width,e.y+=s.height;let i=this.layerToLocation(e);
vendor: 4,230 bytes, line 1
1return new Qe(t,i)}_zoomAround(t,e){this._setOrigin(this.layerToLocation(t,e),e),this.zoom(e)}_initControls(){let t=this.options.controls;t.attribution&&this._createAttribution(t.attribution),this.support.mobileOS||(t.navigator&&this._createNavigator(t.navigator),t.zoom&&this._createZoomControl(t.zoom))}_createControlElement(t,e){let s=t.position||e,i="."+bm(s).replace(" ","."),n=this.element.querySelector(".k-map-controls"+i)||[];if(0===n.length){let a=document.createElement("div");gt(a,"k-map-controls "+bm(s)),n=a,this.element.appendChild(n)}let r=document.createElement("div");return n.appendChild(r),r}_createAttribution(t){let e=this._createControlElement(t,"bottomRight");this.attribution=new _m(e,t)}_createNavigator(t){let e=this._createControlElement(t,"topLeft"),s=this.navigator=new yh(e,x({},t,{icons:this.options.icons}));this._navigatorPan=this._navigatorPan.bind(this),s.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),s.bind("center",this._navigatorCenter)}_navigatorPan(t){let e=this.scroller,s=e.scrollLeft+t.x,i=e.scrollTop-t.y,n=this._virtualSize,a=this.element.clientHeight;s=I(s,n.x.min,n.x.max-this.element.clientWidth),i=I(i,n.y.min,n.y.max-a),this.scroller.one("scroll",yt(this._scrollEnd,this)),this.scroller.scrollTo(-s,-i)}_navigatorCenter(){this.center(this.options.center)}_createZoomControl(t){let e=this._createControlElement(t,"topLeft"),s=this.zoomControl=new bh(e,t,this.options.icons);this._zoomControlChange=this._zoomControlChange.bind(this),s.bind("change",this._zoomControlChange)}_zoomControlChange(t){this.trigger("zoomStart",{originalEvent:t})||(this.zoom(this.zoom()+t.delta),this.trigger("zoomEnd",{originalEvent:t}))}_initScroller(){let s=this.scroller=new Eh(this.element.children[0],{friction:this.support.mobileOS?.93:.9,velocityMultiplier:5,zoom:!1!==this.options.zoomable,mousewheelScrolling:!1,supportDoubleTap:!0});s.bind("scroll",yt(this._scroll,this)),s.bind("scrollEnd",yt(this._scrollEnd,this)),s.userEvents.bind("gesturestart",yt(this._scaleStart,this)),s.userEvents.bind("gestureend",yt(this._scale,this)),s.userEvents.bind("doubleTap",yt(this._doubleTap,this)),s.userEvents.bind("tap",yt(this._tap,this)),this.scrollElement=s.scrollElement}_initLayers(){let t=this.options.layers,e=this.layers=[];for(let s=0;s<t.length;s++){const n=this._createLayer(t[s]);e.push(n)}}_createLayer(t){let e=t.type||"shape",s=this.options.layerDefaults[e],i=e===Kr?x({},this.options.markerDefaults,t,{icons:this.options.icons}):x({},s,t),r=new(0,$k[e])(this,i);return e===Kr&&(this.markers=r),r}_createTooltip(){return new Em(this.widgetService,this.options.tooltip)}_initMarkers(){(this.options.layers||[]).filter(e=>e&&e.type===Kr).length>0||(this.markers=new Th(this,x({},this.options.markerDefaults,{icons:this.options.icons})),this.markers.add(this.options.markers))}_scroll(t){let e=this.locationToLayer(this._viewOrigin).round(),s=t.sender.movable,i=new H.A(s.x,s.y).scale(-1).scale(1/s.scale);e.x+=i.x,e.y+=i.y,this._scrollOffset=i,this._tooltip.offset=i,this.hideTooltip(),this._setOrigin(this.layerToLocation(e)),this.trigger("pan",{originalEvent:t,origin:this._getOrigin(),center:this.center()})}_scrollEnd(t){!this._scrollOffset||!this._panComplete()||(this._scrollOffset=null,this._panEndTimestamp=ns(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))}_panComplete(){return ns()-(this._panEndTimestamp||0)>50}_scaleStart(t){if(this.trigger("zoomStart",{originalEvent:t})){let e=t.touches[1];e&&e.cancel()}}_scale(t){let s=this._scaleToZoom(this.scroller.movable.scale),i=new H.A(t.center.x,t.center.y),n=this.viewToLocation(i,s),a=this.locationToLayer(n,s).translate(-i.x,-i.y);this._zoomAround(a,s),this.trigger("zoomEnd",{originalEvent:t})}_scaleToZoom(t){let s=this._layerSize()*t/this.options.minSize,i=_s.log(s)/_s.log(2);return _s.round(i)}_reset(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.hideTooltip(),this.trigger("beforeReset"),this.trigger("reset")}_resetScroller(){let t=this.scroller,e=t.dimensions.x,s=t.dimensions.y,i=this._layerSize(),n=this.extent().nw,r=this.locationToLayer(n).roun
1d();t.movable.round=!0,t.reset(),t.userEvents.cancel();let a=this.zoom();t.dimensions.forcedMinScale=Dh(2,this.options.minZoom-a),t.dimensions.maxScale=Dh(2,this.options.maxZoom-a);let c={min:-r.x,max:i-r.x},h={min:-r.y,max:i-r.y};if(this.options.wraparound&&(c.max=20*i,c.min=-c.max),!1===this.options.pannable){let d=this.viewSize();c.min=h.min=0,c.max=d.width,h.max=d.height}e.makeVirtual(),s.makeVirtual(),e.virtualSize(c.min,c.max),s.virtualSize(h.min,h.max),this._virtualSize={x:c,y:h}}_renderLayers(){}_layerSize(t){const e=O(t,this.options.zoom);return this.options.minSize*Dh(2,e)}_tap(t){if(!this._panComplete())return;let e=this.eventOffset(t);this.hideTooltip(),this.trigger("click",{originalEvent:t,location:this.viewToLocation(e)})}_doubleTap(t){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:t})){let s=this.zoom()+1,i=this.eventOffset(t),n=this.viewToLocation(i),a=this.locationToLayer(n,s).translate(-i.x,-i.y);this._zoomAround(a,s),this.trigger("zoomEnd",{originalEvent:t})}}_mousewheel(t){let e=hl(t)>0?-1:1,s=this.options,i=this.zoom(),n=I(i+e,s.minZoom,s.maxZoom);if(!1!==s.zoomable&&n!==i&&!this.trigger("zoomStart",{originalEvent:t})){let r=this.eventOffset(t),a=this.viewToLocation(r),h=this.locationToLayer(a,n).translate(-r.x,-r.y);this._zoomAround(h,n),this.trigger("zoomEnd",{originalEvent:t})}}_toDocumentCoordinates(t){const e=ri(this.element);return{left:k(t.x+e.left),top:k(t.y+e.top)}}}w(Qm,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],icons:{type:"font",svgIcons:{}},zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),Yr(Qm,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);const Ph=(o,t)=>o.map(t).reduce((e,s)=>e+s,0),Jr=(o,t)=>o.y0===t.y0?o.index-t.index:o.y0+o.y1-t.y0-t.y1,Kk=(o,t)=>Jr(o.source,t.source),qk=(o,t)=>Jr(o.target,t.target),Lh=o=>o.value;function Ih(o){o.forEach(t=>{t.targetLinks.forEach(e=>{e.source.sourceLinks.sort(qk)}),t.sourceLinks.forEach(e=>{e.target.targetLinks.sort(Kk)})})}const Jk=(o,t)=>"left"===o.align?o.depth:"right"===o.align?t-o.height:o.sourceLinks.length?o.depth:t;class tT{constructor(t){const{offset:e={},align:s}=t.nodesOptions;this.data={nodes:t.nodes.map(i=>x({},{offset:e,align:s},i)),links:t.links.map(i=>x({},i))},this.width=t.width,this.height=t.height,this.offsetX=t.offsetX||0,this.offsetY=t.offsetY||0,this.nodeWidth=t.nodesOptions.width,this.nodePadding=t.nodesOptions.padding,this.reverse=t.reverse,this.targetColumnIndex=t.targetColumnIndex,this.loops=t.loops,this.autoLayout=t.autoLayout}calculate(){const{nodes:t,links:e}=this.data;this.connectLinksToNodes(t,e),this.calculateNodeValues(t);const s=this.calculateNodeHeights(t);if(s)return{nodes:[],links:[],columns:[],circularLinks:s};this.calculateNodeDepths(t);const i=this.calculateNodeColumns(t);return this.calculateNodeBreadths(i),this.applyNodesOffset(t),this.calculateLinkBreadths(t),Object.assign({},this.data,{columns:i})}connectLinksToNodes(t,e){const s=new Map;t.forEach((i,n)=>{i.index=n,i.sourceLinks=[],i.targetLinks=[],i.id=void 0!==i.id?i.id:i.label.text,s.set(i.id,i)}),e.forEach(i=>{i.source=s.get(i.sourceId),i.target=s.get(i.targetId),i.source.sourceLinks.push(i),i.target.targetLinks.push(i)})}calculateNodeValues(t){t.forEach(e=>{e.value=Math.max(Ph(e.sourceLinks,Lh),Ph(e.targetLinks,Lh))})}calculateNodeDepths(t){let e=new Set(t),s=new Set,i=0;for(;e.size;){const n=Array.from(e);for(let r=0;r<n.length;r++){const a=n[r];a.depth=i;for(let c=0;c<a.sourceLinks.length;c++)s.add(a.sourceLinks[c].target)}i++,e=s,s=new Set}}calculateNodeHeights(t){const e=t.length;let s=new Set(t),i=new Set,n=0;const r=a=>{a.height=n,a.targetLinks.forEach(c=>{i.add(c.source)})};for(;s.size;){if(s.forEach(r),n++,n>e)return!0;s=i,i=new Set}return!1}calculateNodeColumns(t){const e=Math.max.apply(null,t.map(n=>n.depth)),s=(this.width-this.offsetX-this.nodeWidth)/e,i=new Array(e+1);for(let n=0;n<t.length;n++){const r=t[n],a=Math.max(0,Math.min(e,Jk(r,e)));r.x0=this.offsetX+a*s,r.x1=r.x0+this.nodeWidth,r.layer=a,i[a]=i[a]||[],i[a].push(r)}return i}calculateNodeBreadths(t){const e=((o,t)=>Math.min.apply(null,o.map(t)))(t,s=>(this.height-this.offsetY-(s.length-1)*this.nodePadding)/Ph(s,Lh));if(t.forEach(s=>{let i=this.offsetY;
1s.forEach(n=>{n.y0=i,n.y1=i+n.value*e,i=n.y1+this.nodePadding,n.sourceLinks.forEach(r=>{r.width=r.value*e})}),i=(this.height-i+this.nodePadding)/(s.length+1),s.forEach((n,r)=>{n.y0+=i*(r+1),n.y1+=i*(r+1)})}),!1!==this.autoLayout){const s=void 0!==this.loops?this.loops:t.length-1,i=this.targetColumnIndex||1;for(let n=0;n<s;n++)this.reverse?(this.uncurlLinksToRight(t,i),this.uncurlLinksToLeft(t,i)):(this.uncurlLinksToLeft(t,i),this.uncurlLinksToRight(t,i))}t.forEach(Ih)}applyNodesOffset(t){t.forEach(e=>{const s=(e.offset?e.offset.left:0)||0,i=(e.offset?e.offset.top:0)||0;e.x0+=s,e.x1+=s,e.y0+=i,e.y1+=i})}calculateLinkBreadths(t){t.forEach(e=>{const{sourceLinks:s,targetLinks:i}=e;let n=e.y0,r=n;s.forEach(a=>{a.x0=a.source.x1,a.y0=n+a.width/2,n+=a.width}),i.forEach(a=>{a.x1=a.target.x0,a.y1=r+a.width/2,r+=a.width})})}uncurlLinksToRight(t,e){const s=t.length;for(let i=e;i<s;i++){const n=t[i];n.forEach(r=>{let a=0,c=0;r.targetLinks.forEach(d=>{let u=d.value*(r.layer-d.source.layer);a+=this.targetTopPos(d.source,r)*u,c+=u});let h=0===a?0:a/c-r.y0;r.y0+=h,r.y1+=h,Ih([r])}),n.sort(Jr),this.arrangeNodesVertically(n)}}uncurlLinksToLeft(t,e){for(let n=t.length-1-e;n>=0;n--){const r=t[n];for(let a=0;a<r.length;a++){const c=r[a];let h=0,d=0;c.sourceLinks.forEach(p=>{let f=p.value*(p.target.layer-c.layer);h+=this.sourceTopPos(c,p.target)*f,d+=f});let u=0===h?0:h/d-c.y0;c.y0+=u,c.y1+=u,Ih([c])}r.sort(Jr),this.arrangeNodesVertically(r)}}arrangeNodesVertically(t){this.arrangeUp(t,this.height,t.length-1),this.arrangeDown(t,this.offsetY,0)}arrangeDown(t,e,s){let i=e;for(let n=s;n<t.length;n++){const r=t[n],a=Math.max(0,i-r.y0);r.y0+=a,r.y1+=a,i=r.y1+this.nodePadding}}arrangeUp(t,e,s){let i=e;for(let n=s;n>=0;--n){const r=t[n],a=Math.max(0,r.y1-i);r.y0-=a,r.y1-=a,i=r.y0-this.nodePadding}}sourceTopPos(t,e){let s=e.y0-(e.targetLinks.length-1)*this.nodePadding/2;for(let i=0;i<e.targetLinks.length;i++){const n=e.targetLinks[i];if(n.source===t)break;s+=n.width+this.nodePadding}for(let i=0;i<t.sourceLinks.length;i++){const n=t.sourceLinks[i];if(n.target===e)break;s-=n.width}return s}targetTopPos(t,e){let s=t.y0-(t.sourceLinks.length-1)*this.nodePadding/2;for(let i=0;i<t.sourceLinks.length;i++){const n=t.sourceLinks[i];if(n.target===e)break;s+=n.width+this.nodePadding}for(let i=0;i<e.targetLinks.length;i++){const n=e.targetLinks[i];if(n.source===t)break;s-=n.width}return s}}const Ni=o=>new tT(o).calculate();function ta(o,t,e,s,i,n){const r=(n-t)*(e-o),a=(s-t)*(i-o);return r>a?1:r===a?0:-1}function sT(o,t){const e=ta(o.x0,o.y0,o.x1,o.y1,t.x1,t.y1),s=ta(o.x0,o.y0,o.x1,o.y1,t.x0,t.y0),i=ta(o.x0,o.y0,t.x0,t.y0,t.x1,t.y1),n=ta(o.x1,o.y1,t.x0,t.y0,t.x1,t.y1);return e!==s&&i!==n}class qn extends L.A{constructor(t){super(),this.options=x({},this.options,t),this.createVisual()}createVisual(){this.visual=this.createElement()}exportVisual(){return this.visual}createElement(){const t=this.options.visual;let e;return e=t?t({sender:this.getSender(),options:this.visualOptions(),createVisual:()=>this.getElement()}):this.getElement(),e}getSender(){return this}}class Km extends qn{getElement(){return E.w.fromRect(this.getRect(),this.visualOptions())}getRect(){const t=this.options.node;return new wt.A([t.x0,t.y0],[t.x1-t.x0,t.y1-t.y0])}getLabelText(t){let e=t.labels.ariaTemplate;if(e)return e({node:t.node})}visualOptions(){const t=x({},this.options,this.options.node),e=this.getLabelText(t);return{fill:{color:t.color,opacity:t.opacity},stroke:{width:0},className:"k-sankey-node",role:"graphics-symbol",ariaRoleDescription:"Node",ariaLabel:e}}createFocusHighlight(){if(this.options.navigatable)return this._highlight=E.w.fromRect(this.getRect(),{stroke:this.options.focusHighlight,visible:!1}),this._highlight}focus(t){if(this._highlight){const{highlight:e=!0}=t||{};e&&this._highlight.options.set("visible",!0);const s=this.options.node.id;this.visual.options.set("id",s),this.options.root()&&this.options.root().setAttribute(ni,s)}}blur(){this._highlight&&(this._highlight.options.set("visible",!1),this.visual.options.set("id",""),this.options.root()&&this.options.root().removeAttribute(ni))}}const iT=(o,t,e)=>o.color||t[e%t.length],qm=(o,t,e,s)=>{const i=x({},t,t.node);return x({},{color:iT(o,e,s)},i,{node:o},{visual:o.visual,opacity:o.opacity,offset:o.offset,color:o.color})},oT=(o,t,e,s,i)=>{const n=1-i,r=n*n,a=i*i;return o*r*n+3*t*i*r+3*e*a*n+s*a*i};class lT extends qn{getElement(){const t=this.options.link,{x0:e,x1:s,y0:i,y1:n}=t,r=(e+s)/2;return new E.w(this.visualOptions()).moveTo(e,i).curveTo([r,i],[r,n],[s,n])}getLabelText(t){let e=t.labels.ariaTemplate;if(e)return e({link:t.link})}visualOptions(){const t=this.options,e=this.options.link,s=this.getLabelText(t);return{stroke:{width:t.link.width,color:e.color||t.color,opacity:_(e.opacity)?e.opacity:t.opacity},role:"graphics-symbol",ariaRoleDescription:"Link",ariaLabel:s}}createFocusHighlight(){if(!this.options.navigatable)return;const{link:t,rtl:e}=this.options,{x0:s,x1:i,y0:n,y1:r}=t,a=(s+i)/2,c=t.width/2,h=((o,t)=>{const{x0:e,x1:s,y0:i,y1:n}=o;let r=(e+s)/2;const a=o.width,c=a/2,h=[[(e+r)/2,i-c],[(s+r)/2,n-c]],u=((o,t)=>{const[e,s]=o[0],[i,n]=o[1],[r,a]=t;return Math.abs((i-e)*(a-s)-(r-e)*(n-s))/Math.sqrt(Math.pow(i-e,2)+Math.pow(n-s,2))})(h,[r,oT(i+c,i+c,n+c,n+c,.5)]),p=(a-u)/2,f=((o,t)=>{const[e,s]=o[0],[i,n]=o[1],[r,a]=t[0],[c,h]=t[1],d=Math.atan2(n-s,i-e),u=Math.atan2(h-a,c-r);return Math.abs(d-u)})(h,[[e,i-c],[r,i-c]]),g=p,m=Math.sin(f)*g;let y=i-n>0?-1:1;return t&&(y=-y),y*Math.sqrt(g*g+m*m)})(t,e);this._highlight=new E.w({stroke:this.options.focusHighlight,visible:!1}).moveTo(s,n+c).lineTo(s,n-c).curveTo([a+h,n-c],[a+h,r-c],[i,r-c]).lineTo(i,r+c).curveTo([a-h,r+c
1],[a-h,n+c],[s,n+c])}focus(t){if(this._highlight){const{highlight:e=!0}=t||{};e&&this._highlight.options.set("visible",!0);const s=`${this.options.link.sourceId}->${this.options.link.targetId}`;this.visual.options.set("id",s),this.options.root()&&this.options.root().setAttribute(ni,s)}}blur(){this._highlight&&(this._highlight.options.set("visible",!1),this.visual.options.set("id",""),this.options.root()&&this.options.root().removeAttribute(ni))}}const ea="inside",zi="before",sa="after";class Rh extends qn{getElement(){const t=x({},this.options,this.options.node.label),{node:e,diagramMinX:s,diagramMaxX:i,text:n,offset:r,rtl:a}=t;let c=t.position;if(a&&c!==ea&&(c=c===zi?sa:zi),!t.visible||!n)return null;const h=new A(e.x0,e.y0,e.x1,e.y1),d=this.visualOptions();a&&!d.align&&(d.align="right");const u=new Ht(n,d);u.reflow(new A);const p=u.box,f=h.center().y-p.height()/2,g=e.x1+p.width()>i,m=e.x0-p.width()<s;let v=c===zi||c===ea&&g?zi:sa;a&&(v=c===sa||c===ea&&m?sa:zi);const y=[v===zi?e.x0-p.width():e.x1,f],C=new A(y[0],y[1],y[0]+p.width(),y[1]+p.height());return C.translate(r.left||0,r.top||0),u.reflow(C),u.renderVisual(),u.visual}visualOptions(){const t=x({},this.options,this.options.node.label);return{color:t.color,font:t.font,border:t.border,margin:t.margin,padding:t.padding,align:t.align,paintOrder:t.paintOrder,stroke:t.stroke}}}w(Rh,{position:ea});const Jm=(o,t,e,s,i)=>x({},t,{node:o,diagramMinX:s,diagramMaxX:i,rtl:e,visual:o.label.visual,visible:o.label.visible,margin:o.label.margin,padding:o.label.padding,border:o.label.border,align:o.label.align,offset:o.label.offset});class Bh extends qn{getElement(){const t=this.options,{drawingRect:e,text:s}=t;if(!1===t.visible||!s)return null;const i=pn.buildTitle(s,t);return i.reflow(e),i.renderVisual(),i.visual}createElement(){return this.getElement()}}w(Bh,{align:F,border:{width:0},margin:K(5),padding:K(5)});const hT=(o,t)=>o.node.x0-t.node.x0!=0?o.node.x0-t.node.x0:o.node.y0-t.node.y0,dT=(o,t)=>o.node.x1-t.node.x1!=0?o.node.x1-t.node.x1:t.node.y0-o.node.y0;class ia extends qn{getElement(){const t=this.options,{drawingRect:e,rtl:s,nodes:i=[],item:n,position:r}=t;if(!1===t.visible||!i.length)return null;const a=i.map(d=>({text:d.label&&d.label.text||"",area:{background:void 0!==n.areaBackground?n.areaBackground:d.color,opacity:void 0!==n.areaOpacity?n.areaOpacity:d.opacity},node:d}));a.sort(s?dT:hT);const h=new pg(Object.assign({},t,{data:a,reverse:s&&r!==U&&r!==Y}),{rtl:s});return h.reflow(e),h.renderVisual(),h.visual}createElement(){return this.getElement()}}w(ia,{markers:{visible:!1},item:{type:Ve,cursor:ol,opacity:1},position:$,align:F,accessibility:{role:"presentation",ariaLabel:null,ariaRoleDescription:null},border:{width:0}});const Jn="link",Ui="node";class tx extends ee{constructor(t,e,s){super(),this._initTheme(s),this._setOptions(e),this._initElement(t),this._initSurface(),e&&e.data&&(this._redraw(),this._initResizeObserver(),this._initNavigation(t))}destroy(){this.unbind(),this._destroySurface(),this._destroyResizeObserver(),this.element&&(this.element.removeEventListener("keydown",this._keydownHandler),this.element.removeEventListener("focus",this._focusHandler),this.element.removeEventListener("mousedown",this._onDownHandler),this.element.removeEventListener("touchstart",this._onDownHandler),this.element.removeEventListener("pointerdown",this._onDownHandler)),this._focusState=null,this.element=null}_initElement(t){this.element=t,gt(t,["k-chart","k-sankey"]),t.setAttribute("role","graphics-document");const{title:e}=this.options;e.text&&t.setAttribute("aria-label",e.text),e.description&&t.setAttribute("aria-roledescription",e.description)}_initSurface(){this.surface||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}_initNavigation(t){t.tabIndex=t.getAttribute("tabindex")||0,!this.options.disableKeyboardNavigation&&(this._keydownHandler=this._keydown.bind(this),this._focusHandler=this._focus.bind(this),this._blurHandler=this._blur.bind(this),this._onDownHandler=this._onDown.bind(this),t.addEventListener("keydown",this._keydownHandler),t.addEventListener("focus",this._focusHandler),t.addEventListener("blur",this._blurHandler),t.addEventListener("mousedown",this._onDownHandler),t.addEventListener("touchstart",this._onDownHandler),t.addEventListener("pointerdown",this._onDownHandler),this._focusState={node:this.firstFocusableNode(),link:null})}firstFocusableNode(){return this.columns[0][0]}_initResizeObserver(){const t=new ResizeObserver(e=>{e.forEach(s=>{const{width:i,height:n}=s.contentRect;s.target!==this.element||this.size&&this.size.width===i&&this.size.height===n||(this.size={
1width:i,height:n},this.surface.setSize(this.size),this.resize=!0,this._redraw())})});this._resizeObserver=t,t.observe(this.element)}_createSurface(){return Ii.A.create(this.surfaceElement,{mouseenter:this._mouseenter.bind(this),mouseleave:this._mouseleave.bind(this),mousemove:this._mousemove.bind(this),click:this._click.bind(this)})}_initTheme(t){let e=t||this.theme||{};this.theme=e,this.options=x({},e,this.options)}setLinksOpacity(t){this.linksVisuals.forEach(e=>{this.setOpacity(e,t,e.linkOptions.opacity)})}setLinksInactivityOpacity(t){this.linksVisuals.forEach(e=>{this.setOpacity(e,t,e.linkOptions.highlight.inactiveOpacity)})}setOpacity(t,e,s){t.options.set("stroke",Object.assign({},t.options.stroke,{opacity:_(s)?s:e}))}trigger(t,e){const n=Object.assign({},e,{type:t,targetType:e.element.type,dataItem:e.element.dataItem});return super.trigger(t,n)}_mouseenter(t){const e=t.element,s=e.type===Jn,i=e.type===Ui,n=!(!e.chartElement||!e.chartElement.options.node);if(s&&this.trigger("linkEnter",t)||i&&this.trigger("nodeEnter",t))return;const{highlight:r}=this.options.links;if(s)this.setLinksInactivityOpacity(r.inactiveOpacity),this.setOpacity(e,r.opacity,e.linkOptions.highlight.opacity);else if(i)this.highlightLinks(e,r);else if(n){const a=this.nodesVisuals.get(e.chartElement.options.node.id);this.highlightLinks(a,r)}}_mouseleave(t){const e=t.element,s=e.type===Jn,i=e.type===Ui,n=!(!e.chartElement||!e.chartElement.options.node),r=t.originalEvent.relatedTarget;s&&r&&"text"===r.nodeName||((s||i)&&(this.tooltipTimeOut&&(clearTimeout(this.tooltipTimeOut),this.tooltipTimeOut=null),this.tooltipShown=!1,this.trigger("tooltipHide",t)),!(s&&this.trigger("linkLeave",t)||i&&this.trigger("nodeLeave",t))&&(s||i||n)&&this.linksVisuals.forEach(a=>{this.setOpacity(a,this.options.links.opacity,a.linkOptions.opacity)}))}_mousemove(t){const{followPointer:e,delay:s}=this.options.tooltip,i=t.element,n=i.type;if(n!==Jn&&n!==Ui||this.tooltipShown&&!e)return;const r=t.originalEvent,a=this.element.getBoundingClientRect();if(t.tooltipData={popupOffset:{left:r.pageX,top:r.pageY},popupAlign:{horizontal:r.clientX-a.left<a.width/2?"left":"right",vertical:r.clientY-a.top<a.height/2?"top":"bottom"}},n===Ui){const{sourceLinks:u,targetLinks:p}=i.dataItem;t.nodeValue=(p.length?p:u).reduce((g,m)=>g+m.value,0)}this.tooltipTimeOut&&(clearTimeout(this.tooltipTimeOut),this.tooltipTimeOut=null),this.tooltipTimeOut=setTimeout(()=>{this.trigger("tooltipShow",t),this.tooltipShown=!0,this.tooltipTimeOut=null},e&&this.tooltipShown?0:s)}_click(t){const e=t.element,s=e.dataItem,i=e.type===Jn,r=this._focusState||{};if(e.type===Ui)!r.link&&this.sameNode(r.node,s)||(this._focusState={node:s,link:null},this._focusNode({highlight:!1})),this.trigger("nodeClick",t);else if(i){const a={sourceId:s.source.id,targetId:s.target.id,value:s.value};this.sameLink(r.link,a)||(this._focusState={node:s.source,link:a},this._focusLink({highlight:!1})),this.trigger("linkClick",t)}}sameNode(t,e){return t&&e&&t.id===e.id}sameLink(t,e){return t&&e&&t.sourceId===e.sourceId&&t.targetId===e.targetId}_focusNode(t){this._cleanFocusHighlight(),this.models.map.get(this._focusState.node.id).focus(t)}_focusLink(t){this._cleanFocusHighlight();const e=this._focusState.link;this.models.map.get(`${e.sourceId}-${e.targetId}`).focus(t)}_focusNextNode(t=1){const e=this._focusState.node,s=this.columns.findIndex(a=>a.find(c=>c.id===e.id)),i=this.columns[s],n=i.findIndex(a=>a.id===e.id),r=i[n+t];r&&(this._focusState.node=r,this._focusNode())}_focusNextLink(t=1){const e=this._focusState.node,s=this._focusState.link,i=e.sourceLinks.findIndex(r=>r.sourceId===s.sourceId&&r.targetId===s.targetId),n=e.targetLinks.findIndex(r=>r.sourceId===s.sourceId&&r.targetId===s.targetId);if(-1!==i){const r=e.sourceLinks[i+t];r&&(this._focusState.link=r,this._focusLink())}else if(-1!==n){const r=e.targetLinks[n+t];r&&(this._focusState.link=r,this._focusLink())}}_focusSourceNode(){const e=this.models.map.get(this._focusState.link.sourceId);this._focusState={node:e.options.node,link:null},this._focusNode()}_focusTargetNode(){const e=this.models.map.get(this._focusState.link.targetId);this._focusState={node:e.options.node,link:null},this._focusNode()}_focusSourceLink(){const s=this._focusState.node.sourceLinks[0];s&&(this._focusState.link=s,this._focusLink())}_focusTargetLink(){const s=this._focusState.node.targetLinks[0];s&&(this._focusState.link=s,this._focusLink())}_focus(){this._skipFocusHighlight||(this._focusState.link?this._focusLink():this._focusNode()),this._skipFocusHighlight=!1}_blur(){this._cleanFocusHighlight()}_onDown(){this._hasFocus()||(this._skipFocusHighlight=!0)}_hasFocus(){return this.element.ownerDocument.activeElement===this.element}
1_cleanFocusHighlight(){this.models.nodes.forEach(t=>t.blur()),this.models.links.forEach(t=>t.blur())}_keydown(t){let e=this["on"+t.key];const s=this.options.rtl;s&&"ArrowLeft"===t.key?e=this.onArrowRight:s&&"ArrowRight"===t.key&&(e=this.onArrowLeft),e&&e.call(this,t)}onEscape(t){t.preventDefault(),this._focusState={node:this.firstFocusableNode(),link:null},this._focusNode()}onArrowDown(t){t.preventDefault(),this._focusState.link?this._focusNextLink(1):this._focusNextNode(1)}onArrowUp(t){t.preventDefault(),this._focusState.link?this._focusNextLink(-1):this._focusNextNode(-1)}onArrowLeft(t){t.preventDefault(),this._focusState.link?this._focusSourceNode():this._focusTargetLink()}onArrowRight(t){t.preventDefault(),this._focusState.link?this._focusTargetNode():this._focusSourceLink()}highlightLinks(t,e){t&&(this.setLinksInactivityOpacity(e.inactiveOpacity),t.links.forEach(s=>{this.setOpacity(s,e.opacity,s.linkOptions.highlight.opacity)}))}_destroySurface(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}_destroyResizeObserver(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}_initSurfaceElement(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement))}_destroySurfaceElement(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}setOptions(t,e){this._setOptions(t),this._initTheme(e),this._initSurface(),this._redraw()}_redraw(){this.surface.clear();const{width:t,height:e}=this._getSize();this.size={width:t,height:e},this.surface.setSize(this.size),this.createVisual(),this.surface.draw(this.visual)}_getSize(){return this.element.getBoundingClientRect()}createVisual(){this.visual=this._render()}titleBox(t,e){return t&&!1!==t.visible&&t.text?new Bh(Object.assign({},{drawingRect:e},t)).exportVisual().chartElement.box:null}legendBox(t,e,s){return t&&!1!==t.visible?new ia(Object.assign({},{nodes:e},t,{drawingRect:s})).exportVisual().chartElement.box:null}calculateSankey(t,e){const{title:s,legend:i,data:n,nodes:r,labels:a,nodeColors:c,disableAutoLayout:h,disableKeyboardNavigation:d,rtl:u}=e,p=!h,f=d?0:Oh.width/2,g=new A(0,0,t.width,t.height);g.unpad(f);const m=this.titleBox(s,g);let v=g.clone();if(m){const X=m.height();s.position===j?(g.unpad({top:X}),v=new A(0,X,t.width,t.height)):(g.shrink(0,X),v=new A(0,0,t.width,t.height-X))}const y=this.legendBox(i,n.nodes,v),C=i&&i.position||ia.prototype.options.position;y&&(C===U&&g.unpad({left:y.width()}),C===Y&&g.shrink(y.width(),0),C===j&&g.unpad({top:y.height()}),C===$&&g.shrink(0,y.height()));const{nodes:M,circularLinks:R}=Ni(Object.assign({},t,{offsetX:0,offsetY:0,width:g.width(),height:g.height()}));if(R)return console.warn("Circular links detected. Kendo Sankey diagram does not support circular links."),{sankey:{nodes:[],links:[],columns:[[]],circularLinks:R},legendBox:y,titleBox:m};const B=new A,st=M.reduce((X,Ft)=>Math.min(X,Ft.x0),1/0),Z=M.reduce((X,Ft)=>Math.max(X,Ft.x1),0);M.forEach((X,Ft)=>{if(u){const{x0:FE,x1:NE}=X;X.x0=Z-NE,X.x1=Z-FE}const me=qm(X,r,c,Ft),Ka=new Km(me);B.wrap(ui(Ka.exportVisual().rawBBox()));const Jv=new Rh(Jm(X,a,u,st,Z)).exportVisual();Jv&&B.wrap(ui(Jv.rawBBox()))});let Q=g.x1,xt=g.y1,lt=g.width()+Q,qt=g.height()+xt;if(lt-=B.x2>g.width()?B.x2-g.width():0,qt-=B.y2>g.height()?B.y2-g.height():0,Q+=B.x1<0?-B.x1:0,xt+=B.y1<0?-B.y1:0,!1===p)return{sankey:Ni(Object.assign({},t,{offsetX:Q,offsetY:xt,width:lt,height:qt,autoLayout:!1})),legendBox:y,titleBox:m};if(this.resize&&p&&this.permutation)return this.resize=!1,{sankey:Ni(Object.assign({},t,{offsetX:Q,offsetY:xt,width:lt,height:qt},this.permutation)),legendBox:y,titleBox:m};const Po=Ni(Object.assign({},t,{offsetX:Q,offsetY:xt,width:lt,height:qt,autoLayout:!1})).columns.length,J=[],ut=(X,Ft)=>{let Ka=(o=>{let t=0;const e=o.length;for(let s=0;s<e;s++){const i=o[s];for(let n=s+1;n<e;n++){const r=o[n];sT(i,r)&&(t+=Math.min(i.value,r.value))}}return t})(Ni(Object.assign({},t,{offsetX:Q,offsetY:xt,width:lt,height:qt,loops:2,targetColumnIndex:X,reverse:Ft})).links);return J.push({crosses:Ka,reverse:Ft,targetColumnIndex:X}),0===Ka};for(let X=1;X<=Po-1&&!ut(X,!1)&&!ut(X,!0);X++);const Mt=Math.min.apply(null,J.map(X=>X.crosses)),Lt=J.find(X=>X.crosses===Mt);return this.permutation={targetColumnIndex:Lt.targetColumnIndex,reverse:Lt.reverse},{sankey:Ni(Object.assign({},t,{offsetX:Q,offsetY:xt,width:lt,height:qt},this.permutation)),legendBox:y,titleBox:m}}_render(t,e){const s=t||this.options,i=e||this,{labels:n,nodes:r,links:a,nodeColors:c,title:h,legend:d,rtl:u,disableKeyboardNavigation:p}=s;let f=s.data;const{width:g,height:m}=i.size,v=Object.assign({},f,{width:g,height:m,nodesOptions:r,title:h,legend:d}),{sankey:y,titleBox:C,legendBox:M}=this.calculateSankey(v,s);u&&(o=>{const{nodes:t,links:e}=o,s=Math.min(...t.map(r=>r.x0)),n=Math.max(...t.map(r=>r.x1))-s;t.forEach(r=>{const c=n-(r.x0-2*s);r.x0=n-(r.x1-2*s),r.x1=c}),e.forEach(r=>{const c=n-(r.x0-2*s);r.x1=n-(r.x1-2*s),r.x0=c})})(y);const{nodes:R,links:B,columns:st}=y;i.columns=st.map(J=>{const ut=J.slice();return ut.sort((Mt,Lt)=>Mt.y0-Lt.y0),ut});const Z=new et.A({clip:E.w.fromRect(new wt.A([0,0],[g,m]))});if(C){const ut=new Bh(Object.assign({},h,{drawingRect:C})).exportVisual();Z.append(ut)}if(y.circularLinks)return Z;const Q=new Map;i.nodesVisuals=Q;const xt={nodes:[],links:[],map:new Map};i.models=xt;const lt=[];R.forEach((J,ut)=>{const Mt=qm(J,r,c,ut);Mt.root=()=>i.element,Mt.navigatable=!0!==p;const Lt=new Km(Mt),Te=Lt.exportVisual();Te.links=[],Te.type=Ui,J.color=Mt.color,J.opacity=Mt.opacity,Te.dataItem=Object.assign({},f.nodes[ut],{color:Mt.color,opacity:Mt.opacity,sourceLinks:J.sourceLinks.map(X=>({sourceId:X.sourceId,targetId:X.targetId,value:X.value})),targetLinks:J.targetLinks.map(X=>({sourceId:X.sourceId,targetId:X.targetId,value:X.value}))}),Q.set(J.id,Te),xt.nodes.push(Lt),xt.map.set(J.id,Lt),Z.append(Te),Lt.createFocusHighlight(),Lt._highlight&<.push(Lt._highlight)});const qt=B.slice().sort((J,ut)=>ut.value-J.value),fe=[];i.linksVisuals=fe,qt.forEach(J=>{const{source:ut,target:Mt}=J,Lt=Q.get(ut.id),Te=Q.get(Mt.id),X=((o,t,e,s)=>{const i=x({},t,{link:o,opacity:o.opacity,color:o.color,colorType:o.colorType,visual:o.visual,highlight:o.highlight});return"source"===i.colorType?i.color=e.options.fill.color:"target"===i.colorType&&(i.color=s.options.fill.color),i})(J,a,Lt,Te);X.root=()=>i.element,X.navigatable=!0!==p,X.rtl=u;const Ft=new lT(X),me=Ft.exportVisual();me.type=Jn,me.dataItem={source:Object.assign({},Lt.dataItem),target:Object.assign({},Te.dataItem),value:J.value},me.linkOptions=X,fe.push(me),Lt.links.push(me),Te.links.push(me),xt.links.push(Ft),xt.map.set(`${ut.id}-${Mt.id}`,Ft),Ft.createFocusHighlight(),Ft._highlight&<.push(Ft._highlight),Z.append(me)});const Do=R.reduce((J,ut)=>Math.min(J,ut.x0),1/0),Po=R.reduce((J,ut)=>Math.max(J,ut.x1),0);
1if(R.forEach(J=>{const ut=Jm(J,n,u,Do,Po),Lt=new Rh(ut).exportVisual();Lt&&Z.append(Lt)}),M){const ut=new ia(Object.assign({},d,{rtl:u,drawingRect:M,nodes:R})).exportVisual();Z.append(ut)}if(0!==lt.length){const J=new et.A;J.append(...lt),Z.append(J)}return Z}exportVisual(t){const e=t&&t.options?x({},this.options,t.options):this.options,s={size:{width:_(t&&t.width)?t.width:this.size.width,height:_(t&&t.height)?t.height:this.size.height}};return this._render(e,s)}_setOptions(t){this.options=x({},this.options,t)}}const Oh={opacity:1,width:2,color:pt};w(tx,{title:{position:j},labels:{visible:!0,margin:{left:8,right:8},padding:0,border:{width:0},paintOrder:"stroke",stroke:{lineJoin:"round",width:1},offset:{left:0,top:0}},nodes:{width:24,padding:16,opacity:1,align:"stretch",offset:{left:0,top:0},focusHighlight:Object.assign({},Oh),labels:{ariaTemplate:({node:o})=>o.label.text}},links:{colorType:"static",opacity:.4,highlight:{opacity:.8,inactiveOpacity:.2},focusHighlight:Object.assign({},Oh),labels:{ariaTemplate:({link:o})=>`${o.source.label.text} to ${o.target.label.text}`}},tooltip:{followPointer:!1,delay:200}});const z=Object.freeze({seriesType:0,stacked:1,categoryAxisX:2,valueAxisY:3,seriesChange:4,areaMarginLeft:5,areaMarginRight:6,areaMarginTop:7,areaMarginBottom:8,areaBackground:9,titleText:10,titleFontName:11,titleFontSize:12,titleColor:13,subtitleText:14,subtitleFontName:15,subtitleFontSize:16,subtitleColor:17,seriesColor:18,seriesLabel:19,legendVisible:20,legendFontName:21,legendFontSize:22,legendColor:23,legendPosition:24,categoryAxisTitleText:25,categoryAxisTitleFontName:26,categoryAxisTitleFontSize:27,categoryAxisTitleColor:28,categoryAxisLabelsFontName:29,categoryAxisLabelsFontSize:30,categoryAxisLabelsColor:31,categoryAxisLabelsRotation:32,categoryAxisReverseOrder:33,valueAxisTitleText:34,valueAxisTitleFontName:35,valueAxisTitleFontSize:36,valueAxisTitleColor:37,valueAxisLabelsFormat:38,valueAxisLabelsFontName:39,valueAxisLabelsFontSize:40,valueAxisLabelsColor:41,valueAxisLabelsRotation:42}),Vh="12px",sx=[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],Ys=sx[0].value,ox="scatter",_T=["column","bar","line",ox],CT={type:"line",width:0};function to(o){return o&&_T.includes(o)}const eo=["string","date","number"],so=["number"],rx={bar:[{axisType:"category",types:eo},{axisType:"value",types:so}],column:[{axisType:"category",types:eo},{axisType:"value",types:so}],line:[{axisType:"category",types:eo},{axisType:"value",types:so}],pie:[{axisType:"category",types:eo},{axisType:"value",types:so,count:1}],scatter:[{axisType:"category",types:eo},{axisType:"value",types:so}]};function ax(o,t){return`${t||""} ${o||""}`.trim()}function Fh(o){const t=(o||"").indexOf(" ");return{size:o&&o.substring(0,t),name:o&&o.substring(t+1)}}const $s=(o,t,e)=>{const{size:s}=Fh(e);return o?ax(o,s||t):""},Zs=(o,t,e)=>{const{name:s}=Fh(e);return o?ax(s||t,o):""},io=o=>null!=o,lx=o=>{const t=structuredClone(o[0]);return t.forEach((e,s)=>{if(!io(e.value))for(let i=0;i<o.length;i++){const n=o[i][s].value;if(io(n)){e.value=n;break}}}),t},cx=(o,t)=>{const e=[],s=lx(o);t.types.forEach(n=>{s.forEach((r,a)=>{typeof r.value===n&&e.push(a)})});const i=e.findIndex(n=>{const r=o.map(a=>a[n].value);return new Set(r).size===r.length});return Math.max(i,0)},hx=(o,t)=>{const e=[],s=lx(o);return t.forEach(i=>
1{i.types.forEach(n=>{s.forEach((r,a)=>{typeof r.value===n&&e.push(a)})})}),e},dx=()=>structuredClone({columns:[],data:[],series:[],initialSeries:[],categoryAxis:[{categories:[],labels:{visible:!0,rotation:"auto"},title:{text:""}}],valueAxis:[{labels:{visible:!0,rotation:"auto"}}],area:{margin:{left:void 0,right:void 0,top:void 0,bottom:void 0}},title:{text:""},subtitle:{text:""},stack:!1}),ux=(o,t,e)=>{const s=dx();s.seriesType=t,s.data=o||[],s.legend={visible:!0,position:"bottom"};const i=rx[t];if(!i||!o.length)return s;const n=o[0].slice();s.columns=o[0].map(p=>String(p.field));const r=i.find(p=>"category"===p.axisType);let a=-1;r&&(a=e&&e.categoryAxis?s.columns.indexOf(e.categoryAxis):cx(o,r));const c=i.filter(p=>"value"===p.axisType);let h=hx(o,c);h.includes(a)&&(h.length>1?h=h.filter(p=>p!==a):a=-1);const d=[];h.forEach(p=>{const f=n[p],g=[];o.forEach(m=>{g.push(m[p].value)}),d.push(Object.assign({},{name:f.field,type:t,data:g,stack:!1,labels:{visible:!1}},t===ox?CT:{}))});const u=a>-1?o.map(p=>String(io(p[a].value)?p[a].value:" ")):[];return d.length&&(s.series=d.map((p,f)=>Object.assign({},p,{id:f})),s.initialSeries=structuredClone(s.series)),s.categoryAxis=[{categories:u,labels:{visible:!0,rotation:"auto"}}],s.categoryField=s.columns[a],s},Nh=(o,t,e)=>{const s=dx();s.seriesType=t,s.data=o||[];const i=rx[t];if(!i||!o.length)return s;const n=o[0].map(p=>p.field),r=i.find(p=>"category"===p.axisType);let a=-1;r&&(a=e&&e.categoryAxis?n.indexOf(e.categoryAxis):cx(o,r));const c=i.filter(p=>"value"===p.axisType);let h=[];h=e&&e.valueAxis?[n.indexOf(e.valueAxis)]:hx(o,c),h.includes(a)&&h.length>1&&(h=h.filter(p=>p!==a)),"number"==typeof c[0].count&&(h=h.slice(0,c[0].count));const d=a>-1?o.map(p=>String(p[a].value)):[],u=[];return o.forEach(p=>{const f={};h.forEach(g=>{const m=p[g];f[m.field]=m.value||0,f[p[a].field]=p[a].value||" "}),u.push(f)}),s.columns=n,s.categoryAxis=[{categories:d,title:{text:""}}],s.series=[{id:0,data:u,type:t,name:n[a],labels:{visible:!0},categoryField:n[a],field:n[h[0]]}],s.categoryField=n[a],s.valueField=n[h[0]],s.initialSeries=structuredClone(s.series),s};function zh(o,t){return(to(t)?ux:Nh)(o,t)}function na(o,t){const e=structuredClone(t);if(e.legend=o.legend,e.area=o.area,e.title=o.title,e.subtitle=o.subtitle,e.series.length===o.series.length)for(let s=0;s<e.series.length;s++)e.series[s].color=o.series[s].color,e.series[s].labels=o.series[s].labels;return o.series.every(s=>s.labels&&s.labels.visible)&&to(e.seriesType)&&to(o.seriesType)&&e.series.forEach(s=>{s.labels=s.labels||{},s.labels.visible=!0}),e}function px(o,t,e){const s=Object.assign({},o);switch(t){case z.seriesType:return zh(s.data,e);case z.stacked:return s.series=s.series.map(i=>Object.assign({},i,{stack:e})),s.stack=e,s;case z.categoryAxisX:return s.seriesType&&to(s.seriesType)?na(s,ux(s.data,s.seriesType,{categoryAxis:e})):"pie"===s.seriesType?na(s,Nh(s.data,s.seriesType,{categoryAxis:e})):s;case z.valueAxisY:return"pie"===s.seriesType?na(s,Nh(s.data,s.seriesType,{categoryAxis:s.categoryField,valueAxis:e})):s;case z.seriesChange:return s.series=e,s;case z.areaMarginLeft:return s.area=Object.assign({},s.area,{margin:Object.assign({},s.area&&s.area.margin||{},{left:e})}),s;case z.areaMarginRight:return s.area=Object.assign({},s.area,{margin:Object.assign({},s.area&&s.area.margin||{},{right:e})}),s;case z.areaMarginTop:return s.area=Object.assign({},s.area,{margin:Object.assign({},s.area&&s.area.margin||{},{top:e})}),s;case z.areaMarginBottom:return s.area=Object.assign({},s.area,{margin:Object.assign({},s.area&&s.area.margin||{},{bottom:e})}),s;case z.areaBackground:return s.area=Object.assign({},s.area,{background:e}),s;case z.titleText:return s.title=Object.assign({},s.title,{text:e}),s;case z.titleFontName:return s.title=Object.assign({},s.title,{font:$s(e,"20px",s.title&&s.title.font)}),s;case z.titleFontSize:return s.title=Object.assign({},s.title,{font:Zs(e,Ys,s.title&&s.title.font)}),s;case z.titleColor:return s.title=Object.assign({},s.title,{color:e}),s;case z.subtitleText:return s.subtitle=Object.assign({},s.subtitle,{text:e}),s;case z.subtitleFontName:return s.subtitle=Object.assign({},s.subtitle,{font:$s(e,"16px",s.subtitle&&s.subtitle.font)}),s;case z.subtitleFontSize:return s.subtitle=Object.assign({},s.subtitle,{font:Zs(e,Ys,s.subtitle&&s.subtitle.font)}),s;case z.subtitleColor:return s.subtitle=Object.assign({},s.subtitle,{color:e}),s;case z.seriesColor:return s.series=s.series.map(i=>Object.assign({},i,{color:e.seriesName===i.name?e.color:i.color})),s;case z.seriesLabel:return s.series=s.series.map(i=>e.all||e.seriesName===i.name?Object.assign({},i,{labels:{visible:e.visible}}):i),s;case z.legendVisible:return s.legend=Object.assign({},s.legend,{visible:e}),s;case z.legendFontName:{const i=s.legend||{};return s.legend=Object.assign({},i,{labels:Object.assign({},i.labels,{font:$s(e,Vh,i.labels&&i.labels.font)})}),s}case z.legendFontSize:{const i=s.legend||{};return s.legend=Object.assign({},i,{labels:Object.assign({},i.labels,{font:Zs(e,Ys,i.labels&&i.labels.font)})}),s}case z.legendColor:{const i=s.legend||{};return s.legend=Object.assign({},i,{labels:Object.assign({},i.labels,{color:e})}),s}case z.legendPosition:return s.legend=Object.assign({},s.legend,{position:e}),s;case z.categoryAxisTitleText:return s.categoryAxis=(s.categoryAxis||[]).map(i=>Object.assign({},i,{title:Object.assign({},i.title,{text:e})})),s;case z.categoryAxisTitleFontName:return s.categoryAxis=(s.categoryAxis||[]).map(i=>Object.assign({},i,{title:Object.assign({},i.title,{font:$s(e,"16px",i.title&&i.title.font)})}
1)),s;case z.categoryAxisTitleFontSize:return s.categoryAxis=(s.categoryAxis||[]).map(i=>Object.assign({},i,{title:Object.assign({},i.title,{font:Zs(e,Ys,i.title&&i.title.font)})})),s;case z.categoryAxisTitleColor:return s.categoryAxis=(s.categoryAxis||[]).map(i=>Object.assign({},i,{title:Object.assign({},i.title,{color:e})})),s;case z.categoryAxisLabelsFontName:return s.categoryAxis=(s.categoryAxis||[]).map(i=>Object.assign({},i,{labels:Object.assign({},i.labels,{font:$s(e,Vh,i.labels&&i.labels.font)})})),s;case z.categoryAxisLabelsFontSize:return s.categoryAxis=(s.categoryAxis||[]).map(i=>Object.assign({},i,{labels:Object.assign({},i.labels,{font:Zs(e,Ys,i.labels&&i.labels.font)})})),s;case z.categoryAxisLabelsColor:return s.categoryAxis=(s.categoryAxis||[]).map(i=>Object.assign({},i,{labels:Object.assign({},i.labels,{color:e})})),s;case z.categoryAxisLabelsRotation:{const i=io(e)?e:"auto";return s.categoryAxis=(s.categoryAxis||[]).map(n=>Object.assign({},n,{labels:Object.assign({},n.labels,{rotation:i})})),s}case z.categoryAxisReverseOrder:return s.categoryAxis=(s.categoryAxis||[]).map(i=>Object.assign({},i,{reverse:e})),s;case z.valueAxisTitleText:return s.valueAxis=s.valueAxis&&0!==s.valueAxis.length?(s.valueAxis||[]).map(i=>Object.assign({},i,{title:Object.assign({},i.title,{text:e})})):[{title:{text:e}}],s;case z.valueAxisTitleFontName:return s.valueAxis=(s.valueAxis||[]).map(i=>Object.assign({},i,{title:Object.assign({},i.title,{font:$s(e,"16px",i.title&&i.title.font)})})),s;case z.valueAxisTitleFontSize:return s.valueAxis=(s.valueAxis||[]).map(i=>Object.assign({},i,{title:Object.assign({},i.title,{font:Zs(e,Ys,i.title&&i.title.font)})})),s;case z.valueAxisTitleColor:return s.valueAxis=(s.valueAxis||[]).map(i=>Object.assign({},i,{title:Object.assign({},i.title,{color:e})})),s;case z.valueAxisLabelsFormat:return s.valueAxis=(s.valueAxis||[]).map(i=>Object.assign({},i,{labels:Object.assign({},i.labels,{format:e})})),s;case z.valueAxisLabelsFontName:return s.valueAxis=(s.valueAxis||[]).map(i=>Object.assign({},i,{labels:Object.assign({},i.labels,{font:$s(e,Vh,i.labels&&i.labels.font)})})),s;case z.valueAxisLabelsFontSize:return s.valueAxis=(s.valueAxis||[]).map(i=>Object.assign({},i,{labels:Object.assign({},i.labels,{font:Zs(e,Ys,i.labels&&i.labels.font)})})),s;case z.valueAxisLabelsColor:return s.valueAxis=(s.valueAxis||[]).map(i=>Object.assign({},i,{labels:Object.assign({},i.labels,{color:e})})),s;case z.valueAxisLabelsRotation:{const i=io(e)?e:"auto";return s.valueAxis=(s.valueAxis||[]).map(n=>Object.assign({},n,{labels:Object.assign({},n.labels,{rotation:i})})),s}default:return s}}const AT=Object.freeze({windowTitle:"Chart Preview",exportButton:"Export",exportPDFButton:"PDF File",exportSVGButton:"SVG File",exportPNGButton:"PNG File",tabChart:"Chart",tabData:"Data",tabFormat:"Format",barChart:"Bar Chart",barChartBar:"Bar",barChartStackedBar:"Stacked Bar",barChart100StackedBar:"100% Stacked Bar",pieChart:"Pie Chart",pieChartPie:"Pie",columnChart:"Column Chart",columnChartColumn:"Column",columnChartStackedColumn:"Stacked Column",columnChart100StackedColumn:"100% Stacked Column",lineChart:"Line Chart",lineChartLine:"Line",lineChartStackedLine:"Stacked Line",lineChart100StackedLine:"100% Stacked Line",scatterChart:"Scatter Chart",scatterChartScatter:"Scatter",configuration:"Configuration",configurationCategoryAxis:"Category Axis",configurationXAxis:"X Axis",configurationValueAxis:"Value Axis",configurationSeries:"Series",configurationSeriesAdd:"Add",formatChartArea:"Chart Area",formatChartAreaMargins:"Margins",formatChartAreaMarginsAuto:"Auto",formatChartAreaMarginsLeft:"Left",formatChartAreaMarginsRight:"Right",formatChartAreaMarginsTop:"Top",formatChartAreaMarginsBottom:"Bottom",formatChartAreaBackground:"Backgroun
1d",formatChartAreaBackgroundColor:"Color",formatTitle:"Title",formatTitleApplyTo:"Apply to",formatTitleChartTitle:"Chart Title",formatTitleChartSubtitle:"Chart Subtitle",formatTitleLabel:"Title",formatTitleFont:"Font",formatTitleFontPlaceholder:"(inherited font)",formatTitleSize:"Size",formatTitleSizePlaceholder:"px",formatTitleColor:"Color",formatSeries:"Series",formatSeriesApplyTo:"Apply to",formatSeriesAllSeries:"All Series",formatSeriesColor:"Color",formatSeriesShowLabels:"Show Labels",formatLegend:"Legend",formatLegendShowLegend:"Show Legend",formatLegendFont:"Font",formatLegendFontPlaceholder:"(inherited font)",formatLegendSize:"Size",formatLegendSizePlaceholder:"px",formatLegendColor:"Color",formatLegendPosition:"Position",formatLegendPositionTop:"Top",formatLegendPositionBottom:"Bottom",formatLegendPositionLeft:"Left",formatLegendPositionRight:"Right",formatCategoryAxis:"Category Axis",formatXAxis:"X Axis",formatCategoryAxisTitle:"Title",formatCategoryAxisTitlePlaceholder:"Axis Title",formatCategoryAxisTitleFont:"Font",formatCategoryAxisTitleFontPlaceholder:"(inherited font)",formatCategoryAxisTitleSize:"Size",formatCategoryAxisTitleSizePlaceholder:"px",formatCategoryAxisTitleColor:"Color",formatCategoryAxisLabels:"Labels",formatCategoryAxisLabelsFont:"Font",formatCategoryAxisLabelsFontPlaceholder:"(inherited font)",formatCategoryAxisLabelsSize:"Size",formatCategoryAxisLabelsSizePlaceholder:"px",formatCategoryAxisLabelsColor:"Color",formatCategoryAxisLabelsRotation:"Rotation",formatCategoryAxisLabelsRotationAuto:"Auto",formatCategoryAxisLabelsReverseOrder:"Reverse Order",formatValueAxis:"Value Axis",formatYAxis:"Y Axis",formatValueAxisTitle:"Title",formatValueAxisTitlePlaceholder:"Axis Title",formatValueAxisTitleFont:"Font",formatValueAxisTitleFontPlaceholder:"(inherited font)",formatValueAxisTitleSize:"Size",formatValueAxisTitleSizePlaceholder:"px",formatValueAxisTitleColor:"Color",formatValueAxisLabels:"Labels",formatValueAxisLabelsFormat:"Label Format",formatValueAxisLabelsFormatText:"Text",formatValueAxisLabelsFormatNumber:"Number",formatValueAxisLabelsFormatCurrency:"Currency",formatValueAxisLabelsFormatPercent:"Percent",formatValueAxisLabelsFont:"Font",formatValueAxisLabelsFontPlaceholder:"(inherited font)",formatValueAxisLabelsSize:"Size",formatValueAxisLabelsSizePlaceholder:"px",formatValueAxisLabelsColor:"Color",formatValueAxisLabelsRotation:"Rotation",formatValueAxisLabelsRotationAuto:"Auto"}),Uh=(Object.freeze({getWizardDataFromDataRows:function fT(o){const t=[];return o.forEach(e=>{const{dataItem:s,dataColumns:i}=e,n=[];i.forEach(r=>{n.push({field:r.title||r.field,value:Ee(r.field)(s)})}),t.push(n)}),t},ActionTypes:z,createInitialState:function wT(o,t,e){const s=zh(o,e&&e.seriesType||t);return typeof(e&&e.stack)<"u"?px(s,z.stacked,e.stack):s},createState:zh,fontNames:sx,fontSizes:[{text:"10",value:"10px"},{text:"12",value:"12px"},{text:"14",value:"14px"},{text:"16",value:"16px"},{text:"20",value:"20px"},{text:"28",value:"28px"},{text:"42",value:"42px"},{text:"56",value:"56px"}],isCategorical:to,mergeStates:na,parseFont:Fh,updateState:px,messages:AT}),"Arial, Helvetica, sans-serif"),ST="11px "+Uh,oa="12px "+Uh,fx="16px "+Uh,mx="transparent",ji={type:Fe},ra={type:Ve},Bt=Object.assign({},ra,{markers:{visible:!1},highlight:{visible:!1}}),vx=()=>({icon:{border:{width:1}},label:{font:oa,padding:3},line:{length:10,width:2},legendItem:Bt,visible:!0}),yx=()=>({highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},legendItem:ra,opacity:.4}),bx=()=>({highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},legendItem:ra,opacity:.4}),_x=()=>({outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2},legendItem:Bt}),Cx=()=>({gap:1.5,spacing:.4,target:{color:"#ff0000"},legendItem:Bt}),wx=()=>({width:2,legendItem:ji}),Ax=()=>({line:{opacity:1,width:0},markers:{size:6,visible:!1},legendItem:ra,opacity:.5}),Sx=()=>({markers:{visible:!1},legendItem:ji,width:2}),kx=()=>({gap:.5,line:{color:"#000",width:1},legendItem:Bt,spacing:.4}),Tx=()=>({labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}},legendItem:Bt}),zT=Tx,Gi=o=>Object.assign({color:yd,trendline:{},markers:{visible:!1},width:1,dashType:"longDash",legendItem:ji},o),HT=o=>({visible:!0,labels:{font:ST},overlay:o.gradients?{}:{gradient:"none"},area:yx(),rangeArea:bx(),verticalRangeArea:bx(),bar:{gap:1.5,spacing:.4,legendItem:Bt},boxPlot:_x(),bubble:{border:{width:0},labels:{background:mx},legendItem:Bt,opacity:.6},bullet:Cx(),candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},legendItem:Bt,spacing:.3},column:{gap:1.5,spacing:.4,legendItem:Bt},heatmap:{labels:{color:"",background:mx,visible:!0},highlight:{border:{width:0}},legendItem:Bt},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}},legendItem:Bt},donut:{margin:1,legendItem:Bt},funnel:Tx(),pyramid:zT(),horizontalWaterfall:kx(),line:wx(),notes:vx(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},legendItem:Bt,spacing:.3},radarArea:Ax(),radarLine:Sx(),radarColumn:{legendItem:Bt},polarArea:Ax(),polarLine:Sx(),polarScatter:{legendItem:ji},rangeBar:{gap:1.5,spacing:.4,legendItem:Bt},rangeColumn:{gap:1.5,spacing:.4,legendItem:Bt},scatter:{legendItem:ji},scatterLine:{width:1,legendItem:ji},verticalArea:yx(),verticalBoxPlot:_x(),verticalBullet:Cx(),verticalLine:wx(),waterfall:kx(),linearTrendline:Gi(),exponentialTrendline:Gi({style:"smooth"}),logarithmicTrendline:Gi({style:"smooth"}),polynomialTrendline:Gi({style:"smooth"}),powerTrendline:Gi({style:"smooth"}),movingAverageTrendline:Gi()}),Mx=(o={})=>({axisDefaults:{labels:{font:oa},notes:vx(),title:{font:fx,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:HT(o),title:{font:fx},subtitle:{font:oa},legend:{labels:{font:oa}}});var Ex=S(7053),WT=S(77793),YT=S(64059),$T=S(29563),ZT=S(84898);function Dx(o,t){let e=function QT(o){const t=new $T.A({skipBaseHref:!0}),e=o.clippedBBox();let s=o;if(e){const n=e.getOrigin(),r=new et.A;r.transform((0,vt.A)().translate(-n.x,-n.y)),r.children.push(o),s=r}t.load([s]);const i=`<?xml version='1.0' ?><svg xmlns='${ZT.Rc}' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>${t.render()}</svg>`;return t.destroy(),i}(o);return(!t||!t.raw)&&(e="data:image/svg+xml;base64,"+(0,WT.A)(e)),(0,YT.A)().resolve(e)}var aa=S(65987),KT=S(21413),qT=S(84412),Px=S(84572),JT=S(18359),Hh=S(13798),Lx=S(88141),pe=S(17252),t2=S(61596),la=S(48936),Ix=S(34612);S(92924);const jh=["content"];function e2(o,t){if(1&o&&(l.j41(0,"div",1),l.EFF(1),l.k0s()),2&o){const e=l.XpG();l.Y8G("ngStyle",e.style),l.R7$(),l.SpI(" ",e.value," ")}}function s2(o,t){if(1&o&&l.nrm(0,"kendo-chart-crosshair-tooltip",1),2&o){const e=t.$implicit,s=l.XpG();l.Y8G("key",e)("popupSettings",s.popupSettings)}}function i2(o,t){}function n2(o,t){if(1&o&&l.DNE(0,i2,0,0,"ng-template",5),2&o){const e=l.XpG(2);l.Y8G("ngTemplateOutlet",e.seriesTooltipTemplateRef)("ngTemplateOutletContext",e.seriesTooltipContext)}}function o2(o,t){}function r2(o,t){if(1&o&&l.DNE(0,o2,0,0,"ng-template",5),2&o){const e=l.XpG(2);l.Y8G("ngTemplateOutlet",e.seriesSharedTooltipTemplateRef)("ngTemplateOutletContext",e.seriesSharedTooltipContext)}}function a2(o,t){if(1&o&&(l.j41(0,"div",3),l.DNE(1,n2,1,2,null,4)(2,r2,1,2,null,4),l.k0s()),2&o){const e=l.XpG();l.Y8G("ngClass",e.popupClasses)("ngStyle",e.style),l.R7$(),l.Y8G("ngIf",!e.shared),l.R7$(),l.Y8G("ngIf",e.shared)}}function l2(o,t){1&o&&l.nrm(0,"span",6),2&o&&l.Y8G("innerHTML",t.formattedValue,l.
1npT)}function c2(o,t){if(1&o&&(l.j41(0,"td"),l.nrm(1,"span",8),l.k0s()),2&o){const e=l.XpG().$implicit;l.R7$(),l.xc7("background-color",e.series.color)}}function h2(o,t){if(1&o&&(l.qex(0),l.EFF(1),l.bVm()),2&o){const e=l.XpG(2).$implicit;l.R7$(),l.JRh(e.series.name)}}function d2(o,t){1&o&&(l.qex(0),l.EFF(1,"\xa0"),l.bVm())}function u2(o,t){if(1&o&&(l.j41(0,"td"),l.DNE(1,h2,2,1,"ng-container",4)(2,d2,2,0,"ng-container",4),l.k0s()),2&o){const e=l.XpG().$implicit;l.R7$(),l.Y8G("ngIf",void 0!==e.series.name),l.R7$(),l.Y8G("ngIf",void 0===e.series.name)}}function p2(o,t){}function g2(o,t){if(1&o&&(l.j41(0,"tr"),l.DNE(1,c2,2,2,"td",4)(2,u2,3,2,"td",4),l.j41(3,"td"),l.DNE(4,p2,0,0,"ng-template",5),l.k0s()()),2&o){const e=t.$implicit,s=l.XpG(),i=s.colorMarker,n=s.nameColumn;l.R7$(),l.Y8G("ngIf",i),l.R7$(),l.Y8G("ngIf",n),l.R7$(2),l.Y8G("ngTemplateOutlet",e.template)("ngTemplateOutletContext",e)}}function f2(o,t){if(1&o&&(l.j41(0,"table")(1,"tr")(2,"th"),l.EFF(3),l.k0s()(),l.DNE(4,g2,5,4,"tr",7),l.k0s()),2&o){const e=t.points,s=t.categoryText,i=t.colspan;l.R7$(2),l.BMQ("colspan",i),l.R7$(),l.SpI(" ",s," "),l.R7$(),l.Y8G("ngForOf",e)}}const m2=["surface"];function x2(o,t){}function v2(o,t){if(1&o&&(l.j41(0,"div",7),l.DNE(1,x2,0,0,"ng-template",8),l.k0s()),2&o){const e=l.XpG();l.Y8G("ngStyle",e.donutCenterStyle),l.R7$(),l.Y8G("ngTemplateOutlet",e.donutCenterTemplate.templateRef)}}function y2(o,t){1&o&&l.nrm(0,"div",9)}function b2(o,t){1&o&&l.nrm(0,"div",6)}function _2(o,t){1&o&&l.nrm(0,"div",6)}const C2=["breadcrumb"];function w2(o,t){}function A2(o,t){if(1&o&&l.DNE(0,w2,0,0,"ng-template",6),2&o){const e=l.XpG(2);
1l.Y8G("ngTemplateOutlet",e.nodeTooltipTemplateRef)("ngTemplateOutletContext",e.nodeTooltipContext)}}function S2(o,t){}function k2(o,t){if(1&o&&l.DNE(0,S2,0,0,"ng-template",6),2&o){const e=l.XpG(2);l.Y8G("ngTemplateOutlet",e.linkTooltipTemplateRef)("ngTemplateOutletContext",e.linkTooltipContext)}}function T2(o,t){if(1&o&&(l.j41(0,"div",3)(1,"div",4),l.DNE(2,A2,1,2,null,5)(3,k2,1,2,null,5),l.k0s()()),2&o){const e=l.XpG();l.Y8G("ngStyle",e.style),l.R7$(2),l.Y8G("ngIf",e.isNode),l.R7$(),l.Y8G("ngIf",e.isLink)}}function M2(o,t){if(1&o&&(l.j41(0,"div",7),l.nrm(1,"div",8),l.j41(2,"span",7),l.EFF(3),l.k0s(),l.j41(4,"span",7),l.EFF(5),l.k0s()()),2&o){const e=t.color,s=t.label,i=t.value,n=l.XpG();l.Y8G("ngStyle",n.tooltipStyle),l.R7$(),l.Y8G("color",e),l.R7$(),l.Y8G("ngStyle",n.textStyle),l.R7$(),l.JRh(s.text),l.R7$(),l.Y8G("ngStyle",n.textStyle),l.R7$(),l.JRh(n.formatUnits(i))}}function E2(o,t){if(1&o&&(l.j41(0,"div",7),l.nrm(1,"div",8),l.j41(2,"span",7),l.EFF(3),l.k0s(),l.nrm(4,"kendo-icon-wrapper",9)(5,"div",8),l.j41(6,"span",7),l.EFF(7),l.k0s(),l.j41(8,"span",7),l.EFF(9),l.k0s()()),2&o){const e=t.source,s=t.target,i=t.value,n=l.XpG();l.Y8G("ngStyle",n.tooltipStyle),l.R7$(),l.Y8G("color",e.color),l.R7$(),l.Y8G("ngStyle",n.textStyle),l.R7$(),l.JRh(null==e.label?null:e.label.text),l.R7$(),l.Y8G("name",n.arrowIcon.name)("svgIcon",n.arrowIcon),l.R7$(),l.Y8G("color",s.color),l.R7$(),l.Y8G("ngStyle",n.textStyle),l.R7$(),l.JRh(null==s.label?null:s.label.text),l.R7$(),l.Y8G("ngStyle",n.textStyle),l.R7$(),l.JRh(n.formatUnits(i))}}const D2=["instance"];function P2(o,t){1&o&&l.nrm(0,"div",4)}const I2=Hu.prototype.options.labels.dateFormats,Bx={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(xn.prototype.options.labels.dateFormats,Bx),Object.assign(I2,Bx);let Gh=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(l.C4Q,8))},o.\u0275dir=l.FsC({type:o,selectors:[["","kendoChartDonutCenterTemplate",""]],standalone:!0}),o})();class R2{constructor(t,e){this.sender=t,this.options=e}}let bt=(()=>{class o{constructor(){this.source=new KT.B,this.onItemChange$=this.source.asObservable()}notify(e){this.source.next(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=l.jDH({token:o,factory:o.\u0275fac}),o})();const Xh=1e3/60;class Wh{constructor(t,e){this.key=t,this.value=e}}let b=(()=>{class o{constructor(e){this.ngZone=e,this.store={},this.source=new qT.t({}),this.initSource()}initSource(){this.onFastChange$=this.source.asObservable(),this.onChange$=this.onFastChange$.pipe((0,Hh.Z)(Xh))}push(e){this.store=e,this.next()}notify(e){this.set(e.key,e.value),this.next()}set(e,s){let i=this.store;const n=e.split(".");let r=n.shift();for(;n.length>0;)i=i[r]=i[r]||{},r=n.shift();i[r]=s}next(){this.ngZone.runOutsideAngular(()=>{this.source.next(this.store)})}}return o.\u0275fac=function(e){return new(e||o)(l.KVO(l.SKi))},o.\u0275prov=l.jDH({token:o,factory:o.\u0275fac}),o})();function ca(o,t){for(const e in o){if(!Object.hasOwnProperty.call(o,e))continue;const s=o[e].currentValue;void 0===s?delete t[e]:t[e]=s}}function ha(o){const t={};for(const e in o)Object.hasOwnProperty.call(o,e)&&(t[e]=new l.FRM(null,o[e],!1));return t}let Xi=(()=>{class o{constructor(e,s){this.configurationService=e,this.collectionService=s,this.options={},this.hidden=!1,this.subscription=e.onFastChange$.subscribe(i=>{this.options=i,this.notify()})}ngOnChanges(e){const s=this.configurationService.store;ca(e,s),this.configurationService.push(s)}notifyChanges(e){this.ngOnChanges(ha(e))}ngOnDestroy(){this.subscription.unsubscribe()}notify(){this.collectionService&&this.collectionService.notify(new R2(this,this.options))}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275dir=l.FsC({type:o,features:[l.OA$]}),o})(),T=(()=>{class o{constructor(e,s){if(this.configKey=e,this.configurationService=s,this.store={},void 0===e)throw new Error("Configuration key not set")}ngOnDestroy(){this.store=void 0,this.notify()}ngOnChanges(e){ca(e,this.store),this.notify()}notifyChanges(e){this.ngOnChanges(ha(e))}markAsVisible(){this.store.visible=!0,this.notify()}
1notify(){this.configurationService.notify(new Wh(this.configKey,this.store))}}return o.\u0275fac=function(e){l.QTQ()},o.\u0275dir=l.FsC({type:o,features:[l.OA$]}),o})(),Wi=(()=>{class o extends T{constructor(e){super("tooltip",e),this.configurationService=e,this.markAsVisible()}get seriesTooltipTemplateRef(){return this.seriesTooltipTemplate}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-tooltip"]],contentQueries:function(e,s,i){if(1&e&&l.wni(i,l.C4Q,5),2&e){let n;l.mGM(n=l.lsd())&&(s.seriesTooltipTemplate=n.first)}},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Yh=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(l.C4Q,8))},o.\u0275dir=l.FsC({type:o,selectors:[["","kendoChartDrilldownSeries",""]],standalone:!0}),o})();const Ox=o=>void 0!==o&&!o;let ge=(()=>{class o extends Xi{constructor(e,s){super(e,s),this.configurationService=e,this.collectionService=s}toggleVisibility(){this.options.visible=Ox(this.options.visible),this.notify()}togglePointVisibility(e){const s=this.options.pointVisibility=this.options.pointVisibility||{};s[e]=Ox(s[e]),this.notify()}get seriesTooltipTemplateRef(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item"]],contentQueries:function(e,s,i){if(1&e&&(l.wni(i,Wi,5),l.wni(i,Yh,5)),2&e){let n;l.mGM(n=l.lsd())&&(s.seriesTooltip=n.first),l.mGM(n=l.lsd())&&(s.drilldownTemplate=n.first)}},inputs:{aggregate:"aggregate",autoFit:"autoFit",axis:"axis",border:"border",categoryAxis:"categoryAxis",categoryField:"categoryField",closeField:"closeField",color:"color",colorField:"colorField",connectors:"connectors",currentField:"currentField",dashType:"dashType",data:"data",downColor:"downColor",downColorField:"downColorField",drilldownField:"drilldownField",dynamicHeight:"dynamicHeight",dynamicSlope:"dynamicSlope",errorHighField:"errorHighField",errorLowField:"errorLowField",explodeField:"explodeField",field:"field",fromField:"fromField",gap:"gap",highField:"highField",holeSize:"holeSize",line:"line",lowField:"lowField",lowerField:"lowerField",margin:"margin",maxSize:"maxSize",mean:"mean",meanField:"meanField",median:"median",medianField:"medianField",minSize:"minSize",missingValues:"missingValues",name:"name",neckRatio:"neckRatio",negativeColor:"negativeColor",negativeValues:"negativeValues",noteTextField:"noteTextField",opacity:"opacity",openField:"openField",outliersField:"outliersField",overlay:"overlay",padding:"padding",q1Field:"q1Field",q3Field:"q3Field",segmentSpacing:"segmentSpacing",size:"size",sizeField:"sizeField",spacing:"spacing",stack:"stack",startAngle:"startAngle",style:"style",summaryField:"summaryField",target:"target",toField:"toField",type:"type",upperField:"upperField",visible:"visible",visibleInLegend:"visibleInLegend",visibleInLegendField:"visibleInLegendField",visual:"visual",width:"width",whiskers:"whiskers",xAxis:"xAxis",xErrorHighField:"xErrorHighField",xErrorLowField:"xErrorLowField",xField:"xField",yAxis:"yAxis",yErrorHighField:"yErrorHighField",yErrorLowField:"yErrorLowField",yField:"yField",zIndex:"zIndex",trendline:"trendline",for:"for",legendItem:"legendItem",errorBars:"errorBars",extremes:"extremes",highlight:"highlight",labels:"labels",markers:"markers",notes:"notes",outliers:"outliers",tooltip:"tooltip"},standalone:!0,features:[l.Jv_([b]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})();const O2={horizontal:"fit",vertical:"fit"};let $h=(()=>{class o{constructor(e,s){this.popupService=e,this.localizationService=s,this.style={},this.popupRef=null}get active(){return null!==this.popupRef}show(e){const s=e.anchor.align,i=this.position(e.anchor.point);if(this.style=e.style,this.popupRef){const n=this.popupRef.popup.instance;n.offset=i,n.popupAlign=s}else this.popupRef=this.popupService.open(Object.assign({offset:i,popupAlign:s,animate:this.animate,content:this.templateRef,collision:O2,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()}onInit(){}hide(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}ngOnDestroy(){this.hide()}position(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;const s=this.popupSettings.appendTo.element.nativeElement,i=s.getBoundingClientRect(),{scrollLeft:n,scrollTop:r}=this.scrollOffset(s);return{left:e.left-i.left-n,top:e.top-i.top-r}}scrollOffset(e){if(!e)return null;let s=e.scrollLeft,i=e.scrollTop,n=e.parentElement;for(;n;)s+=n.scrollLeft,i+=n.scrollTop,n=n.parentElement;return{scrollLeft:s,scrollTop:i}}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(pe.OQ),l.rXU(At.Pi))},o.\u0275dir=l.FsC({type:o}),o})();function Zh(){if((0,Et.nm)())return new l.aKT(document.body)}let Yi=(()=>{class o extends $h{constructor(e,s){super(e,s),this.animate=!1}show(e){super.show(e),this.value=e.value,this.popupRef.popup.changeDetectorRef.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(pe.OQ),l.rXU(At.Pi))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-crosshair-tooltip"]],viewQuery:function(e,s){if(1&e&&l.GBs(jh,7),2&e){let i;l.mGM(i=l.lsd())&&(s.templateRef=i.first)}},inputs:{key:"key",popupSettings:"popupSettings"},standalone:!0,features:[l.Jv_([pe.OQ,{provide:pe.Fy,useFactory:Zh}]),l.Vt3,l.aNF],decls:2,vars:0,consts:[["content",""],[1,"k-chart-tooltip","k-chart-crosshair-tooltip",3,"ngStyle"]],template:function(e,s){1&e&&l.DNE(0,e2,2,2,"ng-template",null,0,l.C5r)},dependencies:[it.B3],encapsulation:2}),o})();const Vx=["categoryAxis","valueAxis","xAxis","yAxis"];let Cs=(()=>{class o{constructor(){this.tooltipKeys=[],this.tooltipsMap={}}show(e){const s=this.crossahirTooltipComponents.toArray(),i=e.axisName,n=e.axisIndex;for(let r=0;r<s.length;r++)if(s[r].key===i+n){s[r].show(e);break}}hide(){const e=this.crossahirTooltipComponents.toArray();for(let s=0;s<e.length;s++)e[s].hide()}get active(){return this.tooltipKeys.length>0}createCrosshairTooltips(e){const s=this.mapTooltips(e),i=this.tooltipsMap;for(const n in i)s[n]||(this.removeTooltip(n),delete i[n]);for(const n in s)i[n]||(i[n]=s[n],this.tooltipKeys.push(n))}removeTooltip(e){const s=this.tooltipKeys;for(let i=0;i<s.length;i++)if(s[i]===e){s.splice(i,1);break}}mapTooltips(e){const s={};for(let i=0;i<Vx.length;i++){const n=this.axesCrosshairTooltipOptions(e,Vx[i]);for(let r=0;r<n.length;r++){const a=n[r];s[a.name+a.index]=a}}return s}axesCrosshairTooltipOptions(e,s){const i=[];if(e[s]){const n=[].concat(e[s]);for(let r=0;r<n.length;r++){const a=(n[r].crosshair||{}).tooltip;a&&a.visible&&i.push({index:r,name:s})}}return i}}return o.\u0275fac=function(e){return new(e||o)}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-crosshair-tooltips-container"]],viewQuery:function(e,s){if(1&e&&l.GBs(Yi,5),2&e){let i;l.mGM(i=l.lsd())&&(s.crossahirTooltipComponents=i)}},inputs:{popupSettings:"popupSettings"},standalone:!0,features:[l.aNF],decls:1,vars:1,consts:[[3,"key","popupSettings",4,"ngFor","ngForOf"],[3,"key","popupSettings"]],template:function(e,s){1&e&&l.DNE(0,s2,1,2,"kendo-chart-crosshair-tooltip",0),2&e&&l.Y8G("ngForOf",s.tooltipKeys)},dependencies:[it.pM,Yi],encapsulation:2}),o})(),ws=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(l.C4Q,8))},o.\u0275dir=l.FsC({type:o,selectors:[["","kendoChartSeriesTooltipTemplate",""]],standalone:!0}),o})(),$i=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(l.C4Q,8))},o.\u0275dir=l.FsC({type:o,selectors:[["","kendoChartSharedTooltipTemplate",""]],standalone:!0}),o})();class Fx{constructor(t,e,s){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.template=s,this.point=t,this.format=e}get formattedValue(){return this.format?this.point.formatValue(this.format):String(this.value)}}function Qh(o,t){let e=o;for(;e&&e!==t;)e=e.parentNode;return!!e}let Qs=(()=>{class o{setTemplate(e){this.template=e}getTemplate(e){return this.seriesTemplates&&this.seriesTemplates[e]?this.seriesTemplates[e]:this.template}setSeriesTemplates(e){this.seriesTemplates=e}setSharedTemplate(e){this.sharedTemplate=e}getSharedTemplate(){return this.sharedTemplate}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=l.jDH({token:o,factory:o.\u0275fac}),o})();const V2="k-chart-shared-tooltip",F2="k-chart-tooltip";let As=(()=>{class o extends $h{constructor(e,s,i,n){super(e,i),this.popupService=e,this.templateService=s,this.localizationService=i,this.ngZone=n,this.seriesTooltipContext={},this.seriesSharedTooltipContext={},this.animate=!0,this.wrapperClass="k-chart-tooltip-wrapper",this.leave=new l.bkB,this.popupClasses={}}show(e){this.shared=e.shared,this.popupClasses=Object.assign({[V2]:e.shared,[F2]:!0,[e.className]:!!e.className},this.classNames),e.shared?(this.seriesSharedTooltipTemplateRef=this.templateService.getSharedTemplate()||this.defaultSharedTooltipTemplate.templateRef,this.seriesSharedTooltipContext=this.sharedTemplateContext(e)):(this.seriesTooltipContext=new Fx(e.point,e.format),this.seriesTooltipTemplateRef=this.pointTemplateRef(e.point)),super.show(e)}containsElement(e){if(this.popupRef)return Qh(e,this.popupRef.popupElement)}sharedTemplateContext(e){const i=e.points.filter(a=>typeof a.series.name<"u").length>0,n=e.series.length>1;let r=1;return i&&r++,n&&r++,{category:e.category,categoryText:e.categoryText,colorMarker:n,colspan:r,nameColumn:i,points:this.wrapPoints(e.points,e.format)}}pointTemplateRef(e){return this.templateService.getTemplate(e.series.index)||this.defaultSeriesTooltipTemplate.templateRef}wrapPoints(e,s){const i=[];for(let n=0;n<e.length;n++){const r=e[n],a=this.pointTemplateRef(r);i.push(new Fx(r,((r.options||{}).tooltip||{}).format||s,a))}return i}onInit(){this.ngZone.runOutsideAngular(()=>{this.mouseleaveSubscription=this.popupRef.popupElement.addEventListener("mouseleave",e=>{this.leave.emit(e)})}),this.popupRef.popupElement.className+=` ${this.wrapperClass}`}hide(){this.mouseleaveSubscription&&(this.mouseleaveSubscription(),this.mouseleaveSubscription=null),super.hide()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(pe.OQ),l.rXU(Qs),l.rXU(At.Pi),l.rXU(l.SKi))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-tooltip-popup"]],viewQuery:function(e,s){if(1&e&&(l.GBs(ws,5),l.GBs($i,5),l.GBs(jh,7)),2&e){let i;l.mGM(i=l.lsd())&&(s.defaultSeriesTooltipTemplate=i.first),l.mGM(i=l.lsd())&&(s.defaultSharedTooltipTemplate=i.first),l.mGM(i=l.lsd())&&(s.templateRef=i.first)}},inputs:{animate:"animate",classNames:"classNames",popupSettings:"popupSettings",wrapperClass:"wrapperClass"},outputs:{leave:"leave"},standalone:!0,features:[l.Jv_([pe.OQ,{provide:pe.Fy,useFactory:Zh}]),l.Vt3,l.aNF],decls:4,vars:0,consts:[["content",""],["kendoChartSeriesTooltipTemplate",""],["kendoChartSharedTooltipTemplate",""],[3,"ngClass","ngStyle"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[1,"k-chart-shared-tooltip-marker"]],template:function(e,s){1&e&&l.DNE(0,a2,3,4,"ng-template",null,0,l.C5r)(2,l2,1,1,"ng-template",1)(3,f2,5,3,"ng-template",2)},dependencies:[it.YU,it.B3,it.bT,it.T3,ws,$i,it.pM],encapsulation:2}),o})();class N2 extends cl{constructor(t){super(t),this.handlerMap={hideTooltip:"onHideTooltip",legendItemClick:"onLegendItemClick",render:"onRender",showTooltip:"onShowTooltip",init:"onInit"}}}const da=o=>`${o.fontWeight} ${o.fontSize} ${o.fontFamily}`,Nx=o=>window.getComputedStyle(o).backgroundColor;let oo=(()=>{class o extends b{constructor(e){super(e),this.loaded=!1}loadTheme(){this.loaded||!(0,Et.nm)()||(this.readTheme()||this.readDefaultTheme(),this.loaded=!0,this.next())}reset(){this.store={},this.loaded=!1,this.loadTheme()}readTheme(){this.createElement();
1const e=this.queryColor("primary")!==this.queryColor("primary-contrast");try{e&&(this.push(Mx()),this.setColors(),this.setFonts(),this.setSeriesColors())}finally{this.destroyElement()}return e}readDefaultTheme(){this.push(Object.assign({},Mx(),{axisDefaults:{crosshair:{color:"rgba(0, 0, 0, 0.5)"},labels:{color:"rgb(101, 101, 101)",font:"12px serif"},line:{color:"rgba(0, 0, 0, 0.08)"},majorGridLines:{color:"rgba(0, 0, 0, 0.08)"},minorGridLines:{color:"rgba(0, 0, 0, 0.04)"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},title:{color:"rgb(101, 101, 101)",font:"14px serif"}},chartArea:{background:"rgb(255, 255, 255)"},legend:{inactiveItems:{labels:{color:"rgba(102, 102, 102, 0.5)"},markers:{color:"rgba(102, 102, 102, 0.5)"}},labels:{color:"rgb(101, 101, 101)",font:"14px serif"}},seriesDefaults:{boxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},bullet:{target:{color:"rgb(101, 101, 101)"}},candlestick:{downColor:"rgb(101, 101, 101)",line:{color:"rgb(101, 101, 101)"}},errorBars:{color:"rgba(0, 0, 0, 0.5)"},horizontalWaterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},icon:{border:{color:"rgba(0, 0, 0, 0.08)"}},labels:{background:"rgb(255, 255, 255)",color:"rgb(101, 101, 101)",opacity:.8,font:"12px serif"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},overlay:{gradient:"none"},verticalBoxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},verticalBullet:{target:{color:"rgb(101, 101, 101)"}},waterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},area:{opacity:.8}},title:{color:"rgb(101, 101, 101)",font:"16px serif"},seriesColors:["rgb(255, 99, 88)","rgb(255, 210, 70)","rgb(120, 210, 55)","rgb(40, 180, 200)","rgb(45, 115, 245)","rgb(170, 70, 190)"]}))}createElement(){const e=this.element=document.createElement("div");e.style.display="none",e.innerHTML=`\n <div class="k-var--primary"></div>\n <div class="k-var--primary-contrast"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--kendo-color-subtle"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n ${(()=>{let o='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n ';for(let t=0;t<30;t++)o+=`\n <div class="k-var--series-${t+1}"></div>`;return o})()}\n </div>\n`,document.body.appendChild(e)}destroyElement(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}setStyle(e,s){this.set(e,s)}
1setColors(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("legend.title.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color"),this.mapColor("subtitle.color","normal-text-color"),this.mapColor("labels.color","normal-text-color"),this.mapColor("labels.stroke.color","background"),this.element.querySelector(".k-var--kendo-color-subtle").style.color="var(--kendo-color-subtle)",this.mapColor("links.color","kendo-color-subtle","color");const s=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(s)||(this.setStyle("seriesDefaults.area.opacity",s),this.setStyle("seriesDefaults.radarArea.opacity",s),this.setStyle("seriesDefaults.verticalArea.opacity",s),this.setStyle("seriesDefaults.labels.opacity",s)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}setInactiveOpacity(e,s){const i=parseFloat(this.queryStyle(s).opacity);!isNaN(i)&&i<1&&e.forEach(n=>this.setStyle(`seriesDefaults.${n}.highlight.inactiveOpacity`,i))}setFonts(){const e=da(this.queryStyle("chart-font")),s=da(this.queryStyle("chart-title-font")),i=da(this.queryStyle("chart-pane-title-font")),n=da(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",n),this.setStyle("axisDefaults.notes.label.font",e),this.setStyle("axisDefaults.title.font",e),this.setStyle("legend.labels.font",e),this.setStyle("seriesDefaults.labels.font",n),this.setStyle("seriesDefaults.notes.label.font",e),this.setStyle("title.font",s),this.setStyle("subtitle.font",i),this.setStyle("paneDefaults.title.font",i),this.setStyle("labels.font",e)}setSeriesColors(){const e=this.element,s=[].slice.call(e.querySelectorAll(".k-var--series div")),i=Nx(e.querySelector(".k-var--series-unset")),n=s.reduce((r,a)=>{const c=(o=>{const t=o.match(/series-([a-z])$/);if(null!==t)return(o=>
1o.toLowerCase().charCodeAt(0)-97)(t[1]);const e=o.split("--series-")[1];return parseInt(e,10)-1})(a.className),h=Nx(a);return h!==i&&(r[c]=h),r},[]);this.setStyle("seriesColors",n)}mapColor(e,s,i="backgroundColor"){this.setStyle(e,this.queryStyle(s)[i])}queryColor(e){return this.queryStyle(e).backgroundColor}queryStyle(e){const s=this.element.querySelector(`.k-var--${e}`);return window.getComputedStyle(s)}}return o.\u0275fac=function(e){return new(e||o)(l.KVO(l.SKi))},o.\u0275prov=l.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Kt=(()=>{class o{constructor(e){this.sender=e}}return o.\u0275fac=function(e){l.QTQ()},o.\u0275dir=l.FsC({type:o}),o})(),Ke=(()=>{class o extends Kt{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}return o.\u0275fac=(()=>{let t;return function(s){return(t||(t=l.xGo(o)))(s||o)}})(),o.\u0275dir=l.FsC({type:o,features:[l.Vt3]}),o})();class Kh extends Ke{constructor(t,e){super(e),this.series=t.series,this.seriesIndex=t.seriesIndex,this.pointIndex=t.pointIndex,this.text=t.text}}class qh extends Kt{constructor(t,e){super(e),this.category=t.category,this.dataItem=t.dataItem,this.series=t.series,this.value=t.value,this.visual=t.visual}}class zx extends Kt{constructor(t,e){super(e)}}class Jh extends Ke{constructor(t,e){super(e),this.category=t.category,this.dataItem=t.dataItem,this.originalEvent=t.originalEvent,this.percentage=t.percentage,this.point=t.point,this.series=t.series,this.stackValue=t.stackValue,this.value=t.value}}const Ux={axisLabelClick:class W2 extends Kt{constructor(t,e){super(e),this.axis=t.axis,this.dataItem=t.dataItem,this.index=t.index,this.text=t.text,this.value=t.value}},drag:class Y2 extends Ke{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}},dragEnd:class $2 extends Kt{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}},dragStart:class Z2 extends Ke{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}},legendItemHover:class Q2 extends Kh{preventDefault(){super.preventDefault()}},legendItemLeave:class K2 extends Kh{preventDefault(){}isDefaultPrevented(){return!1}},noteClick:class q2 extends qh{},noteHover:class J2 extends qh{},noteLeave:class tM extends qh{},paneRender:class eM extends Kt{constructor(t,e){super(e),Object.assign(this,t)}},plotAreaClick:class sM extends Kt{constructor(t,e){super(e),this.category=t.category,this.originalEvent=t.originalEvent,this.value=t.value,this.x=t.x,this.y=t.y}},plotAreaHover:class iM extends Kt{constructor(t,e){super(e),this.category=t.category,this.originalEvent=t.originalEvent,this.value=t.value,this.x=t.x,this.y=t.y}},plotAreaLeave:class nM extends Kt{},render:zx,select:class oM extends Ke{constructor(t,e){super(e),this.axis=t.axis,this.from=t.from,this.to=t.to}},selectEnd:class rM extends Kt{constructor(t,e){super(e),this.axis=t.axis,this.from=t.from,this.to=t.to}},selectStart:class aM extends Ke{constructor(t,e){super(e),this.axis=t.axis,this.from=t.from,this.to=t.to}},seriesClick:class lM extends Kt{constructor(t,e){super(e),this.category=t.category,this.dataItem=t.dataItem,this.originalEvent=t.originalEvent,this.percentage=t.percentage,this.point=t.point,this.series=t.series,this.stackValue=t.stackValue,this.value=t.value}},seriesHover:class cM extends Jh{},seriesOver:class hM extends Jh{},seriesLeave:class dM extends Jh{},zoom:class uM extends Ke{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.delta=t.delta,this.originalEvent=t.originalEvent}},zoomEnd:class pM extends Kt{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}},zoomStart:class gM extends Ke{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}}};let ro=class{create(t,e,s){if(Ux[t])return new Ux[t](e,s)}};class fM extends Kh{preventDefault(){super.preventDefault()}}const ua={name:"@progress/kendo-angular-charts",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1728372467,version:"16.11.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Zi=(()=>{class o{constructor(e,s,i){this.configKey=e,this.configurationService=s,this.collectionService=i,this.items=[],this.subscription=i.onItemChange$.subscribe(n=>this.processChanges(n))}ngOnDestroy(){this.subscription.unsubscribe()}ngAfterContentInit(){this.readItems(),this.children.changes.subscribe(()=>this.readItems())}processChanges(e){if(!this.children)return;const s=this.children.toArray().filter(i=>!i.hidden).indexOf(e.sender);s<0||(this.items[s]=e.options,this.change())}readItems(){this.items=this.children.filter(e=>!e.hidden).map(e=>e.options),this.change()}
1change(){this.configurationService.notify(new Wh(this.configKey,0===this.items.length?void 0:this.items))}}return o.\u0275fac=function(e){l.QTQ()},o.\u0275dir=l.FsC({type:o}),o})(),ke=(()=>{class o extends Zi{constructor(e,s,i,n){super("series",e,s),this.configurationService=e,this.collectionService=s,this.tooltipTemplateService=i,this.viewContainer=n}ngAfterContentChecked(){this.readTooltipTemplates()}readTooltipTemplates(){const e=this.children.map(s=>s.seriesTooltipTemplateRef);this.tooltipTemplateService.setSeriesTemplates(e)}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt),l.rXU(Qs),l.rXU(l.c1b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series"]],contentQueries:function(e,s,i){if(1&e&&l.wni(i,ge,5),2&e){let n;l.mGM(n=l.lsd())&&(s.children=n)}},standalone:!0,features:[l.Jv_([bt]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})();class mM extends Ke{constructor(t,e){super(e),this.value=t.value,this.point=t.point,this.series=t.series}}function pa(o){return o.observers.length>0}let Ss=(()=>{class o{constructor(e,s,i,n,r,a,c,h,d){this.configurationService=e,this.themeService=s,this.element=i,this.intl=n,this.localizationService=r,this.ngZone=a,this.instanceEventService=c,this.changeDetector=h,this.renderer=d,this.axisLabelClick=new l.bkB,this.drag=new l.bkB,this.dragEnd=new l.bkB,this.dragStart=new l.bkB,this.legendItemHover=new l.bkB,this.legendItemLeave=new l.bkB,this.noteClick=new l.bkB,this.noteHover=new l.bkB,this.noteLeave=new l.bkB,this.paneRender=new l.bkB,this.plotAreaClick=new l.bkB,this.plotAreaHover=new l.bkB,this.plotAreaLeave=new l.bkB,this.render=new l.bkB,this.select=new l.bkB,this.selectEnd=new l.bkB,this.selectStart=new l.bkB,this.seriesClick=new l.bkB,this.drilldown=new l.bkB,this.seriesHover=new l.bkB,this.seriesOver=new l.bkB,this.seriesLeave=new l.bkB,this.zoom=new l.bkB,this.zoomEnd=new l.bkB,this.zoomStart=new l.bkB,this.legendItemClick=new l.bkB,this.drilldownLevelChange=new l.bkB,this.resizeRateLimit=10,this.showLicenseWatermark=!1,this.theme=null,this.suppressTransitions=!1,this.rtl=!1,this.hostClasses=["k-chart","k-widget"],this.drilldownState=[];const u=(0,aa.$j)(ua);this.showLicenseWatermark=(0,Et.Em)(u),this.themeService.loadTheme(),this.refreshWait()}get drilldownLevel(){return this.drilldownState.length}set drilldownLevel(e){const s=this.drilldownState.length;if(s<=e||!this.seriesComponents)return;const i=this.drilldownState.slice(e);i.forEach(n=>n.destroy()),this.drilldownState=this.drilldownState.slice(0,s-i.length),this.seriesComponents.toArray().slice(-i.length-1).forEach(n=>n.hidden=!1),this.drilldownLevelChange.emit(e)}ngOnInit(){this.element&&(this.hostClasses.forEach(e=>{this.renderer.addClass(this.element.nativeElement,e)}),this.renderer.setStyle(this.element.nativeElement,"position","relative"))}ngAfterViewInit(){this.canRender&&this.ngZone.runOutsideAngular(()=>{const e=this.renderer.listen(this.surfaceElement.nativeElement,"mouseleave",this.chartMouseleave.bind(this));this.domSubscriptions=()=>{e()}}),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))}onDrilldown(e){const s=new mM(e,this);if(this.run(()=>this.drilldown.emit(s)),s.isDefaultPrevented())return;const i=this.seriesCollectionComponent.first,n=this.seriesComponents.find(r=>r.name===e.series.name);if(n.drilldownTemplate){n.hidden=!0;const r=i.viewContainer.createEmbeddedView(n.drilldownTemplate.templateRef,{drilldownValue:e.value,point:e.point,series:e.series});r.markForCheck(),this.drilldownState.push(r),this.drilldownLevelChange.emit(this.drilldownLevel)}}ngAfterViewChecked(){this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resize()},0)})}ngOnChanges(e){const s=this.configurationService.store;ca(e,s),s.popupSettings=null,this.configurationService.push(s)}notifyChanges(e){this.ngOnChanges(ha(e))}ngOnDestroy(){this.destroyed=!0,this.optionsChange&&this.optionsChange.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.resizeTimeout),clearTimeout(this.redrawTimeout)}createInstance(e,s){this.instance=new $c(e,this.options,this.theme,{intlService:this.intl,observer:s,rtl:this.rtl,sender:this})}exportImage(e={}){return(0,Ex.A)(this.exportVisual(e),e)}exportSVG(e={}){return Dx(this.exportVisual(e),e)}exportVisual(e={}){return this.instance.exportVisual(e)}findAxisByName(e){if(this.instance)return this.instance.findAxisByName(e)}findPaneByIndex(e){if(this.instance)return this.instance.findPaneByIndex(e)}findPaneByName(e){if(this.instance)return this.instance.findPaneByName(e)}getPlotArea(){if(this.instance)return this.instance.plotArea()}toggleHighlight(e,s){this.instance&&this.instance.toggleHighlight(e,s)}hideTooltip(){this.instance&&this.instance.hideTooltip()}showTooltip(e){this.instance&&this.instance.showTooltip(e)}init(){if(!this.canRender)return;const e=this.surfaceElement.nativeElement,s=new N2(this);this.createInstance(e,s)}resize(){this.instance&&this.instance.resize()}onResize(){this.autoResize&&this.resize()}reloadTheme(){this.instance&&(this.themeService.reset(),this.instance.destroy(),this.instance=null)}onLegendItemClick(e){this.run(()=>{const s=new fM(e,this);if(this.legendItemClick.emit(s),!s.isDefaultPrevented()){const i=this.seriesComponents.toArray()[e.series.index];if(!i)return;void 0!==e.pointIndex?i.togglePointVisibility(e.pointIndex):i.toggleVisibility(),this.suppressTransitions=!0}},pa(this.legendItemClick),this.seriesComponents.length>0)}onInit(e){this.instance=e.sender}onRender(e){const s=this.getDonutCenterStyle();this.run(()=>{const i=new zx(e,this);this.surface=e.sender.surface,this.render.emit(i),this.donutCenterStyle=s},pa(this.render),this.donutCenterStyle!==s)}onShowTooltip(e){this.run(()=>{e.crosshair?this.crossahirTooltips.show(e):this.tooltipInstance.show(e)},!e.crosshair,!0)}onHideTooltip(e){e.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())}trigger(e,s){if("resize"===e)return;if("drilldown"===e)return void this.onDrilldown(s);const i=this.activeEmitter(e);if(i){const n=this.instanceEventService.create(e,s,this);return this.run(()=>{i.emit(n)}),n.isDefaultPrevented&&n.isDefaultPrevented()}}requiresHandlers(e){for(let s=0;s<e.length;s++)if(this.activeEmitter(e[s]))return!0;return!1}refresh(){if(clearTimeout(this.redrawTimeout),this.updateDirection(),this.crossahirTooltips.createCrosshairTooltips(this.options),this.setChartAreaSize(),!this.instance)return void this.init();const e=this.options.transitions;this.suppressTransitions&&(this.options.transitions=!1),this.updateOptions(),this.suppressTransitions&&(this.options.transitions=e,this.suppressTransitions=!1)}setChartAreaSize(){if(!this.element)return;const e=this.element.nativeElement,s=this.options.chartArea||{};s.width&&(e.style.width=`${s.width}px`),s.height&&(e.style.height=`${s.height}px`)}updateOptions(){this.instance.setOptions(this.options)}tooltipMouseleave(e){const s=e.relatedTarget;this.instance&&(!s||!Qh(s,this.element.nativeElement))&&this.instance.hideElements()}chartMouseleave(e){const s=e.relatedTarget,i=this.element.nativeElement;this.instance&&(!s||!this.tooltipInstance.containsElement(s)&&!Qh(s,i))&&!this.instance.handlingTap&&this.instance.hideElements()}get canRender(){return(0,Et.nm)()&&!!this.surfaceElement}get autoResize(){return this.resizeRateLimit>0}activeEmitter(e){const s=this[e];if(s&&s.emit&&pa(s))return s}getDonutCenterStyle(){if(!this.instance||!this.options||!this.options.series)return;const e=this.options.series[0],s=this.instance._plotArea.charts;if(!e||"donut"!==e.type||!s||0===s[0].points.length)return;const i=s[0].points[0],n=i.box.center(),r=i.sector.innerRadius,h=2*r;
1return{height:h+"px",left:n.x-r+"px",top:n.y-r+"px",width:h+"px"}}refreshWait(){this.ngZone.runOutsideAngular(()=>{this.optionsChange=(0,Px.z)(this.configurationService.onChange$,this.themeService.onChange$).pipe((0,Lx.M)(e=>{this.options=e[0],this.theme=e[1]}),(0,Hh.Z)(Xh)).subscribe(()=>{this.refresh()})})}run(e,s=!0,i){s?(i&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),i&&this.detectChanges())}detectChanges(){this.destroyed||this.changeDetector.detectChanges()}intlChange(){this.instance&&this.deferredRedraw()}rtlChange(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()}deferredRedraw(){this.ngZone.runOutsideAngular(()=>{clearTimeout(this.redrawTimeout),this.redrawTimeout=setTimeout(()=>{this.updateDirection(),this.instance.noTransitionsRedraw()},0)})}updateDirection(){const e=this.isRTL;this.rtl!==e&&(this.setDirection(),this.instance&&this.instance.setDirection(e))}setDirection(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}get isRTL(){return!!this.localizationService.rtl}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(oo),l.rXU(l.aKT),l.rXU(ts.Bs),l.rXU(At.Pi),l.rXU(l.SKi),l.rXU(ro),l.rXU(l.gRc),l.rXU(l.sFG))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart"]],contentQueries:function(e,s,i){if(1&e&&(l.wni(i,Gh,5),l.wni(i,ke,4),l.wni(i,ge,5)),2&e){let n;l.mGM(n=l.lsd())&&(s.donutCenterTemplate=n.first),l.mGM(n=l.lsd())&&(s.seriesCollectionComponent=n),l.mGM(n=l.lsd())&&(s.seriesComponents=n)}},viewQuery:function(e,s){if(1&e&&(l.GBs(As,7),l.GBs(Cs,7),l.GBs(m2,7)),2&e){let i;l.mGM(i=l.lsd())&&(s.tooltipInstance=i.first),l.mGM(i=l.lsd())&&(s.crossahirTooltips=i.first),l.mGM(i=l.lsd())&&(s.surfaceElement=i.first)}},inputs:{pannable:"pannable",renderAs:"renderAs",seriesColors:"seriesColors",subtitle:"subtitle",title:"title",transitions:"transitions",zoomable:"zoomable",axisDefaults:"axisDefaults",categoryAxis:"categoryAxis",chartArea:"chartArea",legend:"legend",panes:"panes",paneDefaults:"paneDefaults",plotArea:"plotArea",series:"series",seriesDefaults:"seriesDefaults",tooltip:"tooltip",valueAxis:"valueAxis",xAxis:"xAxis",yAxis:"yAxis",resizeRateLimit:"resizeRateLimit",popupSettings:"popupSettings",drilldownLevel:"drilldownLevel"},outputs:{axisLabelClick:"axisLabelClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",legendItemHover:"legendItemHover",legendItemLeave:"legendItemLeave",noteClick:"noteClick",noteHover:"noteHover",noteLeave:"noteLeave",paneRender:"paneRender",plotAreaClick:"plotAreaClick",plotAreaHover:"plotAreaHover",plotAreaLeave:"plotAreaLeave",render:"render",select:"select",selectEnd:"selectEnd",selectStart:"selectStart",seriesClick:"seriesClick",drilldown:"drilldown",seriesHover:"seriesHover",seriesOver:"seriesOver",seriesLeave:"seriesLeave",zoom:"zoom",zoomEnd:"zoomEnd",zoomStart:"zoomStart",legendItemClick:"legendItemClick",drilldownLevelChange:"drilldownLevelChange"},exportAs:["kendoChart"],standalone:!0,features:[l.Jv_([b,Qs,ro,At.Pi,{provide:At.$R,useValue:"kendo.chart"}]),l.OA$,l.aNF],decls:7,vars:5,consts:[["surface",""],[1,"k-chart-surface"],[3,"popupSettings"],[3,"leave","popupSettings"],[3,"resize","rateLimit"],["class","k-chart-donut-center",3,"ngStyle",4,"ngIf"],["kendoWatermarkOverlay","",4,"ngIf"],[1,"k-chart-donut-center",3,"ngStyle"],[3,"ngTemplateOutlet"],["kendoWatermarkOverlay",""]],template:function(e,s){if(1&e){const i=l.RV6();l.nrm(0,"div",1,0)(2,"kendo-chart-crosshair-tooltips-container",2),l.j41(3,"kendo-chart-tooltip-popup",3),l.bIt("leave",function(r){return l.eBV(i),l.Njj(s.tooltipMouseleave(r))}),l.k0s(),l.j41(4,"kendo-resize-sensor",4),l.bIt("resize",function(){return l.eBV(i),l.Njj(s.onResize())}),l.k0s(),l.DNE(5,v2,2,2,"div",5)(6,y2,1,0,"div",6)}2&e&&(l.R7$(2),l.Y8G("popupSettings",s.popupSettings),l.R7$(),l.Y8G("popupSettings",s.popupSettings),l.R7$(),l.Y8G("rateLimit",s.resizeRateLimit),l.R7$(),l.Y8G("ngIf",s.donutCenterStyle&&s.donutCenterTemplate),l.R7$(),l.Y8G("ngIf",s.showLicenseWatermark))},dependencies:[Cs,As,Et.M0,it.bT,it.B3,it.T3,Et.S$],encapsulation:2,changeDetection:0}),o})(),td=(()=>{class o extends Xi{constructor(e,s,i,n){super(e,s),this.configurationService=e,this.collectionService=s,this.intl=i,this.notifyChanges({weekStartDay:i.firstDay(n)})}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt),l.rXU(ts.Bs),l.rXU(l.xe9))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis-item"]],inputs:{axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",categories:"categories",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",majorUnit:"majorUnit",max:"max",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",minorUnit:"minorUnit",name:"name",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",startAngle:"startAngle",type:"type",visible:"visible",weekStartDay:"weekStartDay",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},standalone:!0,features:[l.Jv_([b]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Hx=(()=>{class o extends Zi{constructor(e,s){super("xAxis",e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis"]],contentQueries:function(e,s,i){if(1&e&&l.wni(i,td,4),2&e){let n;l.mGM(n=l.lsd())&&(s.children=n)}},standalone:!0,features:[l.Jv_([bt]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),jx=(()=>{class o extends T{constructor(e){super("crosshair",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis-item-crosshair"]],inputs:{color:"color",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Gx=(()=>{class o extends T{constructor(e){super("crosshair.tooltip",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis-item-crosshair-tooltip"]],inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Xx=(()=>{class o extends T{constructor(e){super("labels",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis-item-labels"]],inputs:{background:"background",border:"border",color:"color",content:"content",culture:"culture",dateFormats:"dateFormats",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Wx=(()=>{class o extends T{constructor(e){super("notes",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis-item-notes"]],inputs:{data:"data",line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Yx=(()=>{class o extends T{constructor(e){super("notes.icon",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis-item-notes-icon"]],inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),$x=(()=>{class o extends T{constructor(e){super("notes.label",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis-item-notes-label"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Zx=(()=>{class o extends T{constructor(e){super("title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-x-axis-item-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ed=(()=>{class o extends Xi{constructor(e,s){super(e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis-item"]],inputs:{axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",categories:"categories",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",majorUnit:"majorUnit",max:"max",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",minorUnit:"minorUnit",name:"name",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",type:"type",visible:"visible",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},standalone:!0,features:[l.Jv_([b]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Qx=(()=>{class o extends Zi{constructor(e,s){super("yAxis",e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis"]],contentQueries:function(e,s,i){if(1&e&&l.wni(i,ed,4),2&e){let n;l.mGM(n=l.lsd())&&(s.children=n)}},standalone:!0,features:[l.Jv_([bt]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Kx=(()=>{class o extends T{constructor(e){super("crosshair",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis-item-crosshair"]],inputs:{color:"color",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),qx=(()=>{class o extends T{constructor(e){super("crosshair.tooltip",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis-item-crosshair-tooltip"]],inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Jx=(()=>{class o extends T{constructor(e){super("labels",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis-item-labels"]],inputs:{background:"background",border:"border",color:"color",content:"content",culture:"culture",dateFormats:"dateFormats",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),tv=(()=>{class o extends T{constructor(e){super("notes",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis-item-notes"]],inputs:{data:"data",line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ev=(()=>{class o extends T{constructor(e){super("notes.icon",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis-item-notes-icon"]],inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),sv=(()=>{class o extends T{constructor(e){super("notes.label",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis-item-notes-label"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),iv=(()=>{class o extends T{constructor(e){super("title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-y-axis-item-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),nv=(()=>{class o extends T{constructor(e){super("zoomable",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-zoomable"]],inputs:{mousewheel:"mousewheel",selection:"selection"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ov=(()=>{class o extends b{}return o.\u0275fac=(()=>{let t;return function(s){return(t||(t=l.xGo(o)))(s||o)}})(),o.\u0275prov=l.jDH({token:o,factory:o.\u0275fac}),o})();const rv={navigatorFilter:class vM extends Kt{constructor(t,e){super(e),this.from=t.from,this.to=t.to}}};class av extends ro{create(t,e,s){return rv[t]?new rv[t](e,s):super.create(t,e,s)}}const yM={autoBindElements:!0,liveDrag:!1,partialRedraw:!0};let lv=(()=>{class o extends Ss{constructor(e,s,i,n,r,a,c,h,d){super(e,s,i,n,r,a,c,h,d),this.configurationService=e,this.themeService=s,this.element=i,this.intl=n,this.localizationService=r,this.ngZone=a,this.instanceEventService=c,this.changeDetector=h,this.renderer=d,this.drilldown=new l.bkB,this.drilldownLevelChange=new l.bkB,this.navigatorFilter=new l.bkB,this.showLicenseWatermark=!1,this.redrawSlaves=!1,this.hostClasses=["k-chart","k-stockchart"];const u=(0,aa.$j)(ua);this.showLicenseWatermark=(0,Et.Em)(u)}get drilldownLevel(){return this.drilldownState.length}skipNavigatorRedraw(){this.redrawSlaves=!0}createInstance(e,s){if(this.applyNavigatorDefaults(),this.isDevMode()&&(this.options.zoomable||this.options.pannable))throw new Error("The pannable and zoomable options are not supported by the StockChart component.");this.instance=new O1(e,this.options,this.theme,{intlService:this.intl,observer:s,rtl:this.rtl,sender:this})}updateOptions(){this.applyNavigatorDefaults(),this.redrawSlaves?(this.instance.applyOptions(this.options),this.instance.bindCategories(),this.instance.navigator.redrawSlaves()):this.instance.setOptions(this.options),this.redrawSlaves=!1}applyNavigatorDefaults(){this.options.navigator=Object.assign({},this.options.navigator,yM)}isDevMode(){return(0,l.naY)()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(oo),l.rXU(l.aKT),l.rXU(ts.Bs),l.rXU(At.Pi),l.rXU(l.SKi),l.rXU(av),l.rXU(l.gRc),l.rXU(l.sFG))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-stockchart"]],inputs:{navigator:"navigator",pannable:"pannable",zoomable:"zoomable",drilldownLevel:"drilldownLevel"},outputs:{drilldown:"drilldown",drilldownLevelChange:"drilldownLevelChange",navigatorFilter:"navigatorFilter"},exportAs:["kendoStockChart"],standalone:!0,features:[l.Jv_([b,Qs,{provide:ov,useExisting:b},av,At.Pi,{provide:At.$R,useValue:"kendo.chart"}]),l.Vt3,l.aNF],decls:6,vars:3,consts:[["surface",""],[1,"k-chart-surface"],[3,"popupSettings"],[3,"leave","popupSettings"],[3,"resize"],["kendoWatermarkOverlay","",4,"ngIf"],["kendoWatermarkOverlay",""]],template:function(e,s){if(1&e){const i=l.RV6();l.nrm(0,"div",1,0)(2,"kendo-chart-crosshair-tooltips-container",2),l.j41(3,"kendo-chart-tooltip-popup",3),l.bIt("leave",function(r){return l.eBV(i),l.Njj(s.tooltipMouseleave(r))}),l.k0s(),l.j41(4,"kendo-resize-sensor",4),l.bIt("resize",function(){return l.eBV(i),l.Njj(s.onResize())}),l.k0s(),l.DNE(5,b2,1,0,"div",5)}2&e&&(l.R7$(2),l.Y8G("popupSettings",s.popupSettings),l.R7$(),l.Y8G("popupSettings",s.popupSettings),l.R7$(2),l.Y8G("ngIf",s.showLicenseWatermark))},dependencies:[Cs,As,Et.M0,it.bT,Et.S$],encapsulation:2,changeDetection:0}),o})();const ga=new l.nKC("configuration prefix");let sd=(()=>{class o extends b{constructor(e,s,i){super(i),this.rootService=e,this.prefix=s}push(e){this.rootService.notify(new Wh(this.prefix,e))}notify(e){e.key=this.prefix+(e.key?`.${e.key}
1`:""),this.rootService.notify(e)}}return o.\u0275fac=function(e){return new(e||o)(l.KVO(ov),l.KVO(ga),l.KVO(l.SKi))},o.\u0275prov=l.jDH({token:o,factory:o.\u0275fac}),o})(),cv=(()=>{class o extends T{constructor(e){super("",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator"]],inputs:{position:"position",visible:"visible",categoryAxis:"categoryAxis",hint:"hint",pane:"pane",select:"select",series:"series"},standalone:!0,features:[l.Jv_([{provide:ga,useValue:"navigator"},{provide:b,useClass:sd}]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ks=(()=>{class o extends Xi{constructor(e,s,i,n){super(e,s),this.configurationService=e,this.collectionService=s,this.notifyChanges({weekStartDay:i.firstDay(n)})}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt),l.rXU(ts.Bs),l.rXU(l.xe9))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item"]],inputs:{autoBaseUnitSteps:"autoBaseUnitSteps",axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",baseUnitStep:"baseUnitStep",categories:"categories",color:"color",justified:"justified",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",max:"max",maxDateGroups:"maxDateGroups",maxDivisions:"maxDivisions",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",name:"name",pane:"pane",plotBands:"plotBands",reverse:"reverse",roundToBaseUnit:"roundToBaseUnit",startAngle:"startAngle",type:"type",visible:"visible",weekStartDay:"weekStartDay",crosshair:"crosshair",labels:"labels",notes:"notes",select:"select",title:"title",rangeLabels:"rangeLabels"},standalone:!0,features:[l.Jv_([b]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),hv=(()=>{class o extends Ks{constructor(e,s,i){super(e,null,s,i),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(ts.Bs),l.rXU(l.xe9))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis"]],standalone:!0,features:[l.Jv_([{provide:ga,useValue:"navigator.categoryAxis"},{provide:b,useClass:sd}]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ao=(()=>{class o extends T{constructor(e){super("crosshair",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-crosshair"]],inputs:{color:"color",dashType:"dashType",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),dv=(()=>{class o extends ao{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis-crosshair"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),lo=(()=>{class o extends T{constructor(e){super("crosshair.tooltip",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-crosshair-tooltip"]],inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),uv=(()=>{class o extends lo{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis-crosshair-tooltip"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),qs=(()=>{class o extends T{constructor(e){super("labels",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-labels"]],inputs:{background:"background",border:"border",color:"color",content:"content",culture:"culture",dateFormats:"dateFormats",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),pv=(()=>{class o extends qs{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis-labels"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),co=(()=>{class o extends T{constructor(e){super("notes",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-notes"]],inputs:{data:"data",line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),gv=(()=>{class o extends co{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis-notes"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ho=(()=>{class o extends T{constructor(e){super("notes.icon",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-notes-icon"]],inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),fv=(()=>{class o extends ho{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis-notes-icon"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),uo=(()=>{class o extends T{constructor(e){super("notes.label",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-notes-label"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),mv=(()=>{class o extends uo{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis-notes-label"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),po=(()=>{class o extends T{constructor(e){super("select",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-select"]],inputs:{from:"from",max:"max",min:"min",mousewheel:"mousewheel",to:"to"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),xv=(()=>{class o extends po{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis-select"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),go=(()=>{class o extends T{constructor(e){super("title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),vv=(()=>{class o extends go{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-category-axis-title"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),yv=(()=>{class o extends T{constructor(e){super("hint",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-hint"]],inputs:{content:"content",format:"format",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Qi=(()=>{class o extends Xi{constructor(e,s){super(e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-pane"],["kendo-chart-panes-item"]],inputs:{background:"background",border:"border",clip:"clip",height:"height",margin:"margin",name:"name",padding:"padding",title:"title"},standalone:!0,features:[l.Jv_([b]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),bv=(()=>{class o extends Qi{constructor(e){super(e,null),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-pane"]],standalone:!0,features:[l.Jv_([{provide:ga,useValue:"navigator.pane"},{provide:b,useClass:sd}]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),fo=(()=>{class o extends T{constructor(e){super("title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-pane-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",position:"position",text:"text",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),_v=(()=>{class o extends fo{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-pane-title"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Cv=(()=>{class o extends T{constructor(e){super("select",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-select"]],inputs:{from:"from",to:"to",mousewheel:"mousewheel"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),id=(()=>{class o extends ge{constructor(e,s){super(e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item"]],inputs:{drilldownField:"drilldownField"},standalone:!0,features:[l.Jv_([b]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),wv=(()=>{class o extends ke{constructor(e,s,i,n){super(e,s,i,n),this.configurationService=e,this.collectionService=s,this.tooltipTemplateService=i,this.viewContainer=n}readTooltipTemplates(){}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt),l.rXU(Qs),l.rXU(l.c1b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series"]],contentQueries:function(e,s,i){if(1&e&&l.wni(i,id,4),2&e){let n;l.mGM(n=l.lsd())&&(s.children=n)}},standalone:!0,features:[l.Jv_([bt]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),mo=(()=>{class o extends T{constructor(e){super("errorBars",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-error-bars"]],inputs:{color:"color",endCaps:"endCaps",line:"line",value:"value",visual:"visual",xValue:"xValue",yValue:"yValue"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Av=(()=>{class o extends mo{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-error-bars"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),xo=(()=>{class o extends T{constructor(e){super("extremes",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-extremes"]],inputs:{background:"background",border:"border",rotation:"rotation",size:"size",type:"type"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Sv=(()=>{class o extends xo{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-extremes"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),vo=(()=>{class o extends T{constructor(e){super("highlight",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-highlight"]],inputs:{border:"border",color:"color",line:"line",markers:"markers",opacity:"opacity",toggle:"toggle",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),kv=(()=>{class o extends vo{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-highlight"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ki=(()=>{class o extends T{constructor(e){super("labels",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-labels"]],inputs:{align:"align",background:"background",border:"border",color:"color",content:"content",ariaContent:"ariaContent",distance:"distance",font:"font",format:"format",margin:"margin",padding:"padding",position:"position",rotation:"rotation",visible:"visible",visual:"visual",from:"from",to:"to"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Tv=(()=>{class o extends Ki{constructor(e){super(e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-labels"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),yo=(()=>{class o extends T{constructor(e){super("labels.from",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-labels-from"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",position:"position",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Mv=(()=>{class o extends yo{constructor(e){super(e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-labels-from"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),bo=(()=>{class o extends T{constructor(e){super("labels.to",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-labels-to"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",position:"position",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ev=(()=>{class o extends bo{constructor(e){super(e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-labels-to"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),_o=(()=>{class o extends T{constructor(e){super("markers",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-markers"]],inputs:{background:"background",border:"border",rotation:"rotation",size:"size",type:"type",visible:"visible",visual:"visual",from:"from",to:"to"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Dv=(()=>{class o extends _o{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-markers"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Co=(()=>{class o extends T{constructor(e){super("notes",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-notes"]],inputs:{line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Pv=(()=>{class o extends Co{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-notes"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),wo=(()=>{class o extends T{constructor(e){super("notes.icon",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-notes-icon"]],inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Lv=(()=>{class o extends wo{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-notes-icon"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ao=(()=>{class o extends T{constructor(e){super("notes.label",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-notes-label"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Iv=(()=>{class o extends Ao{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-notes-label"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),So=(()=>{class o extends T{constructor(e){super("outliers",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-outliers"]],inputs:{background:"background",border:"border",rotation:"rotation",size:"size",type:"type"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Rv=(()=>{class o extends So{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-outliers"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Bv=(()=>{class o extends Wi{constructor(e){super(e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-navigator-series-item-tooltip"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ov=(()=>{class o extends Ss{constructor(e,s,i,n,r,a,c,h,d){super(e,s,i,n,r,a,c,h,d),this.configurationService=e,this.themeService=s,this.element=i,this.intl=n,this.localizationService=r,this.ngZone=a,this.instanceEventService=c,this.changeDetector=h,this.renderer=d,this.drilldown=new l.bkB,this.drilldownLevelChange=new l.bkB,this.tooltipWrapperClass="k-sparkline-tooltip-wrapper",this.tooltipContentClasses={"k-sparkline-tooltip":!0},this.showLicenseWatermark=!1,this.hostClasses=["k-sparkline","k-widget"];const u=(0,aa.$j)(ua);this.showLicenseWatermark=(0,Et.Em)(u)}get drilldownLevel(){return this.drilldownState.length}createInstance(e,s){this.instance=new Zc(e,Zc.normalizeOptions(this.options),this.theme,{intlService:this.intl,observer:s,rtl:this.rtl,sender:this})}updateOptions(){this.instance.setOptions(Zc.normalizeOptions(this.options))}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(oo),l.rXU(l.aKT),l.rXU(ts.Bs),l.rXU(At.Pi),l.rXU(l.SKi),l.rXU(ro),l.rXU(l.gRc),l.rXU(l.sFG))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sparkline"]],inputs:{type:"type",data:"data",drilldownLevel:"drilldownLevel"},outputs:{drilldown:"drilldown",drilldownLevelChange:"drilldownLevelChange"},exportAs:["kendoSparkline"],standalone:!0,features:[l.Jv_([b,Qs,ro,At.Pi,{provide:At.$R,useValue:"kendo.chart"}]),l.Vt3,l.aNF],decls:6,vars:6,consts:[["surface",""],[1,"k-chart-surface"],[3,"popupSettings"],[3,"leave","animate","wrapperClass","classNames","popupSettings"],[3,"resize"],["kendoWatermarkOverlay","",4,"ngIf"],["kendoWatermarkOverlay",""]],template:function(e,s){if(1&e){const i=l.RV6();l.nrm(0,"span",1,0)(2,"kendo-chart-crosshair-tooltips-container",2),l.j41(3,"kendo-chart-tooltip-popup",3),l.bIt("leave",function(r){return l.eBV(i),l.Njj(s.tooltipMouseleave(r))}),l.k0s(),l.j41(4,"kendo-resize-sensor",4),l.bIt("resize",function(){return l.eBV(i),l.Njj(s.onResize())}),l.k0s(),l.DNE(5,_2,1,0,"div",5)}2&e&&(l.R7$(2),l.Y8G("popupSettings",s.popupSettings),l.R7$(),l.Y8G("animate",!1)("wrapperClass",s.tooltipWrapperClass)("classNames",s.tooltipContentClasses)("popupSettings",s.popupSettings),l.R7$(2),l.Y8G("ngIf",s.showLicenseWatermark))},dependencies:[Cs,As,Et.M0,it.bT,Et.S$],encapsulation:2,changeDetection:0}),o})(),fa=(()=>{class o extends T{constructor(e){super("axisDefaults",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-axis-defaults"]],inputs:{background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",minorGridLines:"minorGridLines",minorTicks:"minorTicks",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",startAngle:"startAngle",visible:"visible",crosshair:"crosshair",labels:"labels",title:"title"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ma=(()=>{class o extends T{constructor(e){super("axisDefaults.crosshair",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-axis-defaults-crosshair"]],inputs:{color:"color",dashType:"dashType",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),xa=(()=>{class o extends T{constructor(e){super("axisDefaults.crosshair.tooltip",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-axis-defaults-crosshair-tooltip"]],inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),va=(()=>{class o extends T{constructor(e){super("axisDefaults.labels",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-axis-defaults-labels"]],inputs:{content:"content",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ya=(()=>{class o extends T{constructor(e){super("axisDefaults.title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-axis-defaults-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ko=(()=>{class o extends Zi{constructor(e,s){super("categoryAxis",e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis"]],contentQueries:function(e,s,i){if(1&e&&l.wni(i,Ks,4),2&e){let n;l.mGM(n=l.lsd())&&(s.children=n)}},standalone:!0,features:[l.Jv_([bt]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ba=(()=>{class o extends qs{constructor(e){super(e),this.configurationService=e,this.configKey="rangeLabels",this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-category-axis-item-range-labels"]],standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Js=(()=>{class o extends T{constructor(e){super("chartArea",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-area"]],inputs:{background:"background",border:"border",height:"height",margin:"margin",opacity:"opacity",width:"width"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ti=(()=>{class o extends T{constructor(e){super("legend",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-legend"]],inputs:{align:"align",background:"background",border:"border",height:"height",labels:"labels",margin:"margin",offsetX:"offsetX",offsetY:"offsetY",orientation:"orientation",padding:"padding",position:"position",reverse:"reverse",visible:"visible",width:"width",markers:"markers",spacing:"spacing",inactiveItems:"inactiveItems",item:"item",title:"title"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),_a=(()=>{class o extends T{constructor(e){super("legend.inactiveItems",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-legend-inactive-items"]],inputs:{labels:"labels"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ca=(()=>{class o extends T{constructor(e){super("legend.item",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-legend-item"]],inputs:{cursor:"cursor",type:"type",line:"line",area:"area",markers:"markers",highlight:"highlight",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),wa=(()=>{class o extends T{constructor(e){super("paneDefaults",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-pane-defaults"]],inputs:{background:"background",border:"border",clip:"clip",height:"height",margin:"margin",padding:"padding",title:"title"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Aa=(()=>{class o extends T{constructor(e){super("paneDefaults.title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-pane-defaults-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",position:"position",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Sa=(()=>{class o extends Zi{constructor(e,s){super("panes",e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-panes"]],contentQueries:function(e,s,i){if(1&e&&l.wni(i,Qi,4),2&e){let n;l.mGM(n=l.lsd())&&(s.children=n)}},standalone:!0,features:[l.Jv_([bt]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ka=(()=>{class o extends T{constructor(e){super("plotArea",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-plot-area"]],inputs:{background:"background",border:"border",margin:"margin",opacity:"opacity",padding:"padding"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ta=(()=>{class o extends T{constructor(e){super("seriesDefaults",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-defaults"]],inputs:{border:"border",gap:"gap",highlight:"highlight",overlay:"overlay",spacing:"spacing",stack:"stack",type:"type",visual:"visual",labels:"labels",notes:"notes",tooltip:"tooltip"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ma=(()=>{class o extends T{constructor(e){super("seriesDefaults.labels",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-defaults-labels"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",visible:"visible",visual:"visual",from:"from",to:"to"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ea=(()=>{class o extends T{constructor(e){super("seriesDefaults.labels.from",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-defaults-labels-from"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Da=(()=>{class o extends T{constructor(e){super("seriesDefaults.labels.to",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-defaults-labels-to"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Pa=(()=>{class o extends T{constructor(e){super("seriesDefaults.notes",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-defaults-notes"]],inputs:{line:"line",visual:"visual",icon:"icon",label:"label"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),La=(()=>{class o extends T{constructor(e){super("seriesDefaults.notes.icon",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-defaults-notes-icon"]],inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ia=(()=>{class o extends T{constructor(e){super("seriesDefaults.notes.label",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-defaults-notes-label"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ra=(()=>{class o extends T{constructor(e){super("seriesDefaults.tooltip",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-defaults-tooltip"]],inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ba=(()=>{class o extends T{constructor(e){super("trendline",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-trendline"]],inputs:{period:"period",order:"order",forecast:"forecast"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Oa=(()=>{class o extends T{constructor(e){super("forecast",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-series-item-trendline-forecast"]],inputs:{before:"before",after:"after",forecast:"forecast"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Va=(()=>{class o extends T{constructor(e){super("subtitle",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-subtitle"]],inputs:{align:"align",background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",text:"text",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),To=(()=>{class o extends T{constructor(e){super("title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-title"]],inputs:{align:"align",background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",text:"text",description:"description",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ei=(()=>{class o extends T{constructor(e,s){super("tooltip",e),this.configurationService=e,this.templateService=s,this.markAsVisible()}ngAfterContentChecked(){this.templateService.setTemplate(this.seriesTooltipTemplate?this.seriesTooltipTemplate.templateRef:null),this.templateService.setSharedTemplate(this.sharedTooltipTemplate?this.sharedTooltipTemplate.templateRef:null)}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(Qs))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-tooltip"]],contentQueries:function(e,s,i){if(1&e&&(l.wni(i,ws,5),l.
1wni(i,$i,5)),2&e){let n;l.mGM(n=l.lsd())&&(s.seriesTooltipTemplate=n.first),l.mGM(n=l.lsd())&&(s.sharedTooltipTemplate=n.first)}},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",opacity:"opacity",padding:"padding",shared:"shared",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2}),o})(),si=(()=>{class o extends Xi{constructor(e,s){super(e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis-item"]],inputs:{axisCrossingValue:"axisCrossingValue",background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",majorUnit:"majorUnit",max:"max",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",minorUnit:"minorUnit",name:"name",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",type:"type",visible:"visible",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},standalone:!0,features:[l.Jv_([b]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),qi=(()=>{class o extends Zi{constructor(e,s){super("valueAxis",e,s),this.configurationService=e,this.collectionService=s}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(bt))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis"]],contentQueries:function(e,s,i){if(1&e&&l.wni(i,si,4),2&e){let n;l.mGM(n=l.lsd())&&(s.children=n)}},standalone:!0,features:[l.Jv_([bt]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Fa=(()=>{class o extends T{constructor(e){super("crosshair",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis-item-crosshair"]],inputs:{color:"color",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Na=(()=>{class o extends T{constructor(e){super("crosshair.tooltip",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis-item-crosshair-tooltip"]],inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),za=(()=>{class o extends T{constructor(e){super("labels",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis-item-labels"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ua=(()=>{class o extends T{constructor(e){super("notes",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis-item-notes"]],inputs:{data:"data",line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ha=(()=>{class o extends T{constructor(e){super("notes.icon",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis-item-notes-icon"]],inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),ja=(()=>{class o extends T{constructor(e){super("notes.label",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis-item-notes-label"]],inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Ga=(()=>{class o extends T{constructor(e){super("title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-value-axis-item-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Xa=(()=>{class o{constructor(){this.rootItem={icon:"home",svgIcon:la.P0s,title:"Home"},this.subscription=new JT.yU}ngOnInit(){if(this.items=[this.rootItem],this.chart)this.subscription.add(this.chart.drilldown.subscribe(this.onDrilldown.bind(this))),this.subscription.add(this.chart.drilldownLevelChange.subscribe(this.onDrilldownLevelChange.bind(this)));else if((0,l.naY)())throw new Error('Chart Breadcrumb: No Chart instance supplied. Please add a reference using the "chart" attribute. For example: \n<kendo-chart-breadcrumb [chart]="instance" />\n<kendo-chart #instance>')}ngOnChanges(e){const s=e.rootItem;s&&this.items&&(this.items[0]=s.currentValue)}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}onItemClick(e){this.chart.drilldownLevel=this.items.findIndex(s=>s===e)}onDrilldown(e){this.items=[...this.items,{text:e.point.category.toString()}]}onDrilldownLevelChange(e){this.items=this.items.slice(0,e+1)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-chart-breadcrumb"]],viewQuery:function(e,s){if(1&e&&l.GBs(C2,7),2&e){let i;l.mGM(i=l.lsd())&&(s.breadcrumb=i.first)}},inputs:{chart:"chart",rootItem:"rootItem"},exportAs:["kendoChartBreadcrumb"],standalone:!0,features:[l.OA$,l.aNF],decls:1,vars:1,consts:[[3,"itemClick","items"]],template:function(e,s){1&e&&(l.j41(0,"kendo-breadcrumb",0),l.bIt("itemClick",function(n){return s.onItemClick(n)}),l.k0s()),2&e&&l.Y8G("items",s.items)},dependencies:[t2.JD],encapsulation:2}),o})();class Vv extends Et.PM{constructor(t,e){super(),this.sender=e,this.originalEvent=t.originalEvent}}class nd extends Vv{constructor(t,e){super(t,e),this.dataItem=t.dataItem}}class od extends Vv{constructor(t,e){super(t,e),this.dataItem=t.dataItem}}const bM={nodeEnter:nd,nodeLeave:nd,linkEnter:od,linkLeave:od,nodeClick:nd,linkClick:od};class Fv{create(t,e,s){return new bM[t](e,s)}}class _M{constructor(t){const e=t.dataItem;this.source=e.source,this.target=e.target,this.value=e.value}}let Wa=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(l.C4Q,8))},o.\u0275dir=l.FsC({type:o,selectors:[["","kendoSankeyLinkTooltipTemplate",""]],standalone:!0}),o})();class CM{constructor(t){const e=t.dataItem;this.label=e.label,this.color=e.color,this.value=t.nodeValue}}let Ya=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(l.C4Q,8))},o.\u0275dir=l.FsC({type:o,selectors:[["","kendoSankeyNodeTooltipTemplate",""]],standalone:!0}),o})(),rd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=l.jDH({token:o,factory:o.\u0275fac}),o})(),wM=(()=>{class o{constructor(){this.size=15,this.display="inline-flex",this.marginLeft=3}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=l.FsC({type:o,selectors:[["","squareSymbol",""]],hostVars:10,hostBindings:function(e,s){2&e&&l.xc7("background-color",s.color)("width",s.size,"px")("height",s.size,"px")("display",s.display)("margin-left",s.marginLeft,"px")},inputs:{color:"color",size:"size"},standalone:!0}),o})(),$a=(()=>{class o extends $h{constructor(e,s,i,n,r,a,c){super(s,n),this.element=e,this.popupService=s,this.templateService=i,this.localizationService=n,this.intlService=r,this.ngZone=a,this.renderer=c,this.animate=!1,this.wrapperClass="k-chart-tooltip-wrapper",this.arrowIcon=la.ZM9,this.textStyle={margin:"0 3px"},this.tooltipStyle={display:"flex",alignItems:"center"},this.rtl=!1}onInit(){this.popupRef.popupElement.className+=` ${this.wrapperClass}`}ngAfterViewInit(){this.setDirection(),this.subscriptions=this.localizationService.changes.subscribe(this.rtlChange.bind(this))}ngOnDestroy(){super.ngOnDestroy(),this.subscriptions&&this.subscriptions.unsubscribe()}
1show(e){this.isNode="node"===e.targetType,this.isLink="link"===e.targetType,this.nodeTooltipTemplateRef=this.templateService.nodeTemplate||this.defaultNodeTooltipTemplate.templateRef,this.nodeTooltipContext=new CM(e),this.linkTooltipTemplateRef=this.templateService.linkTemplate||this.defaultLinkTooltipTemplate.templateRef,this.linkTooltipContext=new _M(e),super.show({style:{position:"static"},anchor:{align:e.tooltipData.popupAlign,point:this.tooltipAnchor(e)}})}tooltipAnchor(e){const s=this.element.nativeElement,i_width=s.offsetWidth,i_height=s.offsetHeight,n={...e.tooltipData.popupOffset},r=e.tooltipData.popupAlign,a=this.offset||12;return n.left+="left"===r.horizontal?a:-1*a,"right"===r.horizontal&&(n.left-=i_width),"bottom"===r.vertical?n.top-=i_height+a:n.top+=a,n}formatUnits(e){return this.intlService.format(this.tooltipUnitFormat,e??0)}rtlChange(){this.arrowIcon=this.rtl?la.i1n:la.ZM9}setDirection(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}get isRTL(){return!!this.localizationService.rtl}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(l.aKT),l.rXU(pe.OQ),l.rXU(rd),l.rXU(At.Pi),l.rXU(ts.Bs),l.rXU(l.SKi),l.rXU(l.sFG))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey-tooltip-popup"]],viewQuery:function(e,s){if(1&e&&(l.GBs(Ya,5),l.GBs(Wa,5),l.GBs(jh,7)),2&e){let i;l.mGM(i=l.lsd())&&(s.defaultNodeTooltipTemplate=i.first),l.mGM(i=l.lsd())&&(s.defaultLinkTooltipTemplate=i.first),l.mGM(i=l.lsd())&&(s.templateRef=i.first)}},inputs:{animate:"animate",popupSettings:"popupSettings",wrapperClass:"wrapperClass",tooltipUnitFormat:"tooltipUnitFormat",offset:"offset"},standalone:!0,features:[l.Jv_([pe.OQ,{provide:pe.Fy,useFactory:Zh}]),l.Vt3,l.aNF],decls:4,vars:0,consts:[["content",""],["kendoSankeyNodeTooltipTemplate",""],["kendoSankeyLinkTooltipTemplate",""],[1,"k-tooltip","k-sankey-tooltip","k-chart-tooltip","k-chart-shared-tooltip",3,"ngStyle"],[1,"k-tooltip-content"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngStyle"],["squareSymbol","",3,"color"],[3,"name","svgIcon"]],template:function(e,s){1&e&&l.DNE(0,T2,4,3,"ng-template",null,0,l.C5r)(2,M2,6,6,"ng-template",1)(3,E2,10,11,"ng-template",2)},dependencies:[it.B3,it.bT,it.T3,Ya,wM,Wa,Ix.QK],encapsulation:2}),o})(),Za=(()=>{class o extends At.EX{}return o.\u0275fac=(()=>{let t;return function(s){return(t||(t=l.xGo(o)))(s||o)}})(),o.\u0275dir=l.FsC({type:o,selectors:[["","kendoSankeyMessages",""]],inputs:{tooltipUnitFormat:"tooltipUnitFormat"},features:[l.Vt3]}),o})(),Nv=(()=>{class o extends Za{constructor(e){super(),this.service=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(At.Pi))},o.\u0275dir=l.FsC({type:o,selectors:[["","kendoSankeyLocalizedMessages",""]],standalone:!0,features:[l.Jv_([{provide:Za,useExisting:(0,l.Rfq)(()=>o)}]),l.Vt3]}),o})(),ad=(()=>{class o{constructor(e,s,i,n,r,a,c,h,d){this.element=e,this.configurationService=s,this.themeService=i,this.localizationService=n,this.instanceEventService=r,this.ngZone=a,this.changeDetector=c,this.renderer=h,this.intlService=d,this.navigable=!0,this.nodeEnter=new l.bkB,this.nodeLeave=new l.bkB,this.nodeClick=new l.bkB,this.linkEnter=new l.bkB,this.linkLeave=new l.bkB,this.linkClick=new l.bkB,this.showLicenseWatermark=!1,this.rtl=!1;const u=(0,aa.$j)(ua);this.showLicenseWatermark=(0,Et.Em)(u),this.themeService.loadTheme(),this.refreshWait()}ngAfterViewInit(){this.setDirection(),this.subscriptions=this.intlService.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))}ngOnChanges(e){const s=this.configurationService.store;ca(e,s),s.popupSettings=null,this.configurationService.push(s)}notifyChanges(e){this.ngOnChanges(ha(e))}ngOnDestroy(){this.destroyed=!0,this.optionsChange&&this.optionsChange.unsubscribe(),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.redrawTimeout)}messageFor(e){return this.localizationService.get(e)}createInstance(e){this.instance=new tx(e,this.instanceOptions,this.theme),["nodeEnter","nodeLeave","nodeClick","linkEnter","linkLeave","linkClick"].forEach(s=>this.instance.bind(s,i=>this.trigger(s,i))),this.instance.bind("tooltipShow",s=>this.onShowTooltip(s)),this.instance.bind("tooltipHide",()=>this.onHideTooltip())}exportImage(e={}){return(0,Ex.A)(this.exportVisual(e),e)}exportSVG(e={}){return Dx(this.exportVisual(e),e)}exportVisual(e={}){return this.instance.exportVisual(e)}init(){this.canRender&&this.createInstance(this.instanceElement.nativeElement)}reloadTheme(){this.instance&&(this.themeService.reset(),this.instance.destroy(),this.instance=null)}onShowTooltip(e){this.run(()=>{this.tooltipInstance.show(e)},!0,!0)}onHideTooltip(){this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())}trigger(e,s){const i=this.activeEmitter(e);if(i){const n=this.instanceEventService.create(e,s,this);return this.run(()=>{i.emit(n)}),n.isDefaultPrevented&&n.isDefaultPrevented()}}requiresHandlers(e){for(let s=0;s<e.length;s++)if(this.activeEmitter(e[s]))return!0;return!1}refresh(){clearTimeout(this.redrawTimeout),this.instance?this.updateOptions():this.init()}updateOptions(){this.instance.setOptions(this.instanceOptions)}get canRender(){return(0,Et.nm)()&&!!this.instanceElement}get instanceOptions(){return{...this.options,rtl:this.rtl,disableKeyboardNavigation:!this.navigable}}activeEmitter(e){const s=this[e];if(s&&s.emit&&pa(s))return s}refreshWait(){this.ngZone.runOutsideAngular(()=>{this.optionsChange=(0,Px.z)([this.configurationService.onChange$,this.themeService.onChange$]).pipe((0,Lx.M)(e=>{this.options=e[0],this.theme=this.loadTheme(e[1])}),(0,Hh.Z)(Xh)).subscribe(()=>{this.refresh()})})}loadTheme(e){return{...e,nodeColors:e.seriesColors}}run(e,s=!0,i){s?(i&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),i&&this.detectChanges())}detectChanges(){this.destroyed||this.changeDetector.detectChanges()}intlChange(){this.instance&&this.refresh()}rtlChange(){this.instance&&this.rtl!==this.isRTL&&this.refresh()}setDirection(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}get isRTL(){return!!this.localizationService.rtl}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(l.aKT),l.rXU(b),l.rXU(oo),l.rXU(At.Pi),l.rXU(Fv),l.rXU(l.SKi),l.rXU(l.gRc),l.rXU(l.sFG),l.rXU(ts.Bs))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey"]],viewQuery:function(e,s){if(1&e&&(l.GBs($a,7),l.GBs(D2,7)),2&e){let i;l.mGM(i=l.lsd())&&(s.tooltipInstance=i.first),l.mGM(i=l.lsd())&&(s.instanceElement=i.first)}},inputs:{data:"data",links:"links",nodes:"nodes",labels:"labels",title:"title",legend:"legend",tooltip:"tooltip",disableAutoLayout:"disableAutoLayout",navigable:"navigable",popupSettings:"popupSettings"},outputs:{nodeEnter:"nodeEnter",nodeLeave:"nodeLeave",nodeClick:"nodeClick",linkEnter:"linkEnter",linkLeave:"linkLeave",linkCl
1ick:"linkClick"},exportAs:["kendoSankey"],standalone:!0,features:[l.Jv_([b,At.Pi,Fv,rd,{provide:At.$R,useValue:"kendo.sankey"}]),l.OA$,l.aNF],decls:5,vars:3,consts:()=>{let t;return t=$localize`:kendo.sankey.tooltipUnitFormat|The format string to use when displaying node and link values in the tooltip:({0} units)`,[["instance",""],["kendoSankeyLocalizedMessages","","tooltipUnitFormat",t],[3,"popupSettings","tooltipUnitFormat"],["kendoWatermarkOverlay","",4,"ngIf"],["kendoWatermarkOverlay",""]]},template:function(e,s){1&e&&(l.eu8(0,1),l.nrm(1,"div",null,0)(3,"kendo-sankey-tooltip-popup",2),l.DNE(4,P2,1,0,"div",3)),2&e&&(l.R7$(3),l.Y8G("popupSettings",s.popupSettings)("tooltipUnitFormat",s.messageFor("tooltipUnitFormat")),l.R7$(),l.Y8G("ngIf",s.showLicenseWatermark))},dependencies:[Nv,$a,it.bT,Et.S$],encapsulation:2,changeDetection:0}),o})();let zv=(()=>{class o extends T{constructor(e){super("labels",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey-labels"]],inputs:{visible:"visible",font:"font",color:"color",align:"align",position:"position",padding:"padding",margin:"margin",border:"border",offset:"offset",stroke:"stroke"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Uv=(()=>{class o extends T{constructor(e){super("legend",e),this.configurationService=e,this.markAsVisible()}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey-legend"]],inputs:{align:"align",background:"background",border:"border",height:"height",labels:"labels",margin:"margin",offsetX:"offsetX",offsetY:"offsetY",orientation:"orientation",padding:"padding",position:"position",reverse:"reverse",visible:"visible",width:"width",markers:"markers",spacing:"spacing",title:"title"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Hv=(()=>{class o extends T{constructor(e){super("links",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey-links"]],inputs:{colorType:"colorType",color:"color",opacity:"opacity",highlight:"highlight"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),jv=(()=>{class o extends Za{constructor(e){super(),this.service=e}get override(){return!0}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(At.Pi))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey-messages"]],standalone:!0,features:[l.Jv_([{provide:Za,useExisting:(0,l.Rfq)(()=>o)}]),l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2}),o})(),Gv=(()=>{class o extends T{constructor(e){super("nodes",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))}
1,o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey-nodes"]],inputs:{colorType:"colorType",color:"color",opacity:"opacity",offset:"offset",padding:"padding",width:"width",align:"align"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Xv=(()=>{class o extends T{constructor(e){super("title",e),this.configurationService=e}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey-title"]],inputs:{align:"align",background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",text:"text",description:"description",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),o})(),Wv=(()=>{class o extends T{constructor(e,s){super("tooltip",e),this.configurationService=e,this.templateService=s,this.markAsVisible()}ngAfterContentChecked(){this.templateService.linkTemplate=this.linkTooltipTemplate?.templateRef,this.templateService.nodeTemplate=this.nodeTooltipTemplate?.templateRef}}return o.\u0275fac=function(e){return new(e||o)(l.rXU(b),l.rXU(rd))},o.\u0275cmp=l.VBU({type:o,selectors:[["kendo-sankey-tooltip"]],contentQueries:function(e,s,i){if(1&e&&(l.wni(i,Wa,5),l.wni(i,Ya,5)),2&e){let n;l.mGM(n=l.lsd())&&(s.linkTooltipTemplate=n.first),l.mGM(n=l.lsd())&&(s.nodeTooltipTemplate=n.first)}},inputs:{followPointer:"followPointer",delay:"delay",offset:"offset",visible:"visible"},standalone:!0,features:[l.Vt3,l.aNF],decls:0,vars:0,template:function(e,s){},encapsulation:2}),o})(),Yv=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=l.$C({type:o}),o.\u0275inj=l.G2t({providers:[Ix.o3,Et.yr,pe.OQ,oo],imports:[Ss,Hx,jx,Gx,td,Xx,Wx,Yx,$x,Zx,Qx,Kx,qx,ed,Jx,tv,ev,sv,iv,nv,As,Cs,Yi,fa,ma,xa,va,ya,ko,ao,lo,Ks,qs,ba,co,ho,uo,po,go,Js,Xa,ti,_a,Ca,Qi,wa,Aa,Sa,fo,ka,ke,Ta,Ma,Ea,Da,Pa,La,Ia,Ra,mo,xo,vo,ge,Ki,yo,bo,_o,Co,wo,Ao,So,Wi,Ba,Oa,Va,To,ei,qi,Fa,Na,si,za,Ua,Ha,ja,Ga,Ov,lv,cv,hv,dv,uv,pv,gv,fv,mv,xv,vv,yv,bv,_v,Cv,wv,id,Av,Sv,kv,Tv,Mv,Ev,Dv,Pv,Lv,Iv,Rv,Bv,As,Cs,Yi,fa,ma,xa,va,ya,ko,ao,lo,Ks,qs,ba,co,ho,uo,po,go,Js,Xa,ti,_a,Ca,Qi,wa,Aa,Sa,fo,ka,ke,Ta,Ma,Ea,Da,Pa,La,Ia,Ra,mo,xo,vo,ge,Ki,yo,bo,_o,Co,wo,Ao,So,Wi,Ba,Oa,Va,To,ei,qi,Fa,Na,si,za,Ua,Ha,ja,Ga,ad,$a,jv,Xv,Uv,Wv,Hv,Gv,zv]}),o})();const PM=["kendoChart"];function LM(o,t){1&o&&(l.qex(0),l.j41(1,"div",3)(2,"div",4)(3,"p"),l.EFF(4,"No records available"),l.k0s()()(),l.bVm())}function IM(o,t){if(1&o&&l.EFF(0),2&o){const e=t.value,s=t.category,i=l.XpG(2);l.Lme(" ",s," : ",i.seriesTotal?i.calculatePercentage(e,i.seriesTotal):0,"% ")}}function RM(o,t){if(1&o&&(l.j41(0,"span"),l.EFF(1),l.k0s()),2&o){const e=l.XpG(2);l.xc7("font-weight","700")("color",e.labelColor),l.R7$(),l.JRh(e.seriesTotal)}}function BM(o,t){if(1&o&&(l.j41(0,"kendo-chart",5,1),l.nrm(2,"kendo-chart-area",6),l.j41(3,"kendo-chart-tooltip"),l.DNE(4,IM,1,2,"ng-template",7),l.k0s(),l.DNE(5,RM,2,5,"ng-template",8),l.j41(6,"kendo-chart-series")(7,"kendo-chart-series-item",9),l.nrm(8,"kendo-chart-series-item-labels",10),l.k0s()(),l.nrm(9,"kendo-chart-legend",11),l.k0s()),2&o){const e=l.XpG();l.R7$(2),l.Y8G("background",e.backgroundColor),l.R7$(5),l.Y8G("name",e.chart.series[0].name)("type",e.chart.series[0].type)("data",e.chart.series[0].data),l.R7$(),l.Y8G("content",e.labelContent)("color",e.labelColor),l.R7$(),l.Y8G("visible",e.chart.legend.visible)("position",e.chart.legend.position)}}let OM=(()=>{class o{constructor(){this.elRef=(0,l.WQX)(l.aKT),this.noRecords=!1}set inputChart(e){this.chart=e,this.noRecords=this.chart.series[0].data.every(s=>!s.field),this.noRecords||(this.seriesTotal=this.chart.series[0].data.reduce((s,i)=>s+i.field,0))}ngOnInit(){const e=getComputedStyle(this.elRef.nativeElement);this.backgroundColor=e.getPropertyValue("--main-widget-background").trim(),this.labelColor=e.getPropertyValue("--main-text-color").trim()}labelContent(e){return e.dataItem.categoryField}calculatePercentage(e,s){return 0===s?0:Math.round(e/s*100)}exportChart(){this.kendoChart.exportImage().then(e=>{(0,Ja.U)(e,"chart.png")})}static{this.\u0275fac=function(s){return new(s||o)}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-donut-chart"]],viewQuery:function(s,i){if
1(1&s&&l.GBs(PM,5),2&s){let n;l.mGM(n=l.lsd())&&(i.kendoChart=n.first)}},inputs:{inputChart:"inputChart"},standalone:!0,features:[l.aNF],decls:3,vars:2,consts:[["chartTemplate",""],["kendoChart",""],[4,"ngIf","ngIfElse"],[1,"row","justify-content-center","align-items-center",2,"height","300px"],[1,"col","text-center"],[2,"height","300px"],[3,"background"],["kendoChartSeriesTooltipTemplate",""],["kendoChartDonutCenterTemplate",""],["categoryField","categoryField","field","field","colorField","color",3,"name","type","data"],["background","none",3,"content","color"],[3,"visible","position"]],template:function(s,i){if(1&s&&l.DNE(0,LM,5,0,"ng-container",2)(1,BM,10,8,"ng-template",null,0,l.C5r),2&s){const n=l.sdS(2);l.Y8G("ngIf",!0===i.noRecords)("ngIfElse",n)}},dependencies:[Ss,Gh,ws,Js,ti,ke,ge,Ki,ei,it.MD,it.bT],encapsulation:2})}}return o})();var Ji=S(57419),qe=S(86767),$v=function(o){return o[o.Point=0]="Point",o[o.Company=1]="Company",o}($v||{});const VM=["kendoChart"],FM=o=>({text:o});function NM(o,t){1&o&&(l.qex(0),l.j41(1,"div",3)(2,"div",4)(3,"p"),l.EFF(4,"No records available"),l.k0s()()(),l.bVm())}function zM(o,t){if(1&o&&(l.j41(0,"div",14)(1,"div",15)(2,"strong"),l.EFF(3,"Companies:"),l.k0s()(),l.nrm(4,"div",16),l.k0s()),2&o){const e=t.category,s=t.series,i=l.XpG(3);l.R7$(4),l.Y8G("innerHTML",i.getCompanyNamesAsLinks(e,s.name),l.npT)}}function UM(o,t){1&o&&(l.j41(0,"kendo-chart-tooltip"),l.DNE(1,zM,5,1,"ng-template",13),l.k0s())}function HM(o,t){if(1&o&&(l.j41(0,"div"),l.EFF(1),l.k0s()),2&o){const e=t.$implicit;l.R7$(),l.Lme(" ",e.series.name," : ",e.value," ")}}function jM(o,t){if(1&o&&(l.j41(0,"div",18)(1,"div"),l.EFF(2),l.k0s(),l.DNE(3,HM,2,2,"div",19),l.k0s()),2&o){const e=t.category,s=t.points;l.R7$(2),l.JRh(e),l.R7$(),l.Y8G("ngForOf",s)}}function GM(o,t){1&o&&(l.j41(0,"kendo-chart-tooltip",7),l.DNE(1,jM,4,2,"ng-template",17),l.k0s()),2&o&&l.Y8G("shared",!0)}function XM(o,t){if(1&o&&l.nrm(0,"kendo-chart-series-item",12),2&o){const e=t.$implicit;l.Y8G("name",e.name)("type",e.type)("gap",2)("spacing",.25)("stack",e.stack)("color",e.color)("data",e.data)("opacity",e.opacity||1)("zIndex",e.zIndex||0)}}function WM(o,t){if(1&o&&(l.j41(0,"kendo-chart",5,1),l.nrm(2,"kendo-chart-area",6),l.DNE(3,UM,2,0,"kendo-chart-tooltip")(4,GM,2,1,"kendo-chart-tooltip",7),l.nrm(5,"kendo-chart-legend",8),l.j41(6,"kendo-chart-value-axis"),l.nrm(7,"kendo-chart-value-axis-item",9),l.k0s(),l.j41(8,"kendo-chart-category-axis")(9,"kendo-chart-category-axis-item",10),l.nrm(10,"kendo-chart-category-axis-item-labels",11),l.k0s()(),l.j41(11,"kendo-chart-series"),l.Z7z(12,XM,1,9,"kendo-chart-series-item",12,l.Vm6),l.k0s()()),2&o){const e=l.XpG();l.R7$(2),l.Y8G("background",e.backgroundColor),l.R7$(),l.vxM(e.chart.tooltipType===e.TooltipType.Company?3:4),l.R7$(2),l.Y8G("visible",e.chart.legend.visible)("position",e.chart.legend.position),l.R7$(2),l.Y8G("title",e.chart.valueAxis.title)("visible",e.chart.valueAxis.visible),l.R7$(2),l.Y8G("categories",e.chart.categoryAxis.categories)("title",l.eq3(9,FM,e.chart.categoryAxis.title.text)),l.R7$(),l.Y8G("color",e.labelColor),l.R7$(2),l.Dyx(e.chart.series)}}let YM=(()=>{class o{constructor(){this.TooltipType=$v,this.elRef=(0,l.WQX)(l.aKT),this.noRecords=!1}set inputChart(e){this.chart=e,this.noRecords=this.chart.series.every(s=>this.checkData(s))}ngOnInit(){const e=getComputedStyle(this.elRef.nativeElement);this.backgroundColor=e.getPropertyValue("--main-widget-background").trim(),this.labelColor=e.getPropertyValue("--main-text-color").trim()}checkData(e){return 0===e.data.length||e.data.every(s=>0===s)}exportChart(){this.kendoChart.exportImage().then(e=>{(0,Ja.U)(e,"chart.png")})}getCompanyNamesAsLinks(e,s){const i=this.chart.categoryCompanies?.find(a=>a.name===e);if(!i)return;const n=i.seriesCompanies.find(a=>a.name===s);return n?n.companies.map(a=>a.name).join("<br/>"):void 0}static{this.\u0275fac=function(s){return new(s||o)}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-column-chart"]],viewQuery:function(s,i){if(1&s&&l.GBs(VM,5),2&s){let n;l.mGM(n=l.lsd())&&(i.kendoChart=n.first)}},inputs:{inputChart:"inputChart"},standalone:!0,features:[l.aNF],decls:3,vars:2,consts:[["chartTemplate",""],["kendoChart",""],[4,"ngIf","ngIfElse"],[1,"row","justify-content-center","align-items-center",2,"height","300px"],[1,"col","text-center"],[2,"height","300px"],[3,"background"],[3,"shared"],[3,"visible","position"],[3,"title","visible"],[3,"categories","title"],[3,"color"],[3,"name","type","gap","spacing","stack","color","data","opacity","zIndex"],["kendoChartSeriesTooltipTemplate",""],[2,"white-space","nowrap"],[2,"margin-bottom","5px"],[3,"innerHTML"],["kendoChartSharedTooltipTemplate",""],[2,"color","#1f1f1f"],[4,"ngFor","ngForOf"]],template:function(s,i){if
1(1&s&&l.DNE(0,NM,5,0,"ng-container",2)(1,WM,14,11,"ng-template",null,0,l.C5r),2&s){const n=l.sdS(2);l.Y8G("ngIf",!0===i.noRecords)("ngIfElse",n)}},dependencies:[Ss,ws,$i,ko,Ks,qs,Js,ti,ke,ge,ei,qi,si,it.MD,it.Sq,it.bT],encapsulation:2})}}return o})(),$M=(()=>{class o{constructor(){this.tempPlotBands=[{from:0,to:35,color:"#e62325",opacity:1},{from:35,to:65,color:"#ffc000",opacity:1},{from:65,to:100,color:"#37b400",opacity:1}],this.temp=[[75]],this.temp2=[[45]],this.legend={position:"bottom"}}static{this.\u0275fac=function(s){return new(s||o)}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-bullet-chart"]],standalone:!0,features:[l.aNF],decls:6,vars:5,consts:[[2,"height","120px",3,"legend"],["text","Compliance - Endpoints"],["type","bullet","color","#fff",3,"data"],[3,"min","max","plotBands"]],template:function(s,i){1&s&&(l.j41(0,"kendo-chart",0),l.nrm(1,"kendo-chart-title",1),l.j41(2,"kendo-chart-series"),l.nrm(3,"kendo-chart-series-item",2),l.j41(4,"kendo-chart-value-axis"),l.nrm(5,"kendo-chart-value-axis-item",3),l.k0s()()()),2&s&&(l.Y8G("legend",i.legend),l.R7$(3),l.Y8G("data",i.temp),l.R7$(2),l.Y8G("min",0)("max",100)("plotBands",i.tempPlotBands))},dependencies:[Yv,Ss,ke,ge,To,qi,si],encapsulation:2})}}return o})();const ZM=["kendoChart"],QM=(o,t,e)=>({visible:!0,content:o,color:t,background:e});function KM(o,t){1&o&&(l.qex(0),l.j41(1,"div",3)(2,"div",4)(3,"p"),l.EFF(4,"No records available"),l.k0s()()(),l.bVm())}function qM(o,t){if(1&o&&l.EFF(0),2&o){const e=t.value,s=t.category,i=l.XpG(2);l.Lme(" ",s," : ",i.seriesTotal?i.calculatePercentage(e,i.seriesTotal):0,"% ")}}function JM(o,t){if(1&o&&l.nrm(0,"kendo-chart-series-item",8),2&o){const e=t.$implicit,s=l.XpG(2);l.Y8G("type",e.type)("data",e.data)("labels",l.sMw(4,QM,s.labelContent,s.labelColor,s.backgroundColor))("autoFit",!0)}}function tE(o,t){if(1&o&&(l.j41(0,"kendo-chart",5,1),l.nrm(2,"kendo-chart-area",6),l.j41(3,"kendo-chart-tooltip"),l.DNE(4,qM,1,2,"ng-template",7),l.k0s(),l.j41(5,"kendo-chart-series"),l.Z7z(6,JM,1,8,"kendo-chart-series-item",8,l.Vm6),l.k0s(),l.nrm(8,"kendo-chart-legend",9),l.k0s()),2&o){const e=l.XpG();l.R7$(2),l.Y8G("background",e.backgroundColor),l.R7$(4),l.Dyx(e.chart.series),l.R7$(2),l.Y8G("visible",e.chart.legend.visible)("position",e.chart.legend.position)}}let eE=(()=>{class o{constructor(){this.elRef=(0,l.WQX)(l.aKT),this.noRecords=!1}set inputChart(e){this.chart=e,this.noRecords=this.chart.series[0].data.every(s=>!s.field),this.noRecords||(this.seriesTotal=this.chart.series[0].data.reduce((s,i)=>s+i.field,0))}ngOnInit(){const e=getComputedStyle(this.elRef.nativeElement);this.backgroundColor=e.getPropertyValue("--main-widget-background").trim(),this.labelColor=e.getPropertyValue("--main-text-color").trim()}labelContent(e){return e.category}calculatePercentage(e,s){return 0===s?0:Math.round(e/s*100)}exportChart(){this.kendoChart.exportImage().then(e=>{(0,Ja.U)(e,"chart.png")})}static{this.\u0275fac=function(s){return new(s||o)}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-pie-chart"]],viewQuery:function(s,i){if(1&s&&l.GBs(ZM,5),2&s){let n;l.mGM(n=l.lsd())&&(i.kendoChart=n.first)}},inputs:{inputChart:"inputChart"},standalone:!0,features:[l.aNF],decls:3,vars:2,consts:[["chartTemplate",""],["kendoChart",""],[4,"ngIf","ngIfElse"],[1,"row","justify-content-center","align-items-center",2,"height","300px"],[1,"col","text-center"],[2,"height","300px"],[3,"background"],["kendoChartSeriesTooltipTemplate",""],["categoryField","categoryField","field","field","colorField","color",3,"type","data","labels","autoFit"],[3,"visible","position"]],template:function(s,i){if(1&s&&l.DNE(0,KM,5,0,"ng-container",2)(1,tE,9,3,"ng-template",null,0,l.C5r),2&s){const n=l.sdS(2);l.Y8G("ngIf",!0===i.noRecords)("ngIfElse",n)}},dependencies:[Ss,ws,Js,ti,ke,ge,ei,Yv,it.MD,it.bT],encapsulation:2})}}return o})();var tn=S(37367);const sE=o=>({"background-color":o,width:"10px","min-width":"10px"});function iE(o,t){if(1&o&&(l.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),l.EFF(4),l.k0s(),l.j41(5,"div",6),l.EFF(6),l.k0s()()()()),2&o){const e=l.XpG();l.R7$(4),l.SpI(" ",e.card.title.name," "),l.R7$(2),l.SpI(" ",e.card.title.value," ")}}function nE(o,t){if(1&o&&(l.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),l.EFF(4),l.k0s(),l.j41(5,"div",6),l.EFF(6),l.k0s()()()()),2&o){const e=l.XpG();
1l.R7$(4),l.SpI(" ",e.card.subtitle.name," "),l.R7$(2),l.SpI(" ",e.card.subtitle.value," ")}}function oE(o,t){if(1&o&&(l.j41(0,"div",2)(1,"div",7),l.nrm(2,"div",8),l.j41(3,"div",9)(4,"div",10)(5,"div",11),l.EFF(6),l.k0s(),l.j41(7,"div",12),l.EFF(8),l.k0s()()()()()),2&o){const e=t.$implicit;l.R7$(2),l.Y8G("ngStyle",l.eq3(3,sE,e.color)),l.R7$(4),l.SpI(" ",e.name," "),l.R7$(2),l.SpI(" ",e.value," ")}}let rE=(()=>{class o{set inputCard(e){this.card=e}static{this.\u0275fac=function(s){return new(s||o)}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-card"]],inputs:{inputCard:"inputCard"},standalone:!0,features:[l.aNF],decls:5,vars:2,consts:[["class","mb-4",4,"ngIf"],[1,"gy-4"],[1,"mb-4"],[1,"col"],[1,"row","g-0"],[1,"col-12","card-names","text-left","p-0","m-0"],[1,"col-12","card-values","text-left","p-0","m-0"],[1,"d-flex","align-items-stretch"],[3,"ngStyle"],[1,"flex-grow-1","ms-3"],[1,"d-flex","flex-column"],[1,"card-names","text-left","p-0","mb-1",2,"white-space","nowrap"],[1,"card-values","text-left","p-0",2,"white-space","nowrap"]],template:function(s,i){1&s&&(l.DNE(0,iE,7,2,"div",0)(1,nE,7,2,"div",0),l.j41(2,"div",1),l.Z7z(3,oE,9,5,"div",2,l.Vm6),l.k0s()),2&s&&(l.Y8G("ngIf",i.card.title),l.R7$(),l.Y8G("ngIf",i.card.subtitle),l.R7$(2),l.Dyx(i.card.cardValues))},dependencies:[it.MD,it.bT,it.B3],styles:[".card-names[_ngcontent-%COMP%]{float:left;color:var(--main-text-color);font-size:14px;font-weight:300;margin-top:-1px;text-align:left;margin-bottom:1rem}.card-values[_ngcontent-%COMP%]{float:left;color:var(--main-text-color);font-size:18px;font-weight:700;margin-top:-1px;text-align:left}"]})}}return o})();var aE=S(51188);const lE=["widgetContainer"];function cE(o,t){if(1&o){const e=l.RV6();l.j41(0,"div")(1,"div",6),l.bIt("click",function(i){l.eBV(e);const n=l.XpG();return l.Njj(n.onMenuItemClick(i))}),l.k0s()()}}function hE(o,t){1&o&&(l.qex(0),l.j41(1,"div",7)(2,"div",8)(3,"div",9),l.nrm(4,"div",10),l.k0s(),l.j41(5,"div",9),l.nrm(6,"div",10),l.k0s(),l.j41(7,"div",9),l.nrm(8,"div",10),l.k0s(),l.j41(9,"div",9),l.nrm(10,"div",10),l.k0s(),l.j41(11,"div",9),l.nrm(12,"div",10),l.k0s(),l.j41(13,"div",9),l.nrm(14,"div",10),l.k0s()()(),l.bVm())}function dE(o,t){1&o&&l.nrm(0,"div",null,0)}function uE(o,t){1&o&&(l.nrm(0,"span",11),l.EFF(1," View Source Data "))}function pE(o,t){1&o&&(l.nrm(0,"span",12),l.EFF(1," Download As PNG "))}let gE=(()=>{class o{set widget(e){this.localWidget=e,e&&this.loadWidgetData()}constructor(e,s){this.router=e,this.contextMenuService=s,this.partnerCenterHomeService=(0,l.WQX)(qa.y),this.filterService=(0,l.WQX)(hd._),this.isLoading=!1}ngOnInit(){}loadWidgetData(){this.localWidget?.api&&(this.isLoading=!0,this.filterService.filtersBehaviorSubject$.pipe((0,ey.n)(e=>(this.filters=e,this.partnerCenterHomeService.getData(this.localWidget.api,e))),(0,sy.j)(()=>{this.isLoading=!1})).subscribe({next:e=>{this.getComponentByType(e.data),this.componentRef&&this.componentRef.changeDetectorRef.detectChanges(),this.isLoading=!1},error:e=>{console.error("Error loading widget data:",e),this.isLoading=!1}}))}getComponentByType(e){if(this.vcr)switch(this.localWidget.widgetType){case Ji.x.Chart:switch(this.localWidget.chartType){case qe.N.Donut:this.createComponent(OM),this.localWidget.chart=e,this.componentRef?.setInput("inputChart",this.localWidget.chart);break;case qe.N.Pie:this.createComponent(eE),this.localWidget.chart=e,this.componentRef?.setInput("inputChart",this.localWidget.chart);break;case qe.N.Area:case qe.N.Bar:case qe.N.Column:case qe.N.Funnel:case qe.N.Line:case qe.N.Pyramid:this.createComponent(YM),this.localWidget.chart=e,this.componentRef?.setInput("inputChart",this.localWidget.chart);break;case qe.N.Bullet:this.createComponent($M),this.localWidget.chart=e,this.componentRef?.setInput("inputChart",this.localWidget.chart)}break;case Ji.x.Date:case Ji.x.Grid:case Ji.x.HTML:case Ji.x.KPI:case Ji.x.Card:this.createComponent(rE),this.localWidget.card=e,this.componentRef?.setInput("inputCard",this.localWidget.card)}}createComponent(e){this.vcr&&(this.vcr.clear(),this.componentRef=this.vcr.createComponent(e))}nagivateToDateSource(e){this.filters.isClickThrough=!0,this.router.navigate([e])}onMenuItemClick(e,s){e.target.parentElement&&(this.contextMenuService.closeAll(),this.contextMenuService.show(this.basicMenu,{x:e.clientX-10,y:e.clientY+10,value:s}),e.preventDefault(),e.stopPropagation())}downloadChartAsPNG(){this.componentRef?.instance.exportChart()}static{this.\u0275fac=function(s){return new(s||o)(l.rXU(aE.Ix),l.rXU(tn.Kf))}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-partner-center-home-widget"]],viewQuery:function(s,i){if
1(1&s&&(l.GBs(tn.Ek,5),l.GBs(lE,5,l.c1b)),2&s){let n;l.mGM(n=l.lsd())&&(i.basicMenu=n.first),l.mGM(n=l.lsd())&&(i.vcr=n.first)}},inputs:{widget:"widget"},standalone:!0,features:[l.Jv_([tn.Kf]),l.aNF],decls:12,vars:6,consts:[["widgetContainer",""],[1,"d-flex","justify-content-between","align-items-baseline","mb-4"],["notranslate","",1,"card-title","dashboardCard-title"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["contextMenuItem","",1,"context-menu",3,"execute","visible"],[1,"fas","fa-ellipsis-v","vertical-menu",3,"click"],[1,"loading-container",2,"min-height","300px"],[1,"spinner"],[1,"spinner__circle-wrapper"],[1,"spinner__circle"],[1,"fal","fa-arrow-right","verticalMenuIcon"],[1,"fal","fa-download","verticalMenuIcon"]],template:function(s,i){if(1&s){const n=l.RV6();l.j41(0,"div")(1,"div")(2,"div",1)(3,"div",2),l.EFF(4),l.k0s(),l.DNE(5,cE,2,0,"div",3),l.k0s()(),l.DNE(6,hE,15,0,"ng-container",4)(7,dE,2,0,"ng-template",null,0,l.C5r),l.k0s(),l.j41(9,"context-menu"),l.DNE(10,uE,2,0,"ng-template",5),l.bIt("execute",function(){return l.eBV(n),l.Njj(i.nagivateToDateSource(i.localWidget.url))}),l.DNE(11,pE,2,0,"ng-template",5),l.bIt("execute",function(){return l.eBV(n),l.Njj(i.downloadChartAsPNG())}),l.k0s()}if(2&s){const n=l.sdS(8);l.R7$(4),l.JRh(i.localWidget.title),l.R7$(),l.Y8G("ngIf",i.localWidget.showContextMenu),l.R7$(),l.Y8G("ngIf",i.isLoading)("ngIfElse",n),l.R7$(4),l.Y8G("visible",i.localWidget.showViewSource),l.R7$(),l.Y8G("visible",i.localWidget.showChartDownload)}},dependencies:[it.MD,it.bT,tn.rc,tn.Ek,tn.JO],encapsulation:2})}}return o})();var Qa=S(30948);const fE=(o,t)=>t.dashboardId,mE=(o,t)=>t.id;function xE(o,t){if(1&o&&(l.j41(0,"kendo-tilelayout-item",3)(1,"kendo-tilelayout-item-body"),l.nrm(2,"az-partner-center-home-widget",4),l.k0s()()),2&o){const e=t.$implicit;l.Y8G("col",e.col)("colSpan",e.colSpan)("rowSpan",e.rowSpan),l.R7$(2),l.Y8G("widget",e)}}function vE(o,t){if(1&o&&(l.j41(0,"div",0)(1,"div",1),l.EFF(2),l.k0s(),l.j41(3,"kendo-tilelayout",2),l.Z7z(4,xE,3,4,"kendo-tilelayout-item",3,mE),l.k0s()()),2&o){const e=t.$implicit;l.R7$(2),l.SpI(" ",e.title,""),l.R7$(),l.Y8G("columns",12)("resizable",!1)("reorderable",!1)("gap",24),l.R7$(),l.Dyx(e.widgets)}}let yE=(()=>{class o{constructor(){this.partnerCenterHomeService=(0,l.WQX)(qa.y),this.dashboards=[]}ngOnInit(){this.partnerCenterHomeService.dashboards$.subscribe({next:e=>{this.dashboards=e}})}static{this.\u0275fac=function(s){return new(s||o)}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-partner-center-home-dashboard"]],standalone:!0,features:[l.Jv_([qa.y]),l.aNF],decls:2,vars:0,consts:[[1,"dashboard-container"],["notranslate","",1,"dashboard-title"],["padding","0 8px 32px 8px",3,"columns","resizable","reorderable","gap"],[3,"col","colSpan","rowSpan"],[3,"widget"]],template:function(s,i){1&s&&l.Z7z(0,vE,6,5,"div",0,fE),2&s&&l.Dyx(i.dashboards)},dependencies:[it.MD,gE,Qa.RH,Qa.iB,Qa.fu,Qa.ZP],styles:[".dashboard-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:flex-start;margin-top:1rem}.dashboard-container[_ngcontent-%COMP%] .dashboard-title[_ngcontent-%COMP%]{float:left;color:var(--main-text-color);font-size:18px;font-weight:700;margin-top:-1px;text-align:left}.dashboard-container[_ngcontent-%COMP%] kendo-tilelayout[_ngcontent-%COMP%]{width:100%}"]})}}return o})();var bE=S(68430),_E=S(28793),ld=S(96354),CE=S(19852),wE=S(39974);const AE=(o,t)=>(o.push(t),o);var Mo=function(o){return o[o.Company=0]="Company",o[o.CompanyGroup=1]="CompanyGroup",o}(Mo||{}),Zv=S(73670);let Qv=(()=>{class o{constructor(e){this.dataService=e}getCompanyGroups(e){return this.dataService.get(`api/companypicker/companygroups?moduleType=${e}`)}getCompanies(e){return this.dataService.get(`api/companypicker/companies?moduleType=${e}`)}getCompanyPickerData(e){const s=this.getCompanyGroups(e),i=this.getCompanies(e);return(0,_E.x)(s.pipe((0,ld.T)(r=>r.map(a=>({type:Mo.CompanyGroup,typeName:"Company Groups",id:a.id,name:a.groupName})))),i.pipe((0,ld.T)(r=>r.map(a=>({type:Mo.Company,typeName:"Companies",id:a.id,name:a.name}))))).pipe(function SE(){return(0,wE.N)((o,t)=>{(0,CE.T)(AE,[])(o).subscribe(t)})}(),(0,ld.T)(r=>r.reduce((a,c)=>a.concat(c),[])))}static{this.\u0275fac=function(s){return new(s||o)(l.KVO(Zv.u))}}static{this.\u0275prov=l.jDH({token:o,factory:o.\u0275fac})}}return o}
1)();var Eo=S(32394),kE=S(46196),TE=S(60209),ME=S(25708),ii=S(89417);function EE(o,t){if(1&o&&(l.j41(0,"div",3),l.EFF(1),l.k0s()),2&o){const e=t.$implicit;l.R7$(),l.SpI(" ",e," ")}}let DE=(()=>{class o{constructor(e){this.companyPickerService=e,this.companies=[],this.companyChange=new l.bkB,this.selectedCompanies=[]}ngOnInit(){this.companyPickerService.getCompanyPickerData(this.ModuleType).subscribe(e=>{this.companies=e,this.groupedData=(0,bE.$z)(e,[{field:"typeName"}])})}onValueChange(e){this.selectedCompanies=[],this.selectedCompanies=e,this.companyChange.emit(this.selectedCompanies)}static{this.\u0275fac=function(s){return new(s||o)(l.rXU(Qv))}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-company-picker"]],inputs:{ModuleType:"ModuleType"},outputs:{companyChange:"companyChange"},standalone:!0,features:[l.Jv_([Qv]),l.aNF],decls:3,vars:3,consts:[["notranslate",""],["textField","name","valueField","id","placeholder","Select a Company or Company Group",3,"valueChange","checkboxes","autoClose","data"],["kendoMultiSelectGroupTemplate",""],[1,"group-name"]],template:function(s,i){1&s&&(l.j41(0,"div",0)(1,"kendo-multiselect",1),l.bIt("valueChange",function(r){return i.onValueChange(r)}),l.DNE(2,EE,2,1,"ng-template",2),l.k0s()()),2&s&&(l.R7$(),l.Y8G("checkboxes",!1)("autoClose",!1)("data",i.groupedData))},dependencies:[Eo.ZS,Eo.Ft,Eo.b3,kE.Bo,TE.ol,ME.Cp,ii.YN,ii.X1],styles:["kendo-multiselect[_ngcontent-%COMP%]{width:400px}.group-name[_ngcontent-%COMP%]{font-weight:700}.company-picker-label[_ngcontent-%COMP%]{font-weight:700;text-align:center;padding-right:4px}"]})}}return o})();var Kv=function(o){return o.Last12Months="Last 12 Months",o.YTD="Year to Date",o.Last30Days="Last 30 Days",o.Last60Days="Last 60 Days",o.Last90Days="Last 90 Days",o}(Kv||{}),PE=S(79547);let LE=(()=>{class o{constructor(){this.filterService=(0,l.WQX)(hd._),this.dateRange=[],this.ModuleType=PE.nR.Partner_Home}ngOnInit(){this.partnerCenterHomeFilters={...this.filterService.defaultFilterState},this.filterService.updateFilters(this.partnerCenterHomeFilters),this.filterService.filtersBehaviorSubject$.subscribe(e=>{this.partnerCenterHomeFilters=e}),this.dateRange=this.getDropdownData(Kv)}getDropdownData(e){return Object.keys(e).map((i,n)=>({id:n,name:e[i]}))}handleCompanyChange(e){this.partnerCenterHomeFilters.companies=[],this.partnerCenterHomeFilters.companyGroups=[],e&&(this.partnerCenterHomeFilters.companies=e.filter(s=>s.type===Mo.Company).map(s=>s.id),this.partnerCenterHomeFilters.companyGroups=e.filter(s=>s.type===Mo.CompanyGroup).map(s=>s.id),this.filterService.updateFilters(this.partnerCenterHomeFilters))}dateRangeChange(e){this.partnerCenterHomeFilters.endDate=new Date;const s=new Date;switch(e){case 0:s.setFullYear(s.getFullYear(),s.getMonth()-12);break;case 1:{const i=new Date(s.getFullYear(),0,1),n=Math.floor((s.getTime()-i.getTime())/864e5);s.setDate(s.getDate()-n);break}case 2:s.setDate(s.getDate()-30);break;case 3:s.setDate(s.getDate()-60);break;case 4:s.setDate(s.getDate()-90)}this.partnerCenterHomeFilters.startDate=s,this.filterService.updateFilters(this.partnerCenterHomeFilters)}static{this.\u0275fac=function(s){return new(s||o)}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-partner-center-home-filter"]],standalone:!0,features:[l.aNF],decls:6,vars:6,consts:[[1,"row","align-items-center"],[1,"col"],[1,"d-flex","align-items-baseline","justify-content-end","h-100"],[1,"d-flex","flex-column","align-items-end","gap-2"],[3,"companyChange","ModuleType"],["textField","name","valueField","id",3,"valueChange","data","valuePrimitive","value"]],template:function(s,i){1&s&&(l.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"az-company-picker",4),l.bIt("companyChange",function(r){return i.handleCompanyChange(r)}),l.k0s(),l.j41(5,"kendo-dropdownlist",5),l.bIt("valueChange",function(r){return i.dateRangeChange(r)}),l.k0s()()()()()),2&s&&(l.xc7("height",80,"px"),l.R7$(4),l.Y8G("ModuleType",i.ModuleType),l.R7$(),l.Y8G("data",i.dateRange)("valuePrimitive",!0)("value",i.dateRange[0].id))},dependencies:[DE,Eo.ZS,Eo.V9],styles:["kendo-dropdownlist[_ngcontent-%COMP%]{width:240px}.date-range-label[_ngcontent-%COMP%]{font-weight:700;text-align:center;padding-right:4px}.filter[_ngcontent-%COMP%]{margin-bottom:16px!important}.gapHalfRem[_ngcontent-%COMP%]{gap:.5rem}"]})}}return o}
1)();var qv=S(8524);let IE=(()=>{class o{constructor(e){this.dataService=e}postFeedback(e,s){return this.dataService.post(e,s)}static{this.\u0275fac=function(s){return new(s||o)(l.KVO(Zv.u))}}static{this.\u0275prov=l.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var RE=S(90979);let BE=(()=>{class o{constructor(e,s){this.prodPadService=e,this.browserUtils=s,this.close=new l.bkB,this.form=new ii.gE({}),this.model={feedback:""},this.fields=[]}ngOnInit(){this.fields=[{type:"template",template:`\n <div class="feedback-title">${this.title}</div>\n <div class="feedback-subtitle">${this.subTitle}</div>\n <div class="feedback-description">${this.description}</div>\n `},{key:"feedback",type:"textarea",templateOptions:{label:"",placeholder:"Type your feedback here...",rows:5,required:!0,maxLength:1e3}}]}submit(e){this.prodPadService.postFeedback(this.api,this.model).subscribe({next:s=>{!0===s?this.browserUtils.pushSuccessToast("Thank you for your feedback!","Partner Home Feedback"):this.browserUtils.pushErrorToast("There was a problem submitting your feedback."),this.close.emit()},error:s=>{this.browserUtils.pushErrorToast("There was a problem submitting your feedback."),this.close.emit()}})}cancel(){this.form.reset(),this.close.emit()}static{this.\u0275fac=function(s){return new(s||o)(l.rXU(IE),l.rXU(RE.b))}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-prod-pad-feedback-form"]],inputs:{api:"api",title:"title",subTitle:"subTitle",description:"description"},outputs:{close:"close"},standalone:!0,features:[l.aNF],decls:8,vars:5,consts:[[1,"feedback-form"],[3,"ngSubmit","formGroup"],[3,"form","fields","model"],[2,"margin-top","1rem","display","flex","gap","1.5rem","justify-content","flex-end"],["mat-raised-button","","color","primary","type","submit",3,"disabled"],["mat-button","","type","button",3,"click"]],template:function(s,i){1&s&&(l.j41(0,"div",0)(1,"form",1),l.bIt("ngSubmit",function(){return i.submit(i.model)}),l.nrm(2,"formly-form",2),l.j41(3,"div",3)(4,"button",4),l.EFF(5,"Submit"),l.k0s(),l.j41(6,"button",5),l.bIt("click",function(){return i.cancel()}),l.EFF(7,"Cancel"),l.k0s()()()()),2&s&&(l.R7$(),l.Y8G("formGroup",i.form),l.R7$(),l.Y8G("form",i.form)("fields",i.fields)("model",i.model),l.R7$(2),l.Y8G("disabled",!i.form.valid))},dependencies:[it.MD,ii.X1,ii.qT,ii.cb,ii.j4,qv.qy,qv.aF],styles:["[_nghost-%COMP%] .feedback-title{font-size:2rem;font-weight:700;margin-bottom:1rem}[_nghost-%COMP%] .feedback-subtitle{font-size:1.75rem;font-weight:600;margin-bottom:1rem}[_nghost-%COMP%] .feedback-description{font-size:1rem;font-weight:400;color:#555;margin-bottom:1rem}.feedback-form[_ngcontent-%COMP%]{padding:2rem}"]})}}return o})();var OE=S(38299);let VE=(()=>{class o{constructor(e){this.utilityService=e}openModal(e){e.preventDefault();const s=this.utilityService.openModal(BE);Object.assign(s.componentInstance,{api:"/api/partnercenterhome/dashboard/prod-pad-feedback",title:"Tell us what you think!",subTitle:"Partner Center Feature Preview",description:"Partner Center is a new feature intended to help you highlight opportunities, identify areas of risk with your clients."}),s.componentInstance.close.subscribe(()=>s.close())}static{this.\u0275fac=function(s){return new(s||o)(l.rXU(OE.Q))}}static{this.\u0275cmp=l.VBU({type:o,selectors:[["az-partner-center-home"]],standalone:!0,features:[l.aNF],decls:13,vars:0,consts:[[1,"row","h-100","overflow-auto"],[1,"home-container"],[1,"content-wrapper"],[1,"row","align-items-baseline"],[1,"col"],[1,"home-title"],["type","button",1,"btn","btn-link","ms-2","p-0",2,"font-size","16px","font-weight","700","border","none",3,"click"]],template:function(s,i){1&s&&(l.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),l.EFF(6,"Partner Home "),l.j41(7,"button",6),l.bIt("click",function(r){return i.openModal(r)}),l.EFF(8,"[Preview - Let us know what you think!]"),l.k0s()()(),l.j41(9,"div",4),l.nrm(10,"az-partner-center-home-filter"),l.k0s()(),l.j41(11,"div",0),l.nrm(12,"az-partner-center-home-dashboard"),l.k0s()()()())},dependencies:[ty.sb,yE,LE],styles:[".home-container[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;min-height:100vh;padding:20px;background-color:var(--sidebar-alt-background)}.home-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{width:100%;background-color:var(--main-background);border-radius:8px;box-shadow:0 2px 4px #0000001a;padding-left:24px;padding-top:24px;padding-right:24px}.home-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin:0;width:100%}.home-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%] .home-title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:var(--main-text-color);background-color:var(--main-background);margin:0 0 1rem;padding:0}.home-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%] az-partner-center-home-filter{background-color:var(--main-background)}"]})}}return o}
1)()}}]);
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.