@arcgis/charts-components 5.1.0-next.87 → 5.1.0-next.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/cdn/{E236NXER.js → 26POUPWU.js} +1 -1
  2. package/dist/cdn/{WZ2UHREI.js → 3NMY4J2D.js} +1 -1
  3. package/dist/cdn/{OQNYW7IP.js → 3P4AQMMY.js} +1 -1
  4. package/dist/cdn/{JRBIKCLX.js → 3X3Z23AS.js} +1 -1
  5. package/dist/cdn/{YZABL4ES.js → 4ALZJ3CG.js} +1 -1
  6. package/dist/cdn/{NL5S3OE6.js → 4ENNLWRL.js} +1 -1
  7. package/dist/cdn/{DPB4UM43.js → 5YCOKGHG.js} +1 -1
  8. package/dist/cdn/{S7T24OCU.js → 62TXBTL3.js} +1 -1
  9. package/dist/cdn/{NZW6ACIT.js → 6YR5YBAA.js} +1 -1
  10. package/dist/cdn/{Q4T4D2LB.js → 75Z2ZEV6.js} +1 -1
  11. package/dist/cdn/{LLMY5OHZ.js → B4M5ONG5.js} +1 -1
  12. package/dist/cdn/{QC5B3B6A.js → BVLTMGGQ.js} +1 -1
  13. package/dist/cdn/{P5PYOHCA.js → C72UPKF4.js} +1 -1
  14. package/dist/cdn/{FUA7KDU7.js → CHILDA3R.js} +1 -1
  15. package/dist/cdn/{MXWWYMFC.js → CJSS55DK.js} +1 -1
  16. package/dist/cdn/{VYWV24JN.js → DSJH2QJG.js} +1 -1
  17. package/dist/cdn/{2YZFLCHV.js → EAAJU5TO.js} +1 -1
  18. package/dist/cdn/{UEWINO5H.js → G3XBMCKE.js} +1 -1
  19. package/dist/cdn/{AWKPSK42.js → HA5CFOJE.js} +1 -1
  20. package/dist/cdn/{6U3ROWZZ.js → HJIDBIQL.js} +1 -1
  21. package/dist/cdn/{H4V744QH.js → I3ZSXBQO.js} +1 -1
  22. package/dist/cdn/{KSO34SAO.js → JR55BTZ5.js} +1 -1
  23. package/dist/cdn/{JMR3NFDK.js → KVJZUPVF.js} +1 -1
  24. package/dist/cdn/{WHVMPOF6.js → N6Q3RRG6.js} +1 -1
  25. package/dist/cdn/{TS4AXHNJ.js → NM4MDQJP.js} +1 -1
  26. package/dist/cdn/{Q2EXXGKR.js → NMILLJKN.js} +1 -1
  27. package/dist/cdn/{QULJVW56.js → OOL3OCF6.js} +1 -1
  28. package/dist/cdn/{2PY6XJ5J.js → P5LRUJEM.js} +3 -3
  29. package/dist/cdn/{5P2CIK73.js → PFYY7H3D.js} +1 -1
  30. package/dist/cdn/{FTMDNRQ4.js → S3MRQDR4.js} +1 -1
  31. package/dist/cdn/SHV72LSB.js +2 -0
  32. package/dist/cdn/{IO7XSZZJ.js → U2UMLRH3.js} +1 -1
  33. package/dist/cdn/{RI3UECXS.js → U35ZUK2Z.js} +1 -1
  34. package/dist/cdn/{6CGIXX6D.js → UAE2H7RQ.js} +1 -1
  35. package/dist/cdn/{LRKPA44Q.js → UJLJHKRJ.js} +1 -1
  36. package/dist/cdn/{45N4ERUO.js → UJLYQ2MQ.js} +1 -1
  37. package/dist/cdn/{DNF2AXKJ.js → UJYTBVXZ.js} +1 -1
  38. package/dist/cdn/{GKB2KMVK.js → US7KJPHU.js} +1 -1
  39. package/dist/cdn/{7BU2NYJF.js → UYTK7QBJ.js} +1 -1
  40. package/dist/cdn/{MNYJ2GYM.js → WODW55PL.js} +1 -1
  41. package/dist/cdn/{27R3TDQ3.js → WPJSJKFO.js} +1 -1
  42. package/dist/cdn/{N72YIV7E.js → X4HMNXVO.js} +1 -1
  43. package/dist/cdn/{7FAH7JCG.js → XMEDNSCY.js} +1 -1
  44. package/dist/cdn/{5C6NKK2M.js → Y5Q5HB2N.js} +1 -1
  45. package/dist/cdn/index.js +1 -1
  46. package/dist/components/arcgis-chart/customElement.js +43 -35
  47. package/dist/docs/api.json +1 -1
  48. package/dist/docs/docs.json +1 -1
  49. package/dist/docs/web-types.json +1 -1
  50. package/package.json +3 -3
  51. package/dist/cdn/A3N7FAEK.js +0 -2
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as to}from"./QVD6LHQ2.js";import o from"./FTGZEUG5.js";import n from"./EVB7GUKT.js";import m from"./H5LAP626.js";import{c as Ox,e as lg,f as hg,g as ug,h as cg,i as lp,j as hp}from"./S5OM65RV.js";import{a as PT,g as DT}from"./7BDNLABD.js";import l from"./NGI7H6FA.js";import{a as gT}from"./FPDW4F45.js";import{a as Dx}from"./A3N7FAEK.js";import k from"./JJVDA3DN.js";import j from"./E5GUU5JX.js";import i from"./OZJAKFKE.js";import h from"./G37XSGAU.js";import g from"./AOBR2FZX.js";import f from"./L4V7IFLS.js";import e from"./ECWZPFK5.js";import d from"./VGFOPTRV.js";import c from"./MZP3HKKC.js";import b from"./PE3FCPYX.js";import{c as md,d as Tx,e as np,p as Px,q as fT,r as og,s as mT,t as op}from"./YJXIGYX6.js";import a from"./EVQPWQQD.js";import{C as Em,D as Mm,g as Tr,h as zs,k as Lu,l as Ll,t as GA,u as As,v as YA,w as bs,x as bi,y as Yt,z as Dt}from"./Y7IQV44J.js";import{a as lF,b as hF,c as Om,g as Du}from"./MIYIXPXS.js";import{a as TT}from"./W44VQVU5.js";import{d as Ho,e as yT,f as vT,g as bT,h as Lx,n as Ix,t as xT}from"./T5RPAQYI.js";import"./EZM4ZDQI.js";import{a as V,b as Pn,e as st,f as Gi,h as zA,i as Ub,j as Vb,k as tr,l as Dn,m as Iu,n as Nb,p as ir,q as uF,r as ku,t as Hb,u as Qb,y as ze,z as cF}from"./ETLJKITO.js";import{A as sF,B as aF,G as nF,H as oF,g as eF,h as tF,i as nd,l as iF,n as Xs,y as rF,z as Rb}from"./GKNEQGLI.js";import{a as XA,b as ZS,c as qS,d as JS}from"./QPIMTXPL.js";export default $arcgis.t(([ka,{substitute:fA},QC,,,,,,,,,,,,,,,,,,,,{$a:so,$b:Gs,$c:RF,$d:dT,Ad:tg,B:an,Bb:Ln,Bc:_h,C:Hm,Cb:cd,Cc:LF,Cd:iT,D:Cr,Da:gF,Db:Ee,Dc:IF,Dd:rT,Eb:Pr,Ed:ig,F:AF,Fb:Ol,Fc:kF,Fd:sT,G:KA,Ga:yF,Gb:ks,Gd:aT,H:ud,Hb:ip,Hd:bx,Ib:Ua,Id:xx,Ja:qb,Jb:hx,Jc:Zm,Jd:_x,Kb:Er,Kd:nT,L:pF,Ld:Cx,M:fF,Mb:ux,N:bh,Nd:rg,Ob:Yi,Oc:px,Od:In,Pd:pd,Qa:ht,Qb:cx,Qd:er,Ra:Jb,Rb:wF,Rc:$F,Sa:xh,Sb:Mr,Sd:No,Ta:Mu,Td:oT,U:ZA,Ua:ex,Uc:Vo,Ud:lT,Va:nn,Vc:Ch,Vd:hT,Wa:tx,Wc:OF,Wd:wx,X:Qm,Xa:ix,Xb:rp,Xc:It,Xd:sg,Y:Xb,Ya:rx,Yb:sp,Yc:qm,Yd:ag,Z:zb,Za:q,Zb:BF,Zc:EF,Zd:uT,_a:Mo,_c:MF,_d:cT,ab:vF,ac:SF,ad:UF,ba:jm,bb:bF,bc:ao,bd:fx,be:ng,c:io,ca:Gb,cb:sx,cc:Uo,cd:VF,ce:AT,d:$u,da:Yb,db:qA,dc:dd,dd:NF,de:Bx,ea:Kb,eb:ax,ec:Ym,ed:HF,ee:Uu,fa:mF,fb:Ra,fd:QF,g:xr,gb:Xm,gc:Ru,gd:jF,ge:Sx,h:od,hb:zm,hc:Ys,hd:mx,he:pT,i:Rm,ib:_a,id:WF,j:dF,jd:XF,k:Eo,kb:xF,kc:FF,kd:gx,ke:Fx,l:xa,lb:_F,lc:dx,ld:zF,le:fd,m:Ou,ma:Zb,mb:nx,md:GF,n:ld,nb:Gm,nc:Km,nd:YF,o:ro,ob:on,oc:TF,od:yx,p:jb,pb:ox,pc:Ad,pd:KF,q:Il,qa:Wm,qb:JA,qc:PF,qd:ZF,r:Um,rb:kl,rd:Jm,s:Vt,sb:$l,sd:qF,t:Vm,tb:lx,td:JF,ub:CF,ud:eT,v:Eu,vb:ep,vc:DF,w:hd,wb:Ca,wd:ap,x:Nm,xb:Ro,xd:eg,y:Wb,yb:tp,yc:Ax,yd:tT,zb:Kt,zc:ln,zd:vx},,,,,,,{a:_T,b:CT,c:wT,d:BT,e:kx,f:$x,g:ST,h:FT},,,,{b:$T,r:Ex},{b:LT,c:IT,e:kT},{c:Mx,d:Rx,e:OT},{f:ET,h:MT}])=>{var VT=ZS((Ux,Vx)=>{(function(s,t){typeof Ux=="object"&&typeof Vx<"u"?Vx.exports=t():typeof define=="function"&&define.amd?define(t):(s=typeof globalThis<"u"?globalThis:s||self,s.html2canvas=t())})(Ux,(function(){"use strict";var s=function(b,v){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var P in _)Object.prototype.hasOwnProperty.call(_,P)&&(C[P]=_[P])},s(b,v)};function t(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");s(b,v);function C(){this.constructor=b}b.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}var e=function(){return e=Object.assign||function(v){for(var C,_=1,P=arguments.length;_<P;_++){C=arguments[_];for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&(v[O]=C[O])}return v},e.apply(this,arguments)};function i(b,v,C,_){function P(O){return O instanceof C?O:new C(function(Q){Q(O)})}return new(C||(C=Promise))(function(O,Q){function W(ne){try{se(_.next(ne))}catch(Ae){Q(Ae)}}function j(ne){try{se(_.throw(ne))}catch(Ae){Q(Ae)}}function se(ne){ne.done?O(ne.value):P(ne.value).then(W,j)}se((_=_.apply(b,v||[])).next())})}function r(b,v){var C={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},_,P,O,Q;return Q={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function W(se){return function(ne){return j([se,ne])}}function j(se){if(_)throw new TypeError("Generator is already executing.");for(;C;)try{if(_=1,P&&(O=se[0]&2?P.return:se[0]?P.throw||((O=P.return)&&O.call(P),0):P.next)&&!(O=O.call(P,se[1])).done)return O;switch(P=0,O&&(se=[se[0]&2,O.value]),se[0]){case 0:case 1:O=se;break;case 4:return C.label++,{value:se[1],done:!1};case 5:C.label++,P=se[1],se=[0];continue;case 7:se=C.ops.pop(),C.trys.pop();continue;default:if(O=C.trys,!(O=O.length>0&&O[O.length-1])&&(se[0]===6||se[0]===2)){C=0;continue}if(se[0]===3&&(!O||se[1]>O[0]&&se[1]<O[3])){C.label=se[1];break}if(se[0]===6&&C.label<O[1]){C.label=O[1],O=se;break}if(O&&C.label<O[2]){C.label=O[2],C.ops.push(se);break}O[2]&&C.ops.pop(),C.trys.pop();continue}se=v.call(b,C)}catch(ne){se=[6,ne],P=0}finally{_=O=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}}function a(b,v,C){if(C||arguments.length===2)for(var _=0,P=v.length,O;_<P;_++)(O||!(_ in v))&&(O||(O=Array.prototype.slice.call(v,0,_)),O[_]=v[_]);return b.concat(O||v)}for(var n=(function(){function b(v,C,_,P){this.left=v,this.top=C,this.width=_,this.height=P}return b.prototype.add=function(v,C,_,P){return new b(this.left+v,this.top+C,this.width+_,this.height+P)},b.fromClientRect=function(v,C){return new b(C.left+v.windowBounds.left,C.top+v.windowBounds.top,C.width,C.height)},b.fromDOMRectList=function(v,C){var _=Array.from(C).find(function(P){return P.width!==0});return _?new b(_.left+v.windowBounds.left,_.top+v.windowBounds.top,_.width,_.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b})(),o=function(b,v){return n.fromClientRect(b,v.getBoundingClientRect())},l=function(b){var v=b.body,C=b.documentElement;if(!v||!C)throw new Error("Unable to get document size");var _=Math.max(Math.max(v.scrollWidth,C.scrollWidth),Math.max(v.offsetWidth,C.offsetWidth),Math.max(v.clientWidth,C.clientWidth)),P=Math.max(Math.max(v.scrollHeight,C.scrollHeight),Math.max(v.offsetHeight,C.offsetHeight),Math.max(v.clientHeight,C.clientHeight));return new n(0,0,_,P)},h=function(b){for(var v=[],C=0,_=b.length;C<_;){var P=b.charCodeAt(C++);if(P>=55296&&P<=56319&&C<_){var O=b.charCodeAt(C++);(O&64512)===56320?v.push(((P&1023)<<10)+(O&1023)+65536):(v.push(P),C--)}else v.push(P)}return v},c=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],P=-1,O="";++P<C;){var Q=b[P];Q<=65535?_.push(Q):(Q-=65536,_.push((Q>>10)+55296,Q%1024+56320)),(P+1===C||_.length>16384)&&(O+=String.fromCharCode.apply(String,_),_.length=0)}return O},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array>"u"?[]:new Uint8Array(256),A=0;A<u.length;A++)d[u.charCodeAt(A)]=A;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=typeof Uint8Array>"u"?[]:new Uint8Array(256),f=0;f<p.length;f++)m[p.charCodeAt(f)]=f;for(var g=function(b){var v=b.length*.75,C=b.length,_,P=0,O,Q,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var se=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(se)?se:new Uint8Array(se);for(_=0;_<C;_+=4)O=m[b.charCodeAt(_)],Q=m[b.charCodeAt(_+1)],W=m[b.charCodeAt(_+2)],j=m[b.charCodeAt(_+3)],ne[P++]=O<<2|Q>>4,ne[P++]=(Q&15)<<4|W>>2,ne[P++]=(W&3)<<6|j&63;return se},y=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},x=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},w=5,S=11,D=2,T=S-w,L=65536>>w,$=1<<w,I=$-1,R=1024>>w,F=L+R,H=F,K=32,z=H+K,ee=65536>>S,ie=1<<T,de=ie-1,G=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},Y=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},xe=function(b,v){var C=g(b),_=Array.isArray(C)?x(C):new Uint32Array(C),P=Array.isArray(C)?y(C):new Uint16Array(C),O=24,Q=G(P,O/2,_[4]/2),W=_[5]===2?G(P,(O+_[4])/2):Y(_,Math.ceil((O+_[4])/4));return new ae(_[0],_[1],_[2],_[3],Q,W)},ae=(function(){function b(v,C,_,P,O,Q){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=P,this.index=O,this.data=Q}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>w],C=(C<<D)+(v&I),this.data[C];if(v<=65535)return C=this.index[L+(v-55296>>w)],C=(C<<D)+(v&I),this.data[C];if(v<this.highStart)return C=z-ee+(v>>S),C=this.index[C],C+=v>>w&de,C=this.index[C],C=(C<<D)+(v&I),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ze=0;Ze<le.length;Ze++)Ie[le.charCodeAt(Ze)]=Ze;var We="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Je=50,kt=1,pt=2,Ui=3,Xi=4,U=5,Be=7,ye=8,Z=9,X=10,oe=11,De=12,Le=13,pe=14,$e=15,qe=16,Me=17,_t=18,qi=19,pi=20,ys=21,Si=22,qr=23,br=24,Fi=25,Lo=26,Cl=27,oa=28,Kf=29,wl=30,qv=31,Gc=32,_u=33,Bl=34,hh=35,Jv=36,DA=37,eb=38,Zf=39,qf=40,tb=41,lB=42,F$=43,T$=[9001,65288],hB="!",wi="\xD7",Jf="\xF7",ib=xe(We),Sl=[wl,Jv],rb=[kt,pt,Ui,U],uB=[X,ye],cB=[Cl,Lo],P$=rb.concat(uB),dB=[eb,Zf,qf,Bl,hh],D$=[$e,Le],L$=function(b,v){v===void 0&&(v="strict");var C=[],_=[],P=[];return b.forEach(function(O,Q){var W=ib.get(O);if(W>Je?(P.push(!0),W-=Je):P.push(!1),["normal","auto","loose"].indexOf(v)!==-1&&[8208,8211,12316,12448].indexOf(O)!==-1)return _.push(Q),C.push(qe);if(W===Xi||W===oe){if(Q===0)return _.push(Q),C.push(wl);var j=C[Q-1];return P$.indexOf(j)===-1?(_.push(_[Q-1]),C.push(j)):(_.push(Q),C.push(wl))}if(_.push(Q),W===qv)return C.push(v==="strict"?ys:DA);if(W===lB||W===Kf)return C.push(wl);if(W===F$)return O>=131072&&O<=196605||O>=196608&&O<=262141?C.push(DA):C.push(wl);C.push(W)}),[_,C,P]},sb=function(b,v,C,_){var P=_[C];if(Array.isArray(b)?b.indexOf(P)!==-1:b===P)for(var O=C;O<=_.length;){O++;var Q=_[O];if(Q===v)return!0;if(Q!==X)break}if(P===X)for(var O=C;O>0;){O--;var W=_[O];if(Array.isArray(b)?b.indexOf(W)!==-1:b===W)for(var j=C;j<=_.length;){j++;var Q=_[j];if(Q===v)return!0;if(Q!==X)break}if(W!==X)break}return!1},AB=function(b,v){for(var C=b;C>=0;){var _=v[C];if(_===X)C--;else return _}return 0},I$=function(b,v,C,_,P){if(C[_]===0)return wi;var O=_-1;if(Array.isArray(P)&&P[O]===!0)return wi;var Q=O-1,W=O+1,j=v[O],se=Q>=0?v[Q]:0,ne=v[W];if(j===pt&&ne===Ui)return wi;if(rb.indexOf(j)!==-1)return hB;if(rb.indexOf(ne)!==-1||uB.indexOf(ne)!==-1)return wi;if(AB(O,v)===ye)return Jf;if(ib.get(b[O])===oe||(j===Gc||j===_u)&&ib.get(b[W])===oe||j===Be||ne===Be||j===Z||[X,Le,$e].indexOf(j)===-1&&ne===Z||[Me,_t,qi,br,oa].indexOf(ne)!==-1||AB(O,v)===Si||sb(qr,Si,O,v)||sb([Me,_t],ys,O,v)||sb(De,De,O,v))return wi;if(j===X)return Jf;if(j===qr||ne===qr)return wi;if(ne===qe||j===qe)return Jf;if([Le,$e,ys].indexOf(ne)!==-1||j===pe||se===Jv&&D$.indexOf(j)!==-1||j===oa&&ne===Jv||ne===pi||Sl.indexOf(ne)!==-1&&j===Fi||Sl.indexOf(j)!==-1&&ne===Fi||j===Cl&&[DA,Gc,_u].indexOf(ne)!==-1||[DA,Gc,_u].indexOf(j)!==-1&&ne===Lo||Sl.indexOf(j)!==-1&&cB.indexOf(ne)!==-1||cB.indexOf(j)!==-1&&Sl.indexOf(ne)!==-1||[Cl,Lo].indexOf(j)!==-1&&(ne===Fi||[Si,$e].indexOf(ne)!==-1&&v[W+1]===Fi)||[Si,$e].indexOf(j)!==-1&&ne===Fi||j===Fi&&[Fi,oa,br].indexOf(ne)!==-1)return wi;if([Fi,oa,br,Me,_t].indexOf(ne)!==-1)for(var Ae=O;Ae>=0;){var Ce=v[Ae];if(Ce===Fi)return wi;if([oa,br].indexOf(Ce)!==-1)Ae--;else break}if([Cl,Lo].indexOf(ne)!==-1)for(var Ae=[Me,_t].indexOf(j)!==-1?Q:O;Ae>=0;){var Ce=v[Ae];if(Ce===Fi)return wi;if([oa,br].indexOf(Ce)!==-1)Ae--;else break}if(eb===j&&[eb,Zf,Bl,hh].indexOf(ne)!==-1||[Zf,Bl].indexOf(j)!==-1&&[Zf,qf].indexOf(ne)!==-1||[qf,hh].indexOf(j)!==-1&&ne===qf||dB.indexOf(j)!==-1&&[pi,Lo].indexOf(ne)!==-1||dB.indexOf(ne)!==-1&&j===Cl||Sl.indexOf(j)!==-1&&Sl.indexOf(ne)!==-1||j===br&&Sl.indexOf(ne)!==-1||Sl.concat(Fi).indexOf(j)!==-1&&ne===Si&&T$.indexOf(b[W])===-1||Sl.concat(Fi).indexOf(ne)!==-1&&j===_t)return wi;if(j===tb&&ne===tb){for(var lt=C[O],Ue=1;lt>0&&(lt--,v[lt]===tb);)Ue++;if(Ue%2!==0)return wi}return j===Gc&&ne===_u?wi:Jf},k$=function(b,v){v||(v={lineBreak:"normal",wordBreak:"normal"});var C=L$(b,v.lineBreak),_=C[0],P=C[1],O=C[2];(v.wordBreak==="break-all"||v.wordBreak==="break-word")&&(P=P.map(function(W){return[Fi,wl,lB].indexOf(W)!==-1?DA:W}));var Q=v.wordBreak==="keep-all"?O.map(function(W,j){return W&&b[j]>=19968&&b[j]<=40959}):void 0;return[_,P,Q]},$$=(function(){function b(v,C,_,P){this.codePoints=v,this.required=C===hB,this.start=_,this.end=P}return b.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},b})(),O$=function(b,v){var C=h(b),_=k$(C,v),P=_[0],O=_[1],Q=_[2],W=C.length,j=0,se=0;return{next:function(){if(se>=W)return{done:!0,value:null};for(var ne=wi;se<W&&(ne=I$(C,O,P,++se,Q))===wi;);if(ne!==wi||se===W){var Ae=new $$(C,ne,j,se);return j=se,{value:Ae,done:!1}}return{done:!0,value:null}}}},E$=1,M$=2,LA=4,pB=8,em=10,fB=47,IA=92,R$=9,U$=32,tm=34,kA=61,V$=35,N$=36,H$=37,im=39,rm=40,$A=41,Q$=95,$a=45,j$=33,W$=60,X$=62,z$=64,G$=91,Y$=93,K$=61,Z$=123,sm=63,q$=125,mB=124,J$=126,eO=128,gB=65533,ab=42,Cu=43,tO=44,iO=58,rO=59,OA=46,sO=0,aO=8,nO=11,oO=14,lO=31,hO=127,Io=-1,yB=48,vB=97,bB=101,uO=102,cO=117,dO=122,xB=65,_B=69,CB=70,AO=85,pO=90,la=function(b){return b>=yB&&b<=57},fO=function(b){return b>=55296&&b<=57343},Yc=function(b){return la(b)||b>=xB&&b<=CB||b>=vB&&b<=uO},mO=function(b){return b>=vB&&b<=dO},gO=function(b){return b>=xB&&b<=pO},yO=function(b){return mO(b)||gO(b)},vO=function(b){return b>=eO},am=function(b){return b===em||b===R$||b===U$},nm=function(b){return yO(b)||vO(b)||b===Q$},wB=function(b){return nm(b)||la(b)||b===$a},bO=function(b){return b>=sO&&b<=aO||b===nO||b>=oO&&b<=lO||b===hO},uh=function(b,v){return b!==IA?!1:v!==em},om=function(b,v,C){return b===$a?nm(v)||uh(v,C):nm(b)?!0:!!(b===IA&&uh(b,v))},nb=function(b,v,C){return b===Cu||b===$a?la(v)?!0:v===OA&&la(C):la(b===OA?v:b)},xO=function(b){var v=0,C=1;(b[v]===Cu||b[v]===$a)&&(b[v]===$a&&(C=-1),v++);for(var _=[];la(b[v]);)_.push(b[v++]);var P=_.length?parseInt(c.apply(void 0,_),10):0;b[v]===OA&&v++;for(var O=[];la(b[v]);)O.push(b[v++]);var Q=O.length,W=Q?parseInt(c.apply(void 0,O),10):0;(b[v]===_B||b[v]===bB)&&v++;var j=1;(b[v]===Cu||b[v]===$a)&&(b[v]===$a&&(j=-1),v++);for(var se=[];la(b[v]);)se.push(b[v++]);var ne=se.length?parseInt(c.apply(void 0,se),10):0;return C*(P+W*Math.pow(10,-Q))*Math.pow(10,j*ne)},_O={type:2},CO={type:3},wO={type:4},BO={type:13},SO={type:8},FO={type:21},TO={type:9},PO={type:10},DO={type:11},LO={type:12},IO={type:14},lm={type:23},kO={type:1},$O={type:25},OO={type:24},EO={type:26},MO={type:27},RO={type:28},UO={type:29},VO={type:31},ob={type:32},BB=(function(){function b(){this._value=[]}return b.prototype.write=function(v){this._value=this._value.concat(h(v))},b.prototype.read=function(){for(var v=[],C=this.consumeToken();C!==ob;)v.push(C),C=this.consumeToken();return v},b.prototype.consumeToken=function(){var v=this.consumeCodePoint();switch(v){case tm:return this.consumeStringToken(tm);case V$:var C=this.peekCodePoint(0),_=this.peekCodePoint(1),P=this.peekCodePoint(2);if(wB(C)||uh(_,P)){var O=om(C,_,P)?M$:E$,Q=this.consumeName();return{type:5,value:Q,flags:O}}break;case N$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),BO;break;case im:return this.consumeStringToken(im);case rm:return _O;case $A:return CO;case ab:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),IO;break;case Cu:if(nb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case tO:return wO;case $a:var W=v,j=this.peekCodePoint(0),se=this.peekCodePoint(1);if(nb(W,j,se))return this.reconsumeCodePoint(v),this.consumeNumericToken();if(om(W,j,se))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();if(j===$a&&se===X$)return this.consumeCodePoint(),this.consumeCodePoint(),OO;break;case OA:if(nb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case fB:if(this.peekCodePoint(0)===ab)for(this.consumeCodePoint();;){var ne=this.consumeCodePoint();if(ne===ab&&(ne=this.consumeCodePoint(),ne===fB))return this.consumeToken();if(ne===Io)return this.consumeToken()}break;case iO:return EO;case rO:return MO;case W$:if(this.peekCodePoint(0)===j$&&this.peekCodePoint(1)===$a&&this.peekCodePoint(2)===$a)return this.consumeCodePoint(),this.consumeCodePoint(),$O;break;case z$:var Ae=this.peekCodePoint(0),Ce=this.peekCodePoint(1),lt=this.peekCodePoint(2);if(om(Ae,Ce,lt)){var Q=this.consumeName();return{type:7,value:Q}}break;case G$:return RO;case IA:if(uh(v,this.peekCodePoint(0)))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();break;case Y$:return UO;case K$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),SO;break;case Z$:return DO;case q$:return LO;case cO:case AO:var Ue=this.peekCodePoint(0),Ke=this.peekCodePoint(1);return Ue===Cu&&(Yc(Ke)||Ke===sm)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(v),this.consumeIdentLikeToken();case mB:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),TO;if(this.peekCodePoint(0)===mB)return this.consumeCodePoint(),FO;break;case J$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),PO;break;case Io:return ob}return am(v)?(this.consumeWhiteSpace(),VO):la(v)?(this.reconsumeCodePoint(v),this.consumeNumericToken()):nm(v)?(this.reconsumeCodePoint(v),this.consumeIdentLikeToken()):{type:6,value:c(v)}},b.prototype.consumeCodePoint=function(){var v=this._value.shift();return typeof v>"u"?-1:v},b.prototype.reconsumeCodePoint=function(v){this._value.unshift(v)},b.prototype.peekCodePoint=function(v){return v>=this._value.length?-1:this._value[v]},b.prototype.consumeUnicodeRangeToken=function(){for(var v=[],C=this.consumeCodePoint();Yc(C)&&v.length<6;)v.push(C),C=this.consumeCodePoint();for(var _=!1;C===sm&&v.length<6;)v.push(C),C=this.consumeCodePoint(),_=!0;if(_){var P=parseInt(c.apply(void 0,v.map(function(j){return j===sm?yB:j})),16),O=parseInt(c.apply(void 0,v.map(function(j){return j===sm?CB:j})),16);return{type:30,start:P,end:O}}var Q=parseInt(c.apply(void 0,v),16);if(this.peekCodePoint(0)===$a&&Yc(this.peekCodePoint(1))){this.consumeCodePoint(),C=this.consumeCodePoint();for(var W=[];Yc(C)&&W.length<6;)W.push(C),C=this.consumeCodePoint();var O=parseInt(c.apply(void 0,W),16);return{type:30,start:Q,end:O}}else return{type:30,start:Q,end:Q}},b.prototype.consumeIdentLikeToken=function(){var v=this.consumeName();return v.toLowerCase()==="url"&&this.peekCodePoint(0)===rm?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===rm?(this.consumeCodePoint(),{type:19,value:v}):{type:20,value:v}},b.prototype.consumeUrlToken=function(){var v=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Io)return{type:22,value:""};var C=this.peekCodePoint(0);if(C===im||C===tm){var _=this.consumeStringToken(this.consumeCodePoint());return _.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Io||this.peekCodePoint(0)===$A)?(this.consumeCodePoint(),{type:22,value:_.value}):(this.consumeBadUrlRemnants(),lm)}for(;;){var P=this.consumeCodePoint();if(P===Io||P===$A)return{type:22,value:c.apply(void 0,v)};if(am(P))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Io||this.peekCodePoint(0)===$A?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,v)}):(this.consumeBadUrlRemnants(),lm);if(P===tm||P===im||P===rm||bO(P))return this.consumeBadUrlRemnants(),lm;if(P===IA)if(uh(P,this.peekCodePoint(0)))v.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),lm;else v.push(P)}},b.prototype.consumeWhiteSpace=function(){for(;am(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var v=this.consumeCodePoint();if(v===$A||v===Io)return;uh(v,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(v){for(var C=5e4,_="";v>0;){var P=Math.min(C,v);_+=c.apply(void 0,this._value.splice(0,P)),v-=P}return this._value.shift(),_},b.prototype.consumeStringToken=function(v){var C="",_=0;do{var P=this._value[_];if(P===Io||P===void 0||P===v)return C+=this.consumeStringSlice(_),{type:0,value:C};if(P===em)return this._value.splice(0,_),kO;if(P===IA){var O=this._value[_+1];O!==Io&&O!==void 0&&(O===em?(C+=this.consumeStringSlice(_),_=-1,this._value.shift()):uh(P,O)&&(C+=this.consumeStringSlice(_),C+=c(this.consumeEscapedCodePoint()),_=-1))}_++}while(!0)},b.prototype.consumeNumber=function(){var v=[],C=LA,_=this.peekCodePoint(0);for((_===Cu||_===$a)&&v.push(this.consumeCodePoint());la(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0);var P=this.peekCodePoint(1);if(_===OA&&la(P))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=pB;la(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0),P=this.peekCodePoint(1);var O=this.peekCodePoint(2);if((_===_B||_===bB)&&((P===Cu||P===$a)&&la(O)||la(P)))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=pB;la(this.peekCodePoint(0));)v.push(this.consumeCodePoint());return[xO(v),C]},b.prototype.consumeNumericToken=function(){var v=this.consumeNumber(),C=v[0],_=v[1],P=this.peekCodePoint(0),O=this.peekCodePoint(1),Q=this.peekCodePoint(2);if(om(P,O,Q)){var W=this.consumeName();return{type:15,number:C,flags:_,unit:W}}return P===H$?(this.consumeCodePoint(),{type:16,number:C,flags:_}):{type:17,number:C,flags:_}},b.prototype.consumeEscapedCodePoint=function(){var v=this.consumeCodePoint();if(Yc(v)){for(var C=c(v);Yc(this.peekCodePoint(0))&&C.length<6;)C+=c(this.consumeCodePoint());am(this.peekCodePoint(0))&&this.consumeCodePoint();var _=parseInt(C,16);return _===0||fO(_)||_>1114111?gB:_}return v===Io?gB:v},b.prototype.consumeName=function(){for(var v="";;){var C=this.consumeCodePoint();if(wB(C))v+=c(C);else if(uh(C,this.peekCodePoint(0)))v+=c(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(C),v}},b})(),SB=(function(){function b(v){this._tokens=v}return b.create=function(v){var C=new BB;return C.write(v),new b(C.read())},b.parseValue=function(v){return b.create(v).parseComponentValue()},b.parseValues=function(v){return b.create(v).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var v=this.consumeToken();v.type===31;)v=this.consumeToken();if(v.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(v);var C=this.consumeComponentValue();do v=this.consumeToken();while(v.type===31);if(v.type===32)return C;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var v=[];;){var C=this.consumeComponentValue();if(C.type===32)return v;v.push(C),v.push()}},b.prototype.consumeComponentValue=function(){var v=this.consumeToken();switch(v.type){case 11:case 28:case 2:return this.consumeSimpleBlock(v.type);case 19:return this.consumeFunction(v)}return v},b.prototype.consumeSimpleBlock=function(v){for(var C={type:v,values:[]},_=this.consumeToken();;){if(_.type===32||HO(_,v))return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue()),_=this.consumeToken()}},b.prototype.consumeFunction=function(v){for(var C={name:v.value,values:[],type:18};;){var _=this.consumeToken();if(_.type===32||_.type===3)return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var v=this._tokens.shift();return typeof v>"u"?ob:v},b.prototype.reconsumeToken=function(v){this._tokens.unshift(v)},b})(),EA=function(b){return b.type===15},Kc=function(b){return b.type===17},lr=function(b){return b.type===20},NO=function(b){return b.type===0},lb=function(b,v){return lr(b)&&b.value===v},FB=function(b){return b.type!==31},Zc=function(b){return b.type!==31&&b.type!==4},ko=function(b){var v=[],C=[];return b.forEach(function(_){if(_.type===4){if(C.length===0)throw new Error("Error parsing function args, zero tokens for arg");v.push(C),C=[];return}_.type!==31&&C.push(_)}),C.length&&v.push(C),v},HO=function(b,v){return v===11&&b.type===12||v===28&&b.type===29?!0:v===2&&b.type===3},ch=function(b){return b.type===17||b.type===15},cs=function(b){return b.type===16||ch(b)},TB=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},Qs={type:17,number:0,flags:LA},hb={type:16,number:50,flags:LA},dh={type:16,number:100,flags:LA},MA=function(b,v,C){var _=b[0],P=b[1];return[_r(_,v),_r(typeof P<"u"?P:_,C)]},_r=function(b,v){if(b.type===16)return b.number/100*v;if(EA(b))switch(b.unit){case"rem":case"em":return 16*b.number;default:return b.number}return b.number},PB="deg",DB="grad",LB="rad",IB="turn",hm={name:"angle",parse:function(b,v){if(v.type===15)switch(v.unit){case PB:return Math.PI*v.number/180;case DB:return Math.PI/200*v.number;case LB:return v.number;case IB:return Math.PI*2*v.number}throw new Error("Unsupported angle type")}},kB=function(b){return b.type===15&&(b.unit===PB||b.unit===DB||b.unit===LB||b.unit===IB)},$B=function(b){var v=b.filter(lr).map(function(C){return C.value}).join(" ");switch(v){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Qs,Qs];case"to top":case"bottom":return Bn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Qs,dh];case"to right":case"left":return Bn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[dh,dh];case"to bottom":case"top":return Bn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[dh,Qs];case"to left":case"right":return Bn(270)}return 0},Bn=function(b){return Math.PI*b/180},Ah={name:"color",parse:function(b,v){if(v.type===18){var C=QO[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported color function "'+v.name+'"');return C(b,v.values)}if(v.type===5){if(v.value.length===3){var _=v.value.substring(0,1),P=v.value.substring(1,2),O=v.value.substring(2,3);return fh(parseInt(_+_,16),parseInt(P+P,16),parseInt(O+O,16),1)}if(v.value.length===4){var _=v.value.substring(0,1),P=v.value.substring(1,2),O=v.value.substring(2,3),Q=v.value.substring(3,4);return fh(parseInt(_+_,16),parseInt(P+P,16),parseInt(O+O,16),parseInt(Q+Q,16)/255)}if(v.value.length===6){var _=v.value.substring(0,2),P=v.value.substring(2,4),O=v.value.substring(4,6);return fh(parseInt(_,16),parseInt(P,16),parseInt(O,16),1)}if(v.value.length===8){var _=v.value.substring(0,2),P=v.value.substring(2,4),O=v.value.substring(4,6),Q=v.value.substring(6,8);return fh(parseInt(_,16),parseInt(P,16),parseInt(O,16),parseInt(Q,16)/255)}}if(v.type===20){var W=Fl[v.value.toUpperCase()];if(typeof W<"u")return W}return Fl.TRANSPARENT}},ph=function(b){return(255&b)===0},Is=function(b){var v=255&b,C=255&b>>8,_=255&b>>16,P=255&b>>24;return v<255?"rgba("+P+","+_+","+C+","+v/255+")":"rgb("+P+","+_+","+C+")"},fh=function(b,v,C,_){return(b<<24|v<<16|C<<8|Math.round(_*255)<<0)>>>0},OB=function(b,v){if(b.type===17)return b.number;if(b.type===16){var C=v===3?1:255;return v===3?b.number/100*C:Math.round(b.number/100*C)}return 0},EB=function(b,v){var C=v.filter(Zc);if(C.length===3){var _=C.map(OB),P=_[0],O=_[1],Q=_[2];return fh(P,O,Q,1)}if(C.length===4){var W=C.map(OB),P=W[0],O=W[1],Q=W[2],j=W[3];return fh(P,O,Q,j)}return 0};function ub(b,v,C){return C<0&&(C+=1),C>=1&&(C-=1),C<1/6?(v-b)*C*6+b:C<1/2?v:C<2/3?(v-b)*6*(2/3-C)+b:b}var MB=function(b,v){var C=v.filter(Zc),_=C[0],P=C[1],O=C[2],Q=C[3],W=(_.type===17?Bn(_.number):hm.parse(b,_))/(Math.PI*2),j=cs(P)?P.number/100:0,se=cs(O)?O.number/100:0,ne=typeof Q<"u"&&cs(Q)?_r(Q,1):1;if(j===0)return fh(se*255,se*255,se*255,1);var Ae=se<=.5?se*(j+1):se+j-se*j,Ce=se*2-Ae,lt=ub(Ce,Ae,W+1/3),Ue=ub(Ce,Ae,W),Ke=ub(Ce,Ae,W-1/3);return fh(lt*255,Ue*255,Ke*255,ne)},QO={hsl:MB,hsla:MB,rgb:EB,rgba:EB},RA=function(b,v){return Ah.parse(b,SB.create(v).parseComponentValue())},Fl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},jO={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(lr(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},WO={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},um=function(b,v){var C=Ah.parse(b,v[0]),_=v[1];return _&&cs(_)?{color:C,stop:_}:{color:C,stop:null}},RB=function(b,v){var C=b[0],_=b[b.length-1];C.stop===null&&(C.stop=Qs),_.stop===null&&(_.stop=dh);for(var P=[],O=0,Q=0;Q<b.length;Q++){var W=b[Q].stop;if(W!==null){var j=_r(W,v);j>O?P.push(j):P.push(O),O=j}else P.push(null)}for(var se=null,Q=0;Q<P.length;Q++){var ne=P[Q];if(ne===null)se===null&&(se=Q);else if(se!==null){for(var Ae=Q-se,Ce=P[se-1],lt=(ne-Ce)/(Ae+1),Ue=1;Ue<=Ae;Ue++)P[se+Ue-1]=lt*Ue;se=null}}return b.map(function(Ke,ri){var bt=Ke.color;return{color:bt,stop:Math.max(Math.min(1,P[ri]/v),0)}})},XO=function(b,v,C){var _=v/2,P=C/2,O=_r(b[0],v)-_,Q=P-_r(b[1],C);return(Math.atan2(Q,O)+Math.PI*2)%(Math.PI*2)},zO=function(b,v,C){var _=typeof b=="number"?b:XO(b,v,C),P=Math.abs(v*Math.sin(_))+Math.abs(C*Math.cos(_)),O=v/2,Q=C/2,W=P/2,j=Math.sin(_-Math.PI/2)*W,se=Math.cos(_-Math.PI/2)*W;return[P,O-se,O+se,Q-j,Q+j]},eo=function(b,v){return Math.sqrt(b*b+v*v)},UB=function(b,v,C,_,P){var O=[[0,0],[0,v],[b,0],[b,v]];return O.reduce(function(Q,W){var j=W[0],se=W[1],ne=eo(C-j,_-se);return(P?ne<Q.optimumDistance:ne>Q.optimumDistance)?{optimumCorner:W,optimumDistance:ne}:Q},{optimumDistance:P?1/0:-1/0,optimumCorner:null}).optimumCorner},GO=function(b,v,C,_,P){var O=0,Q=0;switch(b.size){case 0:b.shape===0?O=Q=Math.min(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-P)):b.shape===1&&(O=Math.min(Math.abs(v),Math.abs(v-_)),Q=Math.min(Math.abs(C),Math.abs(C-P)));break;case 2:if(b.shape===0)O=Q=Math.min(eo(v,C),eo(v,C-P),eo(v-_,C),eo(v-_,C-P));else if(b.shape===1){var W=Math.min(Math.abs(C),Math.abs(C-P))/Math.min(Math.abs(v),Math.abs(v-_)),j=UB(_,P,v,C,!0),se=j[0],ne=j[1];O=eo(se-v,(ne-C)/W),Q=W*O}break;case 1:b.shape===0?O=Q=Math.max(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-P)):b.shape===1&&(O=Math.max(Math.abs(v),Math.abs(v-_)),Q=Math.max(Math.abs(C),Math.abs(C-P)));break;case 3:if(b.shape===0)O=Q=Math.max(eo(v,C),eo(v,C-P),eo(v-_,C),eo(v-_,C-P));else if(b.shape===1){var W=Math.max(Math.abs(C),Math.abs(C-P))/Math.max(Math.abs(v),Math.abs(v-_)),Ae=UB(_,P,v,C,!1),se=Ae[0],ne=Ae[1];O=eo(se-v,(ne-C)/W),Q=W*O}break}return Array.isArray(b.size)&&(O=_r(b.size[0],_),Q=b.size.length===2?_r(b.size[1],P):O),[O,Q]},YO=function(b,v){var C=Bn(180),_=[];return ko(v).forEach(function(P,O){if(O===0){var Q=P[0];if(Q.type===20&&Q.value==="to"){C=$B(P);return}else if(kB(Q)){C=hm.parse(b,Q);return}}var W=um(b,P);_.push(W)}),{angle:C,stops:_,type:1}},cm=function(b,v){var C=Bn(180),_=[];return ko(v).forEach(function(P,O){if(O===0){var Q=P[0];if(Q.type===20&&["top","left","right","bottom"].indexOf(Q.value)!==-1){C=$B(P);return}else if(kB(Q)){C=(hm.parse(b,Q)+Bn(270))%Bn(360);return}}var W=um(b,P);_.push(W)}),{angle:C,stops:_,type:1}},KO=function(b,v){var C=Bn(180),_=[],P=1,O=0,Q=3,W=[];return ko(v).forEach(function(j,se){var ne=j[0];if(se===0){if(lr(ne)&&ne.value==="linear"){P=1;return}else if(lr(ne)&&ne.value==="radial"){P=2;return}}if(ne.type===18){if(ne.name==="from"){var Ae=Ah.parse(b,ne.values[0]);_.push({stop:Qs,color:Ae})}else if(ne.name==="to"){var Ae=Ah.parse(b,ne.values[0]);_.push({stop:dh,color:Ae})}else if(ne.name==="color-stop"){var Ce=ne.values.filter(Zc);if(Ce.length===2){var Ae=Ah.parse(b,Ce[1]),lt=Ce[0];Kc(lt)&&_.push({stop:{type:16,number:lt.number*100,flags:lt.flags},color:Ae})}}}}),P===1?{angle:(C+Bn(180))%Bn(360),stops:_,type:P}:{size:Q,shape:O,stops:_,position:W,type:P}},VB="closest-side",NB="farthest-side",HB="closest-corner",QB="farthest-corner",jB="circle",WB="ellipse",XB="cover",zB="contain",ZO=function(b,v){var C=0,_=3,P=[],O=[];return ko(v).forEach(function(Q,W){var j=!0;if(W===0){var se=!1;j=Q.reduce(function(Ae,Ce){if(se)if(lr(Ce))switch(Ce.value){case"center":return O.push(hb),Ae;case"top":case"left":return O.push(Qs),Ae;case"right":case"bottom":return O.push(dh),Ae}else(cs(Ce)||ch(Ce))&&O.push(Ce);else if(lr(Ce))switch(Ce.value){case jB:return C=0,!1;case WB:return C=1,!1;case"at":return se=!0,!1;case VB:return _=0,!1;case XB:case NB:return _=1,!1;case zB:case HB:return _=2,!1;case QB:return _=3,!1}else if(ch(Ce)||cs(Ce))return Array.isArray(_)||(_=[]),_.push(Ce),!1;return Ae},j)}if(j){var ne=um(b,Q);P.push(ne)}}),{size:_,shape:C,stops:P,position:O,type:2}},dm=function(b,v){var C=0,_=3,P=[],O=[];return ko(v).forEach(function(Q,W){var j=!0;if(W===0?j=Q.reduce(function(ne,Ae){if(lr(Ae))switch(Ae.value){case"center":return O.push(hb),!1;case"top":case"left":return O.push(Qs),!1;case"right":case"bottom":return O.push(dh),!1}else if(cs(Ae)||ch(Ae))return O.push(Ae),!1;return ne},j):W===1&&(j=Q.reduce(function(ne,Ae){if(lr(Ae))switch(Ae.value){case jB:return C=0,!1;case WB:return C=1,!1;case zB:case VB:return _=0,!1;case NB:return _=1,!1;case HB:return _=2,!1;case XB:case QB:return _=3,!1}else if(ch(Ae)||cs(Ae))return Array.isArray(_)||(_=[]),_.push(Ae),!1;return ne},j)),j){var se=um(b,Q);P.push(se)}}),{size:_,shape:C,stops:P,position:O,type:2}},qO=function(b){return b.type===1},JO=function(b){return b.type===2},cb={name:"image",parse:function(b,v){if(v.type===22){var C={url:v.value,type:0};return b.cache.addImage(v.value),C}if(v.type===18){var _=GB[v.name];if(typeof _>"u")throw new Error('Attempting to parse an unsupported image function "'+v.name+'"');return _(b,v.values)}throw new Error("Unsupported image type "+v.type)}};function eE(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!GB[b.name])}var GB={"linear-gradient":YO,"-moz-linear-gradient":cm,"-ms-linear-gradient":cm,"-o-linear-gradient":cm,"-webkit-linear-gradient":cm,"radial-gradient":ZO,"-moz-radial-gradient":dm,"-ms-radial-gradient":dm,"-o-radial-gradient":dm,"-webkit-radial-gradient":dm,"-webkit-gradient":KO},tE={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v.filter(function(_){return Zc(_)&&eE(_)}).map(function(_){return cb.parse(b,_)})}},iE={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(lr(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},rE={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,v){return ko(v).map(function(C){return C.filter(cs)}).map(TB)}},sE={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,v){return ko(v).map(function(C){return C.filter(lr).map(function(_){return _.value}).join(" ")}).map(aE)}},aE=function(b){switch(b){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},qc;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(qc||(qc={}));var nE={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,v){return ko(v).map(function(C){return C.filter(oE)})}},oE=function(b){return lr(b)||cs(b)},Am=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},lE=Am("top"),hE=Am("right"),uE=Am("bottom"),cE=Am("left"),pm=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(v,C){return TB(C.filter(cs))}}},dE=pm("top-left"),AE=pm("top-right"),pE=pm("bottom-right"),fE=pm("bottom-left"),fm=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(v,C){switch(C){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},mE=fm("top"),gE=fm("right"),yE=fm("bottom"),vE=fm("left"),mm=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(v,C){return EA(C)?C.number:0}}},bE=mm("top"),xE=mm("right"),_E=mm("bottom"),CE=mm("left"),wE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},BE={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,v){return v==="rtl"?1:0}},SE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,v){return v.filter(lr).reduce(function(C,_){return C|FE(_.value)},0)}},FE=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},TE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},PE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,v){return v.type===20&&v.value==="normal"?0:v.type===17||v.type===15?v.number:0}},gm;(function(b){b.NORMAL="normal",b.STRICT="strict"})(gm||(gm={}));var DE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="strict"?gm.STRICT:gm.NORMAL}},LE={name:"line-height",initialValue:"normal",prefix:!1,type:4},YB=function(b,v){return lr(b)&&b.value==="normal"?1.2*v:b.type===17?v*b.number:cs(b)?_r(b,v):v},IE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,v){return v.type===20&&v.value==="none"?null:cb.parse(b,v)}},kE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,v){return v==="inside"?0:1}},db={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},ym=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},$E=ym("top"),OE=ym("right"),EE=ym("bottom"),ME=ym("left"),RE={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,v){return v.filter(lr).map(function(C){switch(C.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},UE={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="break-word"?"break-word":"normal"}},vm=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},VE=vm("top"),NE=vm("right"),HE=vm("bottom"),QE=vm("left"),jE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,v){switch(v){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},WE={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,v){switch(v){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},XE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&lb(v[0],"none")?[]:ko(v).map(function(C){for(var _={color:Fl.TRANSPARENT,offsetX:Qs,offsetY:Qs,blur:Qs},P=0,O=0;O<C.length;O++){var Q=C[O];ch(Q)?(P===0?_.offsetX=Q:P===1?_.offsetY=Q:_.blur=Q,P++):_.color=Ah.parse(b,Q)}return _})}},zE={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},GE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,v){if(v.type===20&&v.value==="none")return null;if(v.type===18){var C=ZE[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported transform function "'+v.name+'"');return C(v.values)}return null}},YE=function(b){var v=b.filter(function(C){return C.type===17}).map(function(C){return C.number});return v.length===6?v:null},KE=function(b){var v=b.filter(function(j){return j.type===17}).map(function(j){return j.number}),C=v[0],_=v[1];v[2],v[3];var P=v[4],O=v[5];v[6],v[7],v[8],v[9],v[10],v[11];var Q=v[12],W=v[13];return v[14],v[15],v.length===16?[C,_,P,O,Q,W]:null},ZE={matrix:YE,matrix3d:KE},KB={type:16,number:50,flags:LA},qE=[KB,KB],JE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,v){var C=v.filter(cs);return C.length!==2?qE:[C[0],C[1]]}},eM={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"hidden":return 1;case"collapse":return 2;default:return 0}}},UA;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(UA||(UA={}));for(var tM={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"break-all":return UA.BREAK_ALL;case"keep-all":return UA.KEEP_ALL;default:return UA.NORMAL}}},iM={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,v){if(v.type===20)return{auto:!0,order:0};if(Kc(v))return{auto:!1,order:v.number};throw new Error("Invalid z-index number parsed")}},ZB={name:"time",parse:function(b,v){if(v.type===15)switch(v.unit.toLowerCase()){case"s":return 1e3*v.number;case"ms":return v.number}throw new Error("Unsupported time type")}},rM={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,v){return Kc(v)?v.number:1}},sM={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},aM={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,v){return v.filter(lr).map(function(C){switch(C.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(C){return C!==0})}},nM={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,v){var C=[],_=[];return v.forEach(function(P){switch(P.type){case 20:case 0:C.push(P.value);break;case 17:C.push(P.number.toString());break;case 4:_.push(C.join(" ")),C.length=0;break}}),C.length&&_.push(C.join(" ")),_.map(function(P){return P.indexOf(" ")===-1?P:"'"+P+"'"})}},oM={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},lM={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,v){return Kc(v)?v.number:lr(v)&&v.value==="bold"?700:400}},hM={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.filter(lr).map(function(C){return C.value})}},uM={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},vs=function(b,v){return(b&v)!==0},cM={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v}},dM={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;for(var _=[],P=v.filter(FB),O=0;O<P.length;O++){var Q=P[O],W=P[O+1];if(Q.type===20){var j=W&&Kc(W)?W.number:1;_.push({counter:Q.value,increment:j})}}return _}},AM={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return[];for(var C=[],_=v.filter(FB),P=0;P<_.length;P++){var O=_[P],Q=_[P+1];if(lr(O)&&O.value!=="none"){var W=Q&&Kc(Q)?Q.number:0;C.push({counter:O.value,reset:W})}}return C}},pM={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,v){return v.filter(EA).map(function(C){return ZB.parse(b,C)})}},fM={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;var _=[],P=v.filter(NO);if(P.length%2!==0)return null;for(var O=0;O<P.length;O+=2){var Q=P[O].value,W=P[O+1].value;_.push({open:Q,close:W})}return _}},qB=function(b,v,C){if(!b)return"";var _=b[Math.min(v,b.length-1)];return _?C?_.open:_.close:""},mM={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&lb(v[0],"none")?[]:ko(v).map(function(C){for(var _={color:255,offsetX:Qs,offsetY:Qs,blur:Qs,spread:Qs,inset:!1},P=0,O=0;O<C.length;O++){var Q=C[O];lb(Q,"inset")?_.inset=!0:ch(Q)?(P===0?_.offsetX=Q:P===1?_.offsetY=Q:P===2?_.blur=Q:_.spread=Q,P++):_.color=Ah.parse(b,Q)}return _})}},gM={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,v){var C=[0,1,2],_=[];return v.filter(lr).forEach(function(P){switch(P.value){case"stroke":_.push(1);break;case"fill":_.push(0);break;case"markers":_.push(2);break}}),C.forEach(function(P){_.indexOf(P)===-1&&_.push(P)}),_}},yM={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vM={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,v){return EA(v)?v.number:0}},bM=(function(){function b(v,C){var _,P;this.animationDuration=At(v,pM,C.animationDuration),this.backgroundClip=At(v,jO,C.backgroundClip),this.backgroundColor=At(v,WO,C.backgroundColor),this.backgroundImage=At(v,tE,C.backgroundImage),this.backgroundOrigin=At(v,iE,C.backgroundOrigin),this.backgroundPosition=At(v,rE,C.backgroundPosition),this.backgroundRepeat=At(v,sE,C.backgroundRepeat),this.backgroundSize=At(v,nE,C.backgroundSize),this.borderTopColor=At(v,lE,C.borderTopColor),this.borderRightColor=At(v,hE,C.borderRightColor),this.borderBottomColor=At(v,uE,C.borderBottomColor),this.borderLeftColor=At(v,cE,C.borderLeftColor),this.borderTopLeftRadius=At(v,dE,C.borderTopLeftRadius),this.borderTopRightRadius=At(v,AE,C.borderTopRightRadius),this.borderBottomRightRadius=At(v,pE,C.borderBottomRightRadius),this.borderBottomLeftRadius=At(v,fE,C.borderBottomLeftRadius),this.borderTopStyle=At(v,mE,C.borderTopStyle),this.borderRightStyle=At(v,gE,C.borderRightStyle),this.borderBottomStyle=At(v,yE,C.borderBottomStyle),this.borderLeftStyle=At(v,vE,C.borderLeftStyle),this.borderTopWidth=At(v,bE,C.borderTopWidth),this.borderRightWidth=At(v,xE,C.borderRightWidth),this.borderBottomWidth=At(v,_E,C.borderBottomWidth),this.borderLeftWidth=At(v,CE,C.borderLeftWidth),this.boxShadow=At(v,mM,C.boxShadow),this.color=At(v,wE,C.color),this.direction=At(v,BE,C.direction),this.display=At(v,SE,C.display),this.float=At(v,TE,C.cssFloat),this.fontFamily=At(v,nM,C.fontFamily),this.fontSize=At(v,oM,C.fontSize),this.fontStyle=At(v,uM,C.fontStyle),this.fontVariant=At(v,hM,C.fontVariant),this.fontWeight=At(v,lM,C.fontWeight),this.letterSpacing=At(v,PE,C.letterSpacing),this.lineBreak=At(v,DE,C.lineBreak),this.lineHeight=At(v,LE,C.lineHeight),this.listStyleImage=At(v,IE,C.listStyleImage),this.listStylePosition=At(v,kE,C.listStylePosition),this.listStyleType=At(v,db,C.listStyleType),this.marginTop=At(v,$E,C.marginTop),this.marginRight=At(v,OE,C.marginRight),this.marginBottom=At(v,EE,C.marginBottom),this.marginLeft=At(v,ME,C.marginLeft),this.opacity=At(v,rM,C.opacity);var O=At(v,RE,C.overflow);this.overflowX=O[0],this.overflowY=O[O.length>1?1:0],this.overflowWrap=At(v,UE,C.overflowWrap),this.paddingTop=At(v,VE,C.paddingTop),this.paddingRight=At(v,NE,C.paddingRight),this.paddingBottom=At(v,HE,C.paddingBottom),this.paddingLeft=At(v,QE,C.paddingLeft),this.paintOrder=At(v,gM,C.paintOrder),this.position=At(v,WE,C.position),this.textAlign=At(v,jE,C.textAlign),this.textDecorationColor=At(v,sM,(_=C.textDecorationColor)!==null&&_!==void 0?_:C.color),this.textDecorationLine=At(v,aM,(P=C.textDecorationLine)!==null&&P!==void 0?P:C.textDecoration),this.textShadow=At(v,XE,C.textShadow),this.textTransform=At(v,zE,C.textTransform),this.transform=At(v,GE,C.transform),this.transformOrigin=At(v,JE,C.transformOrigin),this.visibility=At(v,eM,C.visibility),this.webkitTextStrokeColor=At(v,yM,C.webkitTextStrokeColor),this.webkitTextStrokeWidth=At(v,vM,C.webkitTextStrokeWidth),this.wordBreak=At(v,tM,C.wordBreak),this.zIndex=At(v,iM,C.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return ph(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return vs(this.display,4)||vs(this.display,33554432)||vs(this.display,268435456)||vs(this.display,536870912)||vs(this.display,67108864)||vs(this.display,134217728)},b})(),xM=(function(){function b(v,C){this.content=At(v,cM,C.content),this.quotes=At(v,fM,C.quotes)}return b})(),JB=(function(){function b(v,C){this.counterIncrement=At(v,dM,C.counterIncrement),this.counterReset=At(v,AM,C.counterReset)}return b})(),At=function(b,v,C){var _=new BB,P=C!==null&&typeof C<"u"?C.toString():v.initialValue;_.write(P);var O=new SB(_.read());switch(v.type){case 2:var Q=O.parseComponentValue();return v.parse(b,lr(Q)?Q.value:v.initialValue);case 0:return v.parse(b,O.parseComponentValue());case 1:return v.parse(b,O.parseComponentValues());case 4:return O.parseComponentValue();case 3:switch(v.format){case"angle":return hm.parse(b,O.parseComponentValue());case"color":return Ah.parse(b,O.parseComponentValue());case"image":return cb.parse(b,O.parseComponentValue());case"length":var W=O.parseComponentValue();return ch(W)?W:Qs;case"length-percentage":var j=O.parseComponentValue();return cs(j)?j:Qs;case"time":return ZB.parse(b,O.parseComponentValue())}break}},_M="data-html2canvas-debug",CM=function(b){var v=b.getAttribute(_M);switch(v){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ab=function(b,v){var C=CM(b);return C===1||v===C},$o=(function(){function b(v,C){if(this.context=v,this.textNodes=[],this.elements=[],this.flags=0,Ab(C,3))debugger;this.styles=new bM(v,window.getComputedStyle(C,null)),Fb(C)&&(this.styles.animationDuration.some(function(_){return _>0})&&(C.style.animationDuration="0s"),this.styles.transform!==null&&(C.style.transform="none")),this.bounds=o(this.context,C),Ab(C,4)&&(this.flags|=16)}return b})(),wM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",eS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VA=typeof Uint8Array>"u"?[]:new Uint8Array(256),bm=0;bm<eS.length;bm++)VA[eS.charCodeAt(bm)]=bm;for(var BM=function(b){var v=b.length*.75,C=b.length,_,P=0,O,Q,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var se=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(se)?se:new Uint8Array(se);for(_=0;_<C;_+=4)O=VA[b.charCodeAt(_)],Q=VA[b.charCodeAt(_+1)],W=VA[b.charCodeAt(_+2)],j=VA[b.charCodeAt(_+3)],ne[P++]=O<<2|Q>>4,ne[P++]=(Q&15)<<4|W>>2,ne[P++]=(W&3)<<6|j&63;return se},SM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},FM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},wu=5,pb=11,fb=2,TM=pb-wu,tS=65536>>wu,PM=1<<wu,mb=PM-1,DM=1024>>wu,LM=tS+DM,IM=LM,kM=32,$M=IM+kM,OM=65536>>pb,EM=1<<TM,MM=EM-1,iS=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},RM=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},UM=function(b,v){var C=BM(b),_=Array.isArray(C)?FM(C):new Uint32Array(C),P=Array.isArray(C)?SM(C):new Uint16Array(C),O=24,Q=iS(P,O/2,_[4]/2),W=_[5]===2?iS(P,(O+_[4])/2):RM(_,Math.ceil((O+_[4])/4));return new VM(_[0],_[1],_[2],_[3],Q,W)},VM=(function(){function b(v,C,_,P,O,Q){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=P,this.index=O,this.data=Q}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>wu],C=(C<<fb)+(v&mb),this.data[C];if(v<=65535)return C=this.index[tS+(v-55296>>wu)],C=(C<<fb)+(v&mb),this.data[C];if(v<this.highStart)return C=$M-OM+(v>>pb),C=this.index[C],C+=v>>wu&MM,C=this.index[C],C=(C<<fb)+(v&mb),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),rS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NM=typeof Uint8Array>"u"?[]:new Uint8Array(256),xm=0;xm<rS.length;xm++)NM[rS.charCodeAt(xm)]=xm;var HM=1,gb=2,yb=3,sS=4,aS=5,QM=7,nS=8,vb=9,bb=10,oS=11,lS=12,hS=13,uS=14,xb=15,jM=function(b){for(var v=[],C=0,_=b.length;C<_;){var P=b.charCodeAt(C++);if(P>=55296&&P<=56319&&C<_){var O=b.charCodeAt(C++);(O&64512)===56320?v.push(((P&1023)<<10)+(O&1023)+65536):(v.push(P),C--)}else v.push(P)}return v},WM=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],P=-1,O="";++P<C;){var Q=b[P];Q<=65535?_.push(Q):(Q-=65536,_.push((Q>>10)+55296,Q%1024+56320)),(P+1===C||_.length>16384)&&(O+=String.fromCharCode.apply(String,_),_.length=0)}return O},XM=UM(wM),Sn="\xD7",_b="\xF7",zM=function(b){return XM.get(b)},GM=function(b,v,C){var _=C-2,P=v[_],O=v[C-1],Q=v[C];if(O===gb&&Q===yb)return Sn;if(O===gb||O===yb||O===sS||Q===gb||Q===yb||Q===sS)return _b;if(O===nS&&[nS,vb,oS,lS].indexOf(Q)!==-1||(O===oS||O===vb)&&(Q===vb||Q===bb)||(O===lS||O===bb)&&Q===bb||Q===hS||Q===aS||Q===QM||O===HM)return Sn;if(O===hS&&Q===uS){for(;P===aS;)P=v[--_];if(P===uS)return Sn}if(O===xb&&Q===xb){for(var W=0;P===xb;)W++,P=v[--_];if(W%2===0)return Sn}return _b},YM=function(b){var v=jM(b),C=v.length,_=0,P=0,O=v.map(zM);return{next:function(){if(_>=C)return{done:!0,value:null};for(var Q=Sn;_<C&&(Q=GM(v,O,++_))===Sn;);if(Q!==Sn||_===C){var W=WM.apply(null,v.slice(P,_));return P=_,{value:W,done:!1}}return{done:!0,value:null}}}},KM=function(b){for(var v=YM(b),C=[],_;!(_=v.next()).done;)_.value&&C.push(_.value.slice());return C},ZM=function(b){var v=123;if(b.createRange){var C=b.createRange();if(C.getBoundingClientRect){var _=b.createElement("boundtest");_.style.height=v+"px",_.style.display="block",b.body.appendChild(_),C.selectNode(_);var P=C.getBoundingClientRect(),O=Math.round(P.height);if(b.body.removeChild(_),O===v)return!0}}return!1},qM=function(b){var v=b.createElement("boundtest");v.style.width="50px",v.style.display="block",v.style.fontSize="12px",v.style.letterSpacing="0px",v.style.wordSpacing="0px",b.body.appendChild(v);var C=b.createRange();v.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var _=v.firstChild,P=h(_.data).map(function(j){return c(j)}),O=0,Q={},W=P.every(function(j,se){C.setStart(_,O),C.setEnd(_,O+j.length);var ne=C.getBoundingClientRect();O+=j.length;var Ae=ne.x>Q.x||ne.y>Q.y;return Q=ne,se===0?!0:Ae});return b.body.removeChild(v),W},JM=function(){return typeof new Image().crossOrigin<"u"},eR=function(){return typeof new XMLHttpRequest().responseType=="string"},tR=function(b){var v=new Image,C=b.createElement("canvas"),_=C.getContext("2d");if(!_)return!1;v.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{_.drawImage(v,0,0),C.toDataURL()}catch{return!1}return!0},cS=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},iR=function(b){var v=b.createElement("canvas"),C=100;v.width=C,v.height=C;var _=v.getContext("2d");if(!_)return Promise.reject(!1);_.fillStyle="rgb(0, 255, 0)",_.fillRect(0,0,C,C);var P=new Image,O=v.toDataURL();P.src=O;var Q=Cb(C,C,0,0,P);return _.fillStyle="red",_.fillRect(0,0,C,C),dS(Q).then(function(W){_.drawImage(W,0,0);var j=_.getImageData(0,0,C,C).data;_.fillStyle="red",_.fillRect(0,0,C,C);var se=b.createElement("div");return se.style.backgroundImage="url("+O+")",se.style.height=C+"px",cS(j)?dS(Cb(C,C,0,0,se)):Promise.reject(!1)}).then(function(W){return _.drawImage(W,0,0),cS(_.getImageData(0,0,C,C).data)}).catch(function(){return!1})},Cb=function(b,v,C,_,P){var O="http://www.w3.org/2000/svg",Q=document.createElementNS(O,"svg"),W=document.createElementNS(O,"foreignObject");return Q.setAttributeNS(null,"width",b.toString()),Q.setAttributeNS(null,"height",v.toString()),W.setAttributeNS(null,"width","100%"),W.setAttributeNS(null,"height","100%"),W.setAttributeNS(null,"x",C.toString()),W.setAttributeNS(null,"y",_.toString()),W.setAttributeNS(null,"externalResourcesRequired","true"),Q.appendChild(W),W.appendChild(P),Q},dS=function(b){return new Promise(function(v,C){var _=new Image;_.onload=function(){return v(_)},_.onerror=C,_.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},js={get SUPPORT_RANGE_BOUNDS(){var b=ZM(document);return Object.defineProperty(js,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=js.SUPPORT_RANGE_BOUNDS&&qM(document);return Object.defineProperty(js,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=tR(document);return Object.defineProperty(js,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?iR(document):Promise.resolve(!1);return Object.defineProperty(js,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=JM();return Object.defineProperty(js,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=eR();return Object.defineProperty(js,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(js,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(js,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},NA=(function(){function b(v,C){this.text=v,this.bounds=C}return b})(),rR=function(b,v,C,_){var P=nR(v,C),O=[],Q=0;return P.forEach(function(W){if(C.textDecorationLine.length||W.trim().length>0)if(js.SUPPORT_RANGE_BOUNDS){var j=AS(_,Q,W.length).getClientRects();if(j.length>1){var se=wb(W),ne=0;se.forEach(function(Ce){O.push(new NA(Ce,n.fromDOMRectList(b,AS(_,ne+Q,Ce.length).getClientRects()))),ne+=Ce.length})}else O.push(new NA(W,n.fromDOMRectList(b,j)))}else{var Ae=_.splitText(W.length);O.push(new NA(W,sR(b,_))),_=Ae}else js.SUPPORT_RANGE_BOUNDS||(_=_.splitText(W.length));Q+=W.length}),O},sR=function(b,v){var C=v.ownerDocument;if(C){var _=C.createElement("html2canvaswrapper");_.appendChild(v.cloneNode(!0));var P=v.parentNode;if(P){P.replaceChild(_,v);var O=o(b,_);return _.firstChild&&P.replaceChild(_.firstChild,_),O}}return n.EMPTY},AS=function(b,v,C){var _=b.ownerDocument;if(!_)throw new Error("Node has no owner document");var P=_.createRange();return P.setStart(b,v),P.setEnd(b,v+C),P},wb=function(b){if(js.SUPPORT_NATIVE_TEXT_SEGMENTATION){var v=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(v.segment(b)).map(function(C){return C.segment})}return KM(b)},aR=function(b,v){if(js.SUPPORT_NATIVE_TEXT_SEGMENTATION){var C=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(C.segment(b)).map(function(_){return _.segment})}return lR(b,v)},nR=function(b,v){return v.letterSpacing!==0?wb(b):aR(b,v)},oR=[32,160,4961,65792,65793,4153,4241],lR=function(b,v){for(var C=O$(b,{lineBreak:v.lineBreak,wordBreak:v.overflowWrap==="break-word"?"break-word":v.wordBreak}),_=[],P,O=function(){if(P.value){var Q=P.value.slice(),W=h(Q),j="";W.forEach(function(se){oR.indexOf(se)===-1?j+=c(se):(j.length&&_.push(j),_.push(c(se)),j="")}),j.length&&_.push(j)}};!(P=C.next()).done;)O();return _},hR=(function(){function b(v,C,_){this.text=uR(C.data,_.textTransform),this.textBounds=rR(v,this.text,_,C)}return b})(),uR=function(b,v){switch(v){case 1:return b.toLowerCase();case 3:return b.replace(cR,dR);case 2:return b.toUpperCase();default:return b}},cR=/(^|\s|:|-|\(|\))([a-z])/g,dR=function(b,v,C){return b.length>0?v+C.toUpperCase():b},pS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.src=_.currentSrc||_.src,P.intrinsicWidth=_.naturalWidth,P.intrinsicHeight=_.naturalHeight,P.context.cache.addImage(P.src),P}return v})($o),fS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.canvas=_,P.intrinsicWidth=_.width,P.intrinsicHeight=_.height,P}return v})($o),mS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this,O=new XMLSerializer,Q=o(C,_);return _.setAttribute("width",Q.width+"px"),_.setAttribute("height",Q.height+"px"),P.svg="data:image/svg+xml,"+encodeURIComponent(O.serializeToString(_)),P.intrinsicWidth=_.width.baseVal.value,P.intrinsicHeight=_.height.baseVal.value,P.context.cache.addImage(P.svg),P}return v})($o),gS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.value=_.value,P}return v})($o),Bb=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.start=_.start,P.reversed=typeof _.reversed=="boolean"&&_.reversed===!0,P}return v})($o),AR=[{type:15,flags:0,unit:"px",number:3}],pR=[{type:16,flags:0,number:50}],fR=function(b){return b.width>b.height?new n(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new n(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},mR=function(b){var v=b.type===gR?new Array(b.value.length+1).join("\u2022"):b.value;return v.length===0?b.placeholder||"":v},_m="checkbox",Cm="radio",gR="password",yS=707406591,Sb=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;switch(P.type=_.type.toLowerCase(),P.checked=_.checked,P.value=mR(_),(P.type===_m||P.type===Cm)&&(P.styles.backgroundColor=3739148031,P.styles.borderTopColor=P.styles.borderRightColor=P.styles.borderBottomColor=P.styles.borderLeftColor=2779096575,P.styles.borderTopWidth=P.styles.borderRightWidth=P.styles.borderBottomWidth=P.styles.borderLeftWidth=1,P.styles.borderTopStyle=P.styles.borderRightStyle=P.styles.borderBottomStyle=P.styles.borderLeftStyle=1,P.styles.backgroundClip=[0],P.styles.backgroundOrigin=[0],P.bounds=fR(P.bounds)),P.type){case _m:P.styles.borderTopRightRadius=P.styles.borderTopLeftRadius=P.styles.borderBottomRightRadius=P.styles.borderBottomLeftRadius=AR;break;case Cm:P.styles.borderTopRightRadius=P.styles.borderTopLeftRadius=P.styles.borderBottomRightRadius=P.styles.borderBottomLeftRadius=pR;break}return P}return v})($o),vS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this,O=_.options[_.selectedIndex||0];return P.value=O&&O.text||"",P}return v})($o),bS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.value=_.value,P}return v})($o),xS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;P.src=_.src,P.width=parseInt(_.width,10)||0,P.height=parseInt(_.height,10)||0,P.backgroundColor=P.styles.backgroundColor;try{if(_.contentWindow&&_.contentWindow.document&&_.contentWindow.document.documentElement){P.tree=CS(C,_.contentWindow.document.documentElement);var O=_.contentWindow.document.documentElement?RA(C,getComputedStyle(_.contentWindow.document.documentElement).backgroundColor):Fl.TRANSPARENT,Q=_.contentWindow.document.body?RA(C,getComputedStyle(_.contentWindow.document.body).backgroundColor):Fl.TRANSPARENT;P.backgroundColor=ph(O)?ph(Q)?P.styles.backgroundColor:Q:O}}catch{}return P}return v})($o),yR=["OL","UL","MENU"],wm=function(b,v,C,_){for(var P=v.firstChild,O=void 0;P;P=O)if(O=P.nextSibling,wS(P)&&P.data.trim().length>0)C.textNodes.push(new hR(b,P,C.styles));else if(Jc(P))if(DS(P)&&P.assignedNodes)P.assignedNodes().forEach(function(W){return wm(b,W,C,_)});else{var Q=_S(b,P);Q.styles.isVisible()&&(vR(P,Q,_)?Q.flags|=4:bR(Q.styles)&&(Q.flags|=2),yR.indexOf(P.tagName)!==-1&&(Q.flags|=8),C.elements.push(Q),P.slot,P.shadowRoot?wm(b,P.shadowRoot,Q,_):!Sm(P)&&!BS(P)&&!Fm(P)&&wm(b,P,Q,_))}},_S=function(b,v){return Pb(v)?new pS(b,v):SS(v)?new fS(b,v):BS(v)?new mS(b,v):xR(v)?new gS(b,v):_R(v)?new Bb(b,v):CR(v)?new Sb(b,v):Fm(v)?new vS(b,v):Sm(v)?new bS(b,v):TS(v)?new xS(b,v):new $o(b,v)},CS=function(b,v){var C=_S(b,v);return C.flags|=4,wm(b,v,C,C),C},vR=function(b,v,C){return v.styles.isPositionedWithZIndex()||v.styles.opacity<1||v.styles.isTransformed()||Tb(b)&&C.styles.isTransparent()},bR=function(b){return b.isPositioned()||b.isFloating()},wS=function(b){return b.nodeType===Node.TEXT_NODE},Jc=function(b){return b.nodeType===Node.ELEMENT_NODE},Fb=function(b){return Jc(b)&&typeof b.style<"u"&&!Bm(b)},Bm=function(b){return typeof b.className=="object"},xR=function(b){return b.tagName==="LI"},_R=function(b){return b.tagName==="OL"},CR=function(b){return b.tagName==="INPUT"},wR=function(b){return b.tagName==="HTML"},BS=function(b){return b.tagName==="svg"},Tb=function(b){return b.tagName==="BODY"},SS=function(b){return b.tagName==="CANVAS"},FS=function(b){return b.tagName==="VIDEO"},Pb=function(b){return b.tagName==="IMG"},TS=function(b){return b.tagName==="IFRAME"},PS=function(b){return b.tagName==="STYLE"},BR=function(b){return b.tagName==="SCRIPT"},Sm=function(b){return b.tagName==="TEXTAREA"},Fm=function(b){return b.tagName==="SELECT"},DS=function(b){return b.tagName==="SLOT"},LS=function(b){return b.tagName.indexOf("-")>0},SR=(function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(v){var C=this.counters[v];return C&&C.length?C[C.length-1]:1},b.prototype.getCounterValues=function(v){var C=this.counters[v];return C||[]},b.prototype.pop=function(v){var C=this;v.forEach(function(_){return C.counters[_].pop()})},b.prototype.parse=function(v){var C=this,_=v.counterIncrement,P=v.counterReset,O=!0;_!==null&&_.forEach(function(W){var j=C.counters[W.counter];j&&W.increment!==0&&(O=!1,j.length||j.push(1),j[Math.max(0,j.length-1)]+=W.increment)});var Q=[];return O&&P.forEach(function(W){var j=C.counters[W.counter];Q.push(W.counter),j||(j=C.counters[W.counter]=[]),j.push(W.reset)}),Q},b})(),IS={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},kS={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},FR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},TR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},ed=function(b,v,C,_,P,O){return b<v||b>C?QA(b,P,O.length>0):_.integers.reduce(function(Q,W,j){for(;b>=W;)b-=W,Q+=_.values[j];return Q},"")+O},$S=function(b,v,C,_){var P="";do C||b--,P=_(b)+P,b/=v;while(b*v>=v);return P},Jr=function(b,v,C,_,P){var O=C-v+1;return(b<0?"-":"")+($S(Math.abs(b),O,_,function(Q){return c(Math.floor(Q%O)+v)})+P)},Bu=function(b,v,C){C===void 0&&(C=". ");var _=v.length;return $S(Math.abs(b),_,!1,function(P){return v[Math.floor(P%_)]})+C},td=1,mh=2,gh=4,HA=8,Tl=function(b,v,C,_,P,O){if(b<-9999||b>9999)return QA(b,4,P.length>0);var Q=Math.abs(b),W=P;if(Q===0)return v[0]+W;for(var j=0;Q>0&&j<=4;j++){var se=Q%10;se===0&&vs(O,td)&&W!==""?W=v[se]+W:se>1||se===1&&j===0||se===1&&j===1&&vs(O,mh)||se===1&&j===1&&vs(O,gh)&&b>100||se===1&&j>1&&vs(O,HA)?W=v[se]+(j>0?C[j-1]:"")+W:se===1&&j>0&&(W=C[j-1]+W),Q=Math.floor(Q/10)}return(b<0?_:"")+W},OS="\u5341\u767E\u5343\u842C",ES="\u62FE\u4F70\u4EDF\u842C",MS="\u30DE\u30A4\u30CA\u30B9",Db="\uB9C8\uC774\uB108\uC2A4",QA=function(b,v,C){var _=C?". ":"",P=C?"\u3001":"",O=C?", ":"",Q=C?" ":"";switch(v){case 0:return"\u2022"+Q;case 1:return"\u25E6"+Q;case 2:return"\u25FE"+Q;case 5:var W=Jr(b,48,57,!0,_);return W.length<4?"0"+W:W;case 4:return Bu(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",P);case 6:return ed(b,1,3999,IS,3,_).toLowerCase();case 7:return ed(b,1,3999,IS,3,_);case 8:return Jr(b,945,969,!1,_);case 9:return Jr(b,97,122,!1,_);case 10:return Jr(b,65,90,!1,_);case 11:return Jr(b,1632,1641,!0,_);case 12:case 49:return ed(b,1,9999,kS,3,_);case 35:return ed(b,1,9999,kS,3,_).toLowerCase();case 13:return Jr(b,2534,2543,!0,_);case 14:case 30:return Jr(b,6112,6121,!0,_);case 15:return Bu(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",P);case 16:return Bu(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",P);case 17:case 48:return Tl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",OS,"\u8CA0",P,mh|gh|HA);case 47:return Tl(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ES,"\u8CA0",P,td|mh|gh|HA);case 42:return Tl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",OS,"\u8D1F",P,mh|gh|HA);case 41:return Tl(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ES,"\u8D1F",P,td|mh|gh|HA);case 26:return Tl(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",MS,P,0);case 25:return Tl(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",MS,P,td|mh|gh);case 31:return Tl(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Db,O,td|mh|gh);case 33:return Tl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Db,O,0);case 32:return Tl(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Db,O,td|mh|gh);case 18:return Jr(b,2406,2415,!0,_);case 20:return ed(b,1,19999,TR,3,_);case 21:return Jr(b,2790,2799,!0,_);case 22:return Jr(b,2662,2671,!0,_);case 22:return ed(b,1,10999,FR,3,_);case 23:return Bu(b,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Bu(b,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Jr(b,3302,3311,!0,_);case 28:return Bu(b,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",P);case 29:return Bu(b,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",P);case 34:return Jr(b,3792,3801,!0,_);case 37:return Jr(b,6160,6169,!0,_);case 38:return Jr(b,4160,4169,!0,_);case 39:return Jr(b,2918,2927,!0,_);case 40:return Jr(b,1776,1785,!0,_);case 43:return Jr(b,3046,3055,!0,_);case 44:return Jr(b,3174,3183,!0,_);case 45:return Jr(b,3664,3673,!0,_);case 46:return Jr(b,3872,3881,!0,_);default:return Jr(b,48,57,!0,_)}},RS="data-html2canvas-ignore",US=(function(){function b(v,C,_){if(this.context=v,this.options=_,this.scrolledElements=[],this.referenceElement=C,this.counters=new SR,this.quoteDepth=0,!C.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(C.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(v,C){var _=this,P=PR(v,C);if(!P.contentWindow)return Promise.reject("Unable to find iframe window");var O=v.defaultView.pageXOffset,Q=v.defaultView.pageYOffset,W=P.contentWindow,j=W.document,se=IR(P).then(function(){return i(_,void 0,void 0,function(){var ne,Ae;return r(this,function(Ce){switch(Ce.label){case 0:return this.scrolledElements.forEach(ER),W&&(W.scrollTo(C.left,C.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(W.scrollY!==C.top||W.scrollX!==C.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(W.scrollX-C.left,W.scrollY-C.top,0,0))),ne=this.options.onclone,Ae=this.clonedReferenceElement,typeof Ae>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:j.fonts&&j.fonts.ready?[4,j.fonts.ready]:[3,2];case 1:Ce.sent(),Ce.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,LR(j)]:[3,4];case 3:Ce.sent(),Ce.label=4;case 4:return typeof ne=="function"?[2,Promise.resolve().then(function(){return ne(j,Ae)}).then(function(){return P})]:[2,P]}})})});return j.open(),j.write($R(document.doctype)+"<html></html>"),OR(this.referenceElement.ownerDocument,O,Q),j.replaceChild(j.adoptNode(this.documentElement),j.documentElement),j.close(),se},b.prototype.createElementClone=function(v){if(Ab(v,2))debugger;if(SS(v))return this.createCanvasClone(v);if(FS(v))return this.createVideoClone(v);if(PS(v))return this.createStyleClone(v);var C=v.cloneNode(!1);return Pb(C)&&(Pb(v)&&v.currentSrc&&v.currentSrc!==v.src&&(C.src=v.currentSrc,C.srcset=""),C.loading==="lazy"&&(C.loading="eager")),LS(C)?this.createCustomElementClone(C):C},b.prototype.createCustomElementClone=function(v){var C=document.createElement("html2canvascustomelement");return Lb(v.style,C),C},b.prototype.createStyleClone=function(v){try{var C=v.sheet;if(C&&C.cssRules){var _=[].slice.call(C.cssRules,0).reduce(function(O,Q){return Q&&typeof Q.cssText=="string"?O+Q.cssText:O},""),P=v.cloneNode(!1);return P.textContent=_,P}}catch(O){if(this.context.logger.error("Unable to access cssRules property",O),O.name!=="SecurityError")throw O}return v.cloneNode(!1)},b.prototype.createCanvasClone=function(v){var C;if(this.options.inlineImages&&v.ownerDocument){var _=v.ownerDocument.createElement("img");try{return _.src=v.toDataURL(),_}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",v)}}var P=v.cloneNode(!1);try{P.width=v.width,P.height=v.height;var O=v.getContext("2d"),Q=P.getContext("2d");if(Q)if(!this.options.allowTaint&&O)Q.putImageData(O.getImageData(0,0,v.width,v.height),0,0);else{var W=(C=v.getContext("webgl2"))!==null&&C!==void 0?C:v.getContext("webgl");if(W){var j=W.getContextAttributes();j?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",v)}Q.drawImage(v,0,0)}return P}catch{this.context.logger.info("Unable to clone canvas as it is tainted",v)}return P},b.prototype.createVideoClone=function(v){var C=v.ownerDocument.createElement("canvas");C.width=v.offsetWidth,C.height=v.offsetHeight;var _=C.getContext("2d");try{return _&&(_.drawImage(v,0,0,C.width,C.height),this.options.allowTaint||_.getImageData(0,0,C.width,C.height)),C}catch{this.context.logger.info("Unable to clone video as it is tainted",v)}var P=v.ownerDocument.createElement("canvas");return P.width=v.offsetWidth,P.height=v.offsetHeight,P},b.prototype.appendChildNode=function(v,C,_){(!Jc(C)||!BR(C)&&!C.hasAttribute(RS)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(C)))&&(!this.options.copyStyles||!Jc(C)||!PS(C))&&v.appendChild(this.cloneNode(C,_))},b.prototype.cloneChildNodes=function(v,C,_){for(var P=this,O=v.shadowRoot?v.shadowRoot.firstChild:v.firstChild;O;O=O.nextSibling)if(Jc(O)&&DS(O)&&typeof O.assignedNodes=="function"){var Q=O.assignedNodes();Q.length&&Q.forEach(function(W){return P.appendChildNode(C,W,_)})}else this.appendChildNode(C,O,_)},b.prototype.cloneNode=function(v,C){if(wS(v))return document.createTextNode(v.data);if(!v.ownerDocument)return v.cloneNode(!1);var _=v.ownerDocument.defaultView;if(_&&Jc(v)&&(Fb(v)||Bm(v))){var P=this.createElementClone(v);P.style.transitionProperty="none";var O=_.getComputedStyle(v),Q=_.getComputedStyle(v,":before"),W=_.getComputedStyle(v,":after");this.referenceElement===v&&Fb(P)&&(this.clonedReferenceElement=P),Tb(P)&&UR(P);var j=this.counters.parse(new JB(this.context,O)),se=this.resolvePseudoContent(v,P,Q,jA.BEFORE);LS(v)&&(C=!0),FS(v)||this.cloneChildNodes(v,P,C),se&&P.insertBefore(se,P.firstChild);var ne=this.resolvePseudoContent(v,P,W,jA.AFTER);return ne&&P.appendChild(ne),this.counters.pop(j),(O&&(this.options.copyStyles||Bm(v))&&!TS(v)||C)&&Lb(O,P),(v.scrollTop!==0||v.scrollLeft!==0)&&this.scrolledElements.push([P,v.scrollLeft,v.scrollTop]),(Sm(v)||Fm(v))&&(Sm(P)||Fm(P))&&(P.value=v.value),P}return v.cloneNode(!1)},b.prototype.resolvePseudoContent=function(v,C,_,P){var O=this;if(_){var Q=_.content,W=C.ownerDocument;if(!(!W||!Q||Q==="none"||Q==="-moz-alt-content"||_.display==="none")){this.counters.parse(new JB(this.context,_));var j=new xM(this.context,_),se=W.createElement("html2canvaspseudoelement");Lb(_,se),j.content.forEach(function(Ae){if(Ae.type===0)se.appendChild(W.createTextNode(Ae.value));else if(Ae.type===22){var Ce=W.createElement("img");Ce.src=Ae.value,Ce.style.opacity="1",se.appendChild(Ce)}else if(Ae.type===18){if(Ae.name==="attr"){var lt=Ae.values.filter(lr);lt.length&&se.appendChild(W.createTextNode(v.getAttribute(lt[0].value)||""))}else if(Ae.name==="counter"){var Ue=Ae.values.filter(Zc),Ke=Ue[0],ri=Ue[1];if(Ke&&lr(Ke)){var bt=O.counters.getCounterValue(Ke.value),gt=ri&&lr(ri)?db.parse(O.context,ri.value):3;se.appendChild(W.createTextNode(QA(bt,gt,!1)))}}else if(Ae.name==="counters"){var zi=Ae.values.filter(Zc),Ke=zi[0],oi=zi[1],ri=zi[2];if(Ke&&lr(Ke)){var Ut=O.counters.getCounterValues(Ke.value),rt=ri&&lr(ri)?db.parse(O.context,ri.value):3,ki=oi&&oi.type===0?oi.value:"",$i=Ut.map(function(Oa){return QA(Oa,rt,!1)}).join(ki);se.appendChild(W.createTextNode($i))}}}else if(Ae.type===20)switch(Ae.value){case"open-quote":se.appendChild(W.createTextNode(qB(j.quotes,O.quoteDepth++,!0)));break;case"close-quote":se.appendChild(W.createTextNode(qB(j.quotes,--O.quoteDepth,!1)));break;default:se.appendChild(W.createTextNode(Ae.value))}}),se.className=Ib+" "+kb;var ne=P===jA.BEFORE?" "+Ib:" "+kb;return Bm(C)?C.className.baseValue+=ne:C.className+=ne,se}}},b.destroy=function(v){return v.parentNode?(v.parentNode.removeChild(v),!0):!1},b})(),jA;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(jA||(jA={}));var PR=function(b,v){var C=b.createElement("iframe");return C.className="html2canvas-container",C.style.visibility="hidden",C.style.position="fixed",C.style.left="-10000px",C.style.top="0px",C.style.border="0",C.width=v.width.toString(),C.height=v.height.toString(),C.scrolling="no",C.setAttribute(RS,"true"),b.body.appendChild(C),C},DR=function(b){return new Promise(function(v){if(b.complete){v();return}if(!b.src){v();return}b.onload=v,b.onerror=v})},LR=function(b){return Promise.all([].slice.call(b.images,0).map(DR))},IR=function(b){return new Promise(function(v,C){var _=b.contentWindow;if(!_)return C("No window assigned for iframe");var P=_.document;_.onload=b.onload=function(){_.onload=b.onload=null;var O=setInterval(function(){P.body.childNodes.length>0&&P.readyState==="complete"&&(clearInterval(O),v(b))},50)}})},kR=["all","d","content"],Lb=function(b,v){for(var C=b.length-1;C>=0;C--){var _=b.item(C);kR.indexOf(_)===-1&&v.style.setProperty(_,b.getPropertyValue(_))}return v},$R=function(b){var v="";return b&&(v+="<!DOCTYPE ",b.name&&(v+=b.name),b.internalSubset&&(v+=b.internalSubset),b.publicId&&(v+='"'+b.publicId+'"'),b.systemId&&(v+='"'+b.systemId+'"'),v+=">"),v},OR=function(b,v,C){b&&b.defaultView&&(v!==b.defaultView.pageXOffset||C!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(v,C)},ER=function(b){var v=b[0],C=b[1],_=b[2];v.scrollLeft=C,v.scrollTop=_},MR=":before",RR=":after",Ib="___html2canvas___pseudoelement_before",kb="___html2canvas___pseudoelement_after",VS=`{
2
+ import{a as to}from"./QVD6LHQ2.js";import o from"./FTGZEUG5.js";import n from"./EVB7GUKT.js";import m from"./H5LAP626.js";import{c as Ox,e as lg,f as hg,g as ug,h as cg,i as lp,j as hp}from"./S5OM65RV.js";import{a as PT,g as DT}from"./7BDNLABD.js";import l from"./NGI7H6FA.js";import{a as gT}from"./FPDW4F45.js";import{a as Dx}from"./SHV72LSB.js";import k from"./JJVDA3DN.js";import j from"./E5GUU5JX.js";import i from"./OZJAKFKE.js";import h from"./G37XSGAU.js";import g from"./AOBR2FZX.js";import f from"./L4V7IFLS.js";import e from"./ECWZPFK5.js";import d from"./VGFOPTRV.js";import c from"./MZP3HKKC.js";import b from"./PE3FCPYX.js";import{c as md,d as Tx,e as np,p as Px,q as fT,r as og,s as mT,t as op}from"./YJXIGYX6.js";import a from"./EVQPWQQD.js";import{C as Em,D as Mm,g as Tr,h as zs,k as Lu,l as Ll,t as GA,u as As,v as YA,w as bs,x as bi,y as Yt,z as Dt}from"./Y7IQV44J.js";import{a as lF,b as hF,c as Om,g as Du}from"./MIYIXPXS.js";import{a as TT}from"./W44VQVU5.js";import{d as Ho,e as yT,f as vT,g as bT,h as Lx,n as Ix,t as xT}from"./T5RPAQYI.js";import"./EZM4ZDQI.js";import{a as V,b as Pn,e as st,f as Gi,h as zA,i as Ub,j as Vb,k as tr,l as Dn,m as Iu,n as Nb,p as ir,q as uF,r as ku,t as Hb,u as Qb,y as ze,z as cF}from"./ETLJKITO.js";import{A as sF,B as aF,G as nF,H as oF,g as eF,h as tF,i as nd,l as iF,n as Xs,y as rF,z as Rb}from"./GKNEQGLI.js";import{a as XA,b as ZS,c as qS,d as JS}from"./QPIMTXPL.js";export default $arcgis.t(([ka,{substitute:fA},QC,,,,,,,,,,,,,,,,,,,,{$a:so,$b:Gs,$c:RF,$d:dT,Ad:tg,B:an,Bb:Ln,Bc:_h,C:Hm,Cb:cd,Cc:LF,Cd:iT,D:Cr,Da:gF,Db:Ee,Dc:IF,Dd:rT,Eb:Pr,Ed:ig,F:AF,Fb:Ol,Fc:kF,Fd:sT,G:KA,Ga:yF,Gb:ks,Gd:aT,H:ud,Hb:ip,Hd:bx,Ib:Ua,Id:xx,Ja:qb,Jb:hx,Jc:Zm,Jd:_x,Kb:Er,Kd:nT,L:pF,Ld:Cx,M:fF,Mb:ux,N:bh,Nd:rg,Ob:Yi,Oc:px,Od:In,Pd:pd,Qa:ht,Qb:cx,Qd:er,Ra:Jb,Rb:wF,Rc:$F,Sa:xh,Sb:Mr,Sd:No,Ta:Mu,Td:oT,U:ZA,Ua:ex,Uc:Vo,Ud:lT,Va:nn,Vc:Ch,Vd:hT,Wa:tx,Wc:OF,Wd:wx,X:Qm,Xa:ix,Xb:rp,Xc:It,Xd:sg,Y:Xb,Ya:rx,Yb:sp,Yc:qm,Yd:ag,Z:zb,Za:q,Zb:BF,Zc:EF,Zd:uT,_a:Mo,_c:MF,_d:cT,ab:vF,ac:SF,ad:UF,ba:jm,bb:bF,bc:ao,bd:fx,be:ng,c:io,ca:Gb,cb:sx,cc:Uo,cd:VF,ce:AT,d:$u,da:Yb,db:qA,dc:dd,dd:NF,de:Bx,ea:Kb,eb:ax,ec:Ym,ed:HF,ee:Uu,fa:mF,fb:Ra,fd:QF,g:xr,gb:Xm,gc:Ru,gd:jF,ge:Sx,h:od,hb:zm,hc:Ys,hd:mx,he:pT,i:Rm,ib:_a,id:WF,j:dF,jd:XF,k:Eo,kb:xF,kc:FF,kd:gx,ke:Fx,l:xa,lb:_F,lc:dx,ld:zF,le:fd,m:Ou,ma:Zb,mb:nx,md:GF,n:ld,nb:Gm,nc:Km,nd:YF,o:ro,ob:on,oc:TF,od:yx,p:jb,pb:ox,pc:Ad,pd:KF,q:Il,qa:Wm,qb:JA,qc:PF,qd:ZF,r:Um,rb:kl,rd:Jm,s:Vt,sb:$l,sd:qF,t:Vm,tb:lx,td:JF,ub:CF,ud:eT,v:Eu,vb:ep,vc:DF,w:hd,wb:Ca,wd:ap,x:Nm,xb:Ro,xd:eg,y:Wb,yb:tp,yc:Ax,yd:tT,zb:Kt,zc:ln,zd:vx},,,,,,,{a:_T,b:CT,c:wT,d:BT,e:kx,f:$x,g:ST,h:FT},,,,{b:$T,r:Ex},{b:LT,c:IT,e:kT},{c:Mx,d:Rx,e:OT},{f:ET,h:MT}])=>{var VT=ZS((Ux,Vx)=>{(function(s,t){typeof Ux=="object"&&typeof Vx<"u"?Vx.exports=t():typeof define=="function"&&define.amd?define(t):(s=typeof globalThis<"u"?globalThis:s||self,s.html2canvas=t())})(Ux,(function(){"use strict";var s=function(b,v){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var P in _)Object.prototype.hasOwnProperty.call(_,P)&&(C[P]=_[P])},s(b,v)};function t(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");s(b,v);function C(){this.constructor=b}b.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}var e=function(){return e=Object.assign||function(v){for(var C,_=1,P=arguments.length;_<P;_++){C=arguments[_];for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&(v[O]=C[O])}return v},e.apply(this,arguments)};function i(b,v,C,_){function P(O){return O instanceof C?O:new C(function(Q){Q(O)})}return new(C||(C=Promise))(function(O,Q){function W(ne){try{se(_.next(ne))}catch(Ae){Q(Ae)}}function j(ne){try{se(_.throw(ne))}catch(Ae){Q(Ae)}}function se(ne){ne.done?O(ne.value):P(ne.value).then(W,j)}se((_=_.apply(b,v||[])).next())})}function r(b,v){var C={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},_,P,O,Q;return Q={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function W(se){return function(ne){return j([se,ne])}}function j(se){if(_)throw new TypeError("Generator is already executing.");for(;C;)try{if(_=1,P&&(O=se[0]&2?P.return:se[0]?P.throw||((O=P.return)&&O.call(P),0):P.next)&&!(O=O.call(P,se[1])).done)return O;switch(P=0,O&&(se=[se[0]&2,O.value]),se[0]){case 0:case 1:O=se;break;case 4:return C.label++,{value:se[1],done:!1};case 5:C.label++,P=se[1],se=[0];continue;case 7:se=C.ops.pop(),C.trys.pop();continue;default:if(O=C.trys,!(O=O.length>0&&O[O.length-1])&&(se[0]===6||se[0]===2)){C=0;continue}if(se[0]===3&&(!O||se[1]>O[0]&&se[1]<O[3])){C.label=se[1];break}if(se[0]===6&&C.label<O[1]){C.label=O[1],O=se;break}if(O&&C.label<O[2]){C.label=O[2],C.ops.push(se);break}O[2]&&C.ops.pop(),C.trys.pop();continue}se=v.call(b,C)}catch(ne){se=[6,ne],P=0}finally{_=O=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}}function a(b,v,C){if(C||arguments.length===2)for(var _=0,P=v.length,O;_<P;_++)(O||!(_ in v))&&(O||(O=Array.prototype.slice.call(v,0,_)),O[_]=v[_]);return b.concat(O||v)}for(var n=(function(){function b(v,C,_,P){this.left=v,this.top=C,this.width=_,this.height=P}return b.prototype.add=function(v,C,_,P){return new b(this.left+v,this.top+C,this.width+_,this.height+P)},b.fromClientRect=function(v,C){return new b(C.left+v.windowBounds.left,C.top+v.windowBounds.top,C.width,C.height)},b.fromDOMRectList=function(v,C){var _=Array.from(C).find(function(P){return P.width!==0});return _?new b(_.left+v.windowBounds.left,_.top+v.windowBounds.top,_.width,_.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b})(),o=function(b,v){return n.fromClientRect(b,v.getBoundingClientRect())},l=function(b){var v=b.body,C=b.documentElement;if(!v||!C)throw new Error("Unable to get document size");var _=Math.max(Math.max(v.scrollWidth,C.scrollWidth),Math.max(v.offsetWidth,C.offsetWidth),Math.max(v.clientWidth,C.clientWidth)),P=Math.max(Math.max(v.scrollHeight,C.scrollHeight),Math.max(v.offsetHeight,C.offsetHeight),Math.max(v.clientHeight,C.clientHeight));return new n(0,0,_,P)},h=function(b){for(var v=[],C=0,_=b.length;C<_;){var P=b.charCodeAt(C++);if(P>=55296&&P<=56319&&C<_){var O=b.charCodeAt(C++);(O&64512)===56320?v.push(((P&1023)<<10)+(O&1023)+65536):(v.push(P),C--)}else v.push(P)}return v},c=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],P=-1,O="";++P<C;){var Q=b[P];Q<=65535?_.push(Q):(Q-=65536,_.push((Q>>10)+55296,Q%1024+56320)),(P+1===C||_.length>16384)&&(O+=String.fromCharCode.apply(String,_),_.length=0)}return O},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array>"u"?[]:new Uint8Array(256),A=0;A<u.length;A++)d[u.charCodeAt(A)]=A;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=typeof Uint8Array>"u"?[]:new Uint8Array(256),f=0;f<p.length;f++)m[p.charCodeAt(f)]=f;for(var g=function(b){var v=b.length*.75,C=b.length,_,P=0,O,Q,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var se=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(se)?se:new Uint8Array(se);for(_=0;_<C;_+=4)O=m[b.charCodeAt(_)],Q=m[b.charCodeAt(_+1)],W=m[b.charCodeAt(_+2)],j=m[b.charCodeAt(_+3)],ne[P++]=O<<2|Q>>4,ne[P++]=(Q&15)<<4|W>>2,ne[P++]=(W&3)<<6|j&63;return se},y=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},x=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},w=5,S=11,D=2,T=S-w,L=65536>>w,$=1<<w,I=$-1,R=1024>>w,F=L+R,H=F,K=32,z=H+K,ee=65536>>S,ie=1<<T,de=ie-1,G=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},Y=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},xe=function(b,v){var C=g(b),_=Array.isArray(C)?x(C):new Uint32Array(C),P=Array.isArray(C)?y(C):new Uint16Array(C),O=24,Q=G(P,O/2,_[4]/2),W=_[5]===2?G(P,(O+_[4])/2):Y(_,Math.ceil((O+_[4])/4));return new ae(_[0],_[1],_[2],_[3],Q,W)},ae=(function(){function b(v,C,_,P,O,Q){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=P,this.index=O,this.data=Q}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>w],C=(C<<D)+(v&I),this.data[C];if(v<=65535)return C=this.index[L+(v-55296>>w)],C=(C<<D)+(v&I),this.data[C];if(v<this.highStart)return C=z-ee+(v>>S),C=this.index[C],C+=v>>w&de,C=this.index[C],C=(C<<D)+(v&I),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ze=0;Ze<le.length;Ze++)Ie[le.charCodeAt(Ze)]=Ze;var We="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Je=50,kt=1,pt=2,Ui=3,Xi=4,U=5,Be=7,ye=8,Z=9,X=10,oe=11,De=12,Le=13,pe=14,$e=15,qe=16,Me=17,_t=18,qi=19,pi=20,ys=21,Si=22,qr=23,br=24,Fi=25,Lo=26,Cl=27,oa=28,Kf=29,wl=30,qv=31,Gc=32,_u=33,Bl=34,hh=35,Jv=36,DA=37,eb=38,Zf=39,qf=40,tb=41,lB=42,F$=43,T$=[9001,65288],hB="!",wi="\xD7",Jf="\xF7",ib=xe(We),Sl=[wl,Jv],rb=[kt,pt,Ui,U],uB=[X,ye],cB=[Cl,Lo],P$=rb.concat(uB),dB=[eb,Zf,qf,Bl,hh],D$=[$e,Le],L$=function(b,v){v===void 0&&(v="strict");var C=[],_=[],P=[];return b.forEach(function(O,Q){var W=ib.get(O);if(W>Je?(P.push(!0),W-=Je):P.push(!1),["normal","auto","loose"].indexOf(v)!==-1&&[8208,8211,12316,12448].indexOf(O)!==-1)return _.push(Q),C.push(qe);if(W===Xi||W===oe){if(Q===0)return _.push(Q),C.push(wl);var j=C[Q-1];return P$.indexOf(j)===-1?(_.push(_[Q-1]),C.push(j)):(_.push(Q),C.push(wl))}if(_.push(Q),W===qv)return C.push(v==="strict"?ys:DA);if(W===lB||W===Kf)return C.push(wl);if(W===F$)return O>=131072&&O<=196605||O>=196608&&O<=262141?C.push(DA):C.push(wl);C.push(W)}),[_,C,P]},sb=function(b,v,C,_){var P=_[C];if(Array.isArray(b)?b.indexOf(P)!==-1:b===P)for(var O=C;O<=_.length;){O++;var Q=_[O];if(Q===v)return!0;if(Q!==X)break}if(P===X)for(var O=C;O>0;){O--;var W=_[O];if(Array.isArray(b)?b.indexOf(W)!==-1:b===W)for(var j=C;j<=_.length;){j++;var Q=_[j];if(Q===v)return!0;if(Q!==X)break}if(W!==X)break}return!1},AB=function(b,v){for(var C=b;C>=0;){var _=v[C];if(_===X)C--;else return _}return 0},I$=function(b,v,C,_,P){if(C[_]===0)return wi;var O=_-1;if(Array.isArray(P)&&P[O]===!0)return wi;var Q=O-1,W=O+1,j=v[O],se=Q>=0?v[Q]:0,ne=v[W];if(j===pt&&ne===Ui)return wi;if(rb.indexOf(j)!==-1)return hB;if(rb.indexOf(ne)!==-1||uB.indexOf(ne)!==-1)return wi;if(AB(O,v)===ye)return Jf;if(ib.get(b[O])===oe||(j===Gc||j===_u)&&ib.get(b[W])===oe||j===Be||ne===Be||j===Z||[X,Le,$e].indexOf(j)===-1&&ne===Z||[Me,_t,qi,br,oa].indexOf(ne)!==-1||AB(O,v)===Si||sb(qr,Si,O,v)||sb([Me,_t],ys,O,v)||sb(De,De,O,v))return wi;if(j===X)return Jf;if(j===qr||ne===qr)return wi;if(ne===qe||j===qe)return Jf;if([Le,$e,ys].indexOf(ne)!==-1||j===pe||se===Jv&&D$.indexOf(j)!==-1||j===oa&&ne===Jv||ne===pi||Sl.indexOf(ne)!==-1&&j===Fi||Sl.indexOf(j)!==-1&&ne===Fi||j===Cl&&[DA,Gc,_u].indexOf(ne)!==-1||[DA,Gc,_u].indexOf(j)!==-1&&ne===Lo||Sl.indexOf(j)!==-1&&cB.indexOf(ne)!==-1||cB.indexOf(j)!==-1&&Sl.indexOf(ne)!==-1||[Cl,Lo].indexOf(j)!==-1&&(ne===Fi||[Si,$e].indexOf(ne)!==-1&&v[W+1]===Fi)||[Si,$e].indexOf(j)!==-1&&ne===Fi||j===Fi&&[Fi,oa,br].indexOf(ne)!==-1)return wi;if([Fi,oa,br,Me,_t].indexOf(ne)!==-1)for(var Ae=O;Ae>=0;){var Ce=v[Ae];if(Ce===Fi)return wi;if([oa,br].indexOf(Ce)!==-1)Ae--;else break}if([Cl,Lo].indexOf(ne)!==-1)for(var Ae=[Me,_t].indexOf(j)!==-1?Q:O;Ae>=0;){var Ce=v[Ae];if(Ce===Fi)return wi;if([oa,br].indexOf(Ce)!==-1)Ae--;else break}if(eb===j&&[eb,Zf,Bl,hh].indexOf(ne)!==-1||[Zf,Bl].indexOf(j)!==-1&&[Zf,qf].indexOf(ne)!==-1||[qf,hh].indexOf(j)!==-1&&ne===qf||dB.indexOf(j)!==-1&&[pi,Lo].indexOf(ne)!==-1||dB.indexOf(ne)!==-1&&j===Cl||Sl.indexOf(j)!==-1&&Sl.indexOf(ne)!==-1||j===br&&Sl.indexOf(ne)!==-1||Sl.concat(Fi).indexOf(j)!==-1&&ne===Si&&T$.indexOf(b[W])===-1||Sl.concat(Fi).indexOf(ne)!==-1&&j===_t)return wi;if(j===tb&&ne===tb){for(var lt=C[O],Ue=1;lt>0&&(lt--,v[lt]===tb);)Ue++;if(Ue%2!==0)return wi}return j===Gc&&ne===_u?wi:Jf},k$=function(b,v){v||(v={lineBreak:"normal",wordBreak:"normal"});var C=L$(b,v.lineBreak),_=C[0],P=C[1],O=C[2];(v.wordBreak==="break-all"||v.wordBreak==="break-word")&&(P=P.map(function(W){return[Fi,wl,lB].indexOf(W)!==-1?DA:W}));var Q=v.wordBreak==="keep-all"?O.map(function(W,j){return W&&b[j]>=19968&&b[j]<=40959}):void 0;return[_,P,Q]},$$=(function(){function b(v,C,_,P){this.codePoints=v,this.required=C===hB,this.start=_,this.end=P}return b.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},b})(),O$=function(b,v){var C=h(b),_=k$(C,v),P=_[0],O=_[1],Q=_[2],W=C.length,j=0,se=0;return{next:function(){if(se>=W)return{done:!0,value:null};for(var ne=wi;se<W&&(ne=I$(C,O,P,++se,Q))===wi;);if(ne!==wi||se===W){var Ae=new $$(C,ne,j,se);return j=se,{value:Ae,done:!1}}return{done:!0,value:null}}}},E$=1,M$=2,LA=4,pB=8,em=10,fB=47,IA=92,R$=9,U$=32,tm=34,kA=61,V$=35,N$=36,H$=37,im=39,rm=40,$A=41,Q$=95,$a=45,j$=33,W$=60,X$=62,z$=64,G$=91,Y$=93,K$=61,Z$=123,sm=63,q$=125,mB=124,J$=126,eO=128,gB=65533,ab=42,Cu=43,tO=44,iO=58,rO=59,OA=46,sO=0,aO=8,nO=11,oO=14,lO=31,hO=127,Io=-1,yB=48,vB=97,bB=101,uO=102,cO=117,dO=122,xB=65,_B=69,CB=70,AO=85,pO=90,la=function(b){return b>=yB&&b<=57},fO=function(b){return b>=55296&&b<=57343},Yc=function(b){return la(b)||b>=xB&&b<=CB||b>=vB&&b<=uO},mO=function(b){return b>=vB&&b<=dO},gO=function(b){return b>=xB&&b<=pO},yO=function(b){return mO(b)||gO(b)},vO=function(b){return b>=eO},am=function(b){return b===em||b===R$||b===U$},nm=function(b){return yO(b)||vO(b)||b===Q$},wB=function(b){return nm(b)||la(b)||b===$a},bO=function(b){return b>=sO&&b<=aO||b===nO||b>=oO&&b<=lO||b===hO},uh=function(b,v){return b!==IA?!1:v!==em},om=function(b,v,C){return b===$a?nm(v)||uh(v,C):nm(b)?!0:!!(b===IA&&uh(b,v))},nb=function(b,v,C){return b===Cu||b===$a?la(v)?!0:v===OA&&la(C):la(b===OA?v:b)},xO=function(b){var v=0,C=1;(b[v]===Cu||b[v]===$a)&&(b[v]===$a&&(C=-1),v++);for(var _=[];la(b[v]);)_.push(b[v++]);var P=_.length?parseInt(c.apply(void 0,_),10):0;b[v]===OA&&v++;for(var O=[];la(b[v]);)O.push(b[v++]);var Q=O.length,W=Q?parseInt(c.apply(void 0,O),10):0;(b[v]===_B||b[v]===bB)&&v++;var j=1;(b[v]===Cu||b[v]===$a)&&(b[v]===$a&&(j=-1),v++);for(var se=[];la(b[v]);)se.push(b[v++]);var ne=se.length?parseInt(c.apply(void 0,se),10):0;return C*(P+W*Math.pow(10,-Q))*Math.pow(10,j*ne)},_O={type:2},CO={type:3},wO={type:4},BO={type:13},SO={type:8},FO={type:21},TO={type:9},PO={type:10},DO={type:11},LO={type:12},IO={type:14},lm={type:23},kO={type:1},$O={type:25},OO={type:24},EO={type:26},MO={type:27},RO={type:28},UO={type:29},VO={type:31},ob={type:32},BB=(function(){function b(){this._value=[]}return b.prototype.write=function(v){this._value=this._value.concat(h(v))},b.prototype.read=function(){for(var v=[],C=this.consumeToken();C!==ob;)v.push(C),C=this.consumeToken();return v},b.prototype.consumeToken=function(){var v=this.consumeCodePoint();switch(v){case tm:return this.consumeStringToken(tm);case V$:var C=this.peekCodePoint(0),_=this.peekCodePoint(1),P=this.peekCodePoint(2);if(wB(C)||uh(_,P)){var O=om(C,_,P)?M$:E$,Q=this.consumeName();return{type:5,value:Q,flags:O}}break;case N$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),BO;break;case im:return this.consumeStringToken(im);case rm:return _O;case $A:return CO;case ab:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),IO;break;case Cu:if(nb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case tO:return wO;case $a:var W=v,j=this.peekCodePoint(0),se=this.peekCodePoint(1);if(nb(W,j,se))return this.reconsumeCodePoint(v),this.consumeNumericToken();if(om(W,j,se))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();if(j===$a&&se===X$)return this.consumeCodePoint(),this.consumeCodePoint(),OO;break;case OA:if(nb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case fB:if(this.peekCodePoint(0)===ab)for(this.consumeCodePoint();;){var ne=this.consumeCodePoint();if(ne===ab&&(ne=this.consumeCodePoint(),ne===fB))return this.consumeToken();if(ne===Io)return this.consumeToken()}break;case iO:return EO;case rO:return MO;case W$:if(this.peekCodePoint(0)===j$&&this.peekCodePoint(1)===$a&&this.peekCodePoint(2)===$a)return this.consumeCodePoint(),this.consumeCodePoint(),$O;break;case z$:var Ae=this.peekCodePoint(0),Ce=this.peekCodePoint(1),lt=this.peekCodePoint(2);if(om(Ae,Ce,lt)){var Q=this.consumeName();return{type:7,value:Q}}break;case G$:return RO;case IA:if(uh(v,this.peekCodePoint(0)))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();break;case Y$:return UO;case K$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),SO;break;case Z$:return DO;case q$:return LO;case cO:case AO:var Ue=this.peekCodePoint(0),Ke=this.peekCodePoint(1);return Ue===Cu&&(Yc(Ke)||Ke===sm)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(v),this.consumeIdentLikeToken();case mB:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),TO;if(this.peekCodePoint(0)===mB)return this.consumeCodePoint(),FO;break;case J$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),PO;break;case Io:return ob}return am(v)?(this.consumeWhiteSpace(),VO):la(v)?(this.reconsumeCodePoint(v),this.consumeNumericToken()):nm(v)?(this.reconsumeCodePoint(v),this.consumeIdentLikeToken()):{type:6,value:c(v)}},b.prototype.consumeCodePoint=function(){var v=this._value.shift();return typeof v>"u"?-1:v},b.prototype.reconsumeCodePoint=function(v){this._value.unshift(v)},b.prototype.peekCodePoint=function(v){return v>=this._value.length?-1:this._value[v]},b.prototype.consumeUnicodeRangeToken=function(){for(var v=[],C=this.consumeCodePoint();Yc(C)&&v.length<6;)v.push(C),C=this.consumeCodePoint();for(var _=!1;C===sm&&v.length<6;)v.push(C),C=this.consumeCodePoint(),_=!0;if(_){var P=parseInt(c.apply(void 0,v.map(function(j){return j===sm?yB:j})),16),O=parseInt(c.apply(void 0,v.map(function(j){return j===sm?CB:j})),16);return{type:30,start:P,end:O}}var Q=parseInt(c.apply(void 0,v),16);if(this.peekCodePoint(0)===$a&&Yc(this.peekCodePoint(1))){this.consumeCodePoint(),C=this.consumeCodePoint();for(var W=[];Yc(C)&&W.length<6;)W.push(C),C=this.consumeCodePoint();var O=parseInt(c.apply(void 0,W),16);return{type:30,start:Q,end:O}}else return{type:30,start:Q,end:Q}},b.prototype.consumeIdentLikeToken=function(){var v=this.consumeName();return v.toLowerCase()==="url"&&this.peekCodePoint(0)===rm?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===rm?(this.consumeCodePoint(),{type:19,value:v}):{type:20,value:v}},b.prototype.consumeUrlToken=function(){var v=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Io)return{type:22,value:""};var C=this.peekCodePoint(0);if(C===im||C===tm){var _=this.consumeStringToken(this.consumeCodePoint());return _.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Io||this.peekCodePoint(0)===$A)?(this.consumeCodePoint(),{type:22,value:_.value}):(this.consumeBadUrlRemnants(),lm)}for(;;){var P=this.consumeCodePoint();if(P===Io||P===$A)return{type:22,value:c.apply(void 0,v)};if(am(P))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Io||this.peekCodePoint(0)===$A?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,v)}):(this.consumeBadUrlRemnants(),lm);if(P===tm||P===im||P===rm||bO(P))return this.consumeBadUrlRemnants(),lm;if(P===IA)if(uh(P,this.peekCodePoint(0)))v.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),lm;else v.push(P)}},b.prototype.consumeWhiteSpace=function(){for(;am(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var v=this.consumeCodePoint();if(v===$A||v===Io)return;uh(v,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(v){for(var C=5e4,_="";v>0;){var P=Math.min(C,v);_+=c.apply(void 0,this._value.splice(0,P)),v-=P}return this._value.shift(),_},b.prototype.consumeStringToken=function(v){var C="",_=0;do{var P=this._value[_];if(P===Io||P===void 0||P===v)return C+=this.consumeStringSlice(_),{type:0,value:C};if(P===em)return this._value.splice(0,_),kO;if(P===IA){var O=this._value[_+1];O!==Io&&O!==void 0&&(O===em?(C+=this.consumeStringSlice(_),_=-1,this._value.shift()):uh(P,O)&&(C+=this.consumeStringSlice(_),C+=c(this.consumeEscapedCodePoint()),_=-1))}_++}while(!0)},b.prototype.consumeNumber=function(){var v=[],C=LA,_=this.peekCodePoint(0);for((_===Cu||_===$a)&&v.push(this.consumeCodePoint());la(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0);var P=this.peekCodePoint(1);if(_===OA&&la(P))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=pB;la(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0),P=this.peekCodePoint(1);var O=this.peekCodePoint(2);if((_===_B||_===bB)&&((P===Cu||P===$a)&&la(O)||la(P)))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=pB;la(this.peekCodePoint(0));)v.push(this.consumeCodePoint());return[xO(v),C]},b.prototype.consumeNumericToken=function(){var v=this.consumeNumber(),C=v[0],_=v[1],P=this.peekCodePoint(0),O=this.peekCodePoint(1),Q=this.peekCodePoint(2);if(om(P,O,Q)){var W=this.consumeName();return{type:15,number:C,flags:_,unit:W}}return P===H$?(this.consumeCodePoint(),{type:16,number:C,flags:_}):{type:17,number:C,flags:_}},b.prototype.consumeEscapedCodePoint=function(){var v=this.consumeCodePoint();if(Yc(v)){for(var C=c(v);Yc(this.peekCodePoint(0))&&C.length<6;)C+=c(this.consumeCodePoint());am(this.peekCodePoint(0))&&this.consumeCodePoint();var _=parseInt(C,16);return _===0||fO(_)||_>1114111?gB:_}return v===Io?gB:v},b.prototype.consumeName=function(){for(var v="";;){var C=this.consumeCodePoint();if(wB(C))v+=c(C);else if(uh(C,this.peekCodePoint(0)))v+=c(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(C),v}},b})(),SB=(function(){function b(v){this._tokens=v}return b.create=function(v){var C=new BB;return C.write(v),new b(C.read())},b.parseValue=function(v){return b.create(v).parseComponentValue()},b.parseValues=function(v){return b.create(v).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var v=this.consumeToken();v.type===31;)v=this.consumeToken();if(v.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(v);var C=this.consumeComponentValue();do v=this.consumeToken();while(v.type===31);if(v.type===32)return C;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var v=[];;){var C=this.consumeComponentValue();if(C.type===32)return v;v.push(C),v.push()}},b.prototype.consumeComponentValue=function(){var v=this.consumeToken();switch(v.type){case 11:case 28:case 2:return this.consumeSimpleBlock(v.type);case 19:return this.consumeFunction(v)}return v},b.prototype.consumeSimpleBlock=function(v){for(var C={type:v,values:[]},_=this.consumeToken();;){if(_.type===32||HO(_,v))return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue()),_=this.consumeToken()}},b.prototype.consumeFunction=function(v){for(var C={name:v.value,values:[],type:18};;){var _=this.consumeToken();if(_.type===32||_.type===3)return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var v=this._tokens.shift();return typeof v>"u"?ob:v},b.prototype.reconsumeToken=function(v){this._tokens.unshift(v)},b})(),EA=function(b){return b.type===15},Kc=function(b){return b.type===17},lr=function(b){return b.type===20},NO=function(b){return b.type===0},lb=function(b,v){return lr(b)&&b.value===v},FB=function(b){return b.type!==31},Zc=function(b){return b.type!==31&&b.type!==4},ko=function(b){var v=[],C=[];return b.forEach(function(_){if(_.type===4){if(C.length===0)throw new Error("Error parsing function args, zero tokens for arg");v.push(C),C=[];return}_.type!==31&&C.push(_)}),C.length&&v.push(C),v},HO=function(b,v){return v===11&&b.type===12||v===28&&b.type===29?!0:v===2&&b.type===3},ch=function(b){return b.type===17||b.type===15},cs=function(b){return b.type===16||ch(b)},TB=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},Qs={type:17,number:0,flags:LA},hb={type:16,number:50,flags:LA},dh={type:16,number:100,flags:LA},MA=function(b,v,C){var _=b[0],P=b[1];return[_r(_,v),_r(typeof P<"u"?P:_,C)]},_r=function(b,v){if(b.type===16)return b.number/100*v;if(EA(b))switch(b.unit){case"rem":case"em":return 16*b.number;default:return b.number}return b.number},PB="deg",DB="grad",LB="rad",IB="turn",hm={name:"angle",parse:function(b,v){if(v.type===15)switch(v.unit){case PB:return Math.PI*v.number/180;case DB:return Math.PI/200*v.number;case LB:return v.number;case IB:return Math.PI*2*v.number}throw new Error("Unsupported angle type")}},kB=function(b){return b.type===15&&(b.unit===PB||b.unit===DB||b.unit===LB||b.unit===IB)},$B=function(b){var v=b.filter(lr).map(function(C){return C.value}).join(" ");switch(v){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Qs,Qs];case"to top":case"bottom":return Bn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Qs,dh];case"to right":case"left":return Bn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[dh,dh];case"to bottom":case"top":return Bn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[dh,Qs];case"to left":case"right":return Bn(270)}return 0},Bn=function(b){return Math.PI*b/180},Ah={name:"color",parse:function(b,v){if(v.type===18){var C=QO[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported color function "'+v.name+'"');return C(b,v.values)}if(v.type===5){if(v.value.length===3){var _=v.value.substring(0,1),P=v.value.substring(1,2),O=v.value.substring(2,3);return fh(parseInt(_+_,16),parseInt(P+P,16),parseInt(O+O,16),1)}if(v.value.length===4){var _=v.value.substring(0,1),P=v.value.substring(1,2),O=v.value.substring(2,3),Q=v.value.substring(3,4);return fh(parseInt(_+_,16),parseInt(P+P,16),parseInt(O+O,16),parseInt(Q+Q,16)/255)}if(v.value.length===6){var _=v.value.substring(0,2),P=v.value.substring(2,4),O=v.value.substring(4,6);return fh(parseInt(_,16),parseInt(P,16),parseInt(O,16),1)}if(v.value.length===8){var _=v.value.substring(0,2),P=v.value.substring(2,4),O=v.value.substring(4,6),Q=v.value.substring(6,8);return fh(parseInt(_,16),parseInt(P,16),parseInt(O,16),parseInt(Q,16)/255)}}if(v.type===20){var W=Fl[v.value.toUpperCase()];if(typeof W<"u")return W}return Fl.TRANSPARENT}},ph=function(b){return(255&b)===0},Is=function(b){var v=255&b,C=255&b>>8,_=255&b>>16,P=255&b>>24;return v<255?"rgba("+P+","+_+","+C+","+v/255+")":"rgb("+P+","+_+","+C+")"},fh=function(b,v,C,_){return(b<<24|v<<16|C<<8|Math.round(_*255)<<0)>>>0},OB=function(b,v){if(b.type===17)return b.number;if(b.type===16){var C=v===3?1:255;return v===3?b.number/100*C:Math.round(b.number/100*C)}return 0},EB=function(b,v){var C=v.filter(Zc);if(C.length===3){var _=C.map(OB),P=_[0],O=_[1],Q=_[2];return fh(P,O,Q,1)}if(C.length===4){var W=C.map(OB),P=W[0],O=W[1],Q=W[2],j=W[3];return fh(P,O,Q,j)}return 0};function ub(b,v,C){return C<0&&(C+=1),C>=1&&(C-=1),C<1/6?(v-b)*C*6+b:C<1/2?v:C<2/3?(v-b)*6*(2/3-C)+b:b}var MB=function(b,v){var C=v.filter(Zc),_=C[0],P=C[1],O=C[2],Q=C[3],W=(_.type===17?Bn(_.number):hm.parse(b,_))/(Math.PI*2),j=cs(P)?P.number/100:0,se=cs(O)?O.number/100:0,ne=typeof Q<"u"&&cs(Q)?_r(Q,1):1;if(j===0)return fh(se*255,se*255,se*255,1);var Ae=se<=.5?se*(j+1):se+j-se*j,Ce=se*2-Ae,lt=ub(Ce,Ae,W+1/3),Ue=ub(Ce,Ae,W),Ke=ub(Ce,Ae,W-1/3);return fh(lt*255,Ue*255,Ke*255,ne)},QO={hsl:MB,hsla:MB,rgb:EB,rgba:EB},RA=function(b,v){return Ah.parse(b,SB.create(v).parseComponentValue())},Fl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},jO={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(lr(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},WO={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},um=function(b,v){var C=Ah.parse(b,v[0]),_=v[1];return _&&cs(_)?{color:C,stop:_}:{color:C,stop:null}},RB=function(b,v){var C=b[0],_=b[b.length-1];C.stop===null&&(C.stop=Qs),_.stop===null&&(_.stop=dh);for(var P=[],O=0,Q=0;Q<b.length;Q++){var W=b[Q].stop;if(W!==null){var j=_r(W,v);j>O?P.push(j):P.push(O),O=j}else P.push(null)}for(var se=null,Q=0;Q<P.length;Q++){var ne=P[Q];if(ne===null)se===null&&(se=Q);else if(se!==null){for(var Ae=Q-se,Ce=P[se-1],lt=(ne-Ce)/(Ae+1),Ue=1;Ue<=Ae;Ue++)P[se+Ue-1]=lt*Ue;se=null}}return b.map(function(Ke,ri){var bt=Ke.color;return{color:bt,stop:Math.max(Math.min(1,P[ri]/v),0)}})},XO=function(b,v,C){var _=v/2,P=C/2,O=_r(b[0],v)-_,Q=P-_r(b[1],C);return(Math.atan2(Q,O)+Math.PI*2)%(Math.PI*2)},zO=function(b,v,C){var _=typeof b=="number"?b:XO(b,v,C),P=Math.abs(v*Math.sin(_))+Math.abs(C*Math.cos(_)),O=v/2,Q=C/2,W=P/2,j=Math.sin(_-Math.PI/2)*W,se=Math.cos(_-Math.PI/2)*W;return[P,O-se,O+se,Q-j,Q+j]},eo=function(b,v){return Math.sqrt(b*b+v*v)},UB=function(b,v,C,_,P){var O=[[0,0],[0,v],[b,0],[b,v]];return O.reduce(function(Q,W){var j=W[0],se=W[1],ne=eo(C-j,_-se);return(P?ne<Q.optimumDistance:ne>Q.optimumDistance)?{optimumCorner:W,optimumDistance:ne}:Q},{optimumDistance:P?1/0:-1/0,optimumCorner:null}).optimumCorner},GO=function(b,v,C,_,P){var O=0,Q=0;switch(b.size){case 0:b.shape===0?O=Q=Math.min(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-P)):b.shape===1&&(O=Math.min(Math.abs(v),Math.abs(v-_)),Q=Math.min(Math.abs(C),Math.abs(C-P)));break;case 2:if(b.shape===0)O=Q=Math.min(eo(v,C),eo(v,C-P),eo(v-_,C),eo(v-_,C-P));else if(b.shape===1){var W=Math.min(Math.abs(C),Math.abs(C-P))/Math.min(Math.abs(v),Math.abs(v-_)),j=UB(_,P,v,C,!0),se=j[0],ne=j[1];O=eo(se-v,(ne-C)/W),Q=W*O}break;case 1:b.shape===0?O=Q=Math.max(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-P)):b.shape===1&&(O=Math.max(Math.abs(v),Math.abs(v-_)),Q=Math.max(Math.abs(C),Math.abs(C-P)));break;case 3:if(b.shape===0)O=Q=Math.max(eo(v,C),eo(v,C-P),eo(v-_,C),eo(v-_,C-P));else if(b.shape===1){var W=Math.max(Math.abs(C),Math.abs(C-P))/Math.max(Math.abs(v),Math.abs(v-_)),Ae=UB(_,P,v,C,!1),se=Ae[0],ne=Ae[1];O=eo(se-v,(ne-C)/W),Q=W*O}break}return Array.isArray(b.size)&&(O=_r(b.size[0],_),Q=b.size.length===2?_r(b.size[1],P):O),[O,Q]},YO=function(b,v){var C=Bn(180),_=[];return ko(v).forEach(function(P,O){if(O===0){var Q=P[0];if(Q.type===20&&Q.value==="to"){C=$B(P);return}else if(kB(Q)){C=hm.parse(b,Q);return}}var W=um(b,P);_.push(W)}),{angle:C,stops:_,type:1}},cm=function(b,v){var C=Bn(180),_=[];return ko(v).forEach(function(P,O){if(O===0){var Q=P[0];if(Q.type===20&&["top","left","right","bottom"].indexOf(Q.value)!==-1){C=$B(P);return}else if(kB(Q)){C=(hm.parse(b,Q)+Bn(270))%Bn(360);return}}var W=um(b,P);_.push(W)}),{angle:C,stops:_,type:1}},KO=function(b,v){var C=Bn(180),_=[],P=1,O=0,Q=3,W=[];return ko(v).forEach(function(j,se){var ne=j[0];if(se===0){if(lr(ne)&&ne.value==="linear"){P=1;return}else if(lr(ne)&&ne.value==="radial"){P=2;return}}if(ne.type===18){if(ne.name==="from"){var Ae=Ah.parse(b,ne.values[0]);_.push({stop:Qs,color:Ae})}else if(ne.name==="to"){var Ae=Ah.parse(b,ne.values[0]);_.push({stop:dh,color:Ae})}else if(ne.name==="color-stop"){var Ce=ne.values.filter(Zc);if(Ce.length===2){var Ae=Ah.parse(b,Ce[1]),lt=Ce[0];Kc(lt)&&_.push({stop:{type:16,number:lt.number*100,flags:lt.flags},color:Ae})}}}}),P===1?{angle:(C+Bn(180))%Bn(360),stops:_,type:P}:{size:Q,shape:O,stops:_,position:W,type:P}},VB="closest-side",NB="farthest-side",HB="closest-corner",QB="farthest-corner",jB="circle",WB="ellipse",XB="cover",zB="contain",ZO=function(b,v){var C=0,_=3,P=[],O=[];return ko(v).forEach(function(Q,W){var j=!0;if(W===0){var se=!1;j=Q.reduce(function(Ae,Ce){if(se)if(lr(Ce))switch(Ce.value){case"center":return O.push(hb),Ae;case"top":case"left":return O.push(Qs),Ae;case"right":case"bottom":return O.push(dh),Ae}else(cs(Ce)||ch(Ce))&&O.push(Ce);else if(lr(Ce))switch(Ce.value){case jB:return C=0,!1;case WB:return C=1,!1;case"at":return se=!0,!1;case VB:return _=0,!1;case XB:case NB:return _=1,!1;case zB:case HB:return _=2,!1;case QB:return _=3,!1}else if(ch(Ce)||cs(Ce))return Array.isArray(_)||(_=[]),_.push(Ce),!1;return Ae},j)}if(j){var ne=um(b,Q);P.push(ne)}}),{size:_,shape:C,stops:P,position:O,type:2}},dm=function(b,v){var C=0,_=3,P=[],O=[];return ko(v).forEach(function(Q,W){var j=!0;if(W===0?j=Q.reduce(function(ne,Ae){if(lr(Ae))switch(Ae.value){case"center":return O.push(hb),!1;case"top":case"left":return O.push(Qs),!1;case"right":case"bottom":return O.push(dh),!1}else if(cs(Ae)||ch(Ae))return O.push(Ae),!1;return ne},j):W===1&&(j=Q.reduce(function(ne,Ae){if(lr(Ae))switch(Ae.value){case jB:return C=0,!1;case WB:return C=1,!1;case zB:case VB:return _=0,!1;case NB:return _=1,!1;case HB:return _=2,!1;case XB:case QB:return _=3,!1}else if(ch(Ae)||cs(Ae))return Array.isArray(_)||(_=[]),_.push(Ae),!1;return ne},j)),j){var se=um(b,Q);P.push(se)}}),{size:_,shape:C,stops:P,position:O,type:2}},qO=function(b){return b.type===1},JO=function(b){return b.type===2},cb={name:"image",parse:function(b,v){if(v.type===22){var C={url:v.value,type:0};return b.cache.addImage(v.value),C}if(v.type===18){var _=GB[v.name];if(typeof _>"u")throw new Error('Attempting to parse an unsupported image function "'+v.name+'"');return _(b,v.values)}throw new Error("Unsupported image type "+v.type)}};function eE(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!GB[b.name])}var GB={"linear-gradient":YO,"-moz-linear-gradient":cm,"-ms-linear-gradient":cm,"-o-linear-gradient":cm,"-webkit-linear-gradient":cm,"radial-gradient":ZO,"-moz-radial-gradient":dm,"-ms-radial-gradient":dm,"-o-radial-gradient":dm,"-webkit-radial-gradient":dm,"-webkit-gradient":KO},tE={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v.filter(function(_){return Zc(_)&&eE(_)}).map(function(_){return cb.parse(b,_)})}},iE={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(lr(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},rE={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,v){return ko(v).map(function(C){return C.filter(cs)}).map(TB)}},sE={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,v){return ko(v).map(function(C){return C.filter(lr).map(function(_){return _.value}).join(" ")}).map(aE)}},aE=function(b){switch(b){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},qc;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(qc||(qc={}));var nE={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,v){return ko(v).map(function(C){return C.filter(oE)})}},oE=function(b){return lr(b)||cs(b)},Am=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},lE=Am("top"),hE=Am("right"),uE=Am("bottom"),cE=Am("left"),pm=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(v,C){return TB(C.filter(cs))}}},dE=pm("top-left"),AE=pm("top-right"),pE=pm("bottom-right"),fE=pm("bottom-left"),fm=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(v,C){switch(C){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},mE=fm("top"),gE=fm("right"),yE=fm("bottom"),vE=fm("left"),mm=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(v,C){return EA(C)?C.number:0}}},bE=mm("top"),xE=mm("right"),_E=mm("bottom"),CE=mm("left"),wE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},BE={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,v){return v==="rtl"?1:0}},SE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,v){return v.filter(lr).reduce(function(C,_){return C|FE(_.value)},0)}},FE=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},TE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},PE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,v){return v.type===20&&v.value==="normal"?0:v.type===17||v.type===15?v.number:0}},gm;(function(b){b.NORMAL="normal",b.STRICT="strict"})(gm||(gm={}));var DE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="strict"?gm.STRICT:gm.NORMAL}},LE={name:"line-height",initialValue:"normal",prefix:!1,type:4},YB=function(b,v){return lr(b)&&b.value==="normal"?1.2*v:b.type===17?v*b.number:cs(b)?_r(b,v):v},IE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,v){return v.type===20&&v.value==="none"?null:cb.parse(b,v)}},kE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,v){return v==="inside"?0:1}},db={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},ym=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},$E=ym("top"),OE=ym("right"),EE=ym("bottom"),ME=ym("left"),RE={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,v){return v.filter(lr).map(function(C){switch(C.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},UE={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="break-word"?"break-word":"normal"}},vm=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},VE=vm("top"),NE=vm("right"),HE=vm("bottom"),QE=vm("left"),jE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,v){switch(v){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},WE={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,v){switch(v){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},XE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&lb(v[0],"none")?[]:ko(v).map(function(C){for(var _={color:Fl.TRANSPARENT,offsetX:Qs,offsetY:Qs,blur:Qs},P=0,O=0;O<C.length;O++){var Q=C[O];ch(Q)?(P===0?_.offsetX=Q:P===1?_.offsetY=Q:_.blur=Q,P++):_.color=Ah.parse(b,Q)}return _})}},zE={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},GE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,v){if(v.type===20&&v.value==="none")return null;if(v.type===18){var C=ZE[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported transform function "'+v.name+'"');return C(v.values)}return null}},YE=function(b){var v=b.filter(function(C){return C.type===17}).map(function(C){return C.number});return v.length===6?v:null},KE=function(b){var v=b.filter(function(j){return j.type===17}).map(function(j){return j.number}),C=v[0],_=v[1];v[2],v[3];var P=v[4],O=v[5];v[6],v[7],v[8],v[9],v[10],v[11];var Q=v[12],W=v[13];return v[14],v[15],v.length===16?[C,_,P,O,Q,W]:null},ZE={matrix:YE,matrix3d:KE},KB={type:16,number:50,flags:LA},qE=[KB,KB],JE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,v){var C=v.filter(cs);return C.length!==2?qE:[C[0],C[1]]}},eM={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"hidden":return 1;case"collapse":return 2;default:return 0}}},UA;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(UA||(UA={}));for(var tM={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"break-all":return UA.BREAK_ALL;case"keep-all":return UA.KEEP_ALL;default:return UA.NORMAL}}},iM={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,v){if(v.type===20)return{auto:!0,order:0};if(Kc(v))return{auto:!1,order:v.number};throw new Error("Invalid z-index number parsed")}},ZB={name:"time",parse:function(b,v){if(v.type===15)switch(v.unit.toLowerCase()){case"s":return 1e3*v.number;case"ms":return v.number}throw new Error("Unsupported time type")}},rM={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,v){return Kc(v)?v.number:1}},sM={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},aM={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,v){return v.filter(lr).map(function(C){switch(C.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(C){return C!==0})}},nM={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,v){var C=[],_=[];return v.forEach(function(P){switch(P.type){case 20:case 0:C.push(P.value);break;case 17:C.push(P.number.toString());break;case 4:_.push(C.join(" ")),C.length=0;break}}),C.length&&_.push(C.join(" ")),_.map(function(P){return P.indexOf(" ")===-1?P:"'"+P+"'"})}},oM={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},lM={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,v){return Kc(v)?v.number:lr(v)&&v.value==="bold"?700:400}},hM={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.filter(lr).map(function(C){return C.value})}},uM={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},vs=function(b,v){return(b&v)!==0},cM={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v}},dM={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;for(var _=[],P=v.filter(FB),O=0;O<P.length;O++){var Q=P[O],W=P[O+1];if(Q.type===20){var j=W&&Kc(W)?W.number:1;_.push({counter:Q.value,increment:j})}}return _}},AM={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return[];for(var C=[],_=v.filter(FB),P=0;P<_.length;P++){var O=_[P],Q=_[P+1];if(lr(O)&&O.value!=="none"){var W=Q&&Kc(Q)?Q.number:0;C.push({counter:O.value,reset:W})}}return C}},pM={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,v){return v.filter(EA).map(function(C){return ZB.parse(b,C)})}},fM={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;var _=[],P=v.filter(NO);if(P.length%2!==0)return null;for(var O=0;O<P.length;O+=2){var Q=P[O].value,W=P[O+1].value;_.push({open:Q,close:W})}return _}},qB=function(b,v,C){if(!b)return"";var _=b[Math.min(v,b.length-1)];return _?C?_.open:_.close:""},mM={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&lb(v[0],"none")?[]:ko(v).map(function(C){for(var _={color:255,offsetX:Qs,offsetY:Qs,blur:Qs,spread:Qs,inset:!1},P=0,O=0;O<C.length;O++){var Q=C[O];lb(Q,"inset")?_.inset=!0:ch(Q)?(P===0?_.offsetX=Q:P===1?_.offsetY=Q:P===2?_.blur=Q:_.spread=Q,P++):_.color=Ah.parse(b,Q)}return _})}},gM={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,v){var C=[0,1,2],_=[];return v.filter(lr).forEach(function(P){switch(P.value){case"stroke":_.push(1);break;case"fill":_.push(0);break;case"markers":_.push(2);break}}),C.forEach(function(P){_.indexOf(P)===-1&&_.push(P)}),_}},yM={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vM={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,v){return EA(v)?v.number:0}},bM=(function(){function b(v,C){var _,P;this.animationDuration=At(v,pM,C.animationDuration),this.backgroundClip=At(v,jO,C.backgroundClip),this.backgroundColor=At(v,WO,C.backgroundColor),this.backgroundImage=At(v,tE,C.backgroundImage),this.backgroundOrigin=At(v,iE,C.backgroundOrigin),this.backgroundPosition=At(v,rE,C.backgroundPosition),this.backgroundRepeat=At(v,sE,C.backgroundRepeat),this.backgroundSize=At(v,nE,C.backgroundSize),this.borderTopColor=At(v,lE,C.borderTopColor),this.borderRightColor=At(v,hE,C.borderRightColor),this.borderBottomColor=At(v,uE,C.borderBottomColor),this.borderLeftColor=At(v,cE,C.borderLeftColor),this.borderTopLeftRadius=At(v,dE,C.borderTopLeftRadius),this.borderTopRightRadius=At(v,AE,C.borderTopRightRadius),this.borderBottomRightRadius=At(v,pE,C.borderBottomRightRadius),this.borderBottomLeftRadius=At(v,fE,C.borderBottomLeftRadius),this.borderTopStyle=At(v,mE,C.borderTopStyle),this.borderRightStyle=At(v,gE,C.borderRightStyle),this.borderBottomStyle=At(v,yE,C.borderBottomStyle),this.borderLeftStyle=At(v,vE,C.borderLeftStyle),this.borderTopWidth=At(v,bE,C.borderTopWidth),this.borderRightWidth=At(v,xE,C.borderRightWidth),this.borderBottomWidth=At(v,_E,C.borderBottomWidth),this.borderLeftWidth=At(v,CE,C.borderLeftWidth),this.boxShadow=At(v,mM,C.boxShadow),this.color=At(v,wE,C.color),this.direction=At(v,BE,C.direction),this.display=At(v,SE,C.display),this.float=At(v,TE,C.cssFloat),this.fontFamily=At(v,nM,C.fontFamily),this.fontSize=At(v,oM,C.fontSize),this.fontStyle=At(v,uM,C.fontStyle),this.fontVariant=At(v,hM,C.fontVariant),this.fontWeight=At(v,lM,C.fontWeight),this.letterSpacing=At(v,PE,C.letterSpacing),this.lineBreak=At(v,DE,C.lineBreak),this.lineHeight=At(v,LE,C.lineHeight),this.listStyleImage=At(v,IE,C.listStyleImage),this.listStylePosition=At(v,kE,C.listStylePosition),this.listStyleType=At(v,db,C.listStyleType),this.marginTop=At(v,$E,C.marginTop),this.marginRight=At(v,OE,C.marginRight),this.marginBottom=At(v,EE,C.marginBottom),this.marginLeft=At(v,ME,C.marginLeft),this.opacity=At(v,rM,C.opacity);var O=At(v,RE,C.overflow);this.overflowX=O[0],this.overflowY=O[O.length>1?1:0],this.overflowWrap=At(v,UE,C.overflowWrap),this.paddingTop=At(v,VE,C.paddingTop),this.paddingRight=At(v,NE,C.paddingRight),this.paddingBottom=At(v,HE,C.paddingBottom),this.paddingLeft=At(v,QE,C.paddingLeft),this.paintOrder=At(v,gM,C.paintOrder),this.position=At(v,WE,C.position),this.textAlign=At(v,jE,C.textAlign),this.textDecorationColor=At(v,sM,(_=C.textDecorationColor)!==null&&_!==void 0?_:C.color),this.textDecorationLine=At(v,aM,(P=C.textDecorationLine)!==null&&P!==void 0?P:C.textDecoration),this.textShadow=At(v,XE,C.textShadow),this.textTransform=At(v,zE,C.textTransform),this.transform=At(v,GE,C.transform),this.transformOrigin=At(v,JE,C.transformOrigin),this.visibility=At(v,eM,C.visibility),this.webkitTextStrokeColor=At(v,yM,C.webkitTextStrokeColor),this.webkitTextStrokeWidth=At(v,vM,C.webkitTextStrokeWidth),this.wordBreak=At(v,tM,C.wordBreak),this.zIndex=At(v,iM,C.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return ph(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return vs(this.display,4)||vs(this.display,33554432)||vs(this.display,268435456)||vs(this.display,536870912)||vs(this.display,67108864)||vs(this.display,134217728)},b})(),xM=(function(){function b(v,C){this.content=At(v,cM,C.content),this.quotes=At(v,fM,C.quotes)}return b})(),JB=(function(){function b(v,C){this.counterIncrement=At(v,dM,C.counterIncrement),this.counterReset=At(v,AM,C.counterReset)}return b})(),At=function(b,v,C){var _=new BB,P=C!==null&&typeof C<"u"?C.toString():v.initialValue;_.write(P);var O=new SB(_.read());switch(v.type){case 2:var Q=O.parseComponentValue();return v.parse(b,lr(Q)?Q.value:v.initialValue);case 0:return v.parse(b,O.parseComponentValue());case 1:return v.parse(b,O.parseComponentValues());case 4:return O.parseComponentValue();case 3:switch(v.format){case"angle":return hm.parse(b,O.parseComponentValue());case"color":return Ah.parse(b,O.parseComponentValue());case"image":return cb.parse(b,O.parseComponentValue());case"length":var W=O.parseComponentValue();return ch(W)?W:Qs;case"length-percentage":var j=O.parseComponentValue();return cs(j)?j:Qs;case"time":return ZB.parse(b,O.parseComponentValue())}break}},_M="data-html2canvas-debug",CM=function(b){var v=b.getAttribute(_M);switch(v){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ab=function(b,v){var C=CM(b);return C===1||v===C},$o=(function(){function b(v,C){if(this.context=v,this.textNodes=[],this.elements=[],this.flags=0,Ab(C,3))debugger;this.styles=new bM(v,window.getComputedStyle(C,null)),Fb(C)&&(this.styles.animationDuration.some(function(_){return _>0})&&(C.style.animationDuration="0s"),this.styles.transform!==null&&(C.style.transform="none")),this.bounds=o(this.context,C),Ab(C,4)&&(this.flags|=16)}return b})(),wM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",eS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VA=typeof Uint8Array>"u"?[]:new Uint8Array(256),bm=0;bm<eS.length;bm++)VA[eS.charCodeAt(bm)]=bm;for(var BM=function(b){var v=b.length*.75,C=b.length,_,P=0,O,Q,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var se=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(se)?se:new Uint8Array(se);for(_=0;_<C;_+=4)O=VA[b.charCodeAt(_)],Q=VA[b.charCodeAt(_+1)],W=VA[b.charCodeAt(_+2)],j=VA[b.charCodeAt(_+3)],ne[P++]=O<<2|Q>>4,ne[P++]=(Q&15)<<4|W>>2,ne[P++]=(W&3)<<6|j&63;return se},SM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},FM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},wu=5,pb=11,fb=2,TM=pb-wu,tS=65536>>wu,PM=1<<wu,mb=PM-1,DM=1024>>wu,LM=tS+DM,IM=LM,kM=32,$M=IM+kM,OM=65536>>pb,EM=1<<TM,MM=EM-1,iS=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},RM=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},UM=function(b,v){var C=BM(b),_=Array.isArray(C)?FM(C):new Uint32Array(C),P=Array.isArray(C)?SM(C):new Uint16Array(C),O=24,Q=iS(P,O/2,_[4]/2),W=_[5]===2?iS(P,(O+_[4])/2):RM(_,Math.ceil((O+_[4])/4));return new VM(_[0],_[1],_[2],_[3],Q,W)},VM=(function(){function b(v,C,_,P,O,Q){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=P,this.index=O,this.data=Q}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>wu],C=(C<<fb)+(v&mb),this.data[C];if(v<=65535)return C=this.index[tS+(v-55296>>wu)],C=(C<<fb)+(v&mb),this.data[C];if(v<this.highStart)return C=$M-OM+(v>>pb),C=this.index[C],C+=v>>wu&MM,C=this.index[C],C=(C<<fb)+(v&mb),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),rS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NM=typeof Uint8Array>"u"?[]:new Uint8Array(256),xm=0;xm<rS.length;xm++)NM[rS.charCodeAt(xm)]=xm;var HM=1,gb=2,yb=3,sS=4,aS=5,QM=7,nS=8,vb=9,bb=10,oS=11,lS=12,hS=13,uS=14,xb=15,jM=function(b){for(var v=[],C=0,_=b.length;C<_;){var P=b.charCodeAt(C++);if(P>=55296&&P<=56319&&C<_){var O=b.charCodeAt(C++);(O&64512)===56320?v.push(((P&1023)<<10)+(O&1023)+65536):(v.push(P),C--)}else v.push(P)}return v},WM=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],P=-1,O="";++P<C;){var Q=b[P];Q<=65535?_.push(Q):(Q-=65536,_.push((Q>>10)+55296,Q%1024+56320)),(P+1===C||_.length>16384)&&(O+=String.fromCharCode.apply(String,_),_.length=0)}return O},XM=UM(wM),Sn="\xD7",_b="\xF7",zM=function(b){return XM.get(b)},GM=function(b,v,C){var _=C-2,P=v[_],O=v[C-1],Q=v[C];if(O===gb&&Q===yb)return Sn;if(O===gb||O===yb||O===sS||Q===gb||Q===yb||Q===sS)return _b;if(O===nS&&[nS,vb,oS,lS].indexOf(Q)!==-1||(O===oS||O===vb)&&(Q===vb||Q===bb)||(O===lS||O===bb)&&Q===bb||Q===hS||Q===aS||Q===QM||O===HM)return Sn;if(O===hS&&Q===uS){for(;P===aS;)P=v[--_];if(P===uS)return Sn}if(O===xb&&Q===xb){for(var W=0;P===xb;)W++,P=v[--_];if(W%2===0)return Sn}return _b},YM=function(b){var v=jM(b),C=v.length,_=0,P=0,O=v.map(zM);return{next:function(){if(_>=C)return{done:!0,value:null};for(var Q=Sn;_<C&&(Q=GM(v,O,++_))===Sn;);if(Q!==Sn||_===C){var W=WM.apply(null,v.slice(P,_));return P=_,{value:W,done:!1}}return{done:!0,value:null}}}},KM=function(b){for(var v=YM(b),C=[],_;!(_=v.next()).done;)_.value&&C.push(_.value.slice());return C},ZM=function(b){var v=123;if(b.createRange){var C=b.createRange();if(C.getBoundingClientRect){var _=b.createElement("boundtest");_.style.height=v+"px",_.style.display="block",b.body.appendChild(_),C.selectNode(_);var P=C.getBoundingClientRect(),O=Math.round(P.height);if(b.body.removeChild(_),O===v)return!0}}return!1},qM=function(b){var v=b.createElement("boundtest");v.style.width="50px",v.style.display="block",v.style.fontSize="12px",v.style.letterSpacing="0px",v.style.wordSpacing="0px",b.body.appendChild(v);var C=b.createRange();v.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var _=v.firstChild,P=h(_.data).map(function(j){return c(j)}),O=0,Q={},W=P.every(function(j,se){C.setStart(_,O),C.setEnd(_,O+j.length);var ne=C.getBoundingClientRect();O+=j.length;var Ae=ne.x>Q.x||ne.y>Q.y;return Q=ne,se===0?!0:Ae});return b.body.removeChild(v),W},JM=function(){return typeof new Image().crossOrigin<"u"},eR=function(){return typeof new XMLHttpRequest().responseType=="string"},tR=function(b){var v=new Image,C=b.createElement("canvas"),_=C.getContext("2d");if(!_)return!1;v.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{_.drawImage(v,0,0),C.toDataURL()}catch{return!1}return!0},cS=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},iR=function(b){var v=b.createElement("canvas"),C=100;v.width=C,v.height=C;var _=v.getContext("2d");if(!_)return Promise.reject(!1);_.fillStyle="rgb(0, 255, 0)",_.fillRect(0,0,C,C);var P=new Image,O=v.toDataURL();P.src=O;var Q=Cb(C,C,0,0,P);return _.fillStyle="red",_.fillRect(0,0,C,C),dS(Q).then(function(W){_.drawImage(W,0,0);var j=_.getImageData(0,0,C,C).data;_.fillStyle="red",_.fillRect(0,0,C,C);var se=b.createElement("div");return se.style.backgroundImage="url("+O+")",se.style.height=C+"px",cS(j)?dS(Cb(C,C,0,0,se)):Promise.reject(!1)}).then(function(W){return _.drawImage(W,0,0),cS(_.getImageData(0,0,C,C).data)}).catch(function(){return!1})},Cb=function(b,v,C,_,P){var O="http://www.w3.org/2000/svg",Q=document.createElementNS(O,"svg"),W=document.createElementNS(O,"foreignObject");return Q.setAttributeNS(null,"width",b.toString()),Q.setAttributeNS(null,"height",v.toString()),W.setAttributeNS(null,"width","100%"),W.setAttributeNS(null,"height","100%"),W.setAttributeNS(null,"x",C.toString()),W.setAttributeNS(null,"y",_.toString()),W.setAttributeNS(null,"externalResourcesRequired","true"),Q.appendChild(W),W.appendChild(P),Q},dS=function(b){return new Promise(function(v,C){var _=new Image;_.onload=function(){return v(_)},_.onerror=C,_.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},js={get SUPPORT_RANGE_BOUNDS(){var b=ZM(document);return Object.defineProperty(js,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=js.SUPPORT_RANGE_BOUNDS&&qM(document);return Object.defineProperty(js,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=tR(document);return Object.defineProperty(js,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?iR(document):Promise.resolve(!1);return Object.defineProperty(js,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=JM();return Object.defineProperty(js,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=eR();return Object.defineProperty(js,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(js,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(js,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},NA=(function(){function b(v,C){this.text=v,this.bounds=C}return b})(),rR=function(b,v,C,_){var P=nR(v,C),O=[],Q=0;return P.forEach(function(W){if(C.textDecorationLine.length||W.trim().length>0)if(js.SUPPORT_RANGE_BOUNDS){var j=AS(_,Q,W.length).getClientRects();if(j.length>1){var se=wb(W),ne=0;se.forEach(function(Ce){O.push(new NA(Ce,n.fromDOMRectList(b,AS(_,ne+Q,Ce.length).getClientRects()))),ne+=Ce.length})}else O.push(new NA(W,n.fromDOMRectList(b,j)))}else{var Ae=_.splitText(W.length);O.push(new NA(W,sR(b,_))),_=Ae}else js.SUPPORT_RANGE_BOUNDS||(_=_.splitText(W.length));Q+=W.length}),O},sR=function(b,v){var C=v.ownerDocument;if(C){var _=C.createElement("html2canvaswrapper");_.appendChild(v.cloneNode(!0));var P=v.parentNode;if(P){P.replaceChild(_,v);var O=o(b,_);return _.firstChild&&P.replaceChild(_.firstChild,_),O}}return n.EMPTY},AS=function(b,v,C){var _=b.ownerDocument;if(!_)throw new Error("Node has no owner document");var P=_.createRange();return P.setStart(b,v),P.setEnd(b,v+C),P},wb=function(b){if(js.SUPPORT_NATIVE_TEXT_SEGMENTATION){var v=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(v.segment(b)).map(function(C){return C.segment})}return KM(b)},aR=function(b,v){if(js.SUPPORT_NATIVE_TEXT_SEGMENTATION){var C=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(C.segment(b)).map(function(_){return _.segment})}return lR(b,v)},nR=function(b,v){return v.letterSpacing!==0?wb(b):aR(b,v)},oR=[32,160,4961,65792,65793,4153,4241],lR=function(b,v){for(var C=O$(b,{lineBreak:v.lineBreak,wordBreak:v.overflowWrap==="break-word"?"break-word":v.wordBreak}),_=[],P,O=function(){if(P.value){var Q=P.value.slice(),W=h(Q),j="";W.forEach(function(se){oR.indexOf(se)===-1?j+=c(se):(j.length&&_.push(j),_.push(c(se)),j="")}),j.length&&_.push(j)}};!(P=C.next()).done;)O();return _},hR=(function(){function b(v,C,_){this.text=uR(C.data,_.textTransform),this.textBounds=rR(v,this.text,_,C)}return b})(),uR=function(b,v){switch(v){case 1:return b.toLowerCase();case 3:return b.replace(cR,dR);case 2:return b.toUpperCase();default:return b}},cR=/(^|\s|:|-|\(|\))([a-z])/g,dR=function(b,v,C){return b.length>0?v+C.toUpperCase():b},pS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.src=_.currentSrc||_.src,P.intrinsicWidth=_.naturalWidth,P.intrinsicHeight=_.naturalHeight,P.context.cache.addImage(P.src),P}return v})($o),fS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.canvas=_,P.intrinsicWidth=_.width,P.intrinsicHeight=_.height,P}return v})($o),mS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this,O=new XMLSerializer,Q=o(C,_);return _.setAttribute("width",Q.width+"px"),_.setAttribute("height",Q.height+"px"),P.svg="data:image/svg+xml,"+encodeURIComponent(O.serializeToString(_)),P.intrinsicWidth=_.width.baseVal.value,P.intrinsicHeight=_.height.baseVal.value,P.context.cache.addImage(P.svg),P}return v})($o),gS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.value=_.value,P}return v})($o),Bb=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.start=_.start,P.reversed=typeof _.reversed=="boolean"&&_.reversed===!0,P}return v})($o),AR=[{type:15,flags:0,unit:"px",number:3}],pR=[{type:16,flags:0,number:50}],fR=function(b){return b.width>b.height?new n(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new n(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},mR=function(b){var v=b.type===gR?new Array(b.value.length+1).join("\u2022"):b.value;return v.length===0?b.placeholder||"":v},_m="checkbox",Cm="radio",gR="password",yS=707406591,Sb=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;switch(P.type=_.type.toLowerCase(),P.checked=_.checked,P.value=mR(_),(P.type===_m||P.type===Cm)&&(P.styles.backgroundColor=3739148031,P.styles.borderTopColor=P.styles.borderRightColor=P.styles.borderBottomColor=P.styles.borderLeftColor=2779096575,P.styles.borderTopWidth=P.styles.borderRightWidth=P.styles.borderBottomWidth=P.styles.borderLeftWidth=1,P.styles.borderTopStyle=P.styles.borderRightStyle=P.styles.borderBottomStyle=P.styles.borderLeftStyle=1,P.styles.backgroundClip=[0],P.styles.backgroundOrigin=[0],P.bounds=fR(P.bounds)),P.type){case _m:P.styles.borderTopRightRadius=P.styles.borderTopLeftRadius=P.styles.borderBottomRightRadius=P.styles.borderBottomLeftRadius=AR;break;case Cm:P.styles.borderTopRightRadius=P.styles.borderTopLeftRadius=P.styles.borderBottomRightRadius=P.styles.borderBottomLeftRadius=pR;break}return P}return v})($o),vS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this,O=_.options[_.selectedIndex||0];return P.value=O&&O.text||"",P}return v})($o),bS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;return P.value=_.value,P}return v})($o),xS=(function(b){t(v,b);function v(C,_){var P=b.call(this,C,_)||this;P.src=_.src,P.width=parseInt(_.width,10)||0,P.height=parseInt(_.height,10)||0,P.backgroundColor=P.styles.backgroundColor;try{if(_.contentWindow&&_.contentWindow.document&&_.contentWindow.document.documentElement){P.tree=CS(C,_.contentWindow.document.documentElement);var O=_.contentWindow.document.documentElement?RA(C,getComputedStyle(_.contentWindow.document.documentElement).backgroundColor):Fl.TRANSPARENT,Q=_.contentWindow.document.body?RA(C,getComputedStyle(_.contentWindow.document.body).backgroundColor):Fl.TRANSPARENT;P.backgroundColor=ph(O)?ph(Q)?P.styles.backgroundColor:Q:O}}catch{}return P}return v})($o),yR=["OL","UL","MENU"],wm=function(b,v,C,_){for(var P=v.firstChild,O=void 0;P;P=O)if(O=P.nextSibling,wS(P)&&P.data.trim().length>0)C.textNodes.push(new hR(b,P,C.styles));else if(Jc(P))if(DS(P)&&P.assignedNodes)P.assignedNodes().forEach(function(W){return wm(b,W,C,_)});else{var Q=_S(b,P);Q.styles.isVisible()&&(vR(P,Q,_)?Q.flags|=4:bR(Q.styles)&&(Q.flags|=2),yR.indexOf(P.tagName)!==-1&&(Q.flags|=8),C.elements.push(Q),P.slot,P.shadowRoot?wm(b,P.shadowRoot,Q,_):!Sm(P)&&!BS(P)&&!Fm(P)&&wm(b,P,Q,_))}},_S=function(b,v){return Pb(v)?new pS(b,v):SS(v)?new fS(b,v):BS(v)?new mS(b,v):xR(v)?new gS(b,v):_R(v)?new Bb(b,v):CR(v)?new Sb(b,v):Fm(v)?new vS(b,v):Sm(v)?new bS(b,v):TS(v)?new xS(b,v):new $o(b,v)},CS=function(b,v){var C=_S(b,v);return C.flags|=4,wm(b,v,C,C),C},vR=function(b,v,C){return v.styles.isPositionedWithZIndex()||v.styles.opacity<1||v.styles.isTransformed()||Tb(b)&&C.styles.isTransparent()},bR=function(b){return b.isPositioned()||b.isFloating()},wS=function(b){return b.nodeType===Node.TEXT_NODE},Jc=function(b){return b.nodeType===Node.ELEMENT_NODE},Fb=function(b){return Jc(b)&&typeof b.style<"u"&&!Bm(b)},Bm=function(b){return typeof b.className=="object"},xR=function(b){return b.tagName==="LI"},_R=function(b){return b.tagName==="OL"},CR=function(b){return b.tagName==="INPUT"},wR=function(b){return b.tagName==="HTML"},BS=function(b){return b.tagName==="svg"},Tb=function(b){return b.tagName==="BODY"},SS=function(b){return b.tagName==="CANVAS"},FS=function(b){return b.tagName==="VIDEO"},Pb=function(b){return b.tagName==="IMG"},TS=function(b){return b.tagName==="IFRAME"},PS=function(b){return b.tagName==="STYLE"},BR=function(b){return b.tagName==="SCRIPT"},Sm=function(b){return b.tagName==="TEXTAREA"},Fm=function(b){return b.tagName==="SELECT"},DS=function(b){return b.tagName==="SLOT"},LS=function(b){return b.tagName.indexOf("-")>0},SR=(function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(v){var C=this.counters[v];return C&&C.length?C[C.length-1]:1},b.prototype.getCounterValues=function(v){var C=this.counters[v];return C||[]},b.prototype.pop=function(v){var C=this;v.forEach(function(_){return C.counters[_].pop()})},b.prototype.parse=function(v){var C=this,_=v.counterIncrement,P=v.counterReset,O=!0;_!==null&&_.forEach(function(W){var j=C.counters[W.counter];j&&W.increment!==0&&(O=!1,j.length||j.push(1),j[Math.max(0,j.length-1)]+=W.increment)});var Q=[];return O&&P.forEach(function(W){var j=C.counters[W.counter];Q.push(W.counter),j||(j=C.counters[W.counter]=[]),j.push(W.reset)}),Q},b})(),IS={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},kS={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},FR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},TR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},ed=function(b,v,C,_,P,O){return b<v||b>C?QA(b,P,O.length>0):_.integers.reduce(function(Q,W,j){for(;b>=W;)b-=W,Q+=_.values[j];return Q},"")+O},$S=function(b,v,C,_){var P="";do C||b--,P=_(b)+P,b/=v;while(b*v>=v);return P},Jr=function(b,v,C,_,P){var O=C-v+1;return(b<0?"-":"")+($S(Math.abs(b),O,_,function(Q){return c(Math.floor(Q%O)+v)})+P)},Bu=function(b,v,C){C===void 0&&(C=". ");var _=v.length;return $S(Math.abs(b),_,!1,function(P){return v[Math.floor(P%_)]})+C},td=1,mh=2,gh=4,HA=8,Tl=function(b,v,C,_,P,O){if(b<-9999||b>9999)return QA(b,4,P.length>0);var Q=Math.abs(b),W=P;if(Q===0)return v[0]+W;for(var j=0;Q>0&&j<=4;j++){var se=Q%10;se===0&&vs(O,td)&&W!==""?W=v[se]+W:se>1||se===1&&j===0||se===1&&j===1&&vs(O,mh)||se===1&&j===1&&vs(O,gh)&&b>100||se===1&&j>1&&vs(O,HA)?W=v[se]+(j>0?C[j-1]:"")+W:se===1&&j>0&&(W=C[j-1]+W),Q=Math.floor(Q/10)}return(b<0?_:"")+W},OS="\u5341\u767E\u5343\u842C",ES="\u62FE\u4F70\u4EDF\u842C",MS="\u30DE\u30A4\u30CA\u30B9",Db="\uB9C8\uC774\uB108\uC2A4",QA=function(b,v,C){var _=C?". ":"",P=C?"\u3001":"",O=C?", ":"",Q=C?" ":"";switch(v){case 0:return"\u2022"+Q;case 1:return"\u25E6"+Q;case 2:return"\u25FE"+Q;case 5:var W=Jr(b,48,57,!0,_);return W.length<4?"0"+W:W;case 4:return Bu(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",P);case 6:return ed(b,1,3999,IS,3,_).toLowerCase();case 7:return ed(b,1,3999,IS,3,_);case 8:return Jr(b,945,969,!1,_);case 9:return Jr(b,97,122,!1,_);case 10:return Jr(b,65,90,!1,_);case 11:return Jr(b,1632,1641,!0,_);case 12:case 49:return ed(b,1,9999,kS,3,_);case 35:return ed(b,1,9999,kS,3,_).toLowerCase();case 13:return Jr(b,2534,2543,!0,_);case 14:case 30:return Jr(b,6112,6121,!0,_);case 15:return Bu(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",P);case 16:return Bu(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",P);case 17:case 48:return Tl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",OS,"\u8CA0",P,mh|gh|HA);case 47:return Tl(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ES,"\u8CA0",P,td|mh|gh|HA);case 42:return Tl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",OS,"\u8D1F",P,mh|gh|HA);case 41:return Tl(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ES,"\u8D1F",P,td|mh|gh|HA);case 26:return Tl(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",MS,P,0);case 25:return Tl(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",MS,P,td|mh|gh);case 31:return Tl(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Db,O,td|mh|gh);case 33:return Tl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Db,O,0);case 32:return Tl(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Db,O,td|mh|gh);case 18:return Jr(b,2406,2415,!0,_);case 20:return ed(b,1,19999,TR,3,_);case 21:return Jr(b,2790,2799,!0,_);case 22:return Jr(b,2662,2671,!0,_);case 22:return ed(b,1,10999,FR,3,_);case 23:return Bu(b,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Bu(b,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Jr(b,3302,3311,!0,_);case 28:return Bu(b,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",P);case 29:return Bu(b,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",P);case 34:return Jr(b,3792,3801,!0,_);case 37:return Jr(b,6160,6169,!0,_);case 38:return Jr(b,4160,4169,!0,_);case 39:return Jr(b,2918,2927,!0,_);case 40:return Jr(b,1776,1785,!0,_);case 43:return Jr(b,3046,3055,!0,_);case 44:return Jr(b,3174,3183,!0,_);case 45:return Jr(b,3664,3673,!0,_);case 46:return Jr(b,3872,3881,!0,_);default:return Jr(b,48,57,!0,_)}},RS="data-html2canvas-ignore",US=(function(){function b(v,C,_){if(this.context=v,this.options=_,this.scrolledElements=[],this.referenceElement=C,this.counters=new SR,this.quoteDepth=0,!C.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(C.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(v,C){var _=this,P=PR(v,C);if(!P.contentWindow)return Promise.reject("Unable to find iframe window");var O=v.defaultView.pageXOffset,Q=v.defaultView.pageYOffset,W=P.contentWindow,j=W.document,se=IR(P).then(function(){return i(_,void 0,void 0,function(){var ne,Ae;return r(this,function(Ce){switch(Ce.label){case 0:return this.scrolledElements.forEach(ER),W&&(W.scrollTo(C.left,C.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(W.scrollY!==C.top||W.scrollX!==C.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(W.scrollX-C.left,W.scrollY-C.top,0,0))),ne=this.options.onclone,Ae=this.clonedReferenceElement,typeof Ae>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:j.fonts&&j.fonts.ready?[4,j.fonts.ready]:[3,2];case 1:Ce.sent(),Ce.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,LR(j)]:[3,4];case 3:Ce.sent(),Ce.label=4;case 4:return typeof ne=="function"?[2,Promise.resolve().then(function(){return ne(j,Ae)}).then(function(){return P})]:[2,P]}})})});return j.open(),j.write($R(document.doctype)+"<html></html>"),OR(this.referenceElement.ownerDocument,O,Q),j.replaceChild(j.adoptNode(this.documentElement),j.documentElement),j.close(),se},b.prototype.createElementClone=function(v){if(Ab(v,2))debugger;if(SS(v))return this.createCanvasClone(v);if(FS(v))return this.createVideoClone(v);if(PS(v))return this.createStyleClone(v);var C=v.cloneNode(!1);return Pb(C)&&(Pb(v)&&v.currentSrc&&v.currentSrc!==v.src&&(C.src=v.currentSrc,C.srcset=""),C.loading==="lazy"&&(C.loading="eager")),LS(C)?this.createCustomElementClone(C):C},b.prototype.createCustomElementClone=function(v){var C=document.createElement("html2canvascustomelement");return Lb(v.style,C),C},b.prototype.createStyleClone=function(v){try{var C=v.sheet;if(C&&C.cssRules){var _=[].slice.call(C.cssRules,0).reduce(function(O,Q){return Q&&typeof Q.cssText=="string"?O+Q.cssText:O},""),P=v.cloneNode(!1);return P.textContent=_,P}}catch(O){if(this.context.logger.error("Unable to access cssRules property",O),O.name!=="SecurityError")throw O}return v.cloneNode(!1)},b.prototype.createCanvasClone=function(v){var C;if(this.options.inlineImages&&v.ownerDocument){var _=v.ownerDocument.createElement("img");try{return _.src=v.toDataURL(),_}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",v)}}var P=v.cloneNode(!1);try{P.width=v.width,P.height=v.height;var O=v.getContext("2d"),Q=P.getContext("2d");if(Q)if(!this.options.allowTaint&&O)Q.putImageData(O.getImageData(0,0,v.width,v.height),0,0);else{var W=(C=v.getContext("webgl2"))!==null&&C!==void 0?C:v.getContext("webgl");if(W){var j=W.getContextAttributes();j?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",v)}Q.drawImage(v,0,0)}return P}catch{this.context.logger.info("Unable to clone canvas as it is tainted",v)}return P},b.prototype.createVideoClone=function(v){var C=v.ownerDocument.createElement("canvas");C.width=v.offsetWidth,C.height=v.offsetHeight;var _=C.getContext("2d");try{return _&&(_.drawImage(v,0,0,C.width,C.height),this.options.allowTaint||_.getImageData(0,0,C.width,C.height)),C}catch{this.context.logger.info("Unable to clone video as it is tainted",v)}var P=v.ownerDocument.createElement("canvas");return P.width=v.offsetWidth,P.height=v.offsetHeight,P},b.prototype.appendChildNode=function(v,C,_){(!Jc(C)||!BR(C)&&!C.hasAttribute(RS)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(C)))&&(!this.options.copyStyles||!Jc(C)||!PS(C))&&v.appendChild(this.cloneNode(C,_))},b.prototype.cloneChildNodes=function(v,C,_){for(var P=this,O=v.shadowRoot?v.shadowRoot.firstChild:v.firstChild;O;O=O.nextSibling)if(Jc(O)&&DS(O)&&typeof O.assignedNodes=="function"){var Q=O.assignedNodes();Q.length&&Q.forEach(function(W){return P.appendChildNode(C,W,_)})}else this.appendChildNode(C,O,_)},b.prototype.cloneNode=function(v,C){if(wS(v))return document.createTextNode(v.data);if(!v.ownerDocument)return v.cloneNode(!1);var _=v.ownerDocument.defaultView;if(_&&Jc(v)&&(Fb(v)||Bm(v))){var P=this.createElementClone(v);P.style.transitionProperty="none";var O=_.getComputedStyle(v),Q=_.getComputedStyle(v,":before"),W=_.getComputedStyle(v,":after");this.referenceElement===v&&Fb(P)&&(this.clonedReferenceElement=P),Tb(P)&&UR(P);var j=this.counters.parse(new JB(this.context,O)),se=this.resolvePseudoContent(v,P,Q,jA.BEFORE);LS(v)&&(C=!0),FS(v)||this.cloneChildNodes(v,P,C),se&&P.insertBefore(se,P.firstChild);var ne=this.resolvePseudoContent(v,P,W,jA.AFTER);return ne&&P.appendChild(ne),this.counters.pop(j),(O&&(this.options.copyStyles||Bm(v))&&!TS(v)||C)&&Lb(O,P),(v.scrollTop!==0||v.scrollLeft!==0)&&this.scrolledElements.push([P,v.scrollLeft,v.scrollTop]),(Sm(v)||Fm(v))&&(Sm(P)||Fm(P))&&(P.value=v.value),P}return v.cloneNode(!1)},b.prototype.resolvePseudoContent=function(v,C,_,P){var O=this;if(_){var Q=_.content,W=C.ownerDocument;if(!(!W||!Q||Q==="none"||Q==="-moz-alt-content"||_.display==="none")){this.counters.parse(new JB(this.context,_));var j=new xM(this.context,_),se=W.createElement("html2canvaspseudoelement");Lb(_,se),j.content.forEach(function(Ae){if(Ae.type===0)se.appendChild(W.createTextNode(Ae.value));else if(Ae.type===22){var Ce=W.createElement("img");Ce.src=Ae.value,Ce.style.opacity="1",se.appendChild(Ce)}else if(Ae.type===18){if(Ae.name==="attr"){var lt=Ae.values.filter(lr);lt.length&&se.appendChild(W.createTextNode(v.getAttribute(lt[0].value)||""))}else if(Ae.name==="counter"){var Ue=Ae.values.filter(Zc),Ke=Ue[0],ri=Ue[1];if(Ke&&lr(Ke)){var bt=O.counters.getCounterValue(Ke.value),gt=ri&&lr(ri)?db.parse(O.context,ri.value):3;se.appendChild(W.createTextNode(QA(bt,gt,!1)))}}else if(Ae.name==="counters"){var zi=Ae.values.filter(Zc),Ke=zi[0],oi=zi[1],ri=zi[2];if(Ke&&lr(Ke)){var Ut=O.counters.getCounterValues(Ke.value),rt=ri&&lr(ri)?db.parse(O.context,ri.value):3,ki=oi&&oi.type===0?oi.value:"",$i=Ut.map(function(Oa){return QA(Oa,rt,!1)}).join(ki);se.appendChild(W.createTextNode($i))}}}else if(Ae.type===20)switch(Ae.value){case"open-quote":se.appendChild(W.createTextNode(qB(j.quotes,O.quoteDepth++,!0)));break;case"close-quote":se.appendChild(W.createTextNode(qB(j.quotes,--O.quoteDepth,!1)));break;default:se.appendChild(W.createTextNode(Ae.value))}}),se.className=Ib+" "+kb;var ne=P===jA.BEFORE?" "+Ib:" "+kb;return Bm(C)?C.className.baseValue+=ne:C.className+=ne,se}}},b.destroy=function(v){return v.parentNode?(v.parentNode.removeChild(v),!0):!1},b})(),jA;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(jA||(jA={}));var PR=function(b,v){var C=b.createElement("iframe");return C.className="html2canvas-container",C.style.visibility="hidden",C.style.position="fixed",C.style.left="-10000px",C.style.top="0px",C.style.border="0",C.width=v.width.toString(),C.height=v.height.toString(),C.scrolling="no",C.setAttribute(RS,"true"),b.body.appendChild(C),C},DR=function(b){return new Promise(function(v){if(b.complete){v();return}if(!b.src){v();return}b.onload=v,b.onerror=v})},LR=function(b){return Promise.all([].slice.call(b.images,0).map(DR))},IR=function(b){return new Promise(function(v,C){var _=b.contentWindow;if(!_)return C("No window assigned for iframe");var P=_.document;_.onload=b.onload=function(){_.onload=b.onload=null;var O=setInterval(function(){P.body.childNodes.length>0&&P.readyState==="complete"&&(clearInterval(O),v(b))},50)}})},kR=["all","d","content"],Lb=function(b,v){for(var C=b.length-1;C>=0;C--){var _=b.item(C);kR.indexOf(_)===-1&&v.style.setProperty(_,b.getPropertyValue(_))}return v},$R=function(b){var v="";return b&&(v+="<!DOCTYPE ",b.name&&(v+=b.name),b.internalSubset&&(v+=b.internalSubset),b.publicId&&(v+='"'+b.publicId+'"'),b.systemId&&(v+='"'+b.systemId+'"'),v+=">"),v},OR=function(b,v,C){b&&b.defaultView&&(v!==b.defaultView.pageXOffset||C!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(v,C)},ER=function(b){var v=b[0],C=b[1],_=b[2];v.scrollLeft=C,v.scrollTop=_},MR=":before",RR=":after",Ib="___html2canvas___pseudoelement_before",kb="___html2canvas___pseudoelement_after",VS=`{
3
3
  content: "" !important;
4
4
  display: none !important;
5
5
  }`,UR=function(b){VR(b,"."+Ib+MR+VS+`
@@ -43,7 +43,7 @@ import{a as to}from"./QVD6LHQ2.js";import o from"./FTGZEUG5.js";import n from"./
43
43
  </table>`,i})}getHTMLRow(t,e,i,r=!1,a=!1){let n=" <tr>";e.rowClass&&(n=' <tr class="'+e.rowClass+'">'),i||(i=t);let o=this.get("dataFieldsOrder",[]),l=a?"th":"td",h=!0;return Yl(i,(c,u)=>{let d=this.convertEmptyValue(c,t[c],e),A=r?d:this.convertToSpecialFormat(c,d,e);A=""+A,A=A.replace(/[\u00A0-\u9999<>\&]/gim,function(m){return"&#"+m.charCodeAt(0)+";"});let p=l;e.pivot&&h&&(p="th"),e.cellClass?n+=`
44
44
  <`+p+' class="'+e.cellClass+'">'+A+"</"+p+">":n+=`
45
45
  <`+p+">"+A+"</"+p+">",h=!1},(c,u)=>{let d=o.indexOf(c),A=o.indexOf(u);return d>A?1:d<A?-1:0}),n+=`
46
- </tr>`,n}exportXLSX(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("xlsx")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getXLSX(t))})}getXLSX(t){return Xe(this,void 0,void 0,function*(){let e=this._getFormatOptions("xlsx",t),i=yield this.getXLSXLib(),r={bookType:"xlsx",bookSST:!1,type:"base64"},a=this._normalizeExcelSheetName(this.get("title",this._t("Data"))),n={SheetNames:[a],Sheets:{}},o=[],l=this.getData("html",e),h=this.getDataFields(l);if(e.pivot){let c=this.get("dataFieldsOrder",[]);Yl(h,(u,d)=>{let A=[];e.addColumnNames&&A.push(d);for(let p=l.length,m=0;m<p;m++){let f=l[m][u];A.push(this.convertToSpecialFormat(u,f,e,!0))}o.push(this.getXLSXRow(A,e,void 0,!0))},(u,d)=>{let A=c.indexOf(u),p=c.indexOf(d);return A>p?1:A<p?-1:0})}else{e.addColumnNames&&o.push(this.getXLSXRow(h,e,void 0,!0));for(let c=l.length,u=0;u<c;u++)o.push(this.getXLSXRow(l[u],e,h))}return n.Sheets[a]=i.utils.aoa_to_sheet(o),this.events.dispatch("workbookready",{type:"workbookready",format:"xlsx",options:e,workbook:n,workbookOptions:r,xlsx:i,target:this}),i.write(n,r)})}_normalizeExcelSheetName(t){return t=t.replace(/([:\\\/?*\[\]]+)/g," "),t.length>30?t.substr(0,30)+"...":t}getXLSXRow(t,e,i,r=!1){let a=[];i||(i=t);let n=this.get("dataFieldsOrder",[]);return Yl(i,(o,l)=>{let h=this.convertEmptyValue(o,t[o],e),c=r?h:this.convertToSpecialFormat(o,h,e,!0);a.push(c)},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0}),a}_xlsx(){return Xe(this,void 0,void 0,function*(){return yield import("./KBDOBMB5.js")})}getXLSXLib(){return this._xlsx()}exportPDF(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(t,!0))})}exportPDFData(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(t,!1,!0))})}getPDF(t,e=!0,i=!1){return Xe(this,void 0,void 0,function*(){let r=this._getFormatOptions("pdf",t),a=this._getFormatOptions("pdfdata",t),n=r.pageOrientation||"portrait",o,l={width:0,height:0};if(e){let g=r.imageFormat||"png",y=this._getFormatOptions(g,r),x=yield this.getCanvas(y);l.width=x.clientWidth,l.height=x.clientHeight,o=x.toDataURL(this.getContentType(g),r.quality||1),this.disposeCanvas(x)}let h=yield this.getPdfmake(),c=[30,30,30,30],u={pageSize:r.pageSize||"A4",pageOrientation:n,pageMargins:r.pageMargins||c,defaultStyle:{font:r.font?r.font.name:void 0},content:[]},d=this.get("title"),A=0;if(d&&(u.content.push({text:d,fontSize:r.fontSize||14,bold:!0,margin:[0,0,0,15]}),A+=50),r.addURL&&(u.content.push({text:this._t("Saved from")+": "+document.location.href,fontSize:r.fontSize,margin:[0,0,0,15]}),A+=50),e&&o){let g=this.getPageSizeFit(u.pageSize,u.pageMargins,A,n);l.width>g[0]||l.height>g[1]?u.content.push({image:o,alignment:r.align||"left",fit:g}):u.content.push({image:o,alignment:r.align||"left"})}(i||r.includeData)&&this.hasData()&&u.content.push({table:yield this.getPDFData(a),fontSize:r.fontSize||14});let p=null,m=null;function f(g){let y={};y.normal=g.normal.path,m[g.normal.path]=g.normal.bytes,g.bold?(y.bold=g.bold.path,m[g.bold.path]=g.bold.bytes):y.bold=g.normal.path,g.italics?(y.italics=g.italics.path,m[g.italics.path]=g.italics.bytes):y.italics=g.normal.path,g.bolditalics?(y.bolditalics=g.bolditalics.path,m[g.bolditalics.path]=g.bolditalics.bytes):y.bolditalics=g.normal.path,p[g.name]=y}return r.font&&(p={},m={},f(r.font),r.extraFonts&&J(r.extraFonts,f)),this.events.dispatch("pdfdocready",{type:"pdfdocready",format:"pdf",options:r,doc:u,target:this}),new Promise((g,y)=>{h.createPdf(u,null,p,m).getBase64(x=>{g(x)})})})}getPDFData(t){return Xe(this,void 0,void 0,function*(){let e=this._getFormatOptions("pdfdata",t),i={body:[]},r=this.getData("html",e),a=this.getDataFields(r);if(e.pivot){let n=this.get("dataFieldsOrder",[]);Yl(a,(o,l)=>{let h=[];e.addColumnNames&&h.push(l);for(let c=r.length,u=0;u<c;u++){let d=r[u][o];h.push(this.convertToSpecialFormat(o,d,e,!0))}i.body.push(this.getPDFDataRow(h,e,void 0,!0))},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0})}else{e.addColumnNames&&(i.body.push(this.getPDFDataRow(a,e,void 0,!0)),i.headerRows=1);for(let n=r.length,o=0;o<n;o++)i.body.push(this.getPDFDataRow(r[o],e,a))}return i})}getPDFDataRow(t,e,i,r=!1){let a=[];i||(i=t);let n=this.get("dataFieldsOrder",[]);return Yl(i,(o,l)=>{let h=this.convertEmptyValue(o,t[o],e),c=r?h:this.convertToSpecialFormat(o,h,e);c=""+c,a.push(c)},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0}),a}getPdfmake(){return HC===void 0&&(HC=PN()),HC}getPageSizeFit(t,e,i=0,r="portrait"){let a=[0,0,0,0];te(e)?a=[e,e,e,e]:e.length==2?a=[e[0],e[1],e[0],e[1]]:e.length==4&&(a=e);let o={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]}[t];return r=="landscape"&&o.reverse(),o[0]-=a[0]+a[2],o[1]-=a[1]+a[3]+i,o}hasData(){let t=this.get("dataSource");return!!(By(t)&&t.length)}getData(t,e,i=!1){let r=this._getFormatOptions(t,e),a=this.get("dataSource",[]),n=a,o=this.get("dataFields");o&&By(a)&&(n=[],J(a,h=>{if(Vn(h)){let c={};Et(o,(u,d)=>{o[u]!=null&&(c[i?d:u]=this.convertToSpecialFormat(u,h[u],r))}),n.push(c)}}));let l={type:"dataprocessed",format:t,options:r,data:n,target:this};return this.events.dispatch("dataprocessed",l),l.data}getDataFields(t){let e=this.get("dataFields");return e||(e={},By(t)&&t.length&&J(t,i=>{Et(i,(r,a)=>{e[r]==null&&(e[r]=r)})})),e}convertEmptyValue(t,e,i){return e??i.emptyAs}convertToSpecialFormat(t,e,i,r){if(typeof e=="number")if(this.isDateField(t))e=new Date(e);else{if(this.isNumericField(t)&&this.get("numberFormat"))return this._root.numberFormatter.format(e,this.get("numberFormat"));if(this.isDurationField(t))return this._root.durationFormatter.format(e,this.get("durationFormat"),this.get("durationUnit"))}return e instanceof Date&&(i.useTimestamps?e=e.getTime():i.useLocale?r||(e=e.toLocaleString()):e=this._root.dateFormatter.format(e,this.get("dateFormat"))),e}isDateField(t){return this.get("dateFields").indexOf(t)!==-1}isNumericField(t){return this.get("numericFields").indexOf(t)!==-1}isDurationField(t){return this.get("durationFields").indexOf(t)!==-1}getContentType(t){let e="";switch(t){case"png":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;default:e="application/octet-stream"}return e}getDisposableCanvas(){let t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",this._root.dom.appendChild(t),t}disposeCanvas(t){this._root.dom.removeChild(t)}findBackgroundColor(t){let e=1,i=getComputedStyle(t,"background-color").getPropertyValue("background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||i=="transparent")&&(e=0),e==0){let r=t.parentElement;return r?this.findBackgroundColor(r):ot.fromHex(16777215)}else return ot.fromCSS(i)}streamFile(t,e,i=!1){if(this.blobDownloadSupport()){let r=document.createElement("a");r.download=e,document.body.appendChild(r);let a=t.split(";"),n=a.shift().replace(/data:/,"");if(t=decodeURIComponent(a.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(n)==-1)try{t=atob(t)}catch{return!1}else{i&&(t="\uFEFF"+t);let c=new Blob([t],{type:n}),u=window.URL.createObjectURL(c);return r.href=u,r.download=e,r.click(),setTimeout(()=>{document.body.removeChild(r),window.URL.revokeObjectURL(u)},100),!0}let o=new Array(t.length);for(let c=0;c<t.length;++c){let u=t.charCodeAt(c);o[c]=u}i&&(o=[239,187,191].concat(o));let l=new Blob([new Uint8Array(o)],{type:n}),h=window.URL.createObjectURL(l);r.href=h,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>{window.URL.revokeObjectURL(h)},100)}else if(this.linkDownloadSupport()){let r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else window.location.href=t;return!0}downloadSupport(){return this.linkDownloadSupport()}linkDownloadSupport(){return typeof document.createElement("a").download<"u"}blobDownloadSupport(){return window.Blob!=null}initiatePrint(t,e,i){let r=this._getFormatOptions("print",e);r.printMethod=="css"?this._printViaCSS(t,r,i):this._printViaIframe(t,r,i)}_printViaCSS(t,e,i){let a=this._getFormatOptions("print",e).delay||500,n=document.documentElement.scrollTop||document.body.scrollTop,o=new ff(P_(this._root.dom),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"},this._root.nonce),l=new ff(P_(this._root.dom),"body",{padding:"0",margin:"0"},this._root.nonce),h;i&&document&&document.title&&(h=document.title,document.title=i);let c=new Image;c.src=t,c.style.maxWidth="100%",c.style.display="block",c.style.position="relative",c.style.visibility="visible",c.style.opacity="1",c.style.clipPath="none",document.body.appendChild(c),this.setTimeout(()=>{window.print()},50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&a<1e3?a=1e3:a<100&&(a=100),this.setTimeout(()=>{document.body.removeChild(c),o.dispose(),l.dispose(),h&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n},a||500)}_printViaIframe(t,e,i){let a=this._getFormatOptions("print",e).delay||500,n=document.createElement("iframe");n.style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close();let o=new Image;o.src=t,o.style.maxWidth="100%",o.style.height="auto",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(o),n.load=function(){n.contentWindow.document.body.appendChild(o)},this.setTimeout(()=>{try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch{n.contentWindow.print()}},a||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&a<1e3?a=1e3:a<100&&(a=100),this.setTimeout(()=>{document.body.removeChild(n)},a+50||100)}supportedFormats(){let t=[],e=this.hasData(),i=this.downloadSupport();return J(["png","jpg","canvas","pdf","xlsx","csv","json","html","pdfdata","print"],r=>{this._getFormatOptions(r).disabled!==!0&&(["xlsx","csv","json","html","pdfdata"].indexOf(r)==-1||e&&i)&&t.push(r)}),t}supportedExportTypes(){let t=["image","print"];return this.downloadSupport()&&this.hasData()&&t.push("data"),t}};cu.className="Exporting";cu.classNames=gi.classNames.concat([cu.className]);var dv={exports:{}},jC,V1;function DN(){if(V1)return jC;V1=1;function s(t){var e=new t,i=e;function r(){var n=e;return n.next?e=n.next:(e=new t,i=e),n.next=null,n}function a(n){i.next=n,i=n}return{get:r,release:a}}return jC=s,jC}var N1;function LN(){if(N1)return dv.exports;N1=1;var s=DN();function t(a,n,o){if(typeof a=="function"&&(o=n,n=a,a=null),o<1)throw new Error("fastqueue concurrency must be greater than 1");var l=s(i),h=null,c=null,u=0,d=null,A={push:w,drain:e,saturated:e,pause:m,paused:!1,concurrency:o,running:p,resume:y,idle:x,length:f,getQueue:g,unshift:S,empty:e,kill:T,killAndDrain:L,error:$};return A;function p(){return u}function m(){A.paused=!0}function f(){for(var I=h,R=0;I;)I=I.next,R++;return R}function g(){for(var I=h,R=[];I;)R.push(I.value),I=I.next;return R}function y(){if(A.paused){A.paused=!1;for(var I=0;I<A.concurrency;I++)u++,D()}}function x(){return u===0&&A.length()===0}function w(I,R){var F=l.get();F.context=a,F.release=D,F.value=I,F.callback=R||e,F.errorHandler=d,u===A.concurrency||A.paused?c?(c.next=F,c=F):(h=F,c=F,A.saturated()):(u++,n.call(a,F.value,F.worked))}function S(I,R){var F=l.get();F.context=a,F.release=D,F.value=I,F.callback=R||e,u===A.concurrency||A.paused?h?(F.next=h,h=F):(h=F,c=F,A.saturated()):(u++,n.call(a,F.value,F.worked))}function D(I){I&&l.release(I);var R=h;R?A.paused?u--:(c===h&&(c=null),h=R.next,R.next=null,n.call(a,R.value,R.worked),c===null&&A.empty()):--u===0&&A.drain()}function T(){h=null,c=null,A.drain=e}function L(){h=null,c=null,A.drain(),A.drain=e}function $(I){d=I}}function e(){}function i(){this.value=null,this.callback=e,this.next=null,this.release=e,this.context=null,this.errorHandler=null;var a=this;this.worked=function(n,o){var l=a.callback,h=a.errorHandler,c=a.value;a.value=null,a.callback=e,a.errorHandler&&h(n,c),l.call(a.context,n,o),a.release(a)}}function r(a,n,o){typeof a=="function"&&(o=n,n=a,a=null);function l(m,f){n.call(this,m).then(function(g){f(null,g)},f)}var h=t(a,l,o),c=h.push,u=h.unshift;return h.push=d,h.unshift=A,h.drained=p,h;function d(m){var f=new Promise(function(g,y){c(m,function(x,w){if(x){y(x);return}g(w)})});return f.catch(e),f}function A(m){var f=new Promise(function(g,y){u(m,function(x,w){if(x){y(x);return}g(w)})});return f.catch(e),f}function p(){var m=h.drain,f=new Promise(function(g){h.drain=function(){m(),g()}});return f}}return dv.exports=t,dv.exports.promise=r,dv.exports}var IN=LN(),ji={SelectXY:"selectXY",SelectX:"selectX",SelectY:"selectY",ZoomXY:"zoomXY",ZoomX:"zoomX",ZoomY:"zoomY",None:"none"},Wi={Top:"top",Bottom:"bottom",Median:"median",Outliers:"outliers"},bv=new Map;function Yn(s){s!==void 0&&bv.delete(s)}function Vc(s,t){let e=bv.get(s)??{};bv.set(s,{...e,...t})}function Nc(s,t){return bv.get(s)?.[t]}function kN(s,t){return Nc(s,t)}function $N(s,t){Vc(s,t)}function ON(s,t){return Nc(s,t)}function EN(s,t){Vc(s,t)}function ve(s,t){return Nc(s,t)}function ni(s,t){Vc(s,t)}function Hs(s,t){return Nc(s,t)}function Po(s,t){Vc(s,t)}function Vs(s,t){return Nc(s,t)}function Ls(s,t){Vc(s,t)}function MN(s,t){return Nc(s,t)}function RN(s,t){Vc(s,t)}function gs(s,t){return Nc(s,t)}function mu(s,t){Vc(s,t)}function Ri(s,t){t===!1&&!s.isHiding?(s.visible=!1,s.hide()):s.isShowing||(s.visible=!0,s.show())}function UN(s,t){for(let e=0;e<t.length;e+=1){let i=t[e][0],r=t[e][1],a=s.length;i>=0&&i<a&&r>=0&&r<a&&s.swap(t[e][0],t[e][1])}}function NL(s,t){let e;if(s!==void 0&&"rgb"in s&&s.rgb!==void 0){let i=s.rgb;if(i!==void 0){let{r,g:a,b:n}=i;e=[r,a,n,255]}}return e}function Ec(s){let t=s??[0,0,0,255];return new xt({a:t[3]/255,b:t[2],g:t[1],r:t[0]})}function Zr(s){return s.bullets.values.find(t=>MN(t.uid,"isBulletMarker"))}function qn(s){return s!=null&&!s.isDisposed()}function Ef(s){return(s.isShowing||s.visible)&&!s.isHidden&&!s.isHiding&&!s.disabled&&!s.__disabled}function HL(s,t){return s.pixelX<0||s.pixelX>t?.plotContainer?.measuredWidth||s.pixelY<0||s.pixelY>t?.plotContainer?.measuredHeight}function VN(s){let t;return s.baseSprite instanceof Wt||s.baseSprite instanceof pr?t=s.baseSprite:(s instanceof Mh||s instanceof Yd)&&(t=s.axis.chart),t}function NN(s){return NL(s.background.fill)}var re={...ht};function HN(s){let{fill:t,rotation:e,isLinePattern:i,chartBackgroundColor:r}=s,a;return i!==!1?(a=new fc,a.width=re.patternLineProperties.width??Number.NaN,a.height=re.patternLineProperties.height??Number.NaN,a.strokeWidth=re.patternLineProperties.strokeWidth??Number.NaN,a.stroke=t,a.rotation=e??Number.NaN):(a=new mc,a.rectWidth=re.patternRectProperties.rectWidth??Number.NaN,a.rectHeight=re.patternRectProperties.rectHeight??Number.NaN,a.width=re.patternRectProperties.width??Number.NaN,a.height=re.patternRectProperties.height??Number.NaN,a.fillOpacity=re.patternRectProperties.fillOpacity??Number.NaN,a.strokeWidth=re.patternRectProperties.strokeWidth??Number.NaN,a.fill=Ec(r),a.stroke=t,a.rotation=e??Number.NaN),a}function H1(s){let t=Number.NaN;if(typeof s=="number")t=s;else if(s.includes("%")){let e=Number.parseFloat(s.trim().replace("%","").trim());Number.isFinite(e)&&(t=he(e))}return t}function QN(s){let{fill:t,style:e,chartBackgroundColor:i}=s,r,a,n=!0;switch(e){case bs.Horizontal:{a=0;break}case bs.Vertical:{a=90;break}case bs.ForwardDiagonal:{a=45;break}case bs.BackwardDiagonal:{a=135;break}case bs.Cross:{a=0,n=!1;break}case bs.DiagonalCross:{a=135,n=!1;break}case bs.Solid:}return a!==void 0&&(r=HN({fill:t,rotation:a,isLinePattern:n,chartBackgroundColor:i})),r}function xn(s,t){let e;t!==void 0&&(e=Ec(t));let i=e??new xt({r:0,g:0,b:0,a:0});if(s!=null){let[r,a,n,o]=s;i=new xt({r,g:a,b:n,a:o/255})}return i}function QL(s,t=0){return(s??t)%360}function jN(s,t){return t!==!0||s?.includes("Dot")===!0?"round":"square"}function jL(s,t){let e="none";switch(s??t){case bi.Justify:case bi.Center:e="center";break;case bi.Left:e="left";break;case bi.Right:e="right";break}return e}function yw(s,t){let e="middle";switch(s??t){case bi.Right:e="left";break;case bi.Left:e="right";break;case bi.Center:case bi.Justify:}return e}function WN(s,t){let e="none";switch(s??t){case Yt.Baseline:case Yt.Middle:e="middle";break;case Yt.Top:e="top";break;case Yt.Bottom:e="bottom";break}return e}function WL(s,t){let e=Yt.Middle;switch(s??t){case Yt.Top:e="bottom";break;case Yt.Bottom:e="top";break;case Yt.Baseline:case Yt.Middle:default:e="middle";break}return e}function XN(s,t){let e=s??As.Solid,i=t??re.lineWidth,r={[As.Solid]:"none",[As.Dot]:[1,i],[As.DashDotDot]:[4*i,i,1,i,1,i],[As.Dash]:[4*i,3*i],[As.DashDot]:[4*i,3*i,1,3*i],[As.Null]:"none"};return(r[e]??r[As.Null]).toString()}function XL(s,t){let e={stroke:xn(),strokeWidth:re.lineWidth,strokeDasharray:"",strokeLinecap:t!==!0?"round":"square",strokeOpacity:hd};return s!=null&&(e.stroke=xn(s.color),e.strokeOpacity=1,s.width!==void 0&&(e.strokeWidth=s.width),s.style!==void 0&&s.style!==As.Null&&(e.strokeDasharray=XN(s.style,e.strokeWidth),e.strokeLinecap=jN(s.style,t))),e}function zL(s,t){let e=s,[i,r,a,n]=s?.color??t??re.color,o=[i,r,a,n];return e==null?e={type:Dt.SLS,color:o}:e.color===void 0&&(e.color=o),XL(e,!1)}function zN(s,t){let{color:e,outline:i,style:r}=s,a=xn(e);return{pattern:QN({fill:a,style:r,chartBackgroundColor:t}),fill:a,outline:zL(i,e)}}function GN(s){let{color:t,outline:e,xoffset:i,yoffset:r,style:a,size:n,angle:o}=s,l=a!==void 0?rx(a,n):"",h=QL(o);return{path:l,fill:xn(t),outline:zL(e,t),xOffset:i??0,yOffset:r??0,angle:h}}function vw(s){let{symbol:t,defaultToColorFromRamp:e,colorRampIndex:i,isChartFillSymbol:r=!1,chartBackgroundColor:a}=s,n;if(e===!0){let o=r?Nm:hd;if(t.color=t.color??bh({colorIndex:i,opacity:o}),md(t)||np(t)){let{outline:l}=t;l!==void 0&&(l.color=l?.color??bh({colorIndex:i}),t.outline={...l})}}return Tx(t)?n=XL(t,!0):np(t)?(t.style??=re.lineSeries.marker.markerStyle,t.size??=re.lineSeries.marker.markerBigSize,n=GN(t)):md(t)&&(n=zN(t,a)),n}function xv(s,t,e){let i=yw(s.horizontalAlignment,e?.horizontalCenter),r=jL(s.horizontalAlignment,e?.align),a=WL(s.verticalAlignment,e?.verticalCenter),n=WN(s.verticalAlignment,e?.valign);return{fill:xn(s.color,re.color),fontFamily:s.font?.family??"Arial, Helvetica, sans-serif",fontSize:s.font?.size??re.generalFontSize,fontWeight:s.font?.weight??"400",textDecoration:s.font?.decoration??"none",align:r,valign:n,verticalCenter:a,horizontalCenter:i,text:_a({textSymbol:s,format:"amChartsV4"}),angle:QL(s.angle,e?.rotation),xOffset:s.xoffset??e?.dx??0,yOffset:s.yoffset??e?.dy??0,backgroundFill:xn(s.backgroundColor),borderFill:xn(s.borderLineColor),borderWidth:s.borderLineSize??1,haloSize:s.haloSize??-1,haloColor:xn(s.haloColor),rtl:s.rightToLeft??t,wrap:e?.wrap??!1,maxWidth:e?.maxWidth??Number.NaN}}function GL(s,t,e){e!==void 0&&s.tooltip!==void 0&&(s.tooltip.getFillFromObject=!1,s.tooltip.background.fill=t),s.fill=e??t,s.fillOpacity=Ne(s.fill.toString()).alpha===0?0:1}function AA(s,t){s.stroke=t.stroke,s.strokeOpacity=t.stroke.alpha===0?0:1,s.strokeDasharray=t.strokeDasharray,s.strokeLinecap=t.strokeLinecap,s.strokeWidth=t.strokeWidth}function _v(s){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a}=s,n;return e!==void 0?(n=vw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a}),n!==void 0&&(t.path=n.path,t.rotation=n.angle,t.dx=n.xOffset,t.dy=n.yOffset,GL(t,n.fill),AA(t,n.outline)),Ri(t,i),t.disabled=i===!1):t.disabled=!0,n}function Oc(s){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a}=s,n;return e!==void 0?(n=vw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a}),n!==void 0&&AA(t,n),Ri(t,i)):Ri(t,!1),n}function Mf(s){let{element:t,fillSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a,isChartFillSymbol:n}=s,o,l;if(e!==void 0){if(e.style===bs.Cross||e.style===bs.DiagonalCross){let h=VN(t);h!==void 0&&(l=NN(h))}o=vw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a,isChartFillSymbol:n,chartBackgroundColor:l}),o!==void 0&&(GL(t,o.fill,o.pattern),AA(t,o.outline)),t.disabled=i===!1}else t.disabled=!0;return o}function Mc(s){let{element:t,seriesIndex:e,colorMatch:i,seriesSymbol:r,isChartFillSymbol:a,rendererSymbol:n,seriesConfig:o}=s,l,h;i===!0&&n&&(l=ox({rendererSymbol:n,seriesSymbol:r,colorIndex:e}));let c={element:t,defaultToColorFromRamp:!0,colorRampIndex:e,seriesConfig:o},u=l??{...r};switch(r.type){case Dt.SLS:h=Oc({...c,lineSymbol:u});break;case Dt.SFS:h=Mf({...c,fillSymbol:u,isChartFillSymbol:a});break;case Dt.SMS:h=_v({...c,markerSymbol:u});break}return{symbolWithColorInfo:u,stylingInfo:h}}function Q1(s,t){if(t!==void 0){let e=s.properties,{elementColor:i,elementOutlineColor:r,elementOutlineWidth:a,rotation:n,transformation:o}=t,{opacity:l,scale:h}=o??{};i!==void 0&&(e.fill=Ec(i),e.fillOpacity=Ne(e.fill.toString()).alpha===0?0:1),r!==void 0&&(e.stroke=Ec(r)),a!==void 0&&(e.strokeWidth=a),n!==void 0&&(e.rotation=n),h!==void 0&&(e.scale=h),l!==void 0&&(e.fillOpacity=(e.fillOpacity??1)*l,e.strokeOpacity=(e.strokeOpacity??1)*l)}}function YN(s,t,e){let i=new Set(Array.from(t)),r=s.findIndex(a=>!i.has(ZC(a)));return r!==-1?r:e}function ZC(s){return`${s[0]},${s[1]},${s[2]}`}function KN(s){let{chartConfig:t,queryObject:e,usePopupTemplateFieldsInfo:i,labelUpdateNeeded:r,utilsStrings:a}=s,{series:n}=t,o=n[0],{x:l}=o,h=!bF({chartConfig:t}),c=It([o]),u=c===Ee.PieFromFields,d=Ys(e),A=_h(d).idField,p=ln(e,i);return{x:l,isNonAggregatedChart:h,objectIdField:A,isPieFromFields:u,seriesConfig:o,fieldList:p,labelUpdateNeeded:r,chartSubType:c,colorMatch:Ol(t),utilsStrings:a}}function ZN(s){let{dataContext:t,seriesConfig:e,existingSlicesColors:i,isGroupOfSlices:r,sliceFromConfig:a,dataIndex:n,colorMatch:o,chartSubType:l}=s,h=r?{...ht.pieChart.sliceGrouping.fillSymbol,...e.sliceGrouping?.fillSymbol}:Tr(a?.fillSymbol??e.fillSymbol),c=on({dataItem:t,seriesConfig:e,chartSubType:l,colorMatch:o}),u=n;h?.color||(u=YN(AF,i,n));let d={dataItem:{dataContext:t}},{symbolWithColorInfo:A}=Mc({element:d,seriesConfig:e,y:e.y,seriesSymbol:h??Wm(),seriesIndex:u,rendererSymbol:c,colorMatch:o,isChartFillSymbol:!0});return A}function j1(s,t){let{x:e,isNonAggregatedChart:i,objectIdField:r,isPieFromFields:a,seriesConfig:n,fieldList:o,labelUpdateNeeded:l,colorMatch:h,chartSubType:c,utilsStrings:u}=s,d=[],A,p,m=new Set;return t?.forEach((f,g)=>{let y=tH({dataContext:f,x:e,isNonAggregatedChart:i,dataIndex:g,objectIdField:r,isPieFromFields:a});f[ht.pieChart.technicalFieldSliceId]=y;let x=qC(n.slices,y);x?.fillSymbol?.color!==void 0&&m.add(ZC(x.fillSymbol.color))}),t?.forEach((f,g)=>{let y=f[ht.pieChart.technicalFieldSliceId],x=qC(n.slices,y),w=ah(f),S=ZN({dataContext:f,seriesConfig:n,existingSlicesColors:m,isGroupOfSlices:w,sliceFromConfig:x,dataIndex:g,colorMatch:h,chartSubType:c});S.color&&m.add(ZC(S.color));let D=iH({dataContext:f,sliceFromConfig:x,isGroupOfSlices:w,seriesConfig:n,fieldList:o,isPieFromFields:a,labelUpdateNeeded:l,colorMatch:h,utilsStrings:u}),T={sliceId:y,label:D,fillSymbol:S};T.originalLabel=x?.originalLabel??(f?.[ht.originalCategoryValue]!==void 0?f?.[ht.originalCategoryValue]:T.label),w?(p=f[ht.pieChart.technicalFieldGroupedSlices],n.sliceGrouping!==void 0&&(A={sliceId:n.sliceGrouping.sliceId,percentageThreshold:n.sliceGrouping.percentageThreshold,label:D,originalLabel:n.sliceGrouping.originalLabel??D,fillSymbol:S})):d.push(T)}),{slices:d,groupOfSlicesSymbols:A,groupOfSlices:p}}function YL(s){let{creation:t,dataInfo:e,pieChartDataActuallyChanged:i,chartConfig:r,previousConfig:a,queryObject:n,usePopupTemplateFieldsInfo:o,utilsStrings:l}=s,h;if(r.series[0].type===V.PieSeries){let c=In(e.data),u=mx({oldConfig:a,newConfig:r}),d=fx(a,r),A=Jm(a,r),p=KN({chartConfig:r,queryObject:n,usePopupTemplateFieldsInfo:o,labelUpdateNeeded:t||i||u||A||d,utilsStrings:l}),{slices:m,groupOfSlicesSymbols:f,groupOfSlices:g}=j1(p,c),{slices:y}=j1(p,g??[]);h={slices:m,groupedSlices:y,groupOfSlices:f}}return h}async function qN(s){let{creation:t,dataInfo:e,dataInfo:{data:i},pieChartDataActuallyChanged:r,chartConfig:a,previousConfig:n,pieSlicesSymbols:o,queryObject:l,options:h,utilsStrings:c}=s,{slices:u}=o??{},{chartWillRender:d}=h??{},A=ze(a.series),p=!1,m=a,f=Tr(o),g,y;if(d&&(A===V.PieSeries||A===V.GaugeSeries)){p=!0,m=Tr(a);let x=ng({data:i,seriesConfig:a.series});m=await d({chartConfig:m,data:x,slices:u}),!Gs(l)&&A===V.PieSeries&&i&&"dataItems"in i&&({colorMatchApplied:g,rendererFieldNames:y}=await bx({data:i.dataItems,queryObject:l,chartConfig:m,allowColorMatch:nx({chartConfig:m,queryObject:l})}),f=YL({creation:t,dataInfo:e,chartConfig:m,previousConfig:n,queryObject:l,pieChartDataActuallyChanged:r,usePopupTemplateFieldsInfo:h?.usePopupTemplateFieldsInfo,utilsStrings:c}))}return{changesApplied:p,alteredConfig:m,alteredPieSlicesSymbols:f,colorMatchApplied:g,rendererFieldNames:y}}function ah(s){return s?.[an.defaultGroupOfSlicesId]===!0}function JN(s){let{dataContext:t,dataIndex:e,objectIdField:i}=s;return`${an.sliceIdPrefix}-${t[i??""]?.toString()??e}`}function eH(s){let{chartConfig:t,chartData:e,fieldList:i}=s,r=It(t.series)===Ee.PieFromFields;if(t.orderOptions?.data!==void 0||r){ig({arrayToSort:e,chartConfig:t,fieldList:i});let{slices:a}=t.series[0];a!==void 0&&a.sort((n,o)=>{let l=e.findIndex(c=>c[ht.pieChart.technicalFieldSliceId]===n.sliceId),h=e.findIndex(c=>c[ht.pieChart.technicalFieldSliceId]===o.sliceId);return l-h})}}function qC(s,t){let e;return s!==void 0&&t!==void 0&&(e=s.find(i=>i.sliceId===t)),e}function tH(s){let{dataContext:t,isNonAggregatedChart:e,x:i,dataIndex:r,objectIdField:a,isPieFromFields:n}=s,o="";return n===!0?o=t[ht.originalCategoryValue]??t[io]:e?o=JN({dataContext:t,dataIndex:r,objectIdField:a}):(o=t[ht.originalCategoryValue],o===void 0||o===""?o=an.emptySliceId:o===null&&(o=an.nullSliceId),o=o??t[i]),o===void 0&&(o=an.undefinedSliceId),o.toString()}function iH(s){let{dataContext:t,sliceFromConfig:e,isGroupOfSlices:i,seriesConfig:r,fieldList:a,isPieFromFields:n,labelUpdateNeeded:o,colorMatch:l,utilsStrings:h}=s,{sliceGrouping:c}=r,{x:u}=r;n&&(u=io);let d=t[u]??t[ht.originalCategoryValue],A=t[ht.originalCategoryValue]??d,p=d;return o&&(i?p=c?.label??c?.originalLabel?.toString()??h.pieChart.defaultSliceGroupingLabel:l&&t[ht.rendererSymbolField]?.label!==void 0?p=t[ht.rendererSymbolField].label:e!==void 0||a!==void 0?(e?.label&&e.label!==e?.sliceId&&(p=e?.label),p===A&&A!==void 0&&A!==null&&(p=Er(a,A))):e===void 0&&(p=A),p===ht.nullValue?p="null":p!=null&&(p=p.toString())),p}function bw(s,t){return s?.[0]?.sliceGrouping?.percentageThreshold!==t?.[0]?.sliceGrouping?.percentageThreshold}function Hf(s){let{groupOfSlicesDataContext:t,chartData:e}=s;return(t??e?.find(i=>i[an.defaultGroupOfSlicesId]===!0))?.[ht.pieChart.technicalFieldGroupedSlices]}function xw(s){let{dataContext:t,pieSlicesSymbols:e,seriesConfig:i}=s,r=i.fillSymbol?{...i.fillSymbol}:Wm();if(ah(t))r={...ht.pieChart.sliceGrouping.fillSymbol,...e?.groupOfSlices?.fillSymbol};else{let a=t[ht.pieChart.technicalFieldSliceId],n=e?.slices?.find(o=>o.sliceId===a);r=Tr(n?.fillSymbol??i.fillSymbol??Wm())}return r}function yl(s){let{type:t,iLocale:e,formatLocale:i=fd(document.documentElement)}=s,r;switch(t){case V.NumberAxisFormat:{r=new Hl,r.language.locale=e,r.intlLocales=i;break}case V.DateAxisFormat:{r=new cn,r.language!==void 0&&(r.language.locale=e),r.intlLocales=i;break}}return r}function JC(s){let{axis:t,valueFormat:e,chartType:i}=s,r=Um({isXAxis:!0,chartType:i,valueFormat:e}),a=ro(e)&&t instanceof Ct,n=xa(e)&&t instanceof He&&!(t instanceof Ct),o=r&&t instanceof Ot;return!a&&!n&&!o}function KL(s,t){let e=typeof t=="number"?`${t}`:t,i=Vs(s.uid,"numberFormatter");return i!==void 0&&(e=i(t)),Yi(e)&&(e=re.htmlEmptyContent),Mr(e)}function rH(s){s.renderer.labels.template.html=re.htmlEmptyContent,s.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>KL(s,e?.dataItem?.value??t),0)}function ZL(s){let{axis:t,defaultOutput:e,dataItem:i}=s,r=e,a=Vs(t.uid,"categoryFormatter"),n=Vs(t.uid,"numberFormatter");if((n!==void 0||a!==void 0)&&i instanceof il){let o=ve(t.chart.uid,"config"),l=It(o?.series),h=ve(t.chart.uid,"rendererFieldNames"),c=Mo({value:i.category,dataContext:i.dataContext,useRendererLabel:JA(o,h),specificField:rp(l,o?.series?.[0]),config:o});if(typeof c=="number"&&n!==void 0)r=n(c);else if(a!==void 0){if([Ee.BoxPlotMonoField,Ee.BoxPlotMultiFields,Ee.BoxPlotMonoFieldAndSplitBy,Ee.BoxPlotMultiFieldsAndSplitBy,Ee.BarAndLineFromFields].includes(l)&&typeof c=="string"){let d=ve(t.chart.uid,"fieldList");c=Er(d,c)}let u=so(i.dataContext);u===void 0&&(u=c),r=a(c,u)}}return Yi(r)&&(r=re.htmlEmptyContent),Mr(r)}function sH(s){s.renderer.labels.template.html=re.htmlEmptyContent,s.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>ZL({axis:s,defaultOutput:t,dataItem:e?.dataItem}),0)}function aH(s){let{axis:t,defaultOutput:e,dataItem:i}=s,r=e,a=Vs(t.uid,"dateFormatter");return a!==void 0&&i instanceof Vh&&(r=a(i.value??e)),Yi(r)&&(r=re.htmlEmptyContent),Mr(r)}function nH(s){s.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>aH({axis:s,dataItem:e?.dataItem,defaultOutput:t}),0),s.renderer.labels.template.adapter.disableKey("htmlOutput")}function oH(s){s.renderer.labels.template.adapter.add("htmlOutput",t=>{let e=t,i=Vs(s.uid,"fontStyleCallback");return i!==void 0&&(e=i(e)),Mr(e)},1)}function lH(s){s instanceof He&&!(s instanceof Ct)?rH(s):s instanceof Ot?sH(s):s instanceof Ct&&nH(s),oH(s)}function hH(s){let{axis:t,formatOptions:e,dateAxisFormatter:i,isTimeOnlyField:r}=s;if(Ls(t.uid,{dateFormatter:i}),i===void 0){t.renderer.labels.template.adapter.isEnabled("htmlOutput")&&(t.renderer.labels.template.adapter.disableKey("htmlOutput"),t.renderer.labels.each(o=>{o.element instanceof Op&&o.element.removeChildren()}));let a={...Eo(e)};r&&(a={hour:r?"numeric":void 0,minute:r?"numeric":void 0,...a});let n=["year","month","day","hour","minute","second"];t.timezone!==a.timeZone&&(t.setPropertyValue("timezone",a.timeZone),t.chart.validateData()),t.dateFormatter.timezone=a.timeZone,delete a.timeZone;for(let o=0;o<n.length;o+=1){let l=n[o],h=o===0?l:n[o-1],c=e?.formatPerDateTimeUnit?.[l]??a,u=e?.formatPerDateTimeUnit?.[h];Lu(c)||(t.dateFormats.setKey(l,c),t.periodChangeDateFormats.setKey(l,u??c))}t.dateFormats.getKey("day")||t.dateFormats.setKey("day",re.dayDefaultFormat),t.periodChangeDateFormats.getKey("day")||t.periodChangeDateFormats.setKey("day",re.dayDefaultFormat),t.dateFormats.getKey("week")||t.dateFormats.setKey("week",t.dateFormats.getKey("day")??re.weekDefaultFormat),t.periodChangeDateFormats.getKey("week")||t.periodChangeDateFormats.setKey("week",t.periodChangeDateFormats.getKey("day")??re.weekDefaultFormat),t.invalidateLabels()}else t.renderer.labels.template.html=re.htmlEmptyContent,t.renderer.labels.template.adapter.enableKey("htmlOutput")}function uH(s,t,e,i){let r=yl({type:V.NumberAxisFormat,iLocale:t,formatLocale:e});return r.numberFormat=s,a=>{let n=0;return a instanceof Date?a.toLocaleString(void 0,s):(n=typeof a!="string"?a??0:Fx(a,r.intlLocales),i===!0&&s.style==="percent"&&(n/=100),r.format(n))}}function W1(s){let{axis:t,formatOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=s,a=Eo(e),n=ve(t.chart.uid,"formatLocale");Ls(t.uid,{numberFormatter:r??uH(a,t.chart.language.locale,n,i)})}function cH(s){let{axis:t,formatOptions:e,categoryAxisFormatter:i}=s,r=i!==void 0?i:Xm(e.characterLimit);Ls(t.uid,{categoryFormatter:r})}function dH(s){let{axis:t,labelsTextSymbol:e,axisValueFormatter:i}=s,r=ve(t.chart.uid,"config")?.horizontalAxisLabelsBehavior;if(Ls(t.uid,{axisLabelsBehavior:r}),i!==void 0)Ls(t.uid,{fontStyleCallback:void 0});else if(Vs(t.uid,"fontStyleCallback")===void 0){let a=n=>{let o=Vs(t.uid,"axisLabelsBehavior");return _a({textSymbol:e,placeholderString:n,format:"html",axisLabelsBehavior:o,defaults:{maxWidth:t.renderer.labels.template.maxWidth}})};Ls(t.uid,{fontStyleCallback:a})}}function AH(s){let{axis:t,isXAxis:e,formatOptions:i,labelsTextSymbol:r,overridePercentMultiplication:a,chartType:n,axisValueFormatter:o,isTimeOnlyField:l,errorStrings:h}=s,c=Um({isXAxis:e,chartType:n,valueFormat:i}),u=!1;!(t instanceof Ct)&&xa(i)?W1({axis:t,formatOptions:i,overridePercentMultiplication:a,valueAxisFormatter:o}):t instanceof Ct&&ro(i)?hH({axis:t,formatOptions:i,dateAxisFormatter:o,isTimeOnlyField:l}):t instanceof Ot?ld(i)||c?(cH({axis:t,formatOptions:i,categoryAxisFormatter:o}),Ls(t.uid,{numberFormatter:void 0})):xa(i)?(W1({axis:t,formatOptions:i,overridePercentMultiplication:a,valueAxisFormatter:o}),Ls(t.uid,{categoryFormatter:void 0})):u=!0:u=!0,u&&Rm("mismatchAxisAndValueFormat",h),dH({axis:t,labelsTextSymbol:r,axisValueFormatter:o}),t.invalidateLabels()}function pH(s){let t=s;return s>=1?t=10**(s.toFixed(0).length-1):s<1&&s>0&&(t=10**-Math.abs(Math.floor(Math.log10(s)))),t}function qL(s){let{minimumFromConfig:t,maximumFromConfig:e,isLogarithmic:i}=s,r=i===!0&&t!==null&&t!==void 0&&t<=0,a=!Number.isFinite(t)||!Number.isFinite(e);return r||a}var fH="arcgis-charts-randomization-seed";Cy(fH,Cy.URL);var ii={XAxisTitle:"XAxisTitle",YAxisTitle:"YAxisTitle",ChartTitle:"ChartTitle",ChartSubTitle:"ChartSubTitle",ChartFooter:"ChartFooter",GuideLabel:"GuideLabel",LegendTitle:"LegendTitle"},ke={Ready:"ready",Hidden:"hidden",Shown:"shown",Hit:"hit",DoubleHit:"doublehit",Up:"up",SelectEnded:"selectended",Over:"over",Out:"out",SizeChanged:"sizechanged",VisibilityChanged:"visibilitychanged",PositionChanged:"positionchanged",Validated:"validated",DataItemsValidated:"dataitemsvalidated",Inited:"inited",ChildAdded:"childadded",DataRangeChanged:"datarangechanged",LayoutValidated:"layoutvalidated"};function JL(s){let{actionMode:t,cursorRange:e,isRotated:i}=s,r=ji.None;switch(e){case Vm.MultiAxes:t===Vt.MultiSelectionWithCtrlKey||t===Vt.MultiSelection?r=ji.SelectXY:t===Vt.Zoom&&(r=ji.ZoomXY);break;case Vm.XAxis:t===Vt.MultiSelectionWithCtrlKey||t===Vt.MultiSelection?r=i===!0?ji.SelectY:ji.SelectX:t===Vt.Zoom&&(r=i===!0?ji.ZoomY:ji.ZoomX);break;case Vm.YAxis:t===Vt.MultiSelectionWithCtrlKey||t===Vt.MultiSelection?r=i===!0?ji.SelectX:ji.SelectY:t===Vt.Zoom&&(r=i===!0?ji.ZoomX:ji.ZoomY);break}return r}function mH(s,t){let e=re.cursorCrosshair.style,i={type:Dt.SLS,style:t.style??e.style,color:t.color??e.color,width:t.width??e.width};Oc({element:s.cursor.lineX,lineSymbol:i}),Oc({element:s.cursor.lineY,lineSymbol:i})}function eI(s){if(!(s instanceof qs)&&!(s instanceof pr)){s.cursor=new pc;let t="userAgentData"in navigator&&navigator.userAgentData&&typeof navigator.userAgentData=="object"&&"mobile"in navigator.userAgentData&&navigator.userAgentData.mobile===!0||/Mobi|Android/iu.test(navigator.userAgent);s.cursor.hideSeriesTooltipsOnSelection=!t}}function tI(s,t){if(!(s instanceof qs)&&!(s instanceof pr)){let e=s,i=e.cursor??new pc;t?.style!==void 0&&mH(e,t.style);let r=re.cursorCrosshair;i.lineX.disabled=r.verticalLineVisible?t?.verticalLineVisible===!1:t?.verticalLineVisible!==!0,i.lineY.disabled=r.horizontalLineVisible?t?.horizontalLineVisible===!1:t?.horizontalLineVisible!==!0,e.cursor=i}}function gH(s){return!(s instanceof qs)&&s.cursor===void 0&&eI(s),s.cursor}function ew(s,t){let e=s.renderer.labels.template;e.events.hasListenersByType(ke.Hit)&&(e.cursorOverStyle=t),s.renderer.labels.each(i=>{i.cursorOverStyle=t})}function yH(s){let{chart:t,chartType:e,showMean:i,enabled:r}=s,a=r?ai.pointer:ai.default;switch(e){case V.ComboLineAndBarSeries:case V.BarSeries:case V.PieSeries:t.series.each(n=>{(n instanceof Hi||n instanceof ws)&&(n.cursorOverStyle=a)});break;case V.BoxPlotSeries:t.series.each(n=>{let o=a;if(n instanceof Pi){let l=Zr(n);l!==void 0&&(i&&Hs(n.uid,"isBoxPlotOutliersSeries")&&(o=ai.default),l.cursorOverStyle=o,l.clones.each(h=>{h.cursorOverStyle=o}))}else n.cursorOverStyle=i?ai.default:a});break;case V.LineSeries:t.series.each(n=>{if(n instanceof Pi){let o=Zr(n);o!==void 0&&(o.cursorOverStyle=a,o.clones.each(l=>{l.cursorOverStyle=a}))}});break}}function vH(s){let{chart:t,actionMode:e,cursorRange:i}=s,r=ve(t.uid,"isRotated"),a=ve(t.uid,"config"),n=Ca(a),o=ze(a?.series),l=o===V.LineSeries&&xa(a?.axes?.[0]?.valueFormat),h=o===V.LineSeries&&ld(a?.axes?.[0]?.valueFormat),c=o===V.LineSeries&&ro(a?.axes?.[0]?.valueFormat),u,d=!1,A=e??ve(t.uid,"actionMode")??re.actionMode;if(ve(t.uid,"filterBySelection")===!0)u=ji.None,d=!1;else if(i!==void 0)u=JL({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Vt.Zoom:l||c?u=ji.ZoomXY:u=r===!0?ji.ZoomY:ji.ZoomX,d=!1;break;case Vt.MultiSelection:case Vt.MultiSelectionWithCtrlKey:h?u=r===!0?ji.SelectY:ji.SelectX:u=ji.SelectXY,d=!0;break;case Vt.MonoSelection:u=ji.None,d=!0;break;case Vt.None:u=ji.None,d=!1;break}t instanceof Wt&&t.cursor!==void 0&&u!==void 0&&(t.cursor.behavior=u),yH({chart:t,chartType:o,enabled:d,showMean:n})}function iI(s){let t="";return s instanceof Wr?t=s.dataFields?.categoryX??s.dataFields?.dateX??s.dataFields?.valueX??"":s instanceof ws&&(t=s.dataFields?.category??""),t}function rI(s){let t="";return s instanceof Wr?t=s.dataFields?.categoryY??s.dataFields?.dateY??s.dataFields?.valueY??"":s instanceof ws&&(t=s.dataFields?.value??""),t}function sI(s){return ve(s.chart.uid,"isRotated")===!0?rI(s):iI(s)}function bu(s){return ve(s.chart.uid,"isRotated")===!0?iI(s):rI(s)}function Dv(s,t=0){let e=ve(s.chart.uid,"config");return ze(e?.series,t)}function*bH(s){let{filterList:t,queryObject:e,queryConfig:i}=s;for(let r=0;r<t.length;r+=1){let a={...i};a.where=Km([a.where,t[r]]),yield FF({queryObject:e,queryConfig:a,uniqueFeature:!0})}}async function aI(s){let{whereList:t,queryObject:e,queryFilter:i,queryConfig:r}=s,a=[];if(t.length>0){let n=yF().maxElementsPerSelectionQuery,o=[],l=Math.ceil(t.length/n);for(let c=0;c<l;c+=1){let u=c*n,d=(c+1)*n,A=t.slice(u===0?0:u-1,d),p=Km(A,"OR");p=Km([i,p]),o.push(p)}let h=bH({filterList:o,queryObject:e,queryConfig:r});a=(await Promise.all(h)).flat(),a=Array.from(new Set(a))}return a}var Au={Outlier:"outlier",Box:"box",OutlierToOutlier:"outlier-outlier",OutlierToBox:"outlier-box",BoxToOutlier:"box-outlier",BoxToBox:"box-box"};function xH(s,t){let e=s[ht.boxPlot.boxPlotOutlierId]===!0?Au.Outlier:Au.Box,i=typeof t=="number"?Au.Outlier:Au.Box;return`${e}-${i}`}function _H(s){let{oneSelectedItem:t,dataContext:e,selectedOutlierKey:i}=s;return t[i]===e[i]}function CH(s){let{elementMin:t,elementMax:e,selectedOutlierValue:i}=s,r;return typeof t=="number"&&typeof e=="number"&&typeof i=="number"&&(r=i>=t&&i<=e),r}function wH(s){let{selectedMin:t,selectedMax:e,elementOutlierValue:i,oneSelectedItem:r,iqrField:a}=s,n;typeof t=="number"&&typeof e=="number"&&typeof i=="number"&&(n=i>=t&&i<=e);let o=a in r;return n!==!1&&o}function BH(s){let{selectedMin:t,selectedMax:e,elementMin:i,oneSelectedItem:r,elementMax:a,iqrField:n}=s,o;typeof i=="number"&&typeof a=="number"&&typeof t=="number"&&typeof e=="number"&&(o=!(i>=e||a<=t));let l=n in r;return o!==!1&&l}function SH(s){let{oneSelectedItem:t,dataContext:e,xAxisField:i}=s,r=e[ht.originalCategoryValue]??e[ht.boxPlot.boxPlotCategory]??e[i],a=t[ht.originalCategoryValue]??t[ht.boxPlot.boxPlotCategory]??t[i];return r===a}function FH(s){let{chartSubType:t,yAxisField:e,splitBy:i,showOutliers:r}=s,a=t===Ee.BoxPlotMultiFieldsAndCategory?e:void 0,n={y:a,splitBy:i},o=er({...n,key:Kt.Outlier}),l=er({...n,key:Kt.Max,showOutliers:r}),h=er({...n,key:Kt.Min,showOutliers:r}),c=er({...n,key:Kt.Max,showOutliers:!1}),u=er({...n,key:Kt.Min,showOutliers:!1}),d=er({...n,key:Kt.Max,showOutliers:!0}),A=er({...n,key:Kt.Min,showOutliers:!0}),p=er({splitBy:i,y:a,key:Kt.IQR});return{selectedOutlierKey:o,maxField:l,minField:h,selectedMaxFieldWoOutliers:c,selectedMinFieldWoOutliers:u,selectedMaxFieldWithOutliers:d,selectedMinFieldWithOutliers:A,iqrField:p}}function TH(s){let{elementDataContext:t,layerOidField:e,xAxisField:i,splitBy:r,yAxisField:a,chartSubType:n,showOutliers:o}=s,l=t,h;if(l?.[ht.boxPlot.boxPlotMeanLineMarkerId]===!0){let c=er({splitBy:r,key:Kt.Average});h=u=>{let d=!i||!(i in u&&i in l)||u[i]===l[i],A=c in u&&c in l;return d&&A}}else i!==void 0&&a!==void 0&&(h=c=>{let u;if(e!==void 0&&e in c&&e in l)u=c[e]===l[e];else{let{selectedOutlierKey:d,maxField:A,minField:p,selectedMaxFieldWoOutliers:m,selectedMinFieldWoOutliers:f,selectedMaxFieldWithOutliers:g,selectedMinFieldWithOutliers:y,iqrField:x}=FH({chartSubType:n,yAxisField:a,splitBy:r,showOutliers:o}),w=l[d],S=c[d],D=l[p],T=l[A],L=c[f]??c[y],$=c[m]??c[g],I=SH({oneSelectedItem:c,dataContext:l,xAxisField:i});if(I)switch(xH(c,w)){case Au.OutlierToOutlier:I=_H({oneSelectedItem:c,dataContext:l,selectedOutlierKey:d});break;case Au.OutlierToBox:I=CH({elementMin:D,elementMax:T,selectedOutlierValue:S});break;case Au.BoxToOutlier:I=wH({selectedMin:L,selectedMax:$,elementOutlierValue:w,oneSelectedItem:c,iqrField:x});break;case Au.BoxToBox:I=BH({selectedMin:L,selectedMax:$,elementMin:D,oneSelectedItem:c,elementMax:T,iqrField:x});break}u=I===!0}return u});return h}function _w(s){let{layerOidField:t,sliceDataContext:e,selectionDataContext:i,xAxisField:r}=s,a=!1;if(t!==void 0&&t in e&&t in i)a=i[t]?.toString()===e[t]?.toString();else{let n=e[ht.originalCategoryValue];n===void 0&&(n=e[r]),n===void 0&&(n=e[io]);let o=i[ht.originalCategoryValue];o===void 0&&(o=i[r]),o===void 0&&(o=i[io]),a=n!==void 0&&o!==void 0&&n===o}return a}function Av(s){let{dataContext:t,specificField:e,xOrY:i}=s,r=t[i==="x"?ht.originalCategoryValue:ht.originalYCategoryValue];return r===void 0&&e&&(r=t[e]),r===void 0&&(r=t[i==="x"?Cr.xField:Cr.yField]),r}function Lv(s){let{options:t,elementDataContext:e,selectionDataItems:i,layerOidField:r,xAxisField:a,yAxisField:n,chartType:o,splitBy:l,chartSubType:h}=s,c=!1,u;if(e!==void 0&&i!==void 0)switch(o){case V.HeatSeries:let d=e,A=Av({dataContext:d,specificField:a,xOrY:"x"}),p=Av({dataContext:d,specificField:n,xOrY:"y"});u=m=>{let f=Av({dataContext:m,specificField:a,xOrY:"x"}),g=Av({dataContext:m,specificField:n,xOrY:"y"});return A===f&&p===g};break;case V.RadarSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:if(a!==void 0&&n!==void 0){let m=e;u=f=>{let g,y=r;if(h===Ee.BarAndLineSplitByNoAggregation){let x=Ch({where:l,keepSurroundingQuotes:!1,escape:!1});y=`${r}_${x}`}if(r!==void 0&&r in f&&r in m)g=f[r]===m[r];else if(y!==void 0&&y in f&&y in m)g=f[y]===m[y];else if(ht.dateBinningRange in m&&typeof f[a]=="number"){let x=f[a],w=f[ht.dateBinningRange],S=Array.isArray(w)&&Number.isFinite(w[0])&&Number.isFinite(w[1]),[D,T]=S?w:[0,0],[L,$]=m[ht.dateBinningRange],I=m[ht.lastTemporalBin]===!0?x<=$:x<$;g=(S?D<$&&L<T:x>=L&&I)&&n in f&&Number.isFinite(f[n])}else{let x=S=>{let D=S[ht.originalCategoryValue];return D===void 0&&(D=S[a]),D=D===null?ht.nullValue:D,D},w=x(m);g=x(f)===w&&n in f}return g}}break;case V.BoxPlotSeries:u=TH(s);break;case V.ScatterSeries:if(a!==void 0&&n!==void 0){let m=e;if(!vF({dataContext:m,chartLimits:t?.chartLimits}))u=f=>{let g;return r!==void 0&&r in m&&r in f?g=f[r]===m[r]:g=f[a]===m[a]&&f[n]===m[n],g};else{let{dataContextXMinField:f,dataContextXMaxField:g,dataContextYMinField:y,dataContextYMaxField:x}=ht.scatterplotAggregationFields,{[f]:w,[g]:S}=m,D=a!==n?m[y]:w,T=a!==n?m[x]:S,L=I=>{let R=I[a]??Number.NaN,F=w??Number.NaN,H=S??Number.NaN;return w===S?R===F:(R??Number.NaN)>=F&&(R??Number.NaN)<H},$=I=>{let R=I[n]??Number.NaN,F=D??Number.NaN,H=T??Number.NaN;return D===T?R===F:R>=F&&R<H};u=I=>L(I)&&$(I)}}break;case V.HistogramSeries:u=m=>{let f=!1,{minValue:g,maxValue:y}=e,{isLastBin:x}=e;if(a!==void 0&&a in m){let w=m[a];f=typeof w=="number"&&w>=g&&(x&&w<=y||!x&&w<y)}else if("minValue"in m&&"maxValue"in m){let{minValue:w,maxValue:S}=m;f=!(g>=S||y<=w)}return f};break;case V.PieSeries:a!==void 0&&(u=m=>{let f=e,g=ah(f),y=[f];return g&&y.push(...Hf({groupOfSlicesDataContext:f})??[]),y.some(x=>_w({sliceDataContext:x,selectionDataContext:m,layerOidField:r,xAxisField:a}))});break}return u!==void 0&&(c=i.some(u)),c}function sh(s){let{isFeatureCollectionLayer:t,dataContext:e,yAxisField:i,yList:r,xAxisField:a,splitBy:n,chartType:o,chartSubType:l,showOutliers:h}=s,c={...e};if(e!==void 0){if(o===V.RadarSeries||o===V.BarSeries||o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.PieSeries){o!==V.PieSeries&&(t||l!==Ee.BarAndLineNoAggregation&&l!==Ee.BarAndLineSplitByNoAggregation)&&r.forEach(d=>{d!==i&&delete c[d]});let u=Mo({value:e[a],dataContext:e,keepNullValues:!0});c[a]=u,!Yi(n)&&!OF(n)&&(c[Vo(n)]=Ch({where:n,escape:!1}))}else if(o===V.BoxPlotSeries){c={[a]:e[a]},[Eu.uniqueIdsName,ht.boxPlot.boxPlotMeanLineMarkerId,ht.boxPlot.boxPlotOutlierId,ht.originalCategoryValue,ht.originalYCategoryValue].forEach(d=>{e[d]&&(c[d]=e[d])});let u=l===Ee.BoxPlotMultiFieldsAndCategory?i:void 0;Object.values(Kt).forEach(d=>{let A=er({key:d,y:u,splitBy:n,showOutliers:h});e[A]!==void 0&&(c[A]=e[A])})}}return c}function nI(s){let{data:t,colorMatch:e,chartSubType:i,rendererType:r}=s;return t!==void 0&&e&&r!==void 0&&(i===Ee.BoxPlotMultiFields&&(r===Mm.UniqueValue||r===Mm.PieChart)||i===Ee.BoxPlotMonoFieldAndCategory&&r===Mm.UniqueValue)&&t.some(a=>Object.keys(a).some(n=>n.includes(ht.rendererSymbolField)))}function PH(s){return!!/^data:[a-z]+\/[a-z+.-]+;base64/u.test(s)}function oI(s,t=512){if(!PH(s))throw new Error("Cannot convert a string that is not a data uri to a blob");let e=s.split(",")[0].split(":")[1].split(";")[0],i=atob(s.split(",")[1]),r=[];for(let a=0;a<i.length;a+=t){let n=i.slice(a,a+t),o=new Array(n.length);for(let h=0;h<n.length;h++)o[h]=n.charCodeAt(h);let l=new Uint8Array(o);r.push(l)}return new Blob(r,{type:e})}function Rf(s){let{value:t,valueFormat:e,iLocale:i,formatLocale:r}=s,a=t?.toString(),n=yl({type:e.type,iLocale:i,formatLocale:r});return typeof t=="number"&&e.type===V.NumberAxisFormat?a=n.format(t,Eo(e)):(typeof t=="number"||t instanceof Date)&&e.type===V.DateAxisFormat&&(a=n.format(t,Eo(e))),a}function _n(s){let{chart:t,config:e}=s,i=e;return e===void 0&&t!==void 0&&(i=ve(t.uid,"config")),ks(i)}function DH(s){s instanceof jl&&s.series.each(t=>{Yn(t.uid),t instanceof Pi&&Yn(Zr(t)?.uid),t.bullets.each(e=>{Yn(e.uid)}),t instanceof Hi&&t.columns.template.children.each(e=>{Yn(e.uid)})}),s instanceof Wt&&[s.xAxes.getIndex(0),s.xAxes.getIndex(1),s.yAxes.getIndex(0),s.yAxes.getIndex(1)].forEach(t=>{t!==void 0&&(Yn(t.uid??""),t.axisRanges.each(e=>{Yn(e.label?.uid)}))}),s instanceof qs&&s.radarContainer.children.each(t=>{Yn(t.uid)}),s instanceof pr&&s.series.getIndex(0)?.slices.each(t=>{Yn(t.uid)}),"cursor"in s&&s.cursor instanceof rA&&Yn(s.cursor?.uid),"legend"in s&&s.legend!==void 0&&(Yn(s.legend.uid),Yn(s.legend.valueLabels?.template?.uid)),Yn(s.uid)}function pv(s){return typeof s=="number"?s:s.value}async function LH(s){let{chart:t,exportOptions:e}=s,{format:i,quality:r=1,...a}=e,n=r<0||r>1?1:r,o=await t.exporting.getImage(i,{quality:n,...a}),l=oI(o),h=i==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${i}`,{type:h})}function Iv(s,t){t!==void 0&&(t.marginBottom!==void 0&&(s.marginBottom=t.marginBottom),t.marginTop!==void 0&&(s.marginTop=t.marginTop),t.marginRight!==void 0&&(s.marginRight=t.marginRight),t.marginLeft!==void 0&&(s.marginLeft=t.marginLeft),t.verticalCenter!==void 0&&(s.verticalCenter=WL(t.verticalCenter)),t.horizontalCenter!==void 0&&(s.horizontalCenter=yw(t.horizontalCenter)),t.strokeWidth!==void 0&&(s.strokeWidth=t.strokeWidth),t.wrap!==void 0&&(s.wrap=t.wrap),t.truncate!==void 0&&(s.truncate=t.truncate),t.maxWidth!==void 0&&(s.maxWidth=t.maxWidth),t.applyOnClones!==void 0&&(s.applyOnClones=t.applyOnClones,s.background.applyOnClones=t.applyOnClones))}function vl(s,t){let e=t?.createChild(Mi)??new Mi;return Iv(e,s),e}function IH(s){let t=s.push(new Xd);t.dx=1,t.dy=1,t.opacity=1}function kH(s,t,e){if(e.alpha>0&&t>=0){s.length===0&&IH(s);let i=s.getIndex(0);i.blur=t,i.color=e}else s.clear()}function $H(s,t){let e=gs(s.uid,"isGuide"),i=t.visible===!1;return!i&&(e===!0||!(s instanceof Jo))&&t.content.text===""&&(i=!0),i}function X1(s){let{label:t,offset:e,offsetProperty:i}=s,r=99;if(t.adapter.remove(i,r),typeof e=="string"&&!Number.isFinite(Number(e))){let a=qA(e);a!==void 0&&(a/=100,t.adapter.add(i,()=>(t.parent?.[i==="dx"?"measuredWidth":"measuredHeight"]??0)*a,r))}else t[i]=e}function Cn(s){let{label:t,labelConfig:e,defaults:i,skipSettingText:r}=s;if(e!==void 0){let a=xv(e.content,t.rtl,i);t.fill=a.fill,t.fontFamily=a.fontFamily,t.fontWeight=a.fontWeight,t.fontSize=a.fontSize,t.textDecoration=a.textDecoration,t.align=a.align,t.valign=a.valign,t.verticalCenter=a.verticalCenter,t.horizontalCenter=a.horizontalCenter,t.background.fill=a.backgroundFill,t.background.stroke=a.borderFill,t.background.strokeWidth=a.borderWidth,t.rotation=a.angle,X1({label:t,offset:a.xOffset,offsetProperty:"dx"}),X1({label:t,offset:a.yOffset,offsetProperty:"dy"}),t.rtl=a.rtl,t.wrap=a.wrap,t instanceof Jo||(t.maxWidth=a.maxWidth),r||(t.text=a.text),kH(t.filters,a.haloSize,a.haloColor);let n=$H(t,e);t.disabled=n,Ri(t,e.visible!==!1&&!n)}else t.disabled=!0}function lI(s,t){t!==void 0&&(s===V.BarSeries||s===V.LineSeries)&&t.adapter.add("dy",(e,i)=>{let r=i.dataItem,{chart:a}=r?.component??{};return a instanceof Wt&&(i.visible=!HL(i,a)),e??0})}function hI(s,t){t!==void 0&&(s===V.BarSeries&&t.adapter.add("dx",(e,i)=>{let r=e??0,a=i.dataItem,{chart:n}=a?.component??{};return(n!==void 0?ve(n.uid,"isRotated"):!1)===!0&&(a.valueX??a.valueY)<0&&(r-=i.measuredWidth+re.dataLabelNegative.paddingRight),r}),(s===V.BarSeries||s===V.LineSeries)&&t.adapter.add("dy",(e,i)=>{let r=e??0,a=i.dataItem,{chart:n}=a?.component??{};return(n!==void 0?ve(n.uid,"isRotated"):!1)!==!0&&(a.valueX??a.valueY)<0&&(r+=i.measuredHeight+re.dataLabelNegative.paddingTop),r}))}function tw(s){s.bulletsContainer.invalidateLabels(),s instanceof Hi&&s.columns?.template.invalidateLabels()}function OH(s){let{dataValue:t,series:e,seriesType:i,stackedType:r,axisMin:a}=s,n=t===void 0;return t!==void 0&&(a!==void 0&&t<a?n=!0:e instanceof Hi&&(i===V.BarSeries||i===V.ComboLineAndBarSeries)&&(n=t===0&&r!==void 0&&r!==Gi.Side)),n}function iw(s,t){let e,i=r=>gs(r.uid,"isDataLabel")??!1;return t==="bullets"?e=s.bullets.values.find(i):s instanceof Hi&&(e=s.columns.template.children.values.find(i)),e}function rw(s,t){s.adapter.add("htmlOutput",(e,i)=>{let r=e,{dataItem:a}=i;if(Ef(s)&&(t instanceof Hi&&a instanceof Bs||t instanceof Pi&&a instanceof Xa)){let n=Hs(t.uid,t instanceof Hi?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(n!==void 0){let o=ve(t.chart.uid,"isRotated"),l=Hs(t.uid,"stackedType"),h=o===!0?a.valueX:a.valueY,c=o===!0?a.values?.valueX?.totalPercent:a.values?.valueY?.totalPercent,u=o===!0?(a.component?.xAxis).min:(a.component?.yAxis).min;r=OH({dataValue:h,series:t,seriesType:t instanceof Hi?V.BarSeries:V.LineSeries,stackedType:l,axisMin:u})?"":n(h,c)}}return Mr(r)},0)}function uI(s){let{numberFormatter:t,dataLabelsConfigContent:e,stackedType:i}=s;return(r,a)=>{let n=i===Gi.Stacked100&&a!==void 0?a:r;return t.numberFormat.style==="percent"&&(n/=100),_a({textSymbol:{...e,text:t.format(n)},format:"html"})}}function cI(s){s.tabindex=-1}function dI(s){let{series:t,seriesType:e,dataLabel:i,labelDefaults:r,dataLabelsConfig:a,yAxisValueFormat:n,stackedType:o,isRotated:l,defaultDataLabelFormatter:h,customDataLabelFormatter:c}=s;if(i!==void 0){let u=c,d=a?.content??{type:Dt.TS};if(c===void 0&&h!==void 0&&n?.type===V.NumberAxisFormat){let p=ve(t.chart.uid,"formatLocale"),m=yl({type:n.type,iLocale:t.chart.language.locale,formatLocale:p});m.numberFormat=n.intlOptions,u=h({numberFormatter:m,dataLabelsConfigContent:d,stackedType:o})}let A;switch(e){case V.BarSeries:A="barSeriesDataLabelFormatter";break;case V.LineSeries:A="lineSeriesDataLabelFormatter";break}A!==void 0&&Po(t.uid,{[A]:u}),a!==void 0&&(a.content.text=l===!0?"{valueX}":"{valueY}",a.visible=a.visible!==!1),Cn({label:i,labelConfig:a,defaults:r??re.dataLabel}),tw(t)}}function kv(s,t){let e=t;e===void 0&&(e=ve(s.uid,"config"));let i=ve(s.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function AI(s,t){let e;return s instanceof Ct?e=t===!0?"dateY":"dateX":s instanceof Ot?e=t===!0?"categoryY":"categoryX":e=t===!0?"valueY":"valueX",e}function xA(s,t){s.name=t}function Cw(s){let{chart:t,lineSeries:e,applyPropertiesToClones:i}=s,r=e.bullets.push(new Oe);return RN(r.uid,{isBulletMarker:!0}),i!==!1&&(r.applyOnClones=!0),e.bulletsContainer.parent=t.seriesContainer,r}function ww(s){let{series:t,seriesConfig:e,rotationChanged:i,stackedType:r,isRotated:a}=s;switch(r){case Gi.Stacked:{t.stacked=!0,t instanceof Pi&&(t.stackToNegative=e.stackNegativeValuesToBaseline??re.lineSeries.stackNegativeValuesToBaseline),i===a?t.dataFields.valueYShow=void 0:t.dataFields.valueXShow=void 0,t.updateStacking();break}case Gi.Stacked100:{t.stacked=!0,a?t.dataFields.valueXShow="totalPercent":t.dataFields.valueYShow="totalPercent",t.updateStacking();break}case Gi.Side:default:{t.stacked=!1,i===a?t.dataFields.valueYShow=void 0:t.dataFields.valueXShow=void 0;break}}}function EH(s){return()=>{let{chart:t,marker:e}=s;e.clones.each(i=>{Ri(i,!HL(i,t))})}}function MH(s){let{chart:t,series:e,seriesType:i,marker:r,numberOfChartSeries:a,ignoreSmoothRenderingLimit:n}=s,o=EH({marker:r,chart:t}),l=a??1,h=t.data.length*l+l;n!==!0&&h>re.elementLimitForSmoothRendering&&(o=zs(o,re.debounceTime)),t.xAxes.getIndex(0)?.events.on(ke.Validated,o),t.yAxes.getIndex(0)?.events.on(ke.Validated,o),i===V.LineSeries&&(t.xAxes.getIndex(0)?.events.on(ke.Validated,()=>{tw(e)}),t.yAxes.getIndex(0)?.events.on(ke.Validated,()=>{tw(e)}))}function pI(s,t){s.series.each(e=>{let i=Hs(e.uid,t);i!==void 0&&!i.isDisposed()&&i.dispose()})}function RH(s){let t;return s!==void 0&&s.series.length>0&&(t=s.series.values.map(e=>e.visible?e.id:"").filter(e=>e!=="")),t}function WC(s){let{dataItem:t,y:e,splitBy:i,showOutliers:r}=s,a=er({key:Kt.Min,y:e,splitBy:i,showOutliers:r}),n=er({key:Kt.Max,y:e,splitBy:i,showOutliers:r}),o=er({key:Kt.FirstQuartile,y:e,splitBy:i,showOutliers:r}),l=er({key:Kt.ThirdQuartile,y:e,splitBy:i,showOutliers:r});return Number.isFinite(t[a])&&Number.isFinite(t[n])&&Number.isFinite(t[o])&&Number.isFinite(t[l])}function UH(s,t){let e=0;if(s!==void 0&&t!==void 0){let i=No(t.series),r=It(t.series),a=Ro(t);s.data.forEach(n=>{switch(r){case Ee.BoxPlotMonoField:case Ee.BoxPlotMultiFields:case Ee.BoxPlotMonoFieldAndCategory:WC({dataItem:n,showOutliers:a})&&(e+=1);break;case Ee.BoxPlotMultiFieldsAndCategory:i.forEach(o=>{WC({dataItem:n,y:o,showOutliers:a})&&(e+=1)});break;case Ee.BoxPlotMonoFieldAndSplitBy:case Ee.BoxPlotMultiFieldsAndSplitBy:case Ee.BoxPlotMonoFieldAndCategoryAndSplitBy:t.series.forEach(o=>{WC({dataItem:n,splitBy:o.query?.where,showOutliers:a})&&(e+=1)});break}})}return e}function z1(){return s=>{let t=ve(s.chart.uid,"config"),e=!1;if(t!==void 0&&s instanceof Wr){let i=UH(s.chart,t),r=0,a=0,n=0,o=0,l=0;s.chart.series.values.forEach(u=>{if(u instanceof wr)r+=u.columns.length;else if(u instanceof Pi&&!(u instanceof pa)){let d=Zr(u);if(d!==void 0&&!d.disabled){let A=d.clones.values.filter(p=>!(p.dataItem instanceof fo))?.length??0;if(Hs(u.uid,"isBoxPlotMeanLineSeries")===!0){o+=A;let p=u.data.filter(m=>Number.isFinite(m[u.dataFields.valueX??u.dataFields.valueY??""])).length;l+=p}else{let p=u.data.filter(m=>Number.isFinite(m[u.dataFields.valueX??u.dataFields.valueY??""])).length;n+=p,a+=A}}}});let h=n===0||a>=n,c=l===0||o>=l;e=r>=i&&h&&c&&s.chart.appeared&&s.isReady()&&s.chart.isReady()}return e}}function VH(s,t){let e;switch(s){case V.BarSeries:e=(i,r)=>{if(i instanceof Hi){let a=_n({chart:i.chart}),n=0;if(r.type===V.BarSeries){let o=(a?i.dataFields.valueX:i.dataFields.valueY)??r.y;n=i.chart?.data?.filter(l=>Number.isFinite(l[o])).length}return i.chart.isReady()&&i.columns.length===n}return!1};break;case V.LineSeries:t===!0?e=z1():e=(i,r)=>{if(i instanceof Pi){let a=_n({chart:i.chart}),n=Zr(i),o=0;if(r.type===V.LineSeries){let{y:l}=r,h=(a?i.dataFields.valueX:i.dataFields.valueY)??[l].flat()[0];o=i.chart?.data?.filter(c=>Number.isFinite(c[h])).length}return i.chart.appeared&&i.chart.isReady()&&n!==void 0&&n.clones.values.length>=o}return!1};break;case V.PieSeries:e=i=>i instanceof ws&&i.slices.length>0;break;case V.BoxPlotSeries:e=z1();break}return e}function fI(s){let{series:t,callbackInfo:e,seriesConfig:i,onReadyEvent:r}=s,{type:a}=e,n=ze([i]),o=Hs(t.uid,"isBoxPlotMeanLineSeries"),l=a==="style"?"updateStyleCallbackDisposer":"updateSelectionCallbackDisposer",h=async d=>{let{type:A,callbackProps:p}=d;A==="selection"?y2(p):d.styleCallback!==void 0&&(Ri(t,i.visible),await d.styleCallback(p))};r===!0&&t.events.once(ke.Ready,async()=>await h(e));let c=Hs(t.uid,l);c!==void 0&&c.dispose();let u=VH(n,o);c=(n===V.PieSeries?t.chart:t).events.on(ke.Validated,async()=>{u!==void 0&&u(t,i)&&(c!==void 0&&c.dispose(),await h(e))}),t.dispatchImmediately(ke.Validated),Po(t.uid,{[l]:c})}function $v(s){let{series:t,styleCallback:e,callbackProps:i,onReadyEvent:r,seriesConfig:a}=s;fI({callbackInfo:{styleCallback:e,callbackProps:i,type:"style"},series:t,seriesConfig:a,onReadyEvent:r})}function NH(s){let{series:t,callbackProps:e,seriesConfig:i,onReadyEvent:r}=s;fI({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i,onReadyEvent:r})}function Hc(s){let{defaultChartItemRole:t}=re.aria;s instanceof wr||s instanceof Hi?(s.columns.template.properties.role=t,s.columns.template.focusable=!0,s.columns.template.hoverOnFocus=!0,s.itemReaderText=tp()):s instanceof pa?s.segments.template.properties.role=t:s instanceof Pi?s.bullets.values.forEach(e=>{e.focusable=!0,e.properties.role=t,e.readerTitle=tp(),e.hoverOnFocus=!0}):s instanceof ws&&(s.slices.template.properties.role=t,s.slices.template.hoverOnFocus=!0,s.itemReaderText="{category} {value.formatNumber('#.#')} {value.percent.formatNumber('#.#')}%")}function HH(s){let t=ve(s.uid,"config");s.series.each(e=>{let i=t?.series?.find(r=>r.id===e.id);i!==void 0&&i.visible!==!1&&!e.visible&&Ri(e)})}function Ov(s,t){let e=ze(t?.series);return t?.series.find(i=>{let r=!1;return e!==V.BoxPlotSeries||s instanceof wr?r=s.id===i.id:s instanceof pa?r=s.id.replace(`_${Wi.Top}`,"")===i.id||s.id.replace(`_${Wi.Median}`,"")===i.id||s.id.replace(`_${Wi.Bottom}`,"")===i.id:s instanceof Pi&&(r=s.id.replace(`_${Wi.Outliers}`,"")===i.id),r})}var aa={CustomActive:"custom-active",CustomInactive:"custom-inactive",Default:"default",Active:"active"};function QH(s,t){let e=!1;if(t!==void 0&&Ef(s)){let i=Tt.spriteRectToSvg(s.bbox,s),r=t.x,a=t.y,n=t.x+t.width,o=t.y+t.height,l=i.x,h=i.y,c=i.x+i.width,u=i.y+i.height;e=!(l>n||c<r||h>o||u<a)}return e}function Qc(s){let{element:t,customSelectionTheme:e,useNativeState:i}=s,r=i===!0?aa.Active:aa.CustomActive,a=t.states.getKey(r)??t.states.create(r),n=t.states.getKey(aa.CustomInactive)??t.states.create(aa.CustomInactive),{selectedElementsTheme:o,nonSelectedElementsTheme:l}=e??re.selectionTheme??{};Q1(a,o),Q1(n,l)}function Kn(s){let{element:t,selected:e,multiSelect:i,isDateOrCategoryAxis:r,useNativeState:a,backToDefaultState:n}=s;if(t!==void 0){let o=t.isActive;i!==!0?r===!0?o=t.isActive?!1:t.isActive!==e:o=e:o=t.isActive!==e,o!==t.isActive&&(t.isActive=o);let l=a===!0?aa.Active:aa.CustomActive,h=n===!0?aa.Default:aa.CustomInactive;t.setState(t.isActive?l:h,0),t.isActive&&(t.toFront(),t.dataItem?.component instanceof mo&&t.dataItem.component.toFront())}return t?.isActive??!1}function Ev(s,t){let e=!1;if(t instanceof Wt||t instanceof pr){let i=ve(t.uid,"actionMode");i!==void 0&&(e=i===Vt.MultiSelection||i===Vt.MultiSelectionWithCtrlKey&&(s?.event?.ctrlKey||s?.event?.metaKey))}return e}function mI(s){let t=s instanceof Wt&&s.zoomOutButton.isHover,e=s.legend.isHover,i=!1,r=!1,a=!1,n=!1;if(s instanceof Wt){i=s.xAxes.values.some(l=>l.renderer.labels.template.events.has(ke.Hit)&&l.renderer.isHover),r=s.yAxes.values.some(l=>l.renderer.labels.template.events.has(ke.Hit)&&l.renderer.isHover),a=i||r;let o=ve(s.uid,"config");Ca(o)&&(n=s.series.values.find(l=>l instanceof wr)?.isHover??!1)}return!t&&!e&&!a&&!n}function Bw(s,t){return s.values.filter(e=>{let i=!1,r=!e.isActive;if(!(e.dataItem instanceof fo)){e.isActive=!e.isActive;let a=ve(t.uid,"filterBySelection")!==!0&&r;Kn({element:e,selected:a}),i=r}return i})}function G1(s,t){let e=[],{columns:i,chart:r}=s,a=ve(r.uid,"config");if(a&&i!==void 0&&s.visible){let n=a?.series[0].x,o=s?.dataFields?.customValue??"",l=Dv(s,t),h=Ov(s,a),c=l===V.BoxPlotSeries?h?.y:bu(s),u={element:{},yAxisField:c,xAxisField:n,splitBy:o,seriesIndex:t,chartConfig:a};e=Bw(i,r).map(d=>({...u,element:d,elementDataContext:d.dataItem?.dataContext,elementIndex:d.dataItem?.index}))}return e}function Y1(s,t){let e=[];if(s.visible){let i=Zr(s)?.clones;if(i!==void 0){let{chart:r}=s,a=ve(r.uid,"config");if(a){let n=a.series[0].x??"",o=bu(s),l=s?.dataFields?.customValue??"",h={element:{},xAxisField:n,yAxisField:o,splitBy:l,seriesIndex:t,chartConfig:a};e=Bw(i,r).map(c=>({...h,element:c,elementDataContext:c.dataItem?.dataContext,elementIndex:c.dataItem?.index}))}}}return e}function jH(s){let t=[];if(s.visible){let{chart:e}=s,i=ve(e.uid,"config");if(i){let r=sI(s),a=bu(s),n={element:{},xAxisField:r,yAxisField:a,seriesIndex:0,chartConfig:i},o;t=Bw(s.slices,e).map(l=>{let h=l.dataItem?.dataContext??{};return ah(h)&&(o=Hf({groupOfSlicesDataContext:h})),{...n,element:l,elementIndex:l.dataItem?.index,elementDataContext:h}}),o!==void 0&&o.forEach((l,h)=>{t.push({...n,elementIndex:h,elementDataContext:l})})}}return t}function WH(s){let{chart:t,selectionSource:e,chartConfig:i}=s,r=!1,a=[];if($l(i)){if(r=Ca(i),a=t.series.values.filter(n=>!(n instanceof pa)),e===Pr.SelectionByClick){let n=new Set,o=a.find(l=>l instanceof wr&&l.isHover);o===void 0?a.forEach(l=>{l instanceof Pi&&(l.id.includes(Wi.Outliers)&&l.tooltip?.visible===!0||Hs(l.uid,"isBoxPlotMeanLineSeries"))&&n.add(l)}):n.add(o),a=Array.from(n)}}else a=t.series.values;return a=a.filter(n=>n.visible&&(!r||!(n instanceof wr||Hs(n.uid,"isBoxPlotOutliersSeries")))),a}async function gI(s){let{chart:t,cursorSelectionRectangle:e,multiSelect:i,selectionSource:r,hitElement:a,queryObject:n}=s,o=ve(t.uid,"config"),l=o?.series[0]?.x??"",h=[];ni(t.uid,{pendingSelectionQueries:!0});let c=[],u=!0;WH({chart:t,selectionSource:r,chartConfig:o}).forEach((d,A)=>{let p=Ov(d,o);if(o&&d.visible&&d instanceof Wr){let m=Dv(d,A)===V.BoxPlotSeries?p?.y:bu(d),f=d.dataFields?.customValue??"",g={element:{},yAxisField:m,xAxisField:l,splitBy:f,seriesIndex:A,chartConfig:o},y;d instanceof Hi||d instanceof wr?y=d.columns?.values:d instanceof pa?y=d.segments.values:d instanceof Pi&&(y=Zr(d)?.clones?.values,g.uniqueFeature=!0),y!==void 0&&(c=[...c,...y],y.forEach((x,w)=>{if(!(x.dataItem instanceof fo)){let S=x.isActive,D=x===a||QH(x,e);D&&(u=!1);let T=!1;S?D?T=r!==Pr.SelectionByClick:T=i===!0:T=D,T&&h.push({...g,element:x,elementDataContext:x.dataItem?.dataContext,elementIndex:w}),Kn({element:x,selected:T})}}))}}),u&&(h=[]),await Wf({chart:t,listSelectedElements:h,selectionSource:r,queryObject:n})}function XH(s,t){let e=async i=>{let r=i.target.cursor;if(r.xRange!==void 0){r.selection.isMeasured=!0,r.validate(),r.selection.validate();let a=Tt.spriteRectToSvg(r.selection.bbox,r.selection);if(r.selection.hide(),a.width>0||a.height>0){let n=Ev(i,s);await gI({chart:s,cursorSelectionRectangle:a,multiSelect:n,selectionSource:Pr.SelectionByRange,queryObject:t})}}r.selection.hide()};qn(s)&&s.events.on(ke.Up,async i=>{let r=i.target.cursor,a=kN(s.uid,"selectEndedCallbackDisposer");if(a!==void 0&&a.dispose(),r.xRange!==void 0&&i.event instanceof TouchEvent)await e(i);else{let n=r.events.once(ke.SelectEnded,async()=>{await e(i)});$N(s.uid,{selectEndedCallbackDisposer:n})}})}async function Cv(s){let{hitEvent:t,chart:e,queryObject:i}=s,{target:r}=t,a=ve(e.uid,"actionMode");if(e!==void 0&&mI(e)&&a!==Vt.None&&a!==Vt.Zoom&&(r instanceof Wt||t.point===void 0)){let n=t.svgPoint?{x:t.svgPoint.x,y:t.svgPoint.y,width:0,height:0}:void 0,o=Ev(t,e);await gI({chart:e,cursorSelectionRectangle:n,multiSelect:o,selectionSource:Pr.SelectionByClick,hitElement:r,queryObject:i})}}function zH(s,t){qn(s)&&(s.zoomOutButton.hoverable=!0,s.events.on(ke.Hit,async e=>await Cv({hitEvent:e,chart:s,queryObject:t})),s.events.on(ke.DoubleHit,async e=>await Cv({hitEvent:e,chart:s,queryObject:t})))}function Qf(s){let{chart:t,element:e,queryObject:i}=s;e.events.on(ke.Hit,async r=>await Cv({hitEvent:r,chart:t,queryObject:i})),e.events.on(ke.DoubleHit,async r=>await Cv({hitEvent:r,chart:t,queryObject:i}))}async function GH(s,t){let{series:e}=s;if(e.length>0){ni(s.uid,{pendingSelectionQueries:!0});let i=ve(s.uid,"config"),r=e.values.map((a,n)=>{let o=[];if(a.visible){let l=ze(i?.series,n);l===V.BarSeries?o=G1(a,n):l===V.LineSeries?o=Y1(a,n):l===V.PieSeries?o=jH(a):l===V.BoxPlotSeries&&(a instanceof wr?o=G1(a,n):a instanceof Pi&&!(a instanceof pa)&&(o=Y1(a,n)))}return o}).flat();await Wf({chart:s,listSelectedElements:r,selectionSource:Pr.ProgrammaticSelection,queryObject:t}),s instanceof pr&&s.feedLegend()}}function XC(s){if(qn(s))if(s.events.disableType(ke.Hit),s.events.disableType(ke.DoubleHit),s instanceof pr){let t=s.series.getIndex(0);t!==void 0&&(t.slices.template.clickable=!1,t.slices.template.togglable=!1,t.slices.template.events.disableType(ke.Hit),t.slices.template.events.disableType(ke.DoubleHit),t.labels.template.clickable=!1,t.labels.template.togglable=!1,t.labels.template.events.disableType(ke.Hit),t.labels.template.events.disableType(ke.DoubleHit))}else s instanceof Wt&&(s.xAxes.each(t=>wv(t,!0)),s.yAxes.each(t=>wv(t,!0)),s.events.disableType(ke.Up))}function YH(s){if(qn(s))if(s.events.enableType(ke.Hit),s.events.enableType(ke.DoubleHit),s instanceof pr){let t=s.series.getIndex(0);t!==void 0&&(t.slices.template.clickable=!0,t.slices.template.togglable=!0,t.slices.template.events.enableType(ke.Hit),t.slices.template.events.enableType(ke.DoubleHit),t.labels.template.clickable=!0,t.labels.template.togglable=!0,t.labels.template.events.enableType(ke.Hit),t.labels.template.events.enableType(ke.DoubleHit))}else s instanceof Wt&&(s.xAxes.each(t=>wv(t,!1)),s.yAxes.each(t=>wv(t,!1)),s.events.enableType(ke.Up))}function gu(s){let{element:t,stylingInfo:e,stateKey:i="default"}=s;if(t!==void 0&&e!==void 0){let r=t.states.getKey(i)?.properties??t.defaultState.properties;if(r.fill=e.pattern??e.fill,r.fillOpacity=Ne(r.fill.toString()).alpha===0?0:1,e.outline!==void 0){let{outline:a}=e;r.stroke=a.stroke,r.strokeOpacity=a.stroke.alpha===0?0:1,r.strokeDasharray=a.strokeDasharray,r.strokeLinecap=a.strokeLinecap,r.strokeWidth=a.strokeWidth}}}function Sw(s){return s.values.every(t=>t.isReady())}function jc(s,t){s.events.on(ke.Ready,()=>{let{chart:e}=s;e!==void 0&&Sw(s.chart.series)&&(HH(e),t(),xh(s.chart.htmlContainer))})}function mA(s,t){return t!=null&&t!==""?t:s}function yI(s,t){let e;switch(s){case Pn.Average:{e=t.statistics.mean;break}case Pn.ContinuousPercentile:{e=t.statistics.median;break}case Pn.Sum:{e=t.statistics.sum;break}case Pn.Minimum:{e=t.statistics.minimum;break}case Pn.Maximum:{e=t.statistics.maximum;break}case Pn.Variance:{e=t.statistics.variance;break}case Pn.DiscretePercentile:{e=t.statistics.discretePercentile;break}case Pn.NoAggregation:{e=t.statistics.noAggregation;break}case Pn.Count:default:{e=t.statistics.count;break}}return e}function Fw(s){let{config:t,fieldName:e="",utilsStrings:i}=s,r=t.series[0].query?.outStatistics?.[0].statisticType??Ub.statisticType,a=yI(r,i);return fA(i.statistics.aggregation,{statistics:a,fieldName:e})}function vI(s){let{config:t,fieldList:e,objectIdField:i,seriesIndex:r,isStacked100:a,utilsStrings:n}=s,o="",l=t.series[r].name,h=t.series[r],c=[h.y].flat()[0],u=t.axes,d=It(t.series),A=i??Eu.outStatistics.onStatisticField,p=h.query?.outStatistics?.[0].onStatisticField??A,m=Er(e,p),f=h.query?.outStatistics?.[0].statisticType??Ub.statisticType,g=yI(f,n);return d===Ee.BarAndLineNoAggregation?o=l??Er(e,c):d===Ee.BarAndLineSplitByNoAggregation?o=Er(e,c):(o=f===Pn.Count&&p===A?n.statistics.count:fA(n.statistics.aggregation,{statistics:g,fieldName:m??l}),d===Ee.BarAndLineMonoField&&!a&&(o=mA(o,u[1].title?.content?.text))),o}function bI(s,t){let{dataTooltipStyle:e,dataTooltipStyleReversed:i}=re;if(t===!0){let r=s.background.fill;if(r!==void 0){s.background.stroke=r,s.background.strokeWidth=i?.outline?.width??Number.NaN,s.background.fill=xn(i?.color);let a=s.background.fill.rgb;if(a!==void 0){let n=s.label.fill;s.label.fill=Fg(a)?n?.darkColor:n?.lightColor}}}else s.getStrokeFromObject=!0,s.getFillFromObject=!0,s.background.strokeWidth=e?.outline?.width??Number.NaN,s.background.stroke=xn(e?.outline?.color)}function KH(s){let t=s.tooltip??new Ao;t.pointerOrientation="vertical",s instanceof wr||s instanceof pa?t.label.maxWidth=re.boxPlot.boxPlotTooltipLabelWidth:t.label.maxWidth=re.tooltipWidth,t.label.wrap=!0,t.events.on(ke.Shown,e=>{let i=ve(s.chart.uid,"config");if(i!==void 0){let r=Ov(s,i),{dataTooltipReverseColor:a}=r??{};bI(e.target,a)}})}function ZH(s){s instanceof qs||s.series.each(t=>{KH(t)})}function xI(s,t){s.tooltipHTML=re.htmlEmptyContent,s.adapter.add("tooltipHTML",(e,i)=>{let r=e??"",{chart:a}=t;if(a!==void 0){let n=ve(a.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)r="";else{let l=Hs(t.uid,"barAndLineTooltipFormatter");if(l!==void 0&&t.isReady()){let{dataItem:h}=i;if(h instanceof Bs||h instanceof Xa){let c=n?.series.find(u=>u.id===t.id);if(c!==void 0){let u=_n({config:n}),d=u?h.valueX:h.valueY,A=(u?h.values.valueX.totalPercent:h.values.valueY.totalPercent)/100,p=h.dataContext??{};if(p!==void 0){let m=ve(a.uid,"rendererFieldNames"),f=Mo({value:p[c.x],dataContext:p,useRendererLabel:JA(n,m),specificField:rp(It([c]),c)}),g=so(p);g===void 0&&(g=f);let y=p[re.dateBinningRange];r=l({seriesName:t.name,xValue:f,originalXValue:g,dateBinningRange:y,statValue:d,percentValue:A})}}}}}}return Mr(r)}),s.tooltipPosition=t instanceof Pi?re.markerTooltipPosition:re.columnTooltipPosition,t.cursorTooltipEnabled=!1}function qH(s){let{isStacked100:t,series:e,statValue:i,percentValue:r,yAxisValueFormat:a,dataTooltipValueFormat:n,dataTooltipPercentFormat:o}=s,l=n;l===void 0&&(xa(a)&&a?(l=a,t&&(l.intlOptions.style="decimal")):l=Qm());let h=ve(e.chart.uid,"formatLocale"),c=i!==void 0?Rf({value:i,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:h}):"",u="";if(t&&r!==void 0){let d=o;d===void 0&&(d=zb(),d.intlOptions.minimumFractionDigits=2,d.intlOptions.maximumFractionDigits=2),u=Rf({value:r,valueFormat:d,iLocale:e.chart.language.locale,formatLocale:h})}return{formattedStatValue:c,formattedPercentValue:u}}function JH(s){let{series:t,dateRange:e,xAxisValueFormat:i}=s,r,a=ve(t.chart.uid,"timeIntervalInfo");if(e!==void 0&&e.length>0){let n={};switch(a?.unit){case tr.Second:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};break;case tr.Minute:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case tr.Hour:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case tr.Day:case tr.Week:case tr.Month:case tr.Year:n={month:"numeric",day:"numeric",year:"numeric"};break}n.timeZone=i.intlOptions.timeZone;let o=new Date(e[0]),l=new Date(e[1]);if(!Number.isNaN(o.valueOf())){let h=ve(t.chart.uid,"formatLocale"),c=yl({type:V.DateAxisFormat,iLocale:t.chart.language.locale,formatLocale:h}),u=c.format(o,n);if(r=u,!Number.isNaN(l.valueOf())){let d=c.format(l,n);d!==u&&(r=`${r} - ${d}`)}}}return r?.toString()??""}function _I(s){let{seriesConfig:t,xAxisValueFormat:e,setTimeBinningInfoWhenNotProvided:i,dataTooltipValueFormat:r,dataTooltipDateFormat:a,series:n,xValue:o,dateBinningRange:l,isTimeOnlyField:h,queryObject:c}=s,u,d=ve(n.chart.uid,"formatLocale");return qm({seriesConfig:t,xAxisValueFormatType:e?.type,setTimeBinningInfoWhenNotProvided:i,queryObject:c})&&l!==void 0&&e?.type===V.DateAxisFormat?u=JH({series:n,dateRange:l,xAxisValueFormat:e}):ro(e)?h&&typeof o=="number"?u=new Date(o).toLocaleTimeString(d):(o instanceof Date||typeof o=="number"&&Number.isFinite(o))&&(u=Rf({value:o,valueFormat:a??e,iLocale:n.chart.language.locale,formatLocale:d})):typeof o=="number"&&xa(e)?u=Rf({value:o,valueFormat:r??e,iLocale:n.chart.language.locale,formatLocale:d}):u=o,u?.toString()??""}function eQ(s){let{series:t,fieldList:e,queryObject:i,setTimeBinningInfoWhenNotProvided:r,seriesIndex:a,seriesConfig:n,utilsStrings:o}=s,{dataTooltipValueFormat:l,dataTooltipPercentFormat:h,dataTooltipDateFormat:c}=n,u=()=>"",{chart:d}=t;if(d!==void 0){let A=ve(d.uid,"config");if(A!==void 0){let{dataTooltipVisible:p}=n,m=t instanceof Pi?n.markerVisible:void 0;if(p===!1||m===!1)u=()=>"";else{let f=A.axes,g=f[0].valueFormat,y=f[1].valueFormat,x=It(A.series),w=e?.find(R=>R.name===n.x)?.type===GA.TimeOnly,S=Ua(A)===Gi.Stacked100,D=_h(Ys(i)).idField,T=Er(e,n.x),L=mA(T,f[0].title?.content.text),$=vI({config:A,fieldList:e,objectIdField:D,seriesIndex:a,utilsStrings:o,isStacked100:S}),I=Ra(d.rtl);u=R=>{let{statValue:F,percentValue:H,xValue:K,dateBinningRange:z}=R,ee=_I({seriesConfig:n,xAxisValueFormat:g,dataTooltipValueFormat:l,dataTooltipDateFormat:c,setTimeBinningInfoWhenNotProvided:r,series:t,xValue:K,dateBinningRange:z,isTimeOnlyField:w,queryObject:i}),{formattedStatValue:ie,formattedPercentValue:de}=qH({isStacked100:S,yAxisValueFormat:y,dataTooltipValueFormat:l,dataTooltipPercentFormat:h,series:t,statValue:F,percentValue:H}),G=[`<b>${L}${I} </b>${ee}`];switch(x){case Ee.BarAndLineFromFields:{G.pop();let Y=Fw({config:A,fieldName:Er(e,ee??""),utilsStrings:o});G.push(`<b>${Y}${I} </b>${ie}`);break}case Ee.BarAndLineMonoField:case Ee.BarAndLineNoAggregation:case Ee.BarAndLineMultiFields:G.push(`<b>${$}${I} </b>${ie}`);break;case Ee.BarAndLineSplitByNoAggregation:case Ee.BarAndLineSplitBy:{let Y=Vo(n.query?.where,!1),xe=hx({value:Er(e,Y),escape:!0});G.push(`<b>${xe}${I} </b>${t.name}<br /><b>${$}${I} </b>${ie}`)}break}return S&&G.push(`<b>${o.statistics.percent}${I} </b>${de}`),G.join("<br />")}}}}return u}function CI(s){let{series:t,tooltipFormatter:e}=s;Po(t.uid,{barAndLineTooltipFormatter:e??eQ(s)})}function Tw(s){let{target:t,defaultTooltipHTML:e,candleStickSeries:i,meanLineSeries:r,outliersSeries:a,tooltipCallback:n}=s,o=e,l=i??r;if(l!==void 0){let{chart:h}=l;if(h!==void 0){let c=ve(h.uid,"config"),{dataTooltipVisible:u}=c?.series[0]??{};if(u===!1)o="";else{let d=Hs(l.uid,"boxPlotTooltipFormatter");d!==void 0&&l.isReady()&&c&&(o=n({target:t,defaultTooltipHTML:e,config:c,candleStickSeries:i,meanLineSeries:r,outliersSeries:a,boxPlotTooltipFormatter:d}))}}}return Mr(o)}function tQ(s){let{target:t,defaultTooltipHTML:e,config:i,candleStickSeries:r,outliersSeries:a,boxPlotTooltipFormatter:n}=s,o=e;if(r!==void 0&&a!==void 0){let l=r.dataItems.values.find(c=>(c.categories.categoryX??c.categories.categoryY)===(t.dataItem?.categories.categoryX??t.dataItem?.categories.categoryY)),h=i.series.find(c=>c.id===r.id);if(h!==void 0){let c=l?.dataContext??{};if(c!==void 0){let u=Mo({value:c[h.x],dataContext:c,useRendererLabel:Ol(i),specificField:ht.xAxisField}),d=so(c);d===void 0&&(d=u),o=n({seriesName:a.name,xValue:u,originalXValue:d,dataContext:c})}}}return o}function iQ(s){let{target:t,defaultTooltipHTML:e,config:i,meanLineSeries:r,boxPlotTooltipFormatter:a}=s,n=e;if(r!==void 0){let o=r.dataItems.values.find(l=>(l.categories.categoryX??l.categories.categoryY)===(t.dataItem?.categories.categoryX??t.dataItem?.categories.categoryY));if(o instanceof Xa){let l=i.series.find(h=>h.id===r.id);if(l!==void 0){let h=o.dataContext??{};if(h!==void 0){let c=Mo({value:h[l.x],dataContext:h,useRendererLabel:Ol(i),specificField:ht.xAxisField}),u=so(h);u===void 0&&(u=c),n=a({seriesName:r.name,xValue:c,originalXValue:u,dataContext:h})}}}}return n}function rQ(s){let{target:t,defaultTooltipHTML:e,config:i,candleStickSeries:r,boxPlotTooltipFormatter:a}=s,n=e;if(r!==void 0){let o=t.dataItem;if(o instanceof Ac){let l=i.series.find(h=>h.id===r.id);if(l!==void 0){let h=o.dataContext??{};if(h!==void 0){let c=Mo({value:h[l.x],dataContext:h,useRendererLabel:Ol(i),specificField:ht.xAxisField}),u=so(h);u===void 0&&(u=c),n=a({seriesName:r.name,xValue:c,originalXValue:u,dataContext:h})}}}}return n}function sQ(s){s.cursorTooltipEnabled=!1,s.tooltipPosition=re.columnTooltipPosition,s.columns.template.tooltipHTML=re.htmlEmptyContent,s.columns.template.adapter.add("tooltipHTML",(t,e)=>Tw({target:e,defaultTooltipHTML:t??"",candleStickSeries:s,tooltipCallback:rQ}))}function aQ(s,t){let e=Zr(s);e!==void 0&&(e.tooltipPosition=re.markerTooltipPosition,e.tooltipHTML=re.htmlEmptyContent,s.cursorTooltipEnabled=!1,e.adapter.add("tooltipHTML",(i,r)=>Tw({target:r,defaultTooltipHTML:i??"",candleStickSeries:t,outliersSeries:s,tooltipCallback:tQ})))}function nQ(s){let t=Zr(s);t!==void 0&&(s.cursorTooltipEnabled=!1,t.tooltipPosition=re.markerTooltipPosition,t.tooltipHTML=re.htmlEmptyContent,t.adapter.add("tooltipHTML",(e,i)=>Tw({target:i,defaultTooltipHTML:e??"",meanLineSeries:s,tooltipCallback:iQ})))}function du(s){let{label:t,value:e,strongColon:i,useTable:r}=s,a=`<b>${t}${i}</b> ${e}`;return r!==!1?`<tr><td>${a}</td></tr>`:a}function oQ(s){let{dataContext:t,series:e,dataTooltipValueFormat:i,y:r,splitBy:a,utilsStrings:n,useTable:o}=s,l=i??Qm(),h=Object.values(Kt),c=Ra(e.rtl),u=o!==!1?['<tr><td colspan="2"><hr style="border-top: solid black;"></td></tr>']:[""];return h.forEach(d=>{let A=er({key:d,y:r,splitBy:a}),p=t[A];if(p!=null&&typeof p=="number"){let m=ve(e.chart.uid,"formatLocale"),f=Rf({value:p,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:m}),g="";switch(d){case Kt.Min:g=n.statistics.minimum;break;case Kt.FirstQuartile:g=n.statistics.firstQuartile;break;case Kt.Median:g=n.statistics.median;break;case Kt.ThirdQuartile:g=n.statistics.thirdQuartile;break;case Kt.Max:g=n.statistics.maximum;break;case Kt.IQR:g=n.statistics.iqr;break;case Kt.Average:g=n.statistics.mean;break;case Kt.StandardDeviation:}Lu(g)||u.push(du({label:g,value:f,strongColon:c,useTable:o}))}}),u}function lQ(s){let{series:t,fieldList:e,seriesConfig:i,utilsStrings:r,queryObject:a}=s,{dataTooltipValueFormat:n}=i,o=()=>"",{chart:l}=t;if(l!==void 0){let h=ve(l.uid,"config");if(h!==void 0){let c=h.axes,u=c?.[0].valueFormat,{showMean:d}=h,A=It(h.series),p=Vo(i.query?.where),m=Er(e,p),f=Ch({where:i.query?.where,escape:!1}),g=Er(e,i.x),y;i.x!==Hm&&(y=mA(g,c?.[0].title?.content.text));let x=Ra(l.rtl);o=w=>{let{dataContext:S,xValue:D}=w,T=_I({seriesConfig:i,xAxisValueFormat:u,series:t,xValue:D,queryObject:a}),L=[],$=T!==void 0&&!Lu(T)?Er(e,T):"",I=d===!0?[h.series[0].y].flat()[0]:[i.y].flat()[0],R=Er(e,I);switch(A){case Ee.BoxPlotMonoField:case Ee.BoxPlotMultiFields:case Ee.BoxPlotMonoFieldAndSplitBy:case Ee.BoxPlotMultiFieldsAndSplitBy:{if(T!==void 0&&!Lu(T)){let ee=A===Ee.BoxPlotMonoField?i.name??$:$;L.push(du({label:r.field,strongColon:x,value:ee}))}Yi(m)||L.push(du({label:m,strongColon:x,value:i.name??f?.toString()}));break}case Ee.BoxPlotMonoFieldAndCategory:case Ee.BoxPlotMultiFieldsAndCategory:{L.push(du({label:r.field,strongColon:x,value:i.name??R})),T!==void 0&&!Lu(T)&&L.push(du({label:y,strongColon:x,value:$}));break}case Ee.BoxPlotMonoFieldAndCategoryAndSplitBy:L.push(du({label:r.field,strongColon:x,value:R})),T!==void 0&&!Lu(T)&&L.push(du({label:y,strongColon:x,value:$})),Yi(m)||L.push(du({label:m,strongColon:x,value:i.name??f?.toString()}));break}let F=[Ee.BoxPlotMultiFieldsAndCategory],H=S[re.boxPlot.boxPlotMeanLineMarkerId]!==void 0,K=L.length>0&&!H,z=oQ({dataContext:S,series:t,dataTooltipValueFormat:n,splitBy:i.query?.where,y:F.includes(A)?[i.y].flat()[0]:void 0,utilsStrings:r,useTable:K});return K?`${L.join("<br>")}<table>${z.join("")}</table>`:`${L.join("<br>")}${z.join("<br>")}`}}}return o}function hQ(s){let{series:t,tooltipFormatter:e}=s;Po(t.uid,{boxPlotTooltipFormatter:e??lQ(s)})}function uQ(s){let t=vl(re.dataLabelInitialize);return mu(t.uid,{isDataLabel:!0}),s.bullets.push(t),cI(t),lI(V.LineSeries,t),hI(V.LineSeries,t),rw(t,s),t.html="{valueX}",t}function cQ(s){let{series:t}=s,e=iw(t,"bullets");dI({...s,dataLabel:e,defaultDataLabelFormatter:uI})}var B={Rotated:0,NonRotated:1,RTL:2,LTR:3,Stacked:4,Stacked100:5,SideBySide:6,LegendTop:7,LegendBottom:8,LegendLeft:9,LegendRight:10,DateAxis:11,ValueAxis:12,CategoryAxis:13,OrderByFieldsASC:14,OrderByFieldsDESC:15},wI=new Set([`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`]);function dQ(s,t){t!==void 0&&(t.layout!==void 0&&(s.layout=t.layout),t.width!==void 0&&(s.width=H1(t.width)),t.height!==void 0&&(s.height=H1(t.height)),t.paddingTop!==void 0&&(s.paddingTop=t.paddingTop),t.paddingBottom!==void 0&&(s.paddingBottom=t.paddingBottom))}function AQ(s){let t=!1,e=s.legend?.visible,i=s.legend?.title?.content.text,r=s.legend?.title?.visible;return t=e!==!1&&r!==!1&&i!==void 0&&i.length>0,t}function BI(s,t){let e=new Pe;return dQ(e,s),e.parent=t,e}function SI(s,t){s.disabled=t}function pQ(s,t){s.toBack()}function fQ(s){if(s instanceof qs){let{paddingTop:t,paddingRight:e,paddingBottom:i,paddingLeft:r}=re.gauge;s.padding(t,e,i,r)}else{let{paddingMinSize:t,marginMinSize:e,chartPaddingMinSize:i,chartContainer:r}=re;s.padding(i,i,i,i),s.chartAndLegendContainer.margin(e,e,e,e),s.chartAndLegendContainer.padding(t,t,t,t),s.chartContainer.margin(e,e,e,e),s.chartContainer.padding(r.paddingTop,t,t,t)}}function mQ(s,t){let e=(i,r)=>{let{chartContainer:a,chartAndLegendContainer:n}=re,o=ve(i.uid,"config");if(o!==void 0){let l=AQ(o),h=o.legend?.position;if(l)switch(h){case st.Top:i.chartAndLegendContainer.paddingTop=r.bbox.height??0,i.chartContainer.paddingBottom=a.paddingBottom??0;break;case st.Bottom:i.chartContainer.paddingBottom=r.bbox.height??0,i.chartAndLegendContainer.paddingTop=n.paddingTop??0;break;default:i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=a.paddingBottom??0;break}else i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=a.paddingBottom??0}};t.events.on(ke.PositionChanged,()=>{e(s,t)})}function Pw(s){let{iLocale:t,pieChart:e,valueIntlOptions:i,percentageIntlOptions:r,displayNumericValue:a,displayPercentage:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}=s,u=ve(e.uid,"formatLocale"),d=yl({type:V.NumberAxisFormat,iLocale:t,formatLocale:u}),A=yl({type:V.NumberAxisFormat,iLocale:t,formatLocale:u});d.numberFormat={...i},A.numberFormat={...r,style:"percent"};let p=Ra(e.rtl," ");return(m,f,g)=>{let y="";if(f!==void 0&&g!==void 0){let x=`${o??""}${d.format(f)}${l??""}`,w=`${h??""}${A.format(Math.abs(g/100))}${c??""}`;Number.isFinite(f)?a===!0&&n===!0?y=`${w}${p}(${x})`:a===!0?y=x:n===!0&&(y=w):y=""}return y}}function FI(s){let t=!1;if(s.position===st.Right||s.position===st.Left)t=!0;else{let e=s.labels.getIndex(0)?.parent?.x;e!==void 0&&(t=!s.labels.values.some(i=>i.parent?.x!==e))}return t}function gQ(s){let t=!1,e=s.labels.getIndex(0)?.parent?.y;return e!==void 0&&(t=!s.labels.values.some(i=>i.parent?.y!==e)),t}function yQ(s){s.events.on(ke.LayoutValidated,()=>{let t=FI(s),e=gQ(s),i=t||!e?bi.Right:bi.Center;s.valueLabels.template.horizontalCenter=yw(i),s.valueLabels.template.align=jL(i)})}function vQ(s){mu(s.valueLabels.template.uid,{isLegendValueLabel:!0}),s.valueLabels.template.adapter.add("htmlOutput",(t,e)=>{let i=t,r=ON(s.uid,"pieChartLegendValueLabelsFormatter");if(r!==void 0&&(i=r(e.dataItem?.values?.value?.value??0,e.dataItem?.values?.value?.percent??0)),Yi(i)&&(i=re.htmlEmptyContent),s.baseSprite instanceof jl){let a=ve(s.baseSprite.uid,"config");a?.legend?.body!==void 0&&(i=_a({textSymbol:{...a.legend.body,text:i},format:"html"}))}return Mr(i)}),s.valueLabels.template.html=re.htmlEmptyContent,yQ(s)}function bQ(s){let{legendElements:{legend:t},seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r}=s,{visible:a,body:n,displayNumericValue:o,displayPercentage:l,displayCategory:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:c,percentValueFormat:u,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:m}=e[0],f=h??re.pieChart.displayCategoryOnLegend,g=o??re.pieChart.displayNumericValueOnLegend,y=l??re.pieChart.displayPercentageOnLegend,x=r;if(r===void 0){let D=Pw({iLocale:t.language.locale,pieChart:t.baseSprite,valueIntlOptions:c?.intlOptions,percentageIntlOptions:u?.intlOptions,displayNumericValue:g,displayPercentage:y,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:m});x=(T,L)=>D("",T,L)}EN(t.uid,{pieChartLegendValueLabelsFormatter:x});let w=FI(t),S={type:V.Text,visible:a,content:{...n,type:Dt.TS,text:".",verticalAlignment:Yt.Middle,horizontalAlignment:w?bi.Right:bi.Center}};Cn({label:t.valueLabels.template,labelConfig:S,defaults:re.legendProperties.valueLabels}),t.labels.template.disabled=f===!1,t.valueLabels.template.disabled=g===!1&&y===!1}}function xQ(s){let{dataContext:t}=s.target.dataItem??{};if(t instanceof Ta){let{component:e}=t;e instanceof ws&&e.showTooltip()}}function _Q(s){let t=()=>{let e=s.children.values.find(i=>i.className==="Container");if(e?.children.length===3){let i=e.children.values.findIndex(r=>r.className==="Container");if(i!==-1){let r=i!==0?0:2,a=e.children.getIndex(r)?.clonedFrom;a!==void 0&&gs(a.uid,"isLegendValueLabel")!==!0&&s.children.each(n=>{n.className==="Container"&&n.children.swap(1,r)})}}};s.events.on(ke.Validated,t),t()}function K1(s,t){let{legendLabelReducedOpacity:e}=re.legendProperties;s!==void 0&&(s.fillOpacity=t===!1?e:1)}function kf(s){let{labels:t,seriesId:e,sliceCategory:i}=s;t.each(r=>{i!==void 0?i===r.dataItem.category&&K1(r,r.dataItem.slice.visible??!0):e===r.dataItem?.component?.id&&K1(r,r.dataItem?.component?.visible??!0)})}function Dw(s){s instanceof ws?(s.slices.template.events.on(ke.Shown,t=>{let e=t.target.dataItem.category;kf({labels:s.chart?.legend?.labels,sliceCategory:e}),kf({labels:s.chart?.legend?.valueLabels,sliceCategory:e})}),s.slices.template.events.on(ke.Hidden,t=>{let e=t.target.dataItem.category;kf({labels:s.chart?.legend?.labels,sliceCategory:e}),kf({labels:s.chart?.legend?.valueLabels,sliceCategory:e})})):s.events.on(ke.VisibilityChanged,t=>{let e=t.target.id;kf({labels:s.chart?.legend?.labels,seriesId:e})})}function TI(s){let{title:t,visible:e}=s;return t!==void 0&&e!==!1&&t?.visible!==!1}function CQ(s,t){let{legendProperties:e}=re;if(s.position===st.Bottom)s.marginTop=e.marginTop??0,s.marginBottom=0,s.dy=0;else if(s.position===st.Top)s.marginBottom=e.marginBottom??0,s.marginTop=0,s.dy=0;else if(s.marginTop=0,s.marginBottom=0,!(s.baseSprite instanceof pr)){let i=TI(t),r=t.title?.content?.font?.size??re.generalFontSize;s.dy=-(i?r:15)}}function wQ(s){let t=s.baseSprite,e;if(t!==void 0){let i=ve(t?.uid,"config");e=t?.rtl&&(i?.legend?.position===st.Top||i?.legend?.position===st.Bottom)}return e??!1}function BQ(s){let t=s.baseSprite,e="";if(t instanceof Wt){let i=ve(t.uid,"config"),r=ks(i),a=r?B.Rotated:B.NonRotated,n=Ua(i),o=B.SideBySide;n===Gi.Stacked?o=B.Stacked:n===Gi.Stacked100&&(o=B.Stacked100);let l=t.rtl?B.RTL:B.LTR,h;switch(i?.legend?.position){case st.Left:h=B.LegendLeft;break;case st.Top:h=B.LegendTop;break;case st.Bottom:h=B.LegendBottom;break;case st.Right:default:h=B.LegendRight;break}let c=r?t.yAxes.getIndex(0):t.xAxes.getIndex(0),u;c instanceof Ct?u=B.DateAxis:c instanceof He?u=B.ValueAxis:u=B.CategoryAxis;let d=i?.orderOptions?.data&&"orderBy"in i.orderOptions.data&&i.orderOptions.data.orderBy===zA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;e=`${a}-${l}-${o}-${h}-${u}-${d}`}return e}function SQ(s){let t=BQ(s);return wI.has(t)}function PI(s,t){let{legend:e,legendTitle:i}=s??{};switch(t){case V.PieSeries:e.reverseOrder=wQ(e);break;case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:e.reverseOrder=SQ(e);break}let r=e.reverseOrder===!0?e.children.length-1:0;e.children.moveValue(i,r)}function FQ(s){if(s.visible){let t=ve(s.chart.uid,"config")?.series.find(e=>e.id===s.id);if(t!==void 0&&ze([t])===V.LineSeries){let{markerVisible:e}=t;e!==!1&&s.bulletsContainer.show()}}}function TQ(s,t){let e=s.target.dataItem,i=s.target.isActive;if(e?.dataContext!==void 0){let{dataContext:r}=e,a={visible:i};if(r instanceof Ta)ve(t.uid,"isNonAggregatedChart")===!0?a.sliceData=r.dataContext:a.sliceId=r.category;else if(r instanceof wr){let o=r.id,l=jf(t,o);if(l!==void 0){let d=ve(t.uid,"config"),A=Iw(d?.showOutliers,i),p=Zr(l);p!==void 0&&(p.disabled=!A),Ri(l,A)}let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Mv(t,o);h!==void 0&&Ri(h,i),c!==void 0&&Ri(c,i),u!==void 0&&Ri(u,i),a.seriesId=r.id}else a.seriesId=r.id;let n=r instanceof Ta?r.component:r;(n instanceof Wr||n instanceof ws)&&n.events.once(ke.Validated,()=>{n instanceof Wr&&(VI(n),n.events.dispatchImmediately(ke.Validated,{type:ke.Validated,target:n}));let o=n instanceof ws,l=ve(t.uid,"currentSelectionDataItems"),h=l!==void 0&&l.length>0,c=ve(t.uid,"actionMode")??re.actionMode,u;n instanceof Hi?u=n.columns:o?u=n.slices:n instanceof Pi&&(FQ(n),u=Zr(n)?.clones),u?.each(d=>{d.dataItem instanceof fo||(Kn({element:d,selected:d.isActive,useNativeState:o,backToDefaultState:!h}),o&&c===Vt.None&&(d.clickable=!1))})}),Jb(a,t.htmlContainer)}}function PQ(s){let{legendProperties:t,legendProperties:e}=re;s.adapter.add("paddingRight",()=>s.scrollbar.visible?e.legendPaddingRightWithScrollbarVisible:t.paddingRight),s.adapter.add("paddingLeft",()=>t.paddingLeft),s.adapter.add("paddingTop",()=>t.paddingTop),s.adapter.add("paddingBottom",()=>t.paddingBottom)}function DQ(s){s.scrollable=!0}function LQ(s){let t=vl(void 0,s);return t.adapter.add("paddingTop",e=>{let i=e,r=t.bbox.height;return r>0&&(i=-r),i}),t.adapter.add("x",e=>{let i=e,{marginLeft:r,marginRight:a}=re.legendProperties.legendTitle;switch(ve(s.baseSprite.uid,"config")?.legend?.title?.content?.horizontalAlignment){case bi.Left:i=t.measuredWidth+(r??0);break;case bi.Right:i=s.measuredWidth-t.measuredWidth-(a??0);break;case bi.Center:case bi.Justify:default:i=s.measuredWidth/2;break}return i}),t.adapter.add("disabled",e=>(e===!1&&t.validate(),e)),t}function IQ(s){let{legendConfig:t,legendTitle:e}=s,{title:i,position:r}=t,{legendTitle:a}=re.legendProperties,n=TI(t);if(i!==void 0){let o={...i,visible:n};Cn({label:e,labelConfig:o,defaults:a}),e.marginLeft=a.marginLeft??0}r===st.Top||r===st.Bottom?(e.maxWidth=Number.NaN,e.isMeasured=!1):(e.maxWidth=a.maxWidth??Number.NaN,e.marginTop=n?e.bbox?.height??i?.content?.font?.size??re.generalFontSize:0,e.isMeasured=!0)}function kQ(s){let t=re.legendProperties;s.labels.template=vl(t.legendLabels),s.valueLabels.template=vl(t.legendLabels),s.markers.template.width=t.legendMarkersSize,s.markers.template.height=t.legendMarkersSize,s.labels.template.adapter.add("wrap",()=>!0),s.labels.template.adapter.add("maxWidth",e=>{let i=e,r;if(s.baseSprite instanceof pr&&(r=ve(s.baseSprite.uid,"config")?.legend?.labelMaxWidth),s.position===st.Right||s.position===st.Left)i=r??re.legendProperties.legendLabels.maxWidth;else if(r!==void 0)i=r;else{let a=0;s.valueLabels.template.disabled||s.valueLabels.each(n=>{a=Math.max(a,n.measuredWidth)}),i=s.measuredWidth-a-45}return i}),s.labels.template.adapter.add("textOutput",(e,i)=>{let r=i.dataItem?.label?.currentText,a,n=ve(s.baseSprite.uid,"config");if(n!==void 0){let{series:o}=n;if(ze(o)===V.PieSeries){let l=It(o)===Ee.PieFromFields?io:o[0].x,h=i.dataItem?.dataContext?.[l];typeof h=="string"?a=h:h&&typeof h!="object"&&(a=h.toString())}else i.dataItem?.component instanceof mo&&(a=i.dataItem.component.name)}return(a!==void 0&&!Yi(a)?zm(a):a)??r}),s.valueLabels.template.adapter.add("maxWidth",e=>{let i=e,r;return s.baseSprite instanceof pr&&(r=ve(s.baseSprite.uid,"config")?.legend?.valueLabelMaxWidth),s.position===st.Right||s.position===st.Left?i=r??re.legendProperties.valueLabels.maxWidth:i=r??Number.NaN,i})}function $Q(s,t){s.itemContainers.template.events.on(ke.Hit,e=>TQ(e,t)),t instanceof pr&&s.itemContainers.template.events.on(ke.Over,e=>xQ(e))}function OQ(s){s.itemContainers.template.reverseOrder=s.rtl}function fv(s,t){s.adapter.keys().includes(t)||s.adapter.add(t,e=>{let i=e,r=s.dataItem?.dataContext;if(r!==void 0){let a=r instanceof Ta?r.component?.chart:r.chart;if(a!==void 0){let n=ve(a.uid,"config"),{rectangleMarkerRadius:o,roundedMarkerRadius:l}=re.legendProperties;i=n?.legend?.roundMarkers===!0?l:o}}return i})}function Z1(s){s.markers.each(t=>{let e=t.children.getIndex(0);e instanceof jr&&(fv(e,"cornerRadiusBottomLeft"),fv(e,"cornerRadiusBottomRight"),fv(e,"cornerRadiusTopLeft"),fv(e,"cornerRadiusTopRight"),e.validate())})}function EQ(s){s.markers.template.events.on(ke.Inited,()=>{Z1(s)}),s.events.once(ke.Validated,()=>{Z1(s)})}function MQ(s){let{legendElements:{legend:t},seriesConfig:e,webChartLegend:i}=s,{visible:r,body:a}=i??{},n=ze(e),o={type:V.Text,visible:r,content:{...a,type:Dt.TS,text:" "}};Cn({label:t.labels.template,labelConfig:o,defaults:re.legendProperties.legendLabels}),t.labels.template.valign=Yt.Middle,t.valueLabels.template.valign=Yt.Middle,n===V.PieSeries&&bQ(s),t.valueLabels.template.width=Number.NaN}function RQ(s,t){t.chartContainer.events.on(ke.SizeChanged,zs(()=>{let e=ve(t.uid,"config")?.legend?.maxHeight??Number.NaN;Number.isFinite(e)||(s.position===st.Top||s.position===st.Bottom?e=re.legendProperties.maxHeight:e=t instanceof pr?t.chartContainer.measuredHeight:t.seriesContainer.measuredHeight),s.maxHeight=e,s.invalidateLayout()}),re.debounceTime)}function UQ(s,t){let{position:e}=t;e===st.Top||e===st.Bottom?s.contentAlign=bi.Center:s.contentAlign="none"}function VQ(s,t){let{legend:e}=s;e.events.on(ke.DataItemsValidated,()=>{e.dataItems.length>0&&PI(s,t)})}function NQ(s,t){t===st.Right||t===st.Left?s.width=Number.NaN:s.maxWidth=Number.MAX_SAFE_INTEGER}function DI(s,t){let e=ai.pointer;t===!0?(s.itemContainers.template.clickable=!1,s.itemContainers.template.focusable=!1,e=ai.default):(s.itemContainers.template.clickable=!0,s.itemContainers.template.focusable=!0),s.itemContainers.values.forEach(i=>{i.cursorOverStyle=e})}function HQ(s,t){let e=new rc;s.legend=e,DQ(e);let i=LQ(e);return kQ(e),vQ(e),$Q(e,s),OQ(e),PQ(e),VQ({legend:e,legendTitle:i},ze(t)),RQ(e,s),mQ(s,i),_Q(e),s.legend.events.on(ke.ChildAdded,()=>{let r=ve(s.uid,"options");DI(e,r?.disableTogglingLegendItems)}),{legend:e,legendTitle:i}}function Lw(s){let{legendElements:t,seriesConfig:e,webChartLegend:i}=s,{legend:r,legendTitle:a}=t,n=r.baseSprite,o=(n===void 0?!0:ux(e))&&i?.visible!==!1;if(n&&i&&o){let{position:l=re.legendProperties.position}=i;Ri(r,!0),IQ({legendConfig:i,legendTitle:a}),EQ(r),MQ(s),UQ(r,i),PI(t,ze(e)),r.position=l,NQ(r,l),CQ(r,i),DI(r,ve(n.uid,"options")?.disableTogglingLegendItems)}else r.position=st.Right,r.width=0,Ri(r,!1)}function QQ(s){let{chart:t,chartConfig:e,seriesIndex:i,axisList:r=[],queryObject:a,hideLoaderHandle:n,selectionTheme:o,ignoreSmoothRenderingLimit:l}=s,h=e.series.length,{rotated:c}=e,u=e.series[i],{y:d,name:A,id:p,assignToSecondValueAxis:m}=u,f=new Pi;f.id=p,jc(f,n),xA(f,A);let g,y;c!==!0?(g=r[0],y=m===!0&&r[2]?r[2]:r[1]):(g=m===!0&&r[2]?r[2]:r[0],y=r[1]),g!==void 0&&(f.xAxis=g),y!==void 0&&(f.yAxis=y);let x=_n({chart:t}),w=It(e.series),S=w===Ee.BarAndLineSplitByNoAggregation?`${d.toString()}_${Ch({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:[d].flat()[0];x?f.dataFields.valueX=S:f.dataFields.valueY=S;let D=x?r[1]:r[0];if(D!==void 0){let $=AI(D,x);f.dataFields[$]=re.xAxisField}f.dataFields.customValue=u?.query?.where;let T=Ys(a);LI({series:f,seriesConfig:u,seriesIndex:i,chartSubType:w,colorMatch:e.colorMatch===!0,rendererType:Gm(e.chartRenderer,T?.renderer)}),II(u,f);let L=Cw({chart:t,lineSeries:f,applyPropertiesToClones:!1});return xI(L,f),uQ(f),Qc({element:L,customSelectionTheme:o}),Qf({chart:t,element:L,queryObject:a}),MH({chart:t,numberOfChartSeries:h,series:f,seriesType:V.LineSeries,marker:L,ignoreSmoothRenderingLimit:l}),Dw(f),Hc(f),f}function jQ(s){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:a,lineColor:n,rendererType:o}=s,l=Zr(t),h=!1,c;if(l!==void 0){r.markerVisible!==!1&&r.visible!==!1?t.bulletsContainer.show():t.bulletsContainer.hide();let{markerSymbol:u}=r;u===void 0&&(u=Gb(),u.color=n),a?u.color=n:u.color??=n;let d=new Set,A;_v({element:l,markerSymbol:u}),l.clones.each(p=>{if(p.dataItem instanceof fo)_v({element:p,markerSymbol:u}),p.states.getKey(aa.CustomActive)?.reset(),p.states.getKey(aa.CustomInactive)?.reset();else{let m=p.dataItem?.dataContext,f=on({seriesConfig:r,dataItem:m,chartSubType:i,colorMatch:a,rendererType:o}),g=Mc({seriesConfig:r,seriesIndex:e,seriesSymbol:u,element:p,colorMatch:a,rendererSymbol:f});c=g.symbolWithColorInfo,A=g.stylingInfo,gu({element:p,stylingInfo:A}),d.add(JSON.stringify(A))}}),h=d.size>1,h||gu({element:l,stylingInfo:A})}return h?void 0:c}function WQ(s){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:a}=s,n;return t.dataItems?.values.every(o=>{let l=!0,h=o.dataContext;return n=on({seriesConfig:e,dataItem:h,chartSubType:i,colorMatch:r,rendererType:a}),n!==void 0&&(l=!1),l}),n}function LI(s){let{series:t,seriesIndex:e,seriesConfig:i,chartSubType:r,colorMatch:a,rendererType:n}=s,o=t,l=WQ({series:o,seriesConfig:i,chartSubType:r,colorMatch:a,rendererType:n}),h=Mc({seriesConfig:i,seriesIndex:e,seriesSymbol:i.lineSymbol??Yb(e),element:o,colorMatch:a,rendererSymbol:l});return Ri(o,i.visible),h.symbolWithColorInfo}function II(s,t){s.showArea===!0?s.areaColor!==void 0?(t.fill=xn(s.areaColor),t.fillOpacity=t.fill.alpha===0?0:1):(t.fill=Ne(t.stroke.hex,1),t.fillOpacity=re.lineSeries.areaOpacity):t.fillOpacity=0}function kI(s){let{series:t,seriesIndexMapper:e,seriesSymbolMapForEvent:i,seriesIndex:r,colorMatch:a,rendererType:n}=s,o=s.seriesConfig,l=ve(t.chart.uid,"config"),h=l?.series.length??0,c=It(l?.series);Ri(t,o.visible);let u=LI({series:t,seriesConfig:o,seriesIndex:r,chartSubType:c,colorMatch:a,rendererType:n}),d=jQ({series:t,seriesIndex:r,seriesConfig:o,chartSubType:c,colorMatch:a,lineColor:u.color,rendererType:n});i.set(e.get(o.id)??r,{lineSymbol:u,markerSymbol:d}),II(o,t),i.size===h&&(nn({data:i,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:kv(t.chart)}),t.chart.feedLegend())}function XQ(s){let{seriesConfig:t,lineSeries:e,isRotated:i}=s;t.lineSmoothed===!0?e.smoothing=i?Vb.MonotoneY:Vb.MonotoneX:e.smoothing=re.lineSeries.lineSmoothedKind}function q1(s,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;s.connect=e!==!1&&r!==Nb.Null}function zQ(s){let{seriesConfig:t,series:e,axes:i,rotationChanged:r,seriesIndex:a,fieldList:n,stackedType:o,queryObject:l,options:h,utilsStrings:c}=s,{visible:u,name:d}=t,A=i[1].valueFormat,p=ve(e.chart.uid,"config"),m=_n({config:p}),f=It(p?.series);e.id=t.id,Ri(e,u);let g=d,y=e.dataFields?.customValue??"";(f===Ee.BarAndLineSplitBy||f===Ee.BarAndLineSplitByNoAggregation)&&(g=Zm({queryObject:l,fieldName:Vo(y),fieldValue:g})??g),xA(e,g),q1(e,t),ww({series:e,seriesConfig:t,rotationChanged:r,stackedType:o,isRotated:m}),q1(e,t),$v({styleCallback:kI,callbackProps:s,series:e,seriesConfig:t,onReadyEvent:!0}),XQ({seriesConfig:t,lineSeries:e,isRotated:m}),CI({series:e,seriesConfig:t,fieldList:n,queryObject:l,seriesIndex:a,setTimeBinningInfoWhenNotProvided:h?.setTimeBinningInfoWhenNotProvided,utilsStrings:c,tooltipFormatter:h?.tooltipFormatter}),cQ({series:e,seriesType:V.LineSeries,stackedType:o,dataLabelsConfig:t.dataLabels,yAxisValueFormat:A,customDataLabelFormatter:h?.dataLabelFormatter})}function Mv(s,t){let e=s.series.values.find(a=>a.id===`${t}_${Wi.Top}`),i=s.series.values.find(a=>a.id===`${t}_${Wi.Median}`),r=s.series.values.find(a=>a.id===`${t}_${Wi.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function jf(s,t){return s.series.values.find(e=>e.id===`${t}_${Wi.Outliers}`)}function Iw(s,t){return(s??re.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function GQ(s){let{chart:t,axisList:e=[],chartConfig:i,seriesIndex:r,hideLoaderHandle:a,selectionTheme:n,queryObject:o}=s,l=Ca(i),h=i.series[r],[c,u]=e,d=new wr;return d.hoverable=!0,jc(d,a),l||(Qc({element:d.columns.template,customSelectionTheme:n}),Qf({chart:t,element:d.columns.template,queryObject:o})),d.id=h.id,c!==void 0&&(d.xAxis=c),u!==void 0&&(d.yAxis=u),d.simplifiedProcessing=!0,d.columns.template.applyOnClones=!0,d.riseFromOpenState.reset(),d.riseFromPreviousState.reset(),d.dropFromOpenState.reset(),d.dropFromPreviousState.reset(),xA(d,h.name),Hc(d),d}function zC(s){let{axisList:t=[],chartConfig:e,seriesIndex:i,type:r,hideLoaderHandle:a,selectionTheme:n}=s,o=e.series[i],[l,h]=t,c=new pa;return c.hoverable=!0,jc(c,a),c.id=`${o.id}_${r}`,l!==void 0&&(c.xAxis=l),h!==void 0&&(c.yAxis=h),c.noRisers=!0,c.simplifiedProcessing=!0,Qc({element:c.segments.template,customSelectionTheme:n}),c.hiddenInLegend=!0,Hc(c),c}function YQ(s){let{chart:t,axisList:e=[],chartConfig:i,hideLoaderHandle:r,seriesIndex:a,selectionTheme:n,queryObject:o}=s,l=i.series[a],h=Ca(i),[c,u]=e,d=new Pi;Po(d.uid,{isBoxPlotOutliersSeries:!0}),jc(d,r),d.id=`${l.id}_${Wi.Outliers}`,c!==void 0&&(d.xAxis=c),u!==void 0&&(d.yAxis=u),d.simplifiedProcessing=!0,d.hiddenInLegend=!0,d.strokeOpacity=0;let A=Cw({chart:t,lineSeries:d});return h||(Qc({element:A,customSelectionTheme:n}),Qf({chart:t,element:A,queryObject:o})),Hc(d),d}function _A(s){let{chartConfig:t,seriesConfig:e,meanLineSeries:i,candleStickSeries:r,topStepLineSeries:a,medianStepLineSeries:n,bottomStepLineSeries:o,outliersSeries:l,creation:h=!1,rotationChanged:c,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:d}=s,{x:A,y:p}=e,m=h||c===!0||d===!0,f=m||u===!0,g=m,y=m;if(t!==void 0){let{showOutliers:x,standardizeValues:w,showMean:S}=t,D=_n({config:t});if(i instanceof Pi&&y){let F=It(t.series),H=e?.query?.where,K=er({y:F===Ee.BoxPlotMultiFieldsAndCategory?p:void 0,chartSubType:F,splitBy:H,showOutliers:x,standardizeValues:pd(F)?w:!1,key:Kt.Average});D?(i.dataFields.valueX=K,i.dataFields.categoryY=A):(i.dataFields.valueY=K,i.dataFields.categoryX=A),i.dataFields.customValue=H}let T=tg(t),L=It(T.series),$=S===!0?void 0:e?.query?.where,I={y:L===Ee.BoxPlotMultiFieldsAndCategory?p:void 0,chartSubType:L,splitBy:$,showOutliers:x,standardizeValues:pd(L)?w:!1};if(f){if(r instanceof wr){let F=er({...I,key:Kt.Min}),H=er({...I,key:Kt.FirstQuartile}),K=er({...I,key:Kt.Max}),z=er({...I,key:Kt.ThirdQuartile});D?(r.dataFields.lowValueX=F,r.dataFields.openValueX=H,r.dataFields.highValueX=K,r.dataFields.valueX=z,r.dataFields.categoryY=A):(r.dataFields.lowValueY=F,r.dataFields.openValueY=H,r.dataFields.highValueY=K,r.dataFields.valueY=z,r.dataFields.categoryX=A),r.dataFields.customValue=$}if(a instanceof pa&&n instanceof pa&&o instanceof pa){let F=er({key:Kt.Max,...I}),H=er({key:Kt.Median,...I}),K=er({key:Kt.Min,...I});D?(a.dataFields.valueX=F,n.dataFields.valueX=H,o.dataFields.valueX=K,a.dataFields.categoryY=A,n.dataFields.categoryY=A,o.dataFields.categoryY=A):(a.dataFields.valueY=F,n.dataFields.valueY=H,o.dataFields.valueY=K,a.dataFields.categoryX=A,n.dataFields.categoryX=A,o.dataFields.categoryX=A),a.dataFields.customValue=$,o.dataFields.customValue=$,n.dataFields.customValue=$}}if(l instanceof Pi&&g){let F=er({...I,key:Kt.Outlier});D?(l.dataFields.valueX=F,l.dataFields.categoryY=A):(l.dataFields.valueY=F,l.dataFields.categoryX=A),l.dataFields.customValue=$,l.invalidateRawData()}let R=i?.chart??r?.chart;R!==void 0&&(f||y)&&R.invalidateRawData()}}function KQ(s){let{chart:t,axisList:e=[],chartConfig:i,hideLoaderHandle:r,seriesIndex:a,selectionTheme:n,queryObject:o}=s,l=i.series[a],[h,c]=e,u=new Pi;Po(u.uid,{isBoxPlotMeanLineSeries:!0}),jc(u,r),u.id=l.id,h!==void 0&&(u.xAxis=h),c!==void 0&&(u.yAxis=c),u.simplifiedProcessing=!0;let d=Cw({chart:t,lineSeries:u});return Qc({element:d,customSelectionTheme:n}),Qf({chart:t,element:d,queryObject:o}),Hc(u),nQ(u),_A({chartConfig:i,seriesConfig:l,meanLineSeries:u,creation:!0}),u}function ZQ(s){let{chartConfig:t,seriesIndex:e}=s,i=t.series[e],r=ze([i]),a=[];if(r===V.BoxPlotSeries){let n=GQ(s),o=zC({...s,type:Wi.Top}),l=zC({...s,type:Wi.Median}),h=zC({...s,type:Wi.Bottom}),c=YQ(s);sQ(n),aQ(c,n),_A({chartConfig:t,seriesConfig:i,candleStickSeries:n,topStepLineSeries:o,medianStepLineSeries:l,bottomStepLineSeries:h,outliersSeries:c,creation:!0}),a.push(n,o,l,h,c)}else if(r===V.LineSeries){let n=KQ(s);a.push(n)}return a}function qQ(s){let{candleStickSeries:t,seriesConfig:e,stylingInfo:i,chartSubType:r,colorMatch:a,rendererType:n}=s;if(i!==void 0){let o={...i},l=nI({data:t.chart.data,colorMatch:a,chartSubType:r,rendererType:n});i?.outline!==void 0&&l&&(o.outline.stroke=Ec(re.boxPlot.boxPlotWhiskersColor));let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Mv(t.chart,t.id);if(h!==void 0&&c!==void 0&&u!==void 0&&o.outline!==void 0){o.outline.strokeWidth=re.boxPlot.boxPlotLineWidth,AA(h,o.outline),AA(c,o.outline),AA(u,o.outline);let d=e.visible!==!1;Ri(h,d),Ri(c,d),Ri(u,d)}}}function JQ(s){let{candleStickSeries:t,seriesConfig:e,showOutliers:i,seriesSymbol:r}=s;if(r!==void 0){let a=jf(t.chart,t.id);if(a!==void 0){let n=Zr(a);if(n!==void 0){let o=Iw(i,e.visible),l={type:Dt.SMS,style:YA.Circle,color:r.color,size:re.boxPlot.boxPlotOutliersSize};n.clones.each(h=>{let c=t.dataItems.values.find(u=>(u.categories.categoryX??u.categories.categoryY)===(h.dataItem?.categories.categoryX??h.dataItem?.categories.categoryY))?.column.fill;_v({element:h,markerSymbol:{...l,color:NL(c)??l.color},visible:o})})}}}}function e2(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:a,colorMatch:n,showMean:o,rendererType:l}=s,h,c,u,d=new Set,A=!1,p=e.fillSymbol??jm(i);if(t.columns.length===0?(u=Mc({seriesConfig:e,seriesIndex:i,seriesSymbol:p,element:new Oe,colorMatch:n,isChartFillSymbol:!0}),h=u.symbolWithColorInfo,c=u.stylingInfo):t.columns.each(m=>{u=Mc({seriesConfig:e,seriesIndex:i,seriesSymbol:p,element:m,colorMatch:n,isChartFillSymbol:!0,rendererSymbol:o?void 0:on({dataItem:m.dataItem?.dataContext,seriesConfig:e,chartSubType:a,colorMatch:n,rendererType:l})}),h=u.symbolWithColorInfo,c=u.stylingInfo,d.add(JSON.stringify(h))}),A=d.size>1,r>1){let m=t.legendDataItem?.marker.children.getIndex(0);m!==void 0?gu({element:m,stylingInfo:c}):t.chart.legend.events.once(ke.Validated,()=>{gu({element:t.legendDataItem?.marker.children.getIndex(0),stylingInfo:c}),t.chart.legend.invalidate()})}return{multipleSymbolsForOneSeries:A,seriesSymbol:h,stylingInfo:c}}function t2(s){let{series:t,showOutliers:e,colorMatch:i,seriesIndex:r,seriesIndexMapper:a,seriesSymbolMapForEvent:n,seriesConfig:o,rendererType:l,queryObject:h}=s,c=ve(t.chart.uid,"config"),u=Ca(c),d=c?.series.length??0,A=It(c?.series),p=!1,m;if(t instanceof wr&&o.type===V.BoxPlotSeries){let f=e2({series:t,seriesConfig:o,seriesIndex:r,numberOfSeries:d,chartSubType:A,colorMatch:i,showMean:u,rendererType:l}),{stylingInfo:g}=f;({multipleSymbolsForOneSeries:p,seriesSymbol:m}=f),n.set(a.get(o.id)??r,p?void 0:{fillSymbol:m??o.fillSymbol}),qQ({candleStickSeries:t,seriesConfig:o,colorMatch:i,stylingInfo:g,chartSubType:A,rendererType:l}),JQ({candleStickSeries:t,seriesConfig:o,showOutliers:e,seriesSymbol:m})}else t instanceof Pi&&o.type===V.LineSeries&&kI({series:t,seriesConfig:o,seriesIndexMapper:a,seriesSymbolMapForEvent:n,seriesIndex:r,colorMatch:i,rendererType:l});n.size===d&&nn({data:n,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:kv(t.chart)})}function i2(s){let{numberOfSeries:t,chart:e,showMean:i}=s,r=_n({chart:e}),a=r?e.yAxes.getIndex(0)?.renderer:e.xAxes.getIndex(0)?.renderer;if(a!==void 0){let{cellStartLocation:n,cellEndLocation:o}=a,l=n/(i===!0?1:t),h=e.series.values.filter(c=>c instanceof wr);h.forEach((c,u)=>{let d=n+u/h.length*(o-n)+l,A=n+(u+1)/h.length*(o-n)-l,{topStepLineSeries:p,medianStepLineSeries:m,bottomStepLineSeries:f}=Mv(e,c.id);p!==void 0&&(p.startLocation=d,p.endLocation=A),m!==void 0&&(m.startLocation=d,m.endLocation=A),f!==void 0&&(f.startLocation=d,f.endLocation=A);let g=jf(e,c.id);if(g!==void 0){let y=(d+A)/2;r?g.dataItems.template.locations.categoryY=y:g.dataItems.template.locations.categoryX=y}})}}function r2(s){let{outliersSeries:t,chartData:e,dataWasUpdated:i,rotationChanged:r,seriesReordered:a}=s;(r===!0||i===!0||a===!0)&&(t.data=e?.outliers??[])}function s2(s){let{meanLineSeries:t,chartData:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesReordered:n}=s;(i===!0||a===!0||r===!0||n===!0)&&(t.data=e?.meanLines??[],t.invalidateData())}function a2(s){let{chart:t,chartConfig:e,seriesConfig:i,chartData:r,candleStickSeriesId:a,showOutliers:n,dataWasUpdated:o,rotationChanged:l,seriesReordered:h,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:u}=s,d=jf(t,a);if(d!==void 0){let A=Zr(d);if(A!==void 0){let p=Iw(n,i.visible);A.disabled=!p,r2({outliersSeries:d,chartData:r,dataWasUpdated:o,rotationChanged:l,seriesReordered:h})}_A({chartConfig:e,seriesConfig:i,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:u,rotationChanged:l,outliersSeries:d})}}function n2(s){let{meanLineSeries:t,seriesConfig:e,chartData:i,dataWasUpdated:r,seriesReordered:a,sortChanged:n,rotationChanged:o,chartConfig:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c}=s;xA(t,e?.name),_A({chartConfig:l,seriesConfig:e,meanLineSeries:t,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,rotationChanged:o}),s2({meanLineSeries:t,chartData:i,dataWasUpdated:r,seriesReordered:a,sortChanged:n,rotationChanged:o})}function o2(s){let{series:t,chartConfig:e,seriesConfig:i,rotationChanged:r,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n}=s;xA(t,i?.name),t.hiddenInLegend=Ca(e),_A({chartConfig:e,seriesConfig:i,candleStickSeries:t,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:r})}function l2(s){let{chart:t,chartConfig:e,seriesConfig:i,candleStickSeriesId:r,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:o}=s,l=i.visible!==!1,{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Mv(t,r);h!==void 0&&Ri(h,l),c!==void 0&&Ri(c,l),u!==void 0&&Ri(u,l),_A({chartConfig:e,seriesConfig:i,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:o,topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u})}function h2(s){let{chart:t,series:e,chartData:i,utilsStrings:r,dataWasUpdated:a,sortChanged:n,seriesReordered:o,fieldList:l,outliersVisibilityChanged:h,showMean:c,seriesConfig:u,showOutliers:d,standardizeValuesVisibilityChanged:A,rotationChanged:p,options:m,queryObject:f}=s,{tooltipFormatter:g}=m??{};i2({numberOfSeries:s.numberOfSeries,chart:t,showMean:c});let y=ve(t.uid,"config");if(y!==void 0){if(e instanceof wr&&u.type===V.BoxPlotSeries){let{id:x}=e;o2({series:e,chartConfig:y,seriesConfig:u,rotationChanged:p,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A}),l2({chart:t,chartConfig:y,seriesConfig:u,candleStickSeriesId:x,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A,rotationChanged:p}),a2({chart:t,chartConfig:y,seriesConfig:u,chartData:i,showOutliers:d,candleStickSeriesId:x,dataWasUpdated:a,rotationChanged:p,seriesReordered:o,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A})}else e instanceof Pi&&u.type===V.LineSeries&&n2({chartConfig:y,chartData:i,meanLineSeries:e,seriesConfig:u,dataWasUpdated:a,seriesReordered:o,sortChanged:n,rotationChanged:p,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A});$v({styleCallback:t2,callbackProps:s,series:e,seriesConfig:u,onReadyEvent:!0}),hQ({series:e,seriesConfig:u,fieldList:l,tooltipFormatter:g,utilsStrings:r,queryObject:f})}}function u2(s){let t=s.series.getIndex(0);if(t!==void 0){let e=!1;t.slices.each(i=>{i.isActive&&(e=!0),Kn({element:i,selected:!1,backToDefaultState:!0})}),e&&s.feedLegend()}}function c2(s,t=!0){let e;s.series.each((i,r)=>{if(!t||i.visible){e=Dv(i,r);let a=[];if(e===V.BarSeries)a=i.columns?.values;else if(e===V.LineSeries)a=Zr(i)?.clones?.values;else if(e===V.BoxPlotSeries){if(i instanceof wr)a.push(...i.columns.values);else if(i instanceof pa)a.push(...i.segments.values);else if(i instanceof Pi){let n=Zr(i)?.clones?.values;n!==void 0&&a.push(...n)}}a!==void 0&&a.forEach(n=>{Kn({element:n,selected:!1,backToDefaultState:!0})})}})}function CA(s){let{chart:t,selectionSource:e,clearOnlyVisibleSeries:i,disposeStyleAndSelection:r}=s,a=ve(t.uid,"currentSelectionDataItems");r!==!1&&pI(t,"updateSelectionCallbackDisposer"),ni(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),qn(t)&&(t instanceof Wt?c2(t,i??!0):t instanceof pr&&u2(t)),a&&Mu({data:{selectionSource:e??Pr.ClearSelection},htmlContainer:t.htmlContainer})}function d2(s){dx(),ex(s.htmlContainer),CA({chart:s})}function A2(s){let{chart:t,chartType:e,showMean:i}=s;return t.series.values.filter(r=>e!==V.BoxPlotSeries||!i&&r instanceof wr||i&&Hs(r.uid,"isBoxPlotMeanLineSeries")).every(r=>Hs(r.uid,"isSelectionApplied")===!0)}function p2(s){s.series.each(t=>Po(t.uid,{isSelectionApplied:void 0}))}function $I(s,t){let e=ve(s.uid,"actionMode");if((e===Vt.MonoSelection||e===Vt.None)&&t.length>1)CA({chart:s});else{let i=s instanceof pr;t.forEach(r=>{Kn({element:r,useNativeState:i,selected:!0})})}}function f2(s){let{chart:t,chartConfig:e,series:i,options:r,elementsToApplySelectionTo:a,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:h,queryObject:c}=s,u=ze(e.series),d=It(e.series),A=Ro(e),p=[],m=[],f=[],g=No(e.series),y=i instanceof Wr?i.dataFields?.customValue??"":"";return a.forEach(x=>{if(!(x instanceof fo)){let w=x.dataItem?.dataContext;if(w!==void 0&&(u===V.BoxPlotSeries&&w[re.boxPlot.boxPlotOutlierId]!==!0||d===Ee.BarAndLineMultiFields)&&(w=sh({dataContext:w,yAxisField:h,yList:g,xAxisField:l,splitBy:y,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Uo(c)})),Lv({elementDataContext:w,options:r,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:h,chartType:u,splitBy:y,chartSubType:d,showOutliers:A}))if(p.push(x),x.dataItem!==void 0&&m.push(x.dataItem.index),x?.dataItem instanceof Xa&&w!==void 0)f.push(w);else{let S=new Set;u===V.PieSeries&&ah(w)?(Hf({groupOfSlicesDataContext:w})??[]).forEach(D=>{n.forEach(T=>{_w({layerOidField:o,sliceDataContext:D,selectionDataContext:T,xAxisField:l})&&S.add(D)})}):S.add(w),Array.from(S)?.forEach(D=>{let T=sh({dataContext:D,yAxisField:h,yList:g,xAxisField:l,splitBy:y,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Uo(c)});T!==void 0&&f.push(T)})}else Kn({element:x,useNativeState:t instanceof pr,selected:!1})}}),$I(t,p),{selectedIndexes:m,newSelectionDataItems:f}}function m2(s){let{chart:t,selectionIndexes:e,queryObject:i}=s,r=[],a=[],n=ve(t.uid,"config"),o=Ro(n),l=No(n?.series??[]),h=It(n?.series);return t.series.each((c,u)=>{if(n&&c.visible){let d=n.series[0].x,A=bu(c),p=c instanceof Wr?c.dataFields?.customValue??"":"",m=Dv(c,u),f=e.get(u);if(f!==void 0){let g;if(c instanceof Hi?g=c.columns:c instanceof ws?g=c.slices:g=Zr(c)?.clones,g!==void 0){let{indexesToSelect:y}=f;g.each((x,w)=>{if(x&&(y===void 0||y.includes(w))){let S;m===V.BoxPlotSeries&&x.dataItem instanceof Xa?S=x.dataItem.dataContext:x.dataItem instanceof fo||(S=sh({dataContext:x.dataItem?.dataContext,yList:l,yAxisField:A,xAxisField:d,splitBy:p,chartType:m,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Uo(i)})),S!==void 0&&r.push(S),a.push(x)}else Kn({element:x,useNativeState:t instanceof pr,selected:!1})})}}}}),$I(t,a),r}function g2(s){let{series:t,chartType:e,showMean:i}=s,r;switch(e){case V.ComboLineAndBarSeries:if(t instanceof Hi)r=t.columns.values;else if(t instanceof Pi){let a=Zr(t);a!==void 0&&(r=a.clones.values)}break;case V.BarSeries:t instanceof Hi&&(r=t.columns.values);break;case V.LineSeries:if(t instanceof Pi){let a=Zr(t);a!==void 0&&(r=a.clones.values)}break;case V.PieSeries:r=t.slices.values;break;case V.BoxPlotSeries:if(t.chart instanceof Wt){if(t instanceof wr&&i!==!0){r=[...t.columns.values];let a=jf(t.chart,t.id);if(a!==void 0&&a.visible){let n=Zr(a);n!==void 0&&r.push(...n.clones.values)}}else if(i===!0&&t instanceof Pi&&Hs(t.uid,"isBoxPlotMeanLineSeries")){let a=Zr(t);a!==void 0&&(r=a.clones.values)}}break}return r}function y2(s){let{series:t,seriesIndex:e,queryObject:i,options:r,dataWasUpdated:a,sortChanged:n,groupOfSlicesWasUpdated:o,xAxisField:l,yAxisField:h,rotationChanged:c}=s,{filterBySelection:u,selectionData:d,returnSelectionIndexes:A,returnSelectionOIDs:p}=r??{},{selectionIndexes:m}=d??{},{chart:f}=t,g=ve(f.uid,"config"),y=Ro(g),x=Ca(g),w=ze(g?.series);if(u!==!0&&g!==void 0){let S=g2({series:t,chartType:w,showMean:x}),D=It(g?.series),T=Ys(i),L=_h(T).idField,$=ve(f.uid,"currentSelectionDataItems"),I=!1,R=!1,F,H=!1;if(S?.[0]!==void 0){if(r?.viewExtentUpdated!==!0){F=r?.selectionData?.selectionItems??$;let K=ve(f.uid,"currentSelectionIndexes");H=xx({itemsA:F,itemsB:$,isPieFromFields:D===Ee.PieFromFields,x:g.series[0].x});let z=m?.keys.length!==K?.keys.length||!Ll(m,K);I=n===!0||a===!0||o===!0||c===!0||F!==void 0&&H;let ee=!0;if(m!==void 0&&m.size>0){let{indexesToSelect:ie}=m.get(e??0)??{};ee=ie!==void 0&&ie[0]===void 0}R=a===!0||o===!0||c===!0||!ee&&z}if(I&&F!==void 0&&F.length>0){let{selectedIndexes:K,newSelectionDataItems:z}=f2({chart:f,chartConfig:g,options:r,series:t,elementsToApplySelectionTo:S,selectionDataItems:F,layerOidField:L,xAxisField:l,yAxisField:h}),ee=ve(f.uid,"computedSelectionDataItems")??[];if(ee.push(...z),g.series.length>1&&D!==Ee.BarAndLineNoAggregation&&D!==Ee.BarAndLineSplitByNoAggregation&&(ee=Cx({data:ee,x:g.series[0].x,splitByField:Vo(g.series[0].query?.where)})),ni(f.uid,{computedSelectionDataItems:ee}),A===!0){let ie=Array.from(new Set(K)),de=ve(f.uid,"computedSelectionIndexes");de===void 0&&(de=new Map),ie.length===S.length?de.set(e??0,{}):de.set(e??0,{indexesToSelect:ie}),ni(f.uid,{computedSelectionIndexes:de})}}else if(m!==void 0&&R)F=m2({chart:f,selectionIndexes:m,queryObject:i});else{let K=F===void 0||F.length===0,z=t instanceof Wr?t.dataFields?.customValue??"":"",ee=ie=>{let de=ie.dataItem?.dataContext;return de!==void 0&&w===V.BoxPlotSeries&&de[re.boxPlot.boxPlotOutlierId]!==!0&&(de=sh({dataContext:de,yAxisField:h,yList:No(g.series),xAxisField:l,splitBy:z,chartType:w,chartSubType:D,showOutliers:y,isFeatureCollectionLayer:Uo(i)})),Lv({elementDataContext:de,options:r,selectionDataItems:F??$??[],layerOidField:L,xAxisField:l,yAxisField:h,chartType:w,splitBy:z,chartSubType:D,showOutliers:y})};S.forEach(ie=>{let de=ie.isActive||ee(ie);Kn({element:ie,selected:de,useNativeState:f instanceof pr,backToDefaultState:K})})}}if(Po(t.uid,{isSelectionApplied:!0}),A2({chart:f,chartType:w,showMean:x})&&(p2(f),H||R)){let K=ve(f.uid,"computedSelectionDataItems")??F;K=Array.from(new Set(K?.map(ee=>JSON.stringify(ee)))).map(ee=>JSON.parse(ee)),F!==void 0&&ni(f.uid,{currentSelectionDataItems:K}),d?.selectionOIDs!==void 0&&ni(f.uid,{currentSelectionOIDs:d.selectionOIDs});let z;if(A===!0&&(z=ve(f.uid,"computedSelectionIndexes")??m,z!==void 0&&ni(f.uid,{currentSelectionIndexes:z})),K===void 0||K.length===0)CA({chart:f,selectionSource:Pr.ProgrammaticSelection});else{let ee={selectionItems:K,selectionSource:Pr.ProgrammaticSelection};A===!0&&(ee.selectionIndexes=z),p!==!1&&(ee.selectionOIDs=d?.selectionOIDs??ve(f.uid,"currentSelectionOIDs")),Mu({data:ee,htmlContainer:f.htmlContainer})}ni(f.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}function v2(s){let{chart:t,chartConfig:e,rotationChanged:i}=s;for(let r=0;r<t.series.length;r+=1){let a=t.series.getIndex(r);if(a){let n=Ov(a,e);if(n){let o=ze([n]);if(o===V.BoxPlotSeries&&(a=t.series.values.find(l=>l.id===n.id)),a!==void 0){let l=n.x,h=o===V.BoxPlotSeries?n.y.toString():bu(a);NH({callbackProps:{...s,series:a,seriesIndex:r,xAxisField:l,yAxisField:h},series:a,seriesConfig:n,onReadyEvent:i===!0})}}}}}async function Wf(s){let{chart:t,listSelectedElements:e,selectionSource:i,queryObject:r}=s,a=ve(t.uid,"options"),n=ve(t.uid,"config"),o=Gs(r);if(n)if(e.length===0)CA({chart:t,selectionSource:i,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1});else try{pI(t,"updateSelectionCallbackDisposer");let l=Ro(n),h=[],c=[],u=[],d=new Map,{xAxisField:A}=e[0]??{},p=ze(n?.series),m=It(n?.series),f=No(n?.series??[]),g=ln(r).find(x=>x.name===A)?.type;if(e.forEach(x=>{let{elementDataContext:w,yAxisField:S,splitBy:D}=x,T=sh({dataContext:w,yAxisField:S,yList:f,xAxisField:A,splitBy:D,chartType:p,chartSubType:m,showOutliers:l,isFeatureCollectionLayer:Uo(r)});T!==void 0&&c.push(T);let{seriesIndex:L,elementIndex:$}=x;if($!==void 0){let I=d.get(L)?.indexesToSelect??[];I.push($),d.set(L,{indexesToSelect:Array.from(new Set(I))})}if(!o&&w!==void 0){let I=w[Eu.uniqueIdsName]!==void 0?[w[Eu.uniqueIdsName]].flat():[];if(I.length>0)u.push(...I);else if(a?.returnSelectionOIDs!==!1){let R=_x({dataContext:w,options:a,xAxisField:A,yAxisField:S??"",splitBy:D,xAxisFieldType:g,chartConfig:n,queryObject:r});h.push(R)}}}),!o&&a?.returnSelectionOIDs!==!1&&h.length>0){let x={...ve(t.uid,"queryConfig")};delete x.groupByFieldsForStatistics,delete x.orderByFields,delete x.outStatistics;let w=await aI({whereList:h,queryObject:r,queryConfig:x});if(h.length===e.length)u=w;else for(let S=0;S<w.length;S+=1)u.push(w[S])}ni(t.uid,{currentSelectionDataItems:c,currentSelectionOIDs:u,currentSelectionIndexes:d});let y={selectionItems:c,selectionSource:i};a?.returnSelectionIndexes===!0&&(y.selectionIndexes=d),a?.returnSelectionOIDs!==!1&&(y.selectionOIDs=u),Mu({data:y,htmlContainer:t.htmlContainer})}catch(l){ni(t.uid,{pendingSelectionQueries:!1});let{httpStatus:h}=l instanceof Ln?l.details.details:l.details??{};if(h===429)d2(t);else throw l}ni(t.uid,{pendingSelectionQueries:!1})}function b2(s){let{axis:t}=s,e=t.chart;return{axis:t,chart:e}}async function x2(s,t){let e=s.target,{axis:i,chart:r}=b2(e),a=[],{seriesDataItems:n}=s.target.dataItem;Object.keys(n).forEach(u=>{if(Object.hasOwn(n,u)){let d=n[u];for(let A of d)if(A instanceof Bs)a.push(A.column);else{let p=A.sprites.find(m=>!(m instanceof Mi));p!==void 0&&a.push(p)}}});let o=Ev(s,r),l=i instanceof Ct||i instanceof Ot,h=[],c=ve(r.uid,"config");if(c){let u=c.series[0].x??"";r.series.each((d,A)=>{let p;if(d instanceof Hi?p=d.columns:p=Zr(d)?.clones,d.visible){let m=bu(d),f=d.dataFields?.customValue??"";p?.each((g,y)=>{let x=a.includes(g);Kn({element:g,selected:x,multiSelect:o,isDateOrCategoryAxis:l})&&h.push({element:g,elementDataContext:g.dataItem?.dataContext,yAxisField:m,xAxisField:u,splitBy:f,seriesIndex:A,elementIndex:y,chartConfig:c})})}}),await Wf({chart:r,listSelectedElements:h,selectionSource:Pr.SelectionByClick,queryObject:t})}}function _2(s,t){if(qn(s.renderer.labels.template)){s.renderer.labels.template.events.on(ke.Hit,async i=>{s.renderer.labels.template.events.isEnabled(ke.Hit)&&await x2(i,t)});let e=ve(s.chart.uid,"filterBySelection")===!0?ai.default:ai.pointer;ew(s,e)}}function wv(s,t){if(qn(s?.renderer?.labels?.template)&&(s instanceof Ot||s instanceof Ct))if(t)s.renderer.labels.template.events.disableType(ke.Hit),ew(s,ai.default);else{s.renderer.labels.template.events.enableType(ke.Hit);let e=ve(s.chart.uid,"filterBySelection")===!0?ai.default:ai.pointer;ew(s,e)}}var vr={Guides:"guides",Ticks:"ticks",GaugeFirstAndLastGuides:"firstAndLast",GaugeTicksWithLabels:"gaugeTicksWithLabels"};function Rc(s){let{chart:t,label:e,labelType:i}=s,r=Number.NaN;switch(i){case ii.GuideLabel:!(t instanceof qs)&&t instanceof Wt&&(e.rotation===90||e.rotation===270?r=t.seriesContainer.measuredHeight:r=t.seriesContainer.measuredWidth);break;case ii.XAxisTitle:t instanceof Wt&&(r=t.seriesContainer.measuredWidth);break;case ii.YAxisTitle:t instanceof Wt&&(r=t.seriesContainer.measuredHeight);break;case ii.ChartTitle:case ii.ChartSubTitle:case ii.ChartFooter:r=t.measuredWidth-20;break}r>0&&(e.maxWidth=r,t.invalidateLabels(),t instanceof Wt&&(t.xAxes.getIndex(0)?.invalidateLabels(),t.xAxes.getIndex(1)?.invalidateLabels(),t.yAxes.getIndex(0)?.invalidateLabels(),t.yAxes.getIndex(1)?.invalidateLabels()))}function Uf(s){let{chart:t,labelType:e}=s;Rc(s);let i=e===ii.YAxisTitle?1:0;t.events.on(ke.Validated,zs(()=>Rc(s),re.debounceTime),i)}function Bv(s,t){s.events.on(ke.Validated,zs(()=>{t.visible=s.measuredWidth!==0},re.debounceTime))}function C2(s,t){s.chart instanceof qs||(t.adapter.add("dx",e=>{let i=e;return(t.rotation===90||t.rotation===270)&&(i=t.bbox.height,t.dataItem.value!==t.dataItem.endValue&&(i/=2)),i}),t.padding(0,10,0,10))}function w2(s,t){let e=s.renderer instanceof zl?new Un:new Jo;return e.disabled=!0,e.axis=s,Iv(e),mu(e.uid,{isGuide:t}),Uf({chart:s.chart,label:e,labelType:ii.GuideLabel}),C2(s,e),e}function B2(s){let{label:t,labelConfig:e,guideType:i}=s,r=t.axis.renderer instanceof Ar,a;t instanceof Un||(r?i===Dt.SFS?a=re.verticalSurfaceGuideLabels:a=re.verticalLineGuideLabels:i===Dt.SFS?a=re.horizontalSurfaceGuideLabels:a=re.horizontalLineGuideLabels);let n={...e};n.content.rightToLeft=t.axis.rtl,Cn({label:t,labelConfig:n,defaults:a}),t.axis.invalidateLabels()}function S2(s,t,e){let i=e.chart;s.axisFill.tooltip=new Ao,s.axisFill.interactionsEnabled=!0,s.axisFill.tooltipPosition=re.guideTooltipPosition,s.axisFill.tooltip.label.wrap=!0,s.axisFill.tooltip.adapter.add("maxWidth",()=>Math.min(re.tooltipWidth,i.seriesContainer.maxWidth)),s.axisFill.tooltip.boundingContainer=i.chartAndLegendContainer,s.axisFill.adapter.add("tooltipHTML",(r,a)=>{let n=r,{dataItem:o,axis:l}=a;if(!(l.renderer instanceof zl)){let h=Vs(l.uid,"guideTooltipFormatter");if(h!==void 0){let c="",u;o instanceof yo?(c=o.value,u=o.endValue):o instanceof il?(c=o.category,u=o.endCategory):o instanceof Vh&&(c=o.date,u=o.endDate),n=h({guideName:o.id??"",start:c,end:u,guideIndex:t})}}return n}),s.axisFill.tooltip.events.on(ke.Shown,r=>{let a=ve(s.axisFill.axis.chart.uid,"config");if(a!==void 0){let n=ve(s.axisFill.axis.chart.uid,"isRotated"),o=Xf(s.axisFill.axis.renderer,n)?0:1,l=a.axes?.[o]?.guides,{tooltipReverseColor:h}=l?.[t]??{};bI(r.target,h)}})}function F2(s,t){return e=>{let{guideName:i,start:r,end:a,guideIndex:n}=e,{chart:o}=s,l="";if(o!==void 0){let h=ve(o.uid,"config"),c=ve(o.uid,"isRotated"),u=Xf(s.renderer,c)?0:1,d=h?.axes?.[u]?.guides,A=r,p=a;if(s instanceof Ct){let y=new cn,x;if(o!==void 0){let w=ve(s.chart.uid,"formatLocale");y=yl({type:V.DateAxisFormat,iLocale:o.language.locale,formatLocale:w}),x=h?.axes?.[0]?.valueFormat?.intlOptions}A=y.format(r,x),a!==void 0&&(p=y.format(a,x))}else if(s instanceof He&&!(r instanceof Date)&&!(a instanceof Date)){let{start:y,end:x}=kw(s,d?.[n]);Number.isFinite(y)&&(A=y),Number.isFinite(x)&&(p=x);let w=Vs(s.uid,"numberFormatter")??(S=>new Hl().format(S));A=w(A),p!==void 0&&(p=w(p))}else s instanceof Ot&&(A=r,p=a);let m=A.toString(),f=p?.toString()??"";!Yi(f)&&m!==f?l=fA(t.guideTooltipLabel,{guideStart:m,guideEnd:f}):l=m;let g=Ra(o.rtl);l=`${i}${g} ${l}`}return l}}function T2(s){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=s;Ls(t.uid,{guideTooltipFormatter:e??F2(t,i)})}function P2(s){let t=ku.Value;return s instanceof Ct?t=ku.Date:s instanceof Ot&&(t=ku.Category),t}function J1(s){let{inputValue:t,axisType:e,axisMin:i,axisMax:r}=s,a=t;if(t!=null)switch(e){case ku.Date:a=t instanceof Date?t:new Date(t);break;case ku.Category:a=t.toString();break;case ku.Value:if(typeof t!="number"){let n=t.toString().trim(),o=qA(n);o!==void 0?i!==void 0&&r!==void 0?a=o/100*(r-i)+i:a=null:a=Number.parseFloat(n)}break}return a}function kw(s,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let a=P2(s),n=s instanceof He?s.min:void 0,o=s instanceof He?s.max:void 0,l=J1({inputValue:e,axisType:a,axisMin:n,axisMax:o}),h=t.style?.type===Dt.SFS&&i!==null&&i!==void 0?J1({inputValue:i,axisType:a,axisMin:n,axisMax:o}):l;r={isValidGuide:l!=null&&h!=null,start:l,end:h}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function D2(s){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=s,r=[],a=t.axisRanges.length-1,n=i;for(;n>0&&a>=0;){let o=t.axisRanges.getIndex(a);o!==void 0&&(gs(o.label?.uid,"isGuide")??!1)===!0&&e===vr.Guides&&(r.push(o),n-=1),a-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function tn(s,t){return s.axisRanges?.values?.filter(e=>{let i=gs(e.label?.uid,"isGuide")??!1,r=gs(e.label?.uid,"isGaugeAxisLabel")??!1,a=!1;switch(t){case vr.Ticks:a=i===!1;break;case vr.Guides:a=i===!0;break;case vr.GaugeTicksWithLabels:a=r===!0&&e.value!==void 0;break;case vr.GaugeFirstAndLastGuides:a=i===!0&&(e.id===re.gaugeFirstLabelId||e.id===re.gaugeLastLabelId);break}return a})??[]}function L2(s,t){let e=s.axisRanges.length;{let r=s.axisRanges.values.findIndex(a=>a.id===re.gaugeFirstLabelId);r!==-1&&(e=r)}let i;return s instanceof Ot?i=new il:s instanceof Ct?i=new Vh:i=new yo,s.axisRanges.insertIndex(e,i),i.label=w2(s,t),i.axisFill.fillOpacity=1,i.axisFill.disabled=!0,i.grid.strokeOpacity=1,i}function I2(s,t){let e=L2(s,!0);S2(e,t,s),e.tick!==void 0&&(e.tick.disabled=!0),e.label!==void 0&&(e.label.inside=!0),e.grid!==void 0&&(e.grid.disabled=!0)}function k2(s,t){let{start:e,end:i}=t,r=ve(s.uid,"config"),a=eg(r),n=e!==null?e:void 0;n=s.data.find(l=>l[re.originalCategoryValue]===e)?.[a]??n;let o=i!==null?i:void 0;if(o!==void 0)for(let l=s.data.length-1;l>=0;l-=1){let h=s.data[l];if(h[re.originalCategoryValue]===i){o=h[a];break}}return{modifiedStart:n,modifiedEnd:o}}function $2(s,t){let{start:e,end:i}=t;if(e!==void 0){let{chart:r}=s?.component??{},a;if(s instanceof il&&r instanceof Wt&&ve(r.uid,"isNonAggregatedChart")===!0){let{modifiedStart:n,modifiedEnd:o}=k2(r,t);a={isValidGuide:!0,start:n??e,end:o??i}}else a=kw(s.axisFill.axis,t);a.isValidGuide&&(s instanceof il?(s.category=`${a.start?.toString()}`,s.endCategory=`${a.end?.toString()}`):s instanceof Vh?(s.date=a.start,s.endDate=a.end):(s.value=a.start,s.endValue=a.end))}}function O2(s,t){s.axisFill.above=t??re.guideAbove,s.grid.above=t??re.guideAbove}function E2(s,t){let{axisFill:e,label:i}=s;if(t!==void 0){if(s.id=t.name,s.visible=t.visible!==void 0?t.visible:s.visible,$2(s,t),t.style.type===Dt.SLS?Mf({element:e,fillSymbol:{type:Dt.SFS,color:t.style?.color,outline:t.style},visible:t.visible}):t.style.type===Dt.SFS&&Mf({element:e,fillSymbol:t.style,visible:t.visible}),O2(s,t.above),t.label!==void 0){let a={type:V.Text,visible:t.visible,content:t.label};B2({label:i,labelConfig:a,guideType:t.style.type})}let r=s.component?.chart;r!==void 0&&Rc({chart:r,label:i,labelType:ii.GuideLabel})}else e.disabled=!0,i.disabled=!0}function M2(s,t){let e=tn(s,vr.Guides).length,i=t?.length??e;for(let r=e;r<i;r+=1)I2(s,r)}function R2(s){let{axis:t,guides:e,guideTooltipFormatter:i,utilsStrings:r}=s;if(e!==void 0){for(let a=0;a<e.length;a+=1){let n=tn(t,vr.Guides)[a];n!==void 0&&E2(n,e[a])}T2({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function U2(s,t){let e=tn(s,vr.Guides).length,i=t?.length??0,r=e-i;D2({axis:s,numberOfElementsToBeDeleted:r,tickOrGuide:vr.Guides})}function V2(s){let{axis:t,guides:e}=s;M2(t,e),R2(s),U2(t,e)}function N2(s){let{axis:t,labels:e,restoreLabelsVisibility:i=!0}=s;(e??t.renderer.labels.values).forEach(r=>{r.x instanceof et?r.x.value:r.x,i&&Ri(r,!0)})}function OI(s){let t=s.renderer.labels.values.filter(e=>gs(e.uid,"isGuide")!==!0&&e.measuredWidth>0).length;return s.pixelWidth/t}function H2(s){let{target:t}=s;if((ve(t.chart.uid,"config")?.horizontalAxisLabelsBehavior??ir.Rotate)===ir.Wrap){let e=Number.MAX_SAFE_INTEGER;t.renderer.labels.each(r=>{gs(r.uid,"isGuide")!==!0&&r.measuredWidth>0&&(e=Math.min(e,r.bbox.width))});let i=t instanceof Ct?t.pixelWidth/re.maxNumberOfXAxisLabelsInWrapModeForDateAxis:t.pixelWidth/re.maxNumberOfXAxisLabelsInWrapMode;t.renderer.minGridDistance=Math.max(e+1,i)}}function Q2(s){let{axis:t,labelsConfig:e,horizontalAxisLabelsBehavior:i,isSecondValueAxis:r,tickSpacing:a}=s,n=t.renderer.minGridDistance;if(typeof a=="number"&&Number.isFinite(a))n=a;else if(t.renderer instanceof zl)n=re.gauge.gaugeMinGridDistance;else if(t instanceof He)n=t.renderer instanceof Ar?re.xAxisMinGridDistance:re.yAxisMinGridDistance;else if(t.renderer instanceof Ar)if(r===!0)n=re.secondRotatedValueAxisMinGridDistance;else if(i===void 0||i===ir.Rotate){let o=e.content.font?.size??re.generalFontSize,l=t instanceof Ot?re.categoryAxisLabelPadding:re.axisLabelPadding;n=o*l}else if(i===ir.Wrap){let o=zs(H2,re.debounceTime);Ls(t.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:o}),t.events.on(ke.SizeChanged,o),t.dispatchImmediately(ke.SizeChanged)}else i===ir.Stagger?n=re.staggerMinGridDistance:n=t instanceof Ot?re.xCategoryAxisMinGridDistance:re.xAxisMinGridDistance;else n=t instanceof Ot?re.yCategoryAxisMinGridDistance:re.yAxisMinGridDistance;t.renderer.minGridDistance=n}function j2(s){let t=s.renderer.labels.template;qn(t)&&(t.adapter.add("rotation",(e,i)=>gs(i.uid,"isGuide")!==!0?Vs(s.uid,"labelsSymbol")?.angle??e:e),t.adapter.add("verticalCenter",(e,i)=>gs(i.uid,"isGuide")!==!0?Vs(s.uid,"labelsSymbol")?.verticalCenter??e:e),t.adapter.add("horizontalCenter",(e,i)=>gs(i.uid,"isGuide")!==!0?Vs(s.uid,"labelsSymbol")?.horizontalCenter??e:e),t.adapter.add("dy",(e,i)=>{let r=re.axisLabel.dy??e??0;return i.dataItem?.tick?.length>re.axisTickLength?r=e??0:r=Number(gs(i.uid,"isGuide")!==!0?Vs(s.uid,"labelsSymbol")?.yOffset??r:r),r}))}function W2(s){let{target:t}=s;if(t.chart!==void 0){let e=ve(t.chart.uid,"config")?.axes?.[0].labels;if((e?.visible??!0)&&e!==void 0&&t.renderer.labels.length>1){let i=0;t.renderer.labels.each(n=>{if(gs(n.uid,"isGuide")!==!0&&n.measuredWidth>0){let o=n.bbox.width;o>i&&(i=o)}});let r=Vs(t.uid,"labelsSymbol")?.angle??0,a=OI(t)>=i+5;if(!a&&r===0||a&&r===re.rotatedAxisLabel.rotation){let n=a?xv(e.content,t.rtl,re.axisLabel):xv({type:Dt.TS},t.rtl,re.rotatedAxisLabel);Ls(t.uid,{labelsSymbol:n}),t.renderer.invalidateLabels()}}}}function X2(s,t=1){let{target:e}=s,i=OI(e);Number.isFinite(i)&&(e.renderer.labels.template.maxWidth=Math.min(i*t,e.renderer.minGridDistance))}function z2(s){let{target:t}=s;if(ve(t.chart.uid,"config")?.axes?.[0].labels?.visible!==!1){let e=0;t.dataItems.each(i=>{let{label:r,itemIndex:a}=i;gs(r.uid,"isGuide")!==!0&&r.currentText!==void 0&&r.measuredWidth>0&&a%2===0&&r.bbox.height>e&&(e=r.bbox.height)}),t.dataItems.each(i=>{let{tick:r,label:a,itemIndex:n}=i;if(gs(a.uid,"isGuide")!==!0&&a.currentText!==void 0&&a.measuredWidth>0){let o=n%2===1;r.length=o?e+5:re.axisTickLength,r.dataItem.label.dy=re.axisLabel.dy+(o?e:0)}}),e!==void 0&&(t.renderer.labels.template.paddingBottom=e+5),t.validate()}}function G2(s){let{chart:t}=s;s.renderer.labels.template.paddingLeft=Number.NaN,s.renderer.labels.template.paddingRight=Number.NaN;let e=Vs(s.uid,"debouncedAxisLabelRotationCallback");if(e!==void 0&&(s.events.off(ke.Validated,e),Ls(s.uid,{debouncedAxisLabelRotationCallback:void 0})),t!==void 0){let i=ve(t.uid,"config")?.axes?.[0].labels;if(i!==void 0){let r=xv(i.content,t.rtl,re.axisLabel),a=s.renderer.labels.template;a.rotation=r.angle,a.verticalCenter=r.verticalCenter,a.horizontalCenter=r.horizontalCenter,Number.isFinite(r.yOffset)&&(a.dy=r.yOffset)}Ls(s.uid,{labelsSymbol:void 0})}}function EI(s){s.renderer.labels.template.wrap=!1,s.renderer.labels.template.textAlign="start"}function Y2(s){EI(s),s.renderer.labels.template.paddingLeft=Number.NaN,s.renderer.labels.template.paddingRight=Number.NaN;let t=Vs(s.uid,"debouncedAxisLabelWrapCallback");t!==void 0&&(s.events.off(ke.DataRangeChanged,t),Ls(s.uid,{debouncedAxisLabelWrapCallback:void 0}))}function K2(s){EI(s);let t=Vs(s.uid,"debouncedUpdateMinGridDistanceForWrapBehavior");t!==void 0&&(s.events.off(ke.SizeChanged,t),Ls(s.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:void 0}))}function Z2(s){let t=Vs(s.uid,"debouncedAxisLabelStaggerCallback");t!==void 0&&(s.events.off(ke.DataRangeChanged,t),Ls(s.uid,{debouncedAxisLabelStaggerCallback:void 0})),s.renderer.ticks.each(e=>{e.length=re.axisTickLength,e.dataItem?.label&&(e.dataItem.label.dy=re.axisLabel.dy??0)})}function q2(s){G2(s),Y2(s),Z2(s)}function eL(s){j2(s),s.renderer.labels.template.paddingLeft=0,s.renderer.labels.template.paddingRight=0,s.renderer.labels.template.maxWidth=Number.NaN;let t=zs(W2,re.debounceTime,{leading:!0});Ls(s.uid,{debouncedAxisLabelRotationCallback:t}),s.events.on(ke.Validated,t),s.dispatchImmediately(ke.Validated)}function tL(s,t=1){s.renderer.labels.template.wrap=!0,s.renderer.labels.template.paddingLeft=.5,s.renderer.labels.template.paddingRight=.5,s.renderer.labels.template.textAlign="middle";let e=zs(i=>X2(i,t),re.debounceTime);Ls(s.uid,{debouncedAxisLabelWrapCallback:e}),s.events.on(ke.DataRangeChanged,e)}function J2(s){s.renderer.labels.template.maxWidth=re.yAxisLabelMaxWidth,s.renderer.labels.template.wrap=!0,s.renderer.labels.template.textAlign="end"}function ej(s){let t=zs(z2,re.debounceTime);Ls(s.uid,{debouncedAxisLabelStaggerCallback:t}),s.events.on(ke.DataRangeChanged,t)}function tj(s){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,labelsConfig:r,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}=s;if(t.renderer instanceof Ar&&a?.[0]!==!1){if(q2(t),n!==!0)switch(e){case ir.Hide:break;case ir.Stagger:ej(t),tL(t,1.5);break;case ir.Wrap:tL(t);break;case ir.Rotate:eL(t);break;default:r.content.angle!==null&&r.content.angle===void 0&&eL(t);break}}else t.renderer instanceof Lr&&(i!==ir.Hide?J2(t):K2(t))}function ij(s){let{axis:t,axisConfig:e,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}=s,o=t.renderer.labels.template;o.axis=t;let{labels:l}=e,h=t.renderer instanceof Ar&&o.rotation===re.rotatedAxisLabel.rotation,c=l,u;h?(c.content.angle=void 0,c.content.horizontalAlignment=void 0,c.content.verticalAlignment=void 0,c.content.yoffset=void 0,u=re.rotatedAxisLabel):t.renderer instanceof Ar&&(i===ir.Stagger||i===ir.Wrap)&&(u={wrap:!0,dy:re.axisLabel.dy}),t.renderer instanceof Lr&&r!==ir.Hide&&(u={wrap:!0}),Cn({label:o,labelConfig:c,defaults:u}),t.renderer.labels.template.paddingTop=t.renderer instanceof Ar?0:re.axisLabel.dy,o.align="none",o.valign="none",tj({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelsConfig:l,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}),o.axis.invalidateLabels()}function $w(s){return(s??qb())===Gi.Side}function MI(s,t){let e,i,r=iw(s,"bullets"),a=iw(s,"columns"),n=$w(t);return n&&r!==void 0?(e=r,i=a):n||(e=a,i=r),{labelToRender:e,labelToHide:i}}function rj(s,t=!0){s.hideOversized=t}function sj(s,t){let e,i,r=vl(re.dataLabelInitialize);mu(r.uid,{isDataLabel:!0}),s.bullets.push(r);let a=vl(re.dataLabelInitialize,s.columns.template);return mu(a.uid,{isDataLabel:!0}),rw(a,s),rw(r,s),s.events.on(ke.Validated,zs(()=>{Ef(a)&&a.clones.each(n=>{Ef(n)&&n.validate()})},re.debounceTime)),a.html="{valueX}",r.html="{valueX}",cI(r),$w(t)?(e=r,i=a):(e=a,i=r),lI(V.BarSeries,r),hI(V.BarSeries,e),{newLabelToRender:e,newLabelToHide:i}}function aj(s){let{series:t,stackedType:e,isRotated:i,hideOversizedStackedLabels:r,hideOversizedSideBySideLabels:a}=s,{labelToRender:n,labelToHide:o}=MI(t,e);if(n===void 0){let{newLabelToRender:c,newLabelToHide:u}=sj(t,e);n=c,o=u}let l=re.dataLabel,h=!0;$w(e)?(l=i===!0?re.dataLabelRotated:re.dataLabel,h=a===!0):(l=i===!0?re.dataLabelStackedRotated:re.dataLabelStackedNonRotated,h=r!==!1),rj(n,h),o!==void 0&&(o.visible=!1,o.disabled=!0),n.html="{valueX}",dI({...s,dataLabel:n,labelDefaults:l,defaultDataLabelFormatter:uI})}function nj(s){let t=s.tooltip;t!==void 0&&!(s instanceof Ct)&&(t.label.adapter.add("html",(e,i)=>{let r=e??"";return s instanceof He?r=KL(s,i.properties?.text??e??""):s instanceof Ot&&(r=ZL({axis:s,defaultOutput:e??"",dataItem:t.dataItem})),Mr(r)}),t.label.html=re.htmlEmptyContent)}function sw(s){let{axis:t,start:e,end:i}=s;t.zoom({start:e??0,end:i??1})}function iL(s){s!==void 0&&(s.start=0,s.end=1)}function Rv(s){s!==void 0&&(s.xAxes!==void 0&&s.xAxes.each(t=>sw({axis:t})),s.yAxes!==void 0&&s.yAxes.each(t=>sw({axis:t})),iL(s.scrollbarX),iL(s.scrollbarY),Ri(s.zoomOutButton,!1))}function Xf(s,t){return s instanceof Ar&&t!==!0||s instanceof Lr&&t===!0}function oj(s){qn(s.labels.template)&&(s.labels.template.events.on(ke.Over,t=>{let{axisLabelOveredOpacity:e}=re;t.target.fillOpacity=(t.target.fillOpacity??1)*e}),s.labels.template.events.on(ke.Out,t=>{let{axisLabelOveredOpacity:e}=re;t.target.fillOpacity=(t.target.fillOpacity??.5)/e}))}function lj(s){let{axis:t,valueFormat:e,axisRenderer:i,queryObject:r}=s;i.grid.template.applyOnClones=!0,i.ticks.template.applyOnClones=!0,i.labels.template.applyOnClones=!0,i.hoverable=!0,i.line.strokeOpacity=1,i.grid.template.strokeOpacity=1,i.ticks.template.strokeOpacity=1,Iv(i.labels.template,re.axisLabel),i.ticks.template.disabled=!1,i.labels.template.disabled=!0,nj(t),ld(e)&&(oj(i),_2(t,r)),Bv(t.chart,t.title),Uf({chart:t.chart,label:t.title,labelType:t.renderer instanceof Ar?ii.XAxisTitle:ii.YAxisTitle}),t.renderer instanceof Ar&&t.events.on(ke.Validated,zs(()=>{N2({axis:t,restoreLabelsVisibility:!0})},re.debounceTime))}function hj(s){let t=s.target,e=ve(t.chart.uid,"isRotated"),i=[];if(t instanceof He){if(t.renderer instanceof zl)i.push({isXAxis:!0,minimum:t.min,maximum:t.max});else if(t.renderer instanceof(e!==!0?Lr:Ar)){t.maxZoomFactor=1;let r=s.target,a=r.chart,n=e!==!0?a.xAxes.getIndex(0):a.yAxes.getIndex(0),o=a.yAxes.getIndex(1)??a.xAxes.getIndex(1);i=[{isXAxis:!1,minimum:r.min,maximum:r.max},{isXAxis:!0,minimum:n instanceof He?n.min:void 0,maximum:n instanceof He?n.max:void 0}],o instanceof He&&i.push({isXAxis:!1,isSecondValueAxis:!0,minimum:o.min,maximum:o.max})}i.length>0&&i.every(r=>!Number.isNaN(r.minimum)&&!Number.isNaN(r.maximum))&&tx(i,t.chart.htmlContainer)}}function uj(s){s.events.on(ke.Validated,zs(hj,re.debounceTime))}function cj(s){let{axis:t,isNonAggregatedChart:e}=s,i,r,a,n=t.dataItems.values,o=t.axisRanges.values;if(t instanceof Ot)for(let l=0;l<o.length;l+=1){i=!1,r=!1,a=!1;let h=o[l],{category:c,endCategory:u,axisFill:d,grid:A,label:p}=h;if(h instanceof il&&h.visible)for(let m=0;m<n.length;m+=1){let f;e===!0?f=Mo({value:n[m].category,dataContext:n[m].dataContext}):f=n[m].category.toString(),c===f&&(r=!0),u===f&&(a=!0)}r&&a&&(i=!0),Ri(d,i),Ri(A,i),Ri(p,i)}}function rL(s){let{axis:t,axisMinimum:e,axisMaximum:i}=s,r;if(t instanceof He&&i!==void 0&&e!==void 0){let a=t.axisRanges.values,n=ve(t.chart.uid,"config"),o=ve(t.chart.uid,"isRotated"),l=Xf(t.renderer,o)?0:1,h=n?.axes?.[l]?.guides;for(let c=0;c<a.length;c+=1){let u=a[c],{value:d,endValue:A,axisFill:p,grid:m,label:f}=u;if(gs(f?.uid,"isGuide")===!0){if(r=u.visible,r&&u instanceof yo){let{start:g,end:y}=kw(t,h?.[c]),x=Math.min(d,A,g??d,y??A),w=Math.max(d,A,g??d,y??A);x<e&&w<e||x>i&&w>i?r=!1:(u.value=x<e?e:x,u.endValue=w>i?i:w)}Ri(p,r),Ri(m,r),Ri(f,r)}}}}function dj(s){s instanceof He?(s.adapter.add("min",t=>(rL({axis:s,axisMinimum:t,axisMaximum:s.max}),t)),s.adapter.add("max",t=>(rL({axis:s,axisMinimum:s.min,axisMaximum:t}),t))):s instanceof Ot&&s.events.on(ke.Validated,()=>{let t=ve(s.chart.uid,"isNonAggregatedChart");cj({axis:s,isNonAggregatedChart:t})})}function Of(s){let{axes:t,isSecondValueAxis:e=!1,isXAxis:i,valueFormat:r,chartType:a,queryObject:n}=s,o;if(Um({isXAxis:i,chartType:a,valueFormat:r})&&!e)o=t.push(new Ot);else if(ro(r))o=t.push(new Ct);else if(xa(r)){o=t.push(new He);let l=ve(o.chart.uid,"formatLocale");o.numberFormatter=yl({type:V.NumberAxisFormat,iLocale:o.chart.language.locale,formatLocale:l}),o.numberFormatter.numberFormat="#",e?(o.renderer.opposite=!0,o.renderer.grid.template.disabled=!0):uj(o)}o!==void 0&&(lH(o),lj({axis:o,valueFormat:r,axisRenderer:o.renderer,queryObject:n}),dj(o))}function RI(s){let{chart:t,axesConfig:e,isRotated:i,chartType:r,queryObject:a}=s;ni(t.uid,{isRotated:i===!0});let n=i===!0?e?.[1]:e?.[0],o=i===!0?e?.[0]:e?.[1],l=n?.valueFormat,h=o?.valueFormat;l!==void 0&&h!==void 0&&(t.xAxes.clear(),t.yAxes.clear(),Of({chartType:r,isXAxis:i!==!0,axes:t.xAxes,valueFormat:l,queryObject:a}),Of({chartType:r,isXAxis:i===!0,axes:t.yAxes,valueFormat:h,queryObject:a}),e?.[2]!==void 0&&Of({chartType:r,isXAxis:i===!0,axes:i===!0?t.xAxes:t.yAxes,valueFormat:e[2].valueFormat,isSecondValueAxis:!0,queryObject:a}))}function Aj(s){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=s,r=ve(t.chart.uid,"config"),a=e===!0&&ag({chartConfig:r,chartData:t.chart.data,axisConfigIndex:i});(t instanceof Ct||t instanceof He)&&(t.logarithmic=a,t.treatZeroAs=a?re.treatZeroValueAs:0)}function pj(s,t){let{minimum:e,maximum:i,isLogarithmic:r}=t??{},{buffer:a}=t??{};return a??=re.buffer,s instanceof He&&!(s instanceof Ct)&&!a&&(r!==!0||i!=null||e!=null)}function fj(s,t){let e=!1;return s instanceof He&&!(s instanceof Ct)&&(e=pj(s,t),s.strictMinMax=e),e}function mj(s){let{axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r}=s,a=e?.minimum,n=e?.maximum,o=e?.isLogarithmic??!1,l=a,h=n,{chart:c}=t,u=ve(c.uid,"isRotated"),d=ve(c.uid,"config"),A=0;if(c instanceof Wt&&d!==void 0){let p=Ua(d),m=Xf(t.renderer,u),f=RH(c),g=sg({chartConfig:d,isSecondValueAxis:r,seriesIds:f}),y=wx({chartConfig:d,chartData:c.data,filteredSeriesIds:g});if(p===Gi.Stacked100)l=Number.NaN,h=Number.NaN;else{let{minX:x,maxX:w,minY:S,maxY:D}=y,[T,L]=m?[x??Number.NaN,w??Number.NaN]:[S,D];A=T,i===V.BarSeries||i===V.ComboLineAndBarSeries||i===V.LineSeries&&p===Gi.Stacked&&!m?(l=Math.min(T,0),h=Math.max(L,0)):(l=T,h=L)}l=a??l,h=n??h}return o&&l!==void 0&&l!==null&&l<=0&&(l=pH(A)),{min:l,max:h}}function UI(s){let{axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r}=s,{minimum:a,maximum:n,isLogarithmic:o}=e??{};if(t instanceof He||t instanceof Ct)if(fj(t,e)){let l=a,h=n;if(qL({minimumFromConfig:a,maximumFromConfig:n,isLogarithmic:o})){let c=mj({axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r});l=c.min,h=c.max}l=l??Number.NaN,h=h??Number.NaN,Number.isNaN(l)||Number.isNaN(h)||l<h?(t.min=l,t.max=h):(t.min=Number.NaN,t.max=Number.NaN),i===V.GaugeSeries&&t.validate()}else t.min=Number.NaN,t.max=Number.NaN}function gj(s){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i}=s;if(t instanceof Ct){let{size:r,unit:a}=e??{};if(a||({size:r,unit:a}=i??{}),r&&a!==void 0){let n;switch(a){case tr.Second:n="second";break;case tr.Minute:n="minute";break;case tr.Hour:n="hour";break;case tr.Day:n="day";break;case tr.Week:n="week";break;case tr.Month:n="month";break;case tr.Year:n="year";break}n!==void 0&&(t.baseInterval={timeUnit:n,count:r})}}}function yj(s,t){s instanceof He&&(s.renderer.baseGrid.disabled=t!==!0)}function vj(s,t){s.cursorTooltipEnabled=t===!0}function bj(s,t){let e=s.renderer instanceof Ar;s.events.once(ke.Validated,()=>{let i=s.renderer instanceof Lr?re.yAxisTitleLabel:re.xAxisTitleLabel;e&&(i={...i,dy:i.dy??0}),Cn({label:s.title,labelConfig:t,defaults:i}),Rc({chart:s.chart,label:s.title,labelType:s.renderer instanceof Ar?ii.XAxisTitle:ii.YAxisTitle})})}function xj(s,t){let e=!0;return t===V.BoxPlotSeries&&(e=s instanceof wr),e}function VI(s){let t=zs(()=>{let{chart:e}=s,i=ve(e.uid,"config");if(e!==void 0&&i!==void 0){let r=ze(i?.series);if(xj(s,r)){let a=ve(e.uid,"isRotated"),n=Hs(s.uid,"stackedType");n===Gi.Stacked100&&!s.visible&&Ri(s,!1);let o=e.xAxes.getIndex(0),l=e.yAxes.getIndex(0),h=e.yAxes.getIndex(1),c=a===!0?1:0,u=i.axes?.[c],d=a===!0?0:1,A=i.axes?.[d],p=i.axes?.[2];[{axis:o,axisConfig:u,updateLabels:!1},{axis:l,axisConfig:A,updateLabels:!0},{axis:h,axisConfig:p,updateLabels:!0,isSecondValueAxis:!0}].forEach(m=>{let{axis:f,axisConfig:g,updateLabels:y,isSecondValueAxis:x}=m;f!==void 0&&(UI({axis:f,chartType:r,axisConfig:g,isSecondValueAxis:x}),y!==void 0&&f.events.once(ke.Validated,()=>{let{labelToRender:w}=MI(s,n);w&&(w.html=a===!0?"{valueX}":"{valueY}")}))})}}},re.debounceTime);s.events.once(ke.Validated,t)}function _j(s,t){if(s instanceof He){let{integerOnlyValues:e,valueFormat:i}=t,r=Px(i)?i.intlOptions.maximumFractionDigits:void 0;s.maxPrecision=e===!0||r===0?0:Number.NaN}}function vv(s){let{axis:t,axisConfig:e,axisConfigIndex:i,timeIntervalInfo:r,chartType:a,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,guideTooltipFormatter:h,stackedType:c,axisValueFormatter:u,isSecondValueAxis:d,isRotated:A,isTimeOnlyField:p,utilsStrings:m,errorStrings:f}=s,{visible:g,isLogarithmic:y,title:x,grid:w,lineSymbol:S,labels:D,guides:T,valueFormat:L,displayZeroLine:$,displayCursorTooltip:I,tickSpacing:R,dateBaseInterval:F}=e;gj({axis:t,timeIntervalInfo:r,dateBaseInterval:F}),Oc({element:t.renderer.grid.template,lineSymbol:w,visible:g}),Oc({element:t.renderer.line,lineSymbol:{color:[...re.color],...S??ZA()},visible:g}),Oc({element:t.renderer.ticks.template,lineSymbol:S,visible:g}),ij({axis:t,axisConfig:e,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,isSecondValueAxis:d}),_j(t,e),Q2({axis:t,labelsConfig:D,horizontalAxisLabelsBehavior:n,isSecondValueAxis:d,tickSpacing:R}),AH({axis:t,isXAxis:Xf(t.renderer,A),chartType:a,labelsTextSymbol:e.labels.content,formatOptions:L,overridePercentMultiplication:c===Gi.Stacked100,axisValueFormatter:u,isTimeOnlyField:p,errorStrings:f}),UI({axis:t,axisConfig:e,chartType:a,isSecondValueAxis:d}),Aj({axis:t,isLogarithmic:y,axisConfigIndex:i}),bj(t,x),vj(t,I),d!==!0&&(V2({axis:t,guides:T,guideTooltipFormatter:h,utilsStrings:m}),yj(t,$))}function Cj(s){let{chart:t,rotationChanged:e,isRotated:i,dualAxisChanged:r,timeIntervalInfoWasReset:a,timeIntervalInfo:n,guideTooltipFormatter:o,xAxisLabelFormatter:l,yAxisLabelFormatter:h,secondaryYAxisLabelFormatter:c,utilsStrings:u,errorStrings:d,queryObject:A}=s,{axisLabelsBehaviorChanged:p}=s,m=ve(t.uid,"config"),f=m.axes,{horizontalAxisLabelsBehavior:g,verticalAxisLabelsBehavior:y}=m,x=ze(m.series),w=Ua(m),S=ve(t.uid,"fieldList")?.some(Y=>Y.name===m.series[0].x&&Y.type===GA.TimeOnly)??!1,D=i===!0?1:0,T=i===!0?0:1,L=f?.[D],$=f?.[T],I=t.xAxes.getIndex(0);NI({chart:t,dualAxisChanged:r,rotationChanged:e,timeIntervalInfoWasReset:a,axisLabelsBehaviorChanged:p})&&(RI({chart:t,axesConfig:f,isRotated:i,chartType:x,queryObject:A}),p=[!0,!0]),I=t.xAxes.getIndex(0);let R=t.yAxes.getIndex(0),F=t.xAxes.getIndex(1)??t.yAxes.getIndex(1),H=I?.start,K=I?.end,z=R?.start,ee=R?.end,ie=F?.start,de=F?.end,G={timeIntervalInfo:n,chartType:x,horizontalAxisLabelsBehavior:g,verticalAxisLabelsBehavior:y,axisLabelsBehaviorChanged:p,guideTooltipFormatter:o,stackedType:w,isRotated:i,utilsStrings:u,errorStrings:d};I!==void 0&&L!==void 0&&vv({...G,axis:I,axisConfig:L,axisConfigIndex:D,axisValueFormatter:D===0?l:h,isTimeOnlyField:S}),R!==void 0&&$!==void 0&&vv({...G,axis:R,axisConfig:$,axisConfigIndex:T,axisValueFormatter:T===1?h:l,isTimeOnlyField:S}),F!==void 0&&f?.[2]!==void 0&&vv({...G,axis:F,axisConfig:f[2],axisConfigIndex:2,axisValueFormatter:c,isSecondValueAxis:!0,isTimeOnlyField:S}),e===!0&&[{axis:I,start:H,end:K},{axis:R,start:z,end:ee},{axis:F,start:ie,end:de}].forEach(Y=>{let{axis:xe,start:ae,end:le}=Y;xe!==void 0&&xe.events.once(ke.Validated,()=>{sw({axis:xe,start:ae,end:le})})}),I!==void 0&&I.ghostLabel.setPropertyValue("disabled",!0),R!==void 0&&R.ghostLabel.setPropertyValue("disabled",!0),F!==void 0&&F.ghostLabel.setPropertyValue("disabled",!0)}function NI(s){let{chart:t,dualAxisChanged:e,rotationChanged:i,timeIntervalInfoWasReset:r,axisLabelsBehaviorChanged:a}=s,n=ve(t.uid,"config"),{rotated:o,series:l}=n,h=n.axes,c=ze(l),u=o===!0?1:0,d=o===!0?0:1,A=h?.[u]?.valueFormat,p=h?.[d]?.valueFormat,m=t.xAxes.getIndex(0),f=t.yAxes.getIndex(0),g=m===void 0||i||A!==void 0&&JC({axis:m,valueFormat:A,chartType:c}),y=f===void 0||i||p!==void 0&&JC({axis:f,valueFormat:p,chartType:c});return e===!0||i===!0||r===!0||a?.[0]||a?.[1]||g||y}function wj(s){RI(s)}function Bj(s){let{chart:t,chartConfig:e,rotationChanged:i,axisLabelsBehaviorChanged:r,isRotated:a,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:h,xAxisLabelFormatter:c,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:d,utilsStrings:A,errorStrings:p,queryObject:m}=s,f=Ua(e);Cj({chart:t,rotationChanged:i,axisLabelsBehaviorChanged:r,isRotated:a,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:h,xAxisLabelFormatter:c,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:d,utilsStrings:A,errorStrings:p,queryObject:m});let g=a===!0?t.yAxes.getIndex(0):t.xAxes.getIndex(0);if(g!==void 0){g instanceof Ot&&(g.dataFields.category=eg(e));let w=g.renderer,S=w.grid.template;S.location=0,w.cellStartLocation=.1,w.cellEndLocation=.9;let D=e.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===zA.Descending,T=a===!0;D&&g instanceof Ct&&(T=!T),w.inversed=T}let y=a===!0?t.xAxes.getIndex(0):t.yAxes.getIndex(0),x=a===!0?t.xAxes.getIndex(1):t.yAxes.getIndex(1);f===Gi.Stacked100?(y instanceof He&&(y.calculateTotals=!0),x instanceof He&&(x.calculateTotals=!0)):(y instanceof He&&(y.calculateTotals=!1),x instanceof He&&(x.calculateTotals=!1))}function Vf(s){let{value:t,axisMin:e,axisMax:i}=s,r=Number.NaN,a=i-e;return a!==0&&(r=(t-e)/a),r}function aw(s){return s!=null&&s!==0}function HI(s){let{minimum:t,maximum:e,labelsIncrement:i,minimumValueConversion:r,maximumValueConversion:a}=s,n=t??ht.gauge.axisMinimum,o=e??ht.gauge.axisMaximum;n=sx(n,r),o=sx(o,a);let l=aw(i),h=aw(i)?i:Math.abs(o-n)/ht.gauge.numberOfLabelIntervals,c=l?Math.round(Math.abs(o-n)/h):ht.gauge.numberOfLabelIntervals;if(l)if(c>ht.gauge.maximumNumberOfLabelIntervals)h=Math.abs(o-n),c=1;else{let u=n+c*h;u<o?(c+=1,o=n+c*h):u>o&&(o=u)}return{min:n,max:o,labelsIncrement:h,numberOfIntervals:c}}function QI(s){let{axisConfig:t,axisMin:e,axisMax:i}=s;typeof e=="number"&&typeof i=="number"&&i-e!==0&&t.guides?.forEach(r=>{let{start:a,end:n}=r;typeof a=="number"&&(r.start=Vf({value:a,axisMin:e,axisMax:i})),typeof n=="number"&&(r.end=Vf({value:n,axisMin:e,axisMax:i}))})}function Sj(s){let{featureIndex:t,chartData:e,chartConfig:i}=s,{minimumFromField:r,maximumFromField:a}=i?.axes?.[0]??{},n,o;if(t>=0&&t<e.length){let l=e[t];typeof r=="string"&&!Yi(r)&&Number.isFinite(l[r])&&(n=l[r]),typeof a=="string"&&!Yi(a)&&Number.isFinite(l[a])&&(o=l[a])}return{minimumFromData:n,maximumFromData:o}}function Fj(s){let{featureIndex:t,chartData:e,x:i}=s,r=-1;if(t>=0&&t<e.length){let a=e[t];i!==void 0&&!Yi(i)&&Number.isFinite(a[i])&&(r=a[i])}return r}function jI(s){let{featureIndex:t=0,chartData:e,queryConfig:i,chartConfig:r,gaugeMinMaxFromData:a}=s,{axes:n,series:o}=r,l=rg(r),{minimum:h,maximum:c}=n?.[0]??{},{x:u}=o?.[0]??{},d=ht.gauge,A,p;l?{minimumFromData:A,maximumFromData:p}=Sj({featureIndex:t,chartData:e,chartConfig:r}):i!==void 0&&({minimumFromData:A,maximumFromData:p}=a);let m=A??h??d.axisMinimum,f=p??c??d.axisMaximum,g=Fj({chartData:e,featureIndex:t,x:u});return{minimum:m,maximum:f,dataValue:g}}function Tj(s){let{oldConfig:t,axisMax:e,min:i,max:r,labelsIncrement:a,numberOfIntervals:n,valueFormat:o,minimumFromField:l}=s,h=Ou(o),c=!0;if(t!==void 0){let{minimum:u,minimumFromField:d,labelsIncrement:A,valueFormat:p}=t.axes[0],m=p?.intlOptions?.style!==o?.intlOptions?.style,f=aw(A)?A!==a:n!==ht.gauge.numberOfLabelIntervals;c=m||i!==u||l!==d||!h&&r!==e||f}return c}var Ds={InnerLabel:0,InnerLabelSecondary:1,AxisLabels:2,FirstAndLastLabels:3};function pu(s,t){let e;switch(t){case Ds.InnerLabel:e="gaugeAutoResizeInnerLabelFirstDisposer";break;case Ds.InnerLabelSecondary:e="gaugeAutoResizeInnerLabelSecondDisposer";break;case Ds.AxisLabels:e="gaugeAutoResizeAxisLabelsDisposer";break;case Ds.FirstAndLastLabels:e="gaugeAutoResizeFirstAndLastLabelsDisposer";break}if(e!==void 0){let i=ve(s.uid,e);i!==void 0&&(i.dispose(),i=void 0,ni(s.uid,{[e]:void 0}))}}function Pj(s){let{chart:t,labelList:e,scaleToAdjust:i,fontSize:r,type:a,axisConfig:n}=s,o=Number.NaN,l=Number.NaN,h=i;if(a===Ds.InnerLabel){let u=e[0],d=n?.innerLabel?.content?.verticalAlignment??Yt.Middle,A=u.dy??0,p=Math.round(t.chartContainer.measuredHeight-t.radarContainer.pixelY-A),m=u.bbox.height*i,f=0;switch(d){case Yt.Bottom:f=m;break;case Yt.Top:f=-m;break;case Yt.Middle:case Yt.Baseline:f=m*.5;break}f>p&&(h=i*(p/f)),o=re.gauge.innerLabelAutoMinFontSize,l=re.gauge.innerLabelAutoMaxFontSize}else o=re.gauge.axisLabelAutoMinFontSize,l=re.gauge.axisLabelAutoMaxFontSize;let c=r*h;return c<o?h*=o/c:c>l&&(h*=l/c),h}function Ow(s){let{chart:t,type:e,labelList:i,currentScale:r,currentFontSize:a,axisConfig:n}=s,o=Number.NaN,l=Number.NaN;if(e===Ds.InnerLabel){let h=typeof t.innerRadius=="number"?t.innerRadius:t.innerRadius.value;l=(t.xAxes.getIndex(0)?.measuredWidth!==0?t.xAxes.getIndex(0)?.measuredWidth??1:1)*h}else l=t.xAxes.getIndex(0)?.measuredHeight??1;if(l>1){let h=e===Ds.InnerLabel?i[0]?.measuredWidth??0:i.find(c=>c.measuredWidth>0&&c.measuredHeight>0)?.measuredHeight??0;if(h>0){let c=h/l;if(c>0){let{axisLabelToInnerChartRatio:u,innerLabelToInnerChartRatio:d}=re.gauge,A=e===Ds.InnerLabel?d:u;o=r*(A/c),o=Pj({chart:t,labelList:i,axisConfig:n,scaleToAdjust:o,fontSize:a,type:e}),o=Number(o.toFixed(2))}}}return Number.isFinite(o)||(o=r),o}function Dj(s){return s?.labels.content.font?.size===void 0||s?.innerLabel?.visible!==!1&&s?.innerLabel?.content?.font?.size===void 0}function Uv(s){return s.some(t=>op(t)&&t.value!==void 0)}function Lj(s){let{chart:t,axisConfig:e,axis:i}=s;if(e.labels.content.font?.size===void 0&&e.onlyShowFirstAndLastLabels!==!0){pu(t,Ds.AxisLabels),pu(t,Ds.FirstAndLastLabels);let r=()=>{i.events.once(ke.Validated,()=>{let n=tn(i,vr.GaugeTicksWithLabels);if(Uv(n)){let o=n.map(d=>d.label),l=o[0].scale,h=o[0].fontSize,c=Ow({chart:t,type:Ds.AxisLabels,labelList:o,currentScale:l,currentFontSize:h,axisConfig:e}),u=c/l;Number.isFinite(c)&&c>0&&(u<=.98||u>1.02)&&o.forEach(d=>{d.scale=c})}}),i.validate()};t.events.once(ke.Validated,r);let a=t.events.on(ke.SizeChanged,r);ni(t.uid,{gaugeAutoResizeAxisLabelsDisposer:a}),r()}else{pu(t,Ds.AxisLabels);let r=tn(i,vr.GaugeTicksWithLabels);r.length>0&&r.map(a=>a.label).forEach(a=>{a.scale=1})}}function Ij(s,t){let e=ve(s.uid,"config")?.axes?.[0];if(e?.innerLabel?.visible!==!1&&e?.innerLabel?.content?.font?.size===void 0){let i=s.xAxes.getIndex(0)?.measuredWidth;if(i!==void 0&&i>0){let r=Ow({chart:s,type:Ds.InnerLabel,labelList:[t],currentScale:t.scale,currentFontSize:t.fontSize,axisConfig:e});Number.isFinite(r)&&Math.abs(t.scale-r)>.25&&(t.scale=r,t.validate())}}else t.scale=1}function kj(s,t){pu(s,Ds.InnerLabel),pu(s,Ds.InnerLabelSecondary);let e=s.xAxes.getIndex(0),i=()=>{e?.events.once(ke.Validated,()=>{Ij(s,t)})},r=s.events.on(ke.Validated,i),a=s.events.on(ke.SizeChanged,i);ni(s.uid,{gaugeAutoResizeInnerLabelFirstDisposer:a,gaugeAutoResizeInnerLabelSecondDisposer:r}),i()}function nw(s){return s?.labels.content.font?.size===void 0&&s?.onlyShowFirstAndLastLabels===!0}function $j(s){let t=s.chart,e=ve(t.uid,"config")?.axes?.[0],i=tn(s,vr.GaugeFirstAndLastGuides);if(Uv(i)){let r=i.map(l=>l.label),a=r[0].scale,n=r[0].fontSize,o=Ow({chart:t,type:Ds.FirstAndLastLabels,labelList:r,currentScale:a,currentFontSize:n,axisConfig:e});Number.isFinite(o)&&o>0&&r.forEach(l=>{mu(l.uid,{originalWidth:l.measuredWidth/l.scale,originalHeight:l.measuredHeight/l.scale}),l.scale=o,l.validate()})}}function Oj(s){let{chart:t,axisConfig:e,axis:i}=s;if(nw(e)){pu(t,Ds.AxisLabels),pu(t,Ds.FirstAndLastLabels);let r=()=>{i.events.once(ke.Validated,()=>{$j(i)})},a=t.events.on(ke.SizeChanged,r);ni(t.uid,{gaugeAutoResizeFirstAndLastLabelsDisposer:a}),r()}else pu(t,Ds.FirstAndLastLabels),tn(i,vr.GaugeFirstAndLastGuides).map(r=>r.label).forEach(r=>{r.scale=1})}function ow(s,t){let e=s.xAxes.getIndex(0);if(e!==void 0){let i=t??ve(s.uid,"config"),{onlyShowFirstAndLastLabels:r}=i?.axes?.[0]??{};if(!e.renderer.labels.template.visible||r===!0)s.radius=new et(re.gauge.radius);else{let a=tn(e,vr.GaugeTicksWithLabels),{furthestLabelX:n,furthestLabelY:o}=a.reduce(({furthestLabelX:l,furthestLabelY:h,furthestPixelX:c,furthestPixelY:u},{label:d})=>{if(d?.visible&&d.bbox.width>0&&d.bbox.height>0){let A=d.pixelX,p=d.bbox.width*d.scale,m=0;A<0?m=Math.abs(A):m=A+p,m>c&&(c=m,l=d);let f=d.pixelY,g=d.bbox.height*d.scale,y=0;f<0?y=Math.abs(f):y=f+g,y>u&&(u=y,h=d)}return{furthestLabelX:l,furthestLabelY:h,furthestPixelX:c,furthestPixelY:u}},{furthestLabelX:void 0,furthestPixelX:0,furthestLabelY:void 0,furthestPixelY:0});if(n!==void 0&&o!==void 0){let l=(n.bbox.width+5)*n.scale,h=(o.bbox.height+5)*o.scale,c=typeof e.renderer.labels.template.radius=="number"?e.renderer.labels.template.radius:e.renderer.labels.template.radius.value,u=(l+c)*2+s.radarContainer.measuredWidth+pv(s.paddingLeft)+pv(s.paddingRight),d=80,A=170,p=s.htmlContainer?.clientHeight??0,m=Math.max(0,Math.min(1,(p-d)/(A-d))),f=s.radarContainer.measuredHeight+(h+c*m)*2+pv(s.paddingTop)+pv(s.paddingBottom),g=s.measuredWidth,y=s.measuredHeight,x=g/u,w=y/f,S=(typeof s.radius=="number"?s.radius:s.radius.value)*100,D=Number((S*x).toFixed(2)),T=Number((S*w).toFixed(2)),L=D/S,$=T/S,I=s.radarContainer.measuredWidth*L,R=s.radarContainer.measuredWidth*$,[F,H]=I<R?[D,L]:[T,$];Number.isFinite(F)&&F>=10&&F<=re.gauge.radius&&(H<.98||H>1.02)&&(s.radius=new et(F))}}}}function Ej(s){let t=s.xAxes.getIndex(0);t!==void 0&&(t.events.on(ke.SizeChanged,()=>ow(s)),t.events.on(ke.Validated,zs(()=>ow(s),re.debounceTime)))}function WI(s){let t=s.hands.push(new Zd),e=re.gaugeNeedle,{startWidth:i,endWidth:r,innerRadius:a}=e;t.pin.disabled=!0,t.startWidth=i??Number.NaN,t.endWidth=r??Number.NaN,t.innerRadius=he(a??Number.NaN);let n=s.xAxes.getIndex(0);return n!==void 0&&(t.axis=n),t}function Mj(s){let{x:t,data:e,chart:i,valueFormat:r,minimum:a,maximum:n}=s,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(c=>t in c),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,ni(i.uid,{gaugeData:o}))}else{let l=ve(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Ou(r)&&a!==void 0&&n!==void 0&&a!==null&&n!==null&&o!==null&&n-a!==0&&(o=Vf({value:o,axisMin:a,axisMax:n})),o}function Rj(s,t){let e=t??null;if(t!=null){let i=s.xAxes.getIndex(0),r=ve(s.uid,"config"),a=i.min??r?.axes?.[0].minimum??re.gauge.axisMinimum,n=i.max??r?.axes?.[0].maximum??re.gauge.axisMaximum;t<a?e=a:t>n&&(e=n)}return e}function Uj(s){let{chart:t,needle:e,gaugeValue:i}=s,r=t.hands.getIndex(0)??WI(t);if(r!==void 0){Mf({element:r,fillSymbol:e?.symbol});let{startWidth:a,endWidth:n,innerRadius:o}=re.gaugeNeedle;r.value=Rj(t,i),r.pin.disabled=e?.displayPin!==!0,r.visible=e?.visible??!0,r.startWidth=e?.startWidth??a,r.endWidth=e?.endWidth??n,r.innerRadius=he(e?.innerRadius??o)}}function Vj(s){let t=vl(void 0,s.radarContainer);t.isMeasured=!1,mu(t.uid,{isGaugeAxisInnerLabel:!0}),kj(s,t)}function Nj(s){let{chart:t,innerLabelConfig:e,valueFormat:i,gaugeValue:r,gaugeInnerLabelFormatter:a}=s,n=t.radarContainer.children.values.find(o=>gs(o.uid,"isGaugeAxisInnerLabel")===!0);if(n!==void 0){Cn({label:n,labelConfig:e,defaults:re.gaugeInnerLabel});let o=ve(t.uid,"formatLocale");n.html=qj({valueFormat:i,iLocale:t.language.locale,formatLocale:o,gaugeValue:r,innerLabelConfigContent:e?.content,gaugeInnerLabelFormatter:a}),t.radarContainer.invalidateLabels()}}function Hj(s){let t=s.axisRanges.create();return t.axisFill.fillOpacity=1,t.axisFill.disabled=!0,t.grid.strokeOpacity=1,t.grid.disabled=!1,t.tick.length=re.gaugeTicksLength,t}function Qj(s){let t=new Un;return t.disabled=!0,t.axis=s,Iv(t),t.padding(10,10,10,10),mu(t.uid,{isGaugeAxisLabel:!0}),t}function jj(s){let{axis:t,min:e,max:i,labelsIncrement:r,numberOfIntervals:a,valueFormat:n}=s,o=Ou(n),l=1,h=tn(t,vr.Ticks);h.length>0&&(l=h[0].label?.scale,h.forEach(d=>{if(op(d)){let A=t.axisRanges.values.indexOf(d);A>=0&&t.axisRanges.removeIndex(A)}}));let c=re.gauge.numberOfTicksBetweenTwoLabels+1,u=a*c+1;for(let d=0;d<u;d+=1){let A=d===u-1,p=Hj(t),m=A?i:e+d/c*r;p.value=o?Vf({value:m,axisMin:e,axisMax:i}):m,d%c===0&&(p.label=Qj(t),p.label.text=String(m),p.grid.disabled=!0,Number.isFinite(l)&&(p.label.scale=l))}}function Wj(s){let{chart:t,axis:e,onlyShowFirstAndLastLabels:i,valueFormat:r,axisLabelConfigContent:a,axisValueFormatter:n}=s;if(!i){let o=tn(e,vr.GaugeTicksWithLabels);if(Uv(o)){let l=ve(t.uid,"formatLocale");o.forEach(h=>{Cn({label:h.label,labelConfig:a}),op(h)&&(h.label.html=XI({valueFormat:r,iLocale:t.language.locale,formatLocale:l,gaugeLabelConfigContent:a?.content,itemLabelValue:h.value,axisValueFormatter:n}))})}}}function Xj(s,t){let e=t?.ticks?.visible??!0,i=tn(s,vr.Ticks);for(let r=0;r<i.length;r+=1){let a=i[r];Ri(a.tick,e)}}function zj(s,t){if(s instanceof He&&s.chart instanceof qs){let e=tn(s,vr.GaugeTicksWithLabels);if(Uv(e)){let{onlyShowFirstAndLastLabels:i,labels:r}=t,a=(r?.visible??!0)&&i!==!0;e.forEach(n=>{Ri(n.label,a)})}}}function Gj(s){let{labels:t,guides:e,onlyShowFirstAndLastLabels:i}=s,r=e??[];if(i===!0){let a={type:V.Guide,start:Number.NaN,style:{type:"esriSLS"},name:""};r.push({...a,start:s.minimum??Number.NaN,name:re.gaugeFirstLabelId,label:{...t.content,text:`${s.minimum}`}},{...a,start:s.maximum??Number.NaN,name:re.gaugeLastLabelId,label:{...t.content,text:`${s.maximum}`}})}s.guides=r}function Yj(s){tn(s,vr.GaugeFirstAndLastGuides).forEach(t=>{t.label.adapter.keys().includes("dx")||t.label.adapter.add("dx",e=>{let i=e;if(t.label.measuredWidth>0){let r=ve(s.chart.uid,"config")?.axes?.[0],a=gs(t.label.uid,"originalWidth"),n=nw(r)&&a!==void 0&&a===t.label.measuredWidth&&t.label.scale!==1;i=Math.round((n?a*t.label.scale:t.label.measuredWidth)/2),t.id===re.gaugeLastLabelId&&(i*=-1)}return i}),t.label.adapter.keys().includes("dy")||t.label.adapter.add("dy",e=>{let i=e;if(t.label.measuredHeight>0){let r=ve(s.chart.uid,"config")?.axes?.[0],a=gs(t.label.uid,"originalHeight"),n=nw(r)&&a!==void 0&&a===t.label.measuredHeight&&t.label.scale!==1;i=Math.round((n?a*t.label.scale:t.label.measuredHeight)/2)}return i})})}function Kj(s){let{chart:t,axis:e,onlyShowFirstAndLastLabels:i,valueFormat:r,gaugeLabelConfigContent:a,axisValueFormatter:n}=s;if(i){let o=tn(e,vr.GaugeFirstAndLastGuides),l=ve(t.uid,"formatLocale");o.forEach(h=>{h?.label!==void 0&&op(h)&&(h.label.html=XI({valueFormat:r,iLocale:t.language.locale,formatLocale:l,gaugeLabelConfigContent:a?.content,itemLabelValue:h.value,axisValueFormatter:n}))}),Yj(e)}}function Zj(s){let{chart:t,valueFormat:e,queryObject:i}=s;t.xAxes.clear(),Of({isXAxis:!0,axes:t.xAxes,valueFormat:e,queryObject:i});let r=t.xAxes.getIndex(0);r instanceof He&&(r.renderer.labels.template.disabled=!0,r.renderer.ticks.template.disabled=!0,WI(t),Vj(t),Ej(t),r.maxZoomFactor=1)}function qj(s){let{valueFormat:t,iLocale:e,formatLocale:i,innerLabelConfigContent:r,gaugeValue:a,gaugeInnerLabelFormatter:n}=s,o="";if(Number.isFinite(a))if(n!==void 0)o=n(a);else{let l=Eo(t),h=yl({type:V.NumberAxisFormat,iLocale:e,formatLocale:i});h.numberFormat=l,o=h.format(`${a}`),o=_a({textSymbol:{type:Dt.TS,...r,text:o},format:"html"}),o=Mr(o)}return o}function XI(s){let{valueFormat:t,iLocale:e,formatLocale:i,gaugeLabelConfigContent:r,itemLabelValue:a,axisValueFormatter:n}=s,o="";if(Number.isFinite(a))if(n!==void 0)o=n(a);else{let l=Eo(t),h=yl({type:V.NumberAxisFormat,iLocale:e,formatLocale:i});h.numberFormat=l,o=h.format(`${a}`),o=_a({textSymbol:{type:Dt.TS,...r,text:o},format:"html"}),o=Mr(o)}return o}function Jj(s){let{chart:t,chartConfig:e,data:i,queryObject:r,axisValueFormatter:a,gaugeInnerLabelFormatter:n,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}=s,{axes:c,series:u}=e,d=rg(e),A=ze(e.series),{featureIndex:p,x:m}=u[0],f=c?.[0],g=t.xAxes.getIndex(0),y={...f};if(g!==void 0&&y!==void 0){let{valueFormat:x,needle:w,innerLabel:S,onlyShowFirstAndLastLabels:D}=y;JC({axis:g,valueFormat:x,chartType:A})&&Of({isXAxis:!0,axes:t.xAxes,valueFormat:x,queryObject:r});let T=jI({featureIndex:p,chartData:t.data,chartConfig:e,gaugeMinMaxFromData:h,queryConfig:ve(t.uid,"queryConfig")});y.minimum=T.minimum,y.maximum=T.maximum;let{min:L,max:$,labelsIncrement:I,numberOfIntervals:R}=HI(y);Tj({oldConfig:ve(g.chart.uid,"config"),axisMax:g.max,min:L,max:$,labelsIncrement:I,numberOfIntervals:R,valueFormat:x})&&jj({axis:g,min:L,max:$,labelsIncrement:I,numberOfIntervals:R,valueFormat:x});let F={...y};Ou(x)?(F.minimum=0,F.maximum=1,QI({axisConfig:F,axisMin:y.minimum,axisMax:y.maximum})):(F.minimum=L,F.maximum=$),Gj(F),vv({axis:g,axisConfig:F,axisConfigIndex:0,chartType:V.GaugeSeries,axisValueFormatter:a,isTimeOnlyField:!1,utilsStrings:o,errorStrings:l}),g.renderer.labels.template.disabled||(g.renderer.labels.template.disabled=!0),g.renderer.ticks.template.disabled||(g.renderer.ticks.template.disabled=!0),Lj({chart:g.chart,axis:g,axisConfig:y}),Oj({chart:t,axis:g,axisConfig:y}),Xj(g,y),Wj({chart:t,axis:g,onlyShowFirstAndLastLabels:D??!1,valueFormat:x,axisLabelConfigContent:y.labels,axisValueFormatter:a}),Kj({chart:t,axis:g,onlyShowFirstAndLastLabels:D??!1,valueFormat:x,gaugeLabelConfigContent:y.labels,axisValueFormatter:a});let H=d?T?.dataValue:Mj({x:m,data:i,chart:t,minimum:y.minimum,maximum:y.maximum,valueFormat:x});Uj({chart:t,needle:w,gaugeValue:H}),Nj({chart:t,innerLabelConfig:S,valueFormat:x,gaugeValue:H,gaugeInnerLabelFormatter:n}),zj(g,y),ow(t,e),t.validateData()}}function eW(s){s.background.fill=xn(re.backgroundColor)}function Vv(s,t){s.background.fill=xn(t??re.backgroundColor)}function tW(s){let t=BI(re.headerContainer,s),e=vl(re.title,t),i=vl(re.subtitle,t);return s instanceof An&&(Bv(s,e),Bv(s,i),Uf({chart:s,label:e,labelType:ii.ChartTitle}),Uf({chart:s,label:i,labelType:ii.ChartSubTitle})),pQ(t),{headerContainer:t,title:e,subtitle:i}}function Nv(s,t){let{title:e,subtitle:i,headerContainer:r}=s;Cn({label:e,labelConfig:t?.title,defaults:re.titleLabel}),Cn({label:i,labelConfig:t?.subtitle,defaults:re.titleLabel}),SI(r,e.disabled&&i.disabled),Rc({chart:e.parent,label:e,labelType:ii.ChartTitle}),Rc({chart:i.parent,label:i,labelType:ii.ChartSubTitle})}function iW(s){let t=BI(re.footerContainer,s),e=vl(re.footer,t);return s instanceof An&&(Bv(s,e),Uf({chart:s,label:e,labelType:ii.ChartFooter})),{footerContainer:t,footer:e}}function Hv(s,t){let{footer:e,footerContainer:i}=s;Cn({label:e,labelConfig:t,defaults:re.footer}),SI(i,e.disabled||t?.content.text===""),Rc({chart:e.parent,label:e,labelType:ii.ChartFooter})}function zI(s){if(s instanceof Wt){let t=new po,e=new po;t.disabled=!0,e.disabled=!0,t.marginTop=-10,e.marginRight=0,s.scrollbarX=t,s.scrollbarY=e}}function rW(s,t){let e=t?0:-1;s.thumb.tabindex=e,s.startGrip.tabindex=e,s.endGrip.tabindex=e}function sW(s,t){if(t!==void 0){let e=Ec(t);[s.background,s.startGrip.background,s.endGrip.background,s.thumb.background,s.background.states.getKey("default")?.properties,s.startGrip.background.states.getKey("default")?.properties,s.endGrip.background.states.getKey("default")?.properties,s.thumb.background.states.getKey("default")?.properties,s.startGrip.background.states.getKey("hover")?.properties,s.endGrip.background.states.getKey("hover")?.properties,s.thumb.background.states.getKey("hover")?.properties,s.startGrip.background.states.getKey("down")?.properties,s.endGrip.background.states.getKey("down")?.properties,s.thumb.background.states.getKey("down")?.properties].forEach(i=>{i!==void 0&&(i.fill=e)})}}function aW(s,t){typeof t=="number"&&Number.isFinite(t)&&(s.orientation==="horizontal"?(s.height=t,s.minHeight=t):(s.width=t,s.minWidth=t))}function nW(s,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;s.startGrip.scale=e,s.endGrip.scale=e}}function oW(s,t){typeof t=="number"&&Number.isFinite(t)&&(s.orientation==="horizontal"?s.marginBottom=t:s.marginLeft=t,s.parent?.invalidateLayout())}function GI(s){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=s;if(t instanceof Wt){let r=ve(t.uid,"isRotated");(t.scrollbarX===void 0||t.scrollbarY===void 0)&&zI(t);let{scrollbarX:a,scrollbarY:n}=t;[a,n].forEach(o=>{let l=o.orientation==="horizontal"&&r!==!0||o.orientation==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(o.disabled=h,rW(o,!h),l!==void 0&&!h){let{width:c,color:u,gripSize:d,margin:A}=l;oW(o,A),sW(o,u),nW(o,d),aW(o,c)}})}}function lW(s,t){s.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&(e.strokeOpacity=0)})}function hW(s,t){let e=s.chart.legend.events.on(ke.Validated,()=>{gu({element:s.legendDataItem?.marker.children.getIndex(0),stylingInfo:t}),s.chart.legend.isReady()&&(e.dispose(),s.chart.legend.invalidate())})}function uW(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:a,colorMatch:n,rendererType:o}=s,l=t.dataFields.valueY??t.dataFields.valueX??e.y,h=!1,c=new Set,u,d=e.fillSymbol,A={seriesConfig:e,seriesIndex:i,seriesSymbol:d,colorMatch:n,isChartFillSymbol:!0},p={},m={},f=Zb(i);if(t.columns.length===0?p=Mc({seriesConfig:e,seriesIndex:i,seriesSymbol:d??f,element:new Oe,colorMatch:n,isChartFillSymbol:!0}):t.columns.each(g=>{let y=g.dataItem?.dataContext;if(Number.isFinite(y?.[l])){let x=on({dataItem:y,seriesConfig:e,chartSubType:a,colorMatch:n,rendererType:o}),w=y[re.xAxisField]===re.nullValue,S=(w&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:d)??f;p=Mc({...A,seriesSymbol:S,element:g,rendererSymbol:x}),gu({element:g,stylingInfo:p.stylingInfo}),w||(c.add(JSON.stringify(p.symbolWithColorInfo)),m=p)}}),r>1){let g=t.chart.legend.markers.values;g.length!==0?g.forEach(y=>{if(y.dataItem instanceof fo){let x=y.dataItem.marker.children.getIndex(0);x!==void 0&&x.baseSprite?.parent instanceof Hi?gu({element:x,stylingInfo:m.stylingInfo}):h=!0}}):h=!0}return h&&hW(t,m.stylingInfo),c.size<=1&&(u=m.symbolWithColorInfo??d),lW(t,l),u}function cW(s){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:a,rendererType:n}=s,o=s.seriesConfig,l=ve(t.chart.uid,"config"),h=l?.series.length??0,c=It(l?.series),u=uW({series:t,seriesConfig:o,seriesIndex:r,numberOfSeries:h,chartSubType:c,colorMatch:a,rendererType:n});e.set(i.get(o.id)??r,u),e.size===h&&nn({data:e,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:kv(t.chart)})}function YI(s){let{seriesConfig:t,series:e,seriesIndexMapper:i,rotationChanged:r,colorMatch:a,stackedType:n,rendererType:o,seriesIndex:l,seriesSymbolMapForEvent:h,queryObject:c}=s,{name:u}=t,d=ve(e.chart.uid,"config"),A=_n({config:d}),p=It(d?.series);Ri(e,t.visible);let m=u,f=e.dataFields?.customValue??"";(p===Ee.BarAndLineSplitBy||p===Ee.BarAndLineSplitByNoAggregation)&&(m=Zm({queryObject:c,fieldName:Vo(f),fieldValue:m})??m),xA(e,m),ww({series:e,seriesConfig:t,rotationChanged:r,stackedType:n,isRotated:A}),cW({series:e,seriesConfig:t,seriesIndex:l,seriesIndexMapper:i,colorMatch:a,rendererType:o,seriesSymbolMapForEvent:h}),Po(e.uid,{barSeriesLastUpdate:{numberOfColumnsUpdated:e.columns.length,updateProps:s}})}function dW(s){s.events.on(ke.Validated,()=>{let t=Hs(s.uid,"barSeriesLastUpdate");if(t!==void 0){let{numberOfColumnsUpdated:e,updateProps:i}=t;s.columns.length>e&&YI(i)}})}function AW(s){let{chart:t,chartConfig:e,seriesIndex:i,axisList:r=[],hideLoaderHandle:a,selectionTheme:n,queryObject:o}=s,{rotated:l}=e,h=e.series[i],{y:c,assignToSecondValueAxis:u}=h,d=new Hi;jc(d,a),d.id=h.id;let A,p;l!==!0?(A=r[0],p=u===!0&&r[2]?r[2]:r[1]):(A=u===!0&&r[2]?r[2]:r[0],p=r[1]),A!==void 0&&(d.xAxis=A),p!==void 0&&(d.yAxis=p);let m=t instanceof Wt?_n({chart:t}):!1,f=It(e.series)!==Ee.BarAndLineSplitByNoAggregation?c:`${c}_${Ch({where:h.query?.where,keepSurroundingQuotes:!1,escape:!1})}`;m?d.dataFields.valueX=f:d.dataFields.valueY=f;let g=m?r[1]:r[0];if(g!==void 0){let y=AI(g,m);d.dataFields[y]=re.xAxisField,d.baseAxis=g}return ww({series:d,seriesConfig:h,rotationChanged:!1,stackedType:e.stackedType,isRotated:m}),d.dataFields.customValue=h?.query?.where,xI(d.columns.template,d),d.columns.template.width=he(100),Qc({element:d.columns.template,customSelectionTheme:n}),Qf({chart:t,element:d.columns.template,queryObject:o}),Dw(d),dW(d),Hc(d),d}function pW(s){let{seriesConfig:t,series:e,seriesIndex:i,axes:r,utilsStrings:a,fieldList:n,queryObject:o,stackedType:l,options:h}=s;e.id=t.id;let c=_n({chart:e.chart});aj({series:e,seriesType:V.BarSeries,isRotated:c,stackedType:l,hideOversizedSideBySideLabels:t.hideOversizedSideBySideLabels,hideOversizedStackedLabels:t.hideOversizedStackedLabels,dataLabelsConfig:t.dataLabels,yAxisValueFormat:r[1].valueFormat,customDataLabelFormatter:h?.dataLabelFormatter}),$v({styleCallback:YI,callbackProps:s,series:e,seriesConfig:t,onReadyEvent:!0}),CI({series:e,seriesConfig:t,fieldList:n,queryObject:o,utilsStrings:a,seriesIndex:i,tooltipFormatter:h?.tooltipFormatter})}function fW(s){s.labels.template.adapter.add("html",(t,e)=>{let i=Hs(s.uid,"pieChartDataLabelFormatter"),r=t??"",{dataItem:a}=e;if(a instanceof Ta){let{slice:n}=a;if(n!==void 0&&!Ef(n))r="";else if(i!==void 0){let{value:o,percent:l}=a.values?.value??{};if(o!==void 0&&o!==0){let h=`${a.properties?.category??t}`;r=i(h,o,l)}}}return Yi(r)&&(r=re.htmlEmptyContent),Mr(r)})}function mW(s){let t=s.labels.template;t.maxWidth=re.pieChart.dataLabels.maxWidth??Number.NaN,t.wrap=re.pieChart.dataLabels.wrap??!0,t.events.on(ke.Over,e=>{let{dataItem:i}=e.target??{};i instanceof Ta&&i.slice.showTooltip()}),fW(s)}function gW(s,t){let{numericValueFormat:e,percentValueFormat:i,displayCategoryOnDataLabel:r,displayNumericValueOnDataLabel:a,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c,dataLabelsCharacterLimit:u}=t,d=Pw({iLocale:s.chart.language.locale,pieChart:s.chart,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:a??re.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??re.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}),A=Xm(u),p=Ra(s.rtl," ");return(m,f,g)=>{let y=d(m,f,g),x=r??re.pieChart.displayCategoryOnDataLabel?A(m):"",w=Yi(x)?"":`${x}${p}`;return w=`${w}${y}`,t.dataLabels?.content!==void 0&&(w=_a({textSymbol:{...t.dataLabels.content,text:w},format:"html",defaults:{...re.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??re.pieChart.dataLabels.wrap}})),w}}function yW(s){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=s,{dataLabels:r}=e,a=e.dataLabelsOffset??re.pieChart.dataLabelsOffset,n=e.dataLabelsInside??re.pieChart.dataLabelsInside;Po(t.uid,{pieChartDataLabelFormatter:i??gW(t,e)}),Cn({label:t.labels.template,labelConfig:r,defaults:{...re.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??re.pieChart.alignDataLabels},skipSettingText:!0}),t.alignLabels=!n&&(e.alignDataLabels??re.pieChart.alignDataLabels);let o=t.labels.template.radius;t.chart.invalidateData(),(n&&o!==he(-40)||!n&&o===he(-40)||a!==void 0&&Number.isFinite(a)&&o!==a)&&(t.labels.template.radius=n?he(-40):a,t.invalidate())}function vW(s,t){let e=(p,m,f)=>re.htmlEmptyContent,{numericValueFormat:i,percentValueFormat:r,dataTooltipValueFormat:a,dataTooltipPercentFormat:n,displayCategoryOnTooltip:o,displayNumericValueOnTooltip:l,displayPercentageOnTooltip:h,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A}=t;return e=(p,m,f)=>{let g=re.htmlEmptyContent,y=Pw({iLocale:s.chart.language.locale,pieChart:s.chart,valueIntlOptions:(a??i)?.intlOptions,percentageIntlOptions:(n??r)?.intlOptions,displayNumericValue:l??re.pieChart.displayNumericValueOnTooltip,displayPercentage:h??re.pieChart.displayPercentageOnTooltip,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A})("",m,f),x=!Yi(p)&&(o??re.pieChart.displayCategoryOnTooltip);if(x&&(g=`<b>${p}</b>`),!Yi(y)){let w=zm(y);g=x?`${g}<br />${w}`:w}return g},e}function bW(s){if(s.tooltip!==void 0){let t=s.fill;t instanceof fc?t=t.stroke:t instanceof mc&&(t=t.backgroundFill),s.tooltip.background.fill=t}}function xW(s){let t=s.slices.template;t.tooltipHTML=re.htmlEmptyContent,t.adapter.add("tooltipHTML",(e,i)=>{let r=e??"",{chart:a}=s;if(a!==void 0&&i.tooltip!==void 0){let n=ve(a.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)i.tooltip.disabled=!0;else{let l=Hs(s.uid,"pieChartTooltipFormatter");if(l!==void 0){let{dataItem:h}=i;if(h instanceof Ta){let c=h.properties.category??"",u=h.dataContext,d=so(u);d===void 0&&(d=c);let A=h.values?.value?.value,p=h.values?.value?.percent;typeof A=="number"&&A!==0&&n?.series?.[0]?.dataTooltipVisible!==!1?(i.tooltip.disabled=!1,bW(i),r=l(`${c}`,A,p,d)):i.tooltip.disabled=!0}}}}return Mr(r)})}function _W(s){let{series:t,seriesConfig:e,tooltipFormatter:i}=s;Po(t.uid,{pieChartTooltipFormatter:i??vW(t,e)})}function CW(s){s.ticks.template.adapter.add("disabled",(t,e)=>e.dataItem?.values?.value?.value===0||!Number.isFinite(e.dataItem?.values?.value?.value)||t===!0)}function wW(s){let{chartData:t,pieSeries:e,pieSlicesSymbols:i,seriesConfig:r}=s;if(e.slices.length===0){let a=[];t?.forEach(n=>{let o=xw({dataContext:n,pieSlicesSymbols:i,seriesConfig:r});a.push(Ec(o.color))}),a.length>0&&(e.colors.list=a)}}function BW(s){let{seriesConfig:t,hideLoaderHandle:e,selectionTheme:i}=s,{x:r,y:a,id:n,visible:o}=t,l=new ws;l.id=n,jc(l,e),l.dataFields.value=a,l.dataFields.category=r;let h=re.pieChart;l.startAngle=h.min,l.endAngle=360+l.startAngle,CW(l),xW(l),mW(l);let c=i!==void 0&&i.selectedElementsTheme?.transformation?.opacity===void 0?{...i,selectedElementsTheme:{...i?.selectedElementsTheme,transformation:{...i?.selectedElementsTheme?.transformation,opacity:1}}}:i;return Qc({element:l.slices.template,useNativeState:!0,customSelectionTheme:c}),l.slices.template.states.removeKey("hover"),Hc(l),l.hidden=o===!1,Dw(l),l}function SW(s){let{series:t,pieSlicesSymbols:e,seriesConfig:i,selectionTheme:r}=s;t.defaultState.reset(),t.slices.each((a,n)=>{let o=a.dataItem?.dataContext,l=xw({dataContext:o,pieSlicesSymbols:e,seriesConfig:i}),h=Mf({element:a,fillSymbol:l,defaultToColorFromRamp:!0,colorRampIndex:n,isChartFillSymbol:!0});r!==void 0&&r.selectedElementsTheme===void 0&&gu({element:a,stylingInfo:h,stateKey:aa.Active})})}function FW(s,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;s.ticks.template.disabled=i,s.ticks.template.strokeOpacity=re.pieChart.ticksOpacity;let r=e?.lineSymbol??ZA({color:Wb});i&&(r.width=0),Oc({element:s.ticks.template,lineSymbol:r,visible:!i})}function TW(s){let{chart:t,seriesConfig:e,series:i,pieSlicesSymbols:r,options:a,utilsStrings:n,queryObject:o}=s,{tooltipFormatter:l,dataLabelFormatter:h}=a??{},{x:c,y:u,id:d,innerRadius:A,startAngle:p,endAngle:m}=e;i.id=d;let f=It([e]),g=re.pieChart;i.dataFields.value=f!==Ee.PieFromFields?u:$u,i.dataFields.category=f!==Ee.PieFromFields?c:io;let y=t.radius instanceof et?t.radius.value:t.radius;t.innerRadius=he((A??g.innerRadius)*y),i.startAngle=p??g.min,i.endAngle=m??360+i.startAngle,yW({pieSeries:i,seriesConfig:e,dataLabelFormatter:h}),wW({chartData:t.data,pieSeries:i,pieSlicesSymbols:r,seriesConfig:e}),$v({styleCallback:SW,callbackProps:s,series:i,seriesConfig:e}),FW(i,e),_W({series:i,seriesConfig:e,tooltipFormatter:l})}async function sL(s){let{chart:t,hitSlice:e,multiSelect:i=!1,queryObject:r}=s,a=[],n=ve(t.uid,"config"),o=t.series.getIndex(0);if(n&&o!==void 0){let l=sI(o),h=bu(o),c={element:{},xAxisField:l,yAxisField:h,seriesIndex:0,chartConfig:n};o.slices.each((u,d)=>{u.isActive&&(u===e||i||u.dataItem instanceof Ta&&u.dataItem.label.isHover)?ah(u.dataItem?.dataContext)?(Hf({groupOfSlicesDataContext:u.dataItem?.dataContext})??[]).forEach(A=>{a.push({...c,element:void 0,elementDataContext:A,elementIndex:d})}):a.push({...c,element:u,elementDataContext:u.dataItem?.dataContext,elementIndex:d}):Kn({element:u,selected:!1,useNativeState:!0})}),a.forEach(u=>{Kn({element:u.element,selected:!0,useNativeState:!0})}),await Wf({chart:t,listSelectedElements:a,selectionSource:Pr.SelectionByClick,queryObject:r})}t.feedLegend()}function PW(s,t){let e=async a=>{let{target:n}=a;if(mI(s)&&s.series.getIndex(0)?.slices.template.togglable){let o=Ev(a,s);if(n instanceof Fa)await sL({chart:s,multiSelect:o,hitSlice:n,queryObject:t});else if(n instanceof Mi){let l=n.dataItem;if(l instanceof Ta){let{slice:h}=l;h.isActive=!h.isActive,await sL({chart:s,multiSelect:o,hitSlice:h,queryObject:t})}}else n===s.background&&await Wf({chart:s,listSelectedElements:[],selectionSource:Pr.SelectionByClick,queryObject:t})}},i=s.series.getIndex(0)?.slices.template;i!==void 0&&(i.events.on(ke.Hit,e),i.events.on(ke.DoubleHit,e));let r=s.series.getIndex(0)?.labels.template;r!==void 0&&r.events.on(ke.Hit,e),s.background.events.on(ke.Hit,e),s.background.events.on(ke.DoubleHit,e)}function aL(s){return s?.offsetParent!==null}function DW(s,t){s!==void 0&&t!==void 0&&window.IntersectionObserver!==void 0&&new IntersectionObserver(e=>{e[0].intersectionRatio>0&&(ve(s.uid,"chartWasCreatedWhileHidden")===!0?(s.reinit(),s.events.once(ke.Validated,()=>{s.reinit()}),s instanceof Wt&&Rv(s),ni(s.uid,{chartWasCreatedWhileHidden:!1})):ve(s.uid,"chartWasUpdatedWhileHidden")===!0&&(s.reinit(),ni(s.uid,{chartWasUpdatedWhileHidden:!1})))},{root:null}).observe(t)}function LW(s,t){let e=re.pieChart.dataLabels.maxWidth??100;if(s!=null){let{alignDataLabels:i,dataLabelsOffset:r=re.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:a,dataLabels:n,dataLabelsInside:o}=s;if(n?.visible===!0&&i===!0&&o!==!0&&a===!0){let l=typeof t.radius=="number"?t.radius/100:t.radius.value,h=t.chartContainer.measuredWidth,c=t.chartContainer.measuredHeight,u=l*Math.min(h,c),d=5,A=Math.floor((h-u)/2)-d-r;e=Math.min(A,e-d);let p=30;e<p&&(e=p)}}return e}function KI(s){if(qn(s)){let t=typeof s.radius=="number"?s.radius:s.radius.percent;ni(s.uid,{pieChartRadius:t});let e=()=>{let i=he(ve(s.uid,"pieChartRadius")??re.pieChart.chartOptimizedRadius),r=i,a=ve(s.uid,"config");if(a!==void 0){let{series:n}=a,{innerRadius:o,optimizeDataLabelsOverlapping:l,alignDataLabels:h,dataLabelsOffset:c=re.pieChart.dataLabelsOffset,dataLabels:u,dataLabelsInside:d}=n[0];if(u?.visible===!0&&h===!0&&l===!0&&d!==!0){let p=re.pieChart.chartOptimizedRadius/100,m=500,f=150,g=.6,y=.5,x=1,w=s.chartContainer.measuredWidth-c*2,S=Math.max(w-f,0)/(m-f),D=S<1?Math.max(S**x*g,.4):Math.min(S**y*g,p);r=he(D*100)}else r=he(re.pieChart.chartRadius);i.value.toFixed(1)!==r.value.toFixed(1)&&(ni(s.uid,{pieChartRadius:r.percent}),s.radius=r,s.innerRadius=he((o??re.pieChart.innerRadius)*r.value));let A=s.series?.values?.[0];A instanceof ws&&(A.labels.template.maxWidth=LW(a?.series[0],s))}return r};s.events.on(ke.SizeChanged,zs(e,re.debounceTime)),e(),s.validate()}}function ZI(s){if(s instanceof pr)KI(s);else if(!(s instanceof qs)){let t=()=>{let i=ve(s.uid,"config"),{chartPaddingMinSize:r,chartPaddingRightWhenLegendNotOnRight:a,chartContainerPaddingTopWhenRotated:n,chartContainer:o}=re,l=i?.series,h=ze(l),c=_n({config:i}),u=l?.[0]?.dataLabels?.visible??!0,d=re.chartDefaultPaddingRight;if(c&&u&&(h===V.LineSeries||h===V.ComboLineAndBarSeries||h===V.BarSeries&&(i?.stackedType??qb())===Gi.Side)){let p=0,m=f=>gs(f.uid,"isDataLabel")??!1;s.series.each(f=>{let g=f.bullets.values.find(m);g!==void 0&&g.clones.each(y=>{let x=y.measuredWidth;switch(y.horizontalCenter){case Yt.Middle:x/=2;break;case bi.Right:x*=-1;break;case bi.Left:}let w=y.pixelX+x;w>p&&(p=w,d=x)})})}d>=0&&(s.chartContainer.paddingRight=d),s.chartContainer.paddingTop=c?n:o.paddingTop;let A=i?.legend?.visible!==!1&&i?.legend?.position===st.Right;s.paddingRight=A?r:a},e=0;s.series.each(i=>{i.events.once(ke.Validated,()=>{e+=1,e===s.series.length&&t()})})}}function IW(s,t){s.adapter.add("criticalError",e=>(e.message=t.errors.simpleError,e))}function kW(s){let{data:t,seriesConfig:e,utilsStrings:i}=s,r=e[0],a=t?.reduce((d,A)=>{let p=A[$u]??A[r.y];return Number.isFinite(p)||(p=0),p+d},0),n=r?.sliceGrouping?.percentageThreshold??0,o=[],l,h=0,c=t?.find(d=>d[an.defaultGroupOfSlicesId]===!0)?.[ht.pieChart.technicalFieldGroupedSlices]??[],u=[...t,...c].filter(d=>{let A=!0,p=d[$u]??d[r.y];if(Number.isFinite(p)){let m=p/a*100;d[ht.pieChart.technicalFieldSlicePercent]=m,m<=n&&d[an.defaultGroupOfSlicesId]!==!0&&(h+=p,o.push(d),A=!1)}else d[an.defaultGroupOfSlicesId]!==!0&&(o.push(d),A=n===0||n===void 0);return d[an.defaultGroupOfSlicesId]===!0&&(l=d,A=!1),A});if(n>0&&o.length>0){let d=h/a*100,A=It(e)===Ee.PieFromFields,p={...l,[an.defaultGroupOfSlicesId]:!0,[A?io:r.x]:r.sliceGrouping?.label??i?.pieChart.defaultSliceGroupingLabel,[A?$u:r.y]:h,[ht.pieChart.technicalFieldSlicePercent]:d,[ht.pieChart.technicalFieldGroupedSlices]:o};u.push(p)}return u}function nL(s){let{creation:t,previousConfig:e,newConfig:i,dataInfo:r,dataUpdateNeeded:a,utilsStrings:n}=s,o=!1;if(r.data&&"dataItems"in r.data&&e?.series[0].type===V.PieSeries&&i?.series[0].type===V.PieSeries){let l=t||bw([e.series[0]],[i?.series[0]]);(a||l)&&(r.data.dataItems=kW({data:r.data.dataItems,seriesConfig:[i.series[0]],utilsStrings:n}),ig({arrayToSort:r.data.dataItems,chartConfig:i}),o=!0)}return o}function $W(s,t){let e=s.reduce((i,r)=>{if(r[an.defaultGroupOfSlicesId]===!0){let a=r[ht.pieChart.technicalFieldGroupedSlices];a!==void 0&&a.forEach(n=>{i.push(n)})}else i.push(r);return i},[]);return ig({arrayToSort:e,chartConfig:t}),e=ng({data:{dataItems:e},seriesConfig:t.series})?.dataItems??[],e}function qI(s,t){let e=s?.filter(i=>!ah(i));return!Ll(e,t)}function OW(s){let{dataContext:t,newLabel:e,x:i}=s;e===void 0?t[ht.originalCategoryValue]!==void 0&&(t[i]=t[ht.originalCategoryValue]):t[i]!==e&&(t[ht.originalCategoryValue]===void 0&&(t[ht.originalCategoryValue]=t[i]),t[i]=e)}function EW(s){let{data:t,newChartConfig:e,pieSlicesSymbols:i,fieldList:r}=s,a=e.series[0],n=It(e.series)===Ee.PieFromFields?io:a.x;t.forEach(o=>{let l=ah(o),h=o[ht.pieChart.technicalFieldSliceId],c=l?a.sliceGrouping?.label:qC(i?.slices,h)?.label;OW({dataContext:o,x:n,newLabel:c})}),eH({chartConfig:e,chartData:t,fieldList:r})}it.classNamePrefix="arcgis-charts-";function Ew(s){let{chart:t,localeInfo:e,chartLocale:i}=s;it.defaultLocale=i,t.language.locale=i,ni(t.uid,{formatLocale:e.formatLocale}),t.rtl=e.rtl}function Qv(s){let{chart:t,actionMode:e,cursorRange:i}=s;if(qn(t)){let r=e??ve(t.uid,"actionMode")??re.actionMode;ni(t.uid,{actionMode:r});let a=ve(t.uid,"filterBySelection");switch(r){case Vt.MonoSelection:case Vt.MultiSelection:case Vt.MultiSelectionWithCtrlKey:a!==!0?YH(t):XC(t);break;case Vt.Zoom:XC(t);break;case Vt.None:CA({chart:t,selectionSource:Pr.ClearSelection,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1}),XC(t);break}vH({chart:t,actionMode:r,cursorRange:i})}}function MW(s,t){t&&(s.tapToActivate=!0,s.tapTimeout=3e3,s.responsive.enabled=!0)}function RW(s){let{chart:t,axesConfig:e,chartType:i,isRotated:r,errorStrings:a,queryObject:n}=s;switch(Il({chartType:i,axesConfig:e,errorStrings:a}),i){case V.GaugeSeries:{ao(n),t instanceof qs&&e?.[0]?.valueFormat!==void 0&&Zj({chart:t,valueFormat:e[0].valueFormat,queryObject:n});break}case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:{wj({chart:t,chartType:i,isRotated:r,axesConfig:e,queryObject:n});break}}}function Mw(s){let{chart:t,chartConfig:e,chartConfig:{axes:i},rotationChanged:r,axisLabelsBehaviorChanged:a,chartType:n,isRotated:o,dualAxisChanged:l,timeIntervalInfoWasReset:h,data:c,queryObject:u,guideTooltipFormatter:d,xAxisLabelFormatter:A,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:m,gaugeInnerLabelFormatter:f,utilsStrings:g,errorStrings:y,gaugeMinMaxFromData:x}=s;switch(Il({chartType:n,axesConfig:i,errorStrings:y}),n){case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:{t instanceof Wt&&Bj({chart:t,chartConfig:e,rotationChanged:r,axisLabelsBehaviorChanged:a,isRotated:o,dualAxisChanged:l,timeIntervalInfoWasReset:h,timeIntervalInfo:c?.timeIntervalInfo??ve(t.uid,"timeIntervalInfo"),guideTooltipFormatter:d,xAxisLabelFormatter:A,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:m,utilsStrings:g,errorStrings:y,queryObject:u});break}case V.GaugeSeries:{t instanceof qs&&(ao(u),Jj({chart:t,chartConfig:e,data:(c??t.data).dataItems,queryObject:u,axisValueFormatter:A,gaugeInnerLabelFormatter:f,utilsStrings:g,errorStrings:y,gaugeMinMaxFromData:x}));break}}}function JI(s){let{chart:t,chartConfig:e,hideLoaderHandle:i,options:r,utilsStrings:a,queryObject:n}=s,{selectionTheme:o,ignoreSmoothRenderingLimit:l}=r??{};t.series.clear();let h,c,u=[],d=t instanceof Wt?[t.xAxes.getIndex(0),t.yAxes.getIndex(0),t.xAxes.getIndex(1)??t.yAxes.getIndex(1)]:void 0,A={hideLoaderHandle:i,selectionTheme:o,utilsStrings:a},p={...A,axisList:d};if(t instanceof Wt)for(let f=0;f<e.series.length;f+=1){let g=e.series[f];if(c=ze([g]),$l(e))h=ZQ({...p,chart:t,axisList:d,chartConfig:e,seriesIndex:f,queryObject:n}),u.push(...h.flat());else switch(c){case V.BarSeries:{h=AW({...p,chart:t,chartConfig:e,seriesIndex:f,queryObject:n}),u.push(h);break}case V.LineSeries:{ao(n),h=QQ({...p,chart:t,chartConfig:e,seriesIndex:f,ignoreSmoothRenderingLimit:l,queryObject:n}),u.push(h);break}}}else t instanceof pr&&e.series[0].type===V.PieSeries&&(h=BW({...A,seriesConfig:e.series[0]}),u.push(h));let m=CF({chartConfig:e,queryObject:n,chartData:t.data});m.length>0&&(t.colors.list=m.map(f=>{let[g,y,x,w]=f;return new xt({r:g,g:y,b:x,a:w})})),u.length>0&&t.series.pushAll(u),ZH(t)}function Rw(s){let{chart:t,chartConfig:e,chartConfig:{series:i,axes:r,chartRenderer:a},seriesIndexMapper:n,rotationChanged:o,seriesReordered:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,chartData:u,queryObject:d,options:A,dataWasUpdated:p,sortChanged:m,groupOfSlicesWasUpdated:f,pieSlicesSymbols:g,utilsStrings:y,errorStrings:x}=s,w=t.series.values,S=new Map,D=e.series.length,T=Ol(e),L=Ua(e),$=ln(d,A?.usePopupTemplateFieldsInfo),I=Ys(d),R=Gm(a,Gs(I)?void 0:I?.renderer);for(let[F,H]of i.entries()){let K=ze([H]),z=w[F],ee={numberOfSeries:D,series:z,seriesConfig:H,seriesIndex:F,colorMatch:T,queryObject:d,rendererType:R,options:A,dataWasUpdated:p,fieldList:$,sortChanged:m,utilsStrings:y},ie={...ee,axes:r,seriesIndexMapper:n},de=z;if(t instanceof Wt&&$l(e))de=w.find(G=>G.id===H.id),z!==void 0&&(de instanceof wr||de instanceof Pi)&&h2({...ee,chart:t,series:de,seriesIndexMapper:n,seriesSymbolMapForEvent:S,chartData:u,showOutliers:e.showOutliers,showMean:e.showMean,outliersVisibilityChanged:h,seriesReordered:l,standardizeValuesVisibilityChanged:c,rotationChanged:o,options:A});else switch(K){case V.BarSeries:pW({...ie,stackedType:L,seriesSymbolMapForEvent:S,rotationChanged:o});break;case V.LineSeries:zQ({...ie,stackedType:L,seriesSymbolMapForEvent:S,rotationChanged:o});break;case V.PieSeries:TW({...ee,chart:t,groupOfSlicesWasUpdated:f,pieSlicesSymbols:g,selectionTheme:A?.selectionTheme});break}}v2({chart:t,options:A,dataWasUpdated:p,chartData:u,chartConfig:e,queryObject:d,rotationChanged:o,sortChanged:m,groupOfSlicesWasUpdated:f,errorStrings:x})}async function Uw(s){let{chartConfig:t}=s,{chart:e,options:i,globalOptions:r,colorMatchApplied:a,pieSlicesSymbols:n,queryObject:o,utilsStrings:l,errorStrings:h,dataInfo:c,loaderHandle:u}=s,{disableTogglingLegendItems:d,cursorRange:A,actionMode:p,pieChartLegendValueLabelFormatter:m,guideTooltipFormatter:f,xAxisLabelFormatter:g,yAxisLabelFormatter:y,secondaryYAxisLabelFormatter:x,gaugeInnerLabelFormatter:w,usePopupTemplateFieldsInfo:S}=i??{},{data:D,count:T,queryConfig:L,gaugeMinMaxFromData:$={}}=c??{},I,R,F,H=ze(t.series),K=ln(o,S);ni(e.uid,{fieldList:K,options:i,elementCount:T,queryConfig:L,timeIntervalInfo:D?.timeIntervalInfo,serverLimitReached:D?.serverLimitReached});let z=new Map;t.series.forEach((Ze,We)=>{z.set(Ze.id,We)});let ee=In(D);ee!==void 0&&(e.data=ee);let ie=It(t.series);e instanceof pr&&nn({data:n,htmlContainer:e.htmlContainer,chartId:e.id,colorMatchApplied:a===!0});let{title:de,subtitle:G,footer:Y,series:xe,background:ae}=t;I=tW(e),Nv(I,{title:de,subtitle:G}),R=iW(e),Hv(R,Y),F=HQ(e,xe),fQ(e);let le=_n({config:t});ni(e.uid,{config:t,isRotated:le,isNonAggregatedChart:!ep(ie)}),t.axes!==void 0&&(RW({chart:e,axesConfig:t.axes,chartType:H,isRotated:le,errorStrings:h,queryObject:o}),Mw({chart:e,chartConfig:t,chartType:H,isRotated:le,data:D,queryObject:o,guideTooltipFormatter:f,xAxisLabelFormatter:g,yAxisLabelFormatter:y,secondaryYAxisLabelFormatter:x,gaugeInnerLabelFormatter:w,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:$})),JI({chart:e,chartConfig:t,hideLoaderHandle:u.hideLoader,utilsStrings:l,options:i,queryObject:o}),Rw({chart:e,chartConfig:t,seriesIndexMapper:z,rotationChanged:!1,queryObject:o,chartData:D,groupOfSlicesWasUpdated:!0,pieSlicesSymbols:n,dataWasUpdated:!0,options:i,utilsStrings:l,errorStrings:h}),Lw({legendElements:F,seriesConfig:xe,webChartLegend:t.legend,pieChartLegendValueLabelFormatter:m}),zI(e),eW(e),Vv(e,ae),GI({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar}),eI(e),tI(e,t?.cursorCrosshair),Qv({chart:e,actionMode:p,cursorRange:A});let Ie=fd(e.htmlContainer??document.documentElement);return e.dateFormatter.intlLocales=Ie,MW(e,r?.enableResponsiveFeatures),(e instanceof qs||Sw(e.series))&&xh(e.htmlContainer),ZI(e),I!==void 0&&R!==void 0&&F!==void 0?{headerElements:I,footerElements:R,legendElements:F}:void 0}function ek(s){s.series.each(t=>{t.events.on(ke.Ready,()=>{Sw(s.series)&&Rv(s)})})}async function UW(s){let{chartContainer:t,chartConfig:e,queryObject:i,colorMatchApplied:r,dataInfo:a,t9nStrings:n,options:o,globalOptions:l,loaderHandle:h}=s,{errorStrings:c,utilsStrings:u,amChartsStrings:d}=n,A=lf(t,Wt);A.id=e?.id??A.uid,ni(A.uid,{queryObject:i});let{t9nLocale:p}=Du(A.htmlContainer??document.documentElement),m=fd(A.htmlContainer??document.documentElement),f=Om(A.htmlContainer??document.documentElement)==="rtl";Ew({chart:A,localeInfo:{locale:p,formatLocale:m,rtl:f},chartLocale:d}),A.events.on(ke.Inited,()=>A.zoomOutButton.deepInvalidate());let g=ze(e?.series);A instanceof Wt&&g!==V.BoxPlotSeries&&(A.maskBullets=!1);let y=await Uw({chartConfig:e,chart:A,queryObject:i,colorMatchApplied:r,options:o,globalOptions:l,utilsStrings:u,errorStrings:c,dataInfo:a,loaderHandle:h});return ni(A.uid,{config:Tr(e)}),ek(A),XH(A,i),zH(A,i),{chart:A,chartElements:y}}async function VW(s){let{chartContainer:t,chartConfig:e,queryObject:i,dataInfo:r,colorMatchApplied:a,pieSlicesSymbols:n,t9nStrings:{errorStrings:o,utilsStrings:l,amChartsStrings:h},options:c,globalOptions:u,loaderHandle:d}=s,A=lf(t,pr);A.id=e?.id??A.uid;let p=Sx(A.htmlContainer);Ew({chart:A,localeInfo:p,chartLocale:h}),A.radius=he(re.pieChart.chartRadius);let m=await Uw({chartConfig:e,chart:A,queryObject:i,colorMatchApplied:a,pieSlicesSymbols:n,dataInfo:r,options:c,globalOptions:u,utilsStrings:l,errorStrings:o,loaderHandle:d});return ni(A.uid,{config:Tr(e),filterBySelection:c?.filterBySelection}),PW(A,i),{chart:A,chartElements:m}}async function NW(s){let{chartContainer:t,chartConfig:e,queryObject:i,dataInfo:r,t9nStrings:{errorStrings:a,utilsStrings:n,amChartsStrings:o},options:l,globalOptions:h,loaderHandle:c}=s,u=lf(t,qs);u.id=e?.id??u.uid;let d=Sx(u.htmlContainer);Ew({chart:u,localeInfo:d,chartLocale:o}),u.maskBullets=!1;let A=re.gauge,p=Number.isFinite(e?.innerRadius)?e?.innerRadius:A.innerRadius,m=Number.isFinite(e?.startAngle)?e?.startAngle:A.startAngle,f=Number.isFinite(e?.endAngle)?e?.endAngle:A.endAngle;u.radius=he(A.radius),typeof p=="number"&&(u.innerRadius=he(p)),typeof m=="number"&&(u.startAngle=m),typeof f=="number"&&(u.endAngle=f);let g=await Uw({chartConfig:e,chart:u,queryObject:i,dataInfo:r,options:l,globalOptions:h,utilsStrings:n,errorStrings:a,loaderHandle:c});return ni(u.uid,{config:Tr(e)}),ek(u),t?.ownerDocument.addEventListener("visibilitychange",()=>{let y=t.ownerDocument.hidden;u&&!y&&Dj(e?.axes?.[0])&&(u.svgContainer?.measure(),u.invalidateData())}),{chart:u,chartElements:g}}async function HW(s){let{newConfig:t}=s,{chart:e,chartElements:i,dataWasUpdated:r,dataUpdateDetails:a,dataInfo:n,options:o,configWithAllSeries:l,hasSeriesFilteredOut:h,queryObject:c,utilsStrings:u,errorStrings:d,loaderHandle:A}=s,{guideTooltipFormatter:p}=o??{},{gaugeMinMaxFromData:m={}}=n,f=ve(e.uid,"config"),g=f?.series,y=t.series,x=ze(y),w=_n({config:t});ni(e.uid,{config:Tr(t),isRotated:w}),ni(e.uid,{filterBySelection:o?.filterBySelection}),Qv({chart:e,actionMode:o?.actionMode,cursorRange:o?.cursorRange});let{xOrYChanged:S,layerChanged:D}=a?.common??{},{numberOfSeriesChanged:T}=a?.common??{},L=gx(f,t),$=yx(f,t),I=zF(f,t),R=GF(f,t),F=JSON.stringify(ip(g))!==JSON.stringify(ip(y)),H=!1,K=!1;$l(t)&&$l(f)&&(H=KF(f,t),K=ZF(f,t));let z=ap({oldConfig:h?l:f,newConfig:t,dataWasUpdated:r}),ee=jb({oldConfig:f,newConfig:t,rotationChanged:$}),ie=NI({chart:e,dualAxisChanged:I,rotationChanged:$,timeIntervalInfoWasReset:L,axisLabelsBehaviorChanged:ee}),de=!1,G=In(n?.data),Y=It(y);if(ni(e.uid,{isNonAggregatedChart:!ep(Y)}),r){let{count:Ie,data:Ze,queryConfig:We}=n??{};ni(e.uid,{elementCount:Ie,queryConfig:We,timeIntervalInfo:Ze?.timeIntervalInfo,serverLimitReached:Ze?.serverLimitReached}),xh(e.htmlContainer)}else if(x===V.BarSeries||x===V.LineSeries||x===V.RadarSeries||x===V.ComboLineAndBarSeries||x===V.BoxPlotSeries){let Ie=vx(g,y);if(Ie.length>0&&(UN(e.series,Ie),e.feedLegend(),de=!0),EF(y[0])){let{binTemporalData:Ze}=y[0],{unit:We,size:Je}=y[0].temporalBinning??{};Ze===!1&&We!==void 0&&Je!==void 0&&ni(e.uid,{timeIntervalInfo:{unit:We,size:Je}})}}z&&(r||(e.validateData(),x===V.BoxPlotSeries&&e.series.each(Ie=>{Ie instanceof Pi&&!(Ie instanceof pa)&&Ie.id.includes(Wi.Outliers)&&Ie.validateData()})));let xe=new Map;t.series.forEach((Ie,Ze)=>{xe.set(Ie.id,Ze)}),T=T||h,G&&(r||z)&&(e.data=G),t.axes!==void 0&&Mw({chart:e,chartConfig:t,rotationChanged:$,timeIntervalInfoWasReset:L,axisLabelsBehaviorChanged:ee,chartType:x,isRotated:w,dualAxisChanged:I,guideTooltipFormatter:p,xAxisLabelFormatter:o?.xAxisLabelFormatter,yAxisLabelFormatter:o?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:o?.secondaryYAxisLabelFormatter,queryObject:c,utilsStrings:u,errorStrings:d,gaugeMinMaxFromData:m});let ae=x===V.BoxPlotSeries&&(XF(y,g)||WF(y,g));(e.series===void 0||e.series.length===0||S||D||T||F||(x===V.BarSeries||x===V.LineSeries||x===V.RadarSeries||x===V.ComboLineAndBarSeries)&&e.series.length!==t.series.length||ie||R||ae||a?.boxPlot?.showMeanChanged)&&(!r&&($||ae||ie)&&e.invalidateData(),JI({chart:e,chartConfig:t,hideLoaderHandle:A.hideLoader,utilsStrings:u,queryObject:c,options:o})),Rw({chart:e,chartConfig:t,seriesIndexMapper:xe,rotationChanged:$,seriesReordered:de,outliersVisibilityChanged:H,standardizeValuesVisibilityChanged:K,queryObject:c,chartData:n.data,options:o,dataWasUpdated:r,sortChanged:z,utilsStrings:u,errorStrings:d}),Nv(i.headerElements,{title:t.title,subtitle:t.subtitle}),Hv(i.footerElements,t.footer),Lw({legendElements:i.legendElements,seriesConfig:t.series,webChartLegend:t.legend,disableTogglingLegendItems:o?.disableTogglingLegendItems}),Vv(e,t.background),GI({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar}),tI(e,t?.cursorCrosshair);let le=gH(e);(le.behavior===ji.SelectX||le.behavior===ji.SelectXY||le.behavior===ji.SelectY||le.behavior===ji.None)&&e.scrollbarX.start===0&&e.scrollbarX.end===1&&e.scrollbarY.start===0&&e.scrollbarY.end===1&&Rv(e),ZI(e),VI(e.series.values[0])}function QW(s){let{chart:t,chartElements:e,dataWasUpdated:i,newConfig:r,pieSlicesSymbols:a,queryObject:n,options:o,dataInfo:l,utilsStrings:h,errorStrings:c}=s,u=ve(t.uid,"config"),d=u?.series,A=r?.series,p=ap({oldConfig:u,newConfig:r,dataWasUpdated:i}),m=bw(d,A),{count:f,data:g,queryConfig:y}=l??{},x=In(g);ni(t.uid,{filterBySelection:o?.filterBySelection,config:Tr(r)});let w=x!==void 0&&(t.data.length!==x.length||qI(t.data,x));w&&(ni(t.uid,{elementCount:f,queryConfig:y}),t.data=x,xh(t.htmlContainer)),(p||m)&&t.validateData(),nn({data:a,htmlContainer:t.htmlContainer,chartId:t.id,colorMatchApplied:kv(t,r)}),Rw({chart:t,queryObject:n,chartConfig:r,seriesIndexMapper:new Map,options:o,dataWasUpdated:w,sortChanged:p,chartData:g,groupOfSlicesWasUpdated:m,pieSlicesSymbols:a,utilsStrings:h,errorStrings:c}),Nv(e.headerElements,{title:r.title,subtitle:r.subtitle}),Hv(e.footerElements,r.footer),Lw({legendElements:e.legendElements,seriesConfig:r.series,webChartLegend:r.legend,disableTogglingLegendItems:o?.disableTogglingLegendItems,pieChartLegendValueLabelFormatter:o?.pieChartLegendValueLabelFormatter}),Vv(t,r.background),Qv({chart:t,actionMode:o?.actionMode,cursorRange:o?.cursorRange}),KI(t)}function jW(s){let{chart:t,chartElements:e,newConfig:i,queryObject:r,dataInfo:a,dataWasUpdated:n,options:o,utilsStrings:l,errorStrings:h}=s,{gaugeMinMaxFromData:c={}}=a??{},{xAxisLabelFormatter:u,gaugeInnerLabelFormatter:d,guideTooltipFormatter:A}=o??{},p=i.series,m=ze(p),f;if(n){let{count:S,data:D,queryConfig:T}=a??{};f=D,f?.dataItems!==void 0&&(t.data=f.dataItems),xh(t.htmlContainer),ni(t.uid,{elementCount:S,queryConfig:T})}i.axes!==void 0&&Mw({chart:t,chartConfig:i,chartType:m,data:f,queryObject:r,xAxisLabelFormatter:u,gaugeInnerLabelFormatter:d,guideTooltipFormatter:A,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:c});let g=re.gauge,y=Number.isFinite(i?.innerRadius)?i.innerRadius:g.innerRadius,x=Number.isFinite(i?.startAngle)?i.startAngle:g.startAngle,w=Number.isFinite(i?.endAngle)?i.endAngle:g.endAngle;t.innerRadius=he(y),t.startAngle=x,t.endAngle=w,Nv(e.headerElements,{title:i.title,subtitle:i.subtitle}),Hv(e.footerElements,i.footer),Vv(t,i.background),ni(t.uid,{config:Tr(i)})}async function WW(s){let{chartContainer:t,chartConfig:e,colorMatchApplied:i,pieSlicesSymbols:r,queryObject:a,dataInfo:n,t9nStrings:o,options:l,globalOptions:h,loaderHandle:c}=s;it.commercialLicense=!(h?.showLicenseWatermark??h?.hideLicenseWatermark===!1),it.queue=h?.queueChartCreation!==!1,it.autoDispose=h?.autoDisposeChart===!0,h?.useAnimatedCharts===!0?y_(_y):v_(_y);let u;switch(ze(e?.series)){case V.PieSeries:ao(a),u=await VW({chartContainer:t,chartConfig:e,queryObject:a,dataInfo:n,colorMatchApplied:i,pieSlicesSymbols:r,options:l,globalOptions:h,t9nStrings:o,loaderHandle:c});break;case V.GaugeSeries:ao(a),u=await NW({chartContainer:t,chartConfig:e,queryObject:a,dataInfo:n,options:l,globalOptions:h,t9nStrings:o,loaderHandle:c});break;default:u=await UW({chartContainer:t,chartConfig:e,dataInfo:n,colorMatchApplied:i,queryObject:a,options:l,globalOptions:h,t9nStrings:o,loaderHandle:c});break}return u}async function XW(s){let{chartContainer:t,chartConfig:e,t9nStrings:i,queryObject:r,options:a,colorMatchApplied:n,rendererFieldNames:o,pieSlicesSymbols:l,globalOptions:h,dataInfo:c,uniqueInternalID:u,loaderHandle:d}=s,{errorStrings:A}=i,p=!aL(t),m=await WW({chartContainer:t,chartConfig:e,dataInfo:c,colorMatchApplied:n,pieSlicesSymbols:l,queryObject:r,t9nStrings:i,options:a,globalOptions:h,loaderHandle:d}),{chart:f,chartElements:g}=m;ni(f.uid,{chartWasCreatedWhileHidden:p,queryObject:r,filterBySelection:a?.filterBySelection,options:a,colorMatchApplied:n,rendererFieldNames:o}),IW(f,A),DW(f,t);function y(){u&&BF.delete(u),f.isDisposed()||(DH(f),g!==void 0&&(m.chartElements=void 0),f.dispose())}async function x(T){let{newChartConfig:L,dataWasUpdated:$,dataUpdateDetails:I,queryObject:R,updateOptions:F,t9nStrings:{utilsStrings:H},configWithAllSeries:K,hasSeriesFilteredOut:z,pieSlicesSymbols:ee,dataInfo:ie,loaderHandle:de}=T,G=ve(f.uid,"config"),Y=L?.series,xe=Y!==void 0?ze(Y):void 0;if(f.isDisposed()||g===void 0||!lx(G,L))throw new Ln(cd.ChartDisposed);switch(xe){case V.BoxPlotSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:f instanceof Wt&&await HW({chart:f,chartElements:g,queryObject:R,dataWasUpdated:$,dataUpdateDetails:I,dataInfo:ie,newConfig:L,configWithAllSeries:K,hasSeriesFilteredOut:z,options:F,utilsStrings:H,errorStrings:A,loaderHandle:de});break;case V.PieSeries:ao(R),QW({chart:f,chartElements:g,queryObject:R,dataWasUpdated:$,dataInfo:ie,newConfig:L,pieSlicesSymbols:ee,options:F,utilsStrings:H,errorStrings:A});break;case V.GaugeSeries:ao(R),jW({chart:f,chartElements:g,newConfig:L,queryObject:R,dataWasUpdated:$,dataInfo:ie,options:F,utilsStrings:H,errorStrings:A});break}}async function w(T){let{newChartConfig:L,updateOptions:$,dataWasUpdated:I,dataUpdateDetails:R,configWithAllSeries:F,hasSeriesFilteredOut:H,pieSlicesSymbols:K,colorMatchApplied:z,rendererFieldNames:ee,updateGlobalOptions:ie,t9nStrings:de,queryObject:G,dataInfo:Y,loaderHandle:xe}=T,ae=!aL(t),le=ln(G,a?.usePopupTemplateFieldsInfo);ni(f.uid,{chartWasUpdatedWhileHidden:ae,options:$,fieldList:le,queryObject:G,colorMatchApplied:z,rendererFieldNames:ee}),await x({newChartConfig:L,updateOptions:$,dataWasUpdated:I,dataUpdateDetails:R,pieSlicesSymbols:K,t9nStrings:de,configWithAllSeries:F,hasSeriesFilteredOut:H,queryObject:G,dataInfo:Y,loaderHandle:xe})}async function S(T){if(qn(f)&&(f instanceof Wt||f instanceof pr)){let L=ve(f.uid,"actionMode");L!==Vt.MonoSelection&&L!==Vt.None&&await GH(f,T)}}function D(){Rv(f)}return{update:w,dispose:y,resetZoom:D,clearSelection:()=>CA({chart:f}),switchSelection:async T=>await S(T),exportImage:async T=>await LH({chart:f,exportOptions:T}),setActionMode:(T,L)=>Qv({chart:f,actionMode:T,cursorRange:L}),loaderHandle:d}}var zW="AM5C241025748",Ai={SelectEnded:"selectended",DataValidated:"datavalidated",BoundsChanged:"boundschanged",PointerUp:"pointerup",FrameEnded:"frameended",Click:"click"},lw=new Map;function GW(s,t){return Xc(s,t)}function YW(s,t){Wc(s,t)}function Wc(s,t){let e=lw.get(s)??{};lw.set(s,{...e,...t})}function Xc(s,t){return lw.get(s)?.[t]}function fe(s,t){return Xc(s,t)}function Kr(s,t){Wc(s,t)}function Rt(s,t){return Xc(s,t)}function hs(s,t){Wc(s,t)}function To(s,t){return Xc(s,t)}function wA(s,t){Wc(s,t)}function _l(s,t){return Xc(s,t)}function KW(s,t){Wc(s,t)}function rn(s,t){return Xc(s,t)}function Vw(s,t){Wc(s,t)}function ZW(s,t){return Xc(s,t)}function qW(s,t){Wc(s,t)}function Nw(s){return s!=null&&!s.isDisposed()}function JW(s){let t;if(s!=null){let e=s;if(e instanceof Yr)t=e.chart;else{let i=e.dataItem?.component;i instanceof Yr&&(t=i.chart)}}return t}function tk(s){let t;if(s){let e=s.get("background")?.get("fill");if(e){let{r:i,g:r,b:a}=e;t=[Math.round(i),Math.round(r),Math.round(a),255]}}return t}function ik(s){let t=ia(s),{r:e,g:i,b:r}=t;return{r:e,g:i,b:r}}function e4(s,t){t&&s.setThemes([U1.new(s)])}function t4(s,t){t===!0&&s.setThemes([R1.new(s)])}function Xt(s){let t=ia("#000000"),e=hd;if(s!=null){let[i,r,a,n]=s;e=n/255,t=ia(`rgba(${i}, ${r}, ${a}, ${e})`)}return{color:t,opacity:e}}function Zi(s,t){t===!1&&(!("isHiding"in s)||!s.isHiding())?(s.set("visible",!1),"hide"in s&&s.hide()):t!==!1&&(!("isShowing"in s)||!s.isShowing())&&(s.set("visible",!0),"show"in s&&s.show())}function Ii(s){let{childId:t,parent:e,useChildId:i}=s,r=i?t:Ns(t,e.uid);return e.children.values.find(a=>a.get("id")===r)}function Ns(s,t){return`${s}${t}`}function yu(s,t=100){return setTimeout(()=>s(),t)}function oL(s){let t=Number.NaN;if(typeof s=="number")t=s;else if(s.includes("%")){let e=Number.parseFloat(s.trim().replace("%","").trim());Number.isFinite(e)&&(t=Bt(e))}return t}function i4(s,t){return t!==!0||s?.includes("Dot")===!0?"round":"square"}function r4(s,t){let e=s??As.Solid,i=t??q.lineWidth,r={[As.Solid]:[],[As.Dot]:[1,i],[As.DashDotDot]:[4*i,i,1,i,1,i],[As.Dash]:[4*i,3*i],[As.DashDot]:[4*i,3*i,1,3*i],[As.Null]:[]};return r[e]??r[As.Null]}function s4(s){let{root:t,fill:e,rotation:i,isLinePattern:r,chartBackgroundFill:a}=s,n;if(r!==!1){let{tileSize:o,diagonalTileSize:l}=q.patternLineProperties,h=i===45||i===135,c=h?l:o;n=ih.new(t,{width:c,height:c,strokeWidth:q.patternLineProperties.strokeWidth??1,gap:6,color:e,...h?{angle:i}:{rotation:i??Number.NaN},...a!==void 0&&{fill:a,fillOpacity:1}})}else{let o=a!==void 0?1:q.patternRectProperties.fillOpacity??Number.NaN;n=su.new(t,{width:q.patternRectProperties.width??Number.NaN,height:q.patternRectProperties.height??Number.NaN,strokeWidth:q.patternRectProperties.strokeWidth??Number.NaN,fillOpacity:o,color:a??e,fill:e,gap:1,maxWidth:q.patternRectProperties.rectWidth??Number.NaN,maxHeight:q.patternRectProperties.rectHeight??Number.NaN,rotation:i??Number.NaN})}return n}function a4(s){let{fill:t,root:e,style:i,chartBackgroundFill:r}=s,a,n,o=!0;switch(i){case bs.Horizontal:{n=0;break}case bs.Vertical:{n=90;break}case bs.ForwardDiagonal:{n=135;break}case bs.BackwardDiagonal:{n=45;break}case bs.Cross:{n=0,o=!1;break}case bs.DiagonalCross:{n=135,o=!1;break}case bs.Solid:}return n!==void 0&&e!==void 0&&(a=s4({root:e,fill:t,rotation:n,isLinePattern:o,chartBackgroundFill:r})),a}function rk(s,t=0){return(s??t)%360}function sk(s,t){let e={stroke:Xt().color,strokeWidth:q.lineWidth,strokeDasharray:[],linecap:t!==!0?"round":"square",strokeOpacity:hd};if(s!=null){let i=Xt(s.color);e.stroke=i.color,e.strokeOpacity=i.opacity,s.width!==void 0&&(e.strokeWidth=s.width,e.strokeOpacity=s.width===0?0:i.opacity),s.style!==void 0&&s.style!==As.Null&&(e.strokeDasharray=r4(s.style,e.strokeWidth),e.linecap=i4(s.style,t))}return e}function ak(s,t){let e=s,[i,r,a,n]=s?.color??t??q.color,o=[i,r,a,n];return e==null?e={type:Dt.SLS,color:o}:e.color===void 0&&(e.color=o),sk(e,!1)}function n4(s,t,e){let{color:i,outline:r,style:a}=s,n=Xt(i),o=ix(a),l;return e!==void 0?l=Xt(e).color:o&&(l=Xt(q.backgroundColor).color),{pattern:a4({root:t,fill:n.color,style:a,chartBackgroundFill:l}),fill:n.color,outline:ak(r,i),fillOpacity:n.opacity}}function o4(s){let{color:t,style:e,size:i,outline:r,xoffset:a,yoffset:n,angle:o}=s,l=rk(o),h=e!==void 0?rx(e,i):"",c=Xt(t),u=r;return e!==YA.Cross&&e!==YA.X&&i!==void 0&&i<=q.lineSeries.marker.markerSizeThresholdForTooltipDisplay&&(r?.width===void 0||r.width===0)&&(u={type:Dt.SLS,style:r?.style??As.Solid,color:[0,0,0,0],width:q.lineSeries.marker.markerSizeThresholdForTooltipDisplay-i}),{path:h,fill:c.color,outline:ak(u,t),xOffset:a??0,yOffset:n??0,angle:l,fillOpacity:c.opacity}}function l4(s){let t;switch(s){case Em.LineThrough:case Em.Underline:t=s;break;case Em.None:}return t}function h4(s){return s===!0?"wrap":"none"}function nk(s,t){let e=Qe;switch(s??t){case bi.Right:e=ge;break;case bi.Left:e=Xr;break;case bi.Center:case bi.Justify:}return e}function ok(s,t){let e=Qe;switch(s??t){case Yt.Top:e=Xr;break;case Yt.Bottom:e=ge;break;case Yt.Baseline:case Yt.Middle:}return e}function u4(s){let{angle:t,mappedHAlignment:e,mappedVAlignment:i,isGuideLabel:r}=s,a=e,n=i,o=e,l=i;return(Math.abs(t)===270||Math.abs(t)===90)&&(r||(o=void 0,n=void 0),l===Xr?a=ge:l===ge?a=Xr:l===Qe&&(a=Qe)),{align:a,valign:n,horizontalCenter:o,verticalCenter:l}}function Hw(s){let{root:t,symbol:e,defaultToColorFromRamp:i,colorRampIndex:r,isChartFillSymbol:a=!1,chartBackgroundColor:n}=s,o;if(i===!0){let l=a?Nm:hd;if(e.color=e.color??bh({colorIndex:r,opacity:l}),md(e)||np(e)){let{outline:h}=e;h!==void 0&&(h.color=h?.color??bh({colorIndex:r}),e.outline={...h})}}return Tx(e)?o=sk(e,!0):np(e)?(e.style??=q.lineSeries.marker.markerStyle,e.size??=q.lineSeries.marker.markerBigSize,o=o4(e)):md(e)&&(o=n4(e,t,n)),o}function c4(s){let{input:t,isGuideLabel:e,defaults:i}=s,r=rk(t.angle,i?.rotation),a=nk(t.horizontalAlignment,i?.horizontalCenter),n=ok(t.verticalAlignment,i?.verticalCenter),{align:o,valign:l,horizontalCenter:h,verticalCenter:c}=u4({angle:r,mappedHAlignment:a,mappedVAlignment:n,isGuideLabel:e});return{fill:Xt(t.color).color,fontFamily:t.font?.family??"Arial, Helvetica, sans-serif",fontSize:t.font?.size??q.generalFontSize,fontWeight:t.font?.weight??"400",textDecoration:l4(t.font?.decoration),align:o,valign:l,verticalCenter:c,horizontalCenter:h,text:_a({textSymbol:t,format:"amChartsV5"}),angle:r,xOffset:t.xoffset??i?.dx??0,yOffset:t.yoffset??i?.dy??0,backgroundFill:Xt(t.backgroundColor).color,borderFill:Xt(t.borderLineColor).color,borderWidth:t.borderLineSize??1,haloColor:Xt(t.haloColor).color,rtl:(t.rightToLeft??Om(document.documentElement))==="rtl"?"rtl":"ltr",wrap:h4(i?.wrap),maxWidth:i?.maxWidth??Number.NaN}}function lk(s,t){t!==void 0&&(t.marginBottom!==void 0&&s.set("marginBottom",t.marginBottom),t.marginTop!==void 0&&s.set("marginTop",t.marginTop),t.marginRight!==void 0&&s.set("marginRight",t.marginRight),t.marginLeft!==void 0&&s.set("marginLeft",t.marginLeft),t.verticalCenter!==void 0&&s.set("y",ok(t.verticalCenter)),t.horizontalCenter!==void 0&&s.set("x",nk(t.horizontalCenter)),t.strokeWidth!==void 0&&s.get("background")?.set("strokeWidth",t.strokeWidth),t.paddingBottom!==void 0&&s.set("paddingBottom",t.paddingBottom),t.paddingTop!==void 0&&s.set("paddingTop",t.paddingTop),t.paddingLeft!==void 0&&s.set("paddingLeft",t.paddingLeft),t.paddingRight!==void 0&&s.set("paddingRight",t.paddingRight),t.maxWidth!==void 0&&s.set("maxWidth",t.maxWidth))}function gA(s){let{root:t,parent:e,defaults:i,index:r,id:a}=s,n=Zt.new(t,{text:"",textAlign:"center",background:nr.new(t,{}),paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0});return a!==void 0&&n.set("id",a),lk(n,i),e!==void 0&&e.children.insertIndex(r??e.children.length,n),n}function lL(s){let{label:t,offset:e,offsetProperty:i}=s;t.adapters.remove(i),(t instanceof Zt?[t]:t.entities).forEach(r=>{if(typeof e=="string"&&!Number.isFinite(Number(e))){let a=qA(e);typeof a=="number"&&(a/=100,r.adapters.add(i,()=>(i==="dx"?r.width():r.height())*(a??0)))}else{let a=Number(e);Number.isFinite(a)&&r.set(i,a)}})}function wn(s){let{label:t,labelConfig:e,defaults:i,skipSettingText:r,skipSettingXAndY:a}=s,n=e?.visible??!0;if(t!==void 0&&!t.isDisposed()&&e!==void 0){let o=t instanceof Zt&&rn(t.uid,"isGuide"),l=c4({input:e.content,isGuideLabel:o,defaults:i});t.setAll({fill:l.fill,fontFamily:l.fontFamily,fontWeight:l.fontWeight,fontSize:l.fontSize,textDecoration:l.textDecoration,rotation:l.angle,direction:l.rtl,oversizedBehavior:l.wrap,maxWidth:l.maxWidth}),r||t.setAll({text:l.text}),a||(lL({label:t,offset:l.xOffset,offsetProperty:"dx"}),lL({label:t,offset:l.yOffset,offsetProperty:"dy"}),t.setAll({centerX:l.align,centerY:l.valign,x:l.horizontalCenter,y:l.verticalCenter})),t.get("background")?.setAll({strokeWidth:l.borderWidth,strokeOpacity:1}),t.set("visible",n),t instanceof Zt?Zi(t,n):t.entities.forEach(h=>{Zi(h,n)})}}function bl(s){let{chart:t,label:e,labelType:i}=s,{legendTitle:r}=q.legendProperties,a=fe(t.uid,"config"),n=r.maxWidth??Number.NaN,o=Number.NaN;switch(i){case ii.GuideLabel:if(t instanceof Ci){let l=e.get("rotation");l===90||l===270?n=t.seriesContainer.height():n=t.seriesContainer.width()}break;case ii.XAxisTitle:t instanceof Ci&&(n=t.seriesContainer.width());break;case ii.YAxisTitle:t instanceof Ci&&(o=t.seriesContainer.height());break;case ii.ChartTitle:case ii.ChartSubTitle:case ii.ChartFooter:n=t.chartContainer.width()-20;break;case ii.LegendTitle:a?.legend?.position!==void 0&&(a?.legend?.position===st.Top||a?.legend?.position===st.Bottom)&&(n=t.chartContainer.width()-20);break}n>0&&e.setAll({maxWidth:n,oversizedBehavior:"wrap"}),o>0&&i===ii.YAxisTitle&&e.setAll({maxHeight:o,oversizedBehavior:"wrap"})}function yA(s){let{chart:t}=s;bl(s),t.events.onDebounced(Ai.BoundsChanged,()=>bl(s),q.debounceTime)}function hk(s){let{hour:t,minute:e=0,format:i,locale:r="en-US"}=s,a=i&&Object.keys(i).length>0?i:{hour:"numeric",minute:"2-digit",hour12:!1},n=t.toString();if(Number.isInteger(t)&&t>=0&&t<=23&&Number.isInteger(e)&&e>=0&&e<=59){let o=new Date(2e3,0,1,t,e);n=new Intl.DateTimeFormat(r,a).format(o),n.includes(":")||n.startsWith("0")&&(n=n.slice(1))}return n}function uk(s){let{weekdayNumber:t,format:e,locale:i="en-US",firstDayOfWeek:r=7}=s,a=e&&Object.keys(e).length>0?e:{weekday:"long"},n=t.toString();if(Number.isInteger(t)&&t>0&&t<=7&&Number.isInteger(r)&&r>0&&r<=7){let o=(t+r-1)%7,l=new Date(2e3,0,2+o);n=new Intl.DateTimeFormat(i,a).format(l)}return n}function ck(s){let{monthNumber:t,format:e,locale:i="en-US"}=s,r=e&&Object.keys(e).length>0?e:{month:"long"},a=t.toString();if(Number.isInteger(t)&&t>0&&t<=12){let n=new Date(2e3,t-1);a=new Intl.DateTimeFormat(i,r).format(n)}return a}function Sv(s,t){let e=t.get("axisFill"),i=t.get("label");if(e!==void 0&&i!==void 0){let r=rn(i.uid,"guideLabelConfig"),a=s.get("renderer")instanceof ls,n=Math.round(e.width()),o=Math.round(e.height()),l=Math.round(i.height()),h=Math.round(i.width()),{horizontalAlignment:c,verticalAlignment:u}=r??{},d=0,A=0;if(a){let p=n!==0;switch(c){case bi.Left:p?d=-h/2:d=-h;break;case bi.Right:p?d=h/2:d=h;break;case bi.Center:case bi.Justify:break;default:p||(d=h/2);break}switch(u){case Yt.Bottom:p?A=-l:A=-l/2;break;case Yt.Middle:A=-o/2;break;case Yt.Top:default:A=-o+l/2;break}}else{let p=o!==0;switch(c){case bi.Center:d=n/2;break;case bi.Left:d=h/2;break;case bi.Right:default:d=n-h/2;break}switch(u){case Yt.Bottom:p?A=o/2:A=l;break;case Yt.Top:p?A=-o/2+l/2:A=-l;break;case Yt.Middle:default:p||(A=-l/2);break}}i.setAll({dx:d,dy:A})}}function d4(s){let{axis:t,guide:e,label:i}=s,{chart:r}=t;if(r){let a=t.get("renderer")instanceof ls?r.yAxes.getIndex(0):r.xAxes.getIndex(0);a&&(a.events.onDebounced(Ai.BoundsChanged,()=>Sv(t,e),q.debounceTime),t.events.onDebounced(Ai.BoundsChanged,()=>Sv(t,e),q.debounceTime))}i.setAll({paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})}function A4(s){let{guide:t,axis:e,guideLabelConfig:i}=s,r=t.get("label");if(r!==void 0){lk(r),Vw(r.uid,{isGuide:!0,guideLabelConfig:i});let{chart:a}=e;a!==void 0&&yA({chart:a,label:r,labelType:ii.GuideLabel}),d4({axis:e,guide:t,label:r})}}function p4(s){let{axis:t,guide:e,guideConfig:i,guideType:r}=s,a=e?.get("label");if(a!==void 0)if(i.label!==void 0){let n=t.get("renderer")instanceof ls,o;t instanceof Us||(n?r===Dt.SFS?o=q.verticalSurfaceGuideLabels:o=q.verticalLineGuideLabels:r===Dt.SFS?o=q.horizontalSurfaceGuideLabels:o=q.horizontalLineGuideLabels),Vw(a.uid,{guideLabelConfig:i.label});let l={type:V.Text,visible:i.visible,content:{...i.label,verticalAlignment:Yt.Middle,horizontalAlignment:bi.Center,rightToLeft:a.get("direction")==="rtl"}};wn({label:a,labelConfig:l,defaults:o});let h=i.label?.text;typeof h=="string"&&/<\/?[a-z][\s\S]*>/iu.test(h)&&(a.set("html",Mr(h)),a.set("text","")),a.events.once(Ai.BoundsChanged,()=>{Sv(t,e)}),Sv(t,e)}else Zi(a,!1)}function f4(s){let t=s.dataItem?.component;t instanceof qt?(t.uid!==void 0?Rt(t.uid,"bulletTemplate"):void 0)?.adapters?.remove?.("fill"):t instanceof Li?t.columns?.template?.adapters?.remove?.("fill"):t instanceof Hr&&t.slices?.template?.adapters?.remove?.("fill")}function dk(s){let{element:t,fill:e,fillOpacity:i,pattern:r,chartBackgroundFill:a}=s,n=t.get("tooltip"),o=!0,l=t;if(r!==void 0){n!==void 0&&(o=!1,n.get("background")?.set("fill",e)),l.set("fillPattern",r);let h=a??e;l.set("fill",h),l.set("fillOpacity",1),f4(l)}else l.set("fill",e),l.remove("fillPattern"),l.set("fillOpacity",i);n!==void 0&&n.set("getFillFromSprite",o)}function Fv(s,t){s.setAll({stroke:t.stroke,strokeDasharray:t.strokeDasharray,strokeOpacity:t.strokeOpacity,strokeWidth:t.strokeWidth,lineCap:t.linecap})}function Ak(s){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a}=s,n;return t!==void 0&&e!==void 0&&(n=Hw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a}),n!==void 0&&(t.setAll({svgPath:n.path,rotation:n.angle,dx:n.xOffset,dy:n.yOffset}),dk({element:t,fill:n.fill,fillOpacity:n.fillOpacity}),Fv(t,n.outline)),Zi(t,i)),n}function vu(s){let{root:t,element:e,fillSymbol:i,visible:r,defaultToColorFromRamp:a,colorRampIndex:n,isChartFillSymbol:o,keepCurrentVisibility:l,chartBackgroundColor:h}=s,c=ix(i?.style),u=JW(e),d=h??(c?tk(u)??[...q.backgroundColor]:void 0),A;if(e!==void 0&&!e.isDisposed()){if(i!==void 0&&(A=Hw({root:t,symbol:i,defaultToColorFromRamp:a,colorRampIndex:n,isChartFillSymbol:o,chartBackgroundColor:d}),A!==void 0)){let p=d!==void 0?Xt(d).color:void 0;dk({element:e,fill:A.fill,fillOpacity:A.fillOpacity,pattern:A.pattern,chartBackgroundFill:p}),Fv(e,A.outline)}l||Zi(e,r)}return A}function So(s){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a}=s,n;return t!==void 0&&!t.isDisposed()&&(e!==void 0&&(n=Hw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a}),n!==void 0&&(Fv(t,n),t instanceof qt&&Fv(t.strokes.template,n))),Zi(t,i)),n}function en(s){let{root:t,element:e,seriesIndex:i,seriesSymbol:r,isChartFillSymbol:a,colorMatch:n,rendererSymbol:o,keepCurrentVisibility:l}=s,h,c;n&&o!==void 0&&(h=ox({rendererSymbol:o,seriesSymbol:r,colorIndex:i}));let u={root:t,element:e,defaultToColorFromRamp:!0,colorRampIndex:i},d=h??{...r};switch(r.type){case Dt.SLS:c=So({...u,lineSymbol:d});break;case Dt.SFS:c=vu({...u,fillSymbol:d,isChartFillSymbol:a,keepCurrentVisibility:l});break;case Dt.SMS:c=Ak({...u,markerSymbol:d});break}return{symbolWithColorInfo:d,stylingInfo:c}}function hL(s,t){if(t!==void 0){let{elementColor:e,elementOutlineColor:i,elementOutlineWidth:r,rotation:a,transformation:n}=t,{opacity:o,scale:l}=n??{};e!==void 0&&s.setAll({fill:Xt(e).color,fillOpacity:1}),i!==void 0&&s.setAll({stroke:Xt(i).color,strokeOpacity:1}),r!==void 0&&s.setAll({strokeWidth:r}),a!==void 0&&s.setAll({rotation:a}),l!==void 0&&s.setAll({scale:l}),o!==void 0&&s.setAll({fillOpacity:o,strokeOpacity:o})}}function Zn(s){let{root:t,type:e,intlOptions:i,formatLocale:r}=s,a;switch(e){case V.NumberAxisFormat:{a=Jh.new(t,{}),a.set("intlLocales",r),a.set("numberFormat",i);break}case V.DateAxisFormat:{a=wc.new(t,{}),a.set("intlLocales",r);break}}return a}function m4(s,t,e){let i=t-s,r=[];if(i!==0){if(e===1)r=[s];else if(e>1){let a=i/(e-1);r=[...PF(s,t,a),t]}}return r}function g4({x:s,mean:t,stddev:e,scalingFactor:i}){let r=-1/(2*e**2);return(i??1)*Math.exp(r*(s-t)**2)}function y4(s){let t=0;if(s.length>0)for(let e=0;e<s.length;e+=1)s[e].count>t&&(t=s[e].count);return t}function pk(s){let t=!1,e;if(s.target.dataItem?.component instanceof Yr?{chart:e}=s.target.dataItem.component:(s.target instanceof Gn||s.target instanceof ml)&&({chart:e}=s.target),e instanceof Ci||e instanceof Rs){let i=fe(e.uid,"actionMode");if(i!==void 0){let{originalEvent:r}=s;t=i===Vt.MultiSelection||i===Vt.MultiSelectionWithCtrlKey&&("ctrlKey"in r&&r.ctrlKey||"metaKey"in r&&r.metaKey)}}return t}function na(s){let{element:t,selected:e,multiSelect:i,isDateOrCategoryAxis:r,backToDefaultState:a}=s,n=!1;if(t!==void 0){let o=_l(t.uid,"selected")??!1;n=o,i!==!0?r===!0?n=o?!1:o!==e:n=e:n=o!==e;let l=a===!0?aa.Default:aa.CustomInactive;t.states.apply(aa.Default),t.states.apply(n?aa.CustomActive:l),n!==o&&(KW(t.uid,{selected:n}),n&&(t.toFront(),t.dataItem?.component instanceof Yr&&t.dataItem.component.toFront()))}return n}function v4(s,t){let e=fe(t.chart?.uid??Number.NaN,"actionMode"),i=pk(s);return e===Vt.MonoSelection||e===Vt.MultiSelectionWithCtrlKey&&!i}function us(s,t){let{selectedElementsTheme:e,nonSelectedElementsTheme:i}=t??q.selectionTheme??{},r=s.states.create(aa.CustomActive,{}),a=s.states.create(aa.CustomInactive,{});hL(r,e),hL(a,i)}function vA(s){let{value:t,valueFormat:e,formatLocale:i,root:r}=s,a=t?.toString(),n=Zn({type:e.type,intlOptions:e.intlOptions,formatLocale:i,root:r});return typeof t=="number"&&e.type===V.NumberAxisFormat?a=n.format(t,Eo(e)):(typeof t=="number"||t instanceof Date)&&e.type===V.DateAxisFormat&&(a=n.format(t,Eo(e))),a}async function b4(s){let{root:t,exportOptions:e}=s,{format:i,quality:r=1,...a}=e,n=r<0||r>1?1:r,o=await cu.new(t,{}).exportImage(i,{quality:n,...a}),l=oI(o),h=i==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${i}`,{type:h})}function pA(s,t){if(s!==void 0&&t!==void 0&&(s.states.lookup("default")?.setAll({fill:t.fill,fillOpacity:t.fillOpacity}),t.outline!==void 0)){let{outline:e}=t;s.states.lookup("default")?.setAll({stroke:e.stroke,strokeOpacity:e.strokeOpacity,strokeDasharray:e.strokeDasharray,lineCap:e.linecap,strokeWidth:e.strokeWidth})}}function fk(s){let{numberFormatter:t,dataLabelsConfigContent:e,stackedType:i,externalDataLabelFormatter:r}=s;return(a,n)=>{let o=i===Gi.Stacked100&&n!==void 0?n:a;return t.get("numberFormat").style==="percent"&&(o/=100),_a({textSymbol:{...e,text:t.format(o)},format:r===void 0?"amChartsV5":"html"})}}function x4(s,t){let e=s.dataItem,i;switch(t){case V.LineSeries:case V.ScatterSeries:i=e.get("point");break;case V.HistogramSeries:case V.BarSeries:case V.HeatSeries:i=e.get("graphics");break}let r=i??s,a=i?.x??r?.get("x")??0,n=i?.y??r?.get("y")??0;return{x:a,y:n}}function mk(s){let{label:t,chart:e,seriesType:i}=s,r=n=>{if(e instanceof Ci){let o=x4(n,i),l=e.plotContainer,h=l.x(),c=l.y(),u=o.x<h||o.x>h+l.width()||o.y<c||o.y>c+l.height();n.setAll({visible:!u,forceHidden:u})}},a=zs((n,o)=>{o&&r(o)},q.debounceTime);t.on("x",a),t.on("y",a)}function _4(s){let{series:t,label:e,isHeatChart:i}=s;e.adapters.add("y",(r,a)=>{let{chart:n}=t,o=n!==void 0?fe(n.uid,"isRotated"):!1,l=typeof r=="number"?r:r?.value,h=a.dataItem;if(h!==void 0&&l!==void 0&&l!==null){let c=h?.get("valueY"),u=a.localBounds().bottom;if(o!==!0){let d=q.dataLabelNegative?.paddingTop??0;if(t.get("stacked")||i)if(c<0)l+=u-d;else{let A=i?q.heatChartLabelPadding.paddingTop:0;l+=u/2+A}}else{let d=q.rotatedChartPadding?.paddingTop??0;l+=u/2+d}}return l}),e.adapters.add("x",(r,a)=>{let{chart:n}=t,o=n!==void 0?fe(n.uid,"isRotated"):!1,l=typeof r=="number"?r:r?.value,h=a.dataItem;if(h!==void 0&&l!==void 0&&l!==null&&o===!0){let c=h?.get("valueX"),u=a.width()/2,d=q.rotatedChartPadding?.paddingRight??0,A=u+d;t.get("stacked")||(c<0?l-=A:l+=A)}return l})}function C4(s){let{series:t,isRotated:e,externalDataLabelFormatter:i}=s;t.bullets.push(()=>{let r=fe(t.chart?.uid??Number.NaN,"config")?.series?.find(l=>l.id===t.get("id"))?.dataLabels??s.dataLabelsConfig,a=t.get("stacked"),n=ma.new(t.root,{locationY:!a&&!e?1:void 0,locationX:!a&&e?1:void 0,sprite:Zt.new(t.root,{text:e?"{valueX}":"{valueY}",populateText:!0,centerY:ge,centerX:Xr,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(r?.content.color).color,fontSize:r?.content.font?.size})}),o=n.get("sprite");if(o){let l=o;yk({dataLabel:l,series:t,externalDataLabelFormatter:i}),vk({...s,dataLabelsConfig:r,dataLabel:l,dataLabelFormatter:fk})}return n})}function Qw(s,t=1){s.bullets.removeIndex(t)}function gk(s){let{textBackgroundColor:t,chartBackgroundColor:e,fillOpacity:i}=s,r;return sp({r:t.r,g:t.g,b:t.b,a:i})?r=sp({r:e.r,g:e.g,b:e.b,a:i})?Xt(fF).color:e:r=sp({r:e.r,g:e.g,b:e.b,a:i})?e:Xt(pF).color,r}function w4(s){let{dataLabel:t,labelConfigColor:e,seriesColor:i,backgroundColor:r,autoInverseDataLabelTextColor:a,isHeatChart:n}=s,o=r??Xt(q.backgroundColor).color;a===!0&&i&&t.adapters.add("fill",(l,h,c)=>{let u=e??h.text.get("fill"),d=(h.dataItem?.component).get("stacked"),A=u;if(u&&(d||n)){let p=h.dataItem.get("graphics"),m=p?.get("fillOpacity");A=gk({textBackgroundColor:p?.get("fill")??i,chartBackgroundColor:o,fillOpacity:m})}return A})}function yk(s){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=s;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";Nf({label:t,labelOutputProp:r}),t.adapters.add(r,(a,n)=>{let o=a??"",l=n.dataItem,h=Rt(e.uid,e instanceof Li?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(h!==void 0&&e.chart&&l){let c=fe(e.chart.uid,"isRotated"),u=c===!0?l.get("valueX"):l.get("valueY"),d=c===!0?l.get("valueXTotalPercent"):l.get("valueYTotalPercent"),A=e.get("valueYShow")==="valueYTotalPercent"||e.get("valueXShow")==="valueXTotalPercent";o=h(A?d:u)}return r==="html"?Mr(o):o})}function Nf(s){let{label:t,labelOutputProp:e}=s,i=t;e==="html"?i.set("html",q.htmlEmptyContent):i.set("html",void 0)}function jv(s){let{series:t,seriesConfig:e,dataLabel:i,labelDefaults:r,dataLabelsConfig:a,yAxisValueFormat:n,stackedType:o,isRotated:l,seriesType:h,defaultDataLabelFormatter:c,externalDataLabelFormatter:u}=s,{chart:d}=t;if(i!==void 0){let A=u,p=a?.content??{type:Dt.TS};if(u===void 0&&c!==void 0&&n?.type===V.NumberAxisFormat&&d){let x=fe(d.uid,"formatLocale"),w=Zn({root:d.root,type:n.type,formatLocale:x,intlOptions:n.intlOptions});A=c({numberFormatter:w,dataLabelsConfigContent:p,stackedType:o,externalDataLabelFormatter:u})}let m;switch(h){case V.BarSeries:m="barSeriesDataLabelFormatter";break;case V.LineSeries:m="lineSeriesDataLabelFormatter";break;case V.HistogramSeries:m="histogramDataLabelFormatter";break;case V.ScatterSeries:m="scatterplotDataLabelFormatter";break;case V.HeatSeries:m="heatChartDataLabelFormatter";break}m!==void 0&&hs(t.uid,{[m]:A}),a!==void 0&&(h===V.HeatSeries?a.content.text="{value}":a.content.text=l===!0?"{valueX}":"{valueY}",a.visible=a.visible!==!1),wn({label:i,labelConfig:a,defaults:r??q.dataLabel,skipSettingText:!0});let f=t.get("stacked"),g=f&&h===V.BarSeries&&e?.hideOversizedStackedLabels!==!1,y=!f&&h===V.BarSeries&&e?.hideOversizedSideBySideLabels===!0;y||g?i.setAll({oversizedBehavior:"hide",maxWidth:void 0,maxHeight:y?100:void 0}):i.setAll({oversizedBehavior:"none"})}}function B4(s){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=s;t.dataItems.forEach(r=>{let a=r.bullets?.[1];if(a){a.set("locationY",t.get("stacked")?void 0:1);let n=a.get("sprite");n&&(yk({dataLabel:n,series:t,externalDataLabelFormatter:i}),jv({...s,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:fk,externalDataLabelFormatter:i}))}})}function vk(s){let{series:t,dataLabelsConfig:e,autoInverseDataLabelTextColor:i,externalDataLabelFormatter:r,labelDefaults:a,seriesType:n,dataLabel:o,isHeatChart:l,dataLabelFormatter:h}=s;o&&(t.chart&&e?.visible&&mk({label:o,chart:t.chart,seriesType:n}),_4({series:t,label:o,isHeatChart:l}),jv({...s,dataLabel:o,labelDefaults:a,defaultDataLabelFormatter:h,externalDataLabelFormatter:r}),w4({dataLabel:o,labelConfigColor:Xt(e?.content.color).color,seriesColor:t.get("fill"),backgroundColor:t.chart?.get("background")?.get("fill"),autoInverseDataLabelTextColor:i,isHeatChart:l}))}function bk(s){let{series:t,dataLabelsConfig:e}=s,i=e?.visible,r=t.bullets.hasIndex(1);i!==!0?r&&Qw(t):(r||C4(s),B4(s))}function S4(s){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=s;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";Nf({label:t,labelOutputProp:r}),t.adapters.add(r,(a,n)=>{let o=a??"",l=n.dataItem,h=Rt(e.uid,"heatChartDataLabelFormatter"),c=fe(e.chart?.uid??NaN,"config");if(h!==void 0&&l){let u=l.get("value"),d=l.get("categoryX"),A=l.get("categoryY");u===null?o=c?.series[0].emptyCells?.text??q.heatChart.emptyCells?.text??"":u!==void 0&&(o=h(u,d,A))}return r==="html"?Mr(o):o})}function F4(s){let{numberFormatter:t,dataLabelsConfigContent:e}=s;return i=>_a({textSymbol:{...e,text:t.format(i)},format:"amChartsV5"})}function T4(s){let{series:t,externalDataLabelFormatter:e}=s;t.bullets.push(()=>{let i=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??s.dataLabelsConfig,r=ma.new(t.root,{sprite:Zt.new(t.root,{text:"{value}",populateText:!0,centerY:ge,centerX:Xr,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(i?.content.color).color,fontSize:i?.content.font?.size,oversizedBehavior:"hide"})}),a=r.get("sprite");if(a){let n=a;S4({dataLabel:n,series:t,externalDataLabelFormatter:e}),vk({...s,dataLabelsConfig:i,dataLabel:n,isHeatChart:!0,dataLabelFormatter:F4}),n.set("oversizedBehavior","hide"),n.set("maxWidth",void 0),n.set("maxHeight",void 0)}return r})}function P4(s){let{series:t,dataLabelsConfig:e}=s,i=e?.visible;t.bullets.hasIndex(0)&&Qw(t,0),i===!0&&T4(s)}var Ps={nameField:"name",fillField:"fill",strokeField:"stroke",fillOpacityField:"fillOpacity",strokeOpacityField:"strokeOpacity"};function jw(s,t){let e=zf(s);s.columns.template.set("tooltip",e);let i=t!==void 0||Rt(s.uid,"hasExternalTooltipFormatter")===!0,r=i?"tooltipHTML":"tooltipText";xl({element:s.columns.template,labelOutputProp:r}),s.columns.template.setAll({tooltipPosition:q.columnTooltipPosition}),s.columns.template.adapters.remove("tooltipText"),s.columns.template.adapters.remove("tooltipHTML"),s.columns.template.adapters.add(r,(a,n)=>Fo({element:n,series:s,isHTML:i})),s.columns.each(a=>{a.set("tooltip",e),xl({element:a,labelOutputProp:r}),a.adapters.remove("tooltipText"),a.adapters.remove("tooltipHTML"),a.adapters.add(r,(n,o)=>Fo({element:o,series:s,isHTML:i}))})}function xk(s){let{axesConfig:t,currentSeries:e,tooltipValueFormat:i}=s,{root:r,chart:a}=e;if(a){let n=t?.[1]?.valueFormat,o=t?.[0].valueFormat,l=fe(a.uid,"formatLocale");if(n?.type===V.NumberAxisFormat){let h=Zn({root:r,type:n.type,formatLocale:l,intlOptions:n.intlOptions});hs(e.uid,{tooltipValueYNumberFormatCallback:c=>h.format(c,i?.intlOptions??n.intlOptions)})}if(o?.type===V.NumberAxisFormat){let h=Zn({root:r,type:o.type,formatLocale:l,intlOptions:o.intlOptions});hs(e.uid,{tooltipValueXNumberFormatCallback:c=>h.format(c,i?.intlOptions??o.intlOptions)})}}}function D4(s){let{axes:t,seriesConfig:e,series:i,fieldList:r,utilsStrings:a}=s,{dataTooltipVisible:n}=e,o,l=fe(i.chart?.uid??0,"rtl")??!1,h=Ra(l);return n===!1?o=(c,u,d)=>"":o=(c,u,d)=>{let A=Er(r,e.x),p=mA(A,t?.[0].title?.content?.text),m=mA(a?.statistics.count??"",t?.[1]?.title?.content?.text??""),f=Rt(i.uid,"tooltipValueXNumberFormatCallback"),g=Rt(i.uid,"tooltipValueYNumberFormatCallback"),y=f?f(u):u,x=f?f(d):d,w=g?g(c):c;return`[bold]${p}${h} [/]${y} - ${x}
46
+ </tr>`,n}exportXLSX(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("xlsx")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getXLSX(t))})}getXLSX(t){return Xe(this,void 0,void 0,function*(){let e=this._getFormatOptions("xlsx",t),i=yield this.getXLSXLib(),r={bookType:"xlsx",bookSST:!1,type:"base64"},a=this._normalizeExcelSheetName(this.get("title",this._t("Data"))),n={SheetNames:[a],Sheets:{}},o=[],l=this.getData("html",e),h=this.getDataFields(l);if(e.pivot){let c=this.get("dataFieldsOrder",[]);Yl(h,(u,d)=>{let A=[];e.addColumnNames&&A.push(d);for(let p=l.length,m=0;m<p;m++){let f=l[m][u];A.push(this.convertToSpecialFormat(u,f,e,!0))}o.push(this.getXLSXRow(A,e,void 0,!0))},(u,d)=>{let A=c.indexOf(u),p=c.indexOf(d);return A>p?1:A<p?-1:0})}else{e.addColumnNames&&o.push(this.getXLSXRow(h,e,void 0,!0));for(let c=l.length,u=0;u<c;u++)o.push(this.getXLSXRow(l[u],e,h))}return n.Sheets[a]=i.utils.aoa_to_sheet(o),this.events.dispatch("workbookready",{type:"workbookready",format:"xlsx",options:e,workbook:n,workbookOptions:r,xlsx:i,target:this}),i.write(n,r)})}_normalizeExcelSheetName(t){return t=t.replace(/([:\\\/?*\[\]]+)/g," "),t.length>30?t.substr(0,30)+"...":t}getXLSXRow(t,e,i,r=!1){let a=[];i||(i=t);let n=this.get("dataFieldsOrder",[]);return Yl(i,(o,l)=>{let h=this.convertEmptyValue(o,t[o],e),c=r?h:this.convertToSpecialFormat(o,h,e,!0);a.push(c)},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0}),a}_xlsx(){return Xe(this,void 0,void 0,function*(){return yield import("./KBDOBMB5.js")})}getXLSXLib(){return this._xlsx()}exportPDF(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(t,!0))})}exportPDFData(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(t,!1,!0))})}getPDF(t,e=!0,i=!1){return Xe(this,void 0,void 0,function*(){let r=this._getFormatOptions("pdf",t),a=this._getFormatOptions("pdfdata",t),n=r.pageOrientation||"portrait",o,l={width:0,height:0};if(e){let g=r.imageFormat||"png",y=this._getFormatOptions(g,r),x=yield this.getCanvas(y);l.width=x.clientWidth,l.height=x.clientHeight,o=x.toDataURL(this.getContentType(g),r.quality||1),this.disposeCanvas(x)}let h=yield this.getPdfmake(),c=[30,30,30,30],u={pageSize:r.pageSize||"A4",pageOrientation:n,pageMargins:r.pageMargins||c,defaultStyle:{font:r.font?r.font.name:void 0},content:[]},d=this.get("title"),A=0;if(d&&(u.content.push({text:d,fontSize:r.fontSize||14,bold:!0,margin:[0,0,0,15]}),A+=50),r.addURL&&(u.content.push({text:this._t("Saved from")+": "+document.location.href,fontSize:r.fontSize,margin:[0,0,0,15]}),A+=50),e&&o){let g=this.getPageSizeFit(u.pageSize,u.pageMargins,A,n);l.width>g[0]||l.height>g[1]?u.content.push({image:o,alignment:r.align||"left",fit:g}):u.content.push({image:o,alignment:r.align||"left"})}(i||r.includeData)&&this.hasData()&&u.content.push({table:yield this.getPDFData(a),fontSize:r.fontSize||14});let p=null,m=null;function f(g){let y={};y.normal=g.normal.path,m[g.normal.path]=g.normal.bytes,g.bold?(y.bold=g.bold.path,m[g.bold.path]=g.bold.bytes):y.bold=g.normal.path,g.italics?(y.italics=g.italics.path,m[g.italics.path]=g.italics.bytes):y.italics=g.normal.path,g.bolditalics?(y.bolditalics=g.bolditalics.path,m[g.bolditalics.path]=g.bolditalics.bytes):y.bolditalics=g.normal.path,p[g.name]=y}return r.font&&(p={},m={},f(r.font),r.extraFonts&&J(r.extraFonts,f)),this.events.dispatch("pdfdocready",{type:"pdfdocready",format:"pdf",options:r,doc:u,target:this}),new Promise((g,y)=>{h.createPdf(u,null,p,m).getBase64(x=>{g(x)})})})}getPDFData(t){return Xe(this,void 0,void 0,function*(){let e=this._getFormatOptions("pdfdata",t),i={body:[]},r=this.getData("html",e),a=this.getDataFields(r);if(e.pivot){let n=this.get("dataFieldsOrder",[]);Yl(a,(o,l)=>{let h=[];e.addColumnNames&&h.push(l);for(let c=r.length,u=0;u<c;u++){let d=r[u][o];h.push(this.convertToSpecialFormat(o,d,e,!0))}i.body.push(this.getPDFDataRow(h,e,void 0,!0))},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0})}else{e.addColumnNames&&(i.body.push(this.getPDFDataRow(a,e,void 0,!0)),i.headerRows=1);for(let n=r.length,o=0;o<n;o++)i.body.push(this.getPDFDataRow(r[o],e,a))}return i})}getPDFDataRow(t,e,i,r=!1){let a=[];i||(i=t);let n=this.get("dataFieldsOrder",[]);return Yl(i,(o,l)=>{let h=this.convertEmptyValue(o,t[o],e),c=r?h:this.convertToSpecialFormat(o,h,e);c=""+c,a.push(c)},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0}),a}getPdfmake(){return HC===void 0&&(HC=PN()),HC}getPageSizeFit(t,e,i=0,r="portrait"){let a=[0,0,0,0];te(e)?a=[e,e,e,e]:e.length==2?a=[e[0],e[1],e[0],e[1]]:e.length==4&&(a=e);let o={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]}[t];return r=="landscape"&&o.reverse(),o[0]-=a[0]+a[2],o[1]-=a[1]+a[3]+i,o}hasData(){let t=this.get("dataSource");return!!(By(t)&&t.length)}getData(t,e,i=!1){let r=this._getFormatOptions(t,e),a=this.get("dataSource",[]),n=a,o=this.get("dataFields");o&&By(a)&&(n=[],J(a,h=>{if(Vn(h)){let c={};Et(o,(u,d)=>{o[u]!=null&&(c[i?d:u]=this.convertToSpecialFormat(u,h[u],r))}),n.push(c)}}));let l={type:"dataprocessed",format:t,options:r,data:n,target:this};return this.events.dispatch("dataprocessed",l),l.data}getDataFields(t){let e=this.get("dataFields");return e||(e={},By(t)&&t.length&&J(t,i=>{Et(i,(r,a)=>{e[r]==null&&(e[r]=r)})})),e}convertEmptyValue(t,e,i){return e??i.emptyAs}convertToSpecialFormat(t,e,i,r){if(typeof e=="number")if(this.isDateField(t))e=new Date(e);else{if(this.isNumericField(t)&&this.get("numberFormat"))return this._root.numberFormatter.format(e,this.get("numberFormat"));if(this.isDurationField(t))return this._root.durationFormatter.format(e,this.get("durationFormat"),this.get("durationUnit"))}return e instanceof Date&&(i.useTimestamps?e=e.getTime():i.useLocale?r||(e=e.toLocaleString()):e=this._root.dateFormatter.format(e,this.get("dateFormat"))),e}isDateField(t){return this.get("dateFields").indexOf(t)!==-1}isNumericField(t){return this.get("numericFields").indexOf(t)!==-1}isDurationField(t){return this.get("durationFields").indexOf(t)!==-1}getContentType(t){let e="";switch(t){case"png":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;default:e="application/octet-stream"}return e}getDisposableCanvas(){let t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",this._root.dom.appendChild(t),t}disposeCanvas(t){this._root.dom.removeChild(t)}findBackgroundColor(t){let e=1,i=getComputedStyle(t,"background-color").getPropertyValue("background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||i=="transparent")&&(e=0),e==0){let r=t.parentElement;return r?this.findBackgroundColor(r):ot.fromHex(16777215)}else return ot.fromCSS(i)}streamFile(t,e,i=!1){if(this.blobDownloadSupport()){let r=document.createElement("a");r.download=e,document.body.appendChild(r);let a=t.split(";"),n=a.shift().replace(/data:/,"");if(t=decodeURIComponent(a.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(n)==-1)try{t=atob(t)}catch{return!1}else{i&&(t="\uFEFF"+t);let c=new Blob([t],{type:n}),u=window.URL.createObjectURL(c);return r.href=u,r.download=e,r.click(),setTimeout(()=>{document.body.removeChild(r),window.URL.revokeObjectURL(u)},100),!0}let o=new Array(t.length);for(let c=0;c<t.length;++c){let u=t.charCodeAt(c);o[c]=u}i&&(o=[239,187,191].concat(o));let l=new Blob([new Uint8Array(o)],{type:n}),h=window.URL.createObjectURL(l);r.href=h,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>{window.URL.revokeObjectURL(h)},100)}else if(this.linkDownloadSupport()){let r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else window.location.href=t;return!0}downloadSupport(){return this.linkDownloadSupport()}linkDownloadSupport(){return typeof document.createElement("a").download<"u"}blobDownloadSupport(){return window.Blob!=null}initiatePrint(t,e,i){let r=this._getFormatOptions("print",e);r.printMethod=="css"?this._printViaCSS(t,r,i):this._printViaIframe(t,r,i)}_printViaCSS(t,e,i){let a=this._getFormatOptions("print",e).delay||500,n=document.documentElement.scrollTop||document.body.scrollTop,o=new ff(P_(this._root.dom),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"},this._root.nonce),l=new ff(P_(this._root.dom),"body",{padding:"0",margin:"0"},this._root.nonce),h;i&&document&&document.title&&(h=document.title,document.title=i);let c=new Image;c.src=t,c.style.maxWidth="100%",c.style.display="block",c.style.position="relative",c.style.visibility="visible",c.style.opacity="1",c.style.clipPath="none",document.body.appendChild(c),this.setTimeout(()=>{window.print()},50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&a<1e3?a=1e3:a<100&&(a=100),this.setTimeout(()=>{document.body.removeChild(c),o.dispose(),l.dispose(),h&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n},a||500)}_printViaIframe(t,e,i){let a=this._getFormatOptions("print",e).delay||500,n=document.createElement("iframe");n.style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close();let o=new Image;o.src=t,o.style.maxWidth="100%",o.style.height="auto",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(o),n.load=function(){n.contentWindow.document.body.appendChild(o)},this.setTimeout(()=>{try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch{n.contentWindow.print()}},a||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&a<1e3?a=1e3:a<100&&(a=100),this.setTimeout(()=>{document.body.removeChild(n)},a+50||100)}supportedFormats(){let t=[],e=this.hasData(),i=this.downloadSupport();return J(["png","jpg","canvas","pdf","xlsx","csv","json","html","pdfdata","print"],r=>{this._getFormatOptions(r).disabled!==!0&&(["xlsx","csv","json","html","pdfdata"].indexOf(r)==-1||e&&i)&&t.push(r)}),t}supportedExportTypes(){let t=["image","print"];return this.downloadSupport()&&this.hasData()&&t.push("data"),t}};cu.className="Exporting";cu.classNames=gi.classNames.concat([cu.className]);var dv={exports:{}},jC,V1;function DN(){if(V1)return jC;V1=1;function s(t){var e=new t,i=e;function r(){var n=e;return n.next?e=n.next:(e=new t,i=e),n.next=null,n}function a(n){i.next=n,i=n}return{get:r,release:a}}return jC=s,jC}var N1;function LN(){if(N1)return dv.exports;N1=1;var s=DN();function t(a,n,o){if(typeof a=="function"&&(o=n,n=a,a=null),o<1)throw new Error("fastqueue concurrency must be greater than 1");var l=s(i),h=null,c=null,u=0,d=null,A={push:w,drain:e,saturated:e,pause:m,paused:!1,concurrency:o,running:p,resume:y,idle:x,length:f,getQueue:g,unshift:S,empty:e,kill:T,killAndDrain:L,error:$};return A;function p(){return u}function m(){A.paused=!0}function f(){for(var I=h,R=0;I;)I=I.next,R++;return R}function g(){for(var I=h,R=[];I;)R.push(I.value),I=I.next;return R}function y(){if(A.paused){A.paused=!1;for(var I=0;I<A.concurrency;I++)u++,D()}}function x(){return u===0&&A.length()===0}function w(I,R){var F=l.get();F.context=a,F.release=D,F.value=I,F.callback=R||e,F.errorHandler=d,u===A.concurrency||A.paused?c?(c.next=F,c=F):(h=F,c=F,A.saturated()):(u++,n.call(a,F.value,F.worked))}function S(I,R){var F=l.get();F.context=a,F.release=D,F.value=I,F.callback=R||e,u===A.concurrency||A.paused?h?(F.next=h,h=F):(h=F,c=F,A.saturated()):(u++,n.call(a,F.value,F.worked))}function D(I){I&&l.release(I);var R=h;R?A.paused?u--:(c===h&&(c=null),h=R.next,R.next=null,n.call(a,R.value,R.worked),c===null&&A.empty()):--u===0&&A.drain()}function T(){h=null,c=null,A.drain=e}function L(){h=null,c=null,A.drain(),A.drain=e}function $(I){d=I}}function e(){}function i(){this.value=null,this.callback=e,this.next=null,this.release=e,this.context=null,this.errorHandler=null;var a=this;this.worked=function(n,o){var l=a.callback,h=a.errorHandler,c=a.value;a.value=null,a.callback=e,a.errorHandler&&h(n,c),l.call(a.context,n,o),a.release(a)}}function r(a,n,o){typeof a=="function"&&(o=n,n=a,a=null);function l(m,f){n.call(this,m).then(function(g){f(null,g)},f)}var h=t(a,l,o),c=h.push,u=h.unshift;return h.push=d,h.unshift=A,h.drained=p,h;function d(m){var f=new Promise(function(g,y){c(m,function(x,w){if(x){y(x);return}g(w)})});return f.catch(e),f}function A(m){var f=new Promise(function(g,y){u(m,function(x,w){if(x){y(x);return}g(w)})});return f.catch(e),f}function p(){var m=h.drain,f=new Promise(function(g){h.drain=function(){m(),g()}});return f}}return dv.exports=t,dv.exports.promise=r,dv.exports}var IN=LN(),ji={SelectXY:"selectXY",SelectX:"selectX",SelectY:"selectY",ZoomXY:"zoomXY",ZoomX:"zoomX",ZoomY:"zoomY",None:"none"},Wi={Top:"top",Bottom:"bottom",Median:"median",Outliers:"outliers"},bv=new Map;function Yn(s){s!==void 0&&bv.delete(s)}function Vc(s,t){let e=bv.get(s)??{};bv.set(s,{...e,...t})}function Nc(s,t){return bv.get(s)?.[t]}function kN(s,t){return Nc(s,t)}function $N(s,t){Vc(s,t)}function ON(s,t){return Nc(s,t)}function EN(s,t){Vc(s,t)}function ve(s,t){return Nc(s,t)}function ni(s,t){Vc(s,t)}function Hs(s,t){return Nc(s,t)}function Po(s,t){Vc(s,t)}function Vs(s,t){return Nc(s,t)}function Ls(s,t){Vc(s,t)}function MN(s,t){return Nc(s,t)}function RN(s,t){Vc(s,t)}function gs(s,t){return Nc(s,t)}function mu(s,t){Vc(s,t)}function Ri(s,t){t===!1&&!s.isHiding?(s.visible=!1,s.hide()):s.isShowing||(s.visible=!0,s.show())}function UN(s,t){for(let e=0;e<t.length;e+=1){let i=t[e][0],r=t[e][1],a=s.length;i>=0&&i<a&&r>=0&&r<a&&s.swap(t[e][0],t[e][1])}}function NL(s,t){let e;if(s!==void 0&&"rgb"in s&&s.rgb!==void 0){let i=s.rgb;if(i!==void 0){let{r,g:a,b:n}=i;e=[r,a,n,255]}}return e}function Ec(s){let t=s??[0,0,0,255];return new xt({a:t[3]/255,b:t[2],g:t[1],r:t[0]})}function Zr(s){return s.bullets.values.find(t=>MN(t.uid,"isBulletMarker"))}function qn(s){return s!=null&&!s.isDisposed()}function Ef(s){return(s.isShowing||s.visible)&&!s.isHidden&&!s.isHiding&&!s.disabled&&!s.__disabled}function HL(s,t){return s.pixelX<0||s.pixelX>t?.plotContainer?.measuredWidth||s.pixelY<0||s.pixelY>t?.plotContainer?.measuredHeight}function VN(s){let t;return s.baseSprite instanceof Wt||s.baseSprite instanceof pr?t=s.baseSprite:(s instanceof Mh||s instanceof Yd)&&(t=s.axis.chart),t}function NN(s){return NL(s.background.fill)}var re={...ht};function HN(s){let{fill:t,rotation:e,isLinePattern:i,chartBackgroundColor:r}=s,a;return i!==!1?(a=new fc,a.width=re.patternLineProperties.width??Number.NaN,a.height=re.patternLineProperties.height??Number.NaN,a.strokeWidth=re.patternLineProperties.strokeWidth??Number.NaN,a.stroke=t,a.rotation=e??Number.NaN):(a=new mc,a.rectWidth=re.patternRectProperties.rectWidth??Number.NaN,a.rectHeight=re.patternRectProperties.rectHeight??Number.NaN,a.width=re.patternRectProperties.width??Number.NaN,a.height=re.patternRectProperties.height??Number.NaN,a.fillOpacity=re.patternRectProperties.fillOpacity??Number.NaN,a.strokeWidth=re.patternRectProperties.strokeWidth??Number.NaN,a.fill=Ec(r),a.stroke=t,a.rotation=e??Number.NaN),a}function H1(s){let t=Number.NaN;if(typeof s=="number")t=s;else if(s.includes("%")){let e=Number.parseFloat(s.trim().replace("%","").trim());Number.isFinite(e)&&(t=he(e))}return t}function QN(s){let{fill:t,style:e,chartBackgroundColor:i}=s,r,a,n=!0;switch(e){case bs.Horizontal:{a=0;break}case bs.Vertical:{a=90;break}case bs.ForwardDiagonal:{a=45;break}case bs.BackwardDiagonal:{a=135;break}case bs.Cross:{a=0,n=!1;break}case bs.DiagonalCross:{a=135,n=!1;break}case bs.Solid:}return a!==void 0&&(r=HN({fill:t,rotation:a,isLinePattern:n,chartBackgroundColor:i})),r}function xn(s,t){let e;t!==void 0&&(e=Ec(t));let i=e??new xt({r:0,g:0,b:0,a:0});if(s!=null){let[r,a,n,o]=s;i=new xt({r,g:a,b:n,a:o/255})}return i}function QL(s,t=0){return(s??t)%360}function jN(s,t){return t!==!0||s?.includes("Dot")===!0?"round":"square"}function jL(s,t){let e="none";switch(s??t){case bi.Justify:case bi.Center:e="center";break;case bi.Left:e="left";break;case bi.Right:e="right";break}return e}function yw(s,t){let e="middle";switch(s??t){case bi.Right:e="left";break;case bi.Left:e="right";break;case bi.Center:case bi.Justify:}return e}function WN(s,t){let e="none";switch(s??t){case Yt.Baseline:case Yt.Middle:e="middle";break;case Yt.Top:e="top";break;case Yt.Bottom:e="bottom";break}return e}function WL(s,t){let e=Yt.Middle;switch(s??t){case Yt.Top:e="bottom";break;case Yt.Bottom:e="top";break;case Yt.Baseline:case Yt.Middle:default:e="middle";break}return e}function XN(s,t){let e=s??As.Solid,i=t??re.lineWidth,r={[As.Solid]:"none",[As.Dot]:[1,i],[As.DashDotDot]:[4*i,i,1,i,1,i],[As.Dash]:[4*i,3*i],[As.DashDot]:[4*i,3*i,1,3*i],[As.Null]:"none"};return(r[e]??r[As.Null]).toString()}function XL(s,t){let e={stroke:xn(),strokeWidth:re.lineWidth,strokeDasharray:"",strokeLinecap:t!==!0?"round":"square",strokeOpacity:hd};return s!=null&&(e.stroke=xn(s.color),e.strokeOpacity=1,s.width!==void 0&&(e.strokeWidth=s.width),s.style!==void 0&&s.style!==As.Null&&(e.strokeDasharray=XN(s.style,e.strokeWidth),e.strokeLinecap=jN(s.style,t))),e}function zL(s,t){let e=s,[i,r,a,n]=s?.color??t??re.color,o=[i,r,a,n];return e==null?e={type:Dt.SLS,color:o}:e.color===void 0&&(e.color=o),XL(e,!1)}function zN(s,t){let{color:e,outline:i,style:r}=s,a=xn(e);return{pattern:QN({fill:a,style:r,chartBackgroundColor:t}),fill:a,outline:zL(i,e)}}function GN(s){let{color:t,outline:e,xoffset:i,yoffset:r,style:a,size:n,angle:o}=s,l=a!==void 0?rx(a,n):"",h=QL(o);return{path:l,fill:xn(t),outline:zL(e,t),xOffset:i??0,yOffset:r??0,angle:h}}function vw(s){let{symbol:t,defaultToColorFromRamp:e,colorRampIndex:i,isChartFillSymbol:r=!1,chartBackgroundColor:a}=s,n;if(e===!0){let o=r?Nm:hd;if(t.color=t.color??bh({colorIndex:i,opacity:o}),md(t)||np(t)){let{outline:l}=t;l!==void 0&&(l.color=l?.color??bh({colorIndex:i}),t.outline={...l})}}return Tx(t)?n=XL(t,!0):np(t)?(t.style??=re.lineSeries.marker.markerStyle,t.size??=re.lineSeries.marker.markerBigSize,n=GN(t)):md(t)&&(n=zN(t,a)),n}function xv(s,t,e){let i=yw(s.horizontalAlignment,e?.horizontalCenter),r=jL(s.horizontalAlignment,e?.align),a=WL(s.verticalAlignment,e?.verticalCenter),n=WN(s.verticalAlignment,e?.valign);return{fill:xn(s.color,re.color),fontFamily:s.font?.family??"Arial, Helvetica, sans-serif",fontSize:s.font?.size??re.generalFontSize,fontWeight:s.font?.weight??"400",textDecoration:s.font?.decoration??"none",align:r,valign:n,verticalCenter:a,horizontalCenter:i,text:_a({textSymbol:s,format:"amChartsV4"}),angle:QL(s.angle,e?.rotation),xOffset:s.xoffset??e?.dx??0,yOffset:s.yoffset??e?.dy??0,backgroundFill:xn(s.backgroundColor),borderFill:xn(s.borderLineColor),borderWidth:s.borderLineSize??1,haloSize:s.haloSize??-1,haloColor:xn(s.haloColor),rtl:s.rightToLeft??t,wrap:e?.wrap??!1,maxWidth:e?.maxWidth??Number.NaN}}function GL(s,t,e){e!==void 0&&s.tooltip!==void 0&&(s.tooltip.getFillFromObject=!1,s.tooltip.background.fill=t),s.fill=e??t,s.fillOpacity=Ne(s.fill.toString()).alpha===0?0:1}function AA(s,t){s.stroke=t.stroke,s.strokeOpacity=t.stroke.alpha===0?0:1,s.strokeDasharray=t.strokeDasharray,s.strokeLinecap=t.strokeLinecap,s.strokeWidth=t.strokeWidth}function _v(s){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a}=s,n;return e!==void 0?(n=vw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a}),n!==void 0&&(t.path=n.path,t.rotation=n.angle,t.dx=n.xOffset,t.dy=n.yOffset,GL(t,n.fill),AA(t,n.outline)),Ri(t,i),t.disabled=i===!1):t.disabled=!0,n}function Oc(s){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a}=s,n;return e!==void 0?(n=vw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a}),n!==void 0&&AA(t,n),Ri(t,i)):Ri(t,!1),n}function Mf(s){let{element:t,fillSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a,isChartFillSymbol:n}=s,o,l;if(e!==void 0){if(e.style===bs.Cross||e.style===bs.DiagonalCross){let h=VN(t);h!==void 0&&(l=NN(h))}o=vw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a,isChartFillSymbol:n,chartBackgroundColor:l}),o!==void 0&&(GL(t,o.fill,o.pattern),AA(t,o.outline)),t.disabled=i===!1}else t.disabled=!0;return o}function Mc(s){let{element:t,seriesIndex:e,colorMatch:i,seriesSymbol:r,isChartFillSymbol:a,rendererSymbol:n,seriesConfig:o}=s,l,h;i===!0&&n&&(l=ox({rendererSymbol:n,seriesSymbol:r,colorIndex:e}));let c={element:t,defaultToColorFromRamp:!0,colorRampIndex:e,seriesConfig:o},u=l??{...r};switch(r.type){case Dt.SLS:h=Oc({...c,lineSymbol:u});break;case Dt.SFS:h=Mf({...c,fillSymbol:u,isChartFillSymbol:a});break;case Dt.SMS:h=_v({...c,markerSymbol:u});break}return{symbolWithColorInfo:u,stylingInfo:h}}function Q1(s,t){if(t!==void 0){let e=s.properties,{elementColor:i,elementOutlineColor:r,elementOutlineWidth:a,rotation:n,transformation:o}=t,{opacity:l,scale:h}=o??{};i!==void 0&&(e.fill=Ec(i),e.fillOpacity=Ne(e.fill.toString()).alpha===0?0:1),r!==void 0&&(e.stroke=Ec(r)),a!==void 0&&(e.strokeWidth=a),n!==void 0&&(e.rotation=n),h!==void 0&&(e.scale=h),l!==void 0&&(e.fillOpacity=(e.fillOpacity??1)*l,e.strokeOpacity=(e.strokeOpacity??1)*l)}}function YN(s,t,e){let i=new Set(Array.from(t)),r=s.findIndex(a=>!i.has(ZC(a)));return r!==-1?r:e}function ZC(s){return`${s[0]},${s[1]},${s[2]}`}function KN(s){let{chartConfig:t,queryObject:e,usePopupTemplateFieldsInfo:i,labelUpdateNeeded:r,utilsStrings:a}=s,{series:n}=t,o=n[0],{x:l}=o,h=!bF({chartConfig:t}),c=It([o]),u=c===Ee.PieFromFields,d=Ys(e),A=_h(d).idField,p=ln(e,i);return{x:l,isNonAggregatedChart:h,objectIdField:A,isPieFromFields:u,seriesConfig:o,fieldList:p,labelUpdateNeeded:r,chartSubType:c,colorMatch:Ol(t),utilsStrings:a}}function ZN(s){let{dataContext:t,seriesConfig:e,existingSlicesColors:i,isGroupOfSlices:r,sliceFromConfig:a,dataIndex:n,colorMatch:o,chartSubType:l}=s,h=r?{...ht.pieChart.sliceGrouping.fillSymbol,...e.sliceGrouping?.fillSymbol}:Tr(a?.fillSymbol??e.fillSymbol),c=on({dataItem:t,seriesConfig:e,chartSubType:l,colorMatch:o}),u=n;h?.color||(u=YN(AF,i,n));let d={dataItem:{dataContext:t}},{symbolWithColorInfo:A}=Mc({element:d,seriesConfig:e,y:e.y,seriesSymbol:h??Wm(),seriesIndex:u,rendererSymbol:c,colorMatch:o,isChartFillSymbol:!0});return A}function j1(s,t){let{x:e,isNonAggregatedChart:i,objectIdField:r,isPieFromFields:a,seriesConfig:n,fieldList:o,labelUpdateNeeded:l,colorMatch:h,chartSubType:c,utilsStrings:u}=s,d=[],A,p,m=new Set;return t?.forEach((f,g)=>{let y=tH({dataContext:f,x:e,isNonAggregatedChart:i,dataIndex:g,objectIdField:r,isPieFromFields:a});f[ht.pieChart.technicalFieldSliceId]=y;let x=qC(n.slices,y);x?.fillSymbol?.color!==void 0&&m.add(ZC(x.fillSymbol.color))}),t?.forEach((f,g)=>{let y=f[ht.pieChart.technicalFieldSliceId],x=qC(n.slices,y),w=ah(f),S=ZN({dataContext:f,seriesConfig:n,existingSlicesColors:m,isGroupOfSlices:w,sliceFromConfig:x,dataIndex:g,colorMatch:h,chartSubType:c});S.color&&m.add(ZC(S.color));let D=iH({dataContext:f,sliceFromConfig:x,isGroupOfSlices:w,seriesConfig:n,fieldList:o,isPieFromFields:a,labelUpdateNeeded:l,colorMatch:h,utilsStrings:u}),T={sliceId:y,label:D,fillSymbol:S};T.originalLabel=x?.originalLabel??(f?.[ht.originalCategoryValue]!==void 0?f?.[ht.originalCategoryValue]:T.label),w?(p=f[ht.pieChart.technicalFieldGroupedSlices],n.sliceGrouping!==void 0&&(A={sliceId:n.sliceGrouping.sliceId,percentageThreshold:n.sliceGrouping.percentageThreshold,label:D,originalLabel:n.sliceGrouping.originalLabel??D,fillSymbol:S})):d.push(T)}),{slices:d,groupOfSlicesSymbols:A,groupOfSlices:p}}function YL(s){let{creation:t,dataInfo:e,pieChartDataActuallyChanged:i,chartConfig:r,previousConfig:a,queryObject:n,usePopupTemplateFieldsInfo:o,utilsStrings:l}=s,h;if(r.series[0].type===V.PieSeries){let c=In(e.data),u=mx({oldConfig:a,newConfig:r}),d=fx(a,r),A=Jm(a,r),p=KN({chartConfig:r,queryObject:n,usePopupTemplateFieldsInfo:o,labelUpdateNeeded:t||i||u||A||d,utilsStrings:l}),{slices:m,groupOfSlicesSymbols:f,groupOfSlices:g}=j1(p,c),{slices:y}=j1(p,g??[]);h={slices:m,groupedSlices:y,groupOfSlices:f}}return h}async function qN(s){let{creation:t,dataInfo:e,dataInfo:{data:i},pieChartDataActuallyChanged:r,chartConfig:a,previousConfig:n,pieSlicesSymbols:o,queryObject:l,options:h,utilsStrings:c}=s,{slices:u}=o??{},{chartWillRender:d}=h??{},A=ze(a.series),p=!1,m=a,f=Tr(o),g,y;if(d&&(A===V.PieSeries||A===V.GaugeSeries)){p=!0,m=Tr(a);let x=ng({data:i,seriesConfig:a.series});m=await d({chartConfig:m,data:x,slices:u}),!Gs(l)&&A===V.PieSeries&&i&&"dataItems"in i&&({colorMatchApplied:g,rendererFieldNames:y}=await bx({data:i.dataItems,queryObject:l,chartConfig:m,allowColorMatch:nx({chartConfig:m,queryObject:l})}),f=YL({creation:t,dataInfo:e,chartConfig:m,previousConfig:n,queryObject:l,pieChartDataActuallyChanged:r,usePopupTemplateFieldsInfo:h?.usePopupTemplateFieldsInfo,utilsStrings:c}))}return{changesApplied:p,alteredConfig:m,alteredPieSlicesSymbols:f,colorMatchApplied:g,rendererFieldNames:y}}function ah(s){return s?.[an.defaultGroupOfSlicesId]===!0}function JN(s){let{dataContext:t,dataIndex:e,objectIdField:i}=s;return`${an.sliceIdPrefix}-${t[i??""]?.toString()??e}`}function eH(s){let{chartConfig:t,chartData:e,fieldList:i}=s,r=It(t.series)===Ee.PieFromFields;if(t.orderOptions?.data!==void 0||r){ig({arrayToSort:e,chartConfig:t,fieldList:i});let{slices:a}=t.series[0];a!==void 0&&a.sort((n,o)=>{let l=e.findIndex(c=>c[ht.pieChart.technicalFieldSliceId]===n.sliceId),h=e.findIndex(c=>c[ht.pieChart.technicalFieldSliceId]===o.sliceId);return l-h})}}function qC(s,t){let e;return s!==void 0&&t!==void 0&&(e=s.find(i=>i.sliceId===t)),e}function tH(s){let{dataContext:t,isNonAggregatedChart:e,x:i,dataIndex:r,objectIdField:a,isPieFromFields:n}=s,o="";return n===!0?o=t[ht.originalCategoryValue]??t[io]:e?o=JN({dataContext:t,dataIndex:r,objectIdField:a}):(o=t[ht.originalCategoryValue],o===void 0||o===""?o=an.emptySliceId:o===null&&(o=an.nullSliceId),o=o??t[i]),o===void 0&&(o=an.undefinedSliceId),o.toString()}function iH(s){let{dataContext:t,sliceFromConfig:e,isGroupOfSlices:i,seriesConfig:r,fieldList:a,isPieFromFields:n,labelUpdateNeeded:o,colorMatch:l,utilsStrings:h}=s,{sliceGrouping:c}=r,{x:u}=r;n&&(u=io);let d=t[u]??t[ht.originalCategoryValue],A=t[ht.originalCategoryValue]??d,p=d;return o&&(i?p=c?.label??c?.originalLabel?.toString()??h.pieChart.defaultSliceGroupingLabel:l&&t[ht.rendererSymbolField]?.label!==void 0?p=t[ht.rendererSymbolField].label:e!==void 0||a!==void 0?(e?.label&&e.label!==e?.sliceId&&(p=e?.label),p===A&&A!==void 0&&A!==null&&(p=Er(a,A))):e===void 0&&(p=A),p===ht.nullValue?p="null":p!=null&&(p=p.toString())),p}function bw(s,t){return s?.[0]?.sliceGrouping?.percentageThreshold!==t?.[0]?.sliceGrouping?.percentageThreshold}function Hf(s){let{groupOfSlicesDataContext:t,chartData:e}=s;return(t??e?.find(i=>i[an.defaultGroupOfSlicesId]===!0))?.[ht.pieChart.technicalFieldGroupedSlices]}function xw(s){let{dataContext:t,pieSlicesSymbols:e,seriesConfig:i}=s,r=i.fillSymbol?{...i.fillSymbol}:Wm();if(ah(t))r={...ht.pieChart.sliceGrouping.fillSymbol,...e?.groupOfSlices?.fillSymbol};else{let a=t[ht.pieChart.technicalFieldSliceId],n=e?.slices?.find(o=>o.sliceId===a);r=Tr(n?.fillSymbol??i.fillSymbol??Wm())}return r}function yl(s){let{type:t,iLocale:e,formatLocale:i=fd(document.documentElement)}=s,r;switch(t){case V.NumberAxisFormat:{r=new Hl,r.language.locale=e,r.intlLocales=i;break}case V.DateAxisFormat:{r=new cn,r.language!==void 0&&(r.language.locale=e),r.intlLocales=i;break}}return r}function JC(s){let{axis:t,valueFormat:e,chartType:i}=s,r=Um({isXAxis:!0,chartType:i,valueFormat:e}),a=ro(e)&&t instanceof Ct,n=xa(e)&&t instanceof He&&!(t instanceof Ct),o=r&&t instanceof Ot;return!a&&!n&&!o}function KL(s,t){let e=typeof t=="number"?`${t}`:t,i=Vs(s.uid,"numberFormatter");return i!==void 0&&(e=i(t)),Yi(e)&&(e=re.htmlEmptyContent),Mr(e)}function rH(s){s.renderer.labels.template.html=re.htmlEmptyContent,s.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>KL(s,e?.dataItem?.value??t),0)}function ZL(s){let{axis:t,defaultOutput:e,dataItem:i}=s,r=e,a=Vs(t.uid,"categoryFormatter"),n=Vs(t.uid,"numberFormatter");if((n!==void 0||a!==void 0)&&i instanceof il){let o=ve(t.chart.uid,"config"),l=It(o?.series),h=ve(t.chart.uid,"rendererFieldNames"),c=Mo({value:i.category,dataContext:i.dataContext,useRendererLabel:JA(o,h),specificField:rp(l,o?.series?.[0]),config:o});if(typeof c=="number"&&n!==void 0)r=n(c);else if(a!==void 0){if([Ee.BoxPlotMonoField,Ee.BoxPlotMultiFields,Ee.BoxPlotMonoFieldAndSplitBy,Ee.BoxPlotMultiFieldsAndSplitBy,Ee.BarAndLineFromFields].includes(l)&&typeof c=="string"){let d=ve(t.chart.uid,"fieldList");c=Er(d,c)}let u=so(i.dataContext);u===void 0&&(u=c),r=a(c,u)}}return Yi(r)&&(r=re.htmlEmptyContent),Mr(r)}function sH(s){s.renderer.labels.template.html=re.htmlEmptyContent,s.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>ZL({axis:s,defaultOutput:t,dataItem:e?.dataItem}),0)}function aH(s){let{axis:t,defaultOutput:e,dataItem:i}=s,r=e,a=Vs(t.uid,"dateFormatter");return a!==void 0&&i instanceof Vh&&(r=a(i.value??e)),Yi(r)&&(r=re.htmlEmptyContent),Mr(r)}function nH(s){s.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>aH({axis:s,dataItem:e?.dataItem,defaultOutput:t}),0),s.renderer.labels.template.adapter.disableKey("htmlOutput")}function oH(s){s.renderer.labels.template.adapter.add("htmlOutput",t=>{let e=t,i=Vs(s.uid,"fontStyleCallback");return i!==void 0&&(e=i(e)),Mr(e)},1)}function lH(s){s instanceof He&&!(s instanceof Ct)?rH(s):s instanceof Ot?sH(s):s instanceof Ct&&nH(s),oH(s)}function hH(s){let{axis:t,formatOptions:e,dateAxisFormatter:i,isTimeOnlyField:r}=s;if(Ls(t.uid,{dateFormatter:i}),i===void 0){t.renderer.labels.template.adapter.isEnabled("htmlOutput")&&(t.renderer.labels.template.adapter.disableKey("htmlOutput"),t.renderer.labels.each(o=>{o.element instanceof Op&&o.element.removeChildren()}));let a={...Eo(e)};r&&(a={hour:r?"numeric":void 0,minute:r?"numeric":void 0,...a});let n=["year","month","day","hour","minute","second"];t.timezone!==a.timeZone&&(t.setPropertyValue("timezone",a.timeZone),t.chart.validateData()),t.dateFormatter.timezone=a.timeZone,delete a.timeZone;for(let o=0;o<n.length;o+=1){let l=n[o],h=o===0?l:n[o-1],c=e?.formatPerDateTimeUnit?.[l]??a,u=e?.formatPerDateTimeUnit?.[h];Lu(c)||(t.dateFormats.setKey(l,c),t.periodChangeDateFormats.setKey(l,u??c))}t.dateFormats.getKey("day")||t.dateFormats.setKey("day",re.dayDefaultFormat),t.periodChangeDateFormats.getKey("day")||t.periodChangeDateFormats.setKey("day",re.dayDefaultFormat),t.dateFormats.getKey("week")||t.dateFormats.setKey("week",t.dateFormats.getKey("day")??re.weekDefaultFormat),t.periodChangeDateFormats.getKey("week")||t.periodChangeDateFormats.setKey("week",t.periodChangeDateFormats.getKey("day")??re.weekDefaultFormat),t.invalidateLabels()}else t.renderer.labels.template.html=re.htmlEmptyContent,t.renderer.labels.template.adapter.enableKey("htmlOutput")}function uH(s,t,e,i){let r=yl({type:V.NumberAxisFormat,iLocale:t,formatLocale:e});return r.numberFormat=s,a=>{let n=0;return a instanceof Date?a.toLocaleString(void 0,s):(n=typeof a!="string"?a??0:Fx(a,r.intlLocales),i===!0&&s.style==="percent"&&(n/=100),r.format(n))}}function W1(s){let{axis:t,formatOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=s,a=Eo(e),n=ve(t.chart.uid,"formatLocale");Ls(t.uid,{numberFormatter:r??uH(a,t.chart.language.locale,n,i)})}function cH(s){let{axis:t,formatOptions:e,categoryAxisFormatter:i}=s,r=i!==void 0?i:Xm(e.characterLimit);Ls(t.uid,{categoryFormatter:r})}function dH(s){let{axis:t,labelsTextSymbol:e,axisValueFormatter:i}=s,r=ve(t.chart.uid,"config")?.horizontalAxisLabelsBehavior;if(Ls(t.uid,{axisLabelsBehavior:r}),i!==void 0)Ls(t.uid,{fontStyleCallback:void 0});else if(Vs(t.uid,"fontStyleCallback")===void 0){let a=n=>{let o=Vs(t.uid,"axisLabelsBehavior");return _a({textSymbol:e,placeholderString:n,format:"html",axisLabelsBehavior:o,defaults:{maxWidth:t.renderer.labels.template.maxWidth}})};Ls(t.uid,{fontStyleCallback:a})}}function AH(s){let{axis:t,isXAxis:e,formatOptions:i,labelsTextSymbol:r,overridePercentMultiplication:a,chartType:n,axisValueFormatter:o,isTimeOnlyField:l,errorStrings:h}=s,c=Um({isXAxis:e,chartType:n,valueFormat:i}),u=!1;!(t instanceof Ct)&&xa(i)?W1({axis:t,formatOptions:i,overridePercentMultiplication:a,valueAxisFormatter:o}):t instanceof Ct&&ro(i)?hH({axis:t,formatOptions:i,dateAxisFormatter:o,isTimeOnlyField:l}):t instanceof Ot?ld(i)||c?(cH({axis:t,formatOptions:i,categoryAxisFormatter:o}),Ls(t.uid,{numberFormatter:void 0})):xa(i)?(W1({axis:t,formatOptions:i,overridePercentMultiplication:a,valueAxisFormatter:o}),Ls(t.uid,{categoryFormatter:void 0})):u=!0:u=!0,u&&Rm("mismatchAxisAndValueFormat",h),dH({axis:t,labelsTextSymbol:r,axisValueFormatter:o}),t.invalidateLabels()}function pH(s){let t=s;return s>=1?t=10**(s.toFixed(0).length-1):s<1&&s>0&&(t=10**-Math.abs(Math.floor(Math.log10(s)))),t}function qL(s){let{minimumFromConfig:t,maximumFromConfig:e,isLogarithmic:i}=s,r=i===!0&&t!==null&&t!==void 0&&t<=0,a=!Number.isFinite(t)||!Number.isFinite(e);return r||a}var fH="arcgis-charts-randomization-seed";Cy(fH,Cy.URL);var ii={XAxisTitle:"XAxisTitle",YAxisTitle:"YAxisTitle",ChartTitle:"ChartTitle",ChartSubTitle:"ChartSubTitle",ChartFooter:"ChartFooter",GuideLabel:"GuideLabel",LegendTitle:"LegendTitle"},ke={Ready:"ready",Hidden:"hidden",Shown:"shown",Hit:"hit",DoubleHit:"doublehit",Up:"up",SelectEnded:"selectended",Over:"over",Out:"out",SizeChanged:"sizechanged",VisibilityChanged:"visibilitychanged",PositionChanged:"positionchanged",Validated:"validated",DataItemsValidated:"dataitemsvalidated",Inited:"inited",ChildAdded:"childadded",DataRangeChanged:"datarangechanged",LayoutValidated:"layoutvalidated"};function JL(s){let{actionMode:t,cursorRange:e,isRotated:i}=s,r=ji.None;switch(e){case Vm.MultiAxes:t===Vt.MultiSelectionWithCtrlKey||t===Vt.MultiSelection?r=ji.SelectXY:t===Vt.Zoom&&(r=ji.ZoomXY);break;case Vm.XAxis:t===Vt.MultiSelectionWithCtrlKey||t===Vt.MultiSelection?r=i===!0?ji.SelectY:ji.SelectX:t===Vt.Zoom&&(r=i===!0?ji.ZoomY:ji.ZoomX);break;case Vm.YAxis:t===Vt.MultiSelectionWithCtrlKey||t===Vt.MultiSelection?r=i===!0?ji.SelectX:ji.SelectY:t===Vt.Zoom&&(r=i===!0?ji.ZoomX:ji.ZoomY);break}return r}function mH(s,t){let e=re.cursorCrosshair.style,i={type:Dt.SLS,style:t.style??e.style,color:t.color??e.color,width:t.width??e.width};Oc({element:s.cursor.lineX,lineSymbol:i}),Oc({element:s.cursor.lineY,lineSymbol:i})}function eI(s){if(!(s instanceof qs)&&!(s instanceof pr)){s.cursor=new pc;let t="userAgentData"in navigator&&navigator.userAgentData&&typeof navigator.userAgentData=="object"&&"mobile"in navigator.userAgentData&&navigator.userAgentData.mobile===!0||/Mobi|Android/iu.test(navigator.userAgent);s.cursor.hideSeriesTooltipsOnSelection=!t}}function tI(s,t){if(!(s instanceof qs)&&!(s instanceof pr)){let e=s,i=e.cursor??new pc;t?.style!==void 0&&mH(e,t.style);let r=re.cursorCrosshair;i.lineX.disabled=r.verticalLineVisible?t?.verticalLineVisible===!1:t?.verticalLineVisible!==!0,i.lineY.disabled=r.horizontalLineVisible?t?.horizontalLineVisible===!1:t?.horizontalLineVisible!==!0,e.cursor=i}}function gH(s){return!(s instanceof qs)&&s.cursor===void 0&&eI(s),s.cursor}function ew(s,t){let e=s.renderer.labels.template;e.events.hasListenersByType(ke.Hit)&&(e.cursorOverStyle=t),s.renderer.labels.each(i=>{i.cursorOverStyle=t})}function yH(s){let{chart:t,chartType:e,showMean:i,enabled:r}=s,a=r?ai.pointer:ai.default;switch(e){case V.ComboLineAndBarSeries:case V.BarSeries:case V.PieSeries:t.series.each(n=>{(n instanceof Hi||n instanceof ws)&&(n.cursorOverStyle=a)});break;case V.BoxPlotSeries:t.series.each(n=>{let o=a;if(n instanceof Pi){let l=Zr(n);l!==void 0&&(i&&Hs(n.uid,"isBoxPlotOutliersSeries")&&(o=ai.default),l.cursorOverStyle=o,l.clones.each(h=>{h.cursorOverStyle=o}))}else n.cursorOverStyle=i?ai.default:a});break;case V.LineSeries:t.series.each(n=>{if(n instanceof Pi){let o=Zr(n);o!==void 0&&(o.cursorOverStyle=a,o.clones.each(l=>{l.cursorOverStyle=a}))}});break}}function vH(s){let{chart:t,actionMode:e,cursorRange:i}=s,r=ve(t.uid,"isRotated"),a=ve(t.uid,"config"),n=Ca(a),o=ze(a?.series),l=o===V.LineSeries&&xa(a?.axes?.[0]?.valueFormat),h=o===V.LineSeries&&ld(a?.axes?.[0]?.valueFormat),c=o===V.LineSeries&&ro(a?.axes?.[0]?.valueFormat),u,d=!1,A=e??ve(t.uid,"actionMode")??re.actionMode;if(ve(t.uid,"filterBySelection")===!0)u=ji.None,d=!1;else if(i!==void 0)u=JL({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Vt.Zoom:l||c?u=ji.ZoomXY:u=r===!0?ji.ZoomY:ji.ZoomX,d=!1;break;case Vt.MultiSelection:case Vt.MultiSelectionWithCtrlKey:h?u=r===!0?ji.SelectY:ji.SelectX:u=ji.SelectXY,d=!0;break;case Vt.MonoSelection:u=ji.None,d=!0;break;case Vt.None:u=ji.None,d=!1;break}t instanceof Wt&&t.cursor!==void 0&&u!==void 0&&(t.cursor.behavior=u),yH({chart:t,chartType:o,enabled:d,showMean:n})}function iI(s){let t="";return s instanceof Wr?t=s.dataFields?.categoryX??s.dataFields?.dateX??s.dataFields?.valueX??"":s instanceof ws&&(t=s.dataFields?.category??""),t}function rI(s){let t="";return s instanceof Wr?t=s.dataFields?.categoryY??s.dataFields?.dateY??s.dataFields?.valueY??"":s instanceof ws&&(t=s.dataFields?.value??""),t}function sI(s){return ve(s.chart.uid,"isRotated")===!0?rI(s):iI(s)}function bu(s){return ve(s.chart.uid,"isRotated")===!0?iI(s):rI(s)}function Dv(s,t=0){let e=ve(s.chart.uid,"config");return ze(e?.series,t)}function*bH(s){let{filterList:t,queryObject:e,queryConfig:i}=s;for(let r=0;r<t.length;r+=1){let a={...i};a.where=Km([a.where,t[r]]),yield FF({queryObject:e,queryConfig:a,uniqueFeature:!0})}}async function aI(s){let{whereList:t,queryObject:e,queryFilter:i,queryConfig:r}=s,a=[];if(t.length>0){let n=yF().maxElementsPerSelectionQuery,o=[],l=Math.ceil(t.length/n);for(let c=0;c<l;c+=1){let u=c*n,d=(c+1)*n,A=t.slice(u===0?0:u-1,d),p=Km(A,"OR");p=Km([i,p]),o.push(p)}let h=bH({filterList:o,queryObject:e,queryConfig:r});a=(await Promise.all(h)).flat(),a=Array.from(new Set(a))}return a}var Au={Outlier:"outlier",Box:"box",OutlierToOutlier:"outlier-outlier",OutlierToBox:"outlier-box",BoxToOutlier:"box-outlier",BoxToBox:"box-box"};function xH(s,t){let e=s[ht.boxPlot.boxPlotOutlierId]===!0?Au.Outlier:Au.Box,i=typeof t=="number"?Au.Outlier:Au.Box;return`${e}-${i}`}function _H(s){let{oneSelectedItem:t,dataContext:e,selectedOutlierKey:i}=s;return t[i]===e[i]}function CH(s){let{elementMin:t,elementMax:e,selectedOutlierValue:i}=s,r;return typeof t=="number"&&typeof e=="number"&&typeof i=="number"&&(r=i>=t&&i<=e),r}function wH(s){let{selectedMin:t,selectedMax:e,elementOutlierValue:i,oneSelectedItem:r,iqrField:a}=s,n;typeof t=="number"&&typeof e=="number"&&typeof i=="number"&&(n=i>=t&&i<=e);let o=a in r;return n!==!1&&o}function BH(s){let{selectedMin:t,selectedMax:e,elementMin:i,oneSelectedItem:r,elementMax:a,iqrField:n}=s,o;typeof i=="number"&&typeof a=="number"&&typeof t=="number"&&typeof e=="number"&&(o=!(i>=e||a<=t));let l=n in r;return o!==!1&&l}function SH(s){let{oneSelectedItem:t,dataContext:e,xAxisField:i}=s,r=e[ht.originalCategoryValue]??e[ht.boxPlot.boxPlotCategory]??e[i],a=t[ht.originalCategoryValue]??t[ht.boxPlot.boxPlotCategory]??t[i];return r===a}function FH(s){let{chartSubType:t,yAxisField:e,splitBy:i,showOutliers:r}=s,a=t===Ee.BoxPlotMultiFieldsAndCategory?e:void 0,n={y:a,splitBy:i},o=er({...n,key:Kt.Outlier}),l=er({...n,key:Kt.Max,showOutliers:r}),h=er({...n,key:Kt.Min,showOutliers:r}),c=er({...n,key:Kt.Max,showOutliers:!1}),u=er({...n,key:Kt.Min,showOutliers:!1}),d=er({...n,key:Kt.Max,showOutliers:!0}),A=er({...n,key:Kt.Min,showOutliers:!0}),p=er({splitBy:i,y:a,key:Kt.IQR});return{selectedOutlierKey:o,maxField:l,minField:h,selectedMaxFieldWoOutliers:c,selectedMinFieldWoOutliers:u,selectedMaxFieldWithOutliers:d,selectedMinFieldWithOutliers:A,iqrField:p}}function TH(s){let{elementDataContext:t,layerOidField:e,xAxisField:i,splitBy:r,yAxisField:a,chartSubType:n,showOutliers:o}=s,l=t,h;if(l?.[ht.boxPlot.boxPlotMeanLineMarkerId]===!0){let c=er({splitBy:r,key:Kt.Average});h=u=>{let d=!i||!(i in u&&i in l)||u[i]===l[i],A=c in u&&c in l;return d&&A}}else i!==void 0&&a!==void 0&&(h=c=>{let u;if(e!==void 0&&e in c&&e in l)u=c[e]===l[e];else{let{selectedOutlierKey:d,maxField:A,minField:p,selectedMaxFieldWoOutliers:m,selectedMinFieldWoOutliers:f,selectedMaxFieldWithOutliers:g,selectedMinFieldWithOutliers:y,iqrField:x}=FH({chartSubType:n,yAxisField:a,splitBy:r,showOutliers:o}),w=l[d],S=c[d],D=l[p],T=l[A],L=c[f]??c[y],$=c[m]??c[g],I=SH({oneSelectedItem:c,dataContext:l,xAxisField:i});if(I)switch(xH(c,w)){case Au.OutlierToOutlier:I=_H({oneSelectedItem:c,dataContext:l,selectedOutlierKey:d});break;case Au.OutlierToBox:I=CH({elementMin:D,elementMax:T,selectedOutlierValue:S});break;case Au.BoxToOutlier:I=wH({selectedMin:L,selectedMax:$,elementOutlierValue:w,oneSelectedItem:c,iqrField:x});break;case Au.BoxToBox:I=BH({selectedMin:L,selectedMax:$,elementMin:D,oneSelectedItem:c,elementMax:T,iqrField:x});break}u=I===!0}return u});return h}function _w(s){let{layerOidField:t,sliceDataContext:e,selectionDataContext:i,xAxisField:r}=s,a=!1;if(t!==void 0&&t in e&&t in i)a=i[t]?.toString()===e[t]?.toString();else{let n=e[ht.originalCategoryValue];n===void 0&&(n=e[r]),n===void 0&&(n=e[io]);let o=i[ht.originalCategoryValue];o===void 0&&(o=i[r]),o===void 0&&(o=i[io]),a=n!==void 0&&o!==void 0&&n===o}return a}function Av(s){let{dataContext:t,specificField:e,xOrY:i}=s,r=t[i==="x"?ht.originalCategoryValue:ht.originalYCategoryValue];return r===void 0&&e&&(r=t[e]),r===void 0&&(r=t[i==="x"?Cr.xField:Cr.yField]),r}function Lv(s){let{options:t,elementDataContext:e,selectionDataItems:i,layerOidField:r,xAxisField:a,yAxisField:n,chartType:o,splitBy:l,chartSubType:h}=s,c=!1,u;if(e!==void 0&&i!==void 0)switch(o){case V.HeatSeries:let d=e,A=Av({dataContext:d,specificField:a,xOrY:"x"}),p=Av({dataContext:d,specificField:n,xOrY:"y"});u=m=>{let f=Av({dataContext:m,specificField:a,xOrY:"x"}),g=Av({dataContext:m,specificField:n,xOrY:"y"});return A===f&&p===g};break;case V.RadarSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:if(a!==void 0&&n!==void 0){let m=e;u=f=>{let g,y=r;if(h===Ee.BarAndLineSplitByNoAggregation){let x=Ch({where:l,keepSurroundingQuotes:!1,escape:!1});y=`${r}_${x}`}if(r!==void 0&&r in f&&r in m)g=f[r]===m[r];else if(y!==void 0&&y in f&&y in m)g=f[y]===m[y];else if(ht.dateBinningRange in m&&typeof f[a]=="number"){let x=f[a],w=f[ht.dateBinningRange],S=Array.isArray(w)&&Number.isFinite(w[0])&&Number.isFinite(w[1]),[D,T]=S?w:[0,0],[L,$]=m[ht.dateBinningRange],I=m[ht.lastTemporalBin]===!0?x<=$:x<$;g=(S?D<$&&L<T:x>=L&&I)&&n in f&&Number.isFinite(f[n])}else{let x=S=>{let D=S[ht.originalCategoryValue];return D===void 0&&(D=S[a]),D=D===null?ht.nullValue:D,D},w=x(m);g=x(f)===w&&n in f}return g}}break;case V.BoxPlotSeries:u=TH(s);break;case V.ScatterSeries:if(a!==void 0&&n!==void 0){let m=e;if(!vF({dataContext:m,chartLimits:t?.chartLimits}))u=f=>{let g;return r!==void 0&&r in m&&r in f?g=f[r]===m[r]:g=f[a]===m[a]&&f[n]===m[n],g};else{let{dataContextXMinField:f,dataContextXMaxField:g,dataContextYMinField:y,dataContextYMaxField:x}=ht.scatterplotAggregationFields,{[f]:w,[g]:S}=m,D=a!==n?m[y]:w,T=a!==n?m[x]:S,L=I=>{let R=I[a]??Number.NaN,F=w??Number.NaN,H=S??Number.NaN;return w===S?R===F:(R??Number.NaN)>=F&&(R??Number.NaN)<H},$=I=>{let R=I[n]??Number.NaN,F=D??Number.NaN,H=T??Number.NaN;return D===T?R===F:R>=F&&R<H};u=I=>L(I)&&$(I)}}break;case V.HistogramSeries:u=m=>{let f=!1,{minValue:g,maxValue:y}=e,{isLastBin:x}=e;if(a!==void 0&&a in m){let w=m[a];f=typeof w=="number"&&w>=g&&(x&&w<=y||!x&&w<y)}else if("minValue"in m&&"maxValue"in m){let{minValue:w,maxValue:S}=m;f=!(g>=S||y<=w)}return f};break;case V.PieSeries:a!==void 0&&(u=m=>{let f=e,g=ah(f),y=[f];return g&&y.push(...Hf({groupOfSlicesDataContext:f})??[]),y.some(x=>_w({sliceDataContext:x,selectionDataContext:m,layerOidField:r,xAxisField:a}))});break}return u!==void 0&&(c=i.some(u)),c}function sh(s){let{isFeatureCollectionLayer:t,dataContext:e,yAxisField:i,yList:r,xAxisField:a,splitBy:n,chartType:o,chartSubType:l,showOutliers:h}=s,c={...e};if(e!==void 0){if(o===V.RadarSeries||o===V.BarSeries||o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.PieSeries){o!==V.PieSeries&&(t||l!==Ee.BarAndLineNoAggregation&&l!==Ee.BarAndLineSplitByNoAggregation)&&r.forEach(d=>{d!==i&&delete c[d]});let u=Mo({value:e[a],dataContext:e,keepNullValues:!0});c[a]=u,!Yi(n)&&!OF(n)&&(c[Vo(n)]=Ch({where:n,escape:!1}))}else if(o===V.BoxPlotSeries){c={[a]:e[a]},[Eu.uniqueIdsName,ht.boxPlot.boxPlotMeanLineMarkerId,ht.boxPlot.boxPlotOutlierId,ht.originalCategoryValue,ht.originalYCategoryValue].forEach(d=>{e[d]&&(c[d]=e[d])});let u=l===Ee.BoxPlotMultiFieldsAndCategory?i:void 0;Object.values(Kt).forEach(d=>{let A=er({key:d,y:u,splitBy:n,showOutliers:h});e[A]!==void 0&&(c[A]=e[A])})}}return c}function nI(s){let{data:t,colorMatch:e,chartSubType:i,rendererType:r}=s;return t!==void 0&&e&&r!==void 0&&(i===Ee.BoxPlotMultiFields&&(r===Mm.UniqueValue||r===Mm.PieChart)||i===Ee.BoxPlotMonoFieldAndCategory&&r===Mm.UniqueValue)&&t.some(a=>Object.keys(a).some(n=>n.includes(ht.rendererSymbolField)))}function PH(s){return!!/^data:[a-z]+\/[a-z+.-]+;base64/u.test(s)}function oI(s,t=512){if(!PH(s))throw new Error("Cannot convert a string that is not a data uri to a blob");let e=s.split(",")[0].split(":")[1].split(";")[0],i=atob(s.split(",")[1]),r=[];for(let a=0;a<i.length;a+=t){let n=i.slice(a,a+t),o=new Array(n.length);for(let h=0;h<n.length;h++)o[h]=n.charCodeAt(h);let l=new Uint8Array(o);r.push(l)}return new Blob(r,{type:e})}function Rf(s){let{value:t,valueFormat:e,iLocale:i,formatLocale:r}=s,a=t?.toString(),n=yl({type:e.type,iLocale:i,formatLocale:r});return typeof t=="number"&&e.type===V.NumberAxisFormat?a=n.format(t,Eo(e)):(typeof t=="number"||t instanceof Date)&&e.type===V.DateAxisFormat&&(a=n.format(t,Eo(e))),a}function _n(s){let{chart:t,config:e}=s,i=e;return e===void 0&&t!==void 0&&(i=ve(t.uid,"config")),ks(i)}function DH(s){s instanceof jl&&s.series.each(t=>{Yn(t.uid),t instanceof Pi&&Yn(Zr(t)?.uid),t.bullets.each(e=>{Yn(e.uid)}),t instanceof Hi&&t.columns.template.children.each(e=>{Yn(e.uid)})}),s instanceof Wt&&[s.xAxes.getIndex(0),s.xAxes.getIndex(1),s.yAxes.getIndex(0),s.yAxes.getIndex(1)].forEach(t=>{t!==void 0&&(Yn(t.uid??""),t.axisRanges.each(e=>{Yn(e.label?.uid)}))}),s instanceof qs&&s.radarContainer.children.each(t=>{Yn(t.uid)}),s instanceof pr&&s.series.getIndex(0)?.slices.each(t=>{Yn(t.uid)}),"cursor"in s&&s.cursor instanceof rA&&Yn(s.cursor?.uid),"legend"in s&&s.legend!==void 0&&(Yn(s.legend.uid),Yn(s.legend.valueLabels?.template?.uid)),Yn(s.uid)}function pv(s){return typeof s=="number"?s:s.value}async function LH(s){let{chart:t,exportOptions:e}=s,{format:i,quality:r=1,...a}=e,n=r<0||r>1?1:r,o=await t.exporting.getImage(i,{quality:n,...a}),l=oI(o),h=i==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${i}`,{type:h})}function Iv(s,t){t!==void 0&&(t.marginBottom!==void 0&&(s.marginBottom=t.marginBottom),t.marginTop!==void 0&&(s.marginTop=t.marginTop),t.marginRight!==void 0&&(s.marginRight=t.marginRight),t.marginLeft!==void 0&&(s.marginLeft=t.marginLeft),t.verticalCenter!==void 0&&(s.verticalCenter=WL(t.verticalCenter)),t.horizontalCenter!==void 0&&(s.horizontalCenter=yw(t.horizontalCenter)),t.strokeWidth!==void 0&&(s.strokeWidth=t.strokeWidth),t.wrap!==void 0&&(s.wrap=t.wrap),t.truncate!==void 0&&(s.truncate=t.truncate),t.maxWidth!==void 0&&(s.maxWidth=t.maxWidth),t.applyOnClones!==void 0&&(s.applyOnClones=t.applyOnClones,s.background.applyOnClones=t.applyOnClones))}function vl(s,t){let e=t?.createChild(Mi)??new Mi;return Iv(e,s),e}function IH(s){let t=s.push(new Xd);t.dx=1,t.dy=1,t.opacity=1}function kH(s,t,e){if(e.alpha>0&&t>=0){s.length===0&&IH(s);let i=s.getIndex(0);i.blur=t,i.color=e}else s.clear()}function $H(s,t){let e=gs(s.uid,"isGuide"),i=t.visible===!1;return!i&&(e===!0||!(s instanceof Jo))&&t.content.text===""&&(i=!0),i}function X1(s){let{label:t,offset:e,offsetProperty:i}=s,r=99;if(t.adapter.remove(i,r),typeof e=="string"&&!Number.isFinite(Number(e))){let a=qA(e);a!==void 0&&(a/=100,t.adapter.add(i,()=>(t.parent?.[i==="dx"?"measuredWidth":"measuredHeight"]??0)*a,r))}else t[i]=e}function Cn(s){let{label:t,labelConfig:e,defaults:i,skipSettingText:r}=s;if(e!==void 0){let a=xv(e.content,t.rtl,i);t.fill=a.fill,t.fontFamily=a.fontFamily,t.fontWeight=a.fontWeight,t.fontSize=a.fontSize,t.textDecoration=a.textDecoration,t.align=a.align,t.valign=a.valign,t.verticalCenter=a.verticalCenter,t.horizontalCenter=a.horizontalCenter,t.background.fill=a.backgroundFill,t.background.stroke=a.borderFill,t.background.strokeWidth=a.borderWidth,t.rotation=a.angle,X1({label:t,offset:a.xOffset,offsetProperty:"dx"}),X1({label:t,offset:a.yOffset,offsetProperty:"dy"}),t.rtl=a.rtl,t.wrap=a.wrap,t instanceof Jo||(t.maxWidth=a.maxWidth),r||(t.text=a.text),kH(t.filters,a.haloSize,a.haloColor);let n=$H(t,e);t.disabled=n,Ri(t,e.visible!==!1&&!n)}else t.disabled=!0}function lI(s,t){t!==void 0&&(s===V.BarSeries||s===V.LineSeries)&&t.adapter.add("dy",(e,i)=>{let r=i.dataItem,{chart:a}=r?.component??{};return a instanceof Wt&&(i.visible=!HL(i,a)),e??0})}function hI(s,t){t!==void 0&&(s===V.BarSeries&&t.adapter.add("dx",(e,i)=>{let r=e??0,a=i.dataItem,{chart:n}=a?.component??{};return(n!==void 0?ve(n.uid,"isRotated"):!1)===!0&&(a.valueX??a.valueY)<0&&(r-=i.measuredWidth+re.dataLabelNegative.paddingRight),r}),(s===V.BarSeries||s===V.LineSeries)&&t.adapter.add("dy",(e,i)=>{let r=e??0,a=i.dataItem,{chart:n}=a?.component??{};return(n!==void 0?ve(n.uid,"isRotated"):!1)!==!0&&(a.valueX??a.valueY)<0&&(r+=i.measuredHeight+re.dataLabelNegative.paddingTop),r}))}function tw(s){s.bulletsContainer.invalidateLabels(),s instanceof Hi&&s.columns?.template.invalidateLabels()}function OH(s){let{dataValue:t,series:e,seriesType:i,stackedType:r,axisMin:a}=s,n=t===void 0;return t!==void 0&&(a!==void 0&&t<a?n=!0:e instanceof Hi&&(i===V.BarSeries||i===V.ComboLineAndBarSeries)&&(n=t===0&&r!==void 0&&r!==Gi.Side)),n}function iw(s,t){let e,i=r=>gs(r.uid,"isDataLabel")??!1;return t==="bullets"?e=s.bullets.values.find(i):s instanceof Hi&&(e=s.columns.template.children.values.find(i)),e}function rw(s,t){s.adapter.add("htmlOutput",(e,i)=>{let r=e,{dataItem:a}=i;if(Ef(s)&&(t instanceof Hi&&a instanceof Bs||t instanceof Pi&&a instanceof Xa)){let n=Hs(t.uid,t instanceof Hi?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(n!==void 0){let o=ve(t.chart.uid,"isRotated"),l=Hs(t.uid,"stackedType"),h=o===!0?a.valueX:a.valueY,c=o===!0?a.values?.valueX?.totalPercent:a.values?.valueY?.totalPercent,u=o===!0?(a.component?.xAxis).min:(a.component?.yAxis).min;r=OH({dataValue:h,series:t,seriesType:t instanceof Hi?V.BarSeries:V.LineSeries,stackedType:l,axisMin:u})?"":n(h,c)}}return Mr(r)},0)}function uI(s){let{numberFormatter:t,dataLabelsConfigContent:e,stackedType:i}=s;return(r,a)=>{let n=i===Gi.Stacked100&&a!==void 0?a:r;return t.numberFormat.style==="percent"&&(n/=100),_a({textSymbol:{...e,text:t.format(n)},format:"html"})}}function cI(s){s.tabindex=-1}function dI(s){let{series:t,seriesType:e,dataLabel:i,labelDefaults:r,dataLabelsConfig:a,yAxisValueFormat:n,stackedType:o,isRotated:l,defaultDataLabelFormatter:h,customDataLabelFormatter:c}=s;if(i!==void 0){let u=c,d=a?.content??{type:Dt.TS};if(c===void 0&&h!==void 0&&n?.type===V.NumberAxisFormat){let p=ve(t.chart.uid,"formatLocale"),m=yl({type:n.type,iLocale:t.chart.language.locale,formatLocale:p});m.numberFormat=n.intlOptions,u=h({numberFormatter:m,dataLabelsConfigContent:d,stackedType:o})}let A;switch(e){case V.BarSeries:A="barSeriesDataLabelFormatter";break;case V.LineSeries:A="lineSeriesDataLabelFormatter";break}A!==void 0&&Po(t.uid,{[A]:u}),a!==void 0&&(a.content.text=l===!0?"{valueX}":"{valueY}",a.visible=a.visible!==!1),Cn({label:i,labelConfig:a,defaults:r??re.dataLabel}),tw(t)}}function kv(s,t){let e=t;e===void 0&&(e=ve(s.uid,"config"));let i=ve(s.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function AI(s,t){let e;return s instanceof Ct?e=t===!0?"dateY":"dateX":s instanceof Ot?e=t===!0?"categoryY":"categoryX":e=t===!0?"valueY":"valueX",e}function xA(s,t){s.name=t}function Cw(s){let{chart:t,lineSeries:e,applyPropertiesToClones:i}=s,r=e.bullets.push(new Oe);return RN(r.uid,{isBulletMarker:!0}),i!==!1&&(r.applyOnClones=!0),e.bulletsContainer.parent=t.seriesContainer,r}function ww(s){let{series:t,seriesConfig:e,rotationChanged:i,stackedType:r,isRotated:a}=s;switch(r){case Gi.Stacked:{t.stacked=!0,t instanceof Pi&&(t.stackToNegative=e.stackNegativeValuesToBaseline??re.lineSeries.stackNegativeValuesToBaseline),i===a?t.dataFields.valueYShow=void 0:t.dataFields.valueXShow=void 0,t.updateStacking();break}case Gi.Stacked100:{t.stacked=!0,a?t.dataFields.valueXShow="totalPercent":t.dataFields.valueYShow="totalPercent",t.updateStacking();break}case Gi.Side:default:{t.stacked=!1,i===a?t.dataFields.valueYShow=void 0:t.dataFields.valueXShow=void 0;break}}}function EH(s){return()=>{let{chart:t,marker:e}=s;e.clones.each(i=>{Ri(i,!HL(i,t))})}}function MH(s){let{chart:t,series:e,seriesType:i,marker:r,numberOfChartSeries:a,ignoreSmoothRenderingLimit:n}=s,o=EH({marker:r,chart:t}),l=a??1,h=t.data.length*l+l;n!==!0&&h>re.elementLimitForSmoothRendering&&(o=zs(o,re.debounceTime)),t.xAxes.getIndex(0)?.events.on(ke.Validated,o),t.yAxes.getIndex(0)?.events.on(ke.Validated,o),i===V.LineSeries&&(t.xAxes.getIndex(0)?.events.on(ke.Validated,()=>{tw(e)}),t.yAxes.getIndex(0)?.events.on(ke.Validated,()=>{tw(e)}))}function pI(s,t){s.series.each(e=>{let i=Hs(e.uid,t);i!==void 0&&!i.isDisposed()&&i.dispose()})}function RH(s){let t;return s!==void 0&&s.series.length>0&&(t=s.series.values.map(e=>e.visible?e.id:"").filter(e=>e!=="")),t}function WC(s){let{dataItem:t,y:e,splitBy:i,showOutliers:r}=s,a=er({key:Kt.Min,y:e,splitBy:i,showOutliers:r}),n=er({key:Kt.Max,y:e,splitBy:i,showOutliers:r}),o=er({key:Kt.FirstQuartile,y:e,splitBy:i,showOutliers:r}),l=er({key:Kt.ThirdQuartile,y:e,splitBy:i,showOutliers:r});return Number.isFinite(t[a])&&Number.isFinite(t[n])&&Number.isFinite(t[o])&&Number.isFinite(t[l])}function UH(s,t){let e=0;if(s!==void 0&&t!==void 0){let i=No(t.series),r=It(t.series),a=Ro(t);s.data.forEach(n=>{switch(r){case Ee.BoxPlotMonoField:case Ee.BoxPlotMultiFields:case Ee.BoxPlotMonoFieldAndCategory:WC({dataItem:n,showOutliers:a})&&(e+=1);break;case Ee.BoxPlotMultiFieldsAndCategory:i.forEach(o=>{WC({dataItem:n,y:o,showOutliers:a})&&(e+=1)});break;case Ee.BoxPlotMonoFieldAndSplitBy:case Ee.BoxPlotMultiFieldsAndSplitBy:case Ee.BoxPlotMonoFieldAndCategoryAndSplitBy:t.series.forEach(o=>{WC({dataItem:n,splitBy:o.query?.where,showOutliers:a})&&(e+=1)});break}})}return e}function z1(){return s=>{let t=ve(s.chart.uid,"config"),e=!1;if(t!==void 0&&s instanceof Wr){let i=UH(s.chart,t),r=0,a=0,n=0,o=0,l=0;s.chart.series.values.forEach(u=>{if(u instanceof wr)r+=u.columns.length;else if(u instanceof Pi&&!(u instanceof pa)){let d=Zr(u);if(d!==void 0&&!d.disabled){let A=d.clones.values.filter(p=>!(p.dataItem instanceof fo))?.length??0;if(Hs(u.uid,"isBoxPlotMeanLineSeries")===!0){o+=A;let p=u.data.filter(m=>Number.isFinite(m[u.dataFields.valueX??u.dataFields.valueY??""])).length;l+=p}else{let p=u.data.filter(m=>Number.isFinite(m[u.dataFields.valueX??u.dataFields.valueY??""])).length;n+=p,a+=A}}}});let h=n===0||a>=n,c=l===0||o>=l;e=r>=i&&h&&c&&s.chart.appeared&&s.isReady()&&s.chart.isReady()}return e}}function VH(s,t){let e;switch(s){case V.BarSeries:e=(i,r)=>{if(i instanceof Hi){let a=_n({chart:i.chart}),n=0;if(r.type===V.BarSeries){let o=(a?i.dataFields.valueX:i.dataFields.valueY)??r.y;n=i.chart?.data?.filter(l=>Number.isFinite(l[o])).length}return i.chart.isReady()&&i.columns.length===n}return!1};break;case V.LineSeries:t===!0?e=z1():e=(i,r)=>{if(i instanceof Pi){let a=_n({chart:i.chart}),n=Zr(i),o=0;if(r.type===V.LineSeries){let{y:l}=r,h=(a?i.dataFields.valueX:i.dataFields.valueY)??[l].flat()[0];o=i.chart?.data?.filter(c=>Number.isFinite(c[h])).length}return i.chart.appeared&&i.chart.isReady()&&n!==void 0&&n.clones.values.length>=o}return!1};break;case V.PieSeries:e=i=>i instanceof ws&&i.slices.length>0;break;case V.BoxPlotSeries:e=z1();break}return e}function fI(s){let{series:t,callbackInfo:e,seriesConfig:i,onReadyEvent:r}=s,{type:a}=e,n=ze([i]),o=Hs(t.uid,"isBoxPlotMeanLineSeries"),l=a==="style"?"updateStyleCallbackDisposer":"updateSelectionCallbackDisposer",h=async d=>{let{type:A,callbackProps:p}=d;A==="selection"?y2(p):d.styleCallback!==void 0&&(Ri(t,i.visible),await d.styleCallback(p))};r===!0&&t.events.once(ke.Ready,async()=>await h(e));let c=Hs(t.uid,l);c!==void 0&&c.dispose();let u=VH(n,o);c=(n===V.PieSeries?t.chart:t).events.on(ke.Validated,async()=>{u!==void 0&&u(t,i)&&(c!==void 0&&c.dispose(),await h(e))}),t.dispatchImmediately(ke.Validated),Po(t.uid,{[l]:c})}function $v(s){let{series:t,styleCallback:e,callbackProps:i,onReadyEvent:r,seriesConfig:a}=s;fI({callbackInfo:{styleCallback:e,callbackProps:i,type:"style"},series:t,seriesConfig:a,onReadyEvent:r})}function NH(s){let{series:t,callbackProps:e,seriesConfig:i,onReadyEvent:r}=s;fI({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i,onReadyEvent:r})}function Hc(s){let{defaultChartItemRole:t}=re.aria;s instanceof wr||s instanceof Hi?(s.columns.template.properties.role=t,s.columns.template.focusable=!0,s.columns.template.hoverOnFocus=!0,s.itemReaderText=tp()):s instanceof pa?s.segments.template.properties.role=t:s instanceof Pi?s.bullets.values.forEach(e=>{e.focusable=!0,e.properties.role=t,e.readerTitle=tp(),e.hoverOnFocus=!0}):s instanceof ws&&(s.slices.template.properties.role=t,s.slices.template.hoverOnFocus=!0,s.itemReaderText="{category} {value.formatNumber('#.#')} {value.percent.formatNumber('#.#')}%")}function HH(s){let t=ve(s.uid,"config");s.series.each(e=>{let i=t?.series?.find(r=>r.id===e.id);i!==void 0&&i.visible!==!1&&!e.visible&&Ri(e)})}function Ov(s,t){let e=ze(t?.series);return t?.series.find(i=>{let r=!1;return e!==V.BoxPlotSeries||s instanceof wr?r=s.id===i.id:s instanceof pa?r=s.id.replace(`_${Wi.Top}`,"")===i.id||s.id.replace(`_${Wi.Median}`,"")===i.id||s.id.replace(`_${Wi.Bottom}`,"")===i.id:s instanceof Pi&&(r=s.id.replace(`_${Wi.Outliers}`,"")===i.id),r})}var aa={CustomActive:"custom-active",CustomInactive:"custom-inactive",Default:"default",Active:"active"};function QH(s,t){let e=!1;if(t!==void 0&&Ef(s)){let i=Tt.spriteRectToSvg(s.bbox,s),r=t.x,a=t.y,n=t.x+t.width,o=t.y+t.height,l=i.x,h=i.y,c=i.x+i.width,u=i.y+i.height;e=!(l>n||c<r||h>o||u<a)}return e}function Qc(s){let{element:t,customSelectionTheme:e,useNativeState:i}=s,r=i===!0?aa.Active:aa.CustomActive,a=t.states.getKey(r)??t.states.create(r),n=t.states.getKey(aa.CustomInactive)??t.states.create(aa.CustomInactive),{selectedElementsTheme:o,nonSelectedElementsTheme:l}=e??re.selectionTheme??{};Q1(a,o),Q1(n,l)}function Kn(s){let{element:t,selected:e,multiSelect:i,isDateOrCategoryAxis:r,useNativeState:a,backToDefaultState:n}=s;if(t!==void 0){let o=t.isActive;i!==!0?r===!0?o=t.isActive?!1:t.isActive!==e:o=e:o=t.isActive!==e,o!==t.isActive&&(t.isActive=o);let l=a===!0?aa.Active:aa.CustomActive,h=n===!0?aa.Default:aa.CustomInactive;t.setState(t.isActive?l:h,0),t.isActive&&(t.toFront(),t.dataItem?.component instanceof mo&&t.dataItem.component.toFront())}return t?.isActive??!1}function Ev(s,t){let e=!1;if(t instanceof Wt||t instanceof pr){let i=ve(t.uid,"actionMode");i!==void 0&&(e=i===Vt.MultiSelection||i===Vt.MultiSelectionWithCtrlKey&&(s?.event?.ctrlKey||s?.event?.metaKey))}return e}function mI(s){let t=s instanceof Wt&&s.zoomOutButton.isHover,e=s.legend.isHover,i=!1,r=!1,a=!1,n=!1;if(s instanceof Wt){i=s.xAxes.values.some(l=>l.renderer.labels.template.events.has(ke.Hit)&&l.renderer.isHover),r=s.yAxes.values.some(l=>l.renderer.labels.template.events.has(ke.Hit)&&l.renderer.isHover),a=i||r;let o=ve(s.uid,"config");Ca(o)&&(n=s.series.values.find(l=>l instanceof wr)?.isHover??!1)}return!t&&!e&&!a&&!n}function Bw(s,t){return s.values.filter(e=>{let i=!1,r=!e.isActive;if(!(e.dataItem instanceof fo)){e.isActive=!e.isActive;let a=ve(t.uid,"filterBySelection")!==!0&&r;Kn({element:e,selected:a}),i=r}return i})}function G1(s,t){let e=[],{columns:i,chart:r}=s,a=ve(r.uid,"config");if(a&&i!==void 0&&s.visible){let n=a?.series[0].x,o=s?.dataFields?.customValue??"",l=Dv(s,t),h=Ov(s,a),c=l===V.BoxPlotSeries?h?.y:bu(s),u={element:{},yAxisField:c,xAxisField:n,splitBy:o,seriesIndex:t,chartConfig:a};e=Bw(i,r).map(d=>({...u,element:d,elementDataContext:d.dataItem?.dataContext,elementIndex:d.dataItem?.index}))}return e}function Y1(s,t){let e=[];if(s.visible){let i=Zr(s)?.clones;if(i!==void 0){let{chart:r}=s,a=ve(r.uid,"config");if(a){let n=a.series[0].x??"",o=bu(s),l=s?.dataFields?.customValue??"",h={element:{},xAxisField:n,yAxisField:o,splitBy:l,seriesIndex:t,chartConfig:a};e=Bw(i,r).map(c=>({...h,element:c,elementDataContext:c.dataItem?.dataContext,elementIndex:c.dataItem?.index}))}}}return e}function jH(s){let t=[];if(s.visible){let{chart:e}=s,i=ve(e.uid,"config");if(i){let r=sI(s),a=bu(s),n={element:{},xAxisField:r,yAxisField:a,seriesIndex:0,chartConfig:i},o;t=Bw(s.slices,e).map(l=>{let h=l.dataItem?.dataContext??{};return ah(h)&&(o=Hf({groupOfSlicesDataContext:h})),{...n,element:l,elementIndex:l.dataItem?.index,elementDataContext:h}}),o!==void 0&&o.forEach((l,h)=>{t.push({...n,elementIndex:h,elementDataContext:l})})}}return t}function WH(s){let{chart:t,selectionSource:e,chartConfig:i}=s,r=!1,a=[];if($l(i)){if(r=Ca(i),a=t.series.values.filter(n=>!(n instanceof pa)),e===Pr.SelectionByClick){let n=new Set,o=a.find(l=>l instanceof wr&&l.isHover);o===void 0?a.forEach(l=>{l instanceof Pi&&(l.id.includes(Wi.Outliers)&&l.tooltip?.visible===!0||Hs(l.uid,"isBoxPlotMeanLineSeries"))&&n.add(l)}):n.add(o),a=Array.from(n)}}else a=t.series.values;return a=a.filter(n=>n.visible&&(!r||!(n instanceof wr||Hs(n.uid,"isBoxPlotOutliersSeries")))),a}async function gI(s){let{chart:t,cursorSelectionRectangle:e,multiSelect:i,selectionSource:r,hitElement:a,queryObject:n}=s,o=ve(t.uid,"config"),l=o?.series[0]?.x??"",h=[];ni(t.uid,{pendingSelectionQueries:!0});let c=[],u=!0;WH({chart:t,selectionSource:r,chartConfig:o}).forEach((d,A)=>{let p=Ov(d,o);if(o&&d.visible&&d instanceof Wr){let m=Dv(d,A)===V.BoxPlotSeries?p?.y:bu(d),f=d.dataFields?.customValue??"",g={element:{},yAxisField:m,xAxisField:l,splitBy:f,seriesIndex:A,chartConfig:o},y;d instanceof Hi||d instanceof wr?y=d.columns?.values:d instanceof pa?y=d.segments.values:d instanceof Pi&&(y=Zr(d)?.clones?.values,g.uniqueFeature=!0),y!==void 0&&(c=[...c,...y],y.forEach((x,w)=>{if(!(x.dataItem instanceof fo)){let S=x.isActive,D=x===a||QH(x,e);D&&(u=!1);let T=!1;S?D?T=r!==Pr.SelectionByClick:T=i===!0:T=D,T&&h.push({...g,element:x,elementDataContext:x.dataItem?.dataContext,elementIndex:w}),Kn({element:x,selected:T})}}))}}),u&&(h=[]),await Wf({chart:t,listSelectedElements:h,selectionSource:r,queryObject:n})}function XH(s,t){let e=async i=>{let r=i.target.cursor;if(r.xRange!==void 0){r.selection.isMeasured=!0,r.validate(),r.selection.validate();let a=Tt.spriteRectToSvg(r.selection.bbox,r.selection);if(r.selection.hide(),a.width>0||a.height>0){let n=Ev(i,s);await gI({chart:s,cursorSelectionRectangle:a,multiSelect:n,selectionSource:Pr.SelectionByRange,queryObject:t})}}r.selection.hide()};qn(s)&&s.events.on(ke.Up,async i=>{let r=i.target.cursor,a=kN(s.uid,"selectEndedCallbackDisposer");if(a!==void 0&&a.dispose(),r.xRange!==void 0&&i.event instanceof TouchEvent)await e(i);else{let n=r.events.once(ke.SelectEnded,async()=>{await e(i)});$N(s.uid,{selectEndedCallbackDisposer:n})}})}async function Cv(s){let{hitEvent:t,chart:e,queryObject:i}=s,{target:r}=t,a=ve(e.uid,"actionMode");if(e!==void 0&&mI(e)&&a!==Vt.None&&a!==Vt.Zoom&&(r instanceof Wt||t.point===void 0)){let n=t.svgPoint?{x:t.svgPoint.x,y:t.svgPoint.y,width:0,height:0}:void 0,o=Ev(t,e);await gI({chart:e,cursorSelectionRectangle:n,multiSelect:o,selectionSource:Pr.SelectionByClick,hitElement:r,queryObject:i})}}function zH(s,t){qn(s)&&(s.zoomOutButton.hoverable=!0,s.events.on(ke.Hit,async e=>await Cv({hitEvent:e,chart:s,queryObject:t})),s.events.on(ke.DoubleHit,async e=>await Cv({hitEvent:e,chart:s,queryObject:t})))}function Qf(s){let{chart:t,element:e,queryObject:i}=s;e.events.on(ke.Hit,async r=>await Cv({hitEvent:r,chart:t,queryObject:i})),e.events.on(ke.DoubleHit,async r=>await Cv({hitEvent:r,chart:t,queryObject:i}))}async function GH(s,t){let{series:e}=s;if(e.length>0){ni(s.uid,{pendingSelectionQueries:!0});let i=ve(s.uid,"config"),r=e.values.map((a,n)=>{let o=[];if(a.visible){let l=ze(i?.series,n);l===V.BarSeries?o=G1(a,n):l===V.LineSeries?o=Y1(a,n):l===V.PieSeries?o=jH(a):l===V.BoxPlotSeries&&(a instanceof wr?o=G1(a,n):a instanceof Pi&&!(a instanceof pa)&&(o=Y1(a,n)))}return o}).flat();await Wf({chart:s,listSelectedElements:r,selectionSource:Pr.ProgrammaticSelection,queryObject:t}),s instanceof pr&&s.feedLegend()}}function XC(s){if(qn(s))if(s.events.disableType(ke.Hit),s.events.disableType(ke.DoubleHit),s instanceof pr){let t=s.series.getIndex(0);t!==void 0&&(t.slices.template.clickable=!1,t.slices.template.togglable=!1,t.slices.template.events.disableType(ke.Hit),t.slices.template.events.disableType(ke.DoubleHit),t.labels.template.clickable=!1,t.labels.template.togglable=!1,t.labels.template.events.disableType(ke.Hit),t.labels.template.events.disableType(ke.DoubleHit))}else s instanceof Wt&&(s.xAxes.each(t=>wv(t,!0)),s.yAxes.each(t=>wv(t,!0)),s.events.disableType(ke.Up))}function YH(s){if(qn(s))if(s.events.enableType(ke.Hit),s.events.enableType(ke.DoubleHit),s instanceof pr){let t=s.series.getIndex(0);t!==void 0&&(t.slices.template.clickable=!0,t.slices.template.togglable=!0,t.slices.template.events.enableType(ke.Hit),t.slices.template.events.enableType(ke.DoubleHit),t.labels.template.clickable=!0,t.labels.template.togglable=!0,t.labels.template.events.enableType(ke.Hit),t.labels.template.events.enableType(ke.DoubleHit))}else s instanceof Wt&&(s.xAxes.each(t=>wv(t,!1)),s.yAxes.each(t=>wv(t,!1)),s.events.enableType(ke.Up))}function gu(s){let{element:t,stylingInfo:e,stateKey:i="default"}=s;if(t!==void 0&&e!==void 0){let r=t.states.getKey(i)?.properties??t.defaultState.properties;if(r.fill=e.pattern??e.fill,r.fillOpacity=Ne(r.fill.toString()).alpha===0?0:1,e.outline!==void 0){let{outline:a}=e;r.stroke=a.stroke,r.strokeOpacity=a.stroke.alpha===0?0:1,r.strokeDasharray=a.strokeDasharray,r.strokeLinecap=a.strokeLinecap,r.strokeWidth=a.strokeWidth}}}function Sw(s){return s.values.every(t=>t.isReady())}function jc(s,t){s.events.on(ke.Ready,()=>{let{chart:e}=s;e!==void 0&&Sw(s.chart.series)&&(HH(e),t(),xh(s.chart.htmlContainer))})}function mA(s,t){return t!=null&&t!==""?t:s}function yI(s,t){let e;switch(s){case Pn.Average:{e=t.statistics.mean;break}case Pn.ContinuousPercentile:{e=t.statistics.median;break}case Pn.Sum:{e=t.statistics.sum;break}case Pn.Minimum:{e=t.statistics.minimum;break}case Pn.Maximum:{e=t.statistics.maximum;break}case Pn.Variance:{e=t.statistics.variance;break}case Pn.DiscretePercentile:{e=t.statistics.discretePercentile;break}case Pn.NoAggregation:{e=t.statistics.noAggregation;break}case Pn.Count:default:{e=t.statistics.count;break}}return e}function Fw(s){let{config:t,fieldName:e="",utilsStrings:i}=s,r=t.series[0].query?.outStatistics?.[0].statisticType??Ub.statisticType,a=yI(r,i);return fA(i.statistics.aggregation,{statistics:a,fieldName:e})}function vI(s){let{config:t,fieldList:e,objectIdField:i,seriesIndex:r,isStacked100:a,utilsStrings:n}=s,o="",l=t.series[r].name,h=t.series[r],c=[h.y].flat()[0],u=t.axes,d=It(t.series),A=i??Eu.outStatistics.onStatisticField,p=h.query?.outStatistics?.[0].onStatisticField??A,m=Er(e,p),f=h.query?.outStatistics?.[0].statisticType??Ub.statisticType,g=yI(f,n);return d===Ee.BarAndLineNoAggregation?o=l??Er(e,c):d===Ee.BarAndLineSplitByNoAggregation?o=Er(e,c):(o=f===Pn.Count&&p===A?n.statistics.count:fA(n.statistics.aggregation,{statistics:g,fieldName:m??l}),d===Ee.BarAndLineMonoField&&!a&&(o=mA(o,u[1].title?.content?.text))),o}function bI(s,t){let{dataTooltipStyle:e,dataTooltipStyleReversed:i}=re;if(t===!0){let r=s.background.fill;if(r!==void 0){s.background.stroke=r,s.background.strokeWidth=i?.outline?.width??Number.NaN,s.background.fill=xn(i?.color);let a=s.background.fill.rgb;if(a!==void 0){let n=s.label.fill;s.label.fill=Fg(a)?n?.darkColor:n?.lightColor}}}else s.getStrokeFromObject=!0,s.getFillFromObject=!0,s.background.strokeWidth=e?.outline?.width??Number.NaN,s.background.stroke=xn(e?.outline?.color)}function KH(s){let t=s.tooltip??new Ao;t.pointerOrientation="vertical",s instanceof wr||s instanceof pa?t.label.maxWidth=re.boxPlot.boxPlotTooltipLabelWidth:t.label.maxWidth=re.tooltipWidth,t.label.wrap=!0,t.events.on(ke.Shown,e=>{let i=ve(s.chart.uid,"config");if(i!==void 0){let r=Ov(s,i),{dataTooltipReverseColor:a}=r??{};bI(e.target,a)}})}function ZH(s){s instanceof qs||s.series.each(t=>{KH(t)})}function xI(s,t){s.tooltipHTML=re.htmlEmptyContent,s.adapter.add("tooltipHTML",(e,i)=>{let r=e??"",{chart:a}=t;if(a!==void 0){let n=ve(a.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)r="";else{let l=Hs(t.uid,"barAndLineTooltipFormatter");if(l!==void 0&&t.isReady()){let{dataItem:h}=i;if(h instanceof Bs||h instanceof Xa){let c=n?.series.find(u=>u.id===t.id);if(c!==void 0){let u=_n({config:n}),d=u?h.valueX:h.valueY,A=(u?h.values.valueX.totalPercent:h.values.valueY.totalPercent)/100,p=h.dataContext??{};if(p!==void 0){let m=ve(a.uid,"rendererFieldNames"),f=Mo({value:p[c.x],dataContext:p,useRendererLabel:JA(n,m),specificField:rp(It([c]),c)}),g=so(p);g===void 0&&(g=f);let y=p[re.dateBinningRange];r=l({seriesName:t.name,xValue:f,originalXValue:g,dateBinningRange:y,statValue:d,percentValue:A})}}}}}}return Mr(r)}),s.tooltipPosition=t instanceof Pi?re.markerTooltipPosition:re.columnTooltipPosition,t.cursorTooltipEnabled=!1}function qH(s){let{isStacked100:t,series:e,statValue:i,percentValue:r,yAxisValueFormat:a,dataTooltipValueFormat:n,dataTooltipPercentFormat:o}=s,l=n;l===void 0&&(xa(a)&&a?(l=a,t&&(l.intlOptions.style="decimal")):l=Qm());let h=ve(e.chart.uid,"formatLocale"),c=i!==void 0?Rf({value:i,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:h}):"",u="";if(t&&r!==void 0){let d=o;d===void 0&&(d=zb(),d.intlOptions.minimumFractionDigits=2,d.intlOptions.maximumFractionDigits=2),u=Rf({value:r,valueFormat:d,iLocale:e.chart.language.locale,formatLocale:h})}return{formattedStatValue:c,formattedPercentValue:u}}function JH(s){let{series:t,dateRange:e,xAxisValueFormat:i}=s,r,a=ve(t.chart.uid,"timeIntervalInfo");if(e!==void 0&&e.length>0){let n={};switch(a?.unit){case tr.Second:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};break;case tr.Minute:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case tr.Hour:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case tr.Day:case tr.Week:case tr.Month:case tr.Year:n={month:"numeric",day:"numeric",year:"numeric"};break}n.timeZone=i.intlOptions.timeZone;let o=new Date(e[0]),l=new Date(e[1]);if(!Number.isNaN(o.valueOf())){let h=ve(t.chart.uid,"formatLocale"),c=yl({type:V.DateAxisFormat,iLocale:t.chart.language.locale,formatLocale:h}),u=c.format(o,n);if(r=u,!Number.isNaN(l.valueOf())){let d=c.format(l,n);d!==u&&(r=`${r} - ${d}`)}}}return r?.toString()??""}function _I(s){let{seriesConfig:t,xAxisValueFormat:e,setTimeBinningInfoWhenNotProvided:i,dataTooltipValueFormat:r,dataTooltipDateFormat:a,series:n,xValue:o,dateBinningRange:l,isTimeOnlyField:h,queryObject:c}=s,u,d=ve(n.chart.uid,"formatLocale");return qm({seriesConfig:t,xAxisValueFormatType:e?.type,setTimeBinningInfoWhenNotProvided:i,queryObject:c})&&l!==void 0&&e?.type===V.DateAxisFormat?u=JH({series:n,dateRange:l,xAxisValueFormat:e}):ro(e)?h&&typeof o=="number"?u=new Date(o).toLocaleTimeString(d):(o instanceof Date||typeof o=="number"&&Number.isFinite(o))&&(u=Rf({value:o,valueFormat:a??e,iLocale:n.chart.language.locale,formatLocale:d})):typeof o=="number"&&xa(e)?u=Rf({value:o,valueFormat:r??e,iLocale:n.chart.language.locale,formatLocale:d}):u=o,u?.toString()??""}function eQ(s){let{series:t,fieldList:e,queryObject:i,setTimeBinningInfoWhenNotProvided:r,seriesIndex:a,seriesConfig:n,utilsStrings:o}=s,{dataTooltipValueFormat:l,dataTooltipPercentFormat:h,dataTooltipDateFormat:c}=n,u=()=>"",{chart:d}=t;if(d!==void 0){let A=ve(d.uid,"config");if(A!==void 0){let{dataTooltipVisible:p}=n,m=t instanceof Pi?n.markerVisible:void 0;if(p===!1||m===!1)u=()=>"";else{let f=A.axes,g=f[0].valueFormat,y=f[1].valueFormat,x=It(A.series),w=e?.find(R=>R.name===n.x)?.type===GA.TimeOnly,S=Ua(A)===Gi.Stacked100,D=_h(Ys(i)).idField,T=Er(e,n.x),L=mA(T,f[0].title?.content.text),$=vI({config:A,fieldList:e,objectIdField:D,seriesIndex:a,utilsStrings:o,isStacked100:S}),I=Ra(d.rtl);u=R=>{let{statValue:F,percentValue:H,xValue:K,dateBinningRange:z}=R,ee=_I({seriesConfig:n,xAxisValueFormat:g,dataTooltipValueFormat:l,dataTooltipDateFormat:c,setTimeBinningInfoWhenNotProvided:r,series:t,xValue:K,dateBinningRange:z,isTimeOnlyField:w,queryObject:i}),{formattedStatValue:ie,formattedPercentValue:de}=qH({isStacked100:S,yAxisValueFormat:y,dataTooltipValueFormat:l,dataTooltipPercentFormat:h,series:t,statValue:F,percentValue:H}),G=[`<b>${L}${I} </b>${ee}`];switch(x){case Ee.BarAndLineFromFields:{G.pop();let Y=Fw({config:A,fieldName:Er(e,ee??""),utilsStrings:o});G.push(`<b>${Y}${I} </b>${ie}`);break}case Ee.BarAndLineMonoField:case Ee.BarAndLineNoAggregation:case Ee.BarAndLineMultiFields:G.push(`<b>${$}${I} </b>${ie}`);break;case Ee.BarAndLineSplitByNoAggregation:case Ee.BarAndLineSplitBy:{let Y=Vo(n.query?.where,!1),xe=hx({value:Er(e,Y),escape:!0});G.push(`<b>${xe}${I} </b>${t.name}<br /><b>${$}${I} </b>${ie}`)}break}return S&&G.push(`<b>${o.statistics.percent}${I} </b>${de}`),G.join("<br />")}}}}return u}function CI(s){let{series:t,tooltipFormatter:e}=s;Po(t.uid,{barAndLineTooltipFormatter:e??eQ(s)})}function Tw(s){let{target:t,defaultTooltipHTML:e,candleStickSeries:i,meanLineSeries:r,outliersSeries:a,tooltipCallback:n}=s,o=e,l=i??r;if(l!==void 0){let{chart:h}=l;if(h!==void 0){let c=ve(h.uid,"config"),{dataTooltipVisible:u}=c?.series[0]??{};if(u===!1)o="";else{let d=Hs(l.uid,"boxPlotTooltipFormatter");d!==void 0&&l.isReady()&&c&&(o=n({target:t,defaultTooltipHTML:e,config:c,candleStickSeries:i,meanLineSeries:r,outliersSeries:a,boxPlotTooltipFormatter:d}))}}}return Mr(o)}function tQ(s){let{target:t,defaultTooltipHTML:e,config:i,candleStickSeries:r,outliersSeries:a,boxPlotTooltipFormatter:n}=s,o=e;if(r!==void 0&&a!==void 0){let l=r.dataItems.values.find(c=>(c.categories.categoryX??c.categories.categoryY)===(t.dataItem?.categories.categoryX??t.dataItem?.categories.categoryY)),h=i.series.find(c=>c.id===r.id);if(h!==void 0){let c=l?.dataContext??{};if(c!==void 0){let u=Mo({value:c[h.x],dataContext:c,useRendererLabel:Ol(i),specificField:ht.xAxisField}),d=so(c);d===void 0&&(d=u),o=n({seriesName:a.name,xValue:u,originalXValue:d,dataContext:c})}}}return o}function iQ(s){let{target:t,defaultTooltipHTML:e,config:i,meanLineSeries:r,boxPlotTooltipFormatter:a}=s,n=e;if(r!==void 0){let o=r.dataItems.values.find(l=>(l.categories.categoryX??l.categories.categoryY)===(t.dataItem?.categories.categoryX??t.dataItem?.categories.categoryY));if(o instanceof Xa){let l=i.series.find(h=>h.id===r.id);if(l!==void 0){let h=o.dataContext??{};if(h!==void 0){let c=Mo({value:h[l.x],dataContext:h,useRendererLabel:Ol(i),specificField:ht.xAxisField}),u=so(h);u===void 0&&(u=c),n=a({seriesName:r.name,xValue:c,originalXValue:u,dataContext:h})}}}}return n}function rQ(s){let{target:t,defaultTooltipHTML:e,config:i,candleStickSeries:r,boxPlotTooltipFormatter:a}=s,n=e;if(r!==void 0){let o=t.dataItem;if(o instanceof Ac){let l=i.series.find(h=>h.id===r.id);if(l!==void 0){let h=o.dataContext??{};if(h!==void 0){let c=Mo({value:h[l.x],dataContext:h,useRendererLabel:Ol(i),specificField:ht.xAxisField}),u=so(h);u===void 0&&(u=c),n=a({seriesName:r.name,xValue:c,originalXValue:u,dataContext:h})}}}}return n}function sQ(s){s.cursorTooltipEnabled=!1,s.tooltipPosition=re.columnTooltipPosition,s.columns.template.tooltipHTML=re.htmlEmptyContent,s.columns.template.adapter.add("tooltipHTML",(t,e)=>Tw({target:e,defaultTooltipHTML:t??"",candleStickSeries:s,tooltipCallback:rQ}))}function aQ(s,t){let e=Zr(s);e!==void 0&&(e.tooltipPosition=re.markerTooltipPosition,e.tooltipHTML=re.htmlEmptyContent,s.cursorTooltipEnabled=!1,e.adapter.add("tooltipHTML",(i,r)=>Tw({target:r,defaultTooltipHTML:i??"",candleStickSeries:t,outliersSeries:s,tooltipCallback:tQ})))}function nQ(s){let t=Zr(s);t!==void 0&&(s.cursorTooltipEnabled=!1,t.tooltipPosition=re.markerTooltipPosition,t.tooltipHTML=re.htmlEmptyContent,t.adapter.add("tooltipHTML",(e,i)=>Tw({target:i,defaultTooltipHTML:e??"",meanLineSeries:s,tooltipCallback:iQ})))}function du(s){let{label:t,value:e,strongColon:i,useTable:r}=s,a=`<b>${t}${i}</b> ${e}`;return r!==!1?`<tr><td>${a}</td></tr>`:a}function oQ(s){let{dataContext:t,series:e,dataTooltipValueFormat:i,y:r,splitBy:a,utilsStrings:n,useTable:o}=s,l=i??Qm(),h=Object.values(Kt),c=Ra(e.rtl),u=o!==!1?['<tr><td colspan="2"><hr style="border-top: solid black;"></td></tr>']:[""];return h.forEach(d=>{let A=er({key:d,y:r,splitBy:a}),p=t[A];if(p!=null&&typeof p=="number"){let m=ve(e.chart.uid,"formatLocale"),f=Rf({value:p,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:m}),g="";switch(d){case Kt.Min:g=n.statistics.minimum;break;case Kt.FirstQuartile:g=n.statistics.firstQuartile;break;case Kt.Median:g=n.statistics.median;break;case Kt.ThirdQuartile:g=n.statistics.thirdQuartile;break;case Kt.Max:g=n.statistics.maximum;break;case Kt.IQR:g=n.statistics.iqr;break;case Kt.Average:g=n.statistics.mean;break;case Kt.StandardDeviation:}Lu(g)||u.push(du({label:g,value:f,strongColon:c,useTable:o}))}}),u}function lQ(s){let{series:t,fieldList:e,seriesConfig:i,utilsStrings:r,queryObject:a}=s,{dataTooltipValueFormat:n}=i,o=()=>"",{chart:l}=t;if(l!==void 0){let h=ve(l.uid,"config");if(h!==void 0){let c=h.axes,u=c?.[0].valueFormat,{showMean:d}=h,A=It(h.series),p=Vo(i.query?.where),m=Er(e,p),f=Ch({where:i.query?.where,escape:!1}),g=Er(e,i.x),y;i.x!==Hm&&(y=mA(g,c?.[0].title?.content.text));let x=Ra(l.rtl);o=w=>{let{dataContext:S,xValue:D}=w,T=_I({seriesConfig:i,xAxisValueFormat:u,series:t,xValue:D,queryObject:a}),L=[],$=T!==void 0&&!Lu(T)?Er(e,T):"",I=d===!0?[h.series[0].y].flat()[0]:[i.y].flat()[0],R=Er(e,I);switch(A){case Ee.BoxPlotMonoField:case Ee.BoxPlotMultiFields:case Ee.BoxPlotMonoFieldAndSplitBy:case Ee.BoxPlotMultiFieldsAndSplitBy:{if(T!==void 0&&!Lu(T)){let ee=A===Ee.BoxPlotMonoField?i.name??$:$;L.push(du({label:r.field,strongColon:x,value:ee}))}Yi(m)||L.push(du({label:m,strongColon:x,value:i.name??f?.toString()}));break}case Ee.BoxPlotMonoFieldAndCategory:case Ee.BoxPlotMultiFieldsAndCategory:{L.push(du({label:r.field,strongColon:x,value:i.name??R})),T!==void 0&&!Lu(T)&&L.push(du({label:y,strongColon:x,value:$}));break}case Ee.BoxPlotMonoFieldAndCategoryAndSplitBy:L.push(du({label:r.field,strongColon:x,value:R})),T!==void 0&&!Lu(T)&&L.push(du({label:y,strongColon:x,value:$})),Yi(m)||L.push(du({label:m,strongColon:x,value:i.name??f?.toString()}));break}let F=[Ee.BoxPlotMultiFieldsAndCategory],H=S[re.boxPlot.boxPlotMeanLineMarkerId]!==void 0,K=L.length>0&&!H,z=oQ({dataContext:S,series:t,dataTooltipValueFormat:n,splitBy:i.query?.where,y:F.includes(A)?[i.y].flat()[0]:void 0,utilsStrings:r,useTable:K});return K?`${L.join("<br>")}<table>${z.join("")}</table>`:`${L.join("<br>")}${z.join("<br>")}`}}}return o}function hQ(s){let{series:t,tooltipFormatter:e}=s;Po(t.uid,{boxPlotTooltipFormatter:e??lQ(s)})}function uQ(s){let t=vl(re.dataLabelInitialize);return mu(t.uid,{isDataLabel:!0}),s.bullets.push(t),cI(t),lI(V.LineSeries,t),hI(V.LineSeries,t),rw(t,s),t.html="{valueX}",t}function cQ(s){let{series:t}=s,e=iw(t,"bullets");dI({...s,dataLabel:e,defaultDataLabelFormatter:uI})}var B={Rotated:0,NonRotated:1,RTL:2,LTR:3,Stacked:4,Stacked100:5,SideBySide:6,LegendTop:7,LegendBottom:8,LegendLeft:9,LegendRight:10,DateAxis:11,ValueAxis:12,CategoryAxis:13,OrderByFieldsASC:14,OrderByFieldsDESC:15},wI=new Set([`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`]);function dQ(s,t){t!==void 0&&(t.layout!==void 0&&(s.layout=t.layout),t.width!==void 0&&(s.width=H1(t.width)),t.height!==void 0&&(s.height=H1(t.height)),t.paddingTop!==void 0&&(s.paddingTop=t.paddingTop),t.paddingBottom!==void 0&&(s.paddingBottom=t.paddingBottom))}function AQ(s){let t=!1,e=s.legend?.visible,i=s.legend?.title?.content.text,r=s.legend?.title?.visible;return t=e!==!1&&r!==!1&&i!==void 0&&i.length>0,t}function BI(s,t){let e=new Pe;return dQ(e,s),e.parent=t,e}function SI(s,t){s.disabled=t}function pQ(s,t){s.toBack()}function fQ(s){if(s instanceof qs){let{paddingTop:t,paddingRight:e,paddingBottom:i,paddingLeft:r}=re.gauge;s.padding(t,e,i,r)}else{let{paddingMinSize:t,marginMinSize:e,chartPaddingMinSize:i,chartContainer:r}=re;s.padding(i,i,i,i),s.chartAndLegendContainer.margin(e,e,e,e),s.chartAndLegendContainer.padding(t,t,t,t),s.chartContainer.margin(e,e,e,e),s.chartContainer.padding(r.paddingTop,t,t,t)}}function mQ(s,t){let e=(i,r)=>{let{chartContainer:a,chartAndLegendContainer:n}=re,o=ve(i.uid,"config");if(o!==void 0){let l=AQ(o),h=o.legend?.position;if(l)switch(h){case st.Top:i.chartAndLegendContainer.paddingTop=r.bbox.height??0,i.chartContainer.paddingBottom=a.paddingBottom??0;break;case st.Bottom:i.chartContainer.paddingBottom=r.bbox.height??0,i.chartAndLegendContainer.paddingTop=n.paddingTop??0;break;default:i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=a.paddingBottom??0;break}else i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=a.paddingBottom??0}};t.events.on(ke.PositionChanged,()=>{e(s,t)})}function Pw(s){let{iLocale:t,pieChart:e,valueIntlOptions:i,percentageIntlOptions:r,displayNumericValue:a,displayPercentage:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}=s,u=ve(e.uid,"formatLocale"),d=yl({type:V.NumberAxisFormat,iLocale:t,formatLocale:u}),A=yl({type:V.NumberAxisFormat,iLocale:t,formatLocale:u});d.numberFormat={...i},A.numberFormat={...r,style:"percent"};let p=Ra(e.rtl," ");return(m,f,g)=>{let y="";if(f!==void 0&&g!==void 0){let x=`${o??""}${d.format(f)}${l??""}`,w=`${h??""}${A.format(Math.abs(g/100))}${c??""}`;Number.isFinite(f)?a===!0&&n===!0?y=`${w}${p}(${x})`:a===!0?y=x:n===!0&&(y=w):y=""}return y}}function FI(s){let t=!1;if(s.position===st.Right||s.position===st.Left)t=!0;else{let e=s.labels.getIndex(0)?.parent?.x;e!==void 0&&(t=!s.labels.values.some(i=>i.parent?.x!==e))}return t}function gQ(s){let t=!1,e=s.labels.getIndex(0)?.parent?.y;return e!==void 0&&(t=!s.labels.values.some(i=>i.parent?.y!==e)),t}function yQ(s){s.events.on(ke.LayoutValidated,()=>{let t=FI(s),e=gQ(s),i=t||!e?bi.Right:bi.Center;s.valueLabels.template.horizontalCenter=yw(i),s.valueLabels.template.align=jL(i)})}function vQ(s){mu(s.valueLabels.template.uid,{isLegendValueLabel:!0}),s.valueLabels.template.adapter.add("htmlOutput",(t,e)=>{let i=t,r=ON(s.uid,"pieChartLegendValueLabelsFormatter");if(r!==void 0&&(i=r(e.dataItem?.values?.value?.value??0,e.dataItem?.values?.value?.percent??0)),Yi(i)&&(i=re.htmlEmptyContent),s.baseSprite instanceof jl){let a=ve(s.baseSprite.uid,"config");a?.legend?.body!==void 0&&(i=_a({textSymbol:{...a.legend.body,text:i},format:"html"}))}return Mr(i)}),s.valueLabels.template.html=re.htmlEmptyContent,yQ(s)}function bQ(s){let{legendElements:{legend:t},seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r}=s,{visible:a,body:n,displayNumericValue:o,displayPercentage:l,displayCategory:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:c,percentValueFormat:u,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:m}=e[0],f=h??re.pieChart.displayCategoryOnLegend,g=o??re.pieChart.displayNumericValueOnLegend,y=l??re.pieChart.displayPercentageOnLegend,x=r;if(r===void 0){let D=Pw({iLocale:t.language.locale,pieChart:t.baseSprite,valueIntlOptions:c?.intlOptions,percentageIntlOptions:u?.intlOptions,displayNumericValue:g,displayPercentage:y,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:m});x=(T,L)=>D("",T,L)}EN(t.uid,{pieChartLegendValueLabelsFormatter:x});let w=FI(t),S={type:V.Text,visible:a,content:{...n,type:Dt.TS,text:".",verticalAlignment:Yt.Middle,horizontalAlignment:w?bi.Right:bi.Center}};Cn({label:t.valueLabels.template,labelConfig:S,defaults:re.legendProperties.valueLabels}),t.labels.template.disabled=f===!1,t.valueLabels.template.disabled=g===!1&&y===!1}}function xQ(s){let{dataContext:t}=s.target.dataItem??{};if(t instanceof Ta){let{component:e}=t;e instanceof ws&&e.showTooltip()}}function _Q(s){let t=()=>{let e=s.children.values.find(i=>i.className==="Container");if(e?.children.length===3){let i=e.children.values.findIndex(r=>r.className==="Container");if(i!==-1){let r=i!==0?0:2,a=e.children.getIndex(r)?.clonedFrom;a!==void 0&&gs(a.uid,"isLegendValueLabel")!==!0&&s.children.each(n=>{n.className==="Container"&&n.children.swap(1,r)})}}};s.events.on(ke.Validated,t),t()}function K1(s,t){let{legendLabelReducedOpacity:e}=re.legendProperties;s!==void 0&&(s.fillOpacity=t===!1?e:1)}function kf(s){let{labels:t,seriesId:e,sliceCategory:i}=s;t.each(r=>{i!==void 0?i===r.dataItem.category&&K1(r,r.dataItem.slice.visible??!0):e===r.dataItem?.component?.id&&K1(r,r.dataItem?.component?.visible??!0)})}function Dw(s){s instanceof ws?(s.slices.template.events.on(ke.Shown,t=>{let e=t.target.dataItem.category;kf({labels:s.chart?.legend?.labels,sliceCategory:e}),kf({labels:s.chart?.legend?.valueLabels,sliceCategory:e})}),s.slices.template.events.on(ke.Hidden,t=>{let e=t.target.dataItem.category;kf({labels:s.chart?.legend?.labels,sliceCategory:e}),kf({labels:s.chart?.legend?.valueLabels,sliceCategory:e})})):s.events.on(ke.VisibilityChanged,t=>{let e=t.target.id;kf({labels:s.chart?.legend?.labels,seriesId:e})})}function TI(s){let{title:t,visible:e}=s;return t!==void 0&&e!==!1&&t?.visible!==!1}function CQ(s,t){let{legendProperties:e}=re;if(s.position===st.Bottom)s.marginTop=e.marginTop??0,s.marginBottom=0,s.dy=0;else if(s.position===st.Top)s.marginBottom=e.marginBottom??0,s.marginTop=0,s.dy=0;else if(s.marginTop=0,s.marginBottom=0,!(s.baseSprite instanceof pr)){let i=TI(t),r=t.title?.content?.font?.size??re.generalFontSize;s.dy=-(i?r:15)}}function wQ(s){let t=s.baseSprite,e;if(t!==void 0){let i=ve(t?.uid,"config");e=t?.rtl&&(i?.legend?.position===st.Top||i?.legend?.position===st.Bottom)}return e??!1}function BQ(s){let t=s.baseSprite,e="";if(t instanceof Wt){let i=ve(t.uid,"config"),r=ks(i),a=r?B.Rotated:B.NonRotated,n=Ua(i),o=B.SideBySide;n===Gi.Stacked?o=B.Stacked:n===Gi.Stacked100&&(o=B.Stacked100);let l=t.rtl?B.RTL:B.LTR,h;switch(i?.legend?.position){case st.Left:h=B.LegendLeft;break;case st.Top:h=B.LegendTop;break;case st.Bottom:h=B.LegendBottom;break;case st.Right:default:h=B.LegendRight;break}let c=r?t.yAxes.getIndex(0):t.xAxes.getIndex(0),u;c instanceof Ct?u=B.DateAxis:c instanceof He?u=B.ValueAxis:u=B.CategoryAxis;let d=i?.orderOptions?.data&&"orderBy"in i.orderOptions.data&&i.orderOptions.data.orderBy===zA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;e=`${a}-${l}-${o}-${h}-${u}-${d}`}return e}function SQ(s){let t=BQ(s);return wI.has(t)}function PI(s,t){let{legend:e,legendTitle:i}=s??{};switch(t){case V.PieSeries:e.reverseOrder=wQ(e);break;case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:e.reverseOrder=SQ(e);break}let r=e.reverseOrder===!0?e.children.length-1:0;e.children.moveValue(i,r)}function FQ(s){if(s.visible){let t=ve(s.chart.uid,"config")?.series.find(e=>e.id===s.id);if(t!==void 0&&ze([t])===V.LineSeries){let{markerVisible:e}=t;e!==!1&&s.bulletsContainer.show()}}}function TQ(s,t){let e=s.target.dataItem,i=s.target.isActive;if(e?.dataContext!==void 0){let{dataContext:r}=e,a={visible:i};if(r instanceof Ta)ve(t.uid,"isNonAggregatedChart")===!0?a.sliceData=r.dataContext:a.sliceId=r.category;else if(r instanceof wr){let o=r.id,l=jf(t,o);if(l!==void 0){let d=ve(t.uid,"config"),A=Iw(d?.showOutliers,i),p=Zr(l);p!==void 0&&(p.disabled=!A),Ri(l,A)}let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Mv(t,o);h!==void 0&&Ri(h,i),c!==void 0&&Ri(c,i),u!==void 0&&Ri(u,i),a.seriesId=r.id}else a.seriesId=r.id;let n=r instanceof Ta?r.component:r;(n instanceof Wr||n instanceof ws)&&n.events.once(ke.Validated,()=>{n instanceof Wr&&(VI(n),n.events.dispatchImmediately(ke.Validated,{type:ke.Validated,target:n}));let o=n instanceof ws,l=ve(t.uid,"currentSelectionDataItems"),h=l!==void 0&&l.length>0,c=ve(t.uid,"actionMode")??re.actionMode,u;n instanceof Hi?u=n.columns:o?u=n.slices:n instanceof Pi&&(FQ(n),u=Zr(n)?.clones),u?.each(d=>{d.dataItem instanceof fo||(Kn({element:d,selected:d.isActive,useNativeState:o,backToDefaultState:!h}),o&&c===Vt.None&&(d.clickable=!1))})}),Jb(a,t.htmlContainer)}}function PQ(s){let{legendProperties:t,legendProperties:e}=re;s.adapter.add("paddingRight",()=>s.scrollbar.visible?e.legendPaddingRightWithScrollbarVisible:t.paddingRight),s.adapter.add("paddingLeft",()=>t.paddingLeft),s.adapter.add("paddingTop",()=>t.paddingTop),s.adapter.add("paddingBottom",()=>t.paddingBottom)}function DQ(s){s.scrollable=!0}function LQ(s){let t=vl(void 0,s);return t.adapter.add("paddingTop",e=>{let i=e,r=t.bbox.height;return r>0&&(i=-r),i}),t.adapter.add("x",e=>{let i=e,{marginLeft:r,marginRight:a}=re.legendProperties.legendTitle;switch(ve(s.baseSprite.uid,"config")?.legend?.title?.content?.horizontalAlignment){case bi.Left:i=t.measuredWidth+(r??0);break;case bi.Right:i=s.measuredWidth-t.measuredWidth-(a??0);break;case bi.Center:case bi.Justify:default:i=s.measuredWidth/2;break}return i}),t.adapter.add("disabled",e=>(e===!1&&t.validate(),e)),t}function IQ(s){let{legendConfig:t,legendTitle:e}=s,{title:i,position:r}=t,{legendTitle:a}=re.legendProperties,n=TI(t);if(i!==void 0){let o={...i,visible:n};Cn({label:e,labelConfig:o,defaults:a}),e.marginLeft=a.marginLeft??0}r===st.Top||r===st.Bottom?(e.maxWidth=Number.NaN,e.isMeasured=!1):(e.maxWidth=a.maxWidth??Number.NaN,e.marginTop=n?e.bbox?.height??i?.content?.font?.size??re.generalFontSize:0,e.isMeasured=!0)}function kQ(s){let t=re.legendProperties;s.labels.template=vl(t.legendLabels),s.valueLabels.template=vl(t.legendLabels),s.markers.template.width=t.legendMarkersSize,s.markers.template.height=t.legendMarkersSize,s.labels.template.adapter.add("wrap",()=>!0),s.labels.template.adapter.add("maxWidth",e=>{let i=e,r;if(s.baseSprite instanceof pr&&(r=ve(s.baseSprite.uid,"config")?.legend?.labelMaxWidth),s.position===st.Right||s.position===st.Left)i=r??re.legendProperties.legendLabels.maxWidth;else if(r!==void 0)i=r;else{let a=0;s.valueLabels.template.disabled||s.valueLabels.each(n=>{a=Math.max(a,n.measuredWidth)}),i=s.measuredWidth-a-45}return i}),s.labels.template.adapter.add("textOutput",(e,i)=>{let r=i.dataItem?.label?.currentText,a,n=ve(s.baseSprite.uid,"config");if(n!==void 0){let{series:o}=n;if(ze(o)===V.PieSeries){let l=It(o)===Ee.PieFromFields?io:o[0].x,h=i.dataItem?.dataContext?.[l];typeof h=="string"?a=h:h&&typeof h!="object"&&(a=h.toString())}else i.dataItem?.component instanceof mo&&(a=i.dataItem.component.name)}return(a!==void 0&&!Yi(a)?zm(a):a)??r}),s.valueLabels.template.adapter.add("maxWidth",e=>{let i=e,r;return s.baseSprite instanceof pr&&(r=ve(s.baseSprite.uid,"config")?.legend?.valueLabelMaxWidth),s.position===st.Right||s.position===st.Left?i=r??re.legendProperties.valueLabels.maxWidth:i=r??Number.NaN,i})}function $Q(s,t){s.itemContainers.template.events.on(ke.Hit,e=>TQ(e,t)),t instanceof pr&&s.itemContainers.template.events.on(ke.Over,e=>xQ(e))}function OQ(s){s.itemContainers.template.reverseOrder=s.rtl}function fv(s,t){s.adapter.keys().includes(t)||s.adapter.add(t,e=>{let i=e,r=s.dataItem?.dataContext;if(r!==void 0){let a=r instanceof Ta?r.component?.chart:r.chart;if(a!==void 0){let n=ve(a.uid,"config"),{rectangleMarkerRadius:o,roundedMarkerRadius:l}=re.legendProperties;i=n?.legend?.roundMarkers===!0?l:o}}return i})}function Z1(s){s.markers.each(t=>{let e=t.children.getIndex(0);e instanceof jr&&(fv(e,"cornerRadiusBottomLeft"),fv(e,"cornerRadiusBottomRight"),fv(e,"cornerRadiusTopLeft"),fv(e,"cornerRadiusTopRight"),e.validate())})}function EQ(s){s.markers.template.events.on(ke.Inited,()=>{Z1(s)}),s.events.once(ke.Validated,()=>{Z1(s)})}function MQ(s){let{legendElements:{legend:t},seriesConfig:e,webChartLegend:i}=s,{visible:r,body:a}=i??{},n=ze(e),o={type:V.Text,visible:r,content:{...a,type:Dt.TS,text:" "}};Cn({label:t.labels.template,labelConfig:o,defaults:re.legendProperties.legendLabels}),t.labels.template.valign=Yt.Middle,t.valueLabels.template.valign=Yt.Middle,n===V.PieSeries&&bQ(s),t.valueLabels.template.width=Number.NaN}function RQ(s,t){t.chartContainer.events.on(ke.SizeChanged,zs(()=>{let e=ve(t.uid,"config")?.legend?.maxHeight??Number.NaN;Number.isFinite(e)||(s.position===st.Top||s.position===st.Bottom?e=re.legendProperties.maxHeight:e=t instanceof pr?t.chartContainer.measuredHeight:t.seriesContainer.measuredHeight),s.maxHeight=e,s.invalidateLayout()}),re.debounceTime)}function UQ(s,t){let{position:e}=t;e===st.Top||e===st.Bottom?s.contentAlign=bi.Center:s.contentAlign="none"}function VQ(s,t){let{legend:e}=s;e.events.on(ke.DataItemsValidated,()=>{e.dataItems.length>0&&PI(s,t)})}function NQ(s,t){t===st.Right||t===st.Left?s.width=Number.NaN:s.maxWidth=Number.MAX_SAFE_INTEGER}function DI(s,t){let e=ai.pointer;t===!0?(s.itemContainers.template.clickable=!1,s.itemContainers.template.focusable=!1,e=ai.default):(s.itemContainers.template.clickable=!0,s.itemContainers.template.focusable=!0),s.itemContainers.values.forEach(i=>{i.cursorOverStyle=e})}function HQ(s,t){let e=new rc;s.legend=e,DQ(e);let i=LQ(e);return kQ(e),vQ(e),$Q(e,s),OQ(e),PQ(e),VQ({legend:e,legendTitle:i},ze(t)),RQ(e,s),mQ(s,i),_Q(e),s.legend.events.on(ke.ChildAdded,()=>{let r=ve(s.uid,"options");DI(e,r?.disableTogglingLegendItems)}),{legend:e,legendTitle:i}}function Lw(s){let{legendElements:t,seriesConfig:e,webChartLegend:i}=s,{legend:r,legendTitle:a}=t,n=r.baseSprite,o=(n===void 0?!0:ux(e))&&i?.visible!==!1;if(n&&i&&o){let{position:l=re.legendProperties.position}=i;Ri(r,!0),IQ({legendConfig:i,legendTitle:a}),EQ(r),MQ(s),UQ(r,i),PI(t,ze(e)),r.position=l,NQ(r,l),CQ(r,i),DI(r,ve(n.uid,"options")?.disableTogglingLegendItems)}else r.position=st.Right,r.width=0,Ri(r,!1)}function QQ(s){let{chart:t,chartConfig:e,seriesIndex:i,axisList:r=[],queryObject:a,hideLoaderHandle:n,selectionTheme:o,ignoreSmoothRenderingLimit:l}=s,h=e.series.length,{rotated:c}=e,u=e.series[i],{y:d,name:A,id:p,assignToSecondValueAxis:m}=u,f=new Pi;f.id=p,jc(f,n),xA(f,A);let g,y;c!==!0?(g=r[0],y=m===!0&&r[2]?r[2]:r[1]):(g=m===!0&&r[2]?r[2]:r[0],y=r[1]),g!==void 0&&(f.xAxis=g),y!==void 0&&(f.yAxis=y);let x=_n({chart:t}),w=It(e.series),S=w===Ee.BarAndLineSplitByNoAggregation?`${d.toString()}_${Ch({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:[d].flat()[0];x?f.dataFields.valueX=S:f.dataFields.valueY=S;let D=x?r[1]:r[0];if(D!==void 0){let $=AI(D,x);f.dataFields[$]=re.xAxisField}f.dataFields.customValue=u?.query?.where;let T=Ys(a);LI({series:f,seriesConfig:u,seriesIndex:i,chartSubType:w,colorMatch:e.colorMatch===!0,rendererType:Gm(e.chartRenderer,T?.renderer)}),II(u,f);let L=Cw({chart:t,lineSeries:f,applyPropertiesToClones:!1});return xI(L,f),uQ(f),Qc({element:L,customSelectionTheme:o}),Qf({chart:t,element:L,queryObject:a}),MH({chart:t,numberOfChartSeries:h,series:f,seriesType:V.LineSeries,marker:L,ignoreSmoothRenderingLimit:l}),Dw(f),Hc(f),f}function jQ(s){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:a,lineColor:n,rendererType:o}=s,l=Zr(t),h=!1,c;if(l!==void 0){r.markerVisible!==!1&&r.visible!==!1?t.bulletsContainer.show():t.bulletsContainer.hide();let{markerSymbol:u}=r;u===void 0&&(u=Gb(),u.color=n),a?u.color=n:u.color??=n;let d=new Set,A;_v({element:l,markerSymbol:u}),l.clones.each(p=>{if(p.dataItem instanceof fo)_v({element:p,markerSymbol:u}),p.states.getKey(aa.CustomActive)?.reset(),p.states.getKey(aa.CustomInactive)?.reset();else{let m=p.dataItem?.dataContext,f=on({seriesConfig:r,dataItem:m,chartSubType:i,colorMatch:a,rendererType:o}),g=Mc({seriesConfig:r,seriesIndex:e,seriesSymbol:u,element:p,colorMatch:a,rendererSymbol:f});c=g.symbolWithColorInfo,A=g.stylingInfo,gu({element:p,stylingInfo:A}),d.add(JSON.stringify(A))}}),h=d.size>1,h||gu({element:l,stylingInfo:A})}return h?void 0:c}function WQ(s){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:a}=s,n;return t.dataItems?.values.every(o=>{let l=!0,h=o.dataContext;return n=on({seriesConfig:e,dataItem:h,chartSubType:i,colorMatch:r,rendererType:a}),n!==void 0&&(l=!1),l}),n}function LI(s){let{series:t,seriesIndex:e,seriesConfig:i,chartSubType:r,colorMatch:a,rendererType:n}=s,o=t,l=WQ({series:o,seriesConfig:i,chartSubType:r,colorMatch:a,rendererType:n}),h=Mc({seriesConfig:i,seriesIndex:e,seriesSymbol:i.lineSymbol??Yb(e),element:o,colorMatch:a,rendererSymbol:l});return Ri(o,i.visible),h.symbolWithColorInfo}function II(s,t){s.showArea===!0?s.areaColor!==void 0?(t.fill=xn(s.areaColor),t.fillOpacity=t.fill.alpha===0?0:1):(t.fill=Ne(t.stroke.hex,1),t.fillOpacity=re.lineSeries.areaOpacity):t.fillOpacity=0}function kI(s){let{series:t,seriesIndexMapper:e,seriesSymbolMapForEvent:i,seriesIndex:r,colorMatch:a,rendererType:n}=s,o=s.seriesConfig,l=ve(t.chart.uid,"config"),h=l?.series.length??0,c=It(l?.series);Ri(t,o.visible);let u=LI({series:t,seriesConfig:o,seriesIndex:r,chartSubType:c,colorMatch:a,rendererType:n}),d=jQ({series:t,seriesIndex:r,seriesConfig:o,chartSubType:c,colorMatch:a,lineColor:u.color,rendererType:n});i.set(e.get(o.id)??r,{lineSymbol:u,markerSymbol:d}),II(o,t),i.size===h&&(nn({data:i,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:kv(t.chart)}),t.chart.feedLegend())}function XQ(s){let{seriesConfig:t,lineSeries:e,isRotated:i}=s;t.lineSmoothed===!0?e.smoothing=i?Vb.MonotoneY:Vb.MonotoneX:e.smoothing=re.lineSeries.lineSmoothedKind}function q1(s,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;s.connect=e!==!1&&r!==Nb.Null}function zQ(s){let{seriesConfig:t,series:e,axes:i,rotationChanged:r,seriesIndex:a,fieldList:n,stackedType:o,queryObject:l,options:h,utilsStrings:c}=s,{visible:u,name:d}=t,A=i[1].valueFormat,p=ve(e.chart.uid,"config"),m=_n({config:p}),f=It(p?.series);e.id=t.id,Ri(e,u);let g=d,y=e.dataFields?.customValue??"";(f===Ee.BarAndLineSplitBy||f===Ee.BarAndLineSplitByNoAggregation)&&(g=Zm({queryObject:l,fieldName:Vo(y),fieldValue:g})??g),xA(e,g),q1(e,t),ww({series:e,seriesConfig:t,rotationChanged:r,stackedType:o,isRotated:m}),q1(e,t),$v({styleCallback:kI,callbackProps:s,series:e,seriesConfig:t,onReadyEvent:!0}),XQ({seriesConfig:t,lineSeries:e,isRotated:m}),CI({series:e,seriesConfig:t,fieldList:n,queryObject:l,seriesIndex:a,setTimeBinningInfoWhenNotProvided:h?.setTimeBinningInfoWhenNotProvided,utilsStrings:c,tooltipFormatter:h?.tooltipFormatter}),cQ({series:e,seriesType:V.LineSeries,stackedType:o,dataLabelsConfig:t.dataLabels,yAxisValueFormat:A,customDataLabelFormatter:h?.dataLabelFormatter})}function Mv(s,t){let e=s.series.values.find(a=>a.id===`${t}_${Wi.Top}`),i=s.series.values.find(a=>a.id===`${t}_${Wi.Median}`),r=s.series.values.find(a=>a.id===`${t}_${Wi.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function jf(s,t){return s.series.values.find(e=>e.id===`${t}_${Wi.Outliers}`)}function Iw(s,t){return(s??re.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function GQ(s){let{chart:t,axisList:e=[],chartConfig:i,seriesIndex:r,hideLoaderHandle:a,selectionTheme:n,queryObject:o}=s,l=Ca(i),h=i.series[r],[c,u]=e,d=new wr;return d.hoverable=!0,jc(d,a),l||(Qc({element:d.columns.template,customSelectionTheme:n}),Qf({chart:t,element:d.columns.template,queryObject:o})),d.id=h.id,c!==void 0&&(d.xAxis=c),u!==void 0&&(d.yAxis=u),d.simplifiedProcessing=!0,d.columns.template.applyOnClones=!0,d.riseFromOpenState.reset(),d.riseFromPreviousState.reset(),d.dropFromOpenState.reset(),d.dropFromPreviousState.reset(),xA(d,h.name),Hc(d),d}function zC(s){let{axisList:t=[],chartConfig:e,seriesIndex:i,type:r,hideLoaderHandle:a,selectionTheme:n}=s,o=e.series[i],[l,h]=t,c=new pa;return c.hoverable=!0,jc(c,a),c.id=`${o.id}_${r}`,l!==void 0&&(c.xAxis=l),h!==void 0&&(c.yAxis=h),c.noRisers=!0,c.simplifiedProcessing=!0,Qc({element:c.segments.template,customSelectionTheme:n}),c.hiddenInLegend=!0,Hc(c),c}function YQ(s){let{chart:t,axisList:e=[],chartConfig:i,hideLoaderHandle:r,seriesIndex:a,selectionTheme:n,queryObject:o}=s,l=i.series[a],h=Ca(i),[c,u]=e,d=new Pi;Po(d.uid,{isBoxPlotOutliersSeries:!0}),jc(d,r),d.id=`${l.id}_${Wi.Outliers}`,c!==void 0&&(d.xAxis=c),u!==void 0&&(d.yAxis=u),d.simplifiedProcessing=!0,d.hiddenInLegend=!0,d.strokeOpacity=0;let A=Cw({chart:t,lineSeries:d});return h||(Qc({element:A,customSelectionTheme:n}),Qf({chart:t,element:A,queryObject:o})),Hc(d),d}function _A(s){let{chartConfig:t,seriesConfig:e,meanLineSeries:i,candleStickSeries:r,topStepLineSeries:a,medianStepLineSeries:n,bottomStepLineSeries:o,outliersSeries:l,creation:h=!1,rotationChanged:c,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:d}=s,{x:A,y:p}=e,m=h||c===!0||d===!0,f=m||u===!0,g=m,y=m;if(t!==void 0){let{showOutliers:x,standardizeValues:w,showMean:S}=t,D=_n({config:t});if(i instanceof Pi&&y){let F=It(t.series),H=e?.query?.where,K=er({y:F===Ee.BoxPlotMultiFieldsAndCategory?p:void 0,chartSubType:F,splitBy:H,showOutliers:x,standardizeValues:pd(F)?w:!1,key:Kt.Average});D?(i.dataFields.valueX=K,i.dataFields.categoryY=A):(i.dataFields.valueY=K,i.dataFields.categoryX=A),i.dataFields.customValue=H}let T=tg(t),L=It(T.series),$=S===!0?void 0:e?.query?.where,I={y:L===Ee.BoxPlotMultiFieldsAndCategory?p:void 0,chartSubType:L,splitBy:$,showOutliers:x,standardizeValues:pd(L)?w:!1};if(f){if(r instanceof wr){let F=er({...I,key:Kt.Min}),H=er({...I,key:Kt.FirstQuartile}),K=er({...I,key:Kt.Max}),z=er({...I,key:Kt.ThirdQuartile});D?(r.dataFields.lowValueX=F,r.dataFields.openValueX=H,r.dataFields.highValueX=K,r.dataFields.valueX=z,r.dataFields.categoryY=A):(r.dataFields.lowValueY=F,r.dataFields.openValueY=H,r.dataFields.highValueY=K,r.dataFields.valueY=z,r.dataFields.categoryX=A),r.dataFields.customValue=$}if(a instanceof pa&&n instanceof pa&&o instanceof pa){let F=er({key:Kt.Max,...I}),H=er({key:Kt.Median,...I}),K=er({key:Kt.Min,...I});D?(a.dataFields.valueX=F,n.dataFields.valueX=H,o.dataFields.valueX=K,a.dataFields.categoryY=A,n.dataFields.categoryY=A,o.dataFields.categoryY=A):(a.dataFields.valueY=F,n.dataFields.valueY=H,o.dataFields.valueY=K,a.dataFields.categoryX=A,n.dataFields.categoryX=A,o.dataFields.categoryX=A),a.dataFields.customValue=$,o.dataFields.customValue=$,n.dataFields.customValue=$}}if(l instanceof Pi&&g){let F=er({...I,key:Kt.Outlier});D?(l.dataFields.valueX=F,l.dataFields.categoryY=A):(l.dataFields.valueY=F,l.dataFields.categoryX=A),l.dataFields.customValue=$,l.invalidateRawData()}let R=i?.chart??r?.chart;R!==void 0&&(f||y)&&R.invalidateRawData()}}function KQ(s){let{chart:t,axisList:e=[],chartConfig:i,hideLoaderHandle:r,seriesIndex:a,selectionTheme:n,queryObject:o}=s,l=i.series[a],[h,c]=e,u=new Pi;Po(u.uid,{isBoxPlotMeanLineSeries:!0}),jc(u,r),u.id=l.id,h!==void 0&&(u.xAxis=h),c!==void 0&&(u.yAxis=c),u.simplifiedProcessing=!0;let d=Cw({chart:t,lineSeries:u});return Qc({element:d,customSelectionTheme:n}),Qf({chart:t,element:d,queryObject:o}),Hc(u),nQ(u),_A({chartConfig:i,seriesConfig:l,meanLineSeries:u,creation:!0}),u}function ZQ(s){let{chartConfig:t,seriesIndex:e}=s,i=t.series[e],r=ze([i]),a=[];if(r===V.BoxPlotSeries){let n=GQ(s),o=zC({...s,type:Wi.Top}),l=zC({...s,type:Wi.Median}),h=zC({...s,type:Wi.Bottom}),c=YQ(s);sQ(n),aQ(c,n),_A({chartConfig:t,seriesConfig:i,candleStickSeries:n,topStepLineSeries:o,medianStepLineSeries:l,bottomStepLineSeries:h,outliersSeries:c,creation:!0}),a.push(n,o,l,h,c)}else if(r===V.LineSeries){let n=KQ(s);a.push(n)}return a}function qQ(s){let{candleStickSeries:t,seriesConfig:e,stylingInfo:i,chartSubType:r,colorMatch:a,rendererType:n}=s;if(i!==void 0){let o={...i},l=nI({data:t.chart.data,colorMatch:a,chartSubType:r,rendererType:n});i?.outline!==void 0&&l&&(o.outline.stroke=Ec(re.boxPlot.boxPlotWhiskersColor));let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Mv(t.chart,t.id);if(h!==void 0&&c!==void 0&&u!==void 0&&o.outline!==void 0){o.outline.strokeWidth=re.boxPlot.boxPlotLineWidth,AA(h,o.outline),AA(c,o.outline),AA(u,o.outline);let d=e.visible!==!1;Ri(h,d),Ri(c,d),Ri(u,d)}}}function JQ(s){let{candleStickSeries:t,seriesConfig:e,showOutliers:i,seriesSymbol:r}=s;if(r!==void 0){let a=jf(t.chart,t.id);if(a!==void 0){let n=Zr(a);if(n!==void 0){let o=Iw(i,e.visible),l={type:Dt.SMS,style:YA.Circle,color:r.color,size:re.boxPlot.boxPlotOutliersSize};n.clones.each(h=>{let c=t.dataItems.values.find(u=>(u.categories.categoryX??u.categories.categoryY)===(h.dataItem?.categories.categoryX??h.dataItem?.categories.categoryY))?.column.fill;_v({element:h,markerSymbol:{...l,color:NL(c)??l.color},visible:o})})}}}}function e2(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:a,colorMatch:n,showMean:o,rendererType:l}=s,h,c,u,d=new Set,A=!1,p=e.fillSymbol??jm(i);if(t.columns.length===0?(u=Mc({seriesConfig:e,seriesIndex:i,seriesSymbol:p,element:new Oe,colorMatch:n,isChartFillSymbol:!0}),h=u.symbolWithColorInfo,c=u.stylingInfo):t.columns.each(m=>{u=Mc({seriesConfig:e,seriesIndex:i,seriesSymbol:p,element:m,colorMatch:n,isChartFillSymbol:!0,rendererSymbol:o?void 0:on({dataItem:m.dataItem?.dataContext,seriesConfig:e,chartSubType:a,colorMatch:n,rendererType:l})}),h=u.symbolWithColorInfo,c=u.stylingInfo,d.add(JSON.stringify(h))}),A=d.size>1,r>1){let m=t.legendDataItem?.marker.children.getIndex(0);m!==void 0?gu({element:m,stylingInfo:c}):t.chart.legend.events.once(ke.Validated,()=>{gu({element:t.legendDataItem?.marker.children.getIndex(0),stylingInfo:c}),t.chart.legend.invalidate()})}return{multipleSymbolsForOneSeries:A,seriesSymbol:h,stylingInfo:c}}function t2(s){let{series:t,showOutliers:e,colorMatch:i,seriesIndex:r,seriesIndexMapper:a,seriesSymbolMapForEvent:n,seriesConfig:o,rendererType:l,queryObject:h}=s,c=ve(t.chart.uid,"config"),u=Ca(c),d=c?.series.length??0,A=It(c?.series),p=!1,m;if(t instanceof wr&&o.type===V.BoxPlotSeries){let f=e2({series:t,seriesConfig:o,seriesIndex:r,numberOfSeries:d,chartSubType:A,colorMatch:i,showMean:u,rendererType:l}),{stylingInfo:g}=f;({multipleSymbolsForOneSeries:p,seriesSymbol:m}=f),n.set(a.get(o.id)??r,p?void 0:{fillSymbol:m??o.fillSymbol}),qQ({candleStickSeries:t,seriesConfig:o,colorMatch:i,stylingInfo:g,chartSubType:A,rendererType:l}),JQ({candleStickSeries:t,seriesConfig:o,showOutliers:e,seriesSymbol:m})}else t instanceof Pi&&o.type===V.LineSeries&&kI({series:t,seriesConfig:o,seriesIndexMapper:a,seriesSymbolMapForEvent:n,seriesIndex:r,colorMatch:i,rendererType:l});n.size===d&&nn({data:n,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:kv(t.chart)})}function i2(s){let{numberOfSeries:t,chart:e,showMean:i}=s,r=_n({chart:e}),a=r?e.yAxes.getIndex(0)?.renderer:e.xAxes.getIndex(0)?.renderer;if(a!==void 0){let{cellStartLocation:n,cellEndLocation:o}=a,l=n/(i===!0?1:t),h=e.series.values.filter(c=>c instanceof wr);h.forEach((c,u)=>{let d=n+u/h.length*(o-n)+l,A=n+(u+1)/h.length*(o-n)-l,{topStepLineSeries:p,medianStepLineSeries:m,bottomStepLineSeries:f}=Mv(e,c.id);p!==void 0&&(p.startLocation=d,p.endLocation=A),m!==void 0&&(m.startLocation=d,m.endLocation=A),f!==void 0&&(f.startLocation=d,f.endLocation=A);let g=jf(e,c.id);if(g!==void 0){let y=(d+A)/2;r?g.dataItems.template.locations.categoryY=y:g.dataItems.template.locations.categoryX=y}})}}function r2(s){let{outliersSeries:t,chartData:e,dataWasUpdated:i,rotationChanged:r,seriesReordered:a}=s;(r===!0||i===!0||a===!0)&&(t.data=e?.outliers??[])}function s2(s){let{meanLineSeries:t,chartData:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesReordered:n}=s;(i===!0||a===!0||r===!0||n===!0)&&(t.data=e?.meanLines??[],t.invalidateData())}function a2(s){let{chart:t,chartConfig:e,seriesConfig:i,chartData:r,candleStickSeriesId:a,showOutliers:n,dataWasUpdated:o,rotationChanged:l,seriesReordered:h,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:u}=s,d=jf(t,a);if(d!==void 0){let A=Zr(d);if(A!==void 0){let p=Iw(n,i.visible);A.disabled=!p,r2({outliersSeries:d,chartData:r,dataWasUpdated:o,rotationChanged:l,seriesReordered:h})}_A({chartConfig:e,seriesConfig:i,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:u,rotationChanged:l,outliersSeries:d})}}function n2(s){let{meanLineSeries:t,seriesConfig:e,chartData:i,dataWasUpdated:r,seriesReordered:a,sortChanged:n,rotationChanged:o,chartConfig:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c}=s;xA(t,e?.name),_A({chartConfig:l,seriesConfig:e,meanLineSeries:t,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,rotationChanged:o}),s2({meanLineSeries:t,chartData:i,dataWasUpdated:r,seriesReordered:a,sortChanged:n,rotationChanged:o})}function o2(s){let{series:t,chartConfig:e,seriesConfig:i,rotationChanged:r,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n}=s;xA(t,i?.name),t.hiddenInLegend=Ca(e),_A({chartConfig:e,seriesConfig:i,candleStickSeries:t,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:r})}function l2(s){let{chart:t,chartConfig:e,seriesConfig:i,candleStickSeriesId:r,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:o}=s,l=i.visible!==!1,{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Mv(t,r);h!==void 0&&Ri(h,l),c!==void 0&&Ri(c,l),u!==void 0&&Ri(u,l),_A({chartConfig:e,seriesConfig:i,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:o,topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u})}function h2(s){let{chart:t,series:e,chartData:i,utilsStrings:r,dataWasUpdated:a,sortChanged:n,seriesReordered:o,fieldList:l,outliersVisibilityChanged:h,showMean:c,seriesConfig:u,showOutliers:d,standardizeValuesVisibilityChanged:A,rotationChanged:p,options:m,queryObject:f}=s,{tooltipFormatter:g}=m??{};i2({numberOfSeries:s.numberOfSeries,chart:t,showMean:c});let y=ve(t.uid,"config");if(y!==void 0){if(e instanceof wr&&u.type===V.BoxPlotSeries){let{id:x}=e;o2({series:e,chartConfig:y,seriesConfig:u,rotationChanged:p,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A}),l2({chart:t,chartConfig:y,seriesConfig:u,candleStickSeriesId:x,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A,rotationChanged:p}),a2({chart:t,chartConfig:y,seriesConfig:u,chartData:i,showOutliers:d,candleStickSeriesId:x,dataWasUpdated:a,rotationChanged:p,seriesReordered:o,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A})}else e instanceof Pi&&u.type===V.LineSeries&&n2({chartConfig:y,chartData:i,meanLineSeries:e,seriesConfig:u,dataWasUpdated:a,seriesReordered:o,sortChanged:n,rotationChanged:p,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A});$v({styleCallback:t2,callbackProps:s,series:e,seriesConfig:u,onReadyEvent:!0}),hQ({series:e,seriesConfig:u,fieldList:l,tooltipFormatter:g,utilsStrings:r,queryObject:f})}}function u2(s){let t=s.series.getIndex(0);if(t!==void 0){let e=!1;t.slices.each(i=>{i.isActive&&(e=!0),Kn({element:i,selected:!1,backToDefaultState:!0})}),e&&s.feedLegend()}}function c2(s,t=!0){let e;s.series.each((i,r)=>{if(!t||i.visible){e=Dv(i,r);let a=[];if(e===V.BarSeries)a=i.columns?.values;else if(e===V.LineSeries)a=Zr(i)?.clones?.values;else if(e===V.BoxPlotSeries){if(i instanceof wr)a.push(...i.columns.values);else if(i instanceof pa)a.push(...i.segments.values);else if(i instanceof Pi){let n=Zr(i)?.clones?.values;n!==void 0&&a.push(...n)}}a!==void 0&&a.forEach(n=>{Kn({element:n,selected:!1,backToDefaultState:!0})})}})}function CA(s){let{chart:t,selectionSource:e,clearOnlyVisibleSeries:i,disposeStyleAndSelection:r}=s,a=ve(t.uid,"currentSelectionDataItems");r!==!1&&pI(t,"updateSelectionCallbackDisposer"),ni(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),qn(t)&&(t instanceof Wt?c2(t,i??!0):t instanceof pr&&u2(t)),a&&Mu({data:{selectionSource:e??Pr.ClearSelection},htmlContainer:t.htmlContainer})}function d2(s){dx(),ex(s.htmlContainer),CA({chart:s})}function A2(s){let{chart:t,chartType:e,showMean:i}=s;return t.series.values.filter(r=>e!==V.BoxPlotSeries||!i&&r instanceof wr||i&&Hs(r.uid,"isBoxPlotMeanLineSeries")).every(r=>Hs(r.uid,"isSelectionApplied")===!0)}function p2(s){s.series.each(t=>Po(t.uid,{isSelectionApplied:void 0}))}function $I(s,t){let e=ve(s.uid,"actionMode");if((e===Vt.MonoSelection||e===Vt.None)&&t.length>1)CA({chart:s});else{let i=s instanceof pr;t.forEach(r=>{Kn({element:r,useNativeState:i,selected:!0})})}}function f2(s){let{chart:t,chartConfig:e,series:i,options:r,elementsToApplySelectionTo:a,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:h,queryObject:c}=s,u=ze(e.series),d=It(e.series),A=Ro(e),p=[],m=[],f=[],g=No(e.series),y=i instanceof Wr?i.dataFields?.customValue??"":"";return a.forEach(x=>{if(!(x instanceof fo)){let w=x.dataItem?.dataContext;if(w!==void 0&&(u===V.BoxPlotSeries&&w[re.boxPlot.boxPlotOutlierId]!==!0||d===Ee.BarAndLineMultiFields)&&(w=sh({dataContext:w,yAxisField:h,yList:g,xAxisField:l,splitBy:y,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Uo(c)})),Lv({elementDataContext:w,options:r,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:h,chartType:u,splitBy:y,chartSubType:d,showOutliers:A}))if(p.push(x),x.dataItem!==void 0&&m.push(x.dataItem.index),x?.dataItem instanceof Xa&&w!==void 0)f.push(w);else{let S=new Set;u===V.PieSeries&&ah(w)?(Hf({groupOfSlicesDataContext:w})??[]).forEach(D=>{n.forEach(T=>{_w({layerOidField:o,sliceDataContext:D,selectionDataContext:T,xAxisField:l})&&S.add(D)})}):S.add(w),Array.from(S)?.forEach(D=>{let T=sh({dataContext:D,yAxisField:h,yList:g,xAxisField:l,splitBy:y,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Uo(c)});T!==void 0&&f.push(T)})}else Kn({element:x,useNativeState:t instanceof pr,selected:!1})}}),$I(t,p),{selectedIndexes:m,newSelectionDataItems:f}}function m2(s){let{chart:t,selectionIndexes:e,queryObject:i}=s,r=[],a=[],n=ve(t.uid,"config"),o=Ro(n),l=No(n?.series??[]),h=It(n?.series);return t.series.each((c,u)=>{if(n&&c.visible){let d=n.series[0].x,A=bu(c),p=c instanceof Wr?c.dataFields?.customValue??"":"",m=Dv(c,u),f=e.get(u);if(f!==void 0){let g;if(c instanceof Hi?g=c.columns:c instanceof ws?g=c.slices:g=Zr(c)?.clones,g!==void 0){let{indexesToSelect:y}=f;g.each((x,w)=>{if(x&&(y===void 0||y.includes(w))){let S;m===V.BoxPlotSeries&&x.dataItem instanceof Xa?S=x.dataItem.dataContext:x.dataItem instanceof fo||(S=sh({dataContext:x.dataItem?.dataContext,yList:l,yAxisField:A,xAxisField:d,splitBy:p,chartType:m,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Uo(i)})),S!==void 0&&r.push(S),a.push(x)}else Kn({element:x,useNativeState:t instanceof pr,selected:!1})})}}}}),$I(t,a),r}function g2(s){let{series:t,chartType:e,showMean:i}=s,r;switch(e){case V.ComboLineAndBarSeries:if(t instanceof Hi)r=t.columns.values;else if(t instanceof Pi){let a=Zr(t);a!==void 0&&(r=a.clones.values)}break;case V.BarSeries:t instanceof Hi&&(r=t.columns.values);break;case V.LineSeries:if(t instanceof Pi){let a=Zr(t);a!==void 0&&(r=a.clones.values)}break;case V.PieSeries:r=t.slices.values;break;case V.BoxPlotSeries:if(t.chart instanceof Wt){if(t instanceof wr&&i!==!0){r=[...t.columns.values];let a=jf(t.chart,t.id);if(a!==void 0&&a.visible){let n=Zr(a);n!==void 0&&r.push(...n.clones.values)}}else if(i===!0&&t instanceof Pi&&Hs(t.uid,"isBoxPlotMeanLineSeries")){let a=Zr(t);a!==void 0&&(r=a.clones.values)}}break}return r}function y2(s){let{series:t,seriesIndex:e,queryObject:i,options:r,dataWasUpdated:a,sortChanged:n,groupOfSlicesWasUpdated:o,xAxisField:l,yAxisField:h,rotationChanged:c}=s,{filterBySelection:u,selectionData:d,returnSelectionIndexes:A,returnSelectionOIDs:p}=r??{},{selectionIndexes:m}=d??{},{chart:f}=t,g=ve(f.uid,"config"),y=Ro(g),x=Ca(g),w=ze(g?.series);if(u!==!0&&g!==void 0){let S=g2({series:t,chartType:w,showMean:x}),D=It(g?.series),T=Ys(i),L=_h(T).idField,$=ve(f.uid,"currentSelectionDataItems"),I=!1,R=!1,F,H=!1;if(S?.[0]!==void 0){if(r?.viewExtentUpdated!==!0){F=r?.selectionData?.selectionItems??$;let K=ve(f.uid,"currentSelectionIndexes");H=xx({itemsA:F,itemsB:$,isPieFromFields:D===Ee.PieFromFields,x:g.series[0].x});let z=m?.keys.length!==K?.keys.length||!Ll(m,K);I=n===!0||a===!0||o===!0||c===!0||F!==void 0&&H;let ee=!0;if(m!==void 0&&m.size>0){let{indexesToSelect:ie}=m.get(e??0)??{};ee=ie!==void 0&&ie[0]===void 0}R=a===!0||o===!0||c===!0||!ee&&z}if(I&&F!==void 0&&F.length>0){let{selectedIndexes:K,newSelectionDataItems:z}=f2({chart:f,chartConfig:g,options:r,series:t,elementsToApplySelectionTo:S,selectionDataItems:F,layerOidField:L,xAxisField:l,yAxisField:h}),ee=ve(f.uid,"computedSelectionDataItems")??[];if(ee.push(...z),g.series.length>1&&D!==Ee.BarAndLineNoAggregation&&D!==Ee.BarAndLineSplitByNoAggregation&&(ee=Cx({data:ee,x:g.series[0].x,splitByField:Vo(g.series[0].query?.where)})),ni(f.uid,{computedSelectionDataItems:ee}),A===!0){let ie=Array.from(new Set(K)),de=ve(f.uid,"computedSelectionIndexes");de===void 0&&(de=new Map),ie.length===S.length?de.set(e??0,{}):de.set(e??0,{indexesToSelect:ie}),ni(f.uid,{computedSelectionIndexes:de})}}else if(m!==void 0&&R)F=m2({chart:f,selectionIndexes:m,queryObject:i});else{let K=F===void 0||F.length===0,z=t instanceof Wr?t.dataFields?.customValue??"":"",ee=ie=>{let de=ie.dataItem?.dataContext;return de!==void 0&&w===V.BoxPlotSeries&&de[re.boxPlot.boxPlotOutlierId]!==!0&&(de=sh({dataContext:de,yAxisField:h,yList:No(g.series),xAxisField:l,splitBy:z,chartType:w,chartSubType:D,showOutliers:y,isFeatureCollectionLayer:Uo(i)})),Lv({elementDataContext:de,options:r,selectionDataItems:F??$??[],layerOidField:L,xAxisField:l,yAxisField:h,chartType:w,splitBy:z,chartSubType:D,showOutliers:y})};S.forEach(ie=>{let de=ie.isActive||ee(ie);Kn({element:ie,selected:de,useNativeState:f instanceof pr,backToDefaultState:K})})}}if(Po(t.uid,{isSelectionApplied:!0}),A2({chart:f,chartType:w,showMean:x})&&(p2(f),H||R)){let K=ve(f.uid,"computedSelectionDataItems")??F;K=Array.from(new Set(K?.map(ee=>JSON.stringify(ee)))).map(ee=>JSON.parse(ee)),F!==void 0&&ni(f.uid,{currentSelectionDataItems:K}),d?.selectionOIDs!==void 0&&ni(f.uid,{currentSelectionOIDs:d.selectionOIDs});let z;if(A===!0&&(z=ve(f.uid,"computedSelectionIndexes")??m,z!==void 0&&ni(f.uid,{currentSelectionIndexes:z})),K===void 0||K.length===0)CA({chart:f,selectionSource:Pr.ProgrammaticSelection});else{let ee={selectionItems:K,selectionSource:Pr.ProgrammaticSelection};A===!0&&(ee.selectionIndexes=z),p!==!1&&(ee.selectionOIDs=d?.selectionOIDs??ve(f.uid,"currentSelectionOIDs")),Mu({data:ee,htmlContainer:f.htmlContainer})}ni(f.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}function v2(s){let{chart:t,chartConfig:e,rotationChanged:i}=s;for(let r=0;r<t.series.length;r+=1){let a=t.series.getIndex(r);if(a){let n=Ov(a,e);if(n){let o=ze([n]);if(o===V.BoxPlotSeries&&(a=t.series.values.find(l=>l.id===n.id)),a!==void 0){let l=n.x,h=o===V.BoxPlotSeries?n.y.toString():bu(a);NH({callbackProps:{...s,series:a,seriesIndex:r,xAxisField:l,yAxisField:h},series:a,seriesConfig:n,onReadyEvent:i===!0})}}}}}async function Wf(s){let{chart:t,listSelectedElements:e,selectionSource:i,queryObject:r}=s,a=ve(t.uid,"options"),n=ve(t.uid,"config"),o=Gs(r);if(n)if(e.length===0)CA({chart:t,selectionSource:i,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1});else try{pI(t,"updateSelectionCallbackDisposer");let l=Ro(n),h=[],c=[],u=[],d=new Map,{xAxisField:A}=e[0]??{},p=ze(n?.series),m=It(n?.series),f=No(n?.series??[]),g=ln(r).find(x=>x.name===A)?.type;if(e.forEach(x=>{let{elementDataContext:w,yAxisField:S,splitBy:D}=x,T=sh({dataContext:w,yAxisField:S,yList:f,xAxisField:A,splitBy:D,chartType:p,chartSubType:m,showOutliers:l,isFeatureCollectionLayer:Uo(r)});T!==void 0&&c.push(T);let{seriesIndex:L,elementIndex:$}=x;if($!==void 0){let I=d.get(L)?.indexesToSelect??[];I.push($),d.set(L,{indexesToSelect:Array.from(new Set(I))})}if(!o&&w!==void 0){let I=w[Eu.uniqueIdsName]!==void 0?[w[Eu.uniqueIdsName]].flat():[];if(I.length>0)u.push(...I);else if(a?.returnSelectionOIDs!==!1){let R=_x({dataContext:w,options:a,xAxisField:A,yAxisField:S??"",splitBy:D,xAxisFieldType:g,chartConfig:n,queryObject:r});h.push(R)}}}),!o&&a?.returnSelectionOIDs!==!1&&h.length>0){let x={...ve(t.uid,"queryConfig")};delete x.groupByFieldsForStatistics,delete x.orderByFields,delete x.outStatistics;let w=await aI({whereList:h,queryObject:r,queryConfig:x});if(h.length===e.length)u=w;else for(let S=0;S<w.length;S+=1)u.push(w[S])}ni(t.uid,{currentSelectionDataItems:c,currentSelectionOIDs:u,currentSelectionIndexes:d});let y={selectionItems:c,selectionSource:i};a?.returnSelectionIndexes===!0&&(y.selectionIndexes=d),a?.returnSelectionOIDs!==!1&&(y.selectionOIDs=u),Mu({data:y,htmlContainer:t.htmlContainer})}catch(l){ni(t.uid,{pendingSelectionQueries:!1});let{httpStatus:h}=l instanceof Ln?l.details.details:l.details??{};if(h===429)d2(t);else throw l}ni(t.uid,{pendingSelectionQueries:!1})}function b2(s){let{axis:t}=s,e=t.chart;return{axis:t,chart:e}}async function x2(s,t){let e=s.target,{axis:i,chart:r}=b2(e),a=[],{seriesDataItems:n}=s.target.dataItem;Object.keys(n).forEach(u=>{if(Object.hasOwn(n,u)){let d=n[u];for(let A of d)if(A instanceof Bs)a.push(A.column);else{let p=A.sprites.find(m=>!(m instanceof Mi));p!==void 0&&a.push(p)}}});let o=Ev(s,r),l=i instanceof Ct||i instanceof Ot,h=[],c=ve(r.uid,"config");if(c){let u=c.series[0].x??"";r.series.each((d,A)=>{let p;if(d instanceof Hi?p=d.columns:p=Zr(d)?.clones,d.visible){let m=bu(d),f=d.dataFields?.customValue??"";p?.each((g,y)=>{let x=a.includes(g);Kn({element:g,selected:x,multiSelect:o,isDateOrCategoryAxis:l})&&h.push({element:g,elementDataContext:g.dataItem?.dataContext,yAxisField:m,xAxisField:u,splitBy:f,seriesIndex:A,elementIndex:y,chartConfig:c})})}}),await Wf({chart:r,listSelectedElements:h,selectionSource:Pr.SelectionByClick,queryObject:t})}}function _2(s,t){if(qn(s.renderer.labels.template)){s.renderer.labels.template.events.on(ke.Hit,async i=>{s.renderer.labels.template.events.isEnabled(ke.Hit)&&await x2(i,t)});let e=ve(s.chart.uid,"filterBySelection")===!0?ai.default:ai.pointer;ew(s,e)}}function wv(s,t){if(qn(s?.renderer?.labels?.template)&&(s instanceof Ot||s instanceof Ct))if(t)s.renderer.labels.template.events.disableType(ke.Hit),ew(s,ai.default);else{s.renderer.labels.template.events.enableType(ke.Hit);let e=ve(s.chart.uid,"filterBySelection")===!0?ai.default:ai.pointer;ew(s,e)}}var vr={Guides:"guides",Ticks:"ticks",GaugeFirstAndLastGuides:"firstAndLast",GaugeTicksWithLabels:"gaugeTicksWithLabels"};function Rc(s){let{chart:t,label:e,labelType:i}=s,r=Number.NaN;switch(i){case ii.GuideLabel:!(t instanceof qs)&&t instanceof Wt&&(e.rotation===90||e.rotation===270?r=t.seriesContainer.measuredHeight:r=t.seriesContainer.measuredWidth);break;case ii.XAxisTitle:t instanceof Wt&&(r=t.seriesContainer.measuredWidth);break;case ii.YAxisTitle:t instanceof Wt&&(r=t.seriesContainer.measuredHeight);break;case ii.ChartTitle:case ii.ChartSubTitle:case ii.ChartFooter:r=t.measuredWidth-20;break}r>0&&(e.maxWidth=r,t.invalidateLabels(),t instanceof Wt&&(t.xAxes.getIndex(0)?.invalidateLabels(),t.xAxes.getIndex(1)?.invalidateLabels(),t.yAxes.getIndex(0)?.invalidateLabels(),t.yAxes.getIndex(1)?.invalidateLabels()))}function Uf(s){let{chart:t,labelType:e}=s;Rc(s);let i=e===ii.YAxisTitle?1:0;t.events.on(ke.Validated,zs(()=>Rc(s),re.debounceTime),i)}function Bv(s,t){s.events.on(ke.Validated,zs(()=>{t.visible=s.measuredWidth!==0},re.debounceTime))}function C2(s,t){s.chart instanceof qs||(t.adapter.add("dx",e=>{let i=e;return(t.rotation===90||t.rotation===270)&&(i=t.bbox.height,t.dataItem.value!==t.dataItem.endValue&&(i/=2)),i}),t.padding(0,10,0,10))}function w2(s,t){let e=s.renderer instanceof zl?new Un:new Jo;return e.disabled=!0,e.axis=s,Iv(e),mu(e.uid,{isGuide:t}),Uf({chart:s.chart,label:e,labelType:ii.GuideLabel}),C2(s,e),e}function B2(s){let{label:t,labelConfig:e,guideType:i}=s,r=t.axis.renderer instanceof Ar,a;t instanceof Un||(r?i===Dt.SFS?a=re.verticalSurfaceGuideLabels:a=re.verticalLineGuideLabels:i===Dt.SFS?a=re.horizontalSurfaceGuideLabels:a=re.horizontalLineGuideLabels);let n={...e};n.content.rightToLeft=t.axis.rtl,Cn({label:t,labelConfig:n,defaults:a}),t.axis.invalidateLabels()}function S2(s,t,e){let i=e.chart;s.axisFill.tooltip=new Ao,s.axisFill.interactionsEnabled=!0,s.axisFill.tooltipPosition=re.guideTooltipPosition,s.axisFill.tooltip.label.wrap=!0,s.axisFill.tooltip.adapter.add("maxWidth",()=>Math.min(re.tooltipWidth,i.seriesContainer.maxWidth)),s.axisFill.tooltip.boundingContainer=i.chartAndLegendContainer,s.axisFill.adapter.add("tooltipHTML",(r,a)=>{let n=r,{dataItem:o,axis:l}=a;if(!(l.renderer instanceof zl)){let h=Vs(l.uid,"guideTooltipFormatter");if(h!==void 0){let c="",u;o instanceof yo?(c=o.value,u=o.endValue):o instanceof il?(c=o.category,u=o.endCategory):o instanceof Vh&&(c=o.date,u=o.endDate),n=h({guideName:o.id??"",start:c,end:u,guideIndex:t})}}return n}),s.axisFill.tooltip.events.on(ke.Shown,r=>{let a=ve(s.axisFill.axis.chart.uid,"config");if(a!==void 0){let n=ve(s.axisFill.axis.chart.uid,"isRotated"),o=Xf(s.axisFill.axis.renderer,n)?0:1,l=a.axes?.[o]?.guides,{tooltipReverseColor:h}=l?.[t]??{};bI(r.target,h)}})}function F2(s,t){return e=>{let{guideName:i,start:r,end:a,guideIndex:n}=e,{chart:o}=s,l="";if(o!==void 0){let h=ve(o.uid,"config"),c=ve(o.uid,"isRotated"),u=Xf(s.renderer,c)?0:1,d=h?.axes?.[u]?.guides,A=r,p=a;if(s instanceof Ct){let y=new cn,x;if(o!==void 0){let w=ve(s.chart.uid,"formatLocale");y=yl({type:V.DateAxisFormat,iLocale:o.language.locale,formatLocale:w}),x=h?.axes?.[0]?.valueFormat?.intlOptions}A=y.format(r,x),a!==void 0&&(p=y.format(a,x))}else if(s instanceof He&&!(r instanceof Date)&&!(a instanceof Date)){let{start:y,end:x}=kw(s,d?.[n]);Number.isFinite(y)&&(A=y),Number.isFinite(x)&&(p=x);let w=Vs(s.uid,"numberFormatter")??(S=>new Hl().format(S));A=w(A),p!==void 0&&(p=w(p))}else s instanceof Ot&&(A=r,p=a);let m=A.toString(),f=p?.toString()??"";!Yi(f)&&m!==f?l=fA(t.guideTooltipLabel,{guideStart:m,guideEnd:f}):l=m;let g=Ra(o.rtl);l=`${i}${g} ${l}`}return l}}function T2(s){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=s;Ls(t.uid,{guideTooltipFormatter:e??F2(t,i)})}function P2(s){let t=ku.Value;return s instanceof Ct?t=ku.Date:s instanceof Ot&&(t=ku.Category),t}function J1(s){let{inputValue:t,axisType:e,axisMin:i,axisMax:r}=s,a=t;if(t!=null)switch(e){case ku.Date:a=t instanceof Date?t:new Date(t);break;case ku.Category:a=t.toString();break;case ku.Value:if(typeof t!="number"){let n=t.toString().trim(),o=qA(n);o!==void 0?i!==void 0&&r!==void 0?a=o/100*(r-i)+i:a=null:a=Number.parseFloat(n)}break}return a}function kw(s,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let a=P2(s),n=s instanceof He?s.min:void 0,o=s instanceof He?s.max:void 0,l=J1({inputValue:e,axisType:a,axisMin:n,axisMax:o}),h=t.style?.type===Dt.SFS&&i!==null&&i!==void 0?J1({inputValue:i,axisType:a,axisMin:n,axisMax:o}):l;r={isValidGuide:l!=null&&h!=null,start:l,end:h}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function D2(s){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=s,r=[],a=t.axisRanges.length-1,n=i;for(;n>0&&a>=0;){let o=t.axisRanges.getIndex(a);o!==void 0&&(gs(o.label?.uid,"isGuide")??!1)===!0&&e===vr.Guides&&(r.push(o),n-=1),a-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function tn(s,t){return s.axisRanges?.values?.filter(e=>{let i=gs(e.label?.uid,"isGuide")??!1,r=gs(e.label?.uid,"isGaugeAxisLabel")??!1,a=!1;switch(t){case vr.Ticks:a=i===!1;break;case vr.Guides:a=i===!0;break;case vr.GaugeTicksWithLabels:a=r===!0&&e.value!==void 0;break;case vr.GaugeFirstAndLastGuides:a=i===!0&&(e.id===re.gaugeFirstLabelId||e.id===re.gaugeLastLabelId);break}return a})??[]}function L2(s,t){let e=s.axisRanges.length;{let r=s.axisRanges.values.findIndex(a=>a.id===re.gaugeFirstLabelId);r!==-1&&(e=r)}let i;return s instanceof Ot?i=new il:s instanceof Ct?i=new Vh:i=new yo,s.axisRanges.insertIndex(e,i),i.label=w2(s,t),i.axisFill.fillOpacity=1,i.axisFill.disabled=!0,i.grid.strokeOpacity=1,i}function I2(s,t){let e=L2(s,!0);S2(e,t,s),e.tick!==void 0&&(e.tick.disabled=!0),e.label!==void 0&&(e.label.inside=!0),e.grid!==void 0&&(e.grid.disabled=!0)}function k2(s,t){let{start:e,end:i}=t,r=ve(s.uid,"config"),a=eg(r),n=e!==null?e:void 0;n=s.data.find(l=>l[re.originalCategoryValue]===e)?.[a]??n;let o=i!==null?i:void 0;if(o!==void 0)for(let l=s.data.length-1;l>=0;l-=1){let h=s.data[l];if(h[re.originalCategoryValue]===i){o=h[a];break}}return{modifiedStart:n,modifiedEnd:o}}function $2(s,t){let{start:e,end:i}=t;if(e!==void 0){let{chart:r}=s?.component??{},a;if(s instanceof il&&r instanceof Wt&&ve(r.uid,"isNonAggregatedChart")===!0){let{modifiedStart:n,modifiedEnd:o}=k2(r,t);a={isValidGuide:!0,start:n??e,end:o??i}}else a=kw(s.axisFill.axis,t);a.isValidGuide&&(s instanceof il?(s.category=`${a.start?.toString()}`,s.endCategory=`${a.end?.toString()}`):s instanceof Vh?(s.date=a.start,s.endDate=a.end):(s.value=a.start,s.endValue=a.end))}}function O2(s,t){s.axisFill.above=t??re.guideAbove,s.grid.above=t??re.guideAbove}function E2(s,t){let{axisFill:e,label:i}=s;if(t!==void 0){if(s.id=t.name,s.visible=t.visible!==void 0?t.visible:s.visible,$2(s,t),t.style.type===Dt.SLS?Mf({element:e,fillSymbol:{type:Dt.SFS,color:t.style?.color,outline:t.style},visible:t.visible}):t.style.type===Dt.SFS&&Mf({element:e,fillSymbol:t.style,visible:t.visible}),O2(s,t.above),t.label!==void 0){let a={type:V.Text,visible:t.visible,content:t.label};B2({label:i,labelConfig:a,guideType:t.style.type})}let r=s.component?.chart;r!==void 0&&Rc({chart:r,label:i,labelType:ii.GuideLabel})}else e.disabled=!0,i.disabled=!0}function M2(s,t){let e=tn(s,vr.Guides).length,i=t?.length??e;for(let r=e;r<i;r+=1)I2(s,r)}function R2(s){let{axis:t,guides:e,guideTooltipFormatter:i,utilsStrings:r}=s;if(e!==void 0){for(let a=0;a<e.length;a+=1){let n=tn(t,vr.Guides)[a];n!==void 0&&E2(n,e[a])}T2({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function U2(s,t){let e=tn(s,vr.Guides).length,i=t?.length??0,r=e-i;D2({axis:s,numberOfElementsToBeDeleted:r,tickOrGuide:vr.Guides})}function V2(s){let{axis:t,guides:e}=s;M2(t,e),R2(s),U2(t,e)}function N2(s){let{axis:t,labels:e,restoreLabelsVisibility:i=!0}=s;(e??t.renderer.labels.values).forEach(r=>{r.x instanceof et?r.x.value:r.x,i&&Ri(r,!0)})}function OI(s){let t=s.renderer.labels.values.filter(e=>gs(e.uid,"isGuide")!==!0&&e.measuredWidth>0).length;return s.pixelWidth/t}function H2(s){let{target:t}=s;if((ve(t.chart.uid,"config")?.horizontalAxisLabelsBehavior??ir.Rotate)===ir.Wrap){let e=Number.MAX_SAFE_INTEGER;t.renderer.labels.each(r=>{gs(r.uid,"isGuide")!==!0&&r.measuredWidth>0&&(e=Math.min(e,r.bbox.width))});let i=t instanceof Ct?t.pixelWidth/re.maxNumberOfXAxisLabelsInWrapModeForDateAxis:t.pixelWidth/re.maxNumberOfXAxisLabelsInWrapMode;t.renderer.minGridDistance=Math.max(e+1,i)}}function Q2(s){let{axis:t,labelsConfig:e,horizontalAxisLabelsBehavior:i,isSecondValueAxis:r,tickSpacing:a}=s,n=t.renderer.minGridDistance;if(typeof a=="number"&&Number.isFinite(a))n=a;else if(t.renderer instanceof zl)n=re.gauge.gaugeMinGridDistance;else if(t instanceof He)n=t.renderer instanceof Ar?re.xAxisMinGridDistance:re.yAxisMinGridDistance;else if(t.renderer instanceof Ar)if(r===!0)n=re.secondRotatedValueAxisMinGridDistance;else if(i===void 0||i===ir.Rotate){let o=e.content.font?.size??re.generalFontSize,l=t instanceof Ot?re.categoryAxisLabelPadding:re.axisLabelPadding;n=o*l}else if(i===ir.Wrap){let o=zs(H2,re.debounceTime);Ls(t.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:o}),t.events.on(ke.SizeChanged,o),t.dispatchImmediately(ke.SizeChanged)}else i===ir.Stagger?n=re.staggerMinGridDistance:n=t instanceof Ot?re.xCategoryAxisMinGridDistance:re.xAxisMinGridDistance;else n=t instanceof Ot?re.yCategoryAxisMinGridDistance:re.yAxisMinGridDistance;t.renderer.minGridDistance=n}function j2(s){let t=s.renderer.labels.template;qn(t)&&(t.adapter.add("rotation",(e,i)=>gs(i.uid,"isGuide")!==!0?Vs(s.uid,"labelsSymbol")?.angle??e:e),t.adapter.add("verticalCenter",(e,i)=>gs(i.uid,"isGuide")!==!0?Vs(s.uid,"labelsSymbol")?.verticalCenter??e:e),t.adapter.add("horizontalCenter",(e,i)=>gs(i.uid,"isGuide")!==!0?Vs(s.uid,"labelsSymbol")?.horizontalCenter??e:e),t.adapter.add("dy",(e,i)=>{let r=re.axisLabel.dy??e??0;return i.dataItem?.tick?.length>re.axisTickLength?r=e??0:r=Number(gs(i.uid,"isGuide")!==!0?Vs(s.uid,"labelsSymbol")?.yOffset??r:r),r}))}function W2(s){let{target:t}=s;if(t.chart!==void 0){let e=ve(t.chart.uid,"config")?.axes?.[0].labels;if((e?.visible??!0)&&e!==void 0&&t.renderer.labels.length>1){let i=0;t.renderer.labels.each(n=>{if(gs(n.uid,"isGuide")!==!0&&n.measuredWidth>0){let o=n.bbox.width;o>i&&(i=o)}});let r=Vs(t.uid,"labelsSymbol")?.angle??0,a=OI(t)>=i+5;if(!a&&r===0||a&&r===re.rotatedAxisLabel.rotation){let n=a?xv(e.content,t.rtl,re.axisLabel):xv({type:Dt.TS},t.rtl,re.rotatedAxisLabel);Ls(t.uid,{labelsSymbol:n}),t.renderer.invalidateLabels()}}}}function X2(s,t=1){let{target:e}=s,i=OI(e);Number.isFinite(i)&&(e.renderer.labels.template.maxWidth=Math.min(i*t,e.renderer.minGridDistance))}function z2(s){let{target:t}=s;if(ve(t.chart.uid,"config")?.axes?.[0].labels?.visible!==!1){let e=0;t.dataItems.each(i=>{let{label:r,itemIndex:a}=i;gs(r.uid,"isGuide")!==!0&&r.currentText!==void 0&&r.measuredWidth>0&&a%2===0&&r.bbox.height>e&&(e=r.bbox.height)}),t.dataItems.each(i=>{let{tick:r,label:a,itemIndex:n}=i;if(gs(a.uid,"isGuide")!==!0&&a.currentText!==void 0&&a.measuredWidth>0){let o=n%2===1;r.length=o?e+5:re.axisTickLength,r.dataItem.label.dy=re.axisLabel.dy+(o?e:0)}}),e!==void 0&&(t.renderer.labels.template.paddingBottom=e+5),t.validate()}}function G2(s){let{chart:t}=s;s.renderer.labels.template.paddingLeft=Number.NaN,s.renderer.labels.template.paddingRight=Number.NaN;let e=Vs(s.uid,"debouncedAxisLabelRotationCallback");if(e!==void 0&&(s.events.off(ke.Validated,e),Ls(s.uid,{debouncedAxisLabelRotationCallback:void 0})),t!==void 0){let i=ve(t.uid,"config")?.axes?.[0].labels;if(i!==void 0){let r=xv(i.content,t.rtl,re.axisLabel),a=s.renderer.labels.template;a.rotation=r.angle,a.verticalCenter=r.verticalCenter,a.horizontalCenter=r.horizontalCenter,Number.isFinite(r.yOffset)&&(a.dy=r.yOffset)}Ls(s.uid,{labelsSymbol:void 0})}}function EI(s){s.renderer.labels.template.wrap=!1,s.renderer.labels.template.textAlign="start"}function Y2(s){EI(s),s.renderer.labels.template.paddingLeft=Number.NaN,s.renderer.labels.template.paddingRight=Number.NaN;let t=Vs(s.uid,"debouncedAxisLabelWrapCallback");t!==void 0&&(s.events.off(ke.DataRangeChanged,t),Ls(s.uid,{debouncedAxisLabelWrapCallback:void 0}))}function K2(s){EI(s);let t=Vs(s.uid,"debouncedUpdateMinGridDistanceForWrapBehavior");t!==void 0&&(s.events.off(ke.SizeChanged,t),Ls(s.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:void 0}))}function Z2(s){let t=Vs(s.uid,"debouncedAxisLabelStaggerCallback");t!==void 0&&(s.events.off(ke.DataRangeChanged,t),Ls(s.uid,{debouncedAxisLabelStaggerCallback:void 0})),s.renderer.ticks.each(e=>{e.length=re.axisTickLength,e.dataItem?.label&&(e.dataItem.label.dy=re.axisLabel.dy??0)})}function q2(s){G2(s),Y2(s),Z2(s)}function eL(s){j2(s),s.renderer.labels.template.paddingLeft=0,s.renderer.labels.template.paddingRight=0,s.renderer.labels.template.maxWidth=Number.NaN;let t=zs(W2,re.debounceTime,{leading:!0});Ls(s.uid,{debouncedAxisLabelRotationCallback:t}),s.events.on(ke.Validated,t),s.dispatchImmediately(ke.Validated)}function tL(s,t=1){s.renderer.labels.template.wrap=!0,s.renderer.labels.template.paddingLeft=.5,s.renderer.labels.template.paddingRight=.5,s.renderer.labels.template.textAlign="middle";let e=zs(i=>X2(i,t),re.debounceTime);Ls(s.uid,{debouncedAxisLabelWrapCallback:e}),s.events.on(ke.DataRangeChanged,e)}function J2(s){s.renderer.labels.template.maxWidth=re.yAxisLabelMaxWidth,s.renderer.labels.template.wrap=!0,s.renderer.labels.template.textAlign="end"}function ej(s){let t=zs(z2,re.debounceTime);Ls(s.uid,{debouncedAxisLabelStaggerCallback:t}),s.events.on(ke.DataRangeChanged,t)}function tj(s){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,labelsConfig:r,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}=s;if(t.renderer instanceof Ar&&a?.[0]!==!1){if(q2(t),n!==!0)switch(e){case ir.Hide:break;case ir.Stagger:ej(t),tL(t,1.5);break;case ir.Wrap:tL(t);break;case ir.Rotate:eL(t);break;default:r.content.angle!==null&&r.content.angle===void 0&&eL(t);break}}else t.renderer instanceof Lr&&(i!==ir.Hide?J2(t):K2(t))}function ij(s){let{axis:t,axisConfig:e,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}=s,o=t.renderer.labels.template;o.axis=t;let{labels:l}=e,h=t.renderer instanceof Ar&&o.rotation===re.rotatedAxisLabel.rotation,c=l,u;h?(c.content.angle=void 0,c.content.horizontalAlignment=void 0,c.content.verticalAlignment=void 0,c.content.yoffset=void 0,u=re.rotatedAxisLabel):t.renderer instanceof Ar&&(i===ir.Stagger||i===ir.Wrap)&&(u={wrap:!0,dy:re.axisLabel.dy}),t.renderer instanceof Lr&&r!==ir.Hide&&(u={wrap:!0}),Cn({label:o,labelConfig:c,defaults:u}),t.renderer.labels.template.paddingTop=t.renderer instanceof Ar?0:re.axisLabel.dy,o.align="none",o.valign="none",tj({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelsConfig:l,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}),o.axis.invalidateLabels()}function $w(s){return(s??qb())===Gi.Side}function MI(s,t){let e,i,r=iw(s,"bullets"),a=iw(s,"columns"),n=$w(t);return n&&r!==void 0?(e=r,i=a):n||(e=a,i=r),{labelToRender:e,labelToHide:i}}function rj(s,t=!0){s.hideOversized=t}function sj(s,t){let e,i,r=vl(re.dataLabelInitialize);mu(r.uid,{isDataLabel:!0}),s.bullets.push(r);let a=vl(re.dataLabelInitialize,s.columns.template);return mu(a.uid,{isDataLabel:!0}),rw(a,s),rw(r,s),s.events.on(ke.Validated,zs(()=>{Ef(a)&&a.clones.each(n=>{Ef(n)&&n.validate()})},re.debounceTime)),a.html="{valueX}",r.html="{valueX}",cI(r),$w(t)?(e=r,i=a):(e=a,i=r),lI(V.BarSeries,r),hI(V.BarSeries,e),{newLabelToRender:e,newLabelToHide:i}}function aj(s){let{series:t,stackedType:e,isRotated:i,hideOversizedStackedLabels:r,hideOversizedSideBySideLabels:a}=s,{labelToRender:n,labelToHide:o}=MI(t,e);if(n===void 0){let{newLabelToRender:c,newLabelToHide:u}=sj(t,e);n=c,o=u}let l=re.dataLabel,h=!0;$w(e)?(l=i===!0?re.dataLabelRotated:re.dataLabel,h=a===!0):(l=i===!0?re.dataLabelStackedRotated:re.dataLabelStackedNonRotated,h=r!==!1),rj(n,h),o!==void 0&&(o.visible=!1,o.disabled=!0),n.html="{valueX}",dI({...s,dataLabel:n,labelDefaults:l,defaultDataLabelFormatter:uI})}function nj(s){let t=s.tooltip;t!==void 0&&!(s instanceof Ct)&&(t.label.adapter.add("html",(e,i)=>{let r=e??"";return s instanceof He?r=KL(s,i.properties?.text??e??""):s instanceof Ot&&(r=ZL({axis:s,defaultOutput:e??"",dataItem:t.dataItem})),Mr(r)}),t.label.html=re.htmlEmptyContent)}function sw(s){let{axis:t,start:e,end:i}=s;t.zoom({start:e??0,end:i??1})}function iL(s){s!==void 0&&(s.start=0,s.end=1)}function Rv(s){s!==void 0&&(s.xAxes!==void 0&&s.xAxes.each(t=>sw({axis:t})),s.yAxes!==void 0&&s.yAxes.each(t=>sw({axis:t})),iL(s.scrollbarX),iL(s.scrollbarY),Ri(s.zoomOutButton,!1))}function Xf(s,t){return s instanceof Ar&&t!==!0||s instanceof Lr&&t===!0}function oj(s){qn(s.labels.template)&&(s.labels.template.events.on(ke.Over,t=>{let{axisLabelOveredOpacity:e}=re;t.target.fillOpacity=(t.target.fillOpacity??1)*e}),s.labels.template.events.on(ke.Out,t=>{let{axisLabelOveredOpacity:e}=re;t.target.fillOpacity=(t.target.fillOpacity??.5)/e}))}function lj(s){let{axis:t,valueFormat:e,axisRenderer:i,queryObject:r}=s;i.grid.template.applyOnClones=!0,i.ticks.template.applyOnClones=!0,i.labels.template.applyOnClones=!0,i.hoverable=!0,i.line.strokeOpacity=1,i.grid.template.strokeOpacity=1,i.ticks.template.strokeOpacity=1,Iv(i.labels.template,re.axisLabel),i.ticks.template.disabled=!1,i.labels.template.disabled=!0,nj(t),ld(e)&&(oj(i),_2(t,r)),Bv(t.chart,t.title),Uf({chart:t.chart,label:t.title,labelType:t.renderer instanceof Ar?ii.XAxisTitle:ii.YAxisTitle}),t.renderer instanceof Ar&&t.events.on(ke.Validated,zs(()=>{N2({axis:t,restoreLabelsVisibility:!0})},re.debounceTime))}function hj(s){let t=s.target,e=ve(t.chart.uid,"isRotated"),i=[];if(t instanceof He){if(t.renderer instanceof zl)i.push({isXAxis:!0,minimum:t.min,maximum:t.max});else if(t.renderer instanceof(e!==!0?Lr:Ar)){t.maxZoomFactor=1;let r=s.target,a=r.chart,n=e!==!0?a.xAxes.getIndex(0):a.yAxes.getIndex(0),o=a.yAxes.getIndex(1)??a.xAxes.getIndex(1);i=[{isXAxis:!1,minimum:r.min,maximum:r.max},{isXAxis:!0,minimum:n instanceof He?n.min:void 0,maximum:n instanceof He?n.max:void 0}],o instanceof He&&i.push({isXAxis:!1,isSecondValueAxis:!0,minimum:o.min,maximum:o.max})}i.length>0&&i.every(r=>!Number.isNaN(r.minimum)&&!Number.isNaN(r.maximum))&&tx(i,t.chart.htmlContainer)}}function uj(s){s.events.on(ke.Validated,zs(hj,re.debounceTime))}function cj(s){let{axis:t,isNonAggregatedChart:e}=s,i,r,a,n=t.dataItems.values,o=t.axisRanges.values;if(t instanceof Ot)for(let l=0;l<o.length;l+=1){i=!1,r=!1,a=!1;let h=o[l],{category:c,endCategory:u,axisFill:d,grid:A,label:p}=h;if(h instanceof il&&h.visible)for(let m=0;m<n.length;m+=1){let f;e===!0?f=Mo({value:n[m].category,dataContext:n[m].dataContext}):f=n[m].category.toString(),c===f&&(r=!0),u===f&&(a=!0)}r&&a&&(i=!0),Ri(d,i),Ri(A,i),Ri(p,i)}}function rL(s){let{axis:t,axisMinimum:e,axisMaximum:i}=s,r;if(t instanceof He&&i!==void 0&&e!==void 0){let a=t.axisRanges.values,n=ve(t.chart.uid,"config"),o=ve(t.chart.uid,"isRotated"),l=Xf(t.renderer,o)?0:1,h=n?.axes?.[l]?.guides;for(let c=0;c<a.length;c+=1){let u=a[c],{value:d,endValue:A,axisFill:p,grid:m,label:f}=u;if(gs(f?.uid,"isGuide")===!0){if(r=u.visible,r&&u instanceof yo){let{start:g,end:y}=kw(t,h?.[c]),x=Math.min(d,A,g??d,y??A),w=Math.max(d,A,g??d,y??A);x<e&&w<e||x>i&&w>i?r=!1:(u.value=x<e?e:x,u.endValue=w>i?i:w)}Ri(p,r),Ri(m,r),Ri(f,r)}}}}function dj(s){s instanceof He?(s.adapter.add("min",t=>(rL({axis:s,axisMinimum:t,axisMaximum:s.max}),t)),s.adapter.add("max",t=>(rL({axis:s,axisMinimum:s.min,axisMaximum:t}),t))):s instanceof Ot&&s.events.on(ke.Validated,()=>{let t=ve(s.chart.uid,"isNonAggregatedChart");cj({axis:s,isNonAggregatedChart:t})})}function Of(s){let{axes:t,isSecondValueAxis:e=!1,isXAxis:i,valueFormat:r,chartType:a,queryObject:n}=s,o;if(Um({isXAxis:i,chartType:a,valueFormat:r})&&!e)o=t.push(new Ot);else if(ro(r))o=t.push(new Ct);else if(xa(r)){o=t.push(new He);let l=ve(o.chart.uid,"formatLocale");o.numberFormatter=yl({type:V.NumberAxisFormat,iLocale:o.chart.language.locale,formatLocale:l}),o.numberFormatter.numberFormat="#",e?(o.renderer.opposite=!0,o.renderer.grid.template.disabled=!0):uj(o)}o!==void 0&&(lH(o),lj({axis:o,valueFormat:r,axisRenderer:o.renderer,queryObject:n}),dj(o))}function RI(s){let{chart:t,axesConfig:e,isRotated:i,chartType:r,queryObject:a}=s;ni(t.uid,{isRotated:i===!0});let n=i===!0?e?.[1]:e?.[0],o=i===!0?e?.[0]:e?.[1],l=n?.valueFormat,h=o?.valueFormat;l!==void 0&&h!==void 0&&(t.xAxes.clear(),t.yAxes.clear(),Of({chartType:r,isXAxis:i!==!0,axes:t.xAxes,valueFormat:l,queryObject:a}),Of({chartType:r,isXAxis:i===!0,axes:t.yAxes,valueFormat:h,queryObject:a}),e?.[2]!==void 0&&Of({chartType:r,isXAxis:i===!0,axes:i===!0?t.xAxes:t.yAxes,valueFormat:e[2].valueFormat,isSecondValueAxis:!0,queryObject:a}))}function Aj(s){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=s,r=ve(t.chart.uid,"config"),a=e===!0&&ag({chartConfig:r,chartData:t.chart.data,axisConfigIndex:i});(t instanceof Ct||t instanceof He)&&(t.logarithmic=a,t.treatZeroAs=a?re.treatZeroValueAs:0)}function pj(s,t){let{minimum:e,maximum:i,isLogarithmic:r}=t??{},{buffer:a}=t??{};return a??=re.buffer,s instanceof He&&!(s instanceof Ct)&&!a&&(r!==!0||i!=null||e!=null)}function fj(s,t){let e=!1;return s instanceof He&&!(s instanceof Ct)&&(e=pj(s,t),s.strictMinMax=e),e}function mj(s){let{axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r}=s,a=e?.minimum,n=e?.maximum,o=e?.isLogarithmic??!1,l=a,h=n,{chart:c}=t,u=ve(c.uid,"isRotated"),d=ve(c.uid,"config"),A=0;if(c instanceof Wt&&d!==void 0){let p=Ua(d),m=Xf(t.renderer,u),f=RH(c),g=sg({chartConfig:d,isSecondValueAxis:r,seriesIds:f}),y=wx({chartConfig:d,chartData:c.data,filteredSeriesIds:g});if(p===Gi.Stacked100)l=Number.NaN,h=Number.NaN;else{let{minX:x,maxX:w,minY:S,maxY:D}=y,[T,L]=m?[x??Number.NaN,w??Number.NaN]:[S,D];A=T,i===V.BarSeries||i===V.ComboLineAndBarSeries||i===V.LineSeries&&p===Gi.Stacked&&!m?(l=Math.min(T,0),h=Math.max(L,0)):(l=T,h=L)}l=a??l,h=n??h}return o&&l!==void 0&&l!==null&&l<=0&&(l=pH(A)),{min:l,max:h}}function UI(s){let{axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r}=s,{minimum:a,maximum:n,isLogarithmic:o}=e??{};if(t instanceof He||t instanceof Ct)if(fj(t,e)){let l=a,h=n;if(qL({minimumFromConfig:a,maximumFromConfig:n,isLogarithmic:o})){let c=mj({axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r});l=c.min,h=c.max}l=l??Number.NaN,h=h??Number.NaN,Number.isNaN(l)||Number.isNaN(h)||l<h?(t.min=l,t.max=h):(t.min=Number.NaN,t.max=Number.NaN),i===V.GaugeSeries&&t.validate()}else t.min=Number.NaN,t.max=Number.NaN}function gj(s){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i}=s;if(t instanceof Ct){let{size:r,unit:a}=e??{};if(a||({size:r,unit:a}=i??{}),r&&a!==void 0){let n;switch(a){case tr.Second:n="second";break;case tr.Minute:n="minute";break;case tr.Hour:n="hour";break;case tr.Day:n="day";break;case tr.Week:n="week";break;case tr.Month:n="month";break;case tr.Year:n="year";break}n!==void 0&&(t.baseInterval={timeUnit:n,count:r})}}}function yj(s,t){s instanceof He&&(s.renderer.baseGrid.disabled=t!==!0)}function vj(s,t){s.cursorTooltipEnabled=t===!0}function bj(s,t){let e=s.renderer instanceof Ar;s.events.once(ke.Validated,()=>{let i=s.renderer instanceof Lr?re.yAxisTitleLabel:re.xAxisTitleLabel;e&&(i={...i,dy:i.dy??0}),Cn({label:s.title,labelConfig:t,defaults:i}),Rc({chart:s.chart,label:s.title,labelType:s.renderer instanceof Ar?ii.XAxisTitle:ii.YAxisTitle})})}function xj(s,t){let e=!0;return t===V.BoxPlotSeries&&(e=s instanceof wr),e}function VI(s){let t=zs(()=>{let{chart:e}=s,i=ve(e.uid,"config");if(e!==void 0&&i!==void 0){let r=ze(i?.series);if(xj(s,r)){let a=ve(e.uid,"isRotated"),n=Hs(s.uid,"stackedType");n===Gi.Stacked100&&!s.visible&&Ri(s,!1);let o=e.xAxes.getIndex(0),l=e.yAxes.getIndex(0),h=e.yAxes.getIndex(1),c=a===!0?1:0,u=i.axes?.[c],d=a===!0?0:1,A=i.axes?.[d],p=i.axes?.[2];[{axis:o,axisConfig:u,updateLabels:!1},{axis:l,axisConfig:A,updateLabels:!0},{axis:h,axisConfig:p,updateLabels:!0,isSecondValueAxis:!0}].forEach(m=>{let{axis:f,axisConfig:g,updateLabels:y,isSecondValueAxis:x}=m;f!==void 0&&(UI({axis:f,chartType:r,axisConfig:g,isSecondValueAxis:x}),y!==void 0&&f.events.once(ke.Validated,()=>{let{labelToRender:w}=MI(s,n);w&&(w.html=a===!0?"{valueX}":"{valueY}")}))})}}},re.debounceTime);s.events.once(ke.Validated,t)}function _j(s,t){if(s instanceof He){let{integerOnlyValues:e,valueFormat:i}=t,r=Px(i)?i.intlOptions.maximumFractionDigits:void 0;s.maxPrecision=e===!0||r===0?0:Number.NaN}}function vv(s){let{axis:t,axisConfig:e,axisConfigIndex:i,timeIntervalInfo:r,chartType:a,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,guideTooltipFormatter:h,stackedType:c,axisValueFormatter:u,isSecondValueAxis:d,isRotated:A,isTimeOnlyField:p,utilsStrings:m,errorStrings:f}=s,{visible:g,isLogarithmic:y,title:x,grid:w,lineSymbol:S,labels:D,guides:T,valueFormat:L,displayZeroLine:$,displayCursorTooltip:I,tickSpacing:R,dateBaseInterval:F}=e;gj({axis:t,timeIntervalInfo:r,dateBaseInterval:F}),Oc({element:t.renderer.grid.template,lineSymbol:w,visible:g}),Oc({element:t.renderer.line,lineSymbol:{color:[...re.color],...S??ZA()},visible:g}),Oc({element:t.renderer.ticks.template,lineSymbol:S,visible:g}),ij({axis:t,axisConfig:e,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,isSecondValueAxis:d}),_j(t,e),Q2({axis:t,labelsConfig:D,horizontalAxisLabelsBehavior:n,isSecondValueAxis:d,tickSpacing:R}),AH({axis:t,isXAxis:Xf(t.renderer,A),chartType:a,labelsTextSymbol:e.labels.content,formatOptions:L,overridePercentMultiplication:c===Gi.Stacked100,axisValueFormatter:u,isTimeOnlyField:p,errorStrings:f}),UI({axis:t,axisConfig:e,chartType:a,isSecondValueAxis:d}),Aj({axis:t,isLogarithmic:y,axisConfigIndex:i}),bj(t,x),vj(t,I),d!==!0&&(V2({axis:t,guides:T,guideTooltipFormatter:h,utilsStrings:m}),yj(t,$))}function Cj(s){let{chart:t,rotationChanged:e,isRotated:i,dualAxisChanged:r,timeIntervalInfoWasReset:a,timeIntervalInfo:n,guideTooltipFormatter:o,xAxisLabelFormatter:l,yAxisLabelFormatter:h,secondaryYAxisLabelFormatter:c,utilsStrings:u,errorStrings:d,queryObject:A}=s,{axisLabelsBehaviorChanged:p}=s,m=ve(t.uid,"config"),f=m.axes,{horizontalAxisLabelsBehavior:g,verticalAxisLabelsBehavior:y}=m,x=ze(m.series),w=Ua(m),S=ve(t.uid,"fieldList")?.some(Y=>Y.name===m.series[0].x&&Y.type===GA.TimeOnly)??!1,D=i===!0?1:0,T=i===!0?0:1,L=f?.[D],$=f?.[T],I=t.xAxes.getIndex(0);NI({chart:t,dualAxisChanged:r,rotationChanged:e,timeIntervalInfoWasReset:a,axisLabelsBehaviorChanged:p})&&(RI({chart:t,axesConfig:f,isRotated:i,chartType:x,queryObject:A}),p=[!0,!0]),I=t.xAxes.getIndex(0);let R=t.yAxes.getIndex(0),F=t.xAxes.getIndex(1)??t.yAxes.getIndex(1),H=I?.start,K=I?.end,z=R?.start,ee=R?.end,ie=F?.start,de=F?.end,G={timeIntervalInfo:n,chartType:x,horizontalAxisLabelsBehavior:g,verticalAxisLabelsBehavior:y,axisLabelsBehaviorChanged:p,guideTooltipFormatter:o,stackedType:w,isRotated:i,utilsStrings:u,errorStrings:d};I!==void 0&&L!==void 0&&vv({...G,axis:I,axisConfig:L,axisConfigIndex:D,axisValueFormatter:D===0?l:h,isTimeOnlyField:S}),R!==void 0&&$!==void 0&&vv({...G,axis:R,axisConfig:$,axisConfigIndex:T,axisValueFormatter:T===1?h:l,isTimeOnlyField:S}),F!==void 0&&f?.[2]!==void 0&&vv({...G,axis:F,axisConfig:f[2],axisConfigIndex:2,axisValueFormatter:c,isSecondValueAxis:!0,isTimeOnlyField:S}),e===!0&&[{axis:I,start:H,end:K},{axis:R,start:z,end:ee},{axis:F,start:ie,end:de}].forEach(Y=>{let{axis:xe,start:ae,end:le}=Y;xe!==void 0&&xe.events.once(ke.Validated,()=>{sw({axis:xe,start:ae,end:le})})}),I!==void 0&&I.ghostLabel.setPropertyValue("disabled",!0),R!==void 0&&R.ghostLabel.setPropertyValue("disabled",!0),F!==void 0&&F.ghostLabel.setPropertyValue("disabled",!0)}function NI(s){let{chart:t,dualAxisChanged:e,rotationChanged:i,timeIntervalInfoWasReset:r,axisLabelsBehaviorChanged:a}=s,n=ve(t.uid,"config"),{rotated:o,series:l}=n,h=n.axes,c=ze(l),u=o===!0?1:0,d=o===!0?0:1,A=h?.[u]?.valueFormat,p=h?.[d]?.valueFormat,m=t.xAxes.getIndex(0),f=t.yAxes.getIndex(0),g=m===void 0||i||A!==void 0&&JC({axis:m,valueFormat:A,chartType:c}),y=f===void 0||i||p!==void 0&&JC({axis:f,valueFormat:p,chartType:c});return e===!0||i===!0||r===!0||a?.[0]||a?.[1]||g||y}function wj(s){RI(s)}function Bj(s){let{chart:t,chartConfig:e,rotationChanged:i,axisLabelsBehaviorChanged:r,isRotated:a,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:h,xAxisLabelFormatter:c,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:d,utilsStrings:A,errorStrings:p,queryObject:m}=s,f=Ua(e);Cj({chart:t,rotationChanged:i,axisLabelsBehaviorChanged:r,isRotated:a,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:h,xAxisLabelFormatter:c,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:d,utilsStrings:A,errorStrings:p,queryObject:m});let g=a===!0?t.yAxes.getIndex(0):t.xAxes.getIndex(0);if(g!==void 0){g instanceof Ot&&(g.dataFields.category=eg(e));let w=g.renderer,S=w.grid.template;S.location=0,w.cellStartLocation=.1,w.cellEndLocation=.9;let D=e.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===zA.Descending,T=a===!0;D&&g instanceof Ct&&(T=!T),w.inversed=T}let y=a===!0?t.xAxes.getIndex(0):t.yAxes.getIndex(0),x=a===!0?t.xAxes.getIndex(1):t.yAxes.getIndex(1);f===Gi.Stacked100?(y instanceof He&&(y.calculateTotals=!0),x instanceof He&&(x.calculateTotals=!0)):(y instanceof He&&(y.calculateTotals=!1),x instanceof He&&(x.calculateTotals=!1))}function Vf(s){let{value:t,axisMin:e,axisMax:i}=s,r=Number.NaN,a=i-e;return a!==0&&(r=(t-e)/a),r}function aw(s){return s!=null&&s!==0}function HI(s){let{minimum:t,maximum:e,labelsIncrement:i,minimumValueConversion:r,maximumValueConversion:a}=s,n=t??ht.gauge.axisMinimum,o=e??ht.gauge.axisMaximum;n=sx(n,r),o=sx(o,a);let l=aw(i),h=aw(i)?i:Math.abs(o-n)/ht.gauge.numberOfLabelIntervals,c=l?Math.round(Math.abs(o-n)/h):ht.gauge.numberOfLabelIntervals;if(l)if(c>ht.gauge.maximumNumberOfLabelIntervals)h=Math.abs(o-n),c=1;else{let u=n+c*h;u<o?(c+=1,o=n+c*h):u>o&&(o=u)}return{min:n,max:o,labelsIncrement:h,numberOfIntervals:c}}function QI(s){let{axisConfig:t,axisMin:e,axisMax:i}=s;typeof e=="number"&&typeof i=="number"&&i-e!==0&&t.guides?.forEach(r=>{let{start:a,end:n}=r;typeof a=="number"&&(r.start=Vf({value:a,axisMin:e,axisMax:i})),typeof n=="number"&&(r.end=Vf({value:n,axisMin:e,axisMax:i}))})}function Sj(s){let{featureIndex:t,chartData:e,chartConfig:i}=s,{minimumFromField:r,maximumFromField:a}=i?.axes?.[0]??{},n,o;if(t>=0&&t<e.length){let l=e[t];typeof r=="string"&&!Yi(r)&&Number.isFinite(l[r])&&(n=l[r]),typeof a=="string"&&!Yi(a)&&Number.isFinite(l[a])&&(o=l[a])}return{minimumFromData:n,maximumFromData:o}}function Fj(s){let{featureIndex:t,chartData:e,x:i}=s,r=-1;if(t>=0&&t<e.length){let a=e[t];i!==void 0&&!Yi(i)&&Number.isFinite(a[i])&&(r=a[i])}return r}function jI(s){let{featureIndex:t=0,chartData:e,queryConfig:i,chartConfig:r,gaugeMinMaxFromData:a}=s,{axes:n,series:o}=r,l=rg(r),{minimum:h,maximum:c}=n?.[0]??{},{x:u}=o?.[0]??{},d=ht.gauge,A,p;l?{minimumFromData:A,maximumFromData:p}=Sj({featureIndex:t,chartData:e,chartConfig:r}):i!==void 0&&({minimumFromData:A,maximumFromData:p}=a);let m=A??h??d.axisMinimum,f=p??c??d.axisMaximum,g=Fj({chartData:e,featureIndex:t,x:u});return{minimum:m,maximum:f,dataValue:g}}function Tj(s){let{oldConfig:t,axisMax:e,min:i,max:r,labelsIncrement:a,numberOfIntervals:n,valueFormat:o,minimumFromField:l}=s,h=Ou(o),c=!0;if(t!==void 0){let{minimum:u,minimumFromField:d,labelsIncrement:A,valueFormat:p}=t.axes[0],m=p?.intlOptions?.style!==o?.intlOptions?.style,f=aw(A)?A!==a:n!==ht.gauge.numberOfLabelIntervals;c=m||i!==u||l!==d||!h&&r!==e||f}return c}var Ds={InnerLabel:0,InnerLabelSecondary:1,AxisLabels:2,FirstAndLastLabels:3};function pu(s,t){let e;switch(t){case Ds.InnerLabel:e="gaugeAutoResizeInnerLabelFirstDisposer";break;case Ds.InnerLabelSecondary:e="gaugeAutoResizeInnerLabelSecondDisposer";break;case Ds.AxisLabels:e="gaugeAutoResizeAxisLabelsDisposer";break;case Ds.FirstAndLastLabels:e="gaugeAutoResizeFirstAndLastLabelsDisposer";break}if(e!==void 0){let i=ve(s.uid,e);i!==void 0&&(i.dispose(),i=void 0,ni(s.uid,{[e]:void 0}))}}function Pj(s){let{chart:t,labelList:e,scaleToAdjust:i,fontSize:r,type:a,axisConfig:n}=s,o=Number.NaN,l=Number.NaN,h=i;if(a===Ds.InnerLabel){let u=e[0],d=n?.innerLabel?.content?.verticalAlignment??Yt.Middle,A=u.dy??0,p=Math.round(t.chartContainer.measuredHeight-t.radarContainer.pixelY-A),m=u.bbox.height*i,f=0;switch(d){case Yt.Bottom:f=m;break;case Yt.Top:f=-m;break;case Yt.Middle:case Yt.Baseline:f=m*.5;break}f>p&&(h=i*(p/f)),o=re.gauge.innerLabelAutoMinFontSize,l=re.gauge.innerLabelAutoMaxFontSize}else o=re.gauge.axisLabelAutoMinFontSize,l=re.gauge.axisLabelAutoMaxFontSize;let c=r*h;return c<o?h*=o/c:c>l&&(h*=l/c),h}function Ow(s){let{chart:t,type:e,labelList:i,currentScale:r,currentFontSize:a,axisConfig:n}=s,o=Number.NaN,l=Number.NaN;if(e===Ds.InnerLabel){let h=typeof t.innerRadius=="number"?t.innerRadius:t.innerRadius.value;l=(t.xAxes.getIndex(0)?.measuredWidth!==0?t.xAxes.getIndex(0)?.measuredWidth??1:1)*h}else l=t.xAxes.getIndex(0)?.measuredHeight??1;if(l>1){let h=e===Ds.InnerLabel?i[0]?.measuredWidth??0:i.find(c=>c.measuredWidth>0&&c.measuredHeight>0)?.measuredHeight??0;if(h>0){let c=h/l;if(c>0){let{axisLabelToInnerChartRatio:u,innerLabelToInnerChartRatio:d}=re.gauge,A=e===Ds.InnerLabel?d:u;o=r*(A/c),o=Pj({chart:t,labelList:i,axisConfig:n,scaleToAdjust:o,fontSize:a,type:e}),o=Number(o.toFixed(2))}}}return Number.isFinite(o)||(o=r),o}function Dj(s){return s?.labels.content.font?.size===void 0||s?.innerLabel?.visible!==!1&&s?.innerLabel?.content?.font?.size===void 0}function Uv(s){return s.some(t=>op(t)&&t.value!==void 0)}function Lj(s){let{chart:t,axisConfig:e,axis:i}=s;if(e.labels.content.font?.size===void 0&&e.onlyShowFirstAndLastLabels!==!0){pu(t,Ds.AxisLabels),pu(t,Ds.FirstAndLastLabels);let r=()=>{i.events.once(ke.Validated,()=>{let n=tn(i,vr.GaugeTicksWithLabels);if(Uv(n)){let o=n.map(d=>d.label),l=o[0].scale,h=o[0].fontSize,c=Ow({chart:t,type:Ds.AxisLabels,labelList:o,currentScale:l,currentFontSize:h,axisConfig:e}),u=c/l;Number.isFinite(c)&&c>0&&(u<=.98||u>1.02)&&o.forEach(d=>{d.scale=c})}}),i.validate()};t.events.once(ke.Validated,r);let a=t.events.on(ke.SizeChanged,r);ni(t.uid,{gaugeAutoResizeAxisLabelsDisposer:a}),r()}else{pu(t,Ds.AxisLabels);let r=tn(i,vr.GaugeTicksWithLabels);r.length>0&&r.map(a=>a.label).forEach(a=>{a.scale=1})}}function Ij(s,t){let e=ve(s.uid,"config")?.axes?.[0];if(e?.innerLabel?.visible!==!1&&e?.innerLabel?.content?.font?.size===void 0){let i=s.xAxes.getIndex(0)?.measuredWidth;if(i!==void 0&&i>0){let r=Ow({chart:s,type:Ds.InnerLabel,labelList:[t],currentScale:t.scale,currentFontSize:t.fontSize,axisConfig:e});Number.isFinite(r)&&Math.abs(t.scale-r)>.25&&(t.scale=r,t.validate())}}else t.scale=1}function kj(s,t){pu(s,Ds.InnerLabel),pu(s,Ds.InnerLabelSecondary);let e=s.xAxes.getIndex(0),i=()=>{e?.events.once(ke.Validated,()=>{Ij(s,t)})},r=s.events.on(ke.Validated,i),a=s.events.on(ke.SizeChanged,i);ni(s.uid,{gaugeAutoResizeInnerLabelFirstDisposer:a,gaugeAutoResizeInnerLabelSecondDisposer:r}),i()}function nw(s){return s?.labels.content.font?.size===void 0&&s?.onlyShowFirstAndLastLabels===!0}function $j(s){let t=s.chart,e=ve(t.uid,"config")?.axes?.[0],i=tn(s,vr.GaugeFirstAndLastGuides);if(Uv(i)){let r=i.map(l=>l.label),a=r[0].scale,n=r[0].fontSize,o=Ow({chart:t,type:Ds.FirstAndLastLabels,labelList:r,currentScale:a,currentFontSize:n,axisConfig:e});Number.isFinite(o)&&o>0&&r.forEach(l=>{mu(l.uid,{originalWidth:l.measuredWidth/l.scale,originalHeight:l.measuredHeight/l.scale}),l.scale=o,l.validate()})}}function Oj(s){let{chart:t,axisConfig:e,axis:i}=s;if(nw(e)){pu(t,Ds.AxisLabels),pu(t,Ds.FirstAndLastLabels);let r=()=>{i.events.once(ke.Validated,()=>{$j(i)})},a=t.events.on(ke.SizeChanged,r);ni(t.uid,{gaugeAutoResizeFirstAndLastLabelsDisposer:a}),r()}else pu(t,Ds.FirstAndLastLabels),tn(i,vr.GaugeFirstAndLastGuides).map(r=>r.label).forEach(r=>{r.scale=1})}function ow(s,t){let e=s.xAxes.getIndex(0);if(e!==void 0){let i=t??ve(s.uid,"config"),{onlyShowFirstAndLastLabels:r}=i?.axes?.[0]??{};if(!e.renderer.labels.template.visible||r===!0)s.radius=new et(re.gauge.radius);else{let a=tn(e,vr.GaugeTicksWithLabels),{furthestLabelX:n,furthestLabelY:o}=a.reduce(({furthestLabelX:l,furthestLabelY:h,furthestPixelX:c,furthestPixelY:u},{label:d})=>{if(d?.visible&&d.bbox.width>0&&d.bbox.height>0){let A=d.pixelX,p=d.bbox.width*d.scale,m=0;A<0?m=Math.abs(A):m=A+p,m>c&&(c=m,l=d);let f=d.pixelY,g=d.bbox.height*d.scale,y=0;f<0?y=Math.abs(f):y=f+g,y>u&&(u=y,h=d)}return{furthestLabelX:l,furthestLabelY:h,furthestPixelX:c,furthestPixelY:u}},{furthestLabelX:void 0,furthestPixelX:0,furthestLabelY:void 0,furthestPixelY:0});if(n!==void 0&&o!==void 0){let l=(n.bbox.width+5)*n.scale,h=(o.bbox.height+5)*o.scale,c=typeof e.renderer.labels.template.radius=="number"?e.renderer.labels.template.radius:e.renderer.labels.template.radius.value,u=(l+c)*2+s.radarContainer.measuredWidth+pv(s.paddingLeft)+pv(s.paddingRight),d=80,A=170,p=s.htmlContainer?.clientHeight??0,m=Math.max(0,Math.min(1,(p-d)/(A-d))),f=s.radarContainer.measuredHeight+(h+c*m)*2+pv(s.paddingTop)+pv(s.paddingBottom),g=s.measuredWidth,y=s.measuredHeight,x=g/u,w=y/f,S=(typeof s.radius=="number"?s.radius:s.radius.value)*100,D=Number((S*x).toFixed(2)),T=Number((S*w).toFixed(2)),L=D/S,$=T/S,I=s.radarContainer.measuredWidth*L,R=s.radarContainer.measuredWidth*$,[F,H]=I<R?[D,L]:[T,$];Number.isFinite(F)&&F>=10&&F<=re.gauge.radius&&(H<.98||H>1.02)&&(s.radius=new et(F))}}}}function Ej(s){let t=s.xAxes.getIndex(0);t!==void 0&&(t.events.on(ke.SizeChanged,()=>ow(s)),t.events.on(ke.Validated,zs(()=>ow(s),re.debounceTime)))}function WI(s){let t=s.hands.push(new Zd),e=re.gaugeNeedle,{startWidth:i,endWidth:r,innerRadius:a}=e;t.pin.disabled=!0,t.startWidth=i??Number.NaN,t.endWidth=r??Number.NaN,t.innerRadius=he(a??Number.NaN);let n=s.xAxes.getIndex(0);return n!==void 0&&(t.axis=n),t}function Mj(s){let{x:t,data:e,chart:i,valueFormat:r,minimum:a,maximum:n}=s,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(c=>t in c),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,ni(i.uid,{gaugeData:o}))}else{let l=ve(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Ou(r)&&a!==void 0&&n!==void 0&&a!==null&&n!==null&&o!==null&&n-a!==0&&(o=Vf({value:o,axisMin:a,axisMax:n})),o}function Rj(s,t){let e=t??null;if(t!=null){let i=s.xAxes.getIndex(0),r=ve(s.uid,"config"),a=i.min??r?.axes?.[0].minimum??re.gauge.axisMinimum,n=i.max??r?.axes?.[0].maximum??re.gauge.axisMaximum;t<a?e=a:t>n&&(e=n)}return e}function Uj(s){let{chart:t,needle:e,gaugeValue:i}=s,r=t.hands.getIndex(0)??WI(t);if(r!==void 0){Mf({element:r,fillSymbol:e?.symbol});let{startWidth:a,endWidth:n,innerRadius:o}=re.gaugeNeedle;r.value=Rj(t,i),r.pin.disabled=e?.displayPin!==!0,r.visible=e?.visible??!0,r.startWidth=e?.startWidth??a,r.endWidth=e?.endWidth??n,r.innerRadius=he(e?.innerRadius??o)}}function Vj(s){let t=vl(void 0,s.radarContainer);t.isMeasured=!1,mu(t.uid,{isGaugeAxisInnerLabel:!0}),kj(s,t)}function Nj(s){let{chart:t,innerLabelConfig:e,valueFormat:i,gaugeValue:r,gaugeInnerLabelFormatter:a}=s,n=t.radarContainer.children.values.find(o=>gs(o.uid,"isGaugeAxisInnerLabel")===!0);if(n!==void 0){Cn({label:n,labelConfig:e,defaults:re.gaugeInnerLabel});let o=ve(t.uid,"formatLocale");n.html=qj({valueFormat:i,iLocale:t.language.locale,formatLocale:o,gaugeValue:r,innerLabelConfigContent:e?.content,gaugeInnerLabelFormatter:a}),t.radarContainer.invalidateLabels()}}function Hj(s){let t=s.axisRanges.create();return t.axisFill.fillOpacity=1,t.axisFill.disabled=!0,t.grid.strokeOpacity=1,t.grid.disabled=!1,t.tick.length=re.gaugeTicksLength,t}function Qj(s){let t=new Un;return t.disabled=!0,t.axis=s,Iv(t),t.padding(10,10,10,10),mu(t.uid,{isGaugeAxisLabel:!0}),t}function jj(s){let{axis:t,min:e,max:i,labelsIncrement:r,numberOfIntervals:a,valueFormat:n}=s,o=Ou(n),l=1,h=tn(t,vr.Ticks);h.length>0&&(l=h[0].label?.scale,h.forEach(d=>{if(op(d)){let A=t.axisRanges.values.indexOf(d);A>=0&&t.axisRanges.removeIndex(A)}}));let c=re.gauge.numberOfTicksBetweenTwoLabels+1,u=a*c+1;for(let d=0;d<u;d+=1){let A=d===u-1,p=Hj(t),m=A?i:e+d/c*r;p.value=o?Vf({value:m,axisMin:e,axisMax:i}):m,d%c===0&&(p.label=Qj(t),p.label.text=String(m),p.grid.disabled=!0,Number.isFinite(l)&&(p.label.scale=l))}}function Wj(s){let{chart:t,axis:e,onlyShowFirstAndLastLabels:i,valueFormat:r,axisLabelConfigContent:a,axisValueFormatter:n}=s;if(!i){let o=tn(e,vr.GaugeTicksWithLabels);if(Uv(o)){let l=ve(t.uid,"formatLocale");o.forEach(h=>{Cn({label:h.label,labelConfig:a}),op(h)&&(h.label.html=XI({valueFormat:r,iLocale:t.language.locale,formatLocale:l,gaugeLabelConfigContent:a?.content,itemLabelValue:h.value,axisValueFormatter:n}))})}}}function Xj(s,t){let e=t?.ticks?.visible??!0,i=tn(s,vr.Ticks);for(let r=0;r<i.length;r+=1){let a=i[r];Ri(a.tick,e)}}function zj(s,t){if(s instanceof He&&s.chart instanceof qs){let e=tn(s,vr.GaugeTicksWithLabels);if(Uv(e)){let{onlyShowFirstAndLastLabels:i,labels:r}=t,a=(r?.visible??!0)&&i!==!0;e.forEach(n=>{Ri(n.label,a)})}}}function Gj(s){let{labels:t,guides:e,onlyShowFirstAndLastLabels:i}=s,r=e??[];if(i===!0){let a={type:V.Guide,start:Number.NaN,style:{type:"esriSLS"},name:""};r.push({...a,start:s.minimum??Number.NaN,name:re.gaugeFirstLabelId,label:{...t.content,text:`${s.minimum}`}},{...a,start:s.maximum??Number.NaN,name:re.gaugeLastLabelId,label:{...t.content,text:`${s.maximum}`}})}s.guides=r}function Yj(s){tn(s,vr.GaugeFirstAndLastGuides).forEach(t=>{t.label.adapter.keys().includes("dx")||t.label.adapter.add("dx",e=>{let i=e;if(t.label.measuredWidth>0){let r=ve(s.chart.uid,"config")?.axes?.[0],a=gs(t.label.uid,"originalWidth"),n=nw(r)&&a!==void 0&&a===t.label.measuredWidth&&t.label.scale!==1;i=Math.round((n?a*t.label.scale:t.label.measuredWidth)/2),t.id===re.gaugeLastLabelId&&(i*=-1)}return i}),t.label.adapter.keys().includes("dy")||t.label.adapter.add("dy",e=>{let i=e;if(t.label.measuredHeight>0){let r=ve(s.chart.uid,"config")?.axes?.[0],a=gs(t.label.uid,"originalHeight"),n=nw(r)&&a!==void 0&&a===t.label.measuredHeight&&t.label.scale!==1;i=Math.round((n?a*t.label.scale:t.label.measuredHeight)/2)}return i})})}function Kj(s){let{chart:t,axis:e,onlyShowFirstAndLastLabels:i,valueFormat:r,gaugeLabelConfigContent:a,axisValueFormatter:n}=s;if(i){let o=tn(e,vr.GaugeFirstAndLastGuides),l=ve(t.uid,"formatLocale");o.forEach(h=>{h?.label!==void 0&&op(h)&&(h.label.html=XI({valueFormat:r,iLocale:t.language.locale,formatLocale:l,gaugeLabelConfigContent:a?.content,itemLabelValue:h.value,axisValueFormatter:n}))}),Yj(e)}}function Zj(s){let{chart:t,valueFormat:e,queryObject:i}=s;t.xAxes.clear(),Of({isXAxis:!0,axes:t.xAxes,valueFormat:e,queryObject:i});let r=t.xAxes.getIndex(0);r instanceof He&&(r.renderer.labels.template.disabled=!0,r.renderer.ticks.template.disabled=!0,WI(t),Vj(t),Ej(t),r.maxZoomFactor=1)}function qj(s){let{valueFormat:t,iLocale:e,formatLocale:i,innerLabelConfigContent:r,gaugeValue:a,gaugeInnerLabelFormatter:n}=s,o="";if(Number.isFinite(a))if(n!==void 0)o=n(a);else{let l=Eo(t),h=yl({type:V.NumberAxisFormat,iLocale:e,formatLocale:i});h.numberFormat=l,o=h.format(`${a}`),o=_a({textSymbol:{type:Dt.TS,...r,text:o},format:"html"}),o=Mr(o)}return o}function XI(s){let{valueFormat:t,iLocale:e,formatLocale:i,gaugeLabelConfigContent:r,itemLabelValue:a,axisValueFormatter:n}=s,o="";if(Number.isFinite(a))if(n!==void 0)o=n(a);else{let l=Eo(t),h=yl({type:V.NumberAxisFormat,iLocale:e,formatLocale:i});h.numberFormat=l,o=h.format(`${a}`),o=_a({textSymbol:{type:Dt.TS,...r,text:o},format:"html"}),o=Mr(o)}return o}function Jj(s){let{chart:t,chartConfig:e,data:i,queryObject:r,axisValueFormatter:a,gaugeInnerLabelFormatter:n,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}=s,{axes:c,series:u}=e,d=rg(e),A=ze(e.series),{featureIndex:p,x:m}=u[0],f=c?.[0],g=t.xAxes.getIndex(0),y={...f};if(g!==void 0&&y!==void 0){let{valueFormat:x,needle:w,innerLabel:S,onlyShowFirstAndLastLabels:D}=y;JC({axis:g,valueFormat:x,chartType:A})&&Of({isXAxis:!0,axes:t.xAxes,valueFormat:x,queryObject:r});let T=jI({featureIndex:p,chartData:t.data,chartConfig:e,gaugeMinMaxFromData:h,queryConfig:ve(t.uid,"queryConfig")});y.minimum=T.minimum,y.maximum=T.maximum;let{min:L,max:$,labelsIncrement:I,numberOfIntervals:R}=HI(y);Tj({oldConfig:ve(g.chart.uid,"config"),axisMax:g.max,min:L,max:$,labelsIncrement:I,numberOfIntervals:R,valueFormat:x})&&jj({axis:g,min:L,max:$,labelsIncrement:I,numberOfIntervals:R,valueFormat:x});let F={...y};Ou(x)?(F.minimum=0,F.maximum=1,QI({axisConfig:F,axisMin:y.minimum,axisMax:y.maximum})):(F.minimum=L,F.maximum=$),Gj(F),vv({axis:g,axisConfig:F,axisConfigIndex:0,chartType:V.GaugeSeries,axisValueFormatter:a,isTimeOnlyField:!1,utilsStrings:o,errorStrings:l}),g.renderer.labels.template.disabled||(g.renderer.labels.template.disabled=!0),g.renderer.ticks.template.disabled||(g.renderer.ticks.template.disabled=!0),Lj({chart:g.chart,axis:g,axisConfig:y}),Oj({chart:t,axis:g,axisConfig:y}),Xj(g,y),Wj({chart:t,axis:g,onlyShowFirstAndLastLabels:D??!1,valueFormat:x,axisLabelConfigContent:y.labels,axisValueFormatter:a}),Kj({chart:t,axis:g,onlyShowFirstAndLastLabels:D??!1,valueFormat:x,gaugeLabelConfigContent:y.labels,axisValueFormatter:a});let H=d?T?.dataValue:Mj({x:m,data:i,chart:t,minimum:y.minimum,maximum:y.maximum,valueFormat:x});Uj({chart:t,needle:w,gaugeValue:H}),Nj({chart:t,innerLabelConfig:S,valueFormat:x,gaugeValue:H,gaugeInnerLabelFormatter:n}),zj(g,y),ow(t,e),t.validateData()}}function eW(s){s.background.fill=xn(re.backgroundColor)}function Vv(s,t){s.background.fill=xn(t??re.backgroundColor)}function tW(s){let t=BI(re.headerContainer,s),e=vl(re.title,t),i=vl(re.subtitle,t);return s instanceof An&&(Bv(s,e),Bv(s,i),Uf({chart:s,label:e,labelType:ii.ChartTitle}),Uf({chart:s,label:i,labelType:ii.ChartSubTitle})),pQ(t),{headerContainer:t,title:e,subtitle:i}}function Nv(s,t){let{title:e,subtitle:i,headerContainer:r}=s;Cn({label:e,labelConfig:t?.title,defaults:re.titleLabel}),Cn({label:i,labelConfig:t?.subtitle,defaults:re.titleLabel}),SI(r,e.disabled&&i.disabled),Rc({chart:e.parent,label:e,labelType:ii.ChartTitle}),Rc({chart:i.parent,label:i,labelType:ii.ChartSubTitle})}function iW(s){let t=BI(re.footerContainer,s),e=vl(re.footer,t);return s instanceof An&&(Bv(s,e),Uf({chart:s,label:e,labelType:ii.ChartFooter})),{footerContainer:t,footer:e}}function Hv(s,t){let{footer:e,footerContainer:i}=s;Cn({label:e,labelConfig:t,defaults:re.footer}),SI(i,e.disabled||t?.content.text===""),Rc({chart:e.parent,label:e,labelType:ii.ChartFooter})}function zI(s){if(s instanceof Wt){let t=new po,e=new po;t.disabled=!0,e.disabled=!0,t.marginTop=-10,e.marginRight=0,s.scrollbarX=t,s.scrollbarY=e}}function rW(s,t){let e=t?0:-1;s.thumb.tabindex=e,s.startGrip.tabindex=e,s.endGrip.tabindex=e}function sW(s,t){if(t!==void 0){let e=Ec(t);[s.background,s.startGrip.background,s.endGrip.background,s.thumb.background,s.background.states.getKey("default")?.properties,s.startGrip.background.states.getKey("default")?.properties,s.endGrip.background.states.getKey("default")?.properties,s.thumb.background.states.getKey("default")?.properties,s.startGrip.background.states.getKey("hover")?.properties,s.endGrip.background.states.getKey("hover")?.properties,s.thumb.background.states.getKey("hover")?.properties,s.startGrip.background.states.getKey("down")?.properties,s.endGrip.background.states.getKey("down")?.properties,s.thumb.background.states.getKey("down")?.properties].forEach(i=>{i!==void 0&&(i.fill=e)})}}function aW(s,t){typeof t=="number"&&Number.isFinite(t)&&(s.orientation==="horizontal"?(s.height=t,s.minHeight=t):(s.width=t,s.minWidth=t))}function nW(s,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;s.startGrip.scale=e,s.endGrip.scale=e}}function oW(s,t){typeof t=="number"&&Number.isFinite(t)&&(s.orientation==="horizontal"?s.marginBottom=t:s.marginLeft=t,s.parent?.invalidateLayout())}function GI(s){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=s;if(t instanceof Wt){let r=ve(t.uid,"isRotated");(t.scrollbarX===void 0||t.scrollbarY===void 0)&&zI(t);let{scrollbarX:a,scrollbarY:n}=t;[a,n].forEach(o=>{let l=o.orientation==="horizontal"&&r!==!0||o.orientation==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(o.disabled=h,rW(o,!h),l!==void 0&&!h){let{width:c,color:u,gripSize:d,margin:A}=l;oW(o,A),sW(o,u),nW(o,d),aW(o,c)}})}}function lW(s,t){s.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&(e.strokeOpacity=0)})}function hW(s,t){let e=s.chart.legend.events.on(ke.Validated,()=>{gu({element:s.legendDataItem?.marker.children.getIndex(0),stylingInfo:t}),s.chart.legend.isReady()&&(e.dispose(),s.chart.legend.invalidate())})}function uW(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:a,colorMatch:n,rendererType:o}=s,l=t.dataFields.valueY??t.dataFields.valueX??e.y,h=!1,c=new Set,u,d=e.fillSymbol,A={seriesConfig:e,seriesIndex:i,seriesSymbol:d,colorMatch:n,isChartFillSymbol:!0},p={},m={},f=Zb(i);if(t.columns.length===0?p=Mc({seriesConfig:e,seriesIndex:i,seriesSymbol:d??f,element:new Oe,colorMatch:n,isChartFillSymbol:!0}):t.columns.each(g=>{let y=g.dataItem?.dataContext;if(Number.isFinite(y?.[l])){let x=on({dataItem:y,seriesConfig:e,chartSubType:a,colorMatch:n,rendererType:o}),w=y[re.xAxisField]===re.nullValue,S=(w&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:d)??f;p=Mc({...A,seriesSymbol:S,element:g,rendererSymbol:x}),gu({element:g,stylingInfo:p.stylingInfo}),w||(c.add(JSON.stringify(p.symbolWithColorInfo)),m=p)}}),r>1){let g=t.chart.legend.markers.values;g.length!==0?g.forEach(y=>{if(y.dataItem instanceof fo){let x=y.dataItem.marker.children.getIndex(0);x!==void 0&&x.baseSprite?.parent instanceof Hi?gu({element:x,stylingInfo:m.stylingInfo}):h=!0}}):h=!0}return h&&hW(t,m.stylingInfo),c.size<=1&&(u=m.symbolWithColorInfo??d),lW(t,l),u}function cW(s){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:a,rendererType:n}=s,o=s.seriesConfig,l=ve(t.chart.uid,"config"),h=l?.series.length??0,c=It(l?.series),u=uW({series:t,seriesConfig:o,seriesIndex:r,numberOfSeries:h,chartSubType:c,colorMatch:a,rendererType:n});e.set(i.get(o.id)??r,u),e.size===h&&nn({data:e,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:kv(t.chart)})}function YI(s){let{seriesConfig:t,series:e,seriesIndexMapper:i,rotationChanged:r,colorMatch:a,stackedType:n,rendererType:o,seriesIndex:l,seriesSymbolMapForEvent:h,queryObject:c}=s,{name:u}=t,d=ve(e.chart.uid,"config"),A=_n({config:d}),p=It(d?.series);Ri(e,t.visible);let m=u,f=e.dataFields?.customValue??"";(p===Ee.BarAndLineSplitBy||p===Ee.BarAndLineSplitByNoAggregation)&&(m=Zm({queryObject:c,fieldName:Vo(f),fieldValue:m})??m),xA(e,m),ww({series:e,seriesConfig:t,rotationChanged:r,stackedType:n,isRotated:A}),cW({series:e,seriesConfig:t,seriesIndex:l,seriesIndexMapper:i,colorMatch:a,rendererType:o,seriesSymbolMapForEvent:h}),Po(e.uid,{barSeriesLastUpdate:{numberOfColumnsUpdated:e.columns.length,updateProps:s}})}function dW(s){s.events.on(ke.Validated,()=>{let t=Hs(s.uid,"barSeriesLastUpdate");if(t!==void 0){let{numberOfColumnsUpdated:e,updateProps:i}=t;s.columns.length>e&&YI(i)}})}function AW(s){let{chart:t,chartConfig:e,seriesIndex:i,axisList:r=[],hideLoaderHandle:a,selectionTheme:n,queryObject:o}=s,{rotated:l}=e,h=e.series[i],{y:c,assignToSecondValueAxis:u}=h,d=new Hi;jc(d,a),d.id=h.id;let A,p;l!==!0?(A=r[0],p=u===!0&&r[2]?r[2]:r[1]):(A=u===!0&&r[2]?r[2]:r[0],p=r[1]),A!==void 0&&(d.xAxis=A),p!==void 0&&(d.yAxis=p);let m=t instanceof Wt?_n({chart:t}):!1,f=It(e.series)!==Ee.BarAndLineSplitByNoAggregation?c:`${c}_${Ch({where:h.query?.where,keepSurroundingQuotes:!1,escape:!1})}`;m?d.dataFields.valueX=f:d.dataFields.valueY=f;let g=m?r[1]:r[0];if(g!==void 0){let y=AI(g,m);d.dataFields[y]=re.xAxisField,d.baseAxis=g}return ww({series:d,seriesConfig:h,rotationChanged:!1,stackedType:e.stackedType,isRotated:m}),d.dataFields.customValue=h?.query?.where,xI(d.columns.template,d),d.columns.template.width=he(100),Qc({element:d.columns.template,customSelectionTheme:n}),Qf({chart:t,element:d.columns.template,queryObject:o}),Dw(d),dW(d),Hc(d),d}function pW(s){let{seriesConfig:t,series:e,seriesIndex:i,axes:r,utilsStrings:a,fieldList:n,queryObject:o,stackedType:l,options:h}=s;e.id=t.id;let c=_n({chart:e.chart});aj({series:e,seriesType:V.BarSeries,isRotated:c,stackedType:l,hideOversizedSideBySideLabels:t.hideOversizedSideBySideLabels,hideOversizedStackedLabels:t.hideOversizedStackedLabels,dataLabelsConfig:t.dataLabels,yAxisValueFormat:r[1].valueFormat,customDataLabelFormatter:h?.dataLabelFormatter}),$v({styleCallback:YI,callbackProps:s,series:e,seriesConfig:t,onReadyEvent:!0}),CI({series:e,seriesConfig:t,fieldList:n,queryObject:o,utilsStrings:a,seriesIndex:i,tooltipFormatter:h?.tooltipFormatter})}function fW(s){s.labels.template.adapter.add("html",(t,e)=>{let i=Hs(s.uid,"pieChartDataLabelFormatter"),r=t??"",{dataItem:a}=e;if(a instanceof Ta){let{slice:n}=a;if(n!==void 0&&!Ef(n))r="";else if(i!==void 0){let{value:o,percent:l}=a.values?.value??{};if(o!==void 0&&o!==0){let h=`${a.properties?.category??t}`;r=i(h,o,l)}}}return Yi(r)&&(r=re.htmlEmptyContent),Mr(r)})}function mW(s){let t=s.labels.template;t.maxWidth=re.pieChart.dataLabels.maxWidth??Number.NaN,t.wrap=re.pieChart.dataLabels.wrap??!0,t.events.on(ke.Over,e=>{let{dataItem:i}=e.target??{};i instanceof Ta&&i.slice.showTooltip()}),fW(s)}function gW(s,t){let{numericValueFormat:e,percentValueFormat:i,displayCategoryOnDataLabel:r,displayNumericValueOnDataLabel:a,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c,dataLabelsCharacterLimit:u}=t,d=Pw({iLocale:s.chart.language.locale,pieChart:s.chart,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:a??re.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??re.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}),A=Xm(u),p=Ra(s.rtl," ");return(m,f,g)=>{let y=d(m,f,g),x=r??re.pieChart.displayCategoryOnDataLabel?A(m):"",w=Yi(x)?"":`${x}${p}`;return w=`${w}${y}`,t.dataLabels?.content!==void 0&&(w=_a({textSymbol:{...t.dataLabels.content,text:w},format:"html",defaults:{...re.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??re.pieChart.dataLabels.wrap}})),w}}function yW(s){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=s,{dataLabels:r}=e,a=e.dataLabelsOffset??re.pieChart.dataLabelsOffset,n=e.dataLabelsInside??re.pieChart.dataLabelsInside;Po(t.uid,{pieChartDataLabelFormatter:i??gW(t,e)}),Cn({label:t.labels.template,labelConfig:r,defaults:{...re.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??re.pieChart.alignDataLabels},skipSettingText:!0}),t.alignLabels=!n&&(e.alignDataLabels??re.pieChart.alignDataLabels);let o=t.labels.template.radius;t.chart.invalidateData(),(n&&o!==he(-40)||!n&&o===he(-40)||a!==void 0&&Number.isFinite(a)&&o!==a)&&(t.labels.template.radius=n?he(-40):a,t.invalidate())}function vW(s,t){let e=(p,m,f)=>re.htmlEmptyContent,{numericValueFormat:i,percentValueFormat:r,dataTooltipValueFormat:a,dataTooltipPercentFormat:n,displayCategoryOnTooltip:o,displayNumericValueOnTooltip:l,displayPercentageOnTooltip:h,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A}=t;return e=(p,m,f)=>{let g=re.htmlEmptyContent,y=Pw({iLocale:s.chart.language.locale,pieChart:s.chart,valueIntlOptions:(a??i)?.intlOptions,percentageIntlOptions:(n??r)?.intlOptions,displayNumericValue:l??re.pieChart.displayNumericValueOnTooltip,displayPercentage:h??re.pieChart.displayPercentageOnTooltip,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A})("",m,f),x=!Yi(p)&&(o??re.pieChart.displayCategoryOnTooltip);if(x&&(g=`<b>${p}</b>`),!Yi(y)){let w=zm(y);g=x?`${g}<br />${w}`:w}return g},e}function bW(s){if(s.tooltip!==void 0){let t=s.fill;t instanceof fc?t=t.stroke:t instanceof mc&&(t=t.backgroundFill),s.tooltip.background.fill=t}}function xW(s){let t=s.slices.template;t.tooltipHTML=re.htmlEmptyContent,t.adapter.add("tooltipHTML",(e,i)=>{let r=e??"",{chart:a}=s;if(a!==void 0&&i.tooltip!==void 0){let n=ve(a.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)i.tooltip.disabled=!0;else{let l=Hs(s.uid,"pieChartTooltipFormatter");if(l!==void 0){let{dataItem:h}=i;if(h instanceof Ta){let c=h.properties.category??"",u=h.dataContext,d=so(u);d===void 0&&(d=c);let A=h.values?.value?.value,p=h.values?.value?.percent;typeof A=="number"&&A!==0&&n?.series?.[0]?.dataTooltipVisible!==!1?(i.tooltip.disabled=!1,bW(i),r=l(`${c}`,A,p,d)):i.tooltip.disabled=!0}}}}return Mr(r)})}function _W(s){let{series:t,seriesConfig:e,tooltipFormatter:i}=s;Po(t.uid,{pieChartTooltipFormatter:i??vW(t,e)})}function CW(s){s.ticks.template.adapter.add("disabled",(t,e)=>e.dataItem?.values?.value?.value===0||!Number.isFinite(e.dataItem?.values?.value?.value)||t===!0)}function wW(s){let{chartData:t,pieSeries:e,pieSlicesSymbols:i,seriesConfig:r}=s;if(e.slices.length===0){let a=[];t?.forEach(n=>{let o=xw({dataContext:n,pieSlicesSymbols:i,seriesConfig:r});a.push(Ec(o.color))}),a.length>0&&(e.colors.list=a)}}function BW(s){let{seriesConfig:t,hideLoaderHandle:e,selectionTheme:i}=s,{x:r,y:a,id:n,visible:o}=t,l=new ws;l.id=n,jc(l,e),l.dataFields.value=a,l.dataFields.category=r;let h=re.pieChart;l.startAngle=h.min,l.endAngle=360+l.startAngle,CW(l),xW(l),mW(l);let c=i!==void 0&&i.selectedElementsTheme?.transformation?.opacity===void 0?{...i,selectedElementsTheme:{...i?.selectedElementsTheme,transformation:{...i?.selectedElementsTheme?.transformation,opacity:1}}}:i;return Qc({element:l.slices.template,useNativeState:!0,customSelectionTheme:c}),l.slices.template.states.removeKey("hover"),Hc(l),l.hidden=o===!1,Dw(l),l}function SW(s){let{series:t,pieSlicesSymbols:e,seriesConfig:i,selectionTheme:r}=s;t.defaultState.reset(),t.slices.each((a,n)=>{let o=a.dataItem?.dataContext,l=xw({dataContext:o,pieSlicesSymbols:e,seriesConfig:i}),h=Mf({element:a,fillSymbol:l,defaultToColorFromRamp:!0,colorRampIndex:n,isChartFillSymbol:!0});r!==void 0&&r.selectedElementsTheme===void 0&&gu({element:a,stylingInfo:h,stateKey:aa.Active})})}function FW(s,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;s.ticks.template.disabled=i,s.ticks.template.strokeOpacity=re.pieChart.ticksOpacity;let r=e?.lineSymbol??ZA({color:Wb});i&&(r.width=0),Oc({element:s.ticks.template,lineSymbol:r,visible:!i})}function TW(s){let{chart:t,seriesConfig:e,series:i,pieSlicesSymbols:r,options:a,utilsStrings:n,queryObject:o}=s,{tooltipFormatter:l,dataLabelFormatter:h}=a??{},{x:c,y:u,id:d,innerRadius:A,startAngle:p,endAngle:m}=e;i.id=d;let f=It([e]),g=re.pieChart;i.dataFields.value=f!==Ee.PieFromFields?u:$u,i.dataFields.category=f!==Ee.PieFromFields?c:io;let y=t.radius instanceof et?t.radius.value:t.radius;t.innerRadius=he((A??g.innerRadius)*y),i.startAngle=p??g.min,i.endAngle=m??360+i.startAngle,yW({pieSeries:i,seriesConfig:e,dataLabelFormatter:h}),wW({chartData:t.data,pieSeries:i,pieSlicesSymbols:r,seriesConfig:e}),$v({styleCallback:SW,callbackProps:s,series:i,seriesConfig:e}),FW(i,e),_W({series:i,seriesConfig:e,tooltipFormatter:l})}async function sL(s){let{chart:t,hitSlice:e,multiSelect:i=!1,queryObject:r}=s,a=[],n=ve(t.uid,"config"),o=t.series.getIndex(0);if(n&&o!==void 0){let l=sI(o),h=bu(o),c={element:{},xAxisField:l,yAxisField:h,seriesIndex:0,chartConfig:n};o.slices.each((u,d)=>{u.isActive&&(u===e||i||u.dataItem instanceof Ta&&u.dataItem.label.isHover)?ah(u.dataItem?.dataContext)?(Hf({groupOfSlicesDataContext:u.dataItem?.dataContext})??[]).forEach(A=>{a.push({...c,element:void 0,elementDataContext:A,elementIndex:d})}):a.push({...c,element:u,elementDataContext:u.dataItem?.dataContext,elementIndex:d}):Kn({element:u,selected:!1,useNativeState:!0})}),a.forEach(u=>{Kn({element:u.element,selected:!0,useNativeState:!0})}),await Wf({chart:t,listSelectedElements:a,selectionSource:Pr.SelectionByClick,queryObject:r})}t.feedLegend()}function PW(s,t){let e=async a=>{let{target:n}=a;if(mI(s)&&s.series.getIndex(0)?.slices.template.togglable){let o=Ev(a,s);if(n instanceof Fa)await sL({chart:s,multiSelect:o,hitSlice:n,queryObject:t});else if(n instanceof Mi){let l=n.dataItem;if(l instanceof Ta){let{slice:h}=l;h.isActive=!h.isActive,await sL({chart:s,multiSelect:o,hitSlice:h,queryObject:t})}}else n===s.background&&await Wf({chart:s,listSelectedElements:[],selectionSource:Pr.SelectionByClick,queryObject:t})}},i=s.series.getIndex(0)?.slices.template;i!==void 0&&(i.events.on(ke.Hit,e),i.events.on(ke.DoubleHit,e));let r=s.series.getIndex(0)?.labels.template;r!==void 0&&r.events.on(ke.Hit,e),s.background.events.on(ke.Hit,e),s.background.events.on(ke.DoubleHit,e)}function aL(s){return s?.offsetParent!==null}function DW(s,t){s!==void 0&&t!==void 0&&window.IntersectionObserver!==void 0&&new IntersectionObserver(e=>{e[0].intersectionRatio>0&&(ve(s.uid,"chartWasCreatedWhileHidden")===!0?(s.reinit(),s.events.once(ke.Validated,()=>{s.reinit()}),s instanceof Wt&&Rv(s),ni(s.uid,{chartWasCreatedWhileHidden:!1})):ve(s.uid,"chartWasUpdatedWhileHidden")===!0&&(s.reinit(),ni(s.uid,{chartWasUpdatedWhileHidden:!1})))},{root:null}).observe(t)}function LW(s,t){let e=re.pieChart.dataLabels.maxWidth??100;if(s!=null){let{alignDataLabels:i,dataLabelsOffset:r=re.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:a,dataLabels:n,dataLabelsInside:o}=s;if(n?.visible===!0&&i===!0&&o!==!0&&a===!0){let l=typeof t.radius=="number"?t.radius/100:t.radius.value,h=t.chartContainer.measuredWidth,c=t.chartContainer.measuredHeight,u=l*Math.min(h,c),d=5,A=Math.floor((h-u)/2)-d-r;e=Math.min(A,e-d);let p=30;e<p&&(e=p)}}return e}function KI(s){if(qn(s)){let t=typeof s.radius=="number"?s.radius:s.radius.percent;ni(s.uid,{pieChartRadius:t});let e=()=>{let i=he(ve(s.uid,"pieChartRadius")??re.pieChart.chartOptimizedRadius),r=i,a=ve(s.uid,"config");if(a!==void 0){let{series:n}=a,{innerRadius:o,optimizeDataLabelsOverlapping:l,alignDataLabels:h,dataLabelsOffset:c=re.pieChart.dataLabelsOffset,dataLabels:u,dataLabelsInside:d}=n[0];if(u?.visible===!0&&h===!0&&l===!0&&d!==!0){let p=re.pieChart.chartOptimizedRadius/100,m=500,f=150,g=.6,y=.5,x=1,w=s.chartContainer.measuredWidth-c*2,S=Math.max(w-f,0)/(m-f),D=S<1?Math.max(S**x*g,.4):Math.min(S**y*g,p);r=he(D*100)}else r=he(re.pieChart.chartRadius);i.value.toFixed(1)!==r.value.toFixed(1)&&(ni(s.uid,{pieChartRadius:r.percent}),s.radius=r,s.innerRadius=he((o??re.pieChart.innerRadius)*r.value));let A=s.series?.values?.[0];A instanceof ws&&(A.labels.template.maxWidth=LW(a?.series[0],s))}return r};s.events.on(ke.SizeChanged,zs(e,re.debounceTime)),e(),s.validate()}}function ZI(s){if(s instanceof pr)KI(s);else if(!(s instanceof qs)){let t=()=>{let i=ve(s.uid,"config"),{chartPaddingMinSize:r,chartPaddingRightWhenLegendNotOnRight:a,chartContainerPaddingTopWhenRotated:n,chartContainer:o}=re,l=i?.series,h=ze(l),c=_n({config:i}),u=l?.[0]?.dataLabels?.visible??!0,d=re.chartDefaultPaddingRight;if(c&&u&&(h===V.LineSeries||h===V.ComboLineAndBarSeries||h===V.BarSeries&&(i?.stackedType??qb())===Gi.Side)){let p=0,m=f=>gs(f.uid,"isDataLabel")??!1;s.series.each(f=>{let g=f.bullets.values.find(m);g!==void 0&&g.clones.each(y=>{let x=y.measuredWidth;switch(y.horizontalCenter){case Yt.Middle:x/=2;break;case bi.Right:x*=-1;break;case bi.Left:}let w=y.pixelX+x;w>p&&(p=w,d=x)})})}d>=0&&(s.chartContainer.paddingRight=d),s.chartContainer.paddingTop=c?n:o.paddingTop;let A=i?.legend?.visible!==!1&&i?.legend?.position===st.Right;s.paddingRight=A?r:a},e=0;s.series.each(i=>{i.events.once(ke.Validated,()=>{e+=1,e===s.series.length&&t()})})}}function IW(s,t){s.adapter.add("criticalError",e=>(e.message=t.errors.simpleError,e))}function kW(s){let{data:t,seriesConfig:e,utilsStrings:i}=s,r=e[0],a=t?.reduce((d,A)=>{let p=A[$u]??A[r.y];return Number.isFinite(p)||(p=0),p+d},0),n=r?.sliceGrouping?.percentageThreshold??0,o=[],l,h=0,c=t?.find(d=>d[an.defaultGroupOfSlicesId]===!0)?.[ht.pieChart.technicalFieldGroupedSlices]??[],u=[...t,...c].filter(d=>{let A=!0,p=d[$u]??d[r.y];if(Number.isFinite(p)){let m=p/a*100;d[ht.pieChart.technicalFieldSlicePercent]=m,m<=n&&d[an.defaultGroupOfSlicesId]!==!0&&(h+=p,o.push(d),A=!1)}else d[an.defaultGroupOfSlicesId]!==!0&&(o.push(d),A=n===0||n===void 0);return d[an.defaultGroupOfSlicesId]===!0&&(l=d,A=!1),A});if(n>0&&o.length>0){let d=h/a*100,A=It(e)===Ee.PieFromFields,p={...l,[an.defaultGroupOfSlicesId]:!0,[A?io:r.x]:r.sliceGrouping?.label??i?.pieChart.defaultSliceGroupingLabel,[A?$u:r.y]:h,[ht.pieChart.technicalFieldSlicePercent]:d,[ht.pieChart.technicalFieldGroupedSlices]:o};u.push(p)}return u}function nL(s){let{creation:t,previousConfig:e,newConfig:i,dataInfo:r,dataUpdateNeeded:a,utilsStrings:n}=s,o=!1;if(r.data&&"dataItems"in r.data&&e?.series[0].type===V.PieSeries&&i?.series[0].type===V.PieSeries){let l=t||bw([e.series[0]],[i?.series[0]]);(a||l)&&(r.data.dataItems=kW({data:r.data.dataItems,seriesConfig:[i.series[0]],utilsStrings:n}),ig({arrayToSort:r.data.dataItems,chartConfig:i}),o=!0)}return o}function $W(s,t){let e=s.reduce((i,r)=>{if(r[an.defaultGroupOfSlicesId]===!0){let a=r[ht.pieChart.technicalFieldGroupedSlices];a!==void 0&&a.forEach(n=>{i.push(n)})}else i.push(r);return i},[]);return ig({arrayToSort:e,chartConfig:t}),e=ng({data:{dataItems:e},seriesConfig:t.series})?.dataItems??[],e}function qI(s,t){let e=s?.filter(i=>!ah(i));return!Ll(e,t)}function OW(s){let{dataContext:t,newLabel:e,x:i}=s;e===void 0?t[ht.originalCategoryValue]!==void 0&&(t[i]=t[ht.originalCategoryValue]):t[i]!==e&&(t[ht.originalCategoryValue]===void 0&&(t[ht.originalCategoryValue]=t[i]),t[i]=e)}function EW(s){let{data:t,newChartConfig:e,pieSlicesSymbols:i,fieldList:r}=s,a=e.series[0],n=It(e.series)===Ee.PieFromFields?io:a.x;t.forEach(o=>{let l=ah(o),h=o[ht.pieChart.technicalFieldSliceId],c=l?a.sliceGrouping?.label:qC(i?.slices,h)?.label;OW({dataContext:o,x:n,newLabel:c})}),eH({chartConfig:e,chartData:t,fieldList:r})}it.classNamePrefix="arcgis-charts-";function Ew(s){let{chart:t,localeInfo:e,chartLocale:i}=s;it.defaultLocale=i,t.language.locale=i,ni(t.uid,{formatLocale:e.formatLocale}),t.rtl=e.rtl}function Qv(s){let{chart:t,actionMode:e,cursorRange:i}=s;if(qn(t)){let r=e??ve(t.uid,"actionMode")??re.actionMode;ni(t.uid,{actionMode:r});let a=ve(t.uid,"filterBySelection");switch(r){case Vt.MonoSelection:case Vt.MultiSelection:case Vt.MultiSelectionWithCtrlKey:a!==!0?YH(t):XC(t);break;case Vt.Zoom:XC(t);break;case Vt.None:CA({chart:t,selectionSource:Pr.ClearSelection,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1}),XC(t);break}vH({chart:t,actionMode:r,cursorRange:i})}}function MW(s,t){t&&(s.tapToActivate=!0,s.tapTimeout=3e3,s.responsive.enabled=!0)}function RW(s){let{chart:t,axesConfig:e,chartType:i,isRotated:r,errorStrings:a,queryObject:n}=s;switch(Il({chartType:i,axesConfig:e,errorStrings:a}),i){case V.GaugeSeries:{ao(n),t instanceof qs&&e?.[0]?.valueFormat!==void 0&&Zj({chart:t,valueFormat:e[0].valueFormat,queryObject:n});break}case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:{wj({chart:t,chartType:i,isRotated:r,axesConfig:e,queryObject:n});break}}}function Mw(s){let{chart:t,chartConfig:e,chartConfig:{axes:i},rotationChanged:r,axisLabelsBehaviorChanged:a,chartType:n,isRotated:o,dualAxisChanged:l,timeIntervalInfoWasReset:h,data:c,queryObject:u,guideTooltipFormatter:d,xAxisLabelFormatter:A,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:m,gaugeInnerLabelFormatter:f,utilsStrings:g,errorStrings:y,gaugeMinMaxFromData:x}=s;switch(Il({chartType:n,axesConfig:i,errorStrings:y}),n){case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:{t instanceof Wt&&Bj({chart:t,chartConfig:e,rotationChanged:r,axisLabelsBehaviorChanged:a,isRotated:o,dualAxisChanged:l,timeIntervalInfoWasReset:h,timeIntervalInfo:c?.timeIntervalInfo??ve(t.uid,"timeIntervalInfo"),guideTooltipFormatter:d,xAxisLabelFormatter:A,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:m,utilsStrings:g,errorStrings:y,queryObject:u});break}case V.GaugeSeries:{t instanceof qs&&(ao(u),Jj({chart:t,chartConfig:e,data:(c??t.data).dataItems,queryObject:u,axisValueFormatter:A,gaugeInnerLabelFormatter:f,utilsStrings:g,errorStrings:y,gaugeMinMaxFromData:x}));break}}}function JI(s){let{chart:t,chartConfig:e,hideLoaderHandle:i,options:r,utilsStrings:a,queryObject:n}=s,{selectionTheme:o,ignoreSmoothRenderingLimit:l}=r??{};t.series.clear();let h,c,u=[],d=t instanceof Wt?[t.xAxes.getIndex(0),t.yAxes.getIndex(0),t.xAxes.getIndex(1)??t.yAxes.getIndex(1)]:void 0,A={hideLoaderHandle:i,selectionTheme:o,utilsStrings:a},p={...A,axisList:d};if(t instanceof Wt)for(let f=0;f<e.series.length;f+=1){let g=e.series[f];if(c=ze([g]),$l(e))h=ZQ({...p,chart:t,axisList:d,chartConfig:e,seriesIndex:f,queryObject:n}),u.push(...h.flat());else switch(c){case V.BarSeries:{h=AW({...p,chart:t,chartConfig:e,seriesIndex:f,queryObject:n}),u.push(h);break}case V.LineSeries:{ao(n),h=QQ({...p,chart:t,chartConfig:e,seriesIndex:f,ignoreSmoothRenderingLimit:l,queryObject:n}),u.push(h);break}}}else t instanceof pr&&e.series[0].type===V.PieSeries&&(h=BW({...A,seriesConfig:e.series[0]}),u.push(h));let m=CF({chartConfig:e,queryObject:n,chartData:t.data});m.length>0&&(t.colors.list=m.map(f=>{let[g,y,x,w]=f;return new xt({r:g,g:y,b:x,a:w})})),u.length>0&&t.series.pushAll(u),ZH(t)}function Rw(s){let{chart:t,chartConfig:e,chartConfig:{series:i,axes:r,chartRenderer:a},seriesIndexMapper:n,rotationChanged:o,seriesReordered:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,chartData:u,queryObject:d,options:A,dataWasUpdated:p,sortChanged:m,groupOfSlicesWasUpdated:f,pieSlicesSymbols:g,utilsStrings:y,errorStrings:x}=s,w=t.series.values,S=new Map,D=e.series.length,T=Ol(e),L=Ua(e),$=ln(d,A?.usePopupTemplateFieldsInfo),I=Ys(d),R=Gm(a,Gs(I)?void 0:I?.renderer);for(let[F,H]of i.entries()){let K=ze([H]),z=w[F],ee={numberOfSeries:D,series:z,seriesConfig:H,seriesIndex:F,colorMatch:T,queryObject:d,rendererType:R,options:A,dataWasUpdated:p,fieldList:$,sortChanged:m,utilsStrings:y},ie={...ee,axes:r,seriesIndexMapper:n},de=z;if(t instanceof Wt&&$l(e))de=w.find(G=>G.id===H.id),z!==void 0&&(de instanceof wr||de instanceof Pi)&&h2({...ee,chart:t,series:de,seriesIndexMapper:n,seriesSymbolMapForEvent:S,chartData:u,showOutliers:e.showOutliers,showMean:e.showMean,outliersVisibilityChanged:h,seriesReordered:l,standardizeValuesVisibilityChanged:c,rotationChanged:o,options:A});else switch(K){case V.BarSeries:pW({...ie,stackedType:L,seriesSymbolMapForEvent:S,rotationChanged:o});break;case V.LineSeries:zQ({...ie,stackedType:L,seriesSymbolMapForEvent:S,rotationChanged:o});break;case V.PieSeries:TW({...ee,chart:t,groupOfSlicesWasUpdated:f,pieSlicesSymbols:g,selectionTheme:A?.selectionTheme});break}}v2({chart:t,options:A,dataWasUpdated:p,chartData:u,chartConfig:e,queryObject:d,rotationChanged:o,sortChanged:m,groupOfSlicesWasUpdated:f,errorStrings:x})}function Uw(s){let{chartConfig:t}=s,{chart:e,options:i,globalOptions:r,colorMatchApplied:a,pieSlicesSymbols:n,queryObject:o,utilsStrings:l,errorStrings:h,dataInfo:c,loaderHandle:u}=s,{disableTogglingLegendItems:d,cursorRange:A,actionMode:p,pieChartLegendValueLabelFormatter:m,guideTooltipFormatter:f,xAxisLabelFormatter:g,yAxisLabelFormatter:y,secondaryYAxisLabelFormatter:x,gaugeInnerLabelFormatter:w,usePopupTemplateFieldsInfo:S}=i??{},{data:D,count:T,queryConfig:L,gaugeMinMaxFromData:$={}}=c??{},I,R,F,H=ze(t.series),K=ln(o,S);ni(e.uid,{fieldList:K,options:i,elementCount:T,queryConfig:L,timeIntervalInfo:D?.timeIntervalInfo,serverLimitReached:D?.serverLimitReached});let z=new Map;t.series.forEach((Ze,We)=>{z.set(Ze.id,We)});let ee=In(D);ee!==void 0&&(e.data=ee);let ie=It(t.series);e instanceof pr&&nn({data:n,htmlContainer:e.htmlContainer,chartId:e.id,colorMatchApplied:a===!0});let{title:de,subtitle:G,footer:Y,series:xe,background:ae}=t;I=tW(e),Nv(I,{title:de,subtitle:G}),R=iW(e),Hv(R,Y),F=HQ(e,xe),fQ(e);let le=_n({config:t});ni(e.uid,{config:t,isRotated:le,isNonAggregatedChart:!ep(ie)}),t.axes!==void 0&&(RW({chart:e,axesConfig:t.axes,chartType:H,isRotated:le,errorStrings:h,queryObject:o}),Mw({chart:e,chartConfig:t,chartType:H,isRotated:le,data:D,queryObject:o,guideTooltipFormatter:f,xAxisLabelFormatter:g,yAxisLabelFormatter:y,secondaryYAxisLabelFormatter:x,gaugeInnerLabelFormatter:w,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:$})),JI({chart:e,chartConfig:t,hideLoaderHandle:u.hideLoader,utilsStrings:l,options:i,queryObject:o}),Rw({chart:e,chartConfig:t,seriesIndexMapper:z,rotationChanged:!1,queryObject:o,chartData:D,groupOfSlicesWasUpdated:!0,pieSlicesSymbols:n,dataWasUpdated:!0,options:i,utilsStrings:l,errorStrings:h}),Lw({legendElements:F,seriesConfig:xe,webChartLegend:t.legend,pieChartLegendValueLabelFormatter:m}),zI(e),eW(e),Vv(e,ae),GI({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar}),eI(e),tI(e,t?.cursorCrosshair),Qv({chart:e,actionMode:p,cursorRange:A});let Ie=fd(e.htmlContainer??document.documentElement);return e.dateFormatter.intlLocales=Ie,MW(e,r?.enableResponsiveFeatures),(e instanceof qs||Sw(e.series))&&xh(e.htmlContainer),ZI(e),I!==void 0&&R!==void 0&&F!==void 0?{headerElements:I,footerElements:R,legendElements:F}:void 0}function ek(s){s.series.each(t=>{t.events.on(ke.Ready,()=>{Sw(s.series)&&Rv(s)})})}function UW(s){let{chartContainer:t,chartConfig:e,queryObject:i,colorMatchApplied:r,dataInfo:a,t9nStrings:n,options:o,globalOptions:l,loaderHandle:h}=s,{errorStrings:c,utilsStrings:u,amChartsStrings:d}=n,A=lf(t,Wt);A.id=e?.id??A.uid,ni(A.uid,{queryObject:i});let{t9nLocale:p}=Du(A.htmlContainer??document.documentElement),m=fd(A.htmlContainer??document.documentElement),f=Om(A.htmlContainer??document.documentElement)==="rtl";Ew({chart:A,localeInfo:{locale:p,formatLocale:m,rtl:f},chartLocale:d}),A.events.on(ke.Inited,()=>A.zoomOutButton.deepInvalidate());let g=ze(e?.series);A instanceof Wt&&g!==V.BoxPlotSeries&&(A.maskBullets=!1);let y=Uw({chartConfig:e,chart:A,queryObject:i,colorMatchApplied:r,options:o,globalOptions:l,utilsStrings:u,errorStrings:c,dataInfo:a,loaderHandle:h});return ni(A.uid,{config:Tr(e)}),ek(A),XH(A,i),zH(A,i),{chart:A,chartElements:y}}function VW(s){let{chartContainer:t,chartConfig:e,queryObject:i,dataInfo:r,colorMatchApplied:a,pieSlicesSymbols:n,t9nStrings:{errorStrings:o,utilsStrings:l,amChartsStrings:h},options:c,globalOptions:u,loaderHandle:d}=s,A=lf(t,pr);A.id=e?.id??A.uid;let p=Sx(A.htmlContainer);Ew({chart:A,localeInfo:p,chartLocale:h}),A.radius=he(re.pieChart.chartRadius);let m=Uw({chartConfig:e,chart:A,queryObject:i,colorMatchApplied:a,pieSlicesSymbols:n,dataInfo:r,options:c,globalOptions:u,utilsStrings:l,errorStrings:o,loaderHandle:d});return ni(A.uid,{config:Tr(e),filterBySelection:c?.filterBySelection}),PW(A,i),{chart:A,chartElements:m}}function NW(s){let{chartContainer:t,chartConfig:e,queryObject:i,dataInfo:r,t9nStrings:{errorStrings:a,utilsStrings:n,amChartsStrings:o},options:l,globalOptions:h,loaderHandle:c}=s,u=lf(t,qs);u.id=e?.id??u.uid;let d=Sx(u.htmlContainer);Ew({chart:u,localeInfo:d,chartLocale:o}),u.maskBullets=!1;let A=re.gauge,p=Number.isFinite(e?.innerRadius)?e?.innerRadius:A.innerRadius,m=Number.isFinite(e?.startAngle)?e?.startAngle:A.startAngle,f=Number.isFinite(e?.endAngle)?e?.endAngle:A.endAngle;u.radius=he(A.radius),typeof p=="number"&&(u.innerRadius=he(p)),typeof m=="number"&&(u.startAngle=m),typeof f=="number"&&(u.endAngle=f);let g=Uw({chartConfig:e,chart:u,queryObject:i,dataInfo:r,options:l,globalOptions:h,utilsStrings:n,errorStrings:a,loaderHandle:c});return ni(u.uid,{config:Tr(e)}),ek(u),t?.ownerDocument.addEventListener("visibilitychange",()=>{let y=t.ownerDocument.hidden;u&&!y&&Dj(e?.axes?.[0])&&(u.svgContainer?.measure(),u.invalidateData())}),{chart:u,chartElements:g}}function HW(s){let{newConfig:t}=s,{chart:e,chartElements:i,dataWasUpdated:r,dataUpdateDetails:a,dataInfo:n,options:o,configWithAllSeries:l,hasSeriesFilteredOut:h,queryObject:c,utilsStrings:u,errorStrings:d,loaderHandle:A}=s,{guideTooltipFormatter:p}=o??{},{gaugeMinMaxFromData:m={}}=n,f=ve(e.uid,"config"),g=f?.series,y=t.series,x=ze(y),w=_n({config:t});ni(e.uid,{config:Tr(t),isRotated:w}),ni(e.uid,{filterBySelection:o?.filterBySelection}),Qv({chart:e,actionMode:o?.actionMode,cursorRange:o?.cursorRange});let{xOrYChanged:S,layerChanged:D}=a?.common??{},{numberOfSeriesChanged:T}=a?.common??{},L=gx(f,t),$=yx(f,t),I=zF(f,t),R=GF(f,t),F=JSON.stringify(ip(g))!==JSON.stringify(ip(y)),H=!1,K=!1;$l(t)&&$l(f)&&(H=KF(f,t),K=ZF(f,t));let z=ap({oldConfig:h?l:f,newConfig:t,dataWasUpdated:r}),ee=jb({oldConfig:f,newConfig:t,rotationChanged:$}),ie=NI({chart:e,dualAxisChanged:I,rotationChanged:$,timeIntervalInfoWasReset:L,axisLabelsBehaviorChanged:ee}),de=!1,G=In(n?.data),Y=It(y);if(ni(e.uid,{isNonAggregatedChart:!ep(Y)}),r){let{count:Ie,data:Ze,queryConfig:We}=n??{};ni(e.uid,{elementCount:Ie,queryConfig:We,timeIntervalInfo:Ze?.timeIntervalInfo,serverLimitReached:Ze?.serverLimitReached}),xh(e.htmlContainer)}else if(x===V.BarSeries||x===V.LineSeries||x===V.RadarSeries||x===V.ComboLineAndBarSeries||x===V.BoxPlotSeries){let Ie=vx(g,y);if(Ie.length>0&&(UN(e.series,Ie),e.feedLegend(),de=!0),EF(y[0])){let{binTemporalData:Ze}=y[0],{unit:We,size:Je}=y[0].temporalBinning??{};Ze===!1&&We!==void 0&&Je!==void 0&&ni(e.uid,{timeIntervalInfo:{unit:We,size:Je}})}}z&&(r||(e.validateData(),x===V.BoxPlotSeries&&e.series.each(Ie=>{Ie instanceof Pi&&!(Ie instanceof pa)&&Ie.id.includes(Wi.Outliers)&&Ie.validateData()})));let xe=new Map;t.series.forEach((Ie,Ze)=>{xe.set(Ie.id,Ze)}),T=T||h,G&&(r||z)&&(e.data=G),t.axes!==void 0&&Mw({chart:e,chartConfig:t,rotationChanged:$,timeIntervalInfoWasReset:L,axisLabelsBehaviorChanged:ee,chartType:x,isRotated:w,dualAxisChanged:I,guideTooltipFormatter:p,xAxisLabelFormatter:o?.xAxisLabelFormatter,yAxisLabelFormatter:o?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:o?.secondaryYAxisLabelFormatter,queryObject:c,utilsStrings:u,errorStrings:d,gaugeMinMaxFromData:m});let ae=x===V.BoxPlotSeries&&(XF(y,g)||WF(y,g));(e.series===void 0||e.series.length===0||S||D||T||F||(x===V.BarSeries||x===V.LineSeries||x===V.RadarSeries||x===V.ComboLineAndBarSeries)&&e.series.length!==t.series.length||ie||R||ae||a?.boxPlot?.showMeanChanged)&&(!r&&($||ae||ie)&&e.invalidateData(),JI({chart:e,chartConfig:t,hideLoaderHandle:A.hideLoader,utilsStrings:u,queryObject:c,options:o})),Rw({chart:e,chartConfig:t,seriesIndexMapper:xe,rotationChanged:$,seriesReordered:de,outliersVisibilityChanged:H,standardizeValuesVisibilityChanged:K,queryObject:c,chartData:n.data,options:o,dataWasUpdated:r,sortChanged:z,utilsStrings:u,errorStrings:d}),Nv(i.headerElements,{title:t.title,subtitle:t.subtitle}),Hv(i.footerElements,t.footer),Lw({legendElements:i.legendElements,seriesConfig:t.series,webChartLegend:t.legend,disableTogglingLegendItems:o?.disableTogglingLegendItems}),Vv(e,t.background),GI({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar}),tI(e,t?.cursorCrosshair);let le=gH(e);(le.behavior===ji.SelectX||le.behavior===ji.SelectXY||le.behavior===ji.SelectY||le.behavior===ji.None)&&e.scrollbarX.start===0&&e.scrollbarX.end===1&&e.scrollbarY.start===0&&e.scrollbarY.end===1&&Rv(e),ZI(e),VI(e.series.values[0])}function QW(s){let{chart:t,chartElements:e,dataWasUpdated:i,newConfig:r,pieSlicesSymbols:a,queryObject:n,options:o,dataInfo:l,utilsStrings:h,errorStrings:c}=s,u=ve(t.uid,"config"),d=u?.series,A=r?.series,p=ap({oldConfig:u,newConfig:r,dataWasUpdated:i}),m=bw(d,A),{count:f,data:g,queryConfig:y}=l??{},x=In(g);ni(t.uid,{filterBySelection:o?.filterBySelection,config:Tr(r)});let w=x!==void 0&&(t.data.length!==x.length||qI(t.data,x));w&&(ni(t.uid,{elementCount:f,queryConfig:y}),t.data=x,xh(t.htmlContainer)),(p||m)&&t.validateData(),nn({data:a,htmlContainer:t.htmlContainer,chartId:t.id,colorMatchApplied:kv(t,r)}),Rw({chart:t,queryObject:n,chartConfig:r,seriesIndexMapper:new Map,options:o,dataWasUpdated:w,sortChanged:p,chartData:g,groupOfSlicesWasUpdated:m,pieSlicesSymbols:a,utilsStrings:h,errorStrings:c}),Nv(e.headerElements,{title:r.title,subtitle:r.subtitle}),Hv(e.footerElements,r.footer),Lw({legendElements:e.legendElements,seriesConfig:r.series,webChartLegend:r.legend,disableTogglingLegendItems:o?.disableTogglingLegendItems,pieChartLegendValueLabelFormatter:o?.pieChartLegendValueLabelFormatter}),Vv(t,r.background),Qv({chart:t,actionMode:o?.actionMode,cursorRange:o?.cursorRange}),KI(t)}function jW(s){let{chart:t,chartElements:e,newConfig:i,queryObject:r,dataInfo:a,dataWasUpdated:n,options:o,utilsStrings:l,errorStrings:h}=s,{gaugeMinMaxFromData:c={}}=a??{},{xAxisLabelFormatter:u,gaugeInnerLabelFormatter:d,guideTooltipFormatter:A}=o??{},p=i.series,m=ze(p),f;if(n){let{count:S,data:D,queryConfig:T}=a??{};f=D,f?.dataItems!==void 0&&(t.data=f.dataItems),xh(t.htmlContainer),ni(t.uid,{elementCount:S,queryConfig:T})}i.axes!==void 0&&Mw({chart:t,chartConfig:i,chartType:m,data:f,queryObject:r,xAxisLabelFormatter:u,gaugeInnerLabelFormatter:d,guideTooltipFormatter:A,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:c});let g=re.gauge,y=Number.isFinite(i?.innerRadius)?i.innerRadius:g.innerRadius,x=Number.isFinite(i?.startAngle)?i.startAngle:g.startAngle,w=Number.isFinite(i?.endAngle)?i.endAngle:g.endAngle;t.innerRadius=he(y),t.startAngle=x,t.endAngle=w,Nv(e.headerElements,{title:i.title,subtitle:i.subtitle}),Hv(e.footerElements,i.footer),Vv(t,i.background),ni(t.uid,{config:Tr(i)})}function WW(s){let{chartContainer:t,chartConfig:e,colorMatchApplied:i,pieSlicesSymbols:r,queryObject:a,dataInfo:n,t9nStrings:o,options:l,globalOptions:h,loaderHandle:c}=s;it.commercialLicense=!(h?.showLicenseWatermark??h?.hideLicenseWatermark===!1),it.queue=h?.queueChartCreation!==!1,it.autoDispose=h?.autoDisposeChart===!0,h?.useAnimatedCharts===!0?y_(_y):v_(_y);let u;switch(ze(e?.series)){case V.PieSeries:ao(a),u=VW({chartContainer:t,chartConfig:e,queryObject:a,dataInfo:n,colorMatchApplied:i,pieSlicesSymbols:r,options:l,globalOptions:h,t9nStrings:o,loaderHandle:c});break;case V.GaugeSeries:ao(a),u=NW({chartContainer:t,chartConfig:e,queryObject:a,dataInfo:n,options:l,globalOptions:h,t9nStrings:o,loaderHandle:c});break;default:u=UW({chartContainer:t,chartConfig:e,dataInfo:n,colorMatchApplied:i,queryObject:a,options:l,globalOptions:h,t9nStrings:o,loaderHandle:c});break}return u}function XW(s){let{chartContainer:t,chartConfig:e,t9nStrings:i,queryObject:r,options:a,colorMatchApplied:n,rendererFieldNames:o,pieSlicesSymbols:l,globalOptions:h,dataInfo:c,uniqueInternalID:u,loaderHandle:d}=s,{errorStrings:A}=i,p=!aL(t),m=WW({chartContainer:t,chartConfig:e,dataInfo:c,colorMatchApplied:n,pieSlicesSymbols:l,queryObject:r,t9nStrings:i,options:a,globalOptions:h,loaderHandle:d}),{chart:f,chartElements:g}=m;ni(f.uid,{chartWasCreatedWhileHidden:p,queryObject:r,filterBySelection:a?.filterBySelection,options:a,colorMatchApplied:n,rendererFieldNames:o}),IW(f,A),DW(f,t);function y(){u&&BF.delete(u),f.isDisposed()||(DH(f),g!==void 0&&(m.chartElements=void 0),f.dispose())}function x(T){let{newChartConfig:L,dataWasUpdated:$,dataUpdateDetails:I,queryObject:R,updateOptions:F,t9nStrings:{utilsStrings:H},configWithAllSeries:K,hasSeriesFilteredOut:z,pieSlicesSymbols:ee,dataInfo:ie,loaderHandle:de}=T,G=ve(f.uid,"config"),Y=L?.series,xe=Y!==void 0?ze(Y):void 0;if(f.isDisposed()||g===void 0||!lx(G,L))throw new Ln(cd.ChartDisposed);switch(xe){case V.BoxPlotSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:f instanceof Wt&&HW({chart:f,chartElements:g,queryObject:R,dataWasUpdated:$,dataUpdateDetails:I,dataInfo:ie,newConfig:L,configWithAllSeries:K,hasSeriesFilteredOut:z,options:F,utilsStrings:H,errorStrings:A,loaderHandle:de});break;case V.PieSeries:ao(R),QW({chart:f,chartElements:g,queryObject:R,dataWasUpdated:$,dataInfo:ie,newConfig:L,pieSlicesSymbols:ee,options:F,utilsStrings:H,errorStrings:A});break;case V.GaugeSeries:ao(R),jW({chart:f,chartElements:g,newConfig:L,queryObject:R,dataWasUpdated:$,dataInfo:ie,options:F,utilsStrings:H,errorStrings:A});break}}function w(T){let{newChartConfig:L,updateOptions:$,dataWasUpdated:I,dataUpdateDetails:R,configWithAllSeries:F,hasSeriesFilteredOut:H,pieSlicesSymbols:K,colorMatchApplied:z,rendererFieldNames:ee,updateGlobalOptions:ie,t9nStrings:de,queryObject:G,dataInfo:Y,loaderHandle:xe}=T,ae=!aL(t),le=ln(G,a?.usePopupTemplateFieldsInfo);ni(f.uid,{chartWasUpdatedWhileHidden:ae,options:$,fieldList:le,queryObject:G,colorMatchApplied:z,rendererFieldNames:ee}),x({newChartConfig:L,updateOptions:$,dataWasUpdated:I,dataUpdateDetails:R,pieSlicesSymbols:K,t9nStrings:de,configWithAllSeries:F,hasSeriesFilteredOut:H,queryObject:G,dataInfo:Y,loaderHandle:xe})}async function S(T){if(qn(f)&&(f instanceof Wt||f instanceof pr)){let L=ve(f.uid,"actionMode");L!==Vt.MonoSelection&&L!==Vt.None&&await GH(f,T)}}function D(){Rv(f)}return{update:w,dispose:y,resetZoom:D,clearSelection:()=>CA({chart:f}),switchSelection:async T=>await S(T),exportImage:async T=>await LH({chart:f,exportOptions:T}),setActionMode:(T,L)=>Qv({chart:f,actionMode:T,cursorRange:L}),loaderHandle:d}}var zW="AM5C241025748",Ai={SelectEnded:"selectended",DataValidated:"datavalidated",BoundsChanged:"boundschanged",PointerUp:"pointerup",FrameEnded:"frameended",Click:"click"},lw=new Map;function GW(s,t){return Xc(s,t)}function YW(s,t){Wc(s,t)}function Wc(s,t){let e=lw.get(s)??{};lw.set(s,{...e,...t})}function Xc(s,t){return lw.get(s)?.[t]}function fe(s,t){return Xc(s,t)}function Kr(s,t){Wc(s,t)}function Rt(s,t){return Xc(s,t)}function hs(s,t){Wc(s,t)}function To(s,t){return Xc(s,t)}function wA(s,t){Wc(s,t)}function _l(s,t){return Xc(s,t)}function KW(s,t){Wc(s,t)}function rn(s,t){return Xc(s,t)}function Vw(s,t){Wc(s,t)}function ZW(s,t){return Xc(s,t)}function qW(s,t){Wc(s,t)}function Nw(s){return s!=null&&!s.isDisposed()}function JW(s){let t;if(s!=null){let e=s;if(e instanceof Yr)t=e.chart;else{let i=e.dataItem?.component;i instanceof Yr&&(t=i.chart)}}return t}function tk(s){let t;if(s){let e=s.get("background")?.get("fill");if(e){let{r:i,g:r,b:a}=e;t=[Math.round(i),Math.round(r),Math.round(a),255]}}return t}function ik(s){let t=ia(s),{r:e,g:i,b:r}=t;return{r:e,g:i,b:r}}function e4(s,t){t&&s.setThemes([U1.new(s)])}function t4(s,t){t===!0&&s.setThemes([R1.new(s)])}function Xt(s){let t=ia("#000000"),e=hd;if(s!=null){let[i,r,a,n]=s;e=n/255,t=ia(`rgba(${i}, ${r}, ${a}, ${e})`)}return{color:t,opacity:e}}function Zi(s,t){t===!1&&(!("isHiding"in s)||!s.isHiding())?(s.set("visible",!1),"hide"in s&&s.hide()):t!==!1&&(!("isShowing"in s)||!s.isShowing())&&(s.set("visible",!0),"show"in s&&s.show())}function Ii(s){let{childId:t,parent:e,useChildId:i}=s,r=i?t:Ns(t,e.uid);return e.children.values.find(a=>a.get("id")===r)}function Ns(s,t){return`${s}${t}`}function yu(s,t=100){return setTimeout(()=>s(),t)}function oL(s){let t=Number.NaN;if(typeof s=="number")t=s;else if(s.includes("%")){let e=Number.parseFloat(s.trim().replace("%","").trim());Number.isFinite(e)&&(t=Bt(e))}return t}function i4(s,t){return t!==!0||s?.includes("Dot")===!0?"round":"square"}function r4(s,t){let e=s??As.Solid,i=t??q.lineWidth,r={[As.Solid]:[],[As.Dot]:[1,i],[As.DashDotDot]:[4*i,i,1,i,1,i],[As.Dash]:[4*i,3*i],[As.DashDot]:[4*i,3*i,1,3*i],[As.Null]:[]};return r[e]??r[As.Null]}function s4(s){let{root:t,fill:e,rotation:i,isLinePattern:r,chartBackgroundFill:a}=s,n;if(r!==!1){let{tileSize:o,diagonalTileSize:l}=q.patternLineProperties,h=i===45||i===135,c=h?l:o;n=ih.new(t,{width:c,height:c,strokeWidth:q.patternLineProperties.strokeWidth??1,gap:6,color:e,...h?{angle:i}:{rotation:i??Number.NaN},...a!==void 0&&{fill:a,fillOpacity:1}})}else{let o=a!==void 0?1:q.patternRectProperties.fillOpacity??Number.NaN;n=su.new(t,{width:q.patternRectProperties.width??Number.NaN,height:q.patternRectProperties.height??Number.NaN,strokeWidth:q.patternRectProperties.strokeWidth??Number.NaN,fillOpacity:o,color:a??e,fill:e,gap:1,maxWidth:q.patternRectProperties.rectWidth??Number.NaN,maxHeight:q.patternRectProperties.rectHeight??Number.NaN,rotation:i??Number.NaN})}return n}function a4(s){let{fill:t,root:e,style:i,chartBackgroundFill:r}=s,a,n,o=!0;switch(i){case bs.Horizontal:{n=0;break}case bs.Vertical:{n=90;break}case bs.ForwardDiagonal:{n=135;break}case bs.BackwardDiagonal:{n=45;break}case bs.Cross:{n=0,o=!1;break}case bs.DiagonalCross:{n=135,o=!1;break}case bs.Solid:}return n!==void 0&&e!==void 0&&(a=s4({root:e,fill:t,rotation:n,isLinePattern:o,chartBackgroundFill:r})),a}function rk(s,t=0){return(s??t)%360}function sk(s,t){let e={stroke:Xt().color,strokeWidth:q.lineWidth,strokeDasharray:[],linecap:t!==!0?"round":"square",strokeOpacity:hd};if(s!=null){let i=Xt(s.color);e.stroke=i.color,e.strokeOpacity=i.opacity,s.width!==void 0&&(e.strokeWidth=s.width,e.strokeOpacity=s.width===0?0:i.opacity),s.style!==void 0&&s.style!==As.Null&&(e.strokeDasharray=r4(s.style,e.strokeWidth),e.linecap=i4(s.style,t))}return e}function ak(s,t){let e=s,[i,r,a,n]=s?.color??t??q.color,o=[i,r,a,n];return e==null?e={type:Dt.SLS,color:o}:e.color===void 0&&(e.color=o),sk(e,!1)}function n4(s,t,e){let{color:i,outline:r,style:a}=s,n=Xt(i),o=ix(a),l;return e!==void 0?l=Xt(e).color:o&&(l=Xt(q.backgroundColor).color),{pattern:a4({root:t,fill:n.color,style:a,chartBackgroundFill:l}),fill:n.color,outline:ak(r,i),fillOpacity:n.opacity}}function o4(s){let{color:t,style:e,size:i,outline:r,xoffset:a,yoffset:n,angle:o}=s,l=rk(o),h=e!==void 0?rx(e,i):"",c=Xt(t),u=r;return e!==YA.Cross&&e!==YA.X&&i!==void 0&&i<=q.lineSeries.marker.markerSizeThresholdForTooltipDisplay&&(r?.width===void 0||r.width===0)&&(u={type:Dt.SLS,style:r?.style??As.Solid,color:[0,0,0,0],width:q.lineSeries.marker.markerSizeThresholdForTooltipDisplay-i}),{path:h,fill:c.color,outline:ak(u,t),xOffset:a??0,yOffset:n??0,angle:l,fillOpacity:c.opacity}}function l4(s){let t;switch(s){case Em.LineThrough:case Em.Underline:t=s;break;case Em.None:}return t}function h4(s){return s===!0?"wrap":"none"}function nk(s,t){let e=Qe;switch(s??t){case bi.Right:e=ge;break;case bi.Left:e=Xr;break;case bi.Center:case bi.Justify:}return e}function ok(s,t){let e=Qe;switch(s??t){case Yt.Top:e=Xr;break;case Yt.Bottom:e=ge;break;case Yt.Baseline:case Yt.Middle:}return e}function u4(s){let{angle:t,mappedHAlignment:e,mappedVAlignment:i,isGuideLabel:r}=s,a=e,n=i,o=e,l=i;return(Math.abs(t)===270||Math.abs(t)===90)&&(r||(o=void 0,n=void 0),l===Xr?a=ge:l===ge?a=Xr:l===Qe&&(a=Qe)),{align:a,valign:n,horizontalCenter:o,verticalCenter:l}}function Hw(s){let{root:t,symbol:e,defaultToColorFromRamp:i,colorRampIndex:r,isChartFillSymbol:a=!1,chartBackgroundColor:n}=s,o;if(i===!0){let l=a?Nm:hd;if(e.color=e.color??bh({colorIndex:r,opacity:l}),md(e)||np(e)){let{outline:h}=e;h!==void 0&&(h.color=h?.color??bh({colorIndex:r}),e.outline={...h})}}return Tx(e)?o=sk(e,!0):np(e)?(e.style??=q.lineSeries.marker.markerStyle,e.size??=q.lineSeries.marker.markerBigSize,o=o4(e)):md(e)&&(o=n4(e,t,n)),o}function c4(s){let{input:t,isGuideLabel:e,defaults:i}=s,r=rk(t.angle,i?.rotation),a=nk(t.horizontalAlignment,i?.horizontalCenter),n=ok(t.verticalAlignment,i?.verticalCenter),{align:o,valign:l,horizontalCenter:h,verticalCenter:c}=u4({angle:r,mappedHAlignment:a,mappedVAlignment:n,isGuideLabel:e});return{fill:Xt(t.color).color,fontFamily:t.font?.family??"Arial, Helvetica, sans-serif",fontSize:t.font?.size??q.generalFontSize,fontWeight:t.font?.weight??"400",textDecoration:l4(t.font?.decoration),align:o,valign:l,verticalCenter:c,horizontalCenter:h,text:_a({textSymbol:t,format:"amChartsV5"}),angle:r,xOffset:t.xoffset??i?.dx??0,yOffset:t.yoffset??i?.dy??0,backgroundFill:Xt(t.backgroundColor).color,borderFill:Xt(t.borderLineColor).color,borderWidth:t.borderLineSize??1,haloColor:Xt(t.haloColor).color,rtl:(t.rightToLeft??Om(document.documentElement))==="rtl"?"rtl":"ltr",wrap:h4(i?.wrap),maxWidth:i?.maxWidth??Number.NaN}}function lk(s,t){t!==void 0&&(t.marginBottom!==void 0&&s.set("marginBottom",t.marginBottom),t.marginTop!==void 0&&s.set("marginTop",t.marginTop),t.marginRight!==void 0&&s.set("marginRight",t.marginRight),t.marginLeft!==void 0&&s.set("marginLeft",t.marginLeft),t.verticalCenter!==void 0&&s.set("y",ok(t.verticalCenter)),t.horizontalCenter!==void 0&&s.set("x",nk(t.horizontalCenter)),t.strokeWidth!==void 0&&s.get("background")?.set("strokeWidth",t.strokeWidth),t.paddingBottom!==void 0&&s.set("paddingBottom",t.paddingBottom),t.paddingTop!==void 0&&s.set("paddingTop",t.paddingTop),t.paddingLeft!==void 0&&s.set("paddingLeft",t.paddingLeft),t.paddingRight!==void 0&&s.set("paddingRight",t.paddingRight),t.maxWidth!==void 0&&s.set("maxWidth",t.maxWidth))}function gA(s){let{root:t,parent:e,defaults:i,index:r,id:a}=s,n=Zt.new(t,{text:"",textAlign:"center",background:nr.new(t,{}),paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0});return a!==void 0&&n.set("id",a),lk(n,i),e!==void 0&&e.children.insertIndex(r??e.children.length,n),n}function lL(s){let{label:t,offset:e,offsetProperty:i}=s;t.adapters.remove(i),(t instanceof Zt?[t]:t.entities).forEach(r=>{if(typeof e=="string"&&!Number.isFinite(Number(e))){let a=qA(e);typeof a=="number"&&(a/=100,r.adapters.add(i,()=>(i==="dx"?r.width():r.height())*(a??0)))}else{let a=Number(e);Number.isFinite(a)&&r.set(i,a)}})}function wn(s){let{label:t,labelConfig:e,defaults:i,skipSettingText:r,skipSettingXAndY:a}=s,n=e?.visible??!0;if(t!==void 0&&!t.isDisposed()&&e!==void 0){let o=t instanceof Zt&&rn(t.uid,"isGuide"),l=c4({input:e.content,isGuideLabel:o,defaults:i});t.setAll({fill:l.fill,fontFamily:l.fontFamily,fontWeight:l.fontWeight,fontSize:l.fontSize,textDecoration:l.textDecoration,rotation:l.angle,direction:l.rtl,oversizedBehavior:l.wrap,maxWidth:l.maxWidth}),r||t.setAll({text:l.text}),a||(lL({label:t,offset:l.xOffset,offsetProperty:"dx"}),lL({label:t,offset:l.yOffset,offsetProperty:"dy"}),t.setAll({centerX:l.align,centerY:l.valign,x:l.horizontalCenter,y:l.verticalCenter})),t.get("background")?.setAll({strokeWidth:l.borderWidth,strokeOpacity:1}),t.set("visible",n),t instanceof Zt?Zi(t,n):t.entities.forEach(h=>{Zi(h,n)})}}function bl(s){let{chart:t,label:e,labelType:i}=s,{legendTitle:r}=q.legendProperties,a=fe(t.uid,"config"),n=r.maxWidth??Number.NaN,o=Number.NaN;switch(i){case ii.GuideLabel:if(t instanceof Ci){let l=e.get("rotation");l===90||l===270?n=t.seriesContainer.height():n=t.seriesContainer.width()}break;case ii.XAxisTitle:t instanceof Ci&&(n=t.seriesContainer.width());break;case ii.YAxisTitle:t instanceof Ci&&(o=t.seriesContainer.height());break;case ii.ChartTitle:case ii.ChartSubTitle:case ii.ChartFooter:n=t.chartContainer.width()-20;break;case ii.LegendTitle:a?.legend?.position!==void 0&&(a?.legend?.position===st.Top||a?.legend?.position===st.Bottom)&&(n=t.chartContainer.width()-20);break}n>0&&e.setAll({maxWidth:n,oversizedBehavior:"wrap"}),o>0&&i===ii.YAxisTitle&&e.setAll({maxHeight:o,oversizedBehavior:"wrap"})}function yA(s){let{chart:t}=s;bl(s),t.events.onDebounced(Ai.BoundsChanged,()=>bl(s),q.debounceTime)}function hk(s){let{hour:t,minute:e=0,format:i,locale:r="en-US"}=s,a=i&&Object.keys(i).length>0?i:{hour:"numeric",minute:"2-digit",hour12:!1},n=t.toString();if(Number.isInteger(t)&&t>=0&&t<=23&&Number.isInteger(e)&&e>=0&&e<=59){let o=new Date(2e3,0,1,t,e);n=new Intl.DateTimeFormat(r,a).format(o),n.includes(":")||n.startsWith("0")&&(n=n.slice(1))}return n}function uk(s){let{weekdayNumber:t,format:e,locale:i="en-US",firstDayOfWeek:r=7}=s,a=e&&Object.keys(e).length>0?e:{weekday:"long"},n=t.toString();if(Number.isInteger(t)&&t>0&&t<=7&&Number.isInteger(r)&&r>0&&r<=7){let o=(t+r-1)%7,l=new Date(2e3,0,2+o);n=new Intl.DateTimeFormat(i,a).format(l)}return n}function ck(s){let{monthNumber:t,format:e,locale:i="en-US"}=s,r=e&&Object.keys(e).length>0?e:{month:"long"},a=t.toString();if(Number.isInteger(t)&&t>0&&t<=12){let n=new Date(2e3,t-1);a=new Intl.DateTimeFormat(i,r).format(n)}return a}function Sv(s,t){let e=t.get("axisFill"),i=t.get("label");if(e!==void 0&&i!==void 0){let r=rn(i.uid,"guideLabelConfig"),a=s.get("renderer")instanceof ls,n=Math.round(e.width()),o=Math.round(e.height()),l=Math.round(i.height()),h=Math.round(i.width()),{horizontalAlignment:c,verticalAlignment:u}=r??{},d=0,A=0;if(a){let p=n!==0;switch(c){case bi.Left:p?d=-h/2:d=-h;break;case bi.Right:p?d=h/2:d=h;break;case bi.Center:case bi.Justify:break;default:p||(d=h/2);break}switch(u){case Yt.Bottom:p?A=-l:A=-l/2;break;case Yt.Middle:A=-o/2;break;case Yt.Top:default:A=-o+l/2;break}}else{let p=o!==0;switch(c){case bi.Center:d=n/2;break;case bi.Left:d=h/2;break;case bi.Right:default:d=n-h/2;break}switch(u){case Yt.Bottom:p?A=o/2:A=l;break;case Yt.Top:p?A=-o/2+l/2:A=-l;break;case Yt.Middle:default:p||(A=-l/2);break}}i.setAll({dx:d,dy:A})}}function d4(s){let{axis:t,guide:e,label:i}=s,{chart:r}=t;if(r){let a=t.get("renderer")instanceof ls?r.yAxes.getIndex(0):r.xAxes.getIndex(0);a&&(a.events.onDebounced(Ai.BoundsChanged,()=>Sv(t,e),q.debounceTime),t.events.onDebounced(Ai.BoundsChanged,()=>Sv(t,e),q.debounceTime))}i.setAll({paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})}function A4(s){let{guide:t,axis:e,guideLabelConfig:i}=s,r=t.get("label");if(r!==void 0){lk(r),Vw(r.uid,{isGuide:!0,guideLabelConfig:i});let{chart:a}=e;a!==void 0&&yA({chart:a,label:r,labelType:ii.GuideLabel}),d4({axis:e,guide:t,label:r})}}function p4(s){let{axis:t,guide:e,guideConfig:i,guideType:r}=s,a=e?.get("label");if(a!==void 0)if(i.label!==void 0){let n=t.get("renderer")instanceof ls,o;t instanceof Us||(n?r===Dt.SFS?o=q.verticalSurfaceGuideLabels:o=q.verticalLineGuideLabels:r===Dt.SFS?o=q.horizontalSurfaceGuideLabels:o=q.horizontalLineGuideLabels),Vw(a.uid,{guideLabelConfig:i.label});let l={type:V.Text,visible:i.visible,content:{...i.label,verticalAlignment:Yt.Middle,horizontalAlignment:bi.Center,rightToLeft:a.get("direction")==="rtl"}};wn({label:a,labelConfig:l,defaults:o});let h=i.label?.text;typeof h=="string"&&/<\/?[a-z][\s\S]*>/iu.test(h)&&(a.set("html",Mr(h)),a.set("text","")),a.events.once(Ai.BoundsChanged,()=>{Sv(t,e)}),Sv(t,e)}else Zi(a,!1)}function f4(s){let t=s.dataItem?.component;t instanceof qt?(t.uid!==void 0?Rt(t.uid,"bulletTemplate"):void 0)?.adapters?.remove?.("fill"):t instanceof Li?t.columns?.template?.adapters?.remove?.("fill"):t instanceof Hr&&t.slices?.template?.adapters?.remove?.("fill")}function dk(s){let{element:t,fill:e,fillOpacity:i,pattern:r,chartBackgroundFill:a}=s,n=t.get("tooltip"),o=!0,l=t;if(r!==void 0){n!==void 0&&(o=!1,n.get("background")?.set("fill",e)),l.set("fillPattern",r);let h=a??e;l.set("fill",h),l.set("fillOpacity",1),f4(l)}else l.set("fill",e),l.remove("fillPattern"),l.set("fillOpacity",i);n!==void 0&&n.set("getFillFromSprite",o)}function Fv(s,t){s.setAll({stroke:t.stroke,strokeDasharray:t.strokeDasharray,strokeOpacity:t.strokeOpacity,strokeWidth:t.strokeWidth,lineCap:t.linecap})}function Ak(s){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a}=s,n;return t!==void 0&&e!==void 0&&(n=Hw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a}),n!==void 0&&(t.setAll({svgPath:n.path,rotation:n.angle,dx:n.xOffset,dy:n.yOffset}),dk({element:t,fill:n.fill,fillOpacity:n.fillOpacity}),Fv(t,n.outline)),Zi(t,i)),n}function vu(s){let{root:t,element:e,fillSymbol:i,visible:r,defaultToColorFromRamp:a,colorRampIndex:n,isChartFillSymbol:o,keepCurrentVisibility:l,chartBackgroundColor:h}=s,c=ix(i?.style),u=JW(e),d=h??(c?tk(u)??[...q.backgroundColor]:void 0),A;if(e!==void 0&&!e.isDisposed()){if(i!==void 0&&(A=Hw({root:t,symbol:i,defaultToColorFromRamp:a,colorRampIndex:n,isChartFillSymbol:o,chartBackgroundColor:d}),A!==void 0)){let p=d!==void 0?Xt(d).color:void 0;dk({element:e,fill:A.fill,fillOpacity:A.fillOpacity,pattern:A.pattern,chartBackgroundFill:p}),Fv(e,A.outline)}l||Zi(e,r)}return A}function So(s){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:a}=s,n;return t!==void 0&&!t.isDisposed()&&(e!==void 0&&(n=Hw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:a}),n!==void 0&&(Fv(t,n),t instanceof qt&&Fv(t.strokes.template,n))),Zi(t,i)),n}function en(s){let{root:t,element:e,seriesIndex:i,seriesSymbol:r,isChartFillSymbol:a,colorMatch:n,rendererSymbol:o,keepCurrentVisibility:l}=s,h,c;n&&o!==void 0&&(h=ox({rendererSymbol:o,seriesSymbol:r,colorIndex:i}));let u={root:t,element:e,defaultToColorFromRamp:!0,colorRampIndex:i},d=h??{...r};switch(r.type){case Dt.SLS:c=So({...u,lineSymbol:d});break;case Dt.SFS:c=vu({...u,fillSymbol:d,isChartFillSymbol:a,keepCurrentVisibility:l});break;case Dt.SMS:c=Ak({...u,markerSymbol:d});break}return{symbolWithColorInfo:d,stylingInfo:c}}function hL(s,t){if(t!==void 0){let{elementColor:e,elementOutlineColor:i,elementOutlineWidth:r,rotation:a,transformation:n}=t,{opacity:o,scale:l}=n??{};e!==void 0&&s.setAll({fill:Xt(e).color,fillOpacity:1}),i!==void 0&&s.setAll({stroke:Xt(i).color,strokeOpacity:1}),r!==void 0&&s.setAll({strokeWidth:r}),a!==void 0&&s.setAll({rotation:a}),l!==void 0&&s.setAll({scale:l}),o!==void 0&&s.setAll({fillOpacity:o,strokeOpacity:o})}}function Zn(s){let{root:t,type:e,intlOptions:i,formatLocale:r}=s,a;switch(e){case V.NumberAxisFormat:{a=Jh.new(t,{}),a.set("intlLocales",r),a.set("numberFormat",i);break}case V.DateAxisFormat:{a=wc.new(t,{}),a.set("intlLocales",r);break}}return a}function m4(s,t,e){let i=t-s,r=[];if(i!==0){if(e===1)r=[s];else if(e>1){let a=i/(e-1);r=[...PF(s,t,a),t]}}return r}function g4({x:s,mean:t,stddev:e,scalingFactor:i}){let r=-1/(2*e**2);return(i??1)*Math.exp(r*(s-t)**2)}function y4(s){let t=0;if(s.length>0)for(let e=0;e<s.length;e+=1)s[e].count>t&&(t=s[e].count);return t}function pk(s){let t=!1,e;if(s.target.dataItem?.component instanceof Yr?{chart:e}=s.target.dataItem.component:(s.target instanceof Gn||s.target instanceof ml)&&({chart:e}=s.target),e instanceof Ci||e instanceof Rs){let i=fe(e.uid,"actionMode");if(i!==void 0){let{originalEvent:r}=s;t=i===Vt.MultiSelection||i===Vt.MultiSelectionWithCtrlKey&&("ctrlKey"in r&&r.ctrlKey||"metaKey"in r&&r.metaKey)}}return t}function na(s){let{element:t,selected:e,multiSelect:i,isDateOrCategoryAxis:r,backToDefaultState:a}=s,n=!1;if(t!==void 0){let o=_l(t.uid,"selected")??!1;n=o,i!==!0?r===!0?n=o?!1:o!==e:n=e:n=o!==e;let l=a===!0?aa.Default:aa.CustomInactive;t.states.apply(aa.Default),t.states.apply(n?aa.CustomActive:l),n!==o&&(KW(t.uid,{selected:n}),n&&(t.toFront(),t.dataItem?.component instanceof Yr&&t.dataItem.component.toFront()))}return n}function v4(s,t){let e=fe(t.chart?.uid??Number.NaN,"actionMode"),i=pk(s);return e===Vt.MonoSelection||e===Vt.MultiSelectionWithCtrlKey&&!i}function us(s,t){let{selectedElementsTheme:e,nonSelectedElementsTheme:i}=t??q.selectionTheme??{},r=s.states.create(aa.CustomActive,{}),a=s.states.create(aa.CustomInactive,{});hL(r,e),hL(a,i)}function vA(s){let{value:t,valueFormat:e,formatLocale:i,root:r}=s,a=t?.toString(),n=Zn({type:e.type,intlOptions:e.intlOptions,formatLocale:i,root:r});return typeof t=="number"&&e.type===V.NumberAxisFormat?a=n.format(t,Eo(e)):(typeof t=="number"||t instanceof Date)&&e.type===V.DateAxisFormat&&(a=n.format(t,Eo(e))),a}async function b4(s){let{root:t,exportOptions:e}=s,{format:i,quality:r=1,...a}=e,n=r<0||r>1?1:r,o=await cu.new(t,{}).exportImage(i,{quality:n,...a}),l=oI(o),h=i==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${i}`,{type:h})}function pA(s,t){if(s!==void 0&&t!==void 0&&(s.states.lookup("default")?.setAll({fill:t.fill,fillOpacity:t.fillOpacity}),t.outline!==void 0)){let{outline:e}=t;s.states.lookup("default")?.setAll({stroke:e.stroke,strokeOpacity:e.strokeOpacity,strokeDasharray:e.strokeDasharray,lineCap:e.linecap,strokeWidth:e.strokeWidth})}}function fk(s){let{numberFormatter:t,dataLabelsConfigContent:e,stackedType:i,externalDataLabelFormatter:r}=s;return(a,n)=>{let o=i===Gi.Stacked100&&n!==void 0?n:a;return t.get("numberFormat").style==="percent"&&(o/=100),_a({textSymbol:{...e,text:t.format(o)},format:r===void 0?"amChartsV5":"html"})}}function x4(s,t){let e=s.dataItem,i;switch(t){case V.LineSeries:case V.ScatterSeries:i=e.get("point");break;case V.HistogramSeries:case V.BarSeries:case V.HeatSeries:i=e.get("graphics");break}let r=i??s,a=i?.x??r?.get("x")??0,n=i?.y??r?.get("y")??0;return{x:a,y:n}}function mk(s){let{label:t,chart:e,seriesType:i}=s,r=n=>{if(e instanceof Ci){let o=x4(n,i),l=e.plotContainer,h=l.x(),c=l.y(),u=o.x<h||o.x>h+l.width()||o.y<c||o.y>c+l.height();n.setAll({visible:!u,forceHidden:u})}},a=zs((n,o)=>{o&&r(o)},q.debounceTime);t.on("x",a),t.on("y",a)}function _4(s){let{series:t,label:e,isHeatChart:i}=s;e.adapters.add("y",(r,a)=>{let{chart:n}=t,o=n!==void 0?fe(n.uid,"isRotated"):!1,l=typeof r=="number"?r:r?.value,h=a.dataItem;if(h!==void 0&&l!==void 0&&l!==null){let c=h?.get("valueY"),u=a.localBounds().bottom;if(o!==!0){let d=q.dataLabelNegative?.paddingTop??0;if(t.get("stacked")||i)if(c<0)l+=u-d;else{let A=i?q.heatChartLabelPadding.paddingTop:0;l+=u/2+A}}else{let d=q.rotatedChartPadding?.paddingTop??0;l+=u/2+d}}return l}),e.adapters.add("x",(r,a)=>{let{chart:n}=t,o=n!==void 0?fe(n.uid,"isRotated"):!1,l=typeof r=="number"?r:r?.value,h=a.dataItem;if(h!==void 0&&l!==void 0&&l!==null&&o===!0){let c=h?.get("valueX"),u=a.width()/2,d=q.rotatedChartPadding?.paddingRight??0,A=u+d;t.get("stacked")||(c<0?l-=A:l+=A)}return l})}function C4(s){let{series:t,isRotated:e,externalDataLabelFormatter:i}=s;t.bullets.push(()=>{let r=fe(t.chart?.uid??Number.NaN,"config")?.series?.find(l=>l.id===t.get("id"))?.dataLabels??s.dataLabelsConfig,a=t.get("stacked"),n=ma.new(t.root,{locationY:!a&&!e?1:void 0,locationX:!a&&e?1:void 0,sprite:Zt.new(t.root,{text:e?"{valueX}":"{valueY}",populateText:!0,centerY:ge,centerX:Xr,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(r?.content.color).color,fontSize:r?.content.font?.size})}),o=n.get("sprite");if(o){let l=o;yk({dataLabel:l,series:t,externalDataLabelFormatter:i}),vk({...s,dataLabelsConfig:r,dataLabel:l,dataLabelFormatter:fk})}return n})}function Qw(s,t=1){s.bullets.removeIndex(t)}function gk(s){let{textBackgroundColor:t,chartBackgroundColor:e,fillOpacity:i}=s,r;return sp({r:t.r,g:t.g,b:t.b,a:i})?r=sp({r:e.r,g:e.g,b:e.b,a:i})?Xt(fF).color:e:r=sp({r:e.r,g:e.g,b:e.b,a:i})?e:Xt(pF).color,r}function w4(s){let{dataLabel:t,labelConfigColor:e,seriesColor:i,backgroundColor:r,autoInverseDataLabelTextColor:a,isHeatChart:n}=s,o=r??Xt(q.backgroundColor).color;a===!0&&i&&t.adapters.add("fill",(l,h,c)=>{let u=e??h.text.get("fill"),d=(h.dataItem?.component).get("stacked"),A=u;if(u&&(d||n)){let p=h.dataItem.get("graphics"),m=p?.get("fillOpacity");A=gk({textBackgroundColor:p?.get("fill")??i,chartBackgroundColor:o,fillOpacity:m})}return A})}function yk(s){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=s;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";Nf({label:t,labelOutputProp:r}),t.adapters.add(r,(a,n)=>{let o=a??"",l=n.dataItem,h=Rt(e.uid,e instanceof Li?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(h!==void 0&&e.chart&&l){let c=fe(e.chart.uid,"isRotated"),u=c===!0?l.get("valueX"):l.get("valueY"),d=c===!0?l.get("valueXTotalPercent"):l.get("valueYTotalPercent"),A=e.get("valueYShow")==="valueYTotalPercent"||e.get("valueXShow")==="valueXTotalPercent";o=h(A?d:u)}return r==="html"?Mr(o):o})}function Nf(s){let{label:t,labelOutputProp:e}=s,i=t;e==="html"?i.set("html",q.htmlEmptyContent):i.set("html",void 0)}function jv(s){let{series:t,seriesConfig:e,dataLabel:i,labelDefaults:r,dataLabelsConfig:a,yAxisValueFormat:n,stackedType:o,isRotated:l,seriesType:h,defaultDataLabelFormatter:c,externalDataLabelFormatter:u}=s,{chart:d}=t;if(i!==void 0){let A=u,p=a?.content??{type:Dt.TS};if(u===void 0&&c!==void 0&&n?.type===V.NumberAxisFormat&&d){let x=fe(d.uid,"formatLocale"),w=Zn({root:d.root,type:n.type,formatLocale:x,intlOptions:n.intlOptions});A=c({numberFormatter:w,dataLabelsConfigContent:p,stackedType:o,externalDataLabelFormatter:u})}let m;switch(h){case V.BarSeries:m="barSeriesDataLabelFormatter";break;case V.LineSeries:m="lineSeriesDataLabelFormatter";break;case V.HistogramSeries:m="histogramDataLabelFormatter";break;case V.ScatterSeries:m="scatterplotDataLabelFormatter";break;case V.HeatSeries:m="heatChartDataLabelFormatter";break}m!==void 0&&hs(t.uid,{[m]:A}),a!==void 0&&(h===V.HeatSeries?a.content.text="{value}":a.content.text=l===!0?"{valueX}":"{valueY}",a.visible=a.visible!==!1),wn({label:i,labelConfig:a,defaults:r??q.dataLabel,skipSettingText:!0});let f=t.get("stacked"),g=f&&h===V.BarSeries&&e?.hideOversizedStackedLabels!==!1,y=!f&&h===V.BarSeries&&e?.hideOversizedSideBySideLabels===!0;y||g?i.setAll({oversizedBehavior:"hide",maxWidth:void 0,maxHeight:y?100:void 0}):i.setAll({oversizedBehavior:"none"})}}function B4(s){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=s;t.dataItems.forEach(r=>{let a=r.bullets?.[1];if(a){a.set("locationY",t.get("stacked")?void 0:1);let n=a.get("sprite");n&&(yk({dataLabel:n,series:t,externalDataLabelFormatter:i}),jv({...s,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:fk,externalDataLabelFormatter:i}))}})}function vk(s){let{series:t,dataLabelsConfig:e,autoInverseDataLabelTextColor:i,externalDataLabelFormatter:r,labelDefaults:a,seriesType:n,dataLabel:o,isHeatChart:l,dataLabelFormatter:h}=s;o&&(t.chart&&e?.visible&&mk({label:o,chart:t.chart,seriesType:n}),_4({series:t,label:o,isHeatChart:l}),jv({...s,dataLabel:o,labelDefaults:a,defaultDataLabelFormatter:h,externalDataLabelFormatter:r}),w4({dataLabel:o,labelConfigColor:Xt(e?.content.color).color,seriesColor:t.get("fill"),backgroundColor:t.chart?.get("background")?.get("fill"),autoInverseDataLabelTextColor:i,isHeatChart:l}))}function bk(s){let{series:t,dataLabelsConfig:e}=s,i=e?.visible,r=t.bullets.hasIndex(1);i!==!0?r&&Qw(t):(r||C4(s),B4(s))}function S4(s){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=s;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";Nf({label:t,labelOutputProp:r}),t.adapters.add(r,(a,n)=>{let o=a??"",l=n.dataItem,h=Rt(e.uid,"heatChartDataLabelFormatter"),c=fe(e.chart?.uid??NaN,"config");if(h!==void 0&&l){let u=l.get("value"),d=l.get("categoryX"),A=l.get("categoryY");u===null?o=c?.series[0].emptyCells?.text??q.heatChart.emptyCells?.text??"":u!==void 0&&(o=h(u,d,A))}return r==="html"?Mr(o):o})}function F4(s){let{numberFormatter:t,dataLabelsConfigContent:e}=s;return i=>_a({textSymbol:{...e,text:t.format(i)},format:"amChartsV5"})}function T4(s){let{series:t,externalDataLabelFormatter:e}=s;t.bullets.push(()=>{let i=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??s.dataLabelsConfig,r=ma.new(t.root,{sprite:Zt.new(t.root,{text:"{value}",populateText:!0,centerY:ge,centerX:Xr,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(i?.content.color).color,fontSize:i?.content.font?.size,oversizedBehavior:"hide"})}),a=r.get("sprite");if(a){let n=a;S4({dataLabel:n,series:t,externalDataLabelFormatter:e}),vk({...s,dataLabelsConfig:i,dataLabel:n,isHeatChart:!0,dataLabelFormatter:F4}),n.set("oversizedBehavior","hide"),n.set("maxWidth",void 0),n.set("maxHeight",void 0)}return r})}function P4(s){let{series:t,dataLabelsConfig:e}=s,i=e?.visible;t.bullets.hasIndex(0)&&Qw(t,0),i===!0&&T4(s)}var Ps={nameField:"name",fillField:"fill",strokeField:"stroke",fillOpacityField:"fillOpacity",strokeOpacityField:"strokeOpacity"};function jw(s,t){let e=zf(s);s.columns.template.set("tooltip",e);let i=t!==void 0||Rt(s.uid,"hasExternalTooltipFormatter")===!0,r=i?"tooltipHTML":"tooltipText";xl({element:s.columns.template,labelOutputProp:r}),s.columns.template.setAll({tooltipPosition:q.columnTooltipPosition}),s.columns.template.adapters.remove("tooltipText"),s.columns.template.adapters.remove("tooltipHTML"),s.columns.template.adapters.add(r,(a,n)=>Fo({element:n,series:s,isHTML:i})),s.columns.each(a=>{a.set("tooltip",e),xl({element:a,labelOutputProp:r}),a.adapters.remove("tooltipText"),a.adapters.remove("tooltipHTML"),a.adapters.add(r,(n,o)=>Fo({element:o,series:s,isHTML:i}))})}function xk(s){let{axesConfig:t,currentSeries:e,tooltipValueFormat:i}=s,{root:r,chart:a}=e;if(a){let n=t?.[1]?.valueFormat,o=t?.[0].valueFormat,l=fe(a.uid,"formatLocale");if(n?.type===V.NumberAxisFormat){let h=Zn({root:r,type:n.type,formatLocale:l,intlOptions:n.intlOptions});hs(e.uid,{tooltipValueYNumberFormatCallback:c=>h.format(c,i?.intlOptions??n.intlOptions)})}if(o?.type===V.NumberAxisFormat){let h=Zn({root:r,type:o.type,formatLocale:l,intlOptions:o.intlOptions});hs(e.uid,{tooltipValueXNumberFormatCallback:c=>h.format(c,i?.intlOptions??o.intlOptions)})}}}function D4(s){let{axes:t,seriesConfig:e,series:i,fieldList:r,utilsStrings:a}=s,{dataTooltipVisible:n}=e,o,l=fe(i.chart?.uid??0,"rtl")??!1,h=Ra(l);return n===!1?o=(c,u,d)=>"":o=(c,u,d)=>{let A=Er(r,e.x),p=mA(A,t?.[0].title?.content?.text),m=mA(a?.statistics.count??"",t?.[1]?.title?.content?.text??""),f=Rt(i.uid,"tooltipValueXNumberFormatCallback"),g=Rt(i.uid,"tooltipValueYNumberFormatCallback"),y=f?f(u):u,x=f?f(d):d,w=g?g(c):c;return`[bold]${p}${h} [/]${y} - ${x}
47
47
  [bold]${m}${h} [/]${w}`},o}function L4(s){let{seriesConfig:t,series:e,tooltip:i}=s,{dataTooltipVisible:r}=t;if(r!==!1){let a=Rt(e.uid,"histogramTooltipFormatter");if(a!==void 0){let n=i.dataItem;if(n!==void 0){let o=n.dataContext;return a(n.get("valueY")??0,o.minValue,o.maxValue)}}}return""}function Ww(s,t){let e=zf(s);s.columns.template.set("tooltip",e);let i=t!==void 0||Rt(s.uid,"hasExternalTooltipFormatter")===!0,r=i?"tooltipHTML":"tooltipText";xl({element:s.columns.template,labelOutputProp:r}),s.columns.template.setAll({tooltipPosition:q.columnTooltipPosition}),s.columns.template.adapters.remove("tooltipText"),s.columns.template.adapters.remove("tooltipHTML"),s.columns.template.adapters.add(r,(a,n)=>Fo({element:n,series:s,isHTML:i})),s.columns.each(a=>{a.set("tooltip",e),a.set("tooltipPosition","pointer"),xl({element:a,labelOutputProp:r}),a.adapters.remove("tooltipText"),a.adapters.remove("tooltipHTML"),a.adapters.add(r,(n,o)=>Fo({element:o,series:s,isHTML:i}))})}function I4(s){let{series:t,tooltipFormatter:e,axesConfig:i,seriesConfig:r}=s,a=Rt(t.uid,"hasExternalTooltipFormatter")===!0,n=e!==void 0;xk({axesConfig:i,currentSeries:t,tooltipValueFormat:r.dataTooltipValueFormat}),hs(t.uid,{histogramTooltipFormatter:e??D4(s),hasExternalTooltipFormatter:n}),a!==n&&Ww(t,e)}function Xw(s){let{pieChart:t,valueIntlOptions:e,percentageIntlOptions:i,displayNumericValue:r,displayPercentage:a,valuePrefix:n,valueSuffix:o,percentagePrefix:l,percentageSuffix:h}=s,{root:c}=t,u=fe(t.uid,"formatLocale"),d=Zn({root:c,type:V.NumberAxisFormat,intlOptions:e,formatLocale:u}),A=Zn({root:c,type:V.NumberAxisFormat,intlOptions:{...i,style:"percent"},formatLocale:u}),p=Ra(fe(t.uid,"rtl")??!1," ");return(m,f,g)=>{let y="";if(f!==void 0&&g!==void 0){let x=`${n??""}${d.format(f)}${o??""}`,w=`${l??""}${A.format(Math.abs(g/100))}${h??""}`;Number.isFinite(f)?r===!0&&a===!0?y=`${w}${p}(${x})`:r===!0?y=x:a===!0&&(y=w):y=""}return y}}function k4(s,t){let e=(p,m,f)=>"",{numericValueFormat:i,percentValueFormat:r,dataTooltipValueFormat:a,dataTooltipPercentFormat:n,displayCategoryOnTooltip:o,displayNumericValueOnTooltip:l,displayPercentageOnTooltip:h,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A}=t;return e=(p,m,f)=>{let g="",{chart:y}=s;if(y){let x=Xw({pieChart:y,valueIntlOptions:(a??i)?.intlOptions,percentageIntlOptions:(n??r)?.intlOptions,displayNumericValue:l??q.pieChart.displayNumericValueOnTooltip,displayPercentage:h??q.pieChart.displayPercentageOnTooltip,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A})("",m,f),w=!Yi(p)&&(o??q.pieChart.displayCategoryOnTooltip);if(w&&(g=`[bold]${p}[/]`),!Yi(x)){let S=zm(x);g=w?`${g}
48
48
  ${S}`:S}}return g},e}function $4(s){let t=s.get("tooltip");if(t!==void 0){let e=s.get("fill");e instanceof ih&&(e=e.get("fill")),t.get("background")?.set("fill",e)}}function O4(s){let{pieSeries:t,tooltip:e}=s,i="",{chart:r}=t;if(r!==void 0&&e!==void 0){let a=fe(r.uid,"config"),{dataTooltipVisible:n}=a?.series[0]??{};if(n!==!1){let o=Rt(t.uid,"pieChartTooltipFormatter");if(o){let l=e.dataItem;if(l!==void 0){let h=l,c=h.get("category")??"",u=l.dataContext,d=so(u);d===void 0&&(d=c);let A=h.get("value"),p=h.get("valuePercentTotal");typeof A=="number"&&A!==0&&a?.series?.[0]?.dataTooltipVisible!==!1?(e.set("disabled",!1),$4(h.get("slice")),i=o(c,A,p,d)):e.set("disabled",!0)}}}else return}return i}function zw(s,t){let e=s.slices.template,i=zf(s),r=t!==void 0||Rt(s.uid,"hasExternalTooltipFormatter")===!0,a=r?"tooltipHTML":"tooltipText";xl({element:e,labelOutputProp:a}),e.setAll({tooltip:i,tooltipPosition:q.sliceTooltipPosition}),e.adapters.remove("tooltipText"),e.adapters.remove("tooltipHTML"),e.adapters.add(a,(n,o)=>{let l=" ";try{let h=o.get("tooltip");h&&(h.dataItem=o.dataItem,l=Fo({element:h,series:s,isHTML:r}))}catch{}return l}),e.set(a," "),s.slices.each(n=>{n.set("tooltip",i),n.set("tooltipPosition","fixed"),xl({element:n,labelOutputProp:a}),n.adapters.remove("tooltipText"),n.adapters.remove("tooltipHTML"),n.adapters.add(a,(o,l)=>{let h=" ";try{let c=l.get("tooltip");c&&(c.dataItem=l.dataItem,h=Fo({element:c,series:s,isHTML:r}))}catch{}return h})})}function E4(s){let{series:t,seriesConfig:e,tooltipFormatter:i}=s,r=Rt(t.uid,"hasExternalTooltipFormatter")===!0,a=i!==void 0;hs(t.uid,{pieChartTooltipFormatter:i??k4(t,e),hasExternalTooltipFormatter:a}),r!==a&&zw(t,i)}function M4(s){let{axesConfig:t,seriesConfig:e,series:i,fieldList:r}=s,{dataTooltipVisible:a}=e,n,{chart:o}=i,l=o?.uid!==void 0?fe(o.uid,"rtl"):!1,h=Ra(l??!1);return a===!1?n=(c,u,d,A)=>"":n=(c,u,d,A)=>{let p=Er(r,e.x),m=Yi(t?.[0].title?.content?.text)?p:t?.[0].title?.content?.text,f=Er(r,e.y),g=Yi(t?.[1]?.title?.content?.text)?f:t?.[1]?.title?.content?.text,y=Rt(i.uid,"tooltipValueXNumberFormatCallback"),x=y?y(c):c,w=Rt(i.uid,"tooltipValueYNumberFormatCallback"),S=w?w(u):u,D=`[bold]${m}${h} [/]${x}
49
49
  [bold]${g}${h} [/]${S}`;if(d!==void 0&&e.sizePolicy?.field!==void 0){let T=Er(r,e.sizePolicy?.field),L=w?w(d):d;D+=`
@@ -55,4 +55,4 @@ ${R}[bold]${L}${h} [/]`:`
55
55
  [bold]${x.label}${A} [/]${x.value}
56
56
  [bold]${f}${A}[/] ${c} [/]]`)}return h}}function K4(s){let{heatSeries:t,tooltip:e}=s,i="",{chart:r}=t;if(r!==void 0&&e!==void 0){let a=fe(r.uid,"config"),{dataTooltipVisible:n}=a?.series[0]??{};if(n!==!1){let o=Rt(t.uid,"heatChartTooltipFormatter");if(o){let l=e.dataItem;if(l!==void 0){let h=l.dataContext;if(a?.series?.[0]?.dataTooltipVisible!==!1){let c=h?.[Cr.valueField]??null,u=h?.[Cr.xField],d=h?.[Cr.yField];i=o(c,u,d)}}}}else return}return Mr(i)}function Yw(s,t){let e=zf(s);s.columns.template.set("tooltip",e);let i=t!==void 0||Rt(s.uid,"hasExternalTooltipFormatter")===!0,r=i?"tooltipHTML":"tooltipText";xl({element:s.columns.template,labelOutputProp:r}),s.columns.template.setAll({tooltipPosition:q.columnTooltipPosition}),s.columns.template.adapters.remove("tooltipText"),s.columns.template.adapters.remove("tooltipHTML"),s.columns.template.adapters.add(r,(a,n)=>Fo({element:n,series:s,isHTML:i})),s.columns.each(a=>{a.set("tooltip",e),a.set("tooltipPosition","pointer"),xl({element:a,labelOutputProp:r}),a.adapters.remove("tooltipText"),a.adapters.remove("tooltipHTML"),a.adapters.add(r,(n,o)=>Fo({element:o,series:s,isHTML:i}))})}function Z4(s){let{series:t,seriesConfig:e,utilsStrings:i,fieldList:r,options:a,queryObject:n}=s,o=Rt(t.uid,"hasExternalTooltipFormatter")===!0,l=a?.tooltipFormatter!==void 0;hs(t.uid,{heatChartTooltipFormatter:a?.tooltipFormatter??Y4({columnSeries:t,seriesConfig:e,utilsStrings:i,fieldList:r,queryObject:n}),hasExternalTooltipFormatter:l}),o!==l&&Yw(t,a?.tooltipFormatter)}function Tv(s){let t={type:Dt.SLS,color:[0,0,0,0],width:0},e=s?.color?s:t,i=s?.color?Xt(s.color).color:void 0,r=s?.color?Xt(s.color).opacity:void 0;return{outlineSymbol:e,outlineColor:i,outlineOpacity:r}}function q4(s){let{root:t,xAxis:e,yAxis:i,options:r,chartConfig:a,queryObject:n}=s,o=Li.new(t,{calculateAggregates:!0,stroke:Xt(q.backgroundColor).color,clustered:!1,turboMode:!0,xAxis:e,yAxis:i,categoryXField:Cr.xField,categoryYField:Cr.yField,valueField:Cr.valueField});return o.columns.template.setAll({tooltipText:`x: {${Cr.xField}}
57
57
  y: {${Cr.yField}}
58
- Value: {${Cr.valueField}}`,width:ge,height:ge}),Yw(o,r?.tooltipFormatter),TA(o,a),us(o.columns.template,r?.selectionTheme),Do({element:o.columns.template,series:o,queryObject:n}),o}function J4(s){let{columnSeries:t,data:e,loaderHandle:i}=s;e?.dataItems&&(t.events.once(Ai.DataValidated,()=>{i.hideLoader()}),t.data.setAll(e.dataItems))}function eX(s){let{columnSeries:t,seriesConfig:e}=s,{gradientHeatRules:i}=q.heatChart,{gradientRules:r,heatRulesType:a,gridLine:n}=e,o=e.emptyCells?.symbol??q.heatChart.emptyCells?.symbol,l=r?.colorList?.[0]??i.minColor,h=r?.colorList?.[1]??i.maxColor,c=r?.outsideRangeLowerColor??i.outsideRangeLowerColor,u=r?.outsideRangeUpperColor??i.outsideRangeUpperColor,{minValue:d,maxValue:A}=r??{},{color:p,opacity:m}=Xt(l),{color:f,opacity:g}=Xt(h),y=Xt(c),x=Xt(u);t.set("heatRules",[{target:t.columns.template,dataField:"value",key:"fill",customFunction:(w,S,D,T)=>{let L=w.dataItem?.dataContext;if(w instanceof ft){let $,I,R,F=!1;if(a===Iu.Renderer){let H=L?.[ht.rendererSymbolField];if(md(H)){R=Tr(H);let{outlineSymbol:K}=Tv(n);R.outline=K}else F=!0}if((!Number.isFinite(T)||F)&&o){R=Tr(o);let{outlineSymbol:H}=Tv(n);R.outline=H}if(R){let H=vu({root:t.root,element:w,fillSymbol:R});pA(w,H)}else typeof d=="number"&&T<d?{color:$,opacity:I}=y:typeof A=="number"&&T>A?{color:$,opacity:I}=x:S===D?($=p,I=m):($=ot.interpolate((T-S)/(D-S),p,f,"rgb"),I=m+(T-S)/(D-S)*(g-m)),$&&w.set("fill",$),I!==void 0&&w.set("fillOpacity",I)}}}])}function tX(s,t){t?.color?So({element:s.columns.template,lineSymbol:t}):s.columns.template.setAll({strokeOpacity:0,strokeWidth:0})}function iX(s){let{series:t,data:e,loaderHandle:i,dataWasUpdated:r,sortChanged:a,timeZoneChanged:n,seriesWereReinitialized:o,seriesConfig:l,autoInverseDataLabelTextColor:h,options:c,queryObject:u,chartConfig:d}=s,A=r===!0||a===!0||n||o===!0;t.set("id",l.id),Zi(t,l.visible),bA(t,!1),us(t.columns.template,c?.selectionTheme),xu(t.columns.template,e?.dataItems?.length),Z4(s),tX(t,l.gridLine),eX({columnSeries:t,seriesConfig:l}),A&&J4({columnSeries:t,data:e,loaderHandle:i}),P4({seriesType:V.HeatSeries,series:t,seriesConfig:l,dataLabelsConfig:l.dataLabels,yAxisValueFormat:{intlOptions:{},type:"number"},autoInverseDataLabelTextColor:h,externalDataLabelFormatter:c?.dataLabelFormatter});let{chart:p}=t;p&&rX({seriesConfig:l,queryObject:u,chartConfig:d,chart:p}),c?.disableInteractions&&bA(t,!0)}function rX(s){let{seriesConfig:t,queryObject:e,chartConfig:i,chart:r}=s,a;if(t.heatRulesType===Iu.Renderer)a={heatRulesType:Iu.Renderer,seriesColors:Bk({queryObject:e,chartConfig:i,forLegend:!1})};else{let{gradientHeatRules:n}=q.heatChart,{gradientRules:o}=t;a={heatRulesType:Iu.Gradient,seriesColors:{startColor:o?.colorList?.[0]??n.minColor,endColor:o?.colorList?.[1]??n.maxColor}}}nn({chartId:r.get("id"),data:a,colorMatchApplied:!1,htmlContainer:r.root.dom})}function wk(s,t){let e="",i,r,a;return s&&typeof s=="object"&&(e="label"in s&&typeof s.label=="string"?s.label:"",i="symbol"in s&&s.symbol&&typeof s.symbol=="object"&&"color"in s.symbol&&Array.isArray(s.symbol.color)?s.symbol.color:void 0,a="symbol"in s&&s.symbol&&typeof s.symbol=="object"&&"outline"in s.symbol&&Array.isArray(s.symbol.outline)?s.symbol.outline:void 0,t&&(Array.isArray(i)&&({color:i,opacity:r}=Xt(i)),Array.isArray(a)&&(a=Xt(a).color))),{legendItemLabel:e,legendItemColor:i,legendItemColorOpacity:r,legendItemStrokeColor:a}}function sX(s){let t,{outlineColor:e,outlineOpacity:i,dataItems:r,valueField:a,classBreakInfo:n,classBreakIndex:o,numberOfClassBreaks:l,evaluateUpTo:h}=s,{legendItemLabel:c,legendItemColor:u,legendItemColorOpacity:d}=wk(n,!0);if(n&&typeof n=="object"&&u&&!Array.isArray(u)){let A=!0;if(r&&a){let p="classMinValue"in n&&typeof n.classMinValue=="number"?n.classMinValue:-1/0,m="classMaxValue"in n&&typeof n.classMaxValue=="number"?n.classMaxValue:1/0,f=o===l-1;A=r.some(g=>{let y=g[a];return f||h?typeof y=="number"&&y>=p&&y<=m:typeof y=="number"&&y>=p&&y<m})}A&&(t={[Ps.nameField]:c,[Ps.fillField]:u,[Ps.strokeField]:e,[Ps.fillOpacityField]:d,[Ps.strokeOpacityField]:i})}return t}function aX(s){let t,{legendItemLabel:e,legendItemColor:i,legendItemStrokeColor:r}=wk(s,!1);return Array.isArray(i)&&(!r||Array.isArray(r))&&(t={label:e,symbol:{type:Dt.SFS,style:bs.Solid,color:i,outline:{type:Dt.SLS,color:r??i}}}),t}function Bk(s){let{queryObject:t,chartConfig:e,forLegend:i,series:r}=s,a,n=Ys(t),o=e.series?.[0],l=e.chartRenderer??n?.renderer?.toJSON(),{outlineColor:h,outlineOpacity:c}=Tv(o?.gridLine);if((l?.type==="classBreaks"||l?.type==="class-breaks")&&"classBreakInfos"in l){let u=r?.data.values,d=r?.get("valueField")??Cr.valueField,A=l.classBreakInfos?.[0],p=A?A.classMinValue===A.classMaxValue:!1;a=l.classBreakInfos.map((m,f)=>{let g;return i?g=sX({outlineColor:h,outlineOpacity:c,dataItems:u,valueField:d,classBreakInfo:m,classBreakIndex:f,numberOfClassBreaks:l.classBreakInfos.length,evaluateUpTo:p}):g=aX(m),g}).filter(Boolean)}return a}var Wv="arcgis_charts_title_container",Kw="arcgis_charts_subtitle_container",Xv="arcgis_charts_footer_container",Sk="arcgis_charts_title",Fk="arcgis_charts_subtitle",Tk="arcgis_charts_footer",ba="arcgis_charts_legend_container",Jn="arcgis_charts_legend_title",hw="arcgis_charts_axis_title_id";function nX(s){let t=s.yAxes.getIndex(0);if(t){let e=Ii({childId:`${hw}_y_${t.uid}`,parent:t});e instanceof Zt&&e.set("dx",0)}}function oX(s,t){let e=q.axisLabelSpacing.verticalAxisLabelSidePadding,i=q.heatChart.legend.legendPadding+e;t.set("marginRight",i),s.leftAxesContainer.setAll({paddingLeft:e});let r=s.leftAxesContainer.children.values[0];r instanceof Sr&&r.set("paddingLeft",e)}function Pk(s,t){let{root:e}=s,i=fe(s.uid,"rtl")??!1,r=fe(s.uid,"config")??t,a=r?.series[0],{start:n,end:o}=zv(i,a),l=r?.legend?.position??q.heatChart.legend.position,h=l===st.Top||l===st.Bottom;return bo.new(e,{orientation:h?"horizontal":"vertical",startColor:n.color,endColor:o.color,visible:r?.legend?.visible,startOpacity:n.opacity,endOpacity:o.opacity})}function lX(s,t){let e=fe(t.uid,"rtl")??!1,i=fe(t.uid,"config");if(i?.series[0].type===V.HeatSeries){let r=i?.series[0],{start:a,end:n}=zv(e,r);s.setAll({startColor:a.color,endColor:n.color,startOpacity:a.opacity,endOpacity:n.opacity})}}function zv(s=!1,t){let e=q.heatChart.gradientHeatRules,i=t.gradientRules?.colorList??[...s?[e.maxColor,e.minColor]:[e.minColor,e.maxColor]],{color:r,opacity:a}=Xt(i[0]),{color:n,opacity:o}=Xt(i[1]);return{start:{color:r,opacity:a},end:{color:n,opacity:o}}}function AL(s,t){let e=fe(s.uid,"rtl")??!1,i=fe(s.uid,"config")?.series[0],{start:r,end:a}=zv(e,i);t.setAll({startColor:r.color,endColor:a.color})}function Dk(s){let t=fe(s.uid,"config");if(t?.series?.[0]?.type===V.HeatSeries&&t?.legend?.visible!==!1){let e=q.heatChart.legend,i=t?.legend?.position??e.position,r=Ns(ba,s.uid),a,n=!1;switch(i){case st.Top:a=s.topAxesContainer,n=!0;break;case st.Bottom:a=s.bottomAxesContainer,n=!1;break;case st.Left:a=s.leftAxesContainer,n=!0;break;case st.Right:a=s.rightAxesContainer,n=!1;break;default:a=void 0}if(a!==void 0){let o=Ii({childId:r,parent:a,useChildId:!0});if(o!==void 0){let{children:l}=a,h=l.indexOf(o);h!==-1&&(n&&h!==0?(l.removeValue(o),l.unshift(o),a.markDirty()):!n&&h!==l.length-1&&(l.removeValue(o),l.push(o),a.markDirty()))}}}}function Lk(s){let{chart:t,legend:e,legendContainer:i}=s,{root:r}=t,a=fe(t.uid,"config"),n=q.heatChart.legend,o=a?.legend?.position??n.position,l,h,c,u=o===st.Left||o===st.Top,d=Ii({childId:Jn,parent:i}),A=a?.legend?a.legend.visible??!0:!1,p=a?.legend?.title?a.legend.title.visible??!0:!1,m=d instanceof Zt&&A&&p?d.height()>0?d.height():n.titleHeight:0,f=o===st.Left||o===st.Right;switch(e.setAll({orientation:f?"vertical":"horizontal",width:ge}),o){case st.Left:i.setAll({layout:r.verticalLayout,paddingRight:n.legendPadding,width:n.width}),oX(t,i),l=t.leftAxesContainer;break;case st.Right:i.setAll({layout:r.verticalLayout,paddingLeft:n.legendPadding,paddingRight:n.legendPadding,width:n.width}),t.rightAxesContainer.setAll({paddingRight:n.chartPadding}),l=t.rightAxesContainer;break;case st.Top:c=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingBottom:n.legendPadding,paddingTop:n.legendPadding,width:ge}),l=t.topAxesContainer;break;case st.Bottom:{h=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingTop:n.legendPadding,width:ge}),t.bottomAxesContainer.setAll({paddingBottom:n.legendPadding+m});let g=Ii({childId:Xv,parent:t});g instanceof Re&&g.set("paddingBottom",n.chartPadding+m),l=t.bottomAxesContainer}break}nX(t),e.markDirty(),Ik(t,{chartPaddingTop:c,chartPaddingBottom:h}),yu(()=>{l&&(u?l.children.unshift(i):l.children.push(i),t.markDirty(),e.markDirty(),l.markDirty())})}function Ik(s,t){let{chartPaddingTop:e,chartPaddingLeft:i,chartPaddingRight:r,chartPaddingBottom:a}=t;s.setAll({paddingTop:e,paddingLeft:i,paddingRight:r,paddingBottom:a})}function kk(s,t){let e=s.root.events.on(Ai.FrameEnded,()=>{s.markerContainer.children.length>0&&(t(),e.dispose())})}function $k(s){let{series:t,legend:e,chart:i}=s,r=fe(i.uid,"config"),a=n=>{let o=n.getPrivate("valueLow"),l=n.getPrivate("valueHigh");o!==void 0&&l!==void 0&&(e.get("orientation")==="vertical"?(e.set("startValue",l),e.set("endValue",o)):(e.set("startValue",o),e.set("endValue",l))),yu(()=>{kk(e,()=>{Ok({legend:e,series:n,chartConfig:r})})})};t!==void 0&&(t.events.on("datavalidated",()=>{a(t)}),a(t)),Ek(e,r?.legend)}function Ok(s){let{legend:t,series:e,chartConfig:i}=s,r=i?.series[0],a=r?.gradientRules;if(a&&(a.minValue!==void 0||a.maxValue!==void 0)){let n=e.getPrivate("valueLow"),o=e.getPrivate("valueHigh");if(n!==void 0&&o!==void 0&&o>n){let l=n,h=o,c=h-l,u=a.minValue??l,d=a.maxValue??h,A=(u-l)/c,p=(d-l)/c;A=Math.max(0,Math.min(1,A)),p=Math.max(0,Math.min(1,p));let{start:m,end:f}=zv(!1,r),{color:g,opacity:y}=Xt(a.outsideRangeLowerColor??q.heatChart.gradientHeatRules.outsideRangeLowerColor),{color:x,opacity:w}=Xt(a.outsideRangeUpperColor??q.heatChart.gradientHeatRules.outsideRangeUpperColor),S=[{color:g,opacity:y,offset:0},{color:g,opacity:y,offset:A},{color:m.color,opacity:m.opacity,offset:A},{color:f.color,opacity:f.opacity,offset:p},{color:x,opacity:w,offset:p},{color:x,opacity:w,offset:1}],D=(L,$,I)=>{let R=Ns(`heatLegendLabel${I}`,t.uid),F=t.markerContainer.children.values.find(z=>z instanceof Zt&&z.get("id")===R),H=F&&!F.isDisposed()?F:void 0,K=t.startLabel;if(H||(H=Zt.new(t.root,{id:R,position:"absolute",isMeasured:!1,centerX:Qe,centerY:Qe,paddingLeft:0}),t.markerContainer.children.push(H)),H.setAll({fill:K.get("fill"),fontSize:K.get("fontSize"),fontFamily:K.get("fontFamily")}),H.set("text",L.toString()),t.get("orientation")==="vertical"){let z=K.localBounds().top,ee=K.get("fontSize")??0;if(typeof ee=="number"){let ie=q.heatChart.legend.minMaxLabelPadding;H.set("x",z-ee*2-ie)}else H.set("x",z);H.set("y",Bt($*100)),H.set("centerY",Qe)}else{H.set("x",Bt($*100));let z=t.startLabel.localBounds().bottom,ee=q.heatChart.legend.minMaxLabelPadding;H.set("y",-z-ee),H.set("centerX",Xr)}};A>0&&A<1&&D(u,A,"Min"),p>0&&p<1&&D(d,p,"Max");let T=()=>{let L;if(t.markerContainer.children.length>0&&t.markerContainer.children.each($=>{$ instanceof nr&&(L=$)}),L){let $=0;t.get("orientation")==="vertical"&&($=90),L.set("fillGradient",ll.new(t.root,{stops:S,rotation:$}))}};if(t.markerContainer.children.length>0)T();else{let L=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(L.dispose(),T())})}}}else{let n=()=>{if(t.get("orientation")==="vertical"){let o;t.markerContainer.children.length>0&&t.markerContainer.children.each(l=>{l instanceof nr&&(o=l)}),o&&o.set("rotation",180)}};if(t.markerContainer.children.length>0)n();else{let o=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(o.dispose(),n())})}}}function Ek(s,t){if(s!==void 0){let e={type:V.Text,visible:t?.visible,content:{...t?.body,type:Dt.TS,text:" "}};[s.startLabel,s.endLabel].forEach(i=>{wn({label:i,labelConfig:e,skipSettingText:!0,skipSettingXAndY:!0})})}}function Zw(s){let t=Ns(ba,s.uid);[s.bottomAxesContainer,s.rightAxesContainer,s.leftAxesContainer,s.topAxesContainer].forEach(e=>{let i=Ii({childId:t,parent:e,useChildId:!0});i&&(i.children.values.filter(r=>r instanceof bo).forEach(r=>{r.dispose()}),e.children.removeValue(i),i.dispose()),e.markDirty()}),Ik(s,{}),uX(s)}function qw(s,t){let e=gA({root:t.root,parent:t,index:0,id:Ns(Jn,t.uid)});return e.set("paddingTop",q.heatChart.legend.titlePadding),yA({chart:s,label:e,labelType:ii.LegendTitle}),e}function uw(s){let{chart:t,legendConfig:e,container:i}=s,r=Ns(ba,t.uid),a=i;if(a||[t.bottomAxesContainer,t.rightAxesContainer,t.leftAxesContainer,t.topAxesContainer].forEach(n=>{let o=Ii({childId:r,parent:n,useChildId:!0});o&&(a=o)}),a!==void 0){let n=Ii({childId:Jn,parent:a})??qw(t,a);if(e!==void 0){let{title:o,visible:l}=e,{legendTitle:h}=q.legendProperties;if(o!==void 0){wn({label:n,labelConfig:{...o,visible:l!==!1&&o.visible!==!1},defaults:{...h,verticalCenter:Yt.Top}});let c=fe(t.uid,"config")?.legend?.position??q.heatChart.legend.position;c===st.Left||c===st.Right?(n.set("maxWidth",250),bl({chart:t,label:n,labelType:ii.LegendTitle})):n.set("maxWidth",void 0),Mk({legendContainer:a,chart:t})}else Zi(n,!1)}}}function hX(s,t){let{root:e}=s,i=fe(s.uid,"config"),r=i?.legend,a=s.series.values[0];Zw(s);let n=Pk(s,i??t),o=Re.new(e,{id:Ns(ba,s.uid),layout:e.verticalLayout});return o.children.push(n),qw(s,o),uw({chart:s,legendConfig:r,container:o}),$k({series:a,legend:n,chart:s}),r!==void 0&&r.visible!==!1&&(Lk({chart:s,legend:n,legendContainer:o}),cw({legend:n,chart:s,legendContainer:o})),n}function cw(s){let{legend:t,chart:e,legendContainer:i}=s,r=fe(e.uid,"config"),a=q.heatChart.legend,n=r?.legend?.position??a.position;if(n===st.Left||n===st.Right)t.set("height",ge),i.set("height",ge),Mk({legendContainer:i,chart:e});else{let o=Ii({childId:Jn,parent:i}),l=r?.legend?r.legend.visible??!0:!1,h=r?.legend?.title?r.legend.title.visible??!0:!1,c=o instanceof Zt&&l&&h?o.height()>0?o.height():a.titleHeight+a.titlePadding:0,u=n===st.Top?a.topHeight:a.bottomHeight;t.set("height",u),i.set("height",u+c+20)}}function Mk(s){let{legendContainer:t,chart:e}=s,i=fe(e.uid,"config"),r=q.heatChart.legend,a=i?.legend?.position??r.position;if(a!==st.Left&&a!==st.Right)return;let n=Ii({childId:Jn,parent:t}),o=i?.legend?.title?i.legend.title.visible??!0:!1;if(n instanceof Zt&&o){let l=()=>{let h=n.width(),c=r.width,u=Math.max(h+r.legendPadding*2,c);t.set("width",u)};n.width()>0?l():n.events.once("boundschanged",l)}else t.set("width",r.width)}function uX(s){let t=Ii({childId:Wv,parent:s});t instanceof Re&&t.set("marginTop",0)}function cX(s){let t,e=Ns(ba,s.uid);return[s.bottomAxesContainer,s.rightAxesContainer,s.leftAxesContainer,s.topAxesContainer].forEach(i=>{let r=Ii({childId:e,parent:i,useChildId:!0});if(r){let n=r.children.values.find(o=>o instanceof bo);if(n){t=n;return}}let a=i.children.values.find(n=>n instanceof bo);if(a){t=a;return}}),t}function dX(s){let{chart:t,chartConfig:e,heatLegendPositionChanged:i,heatRulesTypeChanged:r}=s,{legend:a}=e,n=a!==void 0&&a.visible!==!1,o=t.series.values[0];if(i||r)Zw(t),n&&o instanceof Li&&yu(()=>{let l=Pk(t),h=Re.new(t.root,{id:Ns(ba,t.uid),layout:t.root.verticalLayout});h.children.push(l),qw(t,h),uw({chart:t,legendConfig:a,container:h}),AL(t,l),Lk({chart:t,legend:l,legendContainer:h}),$k({series:o,legend:l,chart:t}),cw({legend:l,chart:t,legendContainer:h})});else if(o instanceof Li){let l=cX(t);if(l){AL(t,l),uw({chart:t,legendConfig:a}),Ek(l,a);let h=l.parent;h?.get("id")===Ns(ba,t.uid)&&Zi(h,n),Zi(l,n),lX(l,t),h&&cw({legend:l,chart:t,legendContainer:h}),yu(()=>{kk(l,()=>{Ok({legend:l,series:o,chartConfig:e})})})}}}function AX(s,t){let e=!1;if(t===st.Right||t===st.Left)e=!0;else{let i=s.dataItems[0]?.get("itemContainer").bounds().left;i!==void 0&&(e=!s.dataItems.some(r=>r.get("itemContainer").bounds().left!==i))}return e}function pX(s){let t=!1,e=s.dataItems[0]?.get("itemContainer").bounds().bottom;return e!==void 0&&(t=!s.dataItems.some(i=>i.get("itemContainer").bounds().bottom!==e)),t}function fX(s){Vw(s.uid,{isLegendValueLabel:!0}),s.valueLabels.template.adapters.add("text",(t,e)=>{let i=t??"",r=GW(s.uid,"pieChartLegendValueLabelsFormatter");return r!==void 0&&(i=r(e.dataItem?.get("value")??0,e.dataItem?.get("valuePercentTotal")??0)),i}),s.valueLabels.template.set("text","")}function Rk(s){let{legend:t,seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r,chart:a}=s,{visible:n,body:o,displayNumericValue:l,displayPercentage:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:c,percentValueFormat:u,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:m}=e[0],f=l??q.pieChart.displayNumericValueOnLegend,g=h??q.pieChart.displayPercentageOnLegend,y=r;if(r===void 0){let $=Xw({pieChart:a,valueIntlOptions:c?.intlOptions,percentageIntlOptions:u?.intlOptions,displayNumericValue:f,displayPercentage:g,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:m});y=(I,R)=>$("",I,R)}YW(t.uid,{pieChartLegendValueLabelsFormatter:y});let x=fe(a?.uid??0,"config")?.legend?.position??q.legendProperties.position,w=i?.valueLabelMaxWidth,S=AX(t,x),D={type:V.Text,visible:n,content:{...o,type:Dt.TS,text:".",verticalAlignment:Yt.Middle,horizontalAlignment:S?bi.Right:bi.Center}};wn({label:t.valueLabels.template,labelConfig:D,defaults:q.legendProperties.valueLabels});let T=fe(a?.uid??0,"rtl")??!1,L=w!==void 0&&!Number.isNaN(w);t.valueLabels.template.setAll({x:void 0,y:void 0,paddingRight:5,textAlign:T?"right":"left",disabled:f===!1&&g===!1,width:L?w:null,oversizedBehavior:L?"wrap":"none"})}}function mX(s,t){s.labels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),a=r?.legend?.labelMaxWidth,n=r?.legend?.position??q.legendProperties.position;if(n===st.Right||n===st.Left)i=a??q.legendProperties.legendLabels.maxWidth;else if(a!==void 0)i=a;else{let o=0;s.valueLabels.template.get("forceHidden")||s.valueLabels.each(h=>{let c=h.get("width",0);typeof c=="number"&&(o=Math.max(o,c))});let l=s.get("width",200);typeof l=="number"&&(i=l+o)}return i}),s.valueLabels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),a=r?.legend?.valueLabelMaxWidth,n=r?.legend?.position??q.legendProperties.position;return n===st.Right||n===st.Left?i=a??q.legendProperties.valueLabels.maxWidth:i=a??Number.NaN,i})}function Uk(s,t){let e=0;for(let i of s.dataItems){let r=i.get("label")?._contentWidth??0;e=Math.max(e,r)}return t&&e>t?t:e}function gX(s,t){for(let e of s.dataItems)e.get("label")?.set("width",t)}function yX(s,t){let e=0;for(let i of s.dataItems){let r=i.get("marker")?._contentWidth??0,a=i.get("valueLabel")?._contentWidth??0,n=r+t+a;e=Math.max(e,n)}return Math.ceil(e)+q.legendPadding}function Vk(s,t){yu(()=>{let e=pX(s),i=t===st.Right||t===st.Left||!e;gX(s,i?Uk(s):void 0)})}function vX(s){let{legend:t,chart:e,seriesConfig:i,legendConfig:r}=s,{displayCategory:a}=r??{},n=a??q.pieChart.displayCategoryOnLegend,o=fe(e?.uid??0,"rtl")??!1;t.labels.template.setAll({forceHidden:n===!1,direction:o?"rtl":"ltr",oversizedBehavior:r?.labelMaxWidth!==void 0&&!Number.isNaN(r.labelMaxWidth)?"wrap":"none"}),yu(()=>{let l=Uk(t,r?.labelMaxWidth),h=yX(t,l);t.itemContainers.template.setAll({width:h,layout:e.root.horizontalLayout}),mX(t,e),Rk({legend:t,seriesConfig:i,webChartLegend:r,chart:e});let c=r.position??q.legendProperties.position;Vk(t,c),t.markDirty()})}function Nk(s){return s?.[0].type===V.HeatSeries&&s[0].heatRulesType!==Iu.Renderer}function Hk(s){let t=s.get("id");s.on("visible",(e,i)=>{if(i){let{chart:r}=i;if(r instanceof Ts){let a=Ii({childId:ba,parent:r});a!==void 0&&a.dataItems?.forEach(n=>{n.get("id")===t&&a.set("opacity",e?1:q.legendProperties.legendLabelReducedOpacity)})}}})}function bX(s){let t=s.target.dataItem;if(t?.dataContext!==void 0){let{dataContext:e}=t,i=typeof e=="object"&&e!==null&&"component"in e?e.component:e;if(i instanceof Yr){let r={visible:!i.get("visible")};nh(i)||Gf(i)?r.overlayType=Rt(i.uid,"type"):r.seriesId=i.get("id"),Jb(r,i.root.dom)}}}function xX(s){s.itemContainers.template.events.on(Ai.Click,bX)}function _X(s,t){let e=fe(t.uid,"rtl")??!1;s.itemContainers.template.setAll({reverseChildren:e})}function CX(s){let{chart:t,legend:e,chartConfig:i,showEmptySeries:r,queryObject:a}=s,n=ze(i.series);if(t.series.length>1||n===V.PieSeries||n===V.HeatSeries){let o=[],l=It(i.series);switch(n){case V.BoxPlotSeries:{let h=Ca(i);o=t.series.values.filter(c=>{let u=!1;return h?u=c instanceof qt&&!(c instanceof wo):u=c instanceof Ia,u});break}case V.HistogramSeries:{o=t.series.values.filter(h=>{let c=!1;if(Rt(h.uid,"isOverlay")){let u=i.series[0].type===V.HistogramSeries?i.series[0].overlays:void 0,d=Rt(h.uid,"type"),A;switch(d){case xr.Mean:A=u?.mean?.created;break;case xr.Median:A=u?.median?.created;break;case xr.Normal:A=u?.comparisonDistribution?.created;break;case xr.StdDev:A=u?.standardDeviation?.created;break}c=A===!0}return c});break}case V.PieSeries:{o=t.series.getIndex(0)?.dataItems??[];break}case V.ComboLineAndBarSeries:case V.LineSeries:case V.RadarSeries:case V.BarSeries:o=t.series.values.filter(h=>{let c=!0;if(!r){let u=i.series.find(d=>d.id===h.get("id"));if(u!==void 0&&"y"in u&&typeof u.y=="string"){let{x:d,y:A}=u,p=l===Ee.BarAndLineSplitByNoAggregation?`${A}_${Ch({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:A;c=h.data.values.some(m=>oT({dataItem:m,x:d,y:p}))}}return c});break;case V.ScatterSeries:{let h=Xk(t);h!==void 0&&(o=[h]);break}case V.HeatSeries:{let h=t.series.getIndex(0);if(h instanceof Li&&kl(i)&&!Gs(a)){let c=Bk({queryObject:a,chartConfig:i,forLegend:!0,series:h});if(c){o=[...c];let u=EX(t);u!==void 0&&o.push(u)}}break}}e.data.setAll(o)}}function pL(s){let t=0;return s.dataItems.forEach(e=>{let i=e.get("itemContainer").width();t=Math.max(i,t)}),Math.ceil(t)}function fL(s){let t=0;if(s instanceof Zt&&s.get("visible")!==!1&&s.get("forceHidden")!==!0){let e=s.width();Number.isFinite(e)&&(t=e)}return t}function mL(s){let t=0;return s.series.values.forEach(e=>{let i=e.bulletsContainer;i&&i.children.values.forEach(r=>{t=Math.max(t,fL(r))}),t===0&&e.dataItems.forEach(r=>{let a=r.bullets;if(a)for(let n of a)t=Math.max(t,fL(n.get("sprite")))})}),Math.ceil(t)}function $c(s,t){let{root:e}=s,i=Ii({childId:ba,parent:s});if(i!==void 0){let r=fe(s.uid,"config"),a=fe(s.uid,"rtl"),n=ks(r),o=ze(r?.series),l=Ua(r),h=r?.series?.some(We=>We.dataLabels?.visible!==!1)??!1,c=r?.title?r.title.visible??!0:!1,u=r?.subtitle?r.subtitle.visible??!0:!1,d=r?.footer?r.footer.visible??!0:!1,A=r?.legend?r.legend.visible??!0:!1,p=r?.legend?.title?r.legend.title.visible??!0:!1,m=Ii({childId:Wv,parent:s}),f=m instanceof Re&&c?m.height():0,g=Ii({childId:Kw,parent:s}),y=g instanceof Re&&u?g.height():0,x=Ii({childId:Xv,parent:s}),w=x instanceof Re&&d?x.height():0,S=Ii({childId:Jn,parent:i}),D=S instanceof Zt&&A&&p?S?.height():0,T=r?.legend?.position??q.legendProperties.position,L,$=t.get("verticalScrollbar"),I=Qe,R=Qe,F=e.verticalLayout,H=Qe,K=Qe,z=Qe,ee=Qe,ie=0,de,G=t.height()+D,Y=0,xe=0,ae=h&&!n?q.chartContainer.paddingTop??0:0,le=0,Ie,Ze;switch(T){case st.Left:F=e.verticalLayout,H=Xr,z=Xr,K=Xr,ee=Xr,de=void 0,I=Xr,R=Xr,Y=i.width(),ie=f+y,G<s.seriesContainer.height()&&(ie+=s.seriesContainer.height()/2-G/2),L=pL(t),$?.width()!==void 0&&L&&$.isVisible()&&(L+=$.width()+q.scrollbarPadding),a&&(Ie=ge,Ze=L);break;case st.Right:F=e.verticalLayout,H=ge,z=ge,K=Xr,ee=Xr,de=void 0,I=Xr,R=Xr,xe=i.width(),ie=f+y,G<s.seriesContainer.height()&&(ie+=s.seriesContainer.height()/2-G/2),L=pL(t),$?.width()!==void 0&&L&&$.isVisible()&&(L+=$.width()+q.scrollbarPadding),a&&(Ie=ge,Ze=L);break;case st.Top:F=e.gridLayout,H=Qe,z=Qe,K=Xr,ee=Xr,de=ge,I=Qe,R=Qe,ae+=G,ie+=f+y,L=void 0,a&&(Ie=void 0);break;case st.Bottom:F=e.gridLayout,H=Qe,z=Qe,K=ge,ee=ge,de=ge,I=Qe,R=Qe,le=G,ie=-le-w,L=void 0,a&&(Ie=void 0);break}if(n&&h&&(o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.BarSeries&&l===Gi.Side)){let We=mL(s);if(We>0)xe+=We;else if(s.series.length>0){let Je=t.root.events.on(Ai.FrameEnded,()=>{let kt=mL(s);kt>0&&(a?Y+=kt:xe+=kt,Je.dispose(),$c(s,t))})}}(L===void 0||L>0)&&(t.setPrivate("width",L),a&&t.itemContainers.template.setAll({centerX:Ie,dx:Ze})),t.setAll({layout:F,x:I,centerX:R}),i.setAll({x:H,y:K,centerX:z,centerY:ee,dy:ie,width:de,height:0}),s.chartContainer.setAll({paddingBottom:le,paddingTop:ae,paddingLeft:Y,paddingRight:xe}),de===void 0&&(i.setPrivate("width",void 0),i.markDirty()),s instanceof Rs&&Vk(t,T)}}function wX(s){let{chart:t,legend:e,legendContainer:i}=s,r=Ii({childId:Jn,parent:i});r&&r.on("visible",()=>{e.root.events.once(Ai.FrameEnded,()=>{$c(t,e)})}),i.events.on(Ai.BoundsChanged,()=>{$c(t,e)}),e.events.on(Ai.BoundsChanged,()=>{$c(t,e)}),t.seriesContainer.onPrivate("height",()=>{$c(t,e)}),t.series.each(a=>{a.events.on(Ai.DataValidated,()=>{$c(t,e)})})}function Qk(s,t){let e=gA({root:t.root,parent:t,index:0,id:Ns(Jn,t.uid)});return e.set("paddingTop",10),yA({chart:s,label:e,labelType:ii.LegendTitle}),e}function BX(s,t){t.markers.template.setAll({width:q.legendProperties.legendMarkersSize,height:q.legendProperties.legendMarkersSize}),t.markerRectangles.template.adapters.add("fillOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,a=r&&Ps.fillOpacityField in r?r[Ps.fillOpacityField]:e;return typeof a=="number"?a:e}),t.markerRectangles.template.adapters.add("strokeOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,a=r&&Ps.strokeOpacityField in r?r[Ps.strokeOpacityField]:e;return typeof a=="number"?a:e}),t.labels.template.adapters.add("text",(e,i)=>{let r=e,a=fe(s.uid,"config");if(ze(a?.series)!==V.HeatSeries){let n=i.dataItem?.component;n instanceof Hr?r=(i.dataItem?.dataContext?.[n.get("categoryField")??""]??e)?.toString():n instanceof Yr&&(r=n.get("name"))}if(a!==void 0){let{legend:n}=a,o={...n?.body,type:Dt.TS,text:r};r=_a({textSymbol:o,format:"amChartsV5"})}return r})}function SX(s,t){t.seriesContainer.onPrivate("height",e=>{let i=0,r=fe(t.uid,"config"),a=r?.legend,n=Ii({childId:ba,parent:t});if(n!==void 0){let l=Ii({childId:Jn,parent:n});l!==void 0&&a?.visible!==!1&&a?.title?.visible!==!1&&(i=l.height())}let o=r?.legend?.maxHeight??Number.NaN;Number.isFinite(o)||(r?.legend?.position===st.Top||r?.legend?.position===st.Bottom?o=q.legendProperties.maxHeight:typeof e=="number"&&(o=e-i)),s.set("maxHeight",o)})}function FX(s,t,e){s.events.on(Ai.DataValidated,()=>{s.dataItems.length>0&&jk(s,t,e)})}function TX(s){let t;if(s!==void 0){let e=fe(s?.uid,"config");t=fe(s.uid,"rtl")&&(e?.legend?.position===st.Top||e?.legend?.position===st.Bottom)}return t??!1}function PX(s){let t="";if(s instanceof Ci){let e=fe(s.uid,"config"),i=ks(e),r=i?B.Rotated:B.NonRotated,a=Ua(e),n=B.SideBySide;a===Gi.Stacked?n=B.Stacked:a===Gi.Stacked100&&(n=B.Stacked100);let o=fe(s.uid,"rtl")?B.RTL:B.LTR,l;switch(e?.legend?.position){case st.Left:l=B.LegendLeft;break;case st.Top:l=B.LegendTop;break;case st.Bottom:l=B.LegendBottom;break;case st.Right:default:l=B.LegendRight;break}let h=i?s.yAxes.getIndex(0):s.xAxes.getIndex(0),c;h instanceof yr?c=B.DateAxis:h instanceof di?c=B.ValueAxis:c=B.CategoryAxis;let u=e?.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===zA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;t=`${r}-${o}-${n}-${l}-${c}-${u}`}return t}function DX(s){let t=PX(s);return wI.has(t)}function jk(s,t,e){switch(e){case V.HistogramSeries:case V.PieSeries:s.set("reverseChildren",TX(t));break;case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:s.set("reverseChildren",DX(t));break}}function LX(s,t){let e=Ii({childId:ba,parent:s});if(e!==void 0){let i=Ii({childId:Jn,parent:e})??Qk(s,e);if(t!==void 0){let{title:r,visible:a}=t,{legendTitle:n}=q.legendProperties;r!==void 0?(wn({label:i,labelConfig:{...r,visible:a!==!1&&r.visible!==!1},defaults:{...n,verticalCenter:Yt.Top}}),bl({chart:s,label:i,labelType:ii.LegendTitle})):Zi(i,!1)}}}function IX(s,t=!1){let e=t?q.legendProperties.roundedMarkerRadius:q.legendProperties.rectangleMarkerRadius;s.markerRectangles.template.setAll({cornerRadiusTL:e,cornerRadiusTR:e,cornerRadiusBL:e,cornerRadiusBR:e})}function kX(s){let{legend:t,legendConfig:e,chartType:i,seriesConfig:r,chart:a}=s;if(t!==void 0){let n={type:V.Text,visible:e?.visible,content:{...e?.body,type:Dt.TS,text:" "}};if(i===V.PieSeries){let o=Ii({childId:ba,parent:a});o!==void 0&&Ii({childId:Jn,parent:o})!==void 0&&Rk({legend:t,seriesConfig:r,webChartLegend:e,chart:a})}wn({label:t.labels.template,labelConfig:n}),t.labels.template.setAll({x:void 0,y:void 0,paddingRight:5})}}function $X(s,t){t===!0&&s.itemContainers.each(e=>{e.events.disableType(Ai.Click)})}function OX(s){let{legend:t,chart:e,seriesConfig:i}=s;i?.[0].type!==V.HeatSeries&&t.itemContainers.template.adapters.add("cursorOverStyle",()=>fe(e.uid,"options")?.disableTogglingLegendItems===!0?"default":"pointer")}function gL(s,t){let{root:e}=s,i;if(Nk(t?.series))i=hX(s,t);else{let r=Re.new(e,{id:Ns(ba,s.uid),layout:e.verticalLayout}),a=t?.series?.[0].type===V.HeatSeries?{nameField:Ps.nameField,fillField:Ps.fillField,strokeField:Ps.strokeField,fillOpacityField:Ps.fillOpacityField,strokeOpacityField:Ps.strokeOpacityField}:{};i=hl.new(e,{...a,verticalScrollbar:cl.new(e,{orientation:"vertical"})}),s instanceof Rs?fX(i):i.valueLabels.template.setAll({forceHidden:!0,textAlign:"left"}),BX(s,i),Qk(s,r),xX(i),_X(i,s),wX({chart:s,legend:i,legendContainer:r}),SX(i,s),FX(i,s,ze(t?.series)),OX({legend:i,chart:s,seriesConfig:t?.series}),r.children.push(i),s.children.push(r)}return i}function EX(s){let t=fe(s.uid??NaN,"config"),e=t?.series[0].heatRulesType===Iu.Renderer,i=s.series.values[0].data.values.some(a=>a[Cr.valueField]===null||e&&!a[ht.rendererSymbolField]),r;if(i){let a=t?.series[0].emptyCells,n=a?.symbol?.color??q.heatChart.emptyCells?.symbol?.color,{outlineColor:o,outlineOpacity:l}=Tv(t?.series[0].gridLine);r={[Ps.nameField]:a?.text??q.heatChart.emptyCells?.text??"",[Ps.fillField]:Xt(n).color,[Ps.fillOpacityField]:Xt(n).opacity,[Ps.strokeField]:o,[Ps.strokeOpacityField]:l}}return r}function yL(s){let{chart:t,legend:e,showLegend:i}=s,r=Ii({childId:ba,parent:t});r&&(Zi(r,i),Zi(e,i))}function vL(s){let{chart:t,showLegend:e,legendConfig:i}=s;if(i){let{title:r,visible:a}=i,n=r!==void 0&&a!==!1&&r.visible!==!1,o=Ii({childId:ba,parent:t});if(o){let l=Ii({childId:Jn,parent:o});l&&(r?Zi(l,n):Zi(l,e))}}}function Wk(s){let{chart:t,chartConfig:e,legend:i,heatChartLegendUpdatedNeeded:r,showEmptySeries:a,seriesConfig:n,queryObject:o,heatRulesTypeChanged:l,heatLegendPositionChanged:h}=s,{legend:c,series:u}=e;if(Nk(n)&&r)l&&i&&(yL({chart:t,legend:i,showLegend:!1}),vL({chart:t,showLegend:!1,legendConfig:c})),dX({chart:t,chartConfig:e,heatLegendPositionChanged:h,heatRulesTypeChanged:l});else if(i instanceof hl&&(n?.[0].type===V.HeatSeries&&Zw(t),Ii({childId:ba,parent:t})!==void 0)){let d=ux(u)&&c!==void 0&&c.visible!==!1;if(yL({chart:t,legend:i,showLegend:d}),vL({chart:t,showLegend:d,legendConfig:c}),d){IX(i,c?.roundMarkers),kX({legend:i,legendConfig:c,chartType:ze(u),seriesConfig:n,chart:t}),jk(i,t,ze(u)),CX({chart:t,legend:i,chartConfig:e,showEmptySeries:a,queryObject:o}),LX(t,c),$c(t,i);let A=fe(t.uid,"options");$X(i,A?.disableTogglingLegendItems),t instanceof Rs&&vX({legend:i,chart:t,seriesConfig:n,legendConfig:c})}}}function MX(s){let{seriesConfig:t,series:e,sizePolicyChanged:i}=s,{sizePolicy:r}=t,a=e.get("heatRules")?.[0],n=Rt(e.uid,"bulletTemplate");if(n!==void 0)if(r!==void 0){let{scaleType:o,field:l,minSize:h,maxSize:c}=r,u=mF(),d=t.markerSymbol?.size??Kb().size??1,A=(h??u.minSize)/d,p=(c??u.maxSize)/d;a!==void 0?i&&(a.min=A,a.max=p,a.logarithmic=o===Hb.Logarithmic,e.set("valueField",l),e.markDirtySize()):e.setAll({valueField:l,calculateAggregates:!0,heatRules:[{target:n,key:"scale",min:A,max:p,dataField:"value",logarithmic:o===Hb.Logarithmic}]})}else e.get("heatRules")?.pop(),e.setAll({valueField:void 0,calculateAggregates:!1})}function nh(s){return s.get("id")===q.overlayId.scatterplotTrendLine}function RX(s){return s.series.values.find(t=>!nh(t))}function Xk(s){return s.series.values.find(t=>nh(t))}function UX(s){let{root:t,xAxis:e,yAxis:i,seriesConfig:r}=s,{x:a,y:n}=r,o=qt.new(t,{xAxis:e,yAxis:i,valueXField:a,valueYField:n,layer:q.zIndexes.scatterplotTrendLine});return o.set("id",q.overlayId.scatterplotTrendLine),hs(o.uid,{type:xr.Trendline}),o}function VX(s){let{markerSeries:t,options:e,queryObject:i}=s,r=Pt.new({});hs(t.uid,{bulletTemplate:r}),us(r,e?.selectionTheme),t.bullets.push(a=>{let n=ft.new(a,{nonScalingStroke:!0,tooltip:BA({series:t,tooltipFormatter:e?.tooltipFormatter})},r);return Do({element:n,series:t,queryObject:i}),e$(n,t),ma.new(a,{sprite:n})})}function NX(s){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:a,options:n,queryObject:o}=s,{x:l,y:h,id:c}=i,u=[],d=qt.new(t,{xAxis:r,yAxis:a,valueXField:l,valueYField:h,id:c,opacity:0,valueField:"value",maskBullets:!1,layer:q.zIndexes.bulletMarkers});d.strokes.template.set("forceHidden",!0),VX({markerSeries:d,options:n,queryObject:o}),TA(d,e),u.push(d);let A=UX({root:t,xAxis:r,yAxis:a,seriesConfig:i});return Hk(A),u.push(A),d.appear(),u}function HX(s){let{root:t,trendLineSeries:e,data:i,dataWasUpdated:r,seriesWereReinitialized:a,valueFormat:n,defaultR2Value:o,chartConfig:l}=s,{chart:h}=e,c=l.series[0],u=c.overlays?.trendLine,d=u?.symbol??{type:Dt.SLS},A=u?.created===!0&&u.visible!==!1;if(i&&(r||a)){let p=q.scatterplotSeries,m=h!==void 0?fe(h.uid,"formatLocale"):void 0,{x:f,y:g}=c;e.setAll({valueXField:f,valueYField:g}),e.data.setAll(i.trendLinePoints??q.scatterplotSeries.trendLinePoints);let y=Number.isFinite(i.r2)?vA({root:t,value:i.r2??p.r2,valueFormat:n,formatLocale:m}):void 0,x=y!==void 0?`R\xB2 = ${y}`:o;e.set("name",x)}d.color===void 0&&(d.color=bh({colorIndex:1})),So({element:e,lineSymbol:d,visible:A})}function QX(s){let{root:t,chartConfig:e,markerSeries:i}=s,r=i.chart;if(r){let a=e.series[0],n=Ol(e),o,l,h=Kb(),c=new Set;i.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");if(A!==void 0){let p=on({dataItem:d?.dataContext,seriesConfig:a,chartSubType:Ee.NonSpecific,colorMatch:n}),m=en({root:t,element:A,seriesSymbol:a.markerSymbol??h,rendererSymbol:p,colorMatch:n});o=m.symbolWithColorInfo,l=m.stylingInfo,pA(A,l),c.add(JSON.stringify(l))}}),o=c.size>1?void 0:o;let u=new Map;u.set(0,o),nn({data:u,htmlContainer:t.dom,chartId:i.chart?.get("id"),colorMatchApplied:PA(r)})}}function jX(s){let{dataWasUpdated:t,seriesWereReinitialized:e,data:i,series:r,chartConfig:a,loaderHandle:n}=s;if((t||e)&&i){let{x:o,y:l}=a.series[0];if(r.setAll({valueXField:o,valueYField:l}),r.events.once(Ai.DataValidated,()=>{n.hideLoader()}),a.series[0].type===V.ScatterSeries&&a.series[0].sizePolicy){let{field:h}=a.series[0].sizePolicy;i.dataItems=i.dataItems.sort((c,u)=>typeof u[h]=="number"&&typeof c[h]=="number"?u[h]-c[h]:0)}r.data.setAll(i.dataItems)}}function WX(s){let{root:t,chartConfig:e,seriesConfig:i,options:r,fieldList:a,series:n,trendLineSeries:o,data:l,dataWasUpdated:h,seriesWereReinitialized:c,sizePolicyChanged:u,loaderHandle:d,utilsStrings:A}=s,{axes:p}=e,{tooltipFormatter:m}=r??{};n.set("id",i.id);let f=Rt(n.uid,"bulletTemplate");f&&us(f,r?.selectionTheme),Zi(n.bulletsContainer,i.visible),HX({root:t,trendLineSeries:o,chartConfig:e,data:l,dataWasUpdated:h,seriesWereReinitialized:c,valueFormat:Xb(),defaultR2Value:A.notAvailable}),MX({seriesConfig:i,series:n,sizePolicyChanged:u}),oh(s)&&lh({styleCallback:QX,callbackProps:{root:t,chartConfig:e,markerSeries:n,dataWasUpdated:h},series:n,seriesConfig:i}),U4({axesConfig:p,seriesConfig:i,series:n,fieldList:a,tooltipFormatter:m}),jX({dataWasUpdated:h,seriesWereReinitialized:c,data:l,series:n,chartConfig:e,loaderHandle:d})}function XX(s){s.series.each(t=>{t instanceof qt?t.dataItems.forEach(e=>{let i=e.bullets?.[0];i&&na({element:i.get("sprite"),selected:!1,backToDefaultState:!0})}):t instanceof Li?t.columns.each(e=>{na({element:e,selected:!1,backToDefaultState:!0})}):t instanceof Hr&&t.slices.each(e=>{na({element:e,selected:!1,backToDefaultState:!0})})})}function zc(s){let{chart:t,selectionSource:e}=s,i=fe(t.uid,"currentSelectionDataItems");Kr(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),Nw(t)&&XX(t),i&&Mu({data:{selectionSource:e??Pr.ClearSelection},htmlContainer:t.root.dom})}function zk(s){let t=s?.selection.width();return t!==void 0&&t>0&&t!==2e7}function Do(s){let{element:t,series:e,queryObject:i}=s;t.events.on(Ai.PointerUp,async r=>{let{chart:a}=e;if(a){let n=a.get("cursor");if(!zk(n)){let o=fe(e.chart?.uid??Number.NaN,"actionMode");if(!fe(e.chart?.uid??Number.NaN,"filterBySelection")&&o!==Vt.None&&o!==Vt.Zoom){let l=r.target,h=v4(r,e);na({element:l,selected:_l(l.uid,"selected")!==!0}),h&&a.series.each(c=>{c instanceof qt?c.dataItems.forEach(u=>{let d=u.bullets?.[0]?.get("sprite");d!==l&&na({element:d,selected:!1})}):c instanceof Li?c.columns.each(u=>{u!==l&&na({element:u,selected:!1})}):c instanceof Hr&&c.slices.each(u=>{u!==l&&na({element:u,selected:!1})})}),await Jw({chart:a,selectionSource:Pr.SelectionByClick,queryObject:i})}}}})}function bL(s,t){let e=Number.NaN,i=Number.NaN;if(s instanceof ml){let r=t.get("renderer")instanceof Us,a=s.getPrivate(r?"downPositionX":"downPositionY"),n=s.getPrivate(r?"positionX":"positionY");if(a!==void 0&&n!==void 0)if(t instanceof Sr)e=t.axisPositionToIndex(t.toAxisPosition(a)),i=t.axisPositionToIndex(t.toAxisPosition(n));else if(t instanceof yr){e=t.positionToDate(t.toAxisPosition(a)).getTime(),i=t.positionToDate(t.toAxisPosition(n)).getTime();let o=t.getPrivate("baseInterval"),l=Sc.getDuration(o.timeUnit,o.count)*(t.chart?.series.getIndex(0)?.get("locationX")??1);e-=l,i-=l}else t instanceof di&&(e=t.positionToValue(t.toAxisPosition(a)),i=t.positionToValue(t.toAxisPosition(n)))}else{let r=t.get("renderer")instanceof ls,a=s.getPrivate(r?"downPositionX":"downPositionY"),n=s.getPrivate(r?"positionX":"positionY");a!==void 0&&n!==void 0&&(e=a*(r?t.width():t.height()),i=n*(r?t.width():t.height()))}return{value1:e,value2:i}}function zX(s){let t=()=>{let e=s instanceof Ci?s.get("cursor"):void 0,i=fe(s.uid,"filterBySelection");(e===void 0||!zk(e))&&!i&&zc({chart:s})};s.get("background")?.events.on(Ai.Click,t),s instanceof Ci&&s.plotContainer.events.on(Ai.PointerUp,t)}function GX(s){let{series:t,cursorBounds:e,multiSelect:i}=s,r=fe(t.chart?.uid??NaN,"config"),a=ze(r?.series);t.columns.each(n=>{let o=n.get("x"),l=n.get("y"),h=n.height()<0&&a!==V.HeatSeries,c=h?Math.abs(n.height()):n.height();if(typeof o=="number"&&typeof l=="number"){let u=h?l-c:l,d={left:o,right:o+n.width(),top:u,bottom:u+c};if(a===V.HeatSeries){let p=d.top;d.top=d.bottom,d.bottom=p}let A=!(d.left>e.right||d.right<e.left||d.top>e.bottom||d.bottom<e.top)||i&&_l(n.uid,"selected")===!0;na({element:n,selected:A})}})}function YX(s){let{series:t,cursorBounds:e,multiSelect:i}=s;t.dataItems.forEach(r=>{let a=r.bullets?.[0]?.get("sprite");if(a){let n=r.bullets?.[0]?.get("sprite").get("x"),o=r.bullets?.[0]?.get("sprite").get("y"),l=typeof n=="number"&&typeof o=="number"&&n>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom||i&&_l(a.uid,"selected")===!0;na({element:a,selected:l})}})}function KX(s){let{xAxis:t,series:e,cursorBounds:i,multiSelect:r}=s;e.dataItems.forEach(a=>{let n=a.bullets?.[0]?.get("sprite");if(n){let o=a.dataContext,l=a.get("valueX"),h=a.get("valueY");if(t instanceof Sr){let A=o?.[q.xAxisField];typeof A=="string"&&(l=t.categoryToIndex(A))}let c=typeof l=="number"&&l>=i.left&&l<=i.right,u=typeof h=="number"&&h>=i.top&&h<=i.bottom,d=c&&u||r&&_l(n.uid,"selected")===!0;na({element:n,selected:d})}})}function ZX(s){let{cursor:t,xAxis:e,yAxis:i}=s,r=t.get("behavior"),{value1:a,value2:n}=bL(t,e),{value1:o,value2:l}=bL(t,i),h={left:a>n?n:a,right:a>n?a:n,top:o<l?o:l,bottom:o<l?l:o};return r==="selectX"?(h.top=Number.NEGATIVE_INFINITY,h.bottom=Number.POSITIVE_INFINITY):r==="selectY"&&(h.right=Number.POSITIVE_INFINITY,h.left=Number.NEGATIVE_INFINITY),h}function qX(s,t){s.get("cursor")?.events.on(Ai.SelectEnded,async e=>{let i=fe(s.uid,"actionMode");if(i===Vt.MultiSelection||i===Vt.MultiSelectionWithCtrlKey){let r=s.xAxes.getIndex(0),a=s.yAxes.getIndex(0);if(r&&a){let n=fe(s.uid,"config"),o=ze(n?.series),l=s.get("cursor"),h=ZX({cursor:l,xAxis:r,yAxis:a}),c=pk(e);s.series.each(u=>{!nh(u)&&!Gf(u)&&(u instanceof Li?GX({series:u,cursorBounds:h,multiSelect:c}):u instanceof qt&&(o===V.RadarSeries?KX({xAxis:r,series:u,cursorBounds:h,multiSelect:c}):YX({series:u,cursorBounds:h,multiSelect:c})))}),Zi(l.selection,!1),await Jw({chart:s,selectionSource:Pr.SelectionByRange,queryObject:t})}}})}function JX(s){let{series:t,labelDefaults:e,externalDataLabelFormatter:i,seriesType:r}=s;t.bullets.push(()=>{let a=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??s.dataLabelsConfig,n=ma.new(t.root,{locationY:1,sprite:Zt.new(t.root,{populateText:!0,oversizedBehavior:"hide",centerY:ge,centerX:Qe,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(a?.content.color).color,fontSize:a?.content.font?.size})}),o=n.get("sprite");return o&&(Gk({dataLabel:o,series:t,externalDataLabelFormatter:i}),t.chart&&a?.visible&&mk({label:o,chart:t.chart,seriesType:r}),jv({...s,dataLabel:o,dataLabelsConfig:a,labelDefaults:e,defaultDataLabelFormatter:Yk})),n})}function Gk(s){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=s;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";Nf({label:t,labelOutputProp:r}),t.adapters.add(r,(a,n)=>{let o=a??"",l=Rt(e.uid,"histogramDataLabelFormatter"),h=n.dataItem;if(h&&"dataContext"in h&&h.dataContext!==void 0&&l!==void 0){let{count:c,minValue:u,maxValue:d}=h.dataContext;o=l(c,u,d)}return r==="html"?Mr(o):o})}function Yk(s){let{numberFormatter:t,dataLabelsConfigContent:e,externalDataLabelFormatter:i}=s;return(r,a,n)=>_a({textSymbol:{...e,text:t.format(r)},format:i===void 0?"amChartsV5":"html"})}function ez(s){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=s;t.dataItems.forEach(r=>{let a=r.bullets?.[0];if(a){let n=a.get("sprite");n&&n instanceof Zt&&(Gk({dataLabel:n,series:t,externalDataLabelFormatter:i}),jv({...s,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:Yk,externalDataLabelFormatter:i}))}})}function Kk(s){let{series:t,dataLabelsConfig:e}=s,i=e?.visible,r=t.bullets.hasIndex(0);i!==!0?r&&Qw(t,0):(r||JX(s),ez(s))}function Gf(s){return[q.overlayId.histogramMean,q.overlayId.histogramMedian,q.overlayId.histogramStdDev,q.overlayId.histogramNormalDistribution].includes(s.get("id")??"")}function tz(s){let t="";switch(s){case xr.Mean:t=q.overlayId.histogramMean;break;case xr.Median:t=q.overlayId.histogramMedian;break;case xr.StdDev:t=q.overlayId.histogramStdDev;break;case xr.Normal:t=q.overlayId.histogramNormalDistribution;break}return t}function iz(s){let{series:t,seriesConfig:e,colorMatch:i,rendererSymbol:r}=s,{root:a}=t,n=t.chart;if(n){let o=e.fillSymbol??gF(),l=en({root:t.root,element:t.columns.template,seriesSymbol:o,rendererSymbol:r,colorMatch:i,isChartFillSymbol:!0}).symbolWithColorInfo;if(l!==void 0){let h=new Map;h.set(0,l),nn({data:h,htmlContainer:a.dom,chartId:n.get("id"),colorMatchApplied:PA(n)})}}}function rz(s){let{series:t,data:e,dataWasUpdated:i,seriesWereReinitialized:r,loaderHandle:a}=s;e&&(i===!0||r===!0)&&(t.events.once(Ai.DataValidated,()=>{a.hideLoader()}),t.data.setAll(e.bins))}function mv(s){let{root:t,xAxis:e,yAxis:i,type:r,utilsStrings:a}=s,n=qt.new(t,{id:tz(r),valueXField:"x",valueYField:"y",xAxis:e,yAxis:i,visible:!1});return r===xr.Normal&&FA(n,a.overlays.normal),hs(n.uid,{isOverlay:!0,type:r}),n.set("connect",!1),n.appear(),n}function sz(s){let{root:t,seriesConfig:e,xAxis:i,yAxis:r,options:a,chartConfig:n,queryObject:o}=s,{id:l,name:h}=e,c=Li.new(t,{id:l,name:h,xAxis:i,yAxis:r,categoryXField:od.Start,valueYField:od.Count,maskBullets:!1});return us(c.columns.template,a?.selectionTheme),Do({element:c.columns.template,series:c,queryObject:o}),c.columns.template.setAll({width:ge}),Kk({yAxisValueFormat:n.axes?.[1]?.valueFormat,series:c,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:a?.dataLabelFormatter}),TA(c,n),c.appear(),c}function az(s){let{root:t,seriesConfig:e,xAxis:i,xAxisForOverlaySeries:r,yAxis:a,utilsStrings:n,options:o,chartConfig:l,queryObject:h}=s,c=[],u=sz({root:t,seriesConfig:e,xAxis:i,yAxis:a,options:o,chartConfig:l,queryObject:h});return c.push(u),Ww(u,o?.tooltipFormatter),r&&(c.push(mv({root:t,xAxis:r,yAxis:a,type:xr.Mean,utilsStrings:n})),c.push(mv({root:t,xAxis:r,yAxis:a,type:xr.Median,utilsStrings:n})),c.push(mv({root:t,xAxis:r,yAxis:a,type:xr.StdDev,utilsStrings:n})),c.push(mv({root:t,xAxis:r,yAxis:a,type:xr.Normal,utilsStrings:n}))),c}function nz(s){let{lineSeries:t,overlayConfig:e,data:i,utilsStrings:r}=s;if(!e)Zi(t,!1);else{let{symbol:a,created:n,visible:o}=e,l=Rt(t.uid,"type"),h=a??{type:Dt.SLS};if(e.symbol?.color===void 0&&(h.color=bh({colorIndex:cx(l),histogramOverlays:!0})),So({element:t,lineSymbol:h,visible:n===!0&&o!==!1}),i&&"bins"in i){let u=i.bins.map(x=>x.count),d=Math.max(...u),{mean:A,stddev:p,median:m}=i,f=A-p,g=A+p,y=[];switch(l){case xr.Mean:y=[{x:A,y:0},{x:A,y:d}];break;case xr.Median:y=[{x:m,y:0},{x:m,y:d}];break;case xr.StdDev:y=[{x:f,y:0},{x:f,y:d},{x:null,y:null},{x:g,y:0},{x:g,y:d}];break}t.data.setAll(y)}let c=t.data.getIndex(0)?.x;if(l===xr.StdDev&&(c=i?.stddev??Rt(t.uid,"stddev"),hs(t.uid,{stddev:c})),typeof c=="number"){let u=l;switch(l){case xr.Mean:u=r.overlays.mean;break;case xr.Median:u=r.overlays.median;break;case xr.StdDev:u=r.overlays.stdDev;break}let d=fe(t.chart?.uid??Number.NaN,"formatLocale"),A=vA({root:t.root,value:c,valueFormat:Xb(),formatLocale:d}),p=`${u}: ${A}`;FA(t,p)}}}function oz(s){let{lineSeries:t,overlayConfig:e,data:i,numberOfPoints:r}=s;if(!e)Zi(t,!1);else{let{symbol:a,created:n,visible:o}=e,l=a??{type:Dt.SLS};if(e?.symbol?.color===void 0&&(l.color=bh({colorIndex:cx(xr.Normal),histogramOverlays:!0})),So({element:t,lineSymbol:l,visible:n===!0&&o!==!1}),i&&"bins"in i){let{mean:h,stddev:c,min:u,max:d}=i,A=y4(i.bins),p=m4(u,d,r??q.histogramSeries.normalDistribNumberOfPoints).map(m=>({x:m,y:g4({x:m,mean:h,stddev:c,scalingFactor:A})}));t.data.setAll(p)}}}function lz(s){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,data:a,loaderHandle:n,options:o}=s;t.set("id",e.id),Zi(t,e.visible),us(t.columns.template,o?.selectionTheme),xu(t.columns.template,a?.bins?.length),FA(t,e.name);let l=a?.bins.find(h=>"symbol"in h)?.symbol;oh(s)&&lh({styleCallback:iz,callbackProps:{...s,rendererSymbol:l},series:t,seriesConfig:e}),rz({series:t,seriesWereReinitialized:i,dataWasUpdated:r,data:a,loaderHandle:n})}function hz(s){let{allChartSeries:t,seriesConfig:e,data:i,utilsStrings:r,fieldList:a,axes:n,options:o,dataLabelFormatter:l,chartConfig:h}=s,{tooltipFormatter:c}=o??{};for(let u=0;u<t.length;u++){let d=t[u];if(d instanceof qt&&Rt(d.uid,"isOverlay")){let A=Rt(d.uid,"type");if(A===xr.Normal)oz({lineSeries:d,overlayConfig:e.overlays?.comparisonDistribution,data:i});else{let p;switch(A){case xr.Mean:p=e.overlays?.mean;break;case xr.Median:p=e.overlays?.median;break;case xr.StdDev:p=e.overlays?.standardDeviation;break}nz({lineSeries:d,overlayConfig:p,data:i,utilsStrings:r})}}else d instanceof Li&&(lz({...s,series:d}),Kk({series:d,yAxisValueFormat:h.axes?.[1]?.valueFormat,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:l}),I4({axes:n,series:d,seriesConfig:e,fieldList:a,tooltipFormatter:c,utilsStrings:r,axesConfig:h.axes}))}}function uz(s){let t="";return s instanceof ya?t=s.get("categoryXField")??s.get("valueXField")??"":s instanceof Hr&&(t=s.get("categoryField")??""),t}function cz(s){let t="";return s instanceof ya?t=s.get("categoryYField")??s.get("valueYField")??"":s instanceof Hr&&(t=s.get("categoryField")??""),t}function Yf(s){let t="",{chart:e}=s;return e!==void 0&&(t=fe(e.uid,"isRotated")===!0?uz(s):cz(s)),t}function dz(s){dx(),ex(s.root.dom),zc({chart:s})}function Az(s){let{chart:t,chartType:e,showMean:i}=s;return t.series.values.filter(r=>{let a=!0;return nh(r)||Gf(r)||Rt(r.uid,"isOverlay")===!0?a=!1:e===V.BoxPlotSeries&&(i?a=Rt(r.uid,"isBoxPlotMeanLineSeries")===!0:a=r instanceof Ia),a}).every(r=>Rt(r.uid,"isSelectionApplied")===!0)}function pz(s){s.series.each(t=>hs(t.uid,{isSelectionApplied:void 0}))}function fz(s){let t=[];if(!nh(s)&&!Gf(s))switch(!0){case s instanceof Hr:t=s.slices.values;break;case s instanceof Li:let{chart:e}=s;if(e){let i=fe(e.uid,"config");if(i){let r=ze(i?.series),a=[];r===V.HistogramSeries?a=[od.Count]:r===V.HeatSeries?a=[Cr.valueField]:a=No(i?.series,[s.get("id")??""]),t=s.columns.values.filter(n=>{let o=!1,l=n.dataItem?.dataContext;return l&&(o=r===V.HeatSeries||a.some(h=>h in l&&Number.isFinite(l[h]))),o})}}break;case s instanceof qt:t=Array.from(s.dataItems.values());break}return t}function Zk(s,t){let e=fe(s.uid,"actionMode");(e===Vt.MonoSelection||e===Vt.None)&&t.length>1?zc({chart:s}):t.forEach(i=>{na({element:i,selected:!0})})}function mz(s){let{chart:t,selectionIndexes:e,queryObject:i}=s,r=[],a=[],n=fe(t.uid,"config"),o=Ro(n),l=No(n?.series??[]),h=It(n?.series),c=ze(n?.series);return t.series.each((u,d)=>{if(n&&u.get("visible")===!0&&u.get("id")!==q.overlayId.scatterplotTrendLine){let A=n.series[0].x,p=Yf(u),m=e.get(d);if(m!==void 0){let f;if(u instanceof qt&&(f=u.dataItems.map(g=>g?.bullets?.[0]?.get("sprite")).filter(g=>g!==void 0)),f!==void 0){let{indexesToSelect:g}=m;f.forEach((y,x)=>{if(g===void 0||g.includes(x)){let w=sh({dataContext:y.dataItem?.dataContext,yList:l,yAxisField:p,xAxisField:A,chartType:c,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Uo(i)});w!==void 0&&r.push(w),a.push(y)}else na({element:y,selected:!1})})}}}}),Zk(t,a),r}function gz(s){let{chart:t,chartConfig:e,options:i,elementsToApplySelectionTo:r,selectionDataItems:a,layerOidField:n,xAxisField:o,yAxisField:l,splitBy:h,queryObject:c}=s,u=ze(e.series),d=It(e.series),A=Ro(e),p=[],m=[],f=[],g=No(e.series);return r.forEach((y,x)=>{let w=y instanceof gr||y instanceof ga?y:y.bullets?.[0]?.get("sprite");if(w!==void 0){let S=y instanceof gr||y instanceof ga?w.dataItem?.dataContext:y.dataContext;if(S!==void 0&&u===V.BoxPlotSeries&&S[q.boxPlot.boxPlotOutlierId]!==!0&&(S=sh({dataContext:S,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Uo(c)})),Lv({elementDataContext:S,options:i,selectionDataItems:a,layerOidField:n,xAxisField:o,yAxisField:l,chartType:u,splitBy:h,chartSubType:d,showOutliers:A}))if(p.push(w),m.push(x),w?.dataItem instanceof Xa&&S!==void 0)f.push(S);else{let D=new Set;u===V.PieSeries&&ah(S)?(Hf({groupOfSlicesDataContext:S})??[]).forEach(T=>{a.forEach(L=>{_w({layerOidField:n,sliceDataContext:T,selectionDataContext:L,xAxisField:o})&&D.add(T)})}):D.add(S),Array.from(D)?.forEach(T=>{let L=sh({dataContext:T,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Uo(c)});L!==void 0&&f.push(L)})}else na({element:w,selected:!1})}}),Zk(t,p),{selectedIndexes:m,newSelectionDataItems:f}}function yz(s){let{series:t,seriesIndex:e,queryObject:i,dataWasUpdated:r,sortChanged:a,groupOfSlicesWasUpdated:n,xAxisField:o,yAxisField:l,splitBy:h,rotationChanged:c}=s,{chart:u}=t;if(u instanceof Ts){let d=fe(u.uid,"options"),{filterBySelection:A,selectionData:p,returnSelectionIndexes:m,returnSelectionOIDs:f}=d??{},{selectionIndexes:g}=p??{},y=fe(u.uid,"config"),x=Ca(y),w=ze(y?.series),S=It(y?.series),D=fz(t);if(A!==!0&&y!==void 0){let T=Ys(i),L=_h(T).idField,$=fe(u.uid,"currentSelectionDataItems"),I=!1,R=!1,F,H=!1;if(D?.[0]!==void 0){if(d?.viewExtentUpdated!==!0){F=d?.selectionData?.selectionItems??$;let K=fe(u.uid,"currentSelectionIndexes");H=xx({itemsA:F,itemsB:$,isPieFromFields:S===Ee.PieFromFields,x:o,y:l,outStatisticFieldName:y.series[0].query?.outStatistics?.[0]?.outStatisticFieldName});let z=g?.keys.length!==K?.keys.length||!Ll(g,K);I=a===!0||r===!0||n===!0||c===!0||F!==void 0&&H;let ee=!0;if(g!==void 0&&g.size>0){let{indexesToSelect:ie}=g.get(e??0)??{};ee=ie!==void 0&&ie[0]===void 0}R=r===!0||n===!0||c===!0||!ee&&z}if(I&&F!==void 0&&F.length>0){let{selectedIndexes:K,newSelectionDataItems:z}=gz({chart:u,chartConfig:y,options:d,elementsToApplySelectionTo:D,selectionDataItems:F,layerOidField:L,xAxisField:o,yAxisField:l,splitBy:h,queryObject:i}),ee=fe(u.uid,"computedSelectionDataItems")??[];if(ee.push(...z),y.series.length>1&&S!==Ee.BarAndLineNoAggregation&&S!==Ee.BarAndLineSplitByNoAggregation&&(ee=Cx({data:ee,x:y.series[0].x,splitByField:Vo(y.series[0].query?.where)})),Kr(u.uid,{computedSelectionDataItems:ee}),m===!0){let ie=Array.from(new Set(K)),de=fe(u.uid,"computedSelectionIndexes");de===void 0&&(de=new Map),ie.length===D.length?de.set(e??0,{}):de.set(e??0,{indexesToSelect:ie}),Kr(u.uid,{computedSelectionIndexes:de})}}else if(g!==void 0&&R)F=mz({chart:u,selectionIndexes:g,queryObject:i});else{let K=z=>{let ee=z.dataItem?.dataContext;return Lv({elementDataContext:ee,options:d,selectionDataItems:F??$??[],layerOidField:L,xAxisField:o,yAxisField:l,chartType:w,splitBy:h,chartSubType:S})};D.forEach(z=>{let ee=z instanceof gr||z instanceof ga?z:z.bullets?.[0]?.get("sprite");ee!==void 0&&na({element:ee,selected:_l(ee.uid,"selected")===!0||K(ee),backToDefaultState:F===void 0||F.length===0})})}}if(hs(t.uid,{isSelectionApplied:!0}),Az({chart:u,chartType:w,showMean:x})&&(pz(u),H||R)){let K=fe(u.uid,"computedSelectionDataItems")??F;K=Array.from(new Set(K?.map(ee=>JSON.stringify(ee)))).map(ee=>JSON.parse(ee)),F!==void 0&&Kr(u.uid,{currentSelectionDataItems:K}),p?.selectionOIDs!==void 0&&Kr(u.uid,{currentSelectionOIDs:p.selectionOIDs});let z;if(m===!0&&(z=fe(u.uid,"computedSelectionIndexes")??g,z!==void 0&&Kr(u.uid,{currentSelectionIndexes:z})),K===void 0||K.length===0)zc({chart:u,selectionSource:Pr.ProgrammaticSelection});else{let ee={selectionItems:K,selectionSource:Pr.ProgrammaticSelection};m===!0&&(ee.selectionIndexes=z),f!==!1&&(ee.selectionOIDs=p?.selectionOIDs??fe(u.uid,"currentSelectionOIDs")),Mu({data:ee,htmlContainer:u.root.dom})}Kr(u.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}}function vz(s){let{chart:t,chartConfig:e,queryObject:i}=s;!fe(t.uid,"filterBySelection")&&!Gs(i)&&t.series.values.filter(r=>!nh(r)&&!Gf(r)).forEach(r=>{let{seriesConfig:a,seriesIndex:n}=Gv(r,e);if(a){let o=a.x,l=a.type===V.BoxPlotSeries||a.type===V.HeatSeries?a.y.toString():Yf(r),h=a.query?.where??"";bz({callbackProps:{...s,series:r,seriesIndex:n,xAxisField:o,yAxisField:l,splitBy:h},series:r,seriesConfig:a})}})}async function Jw(s){let{chart:t,selectionSource:e,queryObject:i}=s,r=fe(t.uid,"config"),a=Gs(i);if(r){let n=fe(t.uid,"options"),o=ze(r.series),l=It(r.series),h=Ro(r),c=No(r.series),u=r.series[0].x,d=dd(i),A=a?void 0:Ym(Ys(i))?.dateFieldsTimeZone,p=kl(r)?r.outTimeZone:void 0,m=ln(i).find(f=>f.name===u)?.type;try{let f=new Set,g=[],y=new Map,x=[],w=[],S=0;if(t.series.each((D,T)=>{let{seriesConfig:L}=Gv(D,r),$=L?.query?.where??"",I=L?.type===V.BoxPlotSeries?L.y.toString():Yf(D),R;D instanceof qt?R=D.dataItems:D instanceof Li?R=D.columns.values:D instanceof Hr&&(R=D.slices.values),R?.forEach((F,H)=>{let K=F instanceof gr||F instanceof ga?F:F.bullets?.[0]?.get("sprite");if(K!==void 0&&_l(K.uid,"selected")===!0){S+=1;let z=F instanceof gr||F instanceof ga?F.dataItem?.dataContext:F.dataContext;if(z!==void 0){if(z=sh({dataContext:z,yAxisField:I,yList:c,xAxisField:u,splitBy:$,chartType:o,chartSubType:l,showOutliers:h,isFeatureCollectionLayer:Uo(i)}),f.has(JSON.stringify(z))||(f.add(JSON.stringify(z)),g.push(z)),H!==void 0){let ie=y.get(T)?.indexesToSelect??[];ie.push(H),y.set(T,{indexesToSelect:Array.from(new Set(ie))})}let ee=z[Eu.uniqueIdsName]!==void 0?[z[Eu.uniqueIdsName]].flat():[];if(ee.length>0)w.push(...ee);else if(!a&&n?.returnSelectionOIDs!==!1){let ie=_x({dataContext:z,options:n,xAxisField:u,yAxisField:I??"",splitBy:$,xAxisFieldType:m,chartConfig:r,outTimeZone:p,dataTimeZone:A,runsOnClientQueryEngine:d,queryObject:i});x.push(ie)}}}})}),S===0)zc({chart:t,selectionSource:e});else{if(!a&&n?.returnSelectionOIDs!==!1&&x.length>0){let T={...fe(t.uid,"queryConfig")};delete T.groupByFieldsForStatistics,delete T.orderByFields,delete T.outStatistics;let L=await aI({whereList:x,queryObject:i,queryConfig:T});if(x.length===S)w=L;else for(let $=0;$<L.length;$+=1)w.push(L[$])}w=Array.from(new Set(w)),Kr(t.uid,{currentSelectionDataItems:g,currentSelectionOIDs:w,currentSelectionIndexes:y});let D={selectionItems:g,selectionSource:e};n?.returnSelectionIndexes===!0&&(D.selectionIndexes=y),n?.returnSelectionOIDs!==!1&&(D.selectionOIDs=w),a&&(D.selectionPixelTarget=DF({chartConfig:r,layer:i,selectionDataItems:g})),Mu({data:D,htmlContainer:t.root.dom})}}catch(f){Kr(t.uid,{pendingSelectionQueries:!1});let{httpStatus:g}=f instanceof Ln?f.details.details:f.details??{};if(g===429)dz(t);else throw f}Kr(t.uid,{pendingSelectionQueries:!1})}}function SA(s,t){let{y:e,query:i}=t,r=It(s.series)===Ee.BarAndLineSplitByNoAggregation?`${e.toString()}_${Ch({where:i?.where,keepSurroundingQuotes:!1,escape:!1})}`:[e].flat()[0],a=q.xAxisField,n=s.rotated===!0?"categoryYField":"categoryXField",o=s.rotated===!0?"valueYField":"valueXField",l=s.axes?.[0]?.valueFormat?.type===V.CategoryAxisFormat?n:o,h=s.rotated===!0?"valueXField":"valueYField";return{xField:a,yField:r,xAxisField:l,yAxisField:h}}function oh(s){let{chartConfig:t,seriesWereReinitialized:e,dataWasUpdated:i,colorMatchChanged:r,seriesStyleChanged:a,sortChanged:n,groupOfSlicesUpdateNeeded:o,stackedTypeChanged:l}=s,h=t.series.length===1,c=ze(t.series),u=!!(e||i||r||a||l),d=!1;switch(c){case V.BarSeries:d=!!(h&&n);break;case V.PieSeries:d=!!(o||n);break}return u||d}function qk(s){let{series:t,callbackInfo:e,seriesConfig:i}=s,r=n=>{let{type:o,callbackProps:l}=n;o==="selection"?yz(l):(Zi(t,i.visible),n.styleCallback(l))},a=fe(t.chart?.uid??Number.NaN,"config");switch(!0){case t instanceof wo:t.events.once(Ai.DataValidated,()=>r(e));break;case t instanceof Li:{let n=t.root.events.on(Ai.FrameEnded,()=>{t.columns.length===t.dataItems.length&&(n.dispose(),r(e))})}break;case t instanceof qt:{let n=Rt(t.uid,"bulletTemplate");if(n)if(ze(a?.series??[i])===V.ScatterSeries){let o=t.root.events.on(Ai.FrameEnded,()=>{n.entities.length===t.data.length&&t.dataItems[t.dataItems.length-1]?.bullets?.[0]?.get("sprite")&&(o.dispose(),r(e))})}else{let o=t.root.events.on(Ai.FrameEnded,()=>{let l=Yf(t)??"",h=a?.series[0]?.x??"";t.dataItems.filter(c=>{let u=c.dataContext;return l in u&&h in u&&u[h]!==void 0}).every(c=>!Number.isFinite(c.dataContext[l])||c?.bullets?.[0]?.get("sprite"))&&(o.dispose(),r(e))});e.type==="style"&&r(e)}}break;default:r(e);break}}function bz(s){let{series:t,callbackProps:e,seriesConfig:i}=s;qk({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i})}function lh(s){let{series:t,styleCallback:e,callbackProps:i,seriesConfig:r}=s;qk({callbackInfo:{styleCallback:e,callbackProps:i,type:"style"},series:t,seriesConfig:r})}function Jk(s){let t;return s&&s.series.length>0&&(t=s.series.values.map(e=>e.get("visible")!==!1?`${e.get("id")}`:"").filter(e=>e!=="")),t}function eB(s){let{series:t,chartConfig:e,isRotated:i}=s,r=Ua(e),a=e.series[0],n=t.chart?.xAxes.getIndex(0),o=t.chart?.yAxes.getIndex(0),l=i&&(r===Gi.Stacked||r===Gi.Stacked100)?o:n;switch(r){case Gi.Stacked:{t.setAll({stacked:!0,valueYShow:"valueYWorking",valueXShow:"valueXWorking",baseAxis:l}),t instanceof qt&&t.set("stackToNegative",a.stackNegativeValuesToBaseline??q.lineSeries.stackNegativeValuesToBaseline);break}case Gi.Stacked100:{t.setAll({stacked:!0,baseAxis:l}),i===!0?(t.setAll({valueXShow:"valueXTotalPercent"}),n instanceof di&&n.set("calculateTotals",!0)):(t.setAll({valueYShow:"valueYTotalPercent"}),o instanceof di&&o.set("calculateTotals",!0));break}case Gi.Side:default:{t.setAll({stacked:!1,valueYShow:"valueYWorking",valueXShow:"valueXWorking"});break}}}function FA(s,t){s.set("name",t)}function xz(s){let{chart:t,chartType:e,rotated:i,assignToSecondValueAxis:r}=s,a=t.xAxes.getIndex(0),n=t.yAxes.getIndex(0),o=[a,n,t.xAxes.getIndex(1)??t.yAxes.getIndex(1)],l,h;i!==!0?(l=o[0],h=r===!0&&o[2]?o[2]:o[1]):(l=r===!0&&o[2]?o[2]:o[0],h=o[1]);let c=e===V.HistogramSeries?t.xAxes.getIndex(1):void 0;return{xAxis:l,xAxisForHistogramOverlaySeries:c,yAxis:h}}function TA(s,t){let{series:e}=t,i=ze(e);s instanceof Li&&(s.columns.template.setAll({hoverOnFocus:!0}),i===V.HeatSeries?s.columns.template.set("ariaLabel",wz()):s.columns.template.set("ariaLabel",tp()))}function xu(s,t){s&&s.set("focusable",(t??0)<q.focusableThreshold)}function _z(s){let{currentChartSeriesCount:t,chartConfig:e,dataUpdateDetails:i,seriesCompositionChanged:r,seriesFilteredOut:a,sizePolicyChangesRequireSeriesReinit:n}=s,o=!1;switch(ze(e.series)){case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:o=a||r||i?.common?.numberOfSeriesChanged===!0||t!==e.series.length;break;case V.ScatterSeries:o=n===!0;break}return o}function tB(s){let{chartConfig:t,series:e,seriesIndex:i,queryObject:r}=s,a=t.series[i];if(a){let n=It(t.series),o=a.name;if(n===Ee.BarAndLineSplitBy||n===Ee.BarAndLineSplitByNoAggregation){let l=Vo(a.query?.where);o=Zm({queryObject:r,fieldName:l,fieldValue:o})??o}FA(e,o)}}function Gv(s,t){let e=ze(t?.series),i,r;return t?.series.forEach((a,n)=>{let o=!1;e!==V.BoxPlotSeries||s instanceof Ia?o=s.get("id")===a.id:s instanceof wo?o=s.get("id")?.replace(`_${Wi.Top}`,"")===a.id||s.get("id")?.replace(`_${Wi.Median}`,"")===a.id||s.get("id")?.replace(`_${Wi.Bottom}`,"")===a.id:s instanceof qt&&(o=s.get("id")?.replace(`_${Wi.Outliers}`,"")===a.id),o&&(i=a,r=n)}),{seriesConfig:i,seriesIndex:r}}function Cz(s,t){let{chart:e}=t;if(e instanceof Ci){let i=t.get("xAxis"),r=t.get("yAxis"),a=s.dataItem?.get("valueX"),n=s.dataItem?.get("valueY");if(typeof a=="number"&&typeof n=="number"){let o=i?.getPrivate("min",0),l=i?.getPrivate("max",0),h=r?.getPrivate("min",0),c=r?.getPrivate("max",0),u=i?.get("start",0),d=i?.get("end",1),A=r?.get("start",0),p=r?.get("end",1),m=o+u*(l-o),f=o+d*(l-o),g=h+A*(c-h),y=h+p*(c-h),x=a<m||a>f||n<g||n>y;s.set("forceHidden",x)}}}function e$(s,t){let e=(i,r)=>{r!==void 0&&Cz(r,t)};s.on("x",e),s.on("y",e)}function PA(s,t){let e=t;e===void 0&&(e=fe(s.uid,"config"));let i=fe(s.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function bA(s,t){s.set("turboMode",t===!0)}function wz(){return`{${Cr.xField}} {${Cr.yField}} {${Cr.valueField}}`}function t$(s){let{root:t,intlOptions:e,formatLocale:i,overridePercentMultiplication:r}=s,a=Zn({root:t,intlOptions:e,type:V.NumberAxisFormat,formatLocale:i});return n=>{let o=`${n}`;if(a!==void 0&&n!==null&&!(n instanceof Date)){let l=typeof n=="number"?n:Fx(n,a.get("intlLocales"));r===!0&&e.style==="percent"&&(l/=100),o=a.format(l)}else n instanceof Date&&(o=n.toLocaleString(void 0,e));return o}}function Bz(s){let{axis:t,intlOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=s,{chart:a,root:n}=t,o=a!==void 0?fe(a.uid,"formatLocale"):void 0,l=r??t$({root:n,intlOptions:e,formatLocale:o,overridePercentMultiplication:i});return wA(t.uid,{numberFormatter:l}),l}function Sz(s){let{chart:t,formatOptions:e,isNonAggregatedChart:i}=s,{root:r}=t;return a=>{let n=a??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(typeof a=="number"&&e.type===V.NumberAxisFormat)n=t$({root:r,intlOptions:e.intlOptions,formatLocale:o})(a);else if(i===!0&&e.type===V.DateAxisFormat)n=Zn({root:r,type:V.DateAxisFormat,intlOptions:e.intlOptions,formatLocale:o}).format(n,e.intlOptions);else if(e.type===V.CategoryAxisFormat){let h=It(l?.series);if([Ee.BoxPlotMonoField,Ee.BoxPlotMultiFields,Ee.BoxPlotMonoFieldAndSplitBy,Ee.BoxPlotMultiFieldsAndSplitBy,Ee.BarAndLineFromFields].includes(h)&&typeof a=="string"){let u=fe(t.uid,"fieldList");a=Er(u,a)}let{characterLimit:c}=e;n=a?.toString()??"",!Yi(n)&&n!==q.htmlEmptyContent&&(n=ax({stringToTruncate:n,characterLimit:c}))}return n.toString()}}function Fz(s){let{chart:t,isXAxis:e=!0,formatOptions:i}=s,{root:r}=t;return a=>{let n=a??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(kl(l)){let h=cF(l.series[0],e);if(h&&a!==void 0&&a!==""){if(i.type===V.DateAxisFormat&&i.intlOptions)switch(h.unit){case Dn.DayOfWeek:n=uk({weekdayNumber:Number(a),format:i.intlOptions,firstDayOfWeek:l.firstDayOfWeek,locale:o});break;case Dn.MonthOfYear:n=ck({monthNumber:Number(a),format:i.intlOptions,locale:o});break;case Dn.HourOfDay:n=hk({hour:Number(a),format:i.intlOptions,locale:o});break}}else if(a!==void 0&&a!==""){if(i.type===V.DateAxisFormat)n=Zn({root:r,type:V.DateAxisFormat,intlOptions:i.intlOptions,formatLocale:o}).format(n,i.intlOptions);else if(i.type===V.CategoryAxisFormat&&(n=a?.toString()??"",!Yi(n)&&n!==q.htmlEmptyContent)){let{characterLimit:c}=i;n=ax({stringToTruncate:n,characterLimit:c})}}}return n.toString()}}function Tz(s){let{axis:t,formatOptions:e,isTimeOnlyField:i}=s,r={...Eo(e)},a=["year","month","day","hour","minute","second"],n=i?{hour:{hour:"numeric",minute:"numeric"}}:{},o=i?{hour:{hour:"numeric",minute:"numeric"}}:{},l=Cc.new(r.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone);t.root.timezone?.name!==l.name&&(t.root.timezone=l);for(let h=0;h<a.length;h+=1){let c=a[h],u=h===0?c:a[h-1],d=e?.formatPerDateTimeUnit?.[c]??r,A=e?.formatPerDateTimeUnit?.[u];d&&Object.values(d).find(p=>p!==void 0&&(typeof p!="string"||!Yi(p)))&&(n[c]=d,o[c]=A??d)}Object.keys(n).length>0&&t.set("dateFormats",n),Object.keys(o).length>0&&t.set("periodChangeDateFormats",o)}function xL(s){let{axis:t,valueFormat:e,chartType:i}=s,r=sB({isXAxis:!0,chartType:i,valueFormat:e}),a=ro(e)&&t instanceof yr,n=xa(e)&&t instanceof di&&!(t instanceof yr),o=r&&t instanceof Sr;return!a&&!n&&!o}function i$(s){let{dataContext:t,defaultValue:e,chartUID:i}=s,r=so(t),a=fe(i,"config"),n=fe(i,"rendererFieldNames"),o=ze(a?.series),l=It(a?.series);if(o===V.BoxPlotSeries&&(l===Ee.BoxPlotMonoField||l===Ee.BoxPlotMultiFields||l===Ee.BoxPlotMonoFieldAndSplitBy||l===Ee.BoxPlotMultiFieldsAndSplitBy))r=t?.[Hm];else if(o===V.HistogramSeries)r=t?.[od.Start];else if((o===V.BarSeries||o===V.LineSeries||o===V.RadarSeries||o===V.ComboLineAndBarSeries)&&a!==void 0){let h=a.series?.[0]?.nullCategory,c=rp(l,a.series?.[0]);r=r===null&&h?.text!==void 0?h.text:t?.[c]?.toString()??""}else r=Mo({value:e??"",dataContext:t,useRendererLabel:JA(a,n),specificField:ht.xAxisField});return{labelValue:r,originalLabelValue:so(t)}}function Pz(s,t){let{chart:e}=s;if(e!==void 0){let i=s.get("renderer").labels.template;i.adapters.remove("text"),i.adapters.remove("html"),i.set("html",void 0);let r=To(s.uid,"isHtmlLabelFormatter")===!0,a=t!==void 0||r?"html":"text";i.adapters.add(a,(n,o)=>{let l=n,h=To(s.uid,"labelFormatter");if(!rn(o.uid,"isGuide")&&h!==void 0){let c,u;switch(!0){case s instanceof yr:case s instanceof di:c=o.dataItem?._settings?.value;break;case s instanceof Sr:{let d=n,A=o.dataItem?.dataContext,p=fe(s.chart?.uid??Number.NaN,"config");if(ze(p?.series)===V.HeatSeries){let f=Uc(s.get("renderer"))?A?.[Cr.xField]:A?.[Cr.yField];typeof f=="string"&&(d=f)}let m=i$({dataContext:A,defaultValue:d,chartUID:e.uid});c=m.labelValue,u=m.originalLabelValue}break}c!==void 0&&(l=h(c,u),a==="html"&&(l=Mr(l)))}return l}),i.adapters.add(a,(n,o)=>{let l=n,h=fe(e.uid,"config");if(!rn(o.uid,"isGuide")&&h!==void 0&&!(a==="html"&&r)){let c=ks(h),u=Uc(s.get("renderer"),c),d=h.axes?.[u?0:1],A={type:Dt.TS,...d?.labels.content,text:n};l=_a({textSymbol:A,format:a==="text"?"amChartsV5":"html"})}return l}),a==="html"&&(i.set("html",q.htmlEmptyContent),i.set("text","")),Dz(s,a)}}function Dz(s,t){s.get("renderer").labels.each(e=>{if(t==="html")e.set("html",void 0),e.set("html",q.htmlEmptyContent),e.set("text","");else{let i=e.get("text")??"";e.set("text",""),e.set("text",i),e.set("html",void 0)}})}function Lz(s){let{axis:t,isRotated:e,chartConfig:i}=s;if(t instanceof Sr||t instanceof yr){let r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy===zA.Descending:!1,a=e===!0;r&&t instanceof yr&&(a=!a),t.get("renderer").set("inversed",a)}}function Iz(s){let{axis:t,isXAxis:e,chartType:i,formatOptions:r,isNonAggregatedChart:a,overridePercentMultiplication:n,externalAxisLabelFormatter:o,isTimeOnlyField:l,errorStrings:h}=s,{chart:c}=t;if(c!==void 0){let u=sB({isXAxis:e,chartType:i,valueFormat:r}),d=t instanceof di&&!(t instanceof yr)&&xa(r),A=t instanceof yr&&ro(r),p=t instanceof Sr&&u;if(!(d||A||p))Rm("mismatchAxisAndValueFormat",h);else{let m=To(t.uid,"labelFormatter"),f=o??m;o===void 0&&(i===V.HeatSeries?f=Fz({chart:c,isXAxis:e,formatOptions:r}):p?f=Sz({chart:c,formatOptions:r,isNonAggregatedChart:a}):d?f=Bz({axis:t,intlOptions:r.intlOptions,overridePercentMultiplication:n,valueAxisFormatter:o}):A&&Tz({axis:t,formatOptions:r,isTimeOnlyField:l}));let g=o!==void 0;wA(t.uid,{labelFormatter:f,isHtmlLabelFormatter:g}),Pz(t,f)}}}function kz(s){let{chart:t,chartConfig:{axes:e,series:i},rotationChanged:r,axisLabelsBehaviorChanged:a,timeIntervalInfoWasReset:n}=s,o=ze(i),l=ks(s.chartConfig),h=l?1:0,c=l?0:1,u=e?.[h]?.valueFormat,d=e?.[c]?.valueFormat,A=t.xAxes.getIndex(0),p=t.yAxes.getIndex(0),m=A===void 0||r||u!==void 0&&xL({axis:A,valueFormat:u,chartType:o}),f=p===void 0||r||d!==void 0&&xL({axis:p,valueFormat:d,chartType:o});return n||a?.[0]||a?.[1]||m||f}function Uc(s,t){return s instanceof ls&&!t||s instanceof va&&t||s instanceof Us}function Yv(s){return s instanceof ls}function $z(s){return s instanceof va}function Oz(s){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=s,r=fe(t.chart?.uid??Number.NaN,"config"),a=e===!0&&ag({chartConfig:r,axisConfigIndex:i,chartData:t.chart?.series.getIndex(0)?.data.values});(t instanceof yr||t instanceof di)&&t.setAll({logarithmic:a,treatZeroAs:a?q.treatZeroValueAs:0,maxPrecision:a?0:void 0})}function Ez(s,t){if(s instanceof di){let{integerOnlyValues:e,valueFormat:i}=t,r=Px(i)?i.intlOptions.maximumFractionDigits:void 0;s.set("maxPrecision",e===!0||r===0?0:Number.NaN)}}function r$(s,t){let{chart:e}=t,i=Gr.new(s,{forceHidden:!0});return t.set("tooltip",i),i.adapters.add("labelText",(r,a)=>{let n=r??"",o=To(t.uid,"labelFormatter");if(!a.isHidden()&&o&&e){let{label:l}=a,h=l.get("text")??"";if(t instanceof di){let c=Number.parseFloat(h.replace(/,/gu,""));n=o(Number.isNaN(c)?h:c,r)}else if(t instanceof Sr){let c=l.dataItem?.dataContext,u=i$({dataContext:c,defaultValue:r,chartUID:e.uid});n=o(u.labelValue??h,r??u.originalLabelValue)}}return n}),i}function Mz(s){let{root:t,axis:e,displayCursorTooltip:i}=s;(e.get("tooltip")??r$(t,e)).set("forceHidden",i!==!0)}function Rz(s){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i,xFieldIsTimeOnly:r}=s;if(t instanceof yr){let a,n=1;if(r)a="second";else{let{size:o,unit:l}=e??{};if(l||({size:o,unit:l}=i??{}),o&&l!==void 0){switch(l){case tr.Second:a="second";break;case tr.Minute:a="minute";break;case tr.Hour:a="hour";break;case tr.Day:a="day";break;case tr.Week:a="week";break;case tr.Month:a="month";break;case tr.Year:a="year";break}n=o}}a!==void 0&&t.set("baseInterval",{timeUnit:a,count:n})}}function Uz(s,t){let{buffer:e}=t??{};return e??=q.buffer,s instanceof di&&!(s instanceof yr)&&!e}function Vz(s,t){let e=!1;return s instanceof di&&!(s instanceof yr)&&(e=Uz(s,t),s.set("strictMinMax",e)),e}function _L(s,t){let e=s;if(s){let i=(t?Math.ceil:Math.floor)(Math.log10(s));e=Math.pow(10,i)}return e}function Nz(s){let{axis:t,xAxis:e,isSecondValueAxis:i,chartType:r,stackedType:a,isLogarithmic:n}=s,o=!1,l=[V.BarSeries,V.LineSeries,V.RadarSeries];if(r!==void 0&&l.includes(r)&&a===Gi.Stacked100&&!n&&t instanceof di&&!e){let h=fe(t.chart?.uid??Number.NaN,"config"),c=t.chart?.series.getIndex(0)?.data.values;if(h&&c){let u=Jk(t.chart),d=sg({chartConfig:h,isSecondValueAxis:i,seriesIds:u});o=!hT({seriesConfig:h.series,filteredData:c,filteredSeriesIds:d}).dataHasNegativeValues}}return o}function Hz(s){let{dataMinMax:t,chartType:e,stackedType:i,isXAxis:r,minimumFromConfig:a,maximumFromConfig:n,isLogarithmic:o}=s,{minX:l,maxX:h,minY:c,maxY:u}=t,[d,A]=r?[l??Number.NaN,h??Number.NaN]:[c,u],p=d,m=A;return i===Gi.Stacked100?(p=Number.NaN,m=Number.NaN):((e===V.BarSeries||e===V.ComboLineAndBarSeries||e===V.HistogramSeries&&!r||(e===V.LineSeries||e===V.RadarSeries)&&i===Gi.Stacked&&!r)&&(p=Math.min(d,0),m=Math.max(A,0)),p=a??p,m=n??m),o===!0&&(p=Number.isFinite(p)?_L(p,!1):p,m=Number.isFinite(m)?_L(m,!0):m),{min:p??Number.NaN,max:m??Number.NaN}}function Qz(s){let{axis:t,xAxis:e,isSecondValueAxis:i,data:r,minimumFromConfig:a,maximumFromConfig:n}=s,o=a,l=n,{chart:h}=t;if(h){let c=fe(h.uid,"config");if(h instanceof Ci&&c){let u=ze(c.series),d=Ua(c)??Gi.Side,A=Jk(h),p=sg({chartConfig:c,isSecondValueAxis:i,seriesIds:A}),m=In(r),f=wx({chartConfig:c,chartData:m??h.series.getIndex(0)?.data.values??[],filteredSeriesIds:p}),g=Hz({dataMinMax:f,chartType:u,stackedType:d,isXAxis:e,minimumFromConfig:a,maximumFromConfig:n});o=g.min,l=g.max}}return{min:o,max:l}}function jz(s){let{axis:t,axisConfig:e,minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:a,chartType:n,stackedType:o,isRotated:l,data:h,isSecondValueAxis:c}=s,{chart:u}=t;if(u&&(t instanceof di||t instanceof yr))if(Vz(t,e)){let d=i,A=r,p=Uc(t.get("renderer"),l);if(Nz({chartType:n,stackedType:o,isLogarithmic:a,axis:t,xAxis:p}))d=d??0,A=A??100;else if(qL({minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:a})){let m=Qz({axis:t,xAxis:p,data:h,minimumFromConfig:d,maximumFromConfig:A,isSecondValueAxis:c});d=m.min,A=m.max}A=A??Number.NaN,d=d??Number.NaN,a&&d!==void 0&&d!==null&&(d=Number.isNaN(d)||d===0?q.treatZeroValueAs:d),Number.isNaN(d)||Number.isNaN(A)||d<A?t.setAll({min:d,max:A}):t.setAll({min:Number.NaN,max:Number.NaN}),n===V.GaugeSeries&&t.markDirty()}else t.setAll({min:Number.NaN,max:Number.NaN})}function Pv(s,t){if(s!==void 0){let e=fe(s.uid,"config");if(e!==void 0){let i=ze(e?.series),r=Ua(e)??Gi.Side,a=ks(e),n=s.xAxes.getIndex(0),o=e.axes?.[0],l=e.axes?.[1],h=e.axes?.[2],c=s.yAxes.getIndex(0),u=s.xAxes.getIndex(1)??s.yAxes.getIndex(1);[{axis:n,axisConfig:o},{axis:c,axisConfig:l},{axis:u,axisConfig:i===V.HistogramSeries?o:h,isSecondValueAxis:i!==V.HistogramSeries}].forEach(d=>{let{axis:A,axisConfig:p,isSecondValueAxis:m}=d;if(A!==void 0){let{minimum:f,maximum:g,buffer:y,isLogarithmic:x}=p??{};jz({axis:A,axisConfig:p,data:t,chartType:i,stackedType:r,isRotated:a,minimumFromConfig:f,maximumFromConfig:g,isLogarithmic:x,isSecondValueAxis:m})}})}}}function Wz(s){s.get("renderer").grid.template.adapters.add("strokeWidth",(t,e)=>{let i=To(s.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,a=i?.strokeWidth??q.lineWidth;return e.get("themeTags")?.includes("base")&&r&&(a=(a===0?1:a)*1.5),a}),s.get("renderer").grid.template.adapters.add("strokeOpacity",(t,e)=>{let i=To(s.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,a=i?.visible===!0?t:0;return e.get("themeTags")?.includes("base")&&r&&(a=1),a})}function iB(s){s.on("visible",()=>{s.chart instanceof Ci&&Pv(s.chart)}),s.events.on(Ai.DataValidated,()=>{s.chart instanceof Ci&&Pv(s.chart)})}function Xz(s){let t=0;return s.dataItems.forEach(e=>{let i=e.get("label");i!==void 0&&rn(i.uid,"isGuide")!==!0&&i.getText()!==void 0&&i.height()>t&&i.isVisible()&&(t=i.height())}),t}function CL(s,t){if(t){let{chart:e}=t;if(e){let i=fe(e.uid,"isRotated"),r=fe(e.uid,"config"),a=ze(r?.series),n=[],o=(l,h)=>{if(l instanceof di){let c=l.get("renderer")instanceof Us;n.push({isXAxis:Uc(l.get("renderer"),i),isSecondValueAxis:h===1&&a!==V.HistogramSeries,minimum:c?l.get("min"):l.getPrivate("min"),maximum:c?l.get("max"):l.getPrivate("max")})}};e.xAxes.each(o),e.yAxes.each(o),n.length>0&&n.every(l=>!Number.isNaN(l.minimum)&&!Number.isNaN(l.maximum))&&tx(n,e.root.dom)}}}function s$(s){s.ghostLabel?.set("forceHidden",!0)}function wL(s){let{axis:t,start:e,end:i}=s;t.zoom(e??0,i??1)}function BL(s){s!==void 0&&s.setAll({start:0,end:1})}function zz(s){s instanceof Ci&&(s.xAxes.each(t=>wL({axis:t})),s.yAxes.each(t=>wL({axis:t})),BL(s.get("scrollbarX")),BL(s.get("scrollbarY")))}function Gz(s){let{axis:t,guide:e,guideIndex:i}=s,{root:r,chart:a}=t,n=e.get("axisFill");n?.set("tooltip",Gr.new(r,{autoTextColor:!1}));let o=n?.get("tooltip");if(o!==void 0&&a!==void 0){o.label.setAll({oversizedBehavior:"wrap"}),o.label.adapters.add("maxWidth",()=>Math.min(q.tooltipWidth,a.seriesContainer.width())),o.get("background")?.set("fillOpacity",Nm);let l=fe(a.uid,"rtl");o.label.set("direction",l?"rtl":"ltr")}if(n!==void 0){n.adapters.remove("tooltipText"),n.adapters.remove("tooltipHTML"),n.setAll({tooltipText:void 0,tooltipHTML:q.htmlEmptyContent,tooltipPosition:q.guideTooltipPosition}),n.adapters.add("tooltipHTML",(h,c)=>{let u=h,{dataItem:d}=c;if(!(t.get("renderer")instanceof Us)){let A=To(t.uid,"guideTooltipFormatter");if(A!==void 0&&d instanceof os){let p,m;switch(!0){case t instanceof yr:case t instanceof di:p=d.get("value"),m=d.get("endValue");break;case t instanceof Sr:p=d.get("category"),m=d.get("endCategory");break}u=A({guideName:ZW(d.uid,"name")??"",start:p??"",end:m,guideIndex:i})}}return Mr(u??"")});let l=n.getTooltip();l&&(_k(l),l.adapters.add("x",(h,c)=>{let{chart:u}=t;if(u&&c){let d=fe(u.uid,"config"),A=fe(u.uid,"isRotated");if(d){let p=Uc(t.get("renderer"),A)?0:1,m=d?.axes?.[p]?.guides?.[i];if(m){let{tooltipReverseColor:f}=m;Ck(c,f)}}}return h}))}}function Yz(s,t){return e=>{let{guideName:i,start:r,end:a}=e,{chart:n,root:o}=s,l="";if(n!==void 0){let h=fe(n.uid,"config"),c=fe(n.uid,"isRotated"),u=Uc(s.get("renderer"),c)?0:1,d=h?.axes?.[u]?.guides,A=r,p=a;if(s instanceof yr){let x;if(n!==void 0){let w=fe(s.chart?.uid??Number.NaN,"formatLocale");x=Zn({root:s.root,type:V.DateAxisFormat,formatLocale:w});let S=h?.axes?.[0]?.valueFormat?.type===V.DateAxisFormat?h.axes[0].valueFormat.intlOptions:void 0;A=x.format(r,S),a!==void 0&&(p=x.format(a,S))}}else if(s instanceof di&&!(r instanceof Date)&&!(a instanceof Date)){let x=d?.find(T=>T.name===i),{start:w,end:S}=a$(s,x);Number.isFinite(w)&&(A=w),Number.isFinite(S)&&(p=S);let D=To(s.uid,"numberFormatter")??(T=>Jh.new(o,{}).format(T));A=D(A),p!==void 0&&(p=D(p))}else s instanceof Sr&&(A=r,p=a);let m=A.toString(),f=p?.toString()??"";!Yi(f)&&m!==f?l=fA(t.guideTooltipLabel,{guideStart:m,guideEnd:f}):l=m;let g=fe(n.uid,"rtl"),y=Ra(g??!1);l=`${i}${y} ${l}`}return l}}function Kz(s){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=s;wA(t.uid,{guideTooltipFormatter:e??Yz(t,i)})}function SL(s){let{inputValue:t,axis:e,axisMin:i,axisMax:r}=s,a=t;if(t!=null)switch(!0){case e instanceof yr:a=t;break;case e instanceof Sr:a=t.toString();break;case e instanceof di:if(typeof t!="number"){let n=t.toString().trim(),o=qA(n);o!==void 0?i!==void 0&&r!==void 0?a=o/100*(r-i)+i:a=null:a=Number.parseFloat(n)}break}return a}function rB(s,t){return s.axisRanges?.values?.filter(e=>{let i=e.get("label"),r=rn(i?.uid??Number.NaN,"isGuide")??!1,a=rn(i?.uid??Number.NaN,"isGaugeAxisLabel")??!1,n=!1;switch(t){case vr.Ticks:n=!r;break;case vr.Guides:n=r;break;case vr.GaugeTicksWithLabels:n=a&&"value"in e&&e.value!==void 0;break}return n})??[]}function Zz(s){let{axis:t,guideConfig:e,above:i}=s,r=e!==void 0,a=t.axisRanges.length,n=t.axisRanges.insertIndex(a,t.makeDataItem({above:i}));r&&(i===!0&&n.get("axisFill")?.setAll({layer:q.zIndexes.guide}),A4({guide:n,axis:t,guideLabelConfig:e?.label}));let o=n.get("axisFill");o!==void 0&&o.setAll({disabled:!0,fillOpacity:1});let l=n.get("grid");return l!==void 0&&r&&l.set("strokeOpacity",0),n}function qz(s){let{axis:t,guideIndex:e,guideConfig:i}=s,r=Zz({axis:t,guideConfig:i,above:i?.above});Gz({axis:t,guide:r,guideIndex:e});let a=r.get("tick"),n=r.get("label"),o=r.get("grid");a!==void 0&&a.set("disabled",!0),n!==void 0&&n.set("inside",!0),o!==void 0&&o.set("disabled",!0)}function Jz(s,t){let e=rB(s,vr.Guides).length,i=(t?.length??e)-e;for(let r=0;r<i;r+=1)qz({axis:s,guideIndex:r,guideConfig:t?.[r]})}function e5(s,t){let{start:e,end:i}=t,r=e!==null?e:void 0,a=i!==null?i:void 0,{chart:n}=s,o=fe(n?.uid??Number.NaN,"config");if(o!==void 0){let l=eg(o),h=s.data.values,c=h.find(u=>u[q.originalCategoryValue]===e)?.[l];if((typeof c=="string"||typeof c=="number"||c instanceof Date)&&(r=c),a!==void 0)for(let u=h.length-1;u>=0;u-=1){let d=h[u],A=d[l];if(d[q.originalCategoryValue]===i&&(typeof A=="string"||typeof A=="number"||A instanceof Date)){a=A;break}}}return{modifiedStart:r,modifiedEnd:a}}function a$(s,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let a=s instanceof di?s.get("min"):void 0,n=s instanceof di?s.get("max"):void 0,o=SL({inputValue:e,axis:s,axisMin:a,axisMax:n}),l=t.style?.type===Dt.SFS&&i!==null&&i!==void 0?SL({inputValue:i,axis:s,axisMin:a,axisMax:n}):o;r={isValidGuide:o!=null&&(i===void 0||l!=null),start:o,end:l}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function t5(s){let{axis:t,guide:e,guideConfig:i}=s,{start:r,end:a}=i;if(r!==void 0){let{chart:n}=t,o;if(t instanceof Sr&&n instanceof Ci&&fe(n.uid,"isNonAggregatedChart")===!0){let{modifiedStart:l,modifiedEnd:h}=e5(t,i);o={isValidGuide:!0,start:l??r,end:h??a}}else o=a$(t,i);if(o.isValidGuide){let l,h;switch(!0){case t instanceof yr:case t instanceof di:l="value",h="endValue";break;case t instanceof Sr:l="category",h="endCategory";break}l!==void 0&&o.start!==void 0&&e.setAll({[l]:o.start}),h!==void 0&&o.end!==void 0&&e.setAll({[h]:o.end})}}}function i5(s){let{axis:t,guide:e,guideConfig:i}=s;if(e){let r=e.get("axisFill"),a=e.get("label");if(i!==void 0){qW(e.uid,{name:i.name}),Zi(e,i.visible),t5({axis:t,guide:e,guideConfig:i}),i.style.type===Dt.SLS?vu({root:t.root,element:r,fillSymbol:{type:Dt.SFS,color:i.style?.color,outline:i.style},visible:i.visible}):i.style.type===Dt.SFS&&vu({root:t.root,element:r,fillSymbol:i.style,visible:i.visible}),p4({axis:t,guide:e,guideConfig:i,guideType:i.style.type}),e.get("axisFill")?.setAll({layer:i.above?q.zIndexes.guide:0});let{chart:n}=t}else r!==void 0&&r.set("disabled",!0),a!==void 0&&a.set("disabled",!0)}}function r5(s){let{axis:t,guideConfigs:e,guideTooltipFormatter:i,utilsStrings:r}=s;if(e!==void 0){let a=rB(t,vr.Guides);e.forEach((n,o)=>{i5({axis:t,guide:a[o],guideConfig:n})}),Kz({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function s5(s){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=s,r=[],a=t.axisRanges.length-1,n=i;for(;n>0&&a>=0;){let o=t.axisRanges.getIndex(a);o!==void 0&&(rn(o.get("label")?.uid??Number.NaN,"isGuide")??!1)===!0&&e===vr.Guides&&(r.push(o),n-=1),a-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function FL(s,t){let e=rB(s,vr.Guides).length,i=t?.length??0,r=e-i;s5({axis:s,numberOfElementsToBeDeleted:r,tickOrGuide:vr.Guides})}function a5(s){let{axis:t,guideConfigs:e,anyGuideAboveChanged:i}=s;i&&FL(t),Jz(t,e),r5(s),FL(t,e)}function n$(s){return s.getCellWidthPosition()*s.width()}function n5(s,t){let e=s.get("renderer");if(s!==void 0){let i=Number.NaN;if(t===ir.Wrap){let r=Number.MAX_SAFE_INTEGER;e.labels.each(n=>{rn(n.uid,"isGuide")!==!0&&n.width()>0&&(r=Math.min(r,n.innerWidth()))});let a=s instanceof yr?s.width()/q.maxNumberOfXAxisLabelsInWrapModeForDateAxis:s.width()/q.maxNumberOfXAxisLabelsInWrapMode;i=Math.max(r,a)}else if(t===ir.Hide){let r=Number.MIN_SAFE_INTEGER;e.labels.each(a=>{rn(a.uid,"isGuide")!==!0&&a.width()>0&&(r=Math.max(r,a.innerWidth()))}),i=r+2}Number.isFinite(i)&&i>q.shortestMinGridDistance&&e.set("minGridDistance",i)}}function o5(s){let{axis:t,chartType:e,labelConfig:i,isSecondValueAxis:r,tickSpacing:a}=s,{horizontalAxisLabelsBehavior:n}=s;n===void 0&&(n=e!==V.HistogramSeries?ir.Rotate:ir.Hide);let o=t.get("renderer"),l=o.get("minGridDistance");if(typeof a=="number"&&Number.isFinite(a))l=a;else if(e!==V.RadarSeries)if(o instanceof Us)l=q.gauge.gaugeMinGridDistance;else if(t instanceof di)l=o instanceof ls?q.xAxisMinGridDistance:q.yAxisMinGridDistance;else if(o instanceof ls)if(r===!0)l=q.secondRotatedValueAxisMinGridDistance;else if(n===ir.Rotate){let h=i.content.font?.size??q.generalFontSize,c=t instanceof Sr?q.categoryAxisLabelPadding:q.axisLabelPadding;l=h*c}else if(n===ir.Wrap||n===ir.Hide){n===ir.Hide&&(l=t instanceof Sr?q.xCategoryAxisMinGridDistance:q.xAxisMinGridDistance);let h=To(t.uid,"minGridDistanceCallbackDisposer");h!==void 0&&h.dispose(),h=t.events.on(Ai.BoundsChanged,()=>{n5(t,n)}),wA(t.uid,{minGridDistanceCallbackDisposer:h})}else n===ir.Stagger?l=q.staggerMinGridDistance:l=t instanceof Sr?q.xCategoryAxisMinGridDistance:q.xAxisMinGridDistance;else l=t instanceof Sr?q.yCategoryAxisMinGridDistance:q.yAxisMinGridDistance;o.set("minGridDistance",l)}function TL(s=1,t){t.get("renderer").labels.template.set("maxWidth",n$(t)*s)}function PL(s,t=1){s.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",paddingLeft:.5,paddingRight:.5,textAlign:"center"}),s.events.on(Ai.BoundsChanged,()=>TL(t,s)),TL(t,s)}function l5(s){let t=s.get("renderer").labels.template;t.adapters.add("rotation",(e,i)=>{let r=rn(i.uid,"isGuide")!==!0?To(s.uid,"rotation")??0:e??0;return t.set("centerX",r===0?Qe:ge),r})}function GC(s){if(s?.chart!==void 0){let t=s.get("renderer");if(fe(s.chart.uid,"config")?.axes?.[0].labels!==void 0&&t.labels.length>1){let e=t.labels.getIndex(0)?.get("rotation"),i=0;t.labels.each(a=>{if(rn(a.uid,"isGuide")!==!0&&a.width()>0){let n=e===q.rotatedAxisLabel.rotation?Math.sqrt(a.innerHeight()**2+a.innerWidth()**2):a.innerWidth();n>i&&(i=n)}});let r=n$(s)>=i+5;if(!r&&e===0||r&&e===q.rotatedAxisLabel.rotation){let a=r?q.axisLabel.rotation:q.rotatedAxisLabel.rotation;t.labels.template.setAll({rotation:a,centerX:r?Qe:ge,centerY:Xr,paddingTop:r?q.axisLabel.paddingTop:q.rotatedAxisLabel.paddingTop,paddingLeft:r?q.axisLabel.paddingLeft:q.rotatedAxisLabel.paddingLeft,paddingRight:r?q.axisLabel.paddingRight:q.rotatedAxisLabel.paddingRight}),wA(s.uid,{rotation:a})}}}}function DL(s){let t=s.get("renderer");l5(s),t.labels.template.setAll({oversizedBehavior:"hide"}),s instanceof yr||(t.labels.template.setAll({multiLocation:.5}),t.ticks.template.setAll({multiLocation:.5})),s.events.on(Ai.BoundsChanged,()=>GC(s)),s.events.on(Ai.DataValidated,()=>GC(s)),GC()}function LL(s){if(s&&fe(s.chart?.uid??Number.NaN,"config")?.axes?.[0].labels?.visible!==!1){let t=0;s.dataItems.forEach((e,i)=>{let r=e.get("label");r!==void 0&&rn(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0&&i%2===0&&r.innerHeight()>t&&(t=r.innerHeight())}),t=Math.round(t),t>0&&(s.dataItems.filter(e=>{let i=e.get("tick"),r=e.get("label");return i!==void 0&&r!==void 0&&rn(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0}).forEach((e,i)=>{let r=e.get("tick"),a=e.get("label"),n=i%2===1;r&&r.set("length",n?t+5:q.axisTickLength),a&&a.set("dy",n?t:0)}),t&&s.get("renderer").labels.template.get("paddingBottom")!==t+5&&s.get("renderer").labels.template.set("paddingBottom",t+5))}}function h5(s){s.get("renderer").labels.template.set("oversizedBehavior","wrap"),s.events.on(Ai.BoundsChanged,()=>LL(s)),LL(s)}function u5(s){s.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",maxWidth:q.yAxisLabelMaxWidth,textAlign:"end"})}function c5(s){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,axisLabelsBehaviorChanged:r,labelConfig:a,chartType:n}=s,o=t.get("renderer");if(!(o instanceof Us))if(Yv(o)&&r?.[0]===!0)switch(n===V.HistogramSeries&&e===void 0?ir.Hide:e){case ir.Hide:break;case ir.Stagger:h5(t),PL(t,2);break;case ir.Wrap:PL(t);break;case ir.Rotate:DL(t);break;default:a.content.angle!==null&&a.content.angle===void 0&&DL(t);break}else $z(o)&&i!==ir.Hide&&u5(t)}function d5(s){let{renderer:t,axisConfig:e,labelConfig:i}=s;switch(e.labelsOrientation){case Qb.Horizontal:t.labels.template.setAll({textType:"adjusted"}),t.labels.template.remove("radius");break;case Qb.Radial:t.labels.template.setAll({textType:"radial",radius:35}),i.content.verticalAlignment=Yt.Middle;break;default:t.labels.template.setAll({textType:"circular"}),t.labels.template.remove("radius")}}function A5(s){let{axis:t,axisConfig:{labels:e},horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:a,chartType:n}=s,o={...e},l=t.get("renderer"),h=l?.get("opposite");Yv(l)?(o.content.horizontalAlignment=bi.Center,o.content.verticalAlignment=h?Yt.Bottom:Yt.Top):(o.content.horizontalAlignment=h?bi.Left:bi.Right,o.content.verticalAlignment=Yt.Middle),l instanceof Us?d5({renderer:l,axisConfig:s.axisConfig,labelConfig:e}):o.content.angle=o.content.angle??l.labels.template.get("rotation");let c=To(t.uid,"isHtmlLabelFormatter")===!0;wn({label:l.labels.template,labelConfig:o,skipSettingText:c}),c5({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelConfig:e,axisLabelsBehaviorChanged:a,chartType:n})}function p5(s){let{axis:t,isHorizontalAxis:e,label:i}=s,{chart:r}=t;if(r){let a=e?"width":"height",n=e?ii.XAxisTitle:ii.YAxisTitle;bl({chart:r,label:i,labelType:n}),t.onPrivate(a,zs(()=>bl({chart:r,label:i,labelType:n}),q.debounceTime))}}function f5(s){let{x:t,data:e,chart:i,valueFormat:r,minimum:a,maximum:n}=s,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(c=>t in c),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,Kr(i.uid,{gaugeData:o}))}else{let l=fe(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Ou(r)&&a!==void 0&&n!==void 0&&a!==null&&n!==null&&o!==null&&n-a!==0&&(o=Vf({value:o,axisMin:a,axisMax:n})),o}function m5(s,t){let e=t??null;if(t!=null){let i=s.xAxes.getIndex(0),r=fe(s.uid,"config"),a=i.get("min")??r?.axes?.[0].minimum??q.gauge.axisMinimum,n=i.get("max")??r?.axes?.[0].maximum??q.gauge.axisMaximum;t<a?e=a:t>n&&(e=n)}return e??void 0}function g5(s){let{root:t}=s,e=fl.new(t,{radius:Bt(100)}),i=s.makeDataItem({value:0,bullet:hu.new(t,{sprite:e})});return s.createAxisRange(i),i.get("grid")?.set("visible",!1),i.get("tick")?.set("visible",!1),e}function y5(s){let{chart:t,axis:e,needleConfig:i,gaugeValue:r}=s,a=e.axisRanges.values.find(o=>o.get("bullet")?.get("sprite")instanceof fl),n=a?.get("bullet")?.get("sprite");if(a&&n instanceof fl){let{startWidth:o,endWidth:l,innerRadius:h}=q.gaugeNeedle;vu({root:e.root,element:n.hand,fillSymbol:i?.symbol}),vu({root:e.root,element:n.pin,fillSymbol:i?.symbol}),a.set("value",m5(t,r)),n.pin.set("visible",i?.displayPin===!0),n.setAll({visible:i?.visible??!0,innerRadius:Bt(i?.innerRadius??h),bottomWidth:i?.startWidth??o,topWidth:i?.endWidth??l})}}function v5(s,t){let e=Number.isFinite(t?.innerRadius)?t?.innerRadius:q.gauge.innerRadius;typeof e=="number"&&Number.isFinite(e)&&s.set("innerRadius",Bt(e))}function b5(s,t){let e=Number.isFinite(t?.startAngle)?t?.startAngle:q.gauge.startAngle,i=Number.isFinite(t?.endAngle)?t?.endAngle:q.gauge.endAngle;typeof e=="number"&&Number.isFinite(e)&&s.set("startAngle",e),typeof i=="number"&&Number.isFinite(i)&&s.set("endAngle",i)}function x5(s){let{chart:t,chartConfig:e,data:i,queryObject:r,xAxisLabelFormatter:a,utilsStrings:n,errorStrings:o,gaugeMinMaxFromData:l}=s,{axes:h,series:c}=e,u=rg(e),{featureIndex:d,x:A}=c[0],p=h?.[0],m=t.xAxes.getIndex(0),f={...p};if(m instanceof di&&m.get("renderer")instanceof Us&&f!==void 0&&i&&"dataItems"in i){let{valueFormat:g,needle:y}=f;v5(t,e),b5(t,e);let x=jI({featureIndex:d,chartData:i.dataItems,chartConfig:e,gaugeMinMaxFromData:l,queryConfig:fe(t.uid,"queryConfig")});f.minimum=x.minimum,f.maximum=x.maximum;let{min:w,max:S}=HI(f),D={...f};Ou(g)?(D.minimum=0,D.maximum=1,QI({axisConfig:D,axisMin:f.minimum,axisMax:f.maximum})):(D.minimum=w,D.maximum=S),aB({chartConfig:e,axis:m,axisConfig:D,axisConfigIndex:0,externalAxisLabelFormatter:a,utilsStrings:n,errorStrings:o,queryObject:r});let T=u?x?.dataValue:f5({x:A,data:i.dataItems,chart:t,minimum:f.minimum,maximum:f.maximum,valueFormat:g});y5({chart:t,axis:m,needleConfig:y,gaugeValue:T})}}function _5(s){let{chart:t,axesConfig:e,errorStrings:i}=s,{root:r}=t;Il({chartType:V.GaugeSeries,axesConfig:e,errorStrings:i});let a=t.xAxes.push(di.new(r,{min:0,max:100,renderer:Us.new(r,{})}));g5(a),s$(a)}function C5(s){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,data:a,dataWasUpdated:n,axesInitializationNeeded:o,yAxisLabelFormatter:l,xAxisLabelFormatter:h,guideTooltipFormatter:c,utilsStrings:u,errorStrings:d,queryObject:A}=s,{horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:m,axes:f}=e,g=V.HistogramSeries,y=t.xAxes.getIndex(0),x=t.yAxes.getIndex(0);Il({chartType:g,axesConfig:f,errorStrings:d}),[{axis:y,axisConfig:f?.[0],externalAxisLabelFormatter:h},{axis:x,axisConfig:f?.[1],externalAxisLabelFormatter:l}].forEach((w,S)=>{let{axis:D,axisConfig:T,externalAxisLabelFormatter:L}=w;D!==void 0&&!D.isDisposed()&&T!==void 0&&aB({axis:D,data:a,dataWasUpdated:n,axesInitializationNeeded:o,sortChanged:r,axisConfig:T,axisConfigIndex:S,horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:m,axisLabelsBehaviorChanged:i,utilsStrings:u,chartConfig:e,externalAxisLabelFormatter:L,guideTooltipFormatter:c,errorStrings:d,queryObject:A})}),Pv(t,a)}function w5(s){let{chart:t,axesConfig:e,x:i,errorStrings:r}=s,{root:a}=t,n=V.HistogramSeries;Il({chartType:n,axesConfig:e,errorStrings:r});let o={root:a,x:i,chartType:n},l=e?.[0]?.valueFormat,h=e?.[1]?.valueFormat;if(l!==void 0&&h!==void 0){let c=fu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:ls.new(a,{}),isXAxis:!0,x:i}),u=fu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:ls.new(a,{}),isAxisForHistogramOverlaySeries:!0,isXAxis:!0,x:i});fu({...o,axes:t.yAxes,valueFormat:h,axisRenderer:va.new(a,{}),isXAxis:!1,x:i}),c&&(c.get("renderer").grid.template.set("location",0),c.get("renderer").ticks.template.set("location",0),c.get("renderer").labels.template.set("location",0)),u&&(u.set("visible",!1),u.get("renderer").grid.template.set("visible",!1),u.get("renderer").ticks.template.set("visible",!1),u.get("renderer").labels.template.set("visible",!1))}}function sB(s){let{isXAxis:t,chartType:e,valueFormat:i,isAxisForHistogramOverlaySeries:r}=s;return e===V.HeatSeries||t&&(ld(i)||e===V.HistogramSeries&&!r||e===V.BarSeries&&xa(i))}function o$(s,t){return t?`${hw}_x_${s.uid}`:`${hw}_y_${s.uid}`}function dw(s,t){let e=fe(s.chart?.uid??Number.NaN,"config"),i=ks(e)?1:0,r=e?.axes?.[i]?.title?.content?.verticalAlignment,a=Xz(s),n=a;switch(r){case Yt.Baseline:case Yt.Middle:n=a/2;break;case Yt.Bottom:n=Math.min(a,0);break;case Yt.Top:}t?.set("dy",n)}function B5(s){s instanceof di&&(s.onPrivate("min",CL),s.onPrivate("max",CL))}function S5(s){let{axis:t,isHorizontalAxis:e,isSecondValueAxis:i}=s,{root:r}=t,a=e?{...q.xAxisTitleLabel,verticalCenter:Yt.Top}:q.yAxisTitleLabel,n=gA({root:r,id:o$(t,e),defaults:a});return t.get("renderer")instanceof va&&i!==!0||t.get("renderer")instanceof ls&&i===!0?t.children.unshift(n):t.children.push(n),e&&i!==!0&&(t.events.onDebounced(Ai.BoundsChanged,()=>dw(t,n),q.debounceTime),t.events.onDebounced(Ai.DataValidated,()=>dw(t,n),q.debounceTime),p5({axis:t,isHorizontalAxis:e,label:n})),n}function fu(s){let{root:t,axes:e,isXAxis:i,valueFormat:r,axisRenderer:a,isSecondValueAxis:n=!1,chartType:o,x:l,isAxisForHistogramOverlaySeries:h}=s,c;if(sB({isXAxis:i,chartType:o,valueFormat:r,isAxisForHistogramOverlaySeries:h})&&!n){let u;switch(o){case V.HeatSeries:u=i?Cr.xField:Cr.yField;break;case V.HistogramSeries:u=od.Start;break;case V.BoxPlotSeries:u=l;break;default:u=q.xAxisField;break}u&&(c=e.push(Sr.new(t,{categoryField:u,renderer:a})))}else if(ro(r))c=e.push(yr.new(t,{strictMinMax:!0,baseInterval:{timeUnit:"day",count:1},renderer:a}));else if(xa(r)&&(c=e.push(di.new(t,{strictMinMax:!0,renderer:a})),n&&c instanceof di)){let u=e.getIndex(0);u instanceof di&&c.set("syncWithAxis",u)}if(c!==void 0&&!h){Wz(c),r$(t,c);let u=o===V.HistogramSeries||o===V.HeatSeries?0:.1,d=o===V.HistogramSeries||o===V.HeatSeries?1:.9;c.get("renderer").setAll({cellStartLocation:u,cellEndLocation:d}),o===V.HeatSeries&&(a instanceof ls||a instanceof va)&&a.setAll({layer:q.zIndexes.axisLineLayer}),s$(c),B5(c),Yv(c.get("renderer"))?c.get("renderer").labels.template.set(n?"paddingBottom":"paddingTop",q.axisLabelSpacing.horizontalAxisLabelPaddingTop):a instanceof va&&c.get("renderer").labels.template.set(n?"paddingLeft":"paddingRight",q.axisLabelSpacing.verticalAxisLabelSidePadding)}return c}function F5(s){let{axis:t,data:e,chartType:i,dataWasUpdated:r,axesInitializationNeeded:a,sortChanged:n,heatChartHideEmptyRowsAndColumnsChanged:o}=s;if(e&&(r||a||n||o)){let l=In(e);if(i!==V.HeatSeries)t.data.setAll(l??[]);else{let h=(d,A)=>{let p=A?.map(m=>d in m?m[d]:void 0);return Array.from(new Set(p)).map(m=>({[d]:m}))},c=t.get("renderer")instanceof va?Cr.yField:Cr.xField,u=h(c,l);t.data.setAll(u)}}}function T5(s){let{axis:t,axisTitleConfig:e,isSecondValueAxis:i}=s,r=t.get("renderer"),{chart:a}=t,n=Yv(r),o=Ii({childId:o$(t,n),parent:t,useChildId:!0})??S5({axis:t,isHorizontalAxis:n,isSecondValueAxis:i});if(o instanceof Zt){let l=n?{...q.xAxisTitleLabel,verticalCenter:Yt.Top}:q.yAxisTitleLabel;if(wn({label:o,labelConfig:e,defaults:l}),n&&i!==!0&&dw(t,o),a){let h={chart:a,label:o,labelType:n?ii.XAxisTitle:ii.YAxisTitle};bl(h)}}}function aB(s){let{axis:t,data:e,dataWasUpdated:i,axesInitializationNeeded:r,sortChanged:a,heatChartHideEmptyRowsAndColumnsChanged:n,axisConfig:o,axisConfigIndex:l,timeIntervalInfo:h,horizontalAxisLabelsBehavior:c,verticalAxisLabelsBehavior:u,axisLabelsBehaviorChanged:d,anyGuideAboveChanged:A,isNonAggregatedChart:p,isSecondValueAxis:m,chartConfig:f,externalAxisLabelFormatter:g,guideTooltipFormatter:y,utilsStrings:x,errorStrings:w,queryObject:S}=s,{visible:D,lineSymbol:T,title:L,labels:$,isLogarithmic:I,grid:R,displayCursorTooltip:F,displayZeroLine:H,valueFormat:K,guides:z,tickSpacing:ee,dateBaseInterval:ie}=o,{root:de}=t,G=ze(f.series),Y=Ua(f),xe=ks(f),{chart:ae}=t,le=ae?fe(ae.uid,"config"):void 0,Ie=Ys(S),Ze=ln(Ie).find(kt=>kt.name===le?.series?.[0]?.x),We=kF(Ze),Je=t.get("renderer");wA(t.uid,{zeroGridLine:{displayZeroLine:H,strokeWidth:R?.width??q.lineWidth,visible:R!==void 0}}),Oz({axis:t,isLogarithmic:I,axisConfigIndex:l}),Iz({axis:t,isXAxis:Uc(t.get("renderer"),xe),chartType:G,formatOptions:K,isNonAggregatedChart:p,overridePercentMultiplication:Y===Gi.Stacked100,externalAxisLabelFormatter:g,isTimeOnlyField:We,errorStrings:w}),Lz({axis:t,isRotated:xe,chartConfig:f}),Rz({axis:t,timeIntervalInfo:h,dateBaseInterval:ie,xFieldIsTimeOnly:We}),So({element:Je,lineSymbol:{color:[...q.color],...T??ZA()},visible:D}),So({element:Je.ticks.template,lineSymbol:T,visible:D}),So({element:Je.grid.template,lineSymbol:R,visible:D}),R===void 0&&(t.get("renderer").grid.template.set("strokeWidth",q.lineWidth),t.markDirtyValues()),A5({axis:t,axisConfig:o,chartType:G,horizontalAxisLabelsBehavior:c,verticalAxisLabelsBehavior:u,axisLabelsBehaviorChanged:d}),T5({axis:t,axisTitleConfig:L,isSecondValueAxis:m}),Ez(t,o),o5({axis:t,chartType:G,labelConfig:$,horizontalAxisLabelsBehavior:c,isSecondValueAxis:m,tickSpacing:ee}),Mz({root:de,axis:t,displayCursorTooltip:F}),a5({axis:t,guideConfigs:z,guideTooltipFormatter:y,anyGuideAboveChanged:A,utilsStrings:x}),F5({axis:t,data:e,chartType:G,dataWasUpdated:i,axesInitializationNeeded:r,heatChartHideEmptyRowsAndColumnsChanged:n,sortChanged:a})}function P5(s){let{chart:t,errorStrings:e}=s,{root:i}=t,r=fe(t.uid,"config");if(r){let{x:a}=r.series[0],n=ks(r),{axes:o}=r,l=ze(r.series);Il({chartType:l,axesConfig:o,errorStrings:e});let h={root:i,x:a,chartType:l},c=n?o?.[1]:o?.[0],u=n?o?.[0]:o?.[1],d=c?.valueFormat,A=u?.valueFormat;if(d!==void 0&&A!==void 0&&(fu({...h,axes:t.xAxes,valueFormat:d,axisRenderer:ls.new(i,{}),isXAxis:!n,x:a}),fu({...h,axes:t.yAxes,valueFormat:A,axisRenderer:va.new(i,{}),isXAxis:n,x:a}),o?.[2]!==void 0)){let p=n?ls:va;fu({...h,axes:n?t.xAxes:t.yAxes,valueFormat:o[2]?.valueFormat,axisRenderer:p.new(i,{opposite:!0}),isSecondValueAxis:!0,isXAxis:n,x:a})}}}function D5(s){let{chart:t,chartType:e,axesConfig:i,x:r,errorStrings:a}=s,{root:n}=t,o=i?.[0],l=i?.[1];if(Il({chartType:e,axesConfig:i,errorStrings:a}),o?.valueFormat!==void 0&&l?.valueFormat!==void 0){let h={root:n,x:r,chartType:e};fu({...h,axes:t.xAxes,valueFormat:o.valueFormat,axisRenderer:Us.new(n,{}),isXAxis:!0,x:r}),fu({...h,axes:t.yAxes,valueFormat:l.valueFormat,axisRenderer:ou.new(n,{}),isXAxis:!1,x:r})}}function l$(s){let{chart:t,chartConfig:e,errorStrings:i}=s,{axes:r}=e,{x:a}=e.series[0],n=ze(e.series);switch(t.xAxes.clear(),t.yAxes.clear(),n){case V.GaugeSeries:t instanceof La&&_5({chart:t,axesConfig:r,errorStrings:i});break;case V.HistogramSeries:w5({chart:t,axesConfig:r,x:a,errorStrings:i});break;case V.HeatSeries:case V.BarSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.LineSeries:case V.BoxPlotSeries:P5({chart:t,errorStrings:i});break;case V.RadarSeries:t instanceof La&&D5({chart:t,axesConfig:r,chartType:n,x:a,errorStrings:i});break}}function L5(s){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,anyGuideAboveChanged:a,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,timeIntervalInfo:c,xAxisLabelFormatter:u,yAxisLabelFormatter:d,secondaryYAxisLabelFormatter:A,guideTooltipFormatter:p,utilsStrings:m,errorStrings:f,queryObject:g}=s,{horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axes:w}=e,S=ks(e),D=ze(e.series),T=fe(t.uid,"isNonAggregatedChart"),L=t.xAxes.getIndex(0),$=t.yAxes.getIndex(0),I=t.xAxes.getIndex(1)??t.yAxes.getIndex(1);Il({chartType:D,axesConfig:w,errorStrings:f});let R=S?1:0,F=S?0:1,H=w?.[R],K=w?.[F];[{axis:L,axisConfig:H,externalAxisLabelFormatter:S?d:u,axisConfigIndex:R},{axis:$,axisConfig:K,externalAxisLabelFormatter:S?u:d,axisConfigIndex:F},{axis:I,axisConfig:w?.[2],externalAxisLabelFormatter:A,isSecondValueAxis:!0,axisConfigIndex:2}].forEach(z=>{let{axis:ee,axisConfig:ie,axisConfigIndex:de,externalAxisLabelFormatter:G,isSecondValueAxis:Y}=z;ee!==void 0&&!ee.isDisposed()&&ie!==void 0&&aB({axis:ee,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,sortChanged:r,timeIntervalInfo:c,axisConfig:ie,axisConfigIndex:de,horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:i,anyGuideAboveChanged:a,isNonAggregatedChart:T,isSecondValueAxis:Y,utilsStrings:m,chartConfig:e,externalAxisLabelFormatter:G,guideTooltipFormatter:p,errorStrings:f,queryObject:g})}),Pv(t,n)}function h$(s){let{chart:t,chartConfig:e}=s,i=ze(e.series);i===V.GaugeSeries&&t instanceof La?x5(s):i===V.HistogramSeries?C5(s):L5(s)}function I5(s,t){let e=Xt(q.backgroundColor);t.set("background",nr.new(s,{fill:e.color,fillOpacity:e.opacity}))}function u$(s,t){let e=Xt(t??q.backgroundColor);s.get("background")?.setAll({fill:e.color,fillOpacity:e.opacity})}function c$(s,t){let e=ze(t.series);return s instanceof Ci&&e!==V.GaugeSeries}function k5(s,t){let e=q.cursorCrosshair.style,i={type:Dt.SLS,style:t?.style??e.style,color:t?.color??e.color,width:t?.width??e.width},r=s.get("cursor")?.lineX,a=s.get("cursor")?.lineY;So({element:r,lineSymbol:i}),So({element:a,lineSymbol:i})}function d$(s){let{root:t,chart:e,config:i,queryObject:r}=s,a;if(c$(e,i)){let n=e instanceof La?ml:Gn;a=e.set("cursor",n.new(t,{})),qX(e,r)}return a}function A$(s){let{root:t,chart:e,cursorCrosshair:i,config:r,queryObject:a}=s;if(c$(e,r)){let n=e.get("cursor")??d$({root:t,chart:e,config:r,queryObject:a});n&&(k5(e,i?.style),n.lineX.set("visible",i?.verticalLineVisible??q.cursorCrosshair.verticalLineVisible),n.lineY.set("visible",i?.horizontalLineVisible??q.cursorCrosshair.horizontalLineVisible))}}function $5(s){let{chart:t,enabled:e}=s,i=e?"pointer":"default";t instanceof Ts&&t.series.each(r=>{switch(!0){case r instanceof Li:r.columns.template.set("cursorOverStyle",i);break;case r instanceof qt:let a=Rt(r.uid,"bulletTemplate");a!==void 0&&!nh(r)&&a.set("cursorOverStyle",i);break;case r instanceof Hr:r.slices.template.setAll({cursorOverStyle:i});break}})}function O5(s){let{chart:t,actionMode:e,cursorRange:i}=s,r=fe(t.uid,"isRotated"),a=fe(t.uid,"config"),n=ze(a?.series),o=n===V.ScatterSeries,l=(n===V.LineSeries||n===V.RadarSeries)&&xa(a?.axes?.[0]?.valueFormat),h=(n===V.LineSeries||n===V.RadarSeries)&&ld(a?.axes?.[0]?.valueFormat),c=(n===V.LineSeries||n===V.RadarSeries)&&ro(a?.axes?.[0]?.valueFormat),u,d=!1,A=e??fe(t.uid,"actionMode")??q.actionMode;if(fe(t.uid,"filterBySelection")===!0)u=ji.None,d=!1;else if(i!==void 0)u=JL({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Vt.Zoom:o||l||c?u=ji.ZoomXY:u=r===!0?ji.ZoomY:ji.ZoomX,d=!1;break;case Vt.MultiSelection:case Vt.MultiSelectionWithCtrlKey:h?u=r===!0?ji.SelectY:ji.SelectX:u=ji.SelectXY,d=!0;break;case Vt.MonoSelection:u=ji.None,d=!0;break;case Vt.None:u=ji.None,d=!1;break}t instanceof Ci&&t.get("cursor")!==void 0&&u!==void 0&&t.get("cursor")?.set("behavior",u),$5({chart:t,enabled:d})}function E5(s,t){t!==void 0&&(t.width!==void 0&&s.set("width",oL(t.width)),t.height!==void 0&&s.set("height",oL(t.height)),t.paddingTop!==void 0&&s.set("paddingTop",t.paddingTop),t.paddingBottom!==void 0&&s.set("paddingBottom",t.paddingBottom))}function Aw(s){let{root:t,defaults:e,parent:i,id:r,index:a}=s,n=Re.new(t,{});return E5(n,e),i!==void 0&&i.children.insertIndex(a??i.children.length,n),r!==void 0&&n.set("id",r),n}function pw(s,t){t?s.hide():s.show()}function M5(s,t){let e=Aw({root:s,defaults:q.headerContainer,parent:t,id:Ns(Wv,t.uid),index:0}),i=Aw({root:s,defaults:q.headerContainer,parent:t,id:Ns(Kw,t.uid),index:1}),r=gA({root:s,parent:e,defaults:q.titleLabel,id:Ns(Sk,e.uid)}),a=gA({root:s,parent:i,defaults:q.subtitleLabel,id:Ns(Fk,i.uid)});yA({chart:t,label:r,labelType:ii.ChartTitle}),yA({chart:t,label:a,labelType:ii.ChartSubTitle})}function p$(s,t){let{title:e,subtitle:i}=t??{},r=fe(s.uid,"config"),a=r?.legend?.visible!==!1&&r?.legend?.position===st.Top?0:q.headerContainer.paddingBottom??0,n=Ii({childId:Wv,parent:s});if(n!==void 0){n.set("paddingBottom",a);let l=Ii({childId:Sk,parent:n});l!==void 0&&(wn({label:l,labelConfig:e,defaults:q.titleLabel}),bl({chart:s,label:l,labelType:ii.ChartTitle}),pw(n,l.get("disabled")===!0||(e?.content.text??"")===""))}let o=Ii({childId:Kw,parent:s});if(o!==void 0){o.set("paddingBottom",a),n!==void 0&&n.set("paddingBottom",q.titleAndSubtitlePaddingBottom);let l=Ii({childId:Fk,parent:o});l!==void 0&&(wn({label:l,labelConfig:i,defaults:q.subtitleLabel}),bl({chart:s,label:l,labelType:ii.ChartSubTitle}),pw(o,l.get("disabled")===!0||(i?.content.text??"")===""))}}function R5(s){let{root:t}=s,e=Aw({root:t,defaults:q.footerContainer,parent:s,id:Ns(Xv,s.uid)}),i=gA({root:t,parent:e,id:Ns(Tk,e.uid)});yA({chart:s,label:i,labelType:ii.ChartFooter})}function f$(s,t){let e=Ii({childId:Xv,parent:s});if(e!==void 0){let i=Ii({childId:Tk,parent:e});i!==void 0&&(wn({label:i,labelConfig:t,defaults:q.footer}),bl({chart:s,label:i,labelType:ii.ChartFooter}),pw(e,i.get("disabled")||(t?.content.text??"")===""))}}function m$(s){if(!(s instanceof La)&&s instanceof Ci){let{root:t}=s,e=cl.new(t,{orientation:"horizontal",visible:!1,marginTop:0}),i=cl.new(t,{orientation:"vertical",visible:!1});s.setAll({scrollbarX:e,scrollbarY:i})}}function U5(s,t){if(t!==void 0){let e=Xt(t),i=t[3]/255,r=i/2;[{element:s.get("background"),specificOpacity:r},{element:s.startGrip.get("background")},{element:s.endGrip.get("background")},{element:s.thumb}].forEach(a=>{let{element:n,specificOpacity:o}=a;n!==void 0&&n.setAll({fill:e.color,fillOpacity:o??i})}),[{element:s.get("background"),stateName:"default",specificOpacity:r},{element:s.startGrip.get("background"),stateName:"default"},{element:s.startGrip.get("background"),stateName:"hover"},{element:s.startGrip.get("background"),stateName:"down"},{element:s.endGrip.get("background"),stateName:"default"},{element:s.endGrip.get("background"),stateName:"hover"},{element:s.endGrip.get("background"),stateName:"down"},{element:s.thumb,stateName:"default"},{element:s.thumb,stateName:"hover"},{element:s.thumb,stateName:"down"}].forEach(a=>{let{element:n,stateName:o,specificOpacity:l}=a;(n?.states.lookup(o)??n?.states.create(o,{}))?.setAll({fill:e.color,fillOpacity:l??i})})}}function V5(s,t){typeof t=="number"&&Number.isFinite(t)&&(s.get("orientation")==="horizontal"?s.setAll({height:t,minHeight:t}):s.setAll({width:t,minWidth:t}))}function N5(s,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;s.startGrip.set("scale",e),s.endGrip.set("scale",e)}}function IL(s,t){typeof t=="number"&&Number.isFinite(t)&&(s.get("orientation")==="horizontal"?s.set("marginBottom",t):s.set("marginLeft",t),s.markDirtyBounds())}function g$(s){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=s;if(!(t instanceof La)&&t instanceof Ci){let r=fe(t.uid,"isRotated");(t.get("scrollbarX")===void 0||t.get("scrollbarY")===void 0)&&m$(t);let a=t.get("scrollbarX"),n=t.get("scrollbarY");[a,n].forEach(o=>{if(o!==void 0){let l=o.get("orientation")==="horizontal"&&r!==!0||o.get("orientation")==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(Zi(o,!h),l!==void 0&&!h){let{width:c,color:u,gripSize:d,margin:A}=l;IL(o,A??c??q.scrollbarPadding),U5(o,u),N5(o,d),V5(o,c)}else IL(o,0)}})}}function H5(s){bk(s)}function kL(s){return s.get("legendDataItem")?.get("marker").children.getIndex(0)}function Q5(s,t){s.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&e.set("strokeOpacity",0)})}function j5(s){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:a,options:n,queryObject:o}=s,{id:l,name:h}=i,{xField:c,yField:u,xAxisField:d,yAxisField:A}=SA(e,i),p=tT(e),m=Li.new(t,{id:l,name:h,stacked:p,turboMode:!0,xAxis:r,yAxis:a,[d]:c,[A]:u,maskBullets:!1});us(m.columns.template,n?.selectionTheme);let f=Pt.new({});return hs(m.uid,{bulletTemplate:f}),Do({element:m.columns.template,series:m,queryObject:o}),m.bullets.push(g=>{let y=ft.new(g,{},f);return ma.new(g,{sprite:y})}),m.columns.template.set("width",Bt(100)),iB(m),jw(m,n?.tooltipFormatter),Hk(m),TA(m,e),m.appear(),m}function W5(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:a,colorMatch:n,rendererType:o}=s,l=t.root,h=Yf(t),c=new Set,u,d,A=e.fillSymbol,p={root:l,seriesConfig:e,seriesIndex:i,seriesSymbol:A,isChartFillSymbol:!0},m={},f={},g=Zb(i),y=Rt(t.uid,"bulletTemplate");if(y&&A?.style&&A.style!==bs.Solid&&vu({root:l,element:y,fillSymbol:A,defaultToColorFromRamp:!0,colorRampIndex:i,isChartFillSymbol:!0,chartBackgroundColor:tk(t.chart)??[...q.backgroundColor]}),t.columns.length===0?m=en({root:l,seriesIndex:i,colorMatch:n,seriesSymbol:A??g,element:ft.new(l,{}),isChartFillSymbol:!0}):t.columns.each(x=>{let w=x.dataItem?.dataContext;if(Number.isFinite(w?.[h])){d=on({dataItem:w,seriesConfig:e,chartSubType:a,colorMatch:n,rendererType:o});let S=w[q.xAxisField]===q.nullValue,D=(S&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:A)??g;m=en({...p,seriesSymbol:D,element:x,colorMatch:n,rendererSymbol:d}),pA(x,m.stylingInfo),S||(c.add(JSON.stringify(m.symbolWithColorInfo)),f=m)}}),r>1){let x=kL(t);if(x!==void 0)en({...p,seriesSymbol:A??g,element:x,colorMatch:n,rendererSymbol:d}),pA(x,f.stylingInfo);else if(t.chart instanceof Ci){let w=t.chart.children.values.find(S=>S instanceof hl);w!==void 0&&w.events.once(Ai.BoundsChanged,()=>{pA(kL(t),f.stylingInfo)})}en({...p,seriesSymbol:f.symbolWithColorInfo??A??g,element:t,colorMatch:n,rendererSymbol:d,keepCurrentVisibility:!0}),en({...p,seriesSymbol:f.symbolWithColorInfo??A??g,element:t.columns.template,colorMatch:n,rendererSymbol:d})}return c.size<=1&&(u=f.symbolWithColorInfo??A),Q5(t,h),u}function X5(s){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:a,rendererType:n,disableInteractions:o}=s,l=s.seriesConfig,h=t.chart;if(h!==void 0){let c=fe(h.uid,"config"),u=c?.series.length??0,d=It(c?.series);bA(t,!1);let A=W5({series:t,seriesConfig:l,seriesIndex:r,numberOfSeries:u,chartSubType:d,colorMatch:a,rendererType:n});o&&bA(t,!0),e.set(i?.get(l.id)??r,A),e.size===u&&nn({data:e,htmlContainer:t.root.dom,chartId:h.get("id"),colorMatchApplied:PA(h)})}}function z5(s){let{columnSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:a,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:c,loaderHandle:u}=s,d=r.series[i];if(e&&d?.type===V.BarSeries&&(o===!0||a===!0||c===!0||l===!0||h||n===!0)){let{xField:A,yField:p,xAxisField:m,yAxisField:f}=SA(r,d);t.setAll({[m]:A,[f]:p}),t.events.once(Ai.DataValidated,()=>{u.hideLoader()}),t.data.setAll(e.dataItems)}}function G5(s){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:a,dataWasUpdated:n,rotationChanged:o,timeZoneChanged:l,queryObject:h,utilsStrings:c,seriesWereReinitialized:u,autoInverseDataLabelTextColor:d,fieldList:A,sortChanged:p,stackedTypeChanged:m,loaderHandle:f}=s,g=i.series[a],y=i.rotated,x=i.axes,w;if(x?.[1]&&(w=x[1]),t.set("id",g.id),Zi(t,g.visible),us(t.columns.template,r?.selectionTheme),xu(t.columns.template,e?.dataItems?.length),eB({series:t,chartConfig:i,isRotated:y}),H5({seriesType:V.BarSeries,series:t,seriesConfig:g,isRotated:y,dataLabelsConfig:g.dataLabels,autoInverseDataLabelTextColor:d,yAxisValueFormat:w?.valueFormat,externalDataLabelFormatter:r?.dataLabelFormatter}),z5({columnSeries:t,data:e,seriesIndex:a,chartConfig:i,dataWasUpdated:n,timeZoneChanged:l,seriesWereReinitialized:u,rotationChanged:o,stackedTypeChanged:m,sortChanged:p,loaderHandle:f}),Gw({series:t,seriesConfig:g,fieldList:A,queryObject:h,seriesIndex:a,tooltipFormatter:r?.tooltipFormatter,utilsStrings:c}),oh(s)){let S={series:t,seriesConfig:g,seriesIndex:a,colorMatch:s.colorMatch,seriesIndexMapper:s.seriesIndexMapper,seriesSymbolMapForEvent:s.seriesSymbolMapForEvent,rendererType:s.rendererType,disableInteractions:r?.disableInteractions};lh({styleCallback:X5,callbackProps:S,series:t,seriesConfig:g})}tB({chartConfig:i,series:t,seriesIndex:a,queryObject:h})}function Y5(s){let{chartConfig:t,seriesConfig:e}=s,i=ks(t),r=t.showOutliers,a=t.standardizeValues,n=Ca(t),{y:o}=e,l=tg(t),h=It(l.series),c=n?void 0:e?.query?.where,u={y:h===Ee.BoxPlotMultiFieldsAndCategory&&typeof o=="string"?o:void 0,chartSubType:h,splitBy:c,showOutliers:r,standardizeValues:pd(h)?a:!1},d=Kv({chartConfig:t,seriesConfig:e,key:Kt.ThirdQuartile});return{properties:{...d.properties,low:er({...u,key:Kt.Min}),open:er({...u,key:Kt.FirstQuartile}),high:er({...u,key:Kt.Max})},dataFields:{...d.dataFields,low:i?"lowValueXField":"lowValueYField",open:i?"openValueXField":"openValueYField",high:i?"highValueXField":"highValueYField"}}}function K5(s){let{candleStickSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:n,loaderHandle:o}=s;(i===!0||a===!0||r===!0||n===!0)&&(t.events.once(Ai.DataValidated,()=>{o.hideLoader()}),t.data.setAll(e?.dataItems??[]))}function Z5(s){let{candleStickSeries:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:a,showMean:n,rendererType:o,options:l}=s,{root:h}=t,c=e.fillSymbol??jm(i),u={},d={root:h,seriesConfig:e,seriesIndex:i,colorMatch:a,isChartFillSymbol:!0};bA(t,!1),t.columns.length===0?u=en({...d,seriesSymbol:c,element:ft.new(h,{})}):t.columns.each(A=>{u=en({...d,seriesSymbol:c,element:A,rendererSymbol:n?void 0:on({dataItem:A.dataItem?.dataContext,seriesConfig:e,chartSubType:r,colorMatch:a,rendererType:o})})}),en({...d,seriesSymbol:u?.symbolWithColorInfo??c,element:t.columns.template,colorMatch:a}),l?.disableInteractions&&bA(t,!0)}function q5(s){let{candleStickSeries:t,seriesConfig:e,data:i,options:r}=s;us(t.columns.template,r?.selectionTheme),xu(t.columns.template,i?.dataItems?.length),FA(t,e.name),K5(s),oh(s)&&lh({styleCallback:Z5,callbackProps:s,series:t,seriesConfig:e})}function J5(s){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:a,options:n,queryObject:o}=s,l=r.series[a],h;if(l.type===V.BoxPlotSeries){let c=Y5({chartConfig:r,seriesConfig:l});h=Ia.new(t,{id:l.id,turboMode:!0,xAxis:e,yAxis:i,[c.dataFields.low]:c.properties.low,[c.dataFields.open]:c.properties.open,[c.dataFields.high]:c.properties.high,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),h.columns.template.setAll({themeTags:[],width:Bt(80)}),us(h.columns.template,n?.selectionTheme),Do({element:h.columns.template,series:h,queryObject:o})}return h}function eG(s){let{chartConfig:t,seriesConfig:e}=s,i=It(t.series),{showOutliers:r,standardizeValues:a}=t,{y:n}=e,o=e?.query?.where,l=tg(t),h=Kv({chartConfig:l,seriesConfig:e,key:Kt.Average}),c=er({y:i===Ee.BoxPlotMultiFieldsAndCategory&&typeof n=="string"?n:void 0,chartSubType:i,splitBy:o,showOutliers:r,standardizeValues:pd(i)?a:!1,key:Kt.Average});return h.properties.value=c,h}function tG(s){let{meanLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:n}=s;(i===!0||a===!0||r===!0||n===!0)&&t.data.setAll(e?.meanLines??[])}function iG(s){let{meanLineSeries:t,seriesConfig:e,data:i,dataWasUpdated:r,sortChanged:a,rotationChanged:n,seriesWereReinitialized:o,options:l}=s,h=Rt(t.uid,"bulletTemplate");h&&us(h,l?.selectionTheme),xu(h,i?.meanLines?.length),FA(t,e?.name),tG({meanLineSeries:t,data:i,dataWasUpdated:r,sortChanged:a,rotationChanged:n,seriesWereReinitialized:o})}function rG(s){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:a,options:n,queryObject:o}=s,l=r.series[a],h;if(l.type===V.LineSeries){let c=eG({chartConfig:r,seriesConfig:l});h=qt.new(t,{id:l.id,xAxis:e,yAxis:i,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),h.appear();let u=Pt.new({});hs(h.uid,{isBoxPlotMeanLineSeries:!0,bulletTemplate:u}),us(u,n?.selectionTheme),h.bullets.push(d=>{let A=ft.new(d,{},u),p=ma.new(d,{sprite:A});return h&&Do({element:A,series:h,queryObject:o}),p})}return h}function sG(s,t){return s.get("id")===`${t}_${Wi.Outliers}`}function aG(s){let{chartConfig:t,seriesConfig:e}=s;return Kv({chartConfig:t,seriesConfig:e,key:Kt.Outlier})}function nG(s){let{outlierSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:n}=s;(i===!0||a===!0||r===!0||n===!0)&&t.data.setAll(e?.outliers??[])}function oG(s,t){return(s??q.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function lG(s){let{outlierSeries:t,chartSubType:e,seriesConfig:i,colorMatch:r,showOutliers:a}=s;if(Rt(t.uid,"bulletTemplate")&&i.type===V.BoxPlotSeries){let o=i.fillSymbol,l={type:Dt.SMS,style:YA.Circle,color:o?.color,size:q.boxPlot.boxPlotOutliersSize};t.dataItems.forEach(h=>{let c=h.bullets?.[0]?.get("sprite");if(c!==void 0){let u=on({dataItem:h.dataContext,seriesConfig:i,chartSubType:e,colorMatch:r});en({root:t.root,seriesSymbol:l,element:c,colorMatch:r,rendererSymbol:u})}})}let n=oG(a,i.visible);Zi(t,n)}function hG(s){let{outlierSeries:t,data:e,seriesConfig:i,sortChanged:r,dataWasUpdated:a,rotationChanged:n,seriesWereReinitialized:o,options:l}=s;if(t&&i.type===V.BoxPlotSeries){let h=Rt(t.uid,"bulletTemplate");h&&us(h,l?.selectionTheme),xu(h,e?.outliers?.length),nG({outlierSeries:t,data:e,rotationChanged:n,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:o}),oh(s)&&lh({styleCallback:lG,callbackProps:s,series:t,seriesConfig:i})}}function uG(s){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:a,options:n,queryObject:o}=s,l=r.series[a],h;if(l.type===V.BoxPlotSeries){let c=aG({chartConfig:r,seriesConfig:l});h=qt.new(t,{id:`${l.id}_${Wi.Outliers}`,xAxis:e,yAxis:i,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),h.strokes.template.set("forceHidden",!0);let u=Pt.new({});hs(h.uid,{isBoxPlotOutliersSeries:!0,bulletTemplate:u}),us(u,n?.selectionTheme),h.bullets.push(d=>{let A=ft.new(d,{},u),p=ma.new(d,{sprite:A});return h&&Do({element:A,series:h,queryObject:o}),mG({outlierSeries:h,bullet:p,seriesConfigId:l.id}),p}),h.appear()}return h}function cG(s){let{chartConfig:t,seriesConfig:e,type:i}=s,r="";switch(i){case Wi.Top:r=Kt.Max;break;case Wi.Median:r=Kt.Median;break;case Wi.Bottom:r=Kt.Min;break}return Kv({chartConfig:t,seriesConfig:e,key:r})}function dG(s){let{stepLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:n}=s;(i===!0||a===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function AG(s){let{stepLineSeries:t,data:e,seriesConfig:i,seriesIndex:r,colorMatch:a,chartSubType:n,rendererType:o}=s;if(i.type===V.BoxPlotSeries){let{root:l}=t,h=nI({data:e.dataItems,colorMatch:a,chartSubType:n,rendererType:o}),c=(i.fillSymbol??jm(r)).color,u={type:Dt.SLS,width:q.boxPlot.boxPlotLineWidth,color:h?q.boxPlot.boxPlotWhiskersColor:c};en({root:l,seriesIndex:r,seriesSymbol:u,element:t,colorMatch:a})}}function pG(s){let{stepLineSeries:t,data:e,seriesConfig:i,rotationChanged:r,sortChanged:a,dataWasUpdated:n,seriesWereReinitialized:o}=s,l=i.visible!==!1;t!==void 0&&i.type===V.BoxPlotSeries&&(Zi(t,l),oh(s)&&lh({styleCallback:AG,callbackProps:s,series:t,seriesConfig:i}),dG({stepLineSeries:t,data:e,rotationChanged:r,sortChanged:a,dataWasUpdated:n,seriesWereReinitialized:o}))}function YC(s){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:a,type:n,options:o,queryObject:l}=s,h=r.series[a],c;if(h.type===V.BoxPlotSeries){let u=cG({chartConfig:r,seriesConfig:h,type:n});c=wo.new(t,{id:`${h.id}_${n}`,xAxis:e,yAxis:i,noRisers:!0,[u.dataFields.value]:u.properties.value,[u.dataFields.category]:u.properties.category}),us(c.strokes.template,o?.selectionTheme),Do({element:c.strokes.template,series:c,queryObject:l})}return c}function Kv(s){let{chartConfig:t,seriesConfig:e,key:i}=s,r=ks(t),a=t.showOutliers,n=t.standardizeValues,o=Ca(t),l=It(t.series),{x:h,y:c}=e,u=o?void 0:e?.query?.where,d={y:l===Ee.BoxPlotMultiFieldsAndCategory&&typeof c=="string"?c:void 0,chartSubType:l,splitBy:u,showOutliers:a,standardizeValues:pd(l)?n:!1},A=l===Ee.BoxPlotMonoField||l===Ee.BoxPlotMultiFields||l===Ee.BoxPlotMonoFieldAndSplitBy||l===Ee.BoxPlotMultiFieldsAndSplitBy?Hm:h;return{dataFields:{value:r?"valueXField":"valueYField",category:r?"categoryYField":"categoryXField"},properties:{value:er({key:i,...d}),category:A}}}function fG(s,t){return s.series.values.find(e=>sG(e,t))}function y$(s,t){let e=s.series.values.find(a=>a.get("id")===`${t}_${Wi.Top}`),i=s.series.values.find(a=>a.get("id")===`${t}_${Wi.Median}`),r=s.series.values.find(a=>a.get("id")===`${t}_${Wi.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function v$(s){return s!==Ee.BoxPlotMonoField&&s!==Ee.BoxPlotMultiFields&&s!==Ee.BoxPlotMonoFieldAndCategory}function b$(s){let{chart:t,candleSeriesIndex:e,numberOfCandleStickSeries:i}=s,r,a,n=fe(t.uid,"config");if(n){let o=ks(n),l=Ca(n),h=o?t.yAxes.getIndex(0)?.get("renderer"):t.xAxes.getIndex(0)?.get("renderer"),c=h?.get("cellStartLocation"),u=h?.get("cellEndLocation");if(c&&u){let d=c/(l?1:n.series.length);r=c+e/i*(u-c)+d,a=c+(e+1)/i*(u-c)-d}}return{startLocation:r,endLocation:a}}function mG(s){let{outlierSeries:t,bullet:e,seriesConfigId:i}=s;if(t){let{chart:r}=t;if(r){let a=fe(r.uid,"config");if(a){let n=It(a.series);if(v$(n)){let o=r.series.values.filter(h=>h instanceof Ia),l=o?.findIndex(h=>h.get("id")===i);if(l&&l!==-1&&o[l]){let{startLocation:h,endLocation:c}=b$({chart:r,candleSeriesIndex:l,numberOfCandleStickSeries:o.length});h!==void 0&&c!==void 0&&e.set("locationX",(h+c)/2)}}}}}}function gG(s){let t=fe(s.uid,"config");if(t){let e=It(t.series),i=t.series.length,r=ks(t)?s.yAxes.getIndex(0)?.get("renderer"):s.xAxes.getIndex(0)?.get("renderer"),a=r?.get("cellStartLocation"),n=r?.get("cellEndLocation");if(a&&n){let o=s.series.values.filter(l=>l instanceof Ia);o.forEach((l,h)=>{let{topStepLineSeries:c,medianStepLineSeries:u,bottomStepLineSeries:d}=y$(s,l.get("id")??"");if(v$(e)){let{startLocation:A,endLocation:p}=b$({chart:s,candleSeriesIndex:h,numberOfCandleStickSeries:o.length});[c,u,d].forEach(m=>{m!==void 0&&(m.set("stepWidth",Bt(60/i)),A&&p&&m.set("locationX",(A+p)/2))})}else[c,u,d].forEach(A=>{A!==void 0&&A.setAll({stepWidth:Bt(60/i)})})})}}}function yG(s){let{chartConfig:t,seriesIndex:e}=s,i=t.series[e],r=ze([i]),a=[];if(r===V.BoxPlotSeries)[J5(s),YC({...s,type:Wi.Top}),YC({...s,type:Wi.Median}),YC({...s,type:Wi.Bottom}),uG(s)].forEach(n=>{n&&a.push(n)});else if(r===V.LineSeries){let n=rG(s);n&&a.push(n)}return a}function vG(s){let{chart:t,chartConfig:e,series:i,seriesConfig:r}=s;if(t&&e)if(gG(t),i instanceof Ia&&r.type===V.BoxPlotSeries){i.set("id",r.id);let a=i.get("id")??"";q5({...s,series:i,seriesConfig:r,candleStickSeries:i});let{topStepLineSeries:n,medianStepLineSeries:o,bottomStepLineSeries:l}=y$(t,a),h=[Wi.Top,Wi.Median,Wi.Bottom];[n,o,l].forEach((u,d)=>{u&&(u.set("id",`${r.id}_${h[d]}`),pG({...s,stepLineSeries:u}))});let c=fG(t,a);c&&(c.set("id",`${r.id}_${Wi.Outliers}`),hG({...s,outlierSeries:c}))}else i instanceof qt&&r.type===V.LineSeries&&iG({...s,meanLineSeries:i})}function bG(s){bk(s)}function nB(s){let{isLineSmoothed:t,isRadarLineSeries:e,isRotated:i}=s,r=e?RC:Lc;return t&&(r=e?MC:i?OC:$C),r}function xG(s){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:a}=s,n;for(let o of t.dataItems){let l=o.dataContext;if(n=on({seriesConfig:e,dataItem:l,chartSubType:i,colorMatch:r,rendererType:a}),n!==void 0)break}return n}function _G(s){let{series:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:a,rendererType:n}=s,o=t.root,l=xG({series:t,seriesConfig:e,chartSubType:r,colorMatch:a,rendererType:n}),h=en({root:o,seriesIndex:i,seriesSymbol:e.lineSymbol??Yb(i),element:t,colorMatch:a,rendererSymbol:l});return Zi(t,e.visible),h.symbolWithColorInfo}function CG(s){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:a,lineColor:n}=s,o=!1,l,h=Rt(t.uid,"bulletTemplate");if(h!==void 0){r.markerVisible!==!1&&r.visible!==!1?t.bulletsContainer.show():t.bulletsContainer.hide();let{markerSymbol:c}=r;c===void 0&&(c=Gb(),c.color=n),a?c.color=n:c.color??=n;let u=on({dataItem:t.dataItems[0]?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:a});u&&u.outline&&(c.outline??=u.outline,c.outline.color=u.outline.color),Ak({element:h,markerSymbol:c});let d=new Set,A;t.dataItems.forEach(p=>{let m=p.bullets?.[0]?.get("sprite");if(m!==void 0){let f=on({dataItem:p?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:a}),g=en({root:t.root,seriesIndex:e,seriesSymbol:c,element:m,colorMatch:a,rendererSymbol:f});l=g.symbolWithColorInfo,A=g.stylingInfo,pA(m,A),d.add(JSON.stringify(A))}}),o=d.size>1}return o?void 0:l}function wG(s,t){if(s.showArea===!0)if(s.areaColor!==void 0){let{color:e,opacity:i}=Xt(s.areaColor);t.set("fill",e),t.fills.template.setAll({fillOpacity:i,visible:!0})}else t.set("fill",t.get("stroke")),t.fills.template.setAll({fillOpacity:q.lineSeries.areaOpacity,visible:!0});else t.fills.template.set("visible",!1)}function x$(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,rendererType:n,chartSubType:o,seriesIndexMapper:l,seriesSymbolMapForEvent:h,isRotated:c}=s,u=t.root,d=t.chart;if(d){let A=t instanceof gl;Zi(t,e.visible);let p=nB({isRadarLineSeries:A,isLineSmoothed:e.lineSmoothed,isRotated:c});t.set("curveFactory",p);let m=_G({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:a,rendererType:n}),f=CG({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:a,lineColor:m.color});h.set(l?.get(e.id)??i,{lineSymbol:m,markerSymbol:f}),wG(e,t),h.size===r&&(nn({data:Tr(h),htmlContainer:u.dom,chartId:t.chart?.get("id"),colorMatchApplied:PA(d)}),h.clear())}}function BG(s){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:a,options:n,queryObject:o}=s,{id:l,name:h}=a,{xField:c,yField:u,xAxisField:d,yAxisField:A}=SA(e,a),p=qt.new(t,{id:l,name:h,xAxis:i,yAxis:r,[d]:c,[A]:u,maskBullets:!1,curveFactory:nB({isRadarLineSeries:!1,isLineSmoothed:a.lineSmoothed,isRotated:e.rotated})});p.appear();let m=Pt.new({});return us(m,n?.selectionTheme),hs(p.uid,{bulletTemplate:m}),p.bullets.push(f=>{let g=ft.new(f,{role:q.aria.defaultChartItemRole,ariaLabel:tp(),hoverOnFocus:!0,tooltip:BA({series:p,tooltipFormatter:n?.tooltipFormatter}),layer:q.zIndexes.bulletMarkers},m);return Do({element:g,series:p,queryObject:o}),e$(g,p),ma.new(f,{sprite:g})}),iB(p),TA(p,e),p}function SG(s){let{lineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:a,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:c,loaderHandle:u}=s,d=r.series[i];if(e!==void 0&&i>=0&&i<r.series.length&&d.type===V.LineSeries&&(o===!0||a===!0||l===!0||h||n===!0||c===!0)){let{xField:A,yField:p,xAxisField:m,yAxisField:f}=SA(r,d);t.setAll({[m]:A,[f]:p}),t.events.once(Ai.DataValidated,()=>{u.hideLoader()}),t.data.setAll(e.dataItems)}}function FG(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=s,{chart:h}=t;if(h!==void 0){let c=fe(h.uid,"config"),u=fe(h.uid,"isRotated")??!1,d=It(c?.series);x$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:u})}}function TG(s,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;s.set("connect",e!==!1&&r!==Nb.Null)}function PG(s){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:a,dataWasUpdated:n,queryObject:o,fieldList:l,utilsStrings:h,rotationChanged:c,seriesWereReinitialized:u,timeZoneChanged:d,sortChanged:A,stackedTypeChanged:p,loaderHandle:m}=s,f=i.series[a],g=i.rotated,y=i.axes,x;y?.[1]&&(x=y[1]),t.set("id",f.id),Zi(t,f.visible);let w=Rt(t.uid,"bulletTemplate");w&&us(w,r?.selectionTheme),xu(w,e?.dataItems?.length),eB({series:t,chartConfig:i,isRotated:g}),bG({seriesType:V.LineSeries,series:t,seriesConfig:f,isRotated:g,dataLabelsConfig:f.dataLabels,yAxisValueFormat:x?.valueFormat,externalDataLabelFormatter:r?.dataLabelFormatter}),TG(t,f),SG({lineSeries:t,seriesIndex:a,data:e,chartConfig:i,dataWasUpdated:n,rotationChanged:c,stackedTypeChanged:p,seriesWereReinitialized:u,timeZoneChanged:d,sortChanged:A,loaderHandle:m}),Gw({series:t,seriesConfig:f,fieldList:l,queryObject:o,seriesIndex:a,tooltipFormatter:r?.tooltipFormatter,utilsStrings:h}),oh(s)&&lh({styleCallback:FG,callbackProps:s,series:t,seriesConfig:f}),tB({chartConfig:i,series:t,seriesIndex:a,queryObject:o})}function _$(s,t){let e=s.labels.template;e.adapters.remove("text"),e.adapters.remove("html");let i=t!==void 0?"html":"text";Nf({label:e,labelOutputProp:i});let r=(a,n)=>{let o=a??"",l=Rt(s.uid,"pieChartDataLabelFormatter");if(l){let h=n.dataItem;if(h){let c=h?.get("valuePercentTotal"),u=h?.get("value"),d=h?.get("category")??a??"";o=l(d,u,c)}}return i==="html"?Mr(o):o};e.adapters.add(i,(a,n)=>r(a,n)),s.labels.each(a=>{a.adapters.remove("text"),a.adapters.remove("html"),Nf({label:a,labelOutputProp:i}),a.adapters.add(i,n=>r(n,a))})}function DG(s){let t=s.dataItem?.component,e;if(t instanceof Hr){let i=fe(t.chart?.uid??Number.NaN,"config");if(i!==void 0&&i.series[0].type===V.PieSeries){let r=i.series[0].dataLabelsInside??q.pieChart.dataLabelsInside,a=Xt(i?.series[0].dataLabels?.content?.color).color,n=t.chart?.get("background")?.get("fill")??Xt(q.backgroundColor).color,o=fe(t.chart?.uid??Number.NaN,"options")?.autoInverseDataLabelTextColor??ht.options.autoInverseDataLabelTextColor,l=s.dataItem?.dataContext?.[ht.pieChart.technicalFieldSliceId],h=t.slices.values.find(u=>(u.dataItem?.dataContext)[ht.pieChart.technicalFieldSliceId]===l)?.get("fill")??Xt(i.series[0].fillSymbol?.color).color,c=a??s.text.get("fill");e=c,c&&h&&o&&r&&(e=gk({textBackgroundColor:h,chartBackgroundColor:n}))}}return e}function LG(s,t){let e=s.labels.template;e.set("cursorOverStyle","pointer"),e.setAll({cursorOverStyle:"pointer",maxWidth:q.pieChart.dataLabels.maxWidth??Number.NaN,oversizedBehavior:q.pieChart.dataLabels.wrap??!0?"wrap":"none",centerX:Qe,centerY:Qe}),_$(s,t),e.adapters.add("fill",(i,r,a)=>DG(r))}function IG(s,t){let{numericValueFormat:e,percentValueFormat:i,displayNumericValueOnDataLabel:r,displayCategoryOnDataLabel:a,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c,dataLabelsCharacterLimit:u}=t,{chart:d}=s,A;if(d){let p=Xw({pieChart:d,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:r??q.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??q.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}),m=Xm(u),f=Ra(fe(s.chart?.uid??Number.NaN,"rtl")??!1," ");A=(g,y,x)=>{let w=p(g,y,x),S=a??q.pieChart.displayCategoryOnDataLabel?m(g):"",D=Yi(S)?"":`${S}${f}`;return D=`${D}${w}`,t.dataLabels?.content!==void 0&&(D=_a({textSymbol:{...t.dataLabels.content,text:D},format:"amChartsV5",defaults:{...q.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??q.pieChart.dataLabels.wrap}})),D}}return A}function kG(s){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=s,{dataLabels:r}=e,a=e.dataLabelsOffset??q.pieChart.dataLabelsOffset,n=e.dataLabelsInside??q.pieChart.dataLabelsInside;_$(t,i),hs(t.uid,{pieChartDataLabelFormatter:i??IG(t,e)}),wn({label:t.labels.template,labelConfig:r,defaults:{...q.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??q.pieChart.alignDataLabels}});let o=fe(t.chart?.uid??0,"rtl"),l=!n&&(e.alignDataLabels??q.pieChart.alignDataLabels),h=e.optimizeDataLabelsOverlapping===!0;t.set("alignLabels",l),t.labels.template.setAll({forceHidden:!r?.visible,breakWords:h?!1:void 0,textAlign:o?"right":"left"});let c=t.labels.template.get("radius"),u=t.labels.template.get("baseRadius");n&&u!==Bt(60)?t.labels.template.setAll({radius:void 0,baseRadius:Bt(60),textType:"regular"}):!n&&!h&&!l&&(t.labels.template.setAll({baseRadius:ge,textType:"adjusted"}),a!==void 0&&Number.isFinite(a)&&c!==a&&t.labels.template.set("radius",a))}var KC;function $G(s,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;s.ticks.template.setAll({visible:!i,crisp:!1});let r=e?.lineSymbol??ZA({color:Wb});i&&(r.width=0),So({element:s.ticks.template,lineSymbol:r,visible:!i})}function OG(s){let{series:t,pieSlicesSymbols:e,seriesConfig:i}=s;t.slices.each((r,a)=>{let n=r.dataItem?.dataContext,o=xw({dataContext:n,pieSlicesSymbols:e,seriesConfig:i});vu({root:t.root,element:r,fillSymbol:o,defaultToColorFromRamp:!0,colorRampIndex:a,isChartFillSymbol:!0})})}function EG(s,t){let e=new Map(s.map((i,r)=>[i.arcgis_charts_original_category_value,r]));return[...t].sort((i,r)=>(e.get(i.arcgis_charts_original_category_value)??1/0)-(e.get(r.arcgis_charts_original_category_value)??1/0))}function MG(s){let{series:t,data:e,seriesConfig:i,dataWasUpdated:r,sortChanged:a,seriesWereReinitialized:n,loaderHandle:o,labelUpdateNeeded:l,groupOfSlicesUpdateNeeded:h}=s,{x:c,y:u}=i,d=It([i]),A=d===Ee.PieFromFields?io:c;if(e&&(r===!0||n===!0||a===!0||h===!0))t.setAll({categoryField:A,valueField:d===Ee.PieFromFields?$u:u}),t.events.once(Ai.DataValidated,()=>{o.hideLoader()}),t.data.setAll(e.dataItems);else if(e&&l){let p=t.dataItems,m=p.map(g=>g.dataContext),f=EG(m,e.dataItems);p.forEach((g,y)=>{let x=f[y];typeof x[A]=="string"&&g.set("category",x[A])}),t.markDirty()}}function RG(s,t){let{innerRadius:e}=t;s.set("innerRadius",e?Bt(e):0)}function UG(s,t){let{startAngle:e,endAngle:i}=t;s.setAll({startAngle:e??q.pieChart.min,endAngle:i??360+(s.get("startAngle")??0)})}function VG(s){let{root:t,seriesConfig:e,options:i,chart:r,queryObject:a}=s,{id:n,name:o,x:l,y:h}=e,c=It([e]),u=Hr.new(t,{id:n,name:o,categoryField:c===Ee.PieFromFields?io:l,valueField:c===Ee.PieFromFields?$u:h});return LG(u,i?.dataLabelFormatter),zw(u,i?.tooltipFormatter),u.slices.template.states.create("hover",{scale:1,stateAnimationDuration:0}),us(u.slices.template,i?.selectionTheme),Do({element:u.slices.template,series:u,queryObject:a}),u.appear(),r instanceof Rs&&C$(r,u),u}function NG(s){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:a,data:n,options:o,loaderHandle:l,labelUpdateNeeded:h,utilsStrings:c,groupOfSlicesUpdateNeeded:u}=s,{dataLabelFormatter:d,tooltipFormatter:A}=o??{};t.set("id",e.id),Zi(t,e.visible),us(t.slices.template,o?.selectionTheme),MG({series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:a,data:n,loaderHandle:l,labelUpdateNeeded:h,groupOfSlicesUpdateNeeded:u}),oh(s)&&lh({styleCallback:OG,callbackProps:s,series:t,seriesConfig:e}),kG({pieSeries:t,seriesConfig:e,dataLabelFormatter:d}),RG(t,e),UG(t,e),$G(t,e),E4({series:t,seriesConfig:e,tooltipFormatter:A});let{chart:p}=t;p instanceof Rs&&C$(p,t)}function C$(s,t){if(!s.isDisposed()){let e=s.radius();Kr(s.uid,{pieChartRadius:e});let i=()=>{let r=Bt(fe(s.uid,"pieChartRadius")??q.pieChart.chartOptimizedRadius),a=r,n=s.series?.values?.[0]??t,o=fe(s.uid,"config");if(o!==void 0){let{series:l}=o,{innerRadius:h,optimizeDataLabelsOverlapping:c,alignDataLabels:u,dataLabelsOffset:d=q.pieChart.dataLabelsOffset,dataLabels:A,dataLabelsInside:p}=l[0];if(A?.visible===!0&&u===!0&&c===!0&&p!==!0){let m=q.pieChart.chartOptimizedRadius/100,f=500,g=150,y=.6,x=.5,w=1,S=s.seriesContainer.width()-d*2,D=Math.max(S-g,0)/(f-g),T=D<1?Math.max(D**w*y,.4):Math.min(D**x*y,m);a=Bt(T*100)}else a=Bt(q.pieChart.chartRadius);r.value.toFixed(1)!==a.value.toFixed(1)&&(Kr(s.uid,{pieChartRadius:a.percent}),KC&&clearTimeout(KC),KC=yu(()=>{let m=s.chartContainer.height();if(s.chartContainer.set("height",m+.1),s.set("radius",a),h&&!Number.isNaN(h)&&h>0){let f=(h??q.pieChart.innerRadius)*a.value;s.set("innerRadius",Bt(f))}s.markDirty(),n.markDirty(),s.root.resize(),HG(s)})),n instanceof Hr&&n.labels.template.setAll({maxWidth:QG({seriesConfig:o?.series[0],chart:s,newChartRadius:a})})}return a};s.events.onDebounced(Ai.BoundsChanged,()=>i(),q.debounceTime),i()}}function HG(s){yu(()=>{s.chartContainer.set("height",Bt(100)),s.root.resize()})}function QG(s){let{seriesConfig:t,chart:e,newChartRadius:i}=s,r=q.pieChart.dataLabels.maxWidth??100;if(t!=null){let{alignDataLabels:a,dataLabelsOffset:n=q.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:o,dataLabels:l,dataLabelsInside:h}=t;if(l?.visible===!0&&a===!0&&h!==!0&&o===!0){let c=e.seriesContainer.width(),u=e.seriesContainer.height(),d=i.value*Math.min(c,u),A=5,p=Math.floor((c-d)/2)-A-n;r=Math.min(p,r-A);let m=q.pieChartDataLabel.minWidth;r<m&&(r=m)}}return r}function jG(s){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:a,options:n,queryObject:o}=s,{id:l,name:h}=a,{xField:c,yField:u,xAxisField:d,yAxisField:A}=SA(e,a),p=gl.new(t,{id:l,name:h,xAxis:i,yAxis:r,[d]:c,[A]:u,curveFactory:nB({isRadarLineSeries:!0,isLineSmoothed:a.lineSmoothed,isRotated:e.rotated}),layer:q.zIndexes.bulletMarkers});p.appear();let m=Pt.new({});return hs(p.uid,{bulletTemplate:m}),us(m,n?.selectionTheme),p.bullets.push(f=>{let g=ft.new(f,{tooltip:BA({series:p,tooltipFormatter:n?.tooltipFormatter})},m);return Do({element:g,series:p,queryObject:o}),ma.new(f,{sprite:g})}),iB(p),TA(p,e),p}function WG(s){let{radarLineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:a,seriesWereReinitialized:n,stackedTypeChanged:o,timeZoneChanged:l,loaderHandle:h}=s,c=r.series[i];if(e!==void 0&&c?.type===V.RadarSeries&&(a||l||n||o)){let{xField:u,yField:d,xAxisField:A,yAxisField:p}=SA(r,c);t.setAll({[A]:u,[p]:d}),t.events.once(Ai.DataValidated,()=>{h.hideLoader()}),t.data.setAll(e.dataItems)}}function XG(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=s,{chart:h}=t;if(h!==void 0){let c=fe(h.uid,"config"),u=fe(h.uid,"isRotated")??!1,d=It(c?.series);x$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:u})}}function zG(s){let{series:t,data:e,seriesWereReinitialized:i,chartConfig:r,options:a,seriesIndex:n,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,fieldList:c,queryObject:u,loaderHandle:d,utilsStrings:A}=s,p=r.series[n];t.set("id",p.id),Zi(t,p.visible);let m=Rt(t.uid,"bulletTemplate");m&&us(m,a?.selectionTheme),xu(m,e?.dataItems?.length),eB({series:t,chartConfig:r,isRotated:!1}),Gw({series:t,seriesConfig:p,fieldList:c,queryObject:u,seriesIndex:n,tooltipFormatter:a?.tooltipFormatter,utilsStrings:A}),oh(s)&&lh({styleCallback:XG,callbackProps:s,series:t,seriesConfig:p}),tB({chartConfig:r,series:t,seriesIndex:n,queryObject:u}),WG({radarLineSeries:t,data:e,seriesIndex:n,chartConfig:r,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,seriesWereReinitialized:i,loaderHandle:d})}function oB(s){let{chart:t,chartConfig:e,options:i,utilsStrings:r,queryObject:a}=s,{rotated:n}=e,{root:o}=t,l=ze(e.series);t.series.clear();let h={root:o,chartConfig:e,options:i,chart:t,utilsStrings:r,queryObject:a},c=[];for(let u=0;u<e.series.length;u+=1){let d=e.series[u],{assignToSecondValueAxis:A,type:p}=d,m=t instanceof Ci?xz({chart:t,chartType:l,rotated:n,assignToSecondValueAxis:A}):void 0,{xAxis:f,xAxisForHistogramOverlaySeries:g,yAxis:y}=m??{};switch(!0){case p===V.HeatSeries:{ao(a),f&&y&&c.push(q4({...h,queryObject:a,xAxis:f,yAxis:y}));break}case l===V.BoxPlotSeries:{f&&y&&$l(e)&&c.push(...yG({...h,xAxis:f,yAxis:y,seriesIndex:u,seriesConfig:e.series[u],chartConfig:e}));break}case p===V.HistogramSeries:{f&&y&&c.push(...az({...h,seriesConfig:d,xAxis:f,xAxisForOverlaySeries:g,yAxis:y}));break}case p===V.PieSeries:{c.push(VG({...h,seriesConfig:d}));break}case(l===V.ComboLineAndBarSeries||l===V.BarSeries||l===V.LineSeries):{f&&y&&(p===V.BarSeries?c.push(j5({...h,seriesConfig:d,xAxis:f,yAxis:y})):p===V.LineSeries&&c.push(BG({...h,seriesConfig:d,xAxis:f,yAxis:y})));break}case p===V.RadarSeries:{f&&y&&c.push(jG({...h,seriesConfig:d,xAxis:f,yAxis:y}));break}case p===V.ScatterSeries:{f&&y&&c.push(...NX({...h,seriesConfig:d,xAxis:f,yAxis:y}));break}}}c.forEach(u=>{u instanceof ya&&u.setPrivate("doNotUpdateLegend",!0)}),t.series.pushAll(c)}function Zv(s){let{chart:t,chartConfig:e,options:i,data:r,seriesIndexMapper:a,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,rotationChanged:h,colorMatchChanged:c,stackedTypeChanged:u,seriesStyleChanged:d,timeZoneChanged:A,sizePolicyChanged:p,pieSlicesSymbols:m,queryObject:f,loaderHandle:g,utilsStrings:y,errorStrings:x,groupOfSlicesUpdateNeeded:w,labelUpdateNeeded:S}=s,{chartRenderer:D}=e,{root:T}=t,{series:L}=e,$=ze(e.series),I=It(e.series),R=t.series.values,F=Ol(e),H=e.series.length,K=new Map,z=ln(f,i?.usePopupTemplateFieldsInfo),ee=Ys(f),ie=Gs(ee)?void 0:Gm(D,ee.renderer),de=l||n||o||h||u,G={root:T,chartConfig:e,queryObject:f,options:i,colorMatch:F,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,fieldList:z,rendererType:ie,dataLabelFormatter:i?.dataLabelFormatter,utilsStrings:y,chartSubType:I,loaderHandle:g,autoInverseDataLabelTextColor:i?.autoInverseDataLabelTextColor??q.options.autoInverseDataLabelTextColor},Y={...G,numberOfSeries:H,rotationChanged:h,colorMatchChanged:c,stackedTypeChanged:u,seriesStyleChanged:d,seriesIndexMapper:a,seriesSymbolMapForEvent:K,timeZoneChanged:A};for(let xe=0;xe<L.length;xe++){let ae=L[xe],le=R[xe],Ie=ae.type;switch(!0){case $===V.HeatSeries:{le instanceof Li&&t instanceof Ci&&kl(e)&&iX({...Y,series:le,data:r,seriesConfig:e.series[xe],chartConfig:e});break}case $===V.BoxPlotSeries:{le=R.find(Ze=>Ze.get("id")===ae.id),t instanceof Ci&&$l(e)&&(le instanceof Ia||le instanceof qt)&&(Ie===V.BoxPlotSeries||Ie===V.LineSeries)&&vG({...Y,chart:t,series:le,data:r,seriesIndex:xe,seriesConfig:ae,chartConfig:e,showMean:Ca(e),showOutliers:Ro(e)});break}case Ie===V.HistogramSeries:{le instanceof Li&&t instanceof Ci&&fT(r)&&hz({...Y,series:le,allChartSeries:R,data:r,seriesIndex:xe,seriesConfig:ae,axes:e.axes});break}case Ie===V.PieSeries:{le instanceof Hr&&t instanceof Rs&&og(r)&&NG({...G,series:le,seriesConfig:ae,data:r,pieSlicesSymbols:m,groupOfSlicesUpdateNeeded:w,seriesStyleChanged:d,colorMatchChanged:c,labelUpdateNeeded:S});break}case($===V.ComboLineAndBarSeries||$===V.BarSeries||$===V.LineSeries):t instanceof Ci&&og(r)&&(Ie===V.BarSeries&&le instanceof Li?G5({...Y,series:le,data:r,seriesIndex:xe}):Ie===V.LineSeries&&le instanceof qt&&PG({...Y,series:le,seriesIndex:xe,seriesConfig:ae,data:r}));break;case Ie===V.ScatterSeries:{le=RX(t);let Ze=Xk(t);le instanceof qt&&Ze instanceof qt&&mT(r)&&WX({...Y,series:le,seriesConfig:ae,trendLineSeries:Ze,sizePolicyChanged:p,data:r});break}case Ie===V.RadarSeries:{le instanceof gl&&t instanceof La&&og(r)&&zG({...Y,series:le,data:r,seriesIndex:xe,seriesConfig:ae,chartConfig:e});break}}de&&$&&le&&G4({chartType:$,series:le,tooltipFormatter:i?.tooltipFormatter})}vz({chart:t,options:i,dataWasUpdated:n,data:r,chartConfig:e,queryObject:f,errorStrings:x})}function GG(s){nh(s)||s.dataItems.forEach(t=>{let e=t.bullets?.[0];if(e){let i=e.get("sprite"),r=_l(i.uid,"selected")!==!0;na({element:i,selected:r})}})}function YG(s){s.columns.each(t=>{let e=_l(t.uid,"selected")!==!0;na({element:t,selected:e})})}function KG(s){s.slices.each(t=>{let e=_l(t.uid,"selected")!==!0;na({element:t,selected:e})})}async function ZG(s,t){if(Nw(s)){let e=fe(s.uid,"actionMode");e!==Vt.MonoSelection&&e!==Vt.None&&(s.series.each(i=>{switch(!0){case i instanceof Li:YG(i);break;case i instanceof qt:GG(i);break;case i instanceof Hr:KG(i);break}}),await Jw({chart:s,selectionSource:Pr.ProgrammaticSelection,queryObject:t}))}}function qG(s,t){let e=!1,i=s.series,r=t.series,a=ze(r),n=(u,d)=>u.filter(A=>A.type===d).flatMap(A=>{let p=[];switch(d){case V.BarSeries:case V.HistogramSeries:p.push(A.fillSymbol);break;case V.LineSeries:case V.RadarSeries:p.push(A.lineSymbol,A.markerSymbol);break;case V.ScatterSeries:p.push(A.markerSymbol);break;case V.PieSeries:let m=A;p.push(m.fillSymbol),m.slices?.forEach(f=>{p.push(f.fillSymbol)}),m.sliceGrouping&&p.push(m.sliceGrouping.fillSymbol);break}return(A.type===V.BarSeries||A.type===V.LineSeries||A.type===V.RadarSeries)&&A.nullCategory?.symbol!==void 0&&p.push(A.nullCategory.symbol),p}),o,l;a===V.ComboLineAndBarSeries?(o=n(i,V.BarSeries).concat(n(i,V.LineSeries)),l=n(r,V.BarSeries).concat(n(r,V.LineSeries))):(o=n(i,i[0].type),l=n(r,r[0].type));let h=!Ll(o,l),c=!1;switch(a){case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:c=r.filter(u=>u.type===V.LineSeries||u.type===V.RadarSeries).some(u=>{let d=i.find(A=>A.id===u.id);return(u.showArea??q.lineSeries.showArea)!==(d?.showArea??q.lineSeries.showArea)||(u.lineSmoothed??q.lineSeries.lineSmoothed)!==(d?.lineSmoothed??q.lineSeries.lineSmoothed)||(u.markerVisible??q.lineSeries.markerVisible)!==(d?.markerVisible??q.lineSeries.markerVisible)||u.showArea&&!Ll(u.areaColor,d?.areaColor)});break}return e=h||c,e}function JG(s){let{chartSeries:t,oldSeries:e,newSeries:i}=s,r=vx(e,i);for(let a=0;a<r.length;a+=1){let n=r[a][0],o=r[a][1],l=t.length;n>=0&&n<l&&o>=0&&o<l&&t.swap(r[a][0],r[a][1])}}function eY(){W_(zW)}function tY(s){s.dispose()}function iY(s){let{chart:t,chartContainer:e,chartLocale:i}=s,{root:r}=t,{t9nLocale:a}=Du(e??document.documentElement),n=fd(e??document.documentElement);r.locale=i,Kr(t.uid,{locale:a,formatLocale:n,rtl:Om(e??document.documentElement)==="rtl"})}function fw(s){let{chart:t,actionMode:e,cursorRange:i}=s;if(Nw(t)){let r=e??fe(t.uid,"actionMode")??q.actionMode;Kr(t.uid,{actionMode:r}),r===Vt.None&&zc({chart:t,selectionSource:Pr.ClearSelection}),O5({chart:t,actionMode:r,cursorRange:i})}}function rY(s){return Pa.rootElements.find(t=>t.dom===s)?.dispose(),Bc.new(s)}function sY(s,t){s.container.children.clear();let e=ze(t?.series),i;switch(e){case V.RadarSeries:case V.GaugeSeries:i=La;break;case V.PieSeries:i=Rs;break;default:i=Ci;break}return s.container.children.push(i.new(s,{id:`${t?.id}`,layout:s.verticalLayout,paddingBottom:q.chartPadding,paddingTop:q.chartPadding,paddingRight:q.chartPadding,paddingLeft:q.chartPadding}))}function aY(s){let{chart:t,chartConfig:e,data:i,dataWasUpdated:r,sortChanged:a,slicesConfigChangedSinceLastUpdate:n,chartRendererChanged:o,colorMatchChanged:l,pieSlicesSymbols:h,options:c,queryObject:u,loaderHandle:d,utilsStrings:A,errorStrings:p,groupOfSlicesUpdateNeeded:m,seriesStyleChanged:f}=s;Zv({chart:t,chartConfig:e,options:c,data:i,dataWasUpdated:r,sortChanged:a,queryObject:u,pieSlicesSymbols:h,loaderHandle:d,utilsStrings:A,errorStrings:p,groupOfSlicesUpdateNeeded:m,seriesStyleChanged:f,colorMatchChanged:l,labelUpdateNeeded:r||n||o||l}),nn({data:h,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:PA(t)})}async function nY(s){let{chart:t,chartConfig:e,data:i,anyGuideAboveChanged:r,dataWasUpdated:a,dataUpdateDetails:n,seriesIndexMapper:o,seriesFilteredOut:l,sortChanged:h,options:c,queryObject:u,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesCompositionChanged:m,heatChartHideEmptyRowsAndColumnsChanged:f,seriesStyleChanged:g,timeZoneChanged:y,timeIntervalInfoWasReset:x,sizePolicyChanged:w,sizePolicyChangesRequireSeriesReinit:S,loaderHandle:D,utilsStrings:T,errorStrings:L,gaugeMinMaxFromData:$}=s,{axisLabelsBehaviorChanged:I}=s,R=kz({chart:t,chartConfig:e,rotationChanged:d,axisLabelsBehaviorChanged:I,timeIntervalInfoWasReset:x}),F=R||_z({currentChartSeriesCount:t.series.length,chartConfig:e,dataUpdateDetails:n,seriesFilteredOut:l,sizePolicyChangesRequireSeriesReinit:S,seriesCompositionChanged:m});R&&(l$({chart:t,chartConfig:e,errorStrings:L}),I=[!0,!0]),F&&(t.series.clear(),oB({chart:t,chartConfig:e,options:c,utilsStrings:T,queryObject:u}),t.gridContainer?.toBack?.()),h$({chart:t,chartConfig:e,queryObject:u,data:i,dataWasUpdated:a,axesInitializationNeeded:R,heatChartHideEmptyRowsAndColumnsChanged:f,sortChanged:h,timeIntervalInfo:i?.timeIntervalInfo??fe(t.uid,"timeIntervalInfo"),axisLabelsBehaviorChanged:I,anyGuideAboveChanged:r,xAxisLabelFormatter:c?.xAxisLabelFormatter,yAxisLabelFormatter:c?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:c?.secondaryYAxisLabelFormatter,guideTooltipFormatter:c?.guideTooltipFormatter,gaugeInnerLabelFormatter:c?.gaugeInnerLabelFormatter,utilsStrings:T,errorStrings:L,gaugeMinMaxFromData:$}),Zv({chart:t,chartConfig:e,options:c,data:i,dataWasUpdated:a,sortChanged:h,seriesIndexMapper:o,seriesWereReinitialized:F,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesStyleChanged:g,timeZoneChanged:y,sizePolicyChanged:w,queryObject:u,loaderHandle:D,utilsStrings:T,errorStrings:L}),ze(e.series)===V.HeatSeries&&Dk(t),g$({chart:t,scrollbarXConfig:e.axes?.[0]?.scrollbar,scrollbarYConfig:e.axes?.[1]?.scrollbar})}async function oY(s){let{chart:t,legend:e,loaderHandle:i,updateProps:r,gaugeMinMaxFromData:a}=s,{newChartConfig:n,updateOptions:o,dataWasUpdated:l,dataUpdateDetails:h,hasSeriesFilteredOut:c,pieSlicesSymbols:u,colorMatchApplied:d,rendererFieldNames:A,configWithAllSeries:p,t9nStrings:m,queryObject:f,dataInfo:g}=r,{data:y}=g,{utilsStrings:x,errorStrings:w}=m,{root:S}=t,{usePopupTemplateFieldsInfo:D}=o??{};if(n===void 0)throw new Error;let T=n,L=fe(t.uid,"config");if(t.isDisposed()||!lx(L,T))throw new Ln(cd.ChartDisposed);L??=T,Kr(t.uid,{queryObject:f});let $=It(T.series),I=ks(T);Kr(t.uid,{config:Tr(T),options:o,isNonAggregatedChart:!ep($),isRotated:I,filterBySelection:o?.filterBySelection,colorMatchApplied:d,rendererFieldNames:A});let R=ln(f,D),F=YF(L,T),H=yx(L,T),K=fx(L,T),z=VF(L,T),ee=qG(L,T),ie=JSON.stringify(ip(L.series))!==JSON.stringify(ip(T.series)),de=Jm(L,T),G=qF(L,T),Y=gx(L,T),xe=JF(L,T),ae=eT(L,T),le=ap({oldConfig:c?p:L,newConfig:T,dataWasUpdated:l}),Ie=!1,Ze=!1,We=!1,Je=!1;kl(L)&&kl(n)&&(Ie=jF(L,n),Ze=HF(L,n),We=NF(L,n)||QF(L,n)||Ie,Je=UF(L,n));let kt=jb({oldConfig:L,newConfig:T,rotationChanged:H}),pt=L.series,Ui=T.series;if(l){let{queryConfig:ye,count:Z}=g??{};Kr(t.uid,{fieldList:R,queryConfig:ye,elementCount:Z,timeIntervalInfo:y!==void 0&&"timeIntervalInfo"in y?y.timeIntervalInfo:void 0}),xh(S.dom)}t instanceof Ts&&JG({chartSeries:t.series,oldSeries:pt,newSeries:Ui});let Xi=t instanceof Rs?bw(pt,Ui):!1,U=mx({oldConfig:L,newConfig:T}),Be=new Map;switch(T.series.forEach((ye,Z)=>{Be.set(ye.id,Z)}),u$(t,T.background),p$(t,{title:T.title,subtitle:T.subtitle}),f$(t,T.footer),A$({root:S,chart:t,cursorCrosshair:T.cursorCrosshair,config:T,queryObject:f}),ze(T.series)){case V.PieSeries:{t instanceof Rs&&(ao(f),aY({chart:t,chartConfig:T,options:o,data:y,dataWasUpdated:l,slicesConfigChangedSinceLastUpdate:U,pieSlicesSymbols:u,chartRendererChanged:de,sortChanged:le,queryObject:f,loaderHandle:i,colorMatchChanged:K,utilsStrings:x,errorStrings:w,groupOfSlicesUpdateNeeded:Xi,seriesStyleChanged:ee}));break}case V.HeatSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.RadarSeries:case V.GaugeSeries:case V.HistogramSeries:case V.BoxPlotSeries:t instanceof Ci&&await nY({chart:t,chartConfig:T,options:o,data:y,dataWasUpdated:l,seriesIndexMapper:Be,dataUpdateDetails:h,seriesFilteredOut:c,heatChartHideEmptyRowsAndColumnsChanged:Je,sortChanged:le,axisLabelsBehaviorChanged:kt,anyGuideAboveChanged:F,rotationChanged:H,colorMatchChanged:K,stackedTypeChanged:z,seriesStyleChanged:ee,seriesCompositionChanged:ie,timeZoneChanged:G,timeIntervalInfoWasReset:Y,sizePolicyChanged:xe,sizePolicyChangesRequireSeriesReinit:ae,queryObject:f,loaderHandle:i,utilsStrings:x,errorStrings:w,gaugeMinMaxFromData:a});break}t instanceof Ts&&Wk({chart:t,chartConfig:T,legend:e,showEmptySeries:o?.showEmptySeries??o?.hideEmptySeries===!1,seriesConfig:T.series,heatChartLegendUpdatedNeeded:We,heatRulesTypeChanged:Ie,heatLegendPositionChanged:Ze,queryObject:f}),fw({chart:t,actionMode:o?.actionMode,cursorRange:o?.cursorRange})}function lY(s){let{chart:t,data:e,chartConfig:i,pieSlicesSymbols:r,options:a,queryObject:n,loaderHandle:o,utilsStrings:l,errorStrings:h}=s;oB({chart:t,chartConfig:i,options:a,utilsStrings:l,queryObject:n}),Zv({chart:t,chartConfig:i,options:a,data:e,dataWasUpdated:!0,pieSlicesSymbols:r,queryObject:n,loaderHandle:o,utilsStrings:l,errorStrings:h}),nn({data:r,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:PA(t)})}async function hY(s){let{chart:t,data:e,chartConfig:i,options:r,queryObject:a,loaderHandle:n,seriesIndexMapper:o,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:c}=s;m$(t),g$({chart:t,scrollbarXConfig:i.axes?.[0]?.scrollbar,scrollbarYConfig:i.axes?.[1]?.scrollbar}),l$({chart:t,chartConfig:i,errorStrings:h}),h$({chart:t,chartConfig:i,queryObject:a,axisLabelsBehaviorChanged:[!0,!0],data:e,dataWasUpdated:!0,timeIntervalInfo:e?.timeIntervalInfo,xAxisLabelFormatter:r?.xAxisLabelFormatter,yAxisLabelFormatter:r?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:r?.secondaryYAxisLabelFormatter,guideTooltipFormatter:r?.guideTooltipFormatter,gaugeInnerLabelFormatter:r?.gaugeInnerLabelFormatter,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:c}),oB({chart:t,chartConfig:i,options:r,utilsStrings:l,queryObject:a}),t.gridContainer?.toBack?.(),Zv({chart:t,chartConfig:i,seriesIndexMapper:o,options:r,data:e,dataWasUpdated:!0,timeZoneChanged:!0,queryObject:a,loaderHandle:n,utilsStrings:l,errorStrings:h}),ze(i.series)===V.HeatSeries&&Dk(t)}async function uY(s){let{chartContainer:t,chartConfig:e,options:i,colorMatchApplied:r,rendererFieldNames:a,pieSlicesSymbols:n,globalOptions:o,t9nStrings:l,queryObject:h,dataInfo:c,loaderHandle:u}=s,{errorStrings:d,utilsStrings:A,amChartsStrings:p}=l,{data:m,queryConfig:f,count:g,gaugeMinMaxFromData:y={}}=c??{};eY();let x=e,w=rY(t);e4(w,o?.enableResponsiveFeatures);let S=sY(w,x);iY({chart:S,chartContainer:t,chartLocale:p});let D;if(t4(w,o?.useAnimatedCharts),!S.isDisposed()){let L=It(x.series),$=ks(x);Kr(S.uid,{options:i,filterBySelection:i?.filterBySelection,config:x,queryObject:h,isNonAggregatedChart:!ep(L),isRotated:$,colorMatchApplied:r,rendererFieldNames:a}),d$({root:w,chart:S,config:x,queryObject:h}),A$({root:w,chart:S,cursorCrosshair:x.cursorCrosshair,config:x,queryObject:h});let{title:I,subtitle:R,footer:F}=x;M5(w,S),p$(S,{title:I,subtitle:R}),R5(S),f$(S,F),I5(w,S),u$(S,x.background);let H=ln(h,i?.usePopupTemplateFieldsInfo);Kr(S.uid,{fieldList:H}),Kr(S.uid,{options:i,queryConfig:f,elementCount:g,timeIntervalInfo:m!==void 0&&"timeIntervalInfo"in m?m.timeIntervalInfo:void 0});let K=new Map;x.series.forEach((z,ee)=>{K.set(z.id,ee)}),Kr(S.uid,{queryConfig:f,elementCount:g}),S instanceof Ci?await hY({chart:S,data:m,chartConfig:x,options:i,queryObject:h,loaderHandle:u,utilsStrings:A,errorStrings:d,gaugeMinMaxFromData:y}):S instanceof Rs&&m&&"dataItems"in m&&(ao(h),lY({chart:S,data:m,chartConfig:x,pieSlicesSymbols:n,options:i,queryObject:h,loaderHandle:u,utilsStrings:A,errorStrings:d})),S instanceof Ts&&(D=gL(S,x),Wk({chart:S,chartConfig:x,legend:D,showEmptySeries:i?.showEmptySeries??i?.hideEmptySeries===!1,seriesConfig:x.series,queryObject:h})),fw({chart:S,actionMode:i?.actionMode,cursorRange:i?.cursorRange}),zX(S),xh(w.dom)}function T(){zz(S)}return{update:async L=>{D===void 0&&(D=gL(S,L.newChartConfig)),await oY({chart:S,legend:D,loaderHandle:u,updateProps:L,gaugeMinMaxFromData:y})},dispose:()=>tY(w),resetZoom:T,clearSelection:()=>zc({chart:S}),switchSelection:async()=>await ZG(S,h),exportImage:async L=>await b4({root:w,exportOptions:L}),setActionMode:(L,$)=>fw({chart:S,actionMode:L,cursorRange:$}),loaderHandle:u}}function $L(s){let t="";for(let e=0;e<s.length;e+=1){let i=s[e];t+=`<li>${i.message}</li>`}return`<ol>${t}</ol>`}function cY(s){let{chartConfig:t,createMessage:e,status:i,errorStrings:r}=s,{schemaErrors:a,customErrors:n,warnings:o}=i,l="",h="";return t===void 0?(h=e===void 0?r.modalHeaders.newChart:"",l=e??r.errors.newChartRequest):a.length>0?(h=r.modalHeaders.error,l=r.errors.simpleError):n.length>0?(h=r.modalHeaders.error,l=$L(n)):o.length>0&&(h=r.modalHeaders.warning,l=`<p>${r.errors.warningRequest}</p>${$L(o)}`),{title:h,message:l}}function dY(s,t){let e;switch(s){case V.PieSeries:e=t?.placeholders.pieChartCreateMsg;break;case V.BarSeries:e=t?.placeholders.barChartCreateMsg;break;case V.BoxPlotSeries:e=t?.placeholders.boxPlotCreateMsg;break;case V.LineSeries:e=t?.placeholders.lineChartCreateMsg;break;case V.HistogramSeries:e=t?.placeholders.histogramCreateMsg;break;case V.ScatterSeries:e=t?.placeholders.scatterplotCreateMsg;break;case V.HeatSeries:e=t?.placeholders.calendarHeatChartCreateMsg;break;case V.ComboLineAndBarSeries:e=t?.placeholders.comboBarLineChartCreateMsg;break;case V.RadarSeries:e=t?.placeholders.radarChartCreateMsg;break;case V.GaugeSeries:e=t?.placeholders.gaugeCreateMsg;break}return e}function gv(s){let t;if(s){let e=ik(s);e&&(t=[e.r,e.g,e.b,255])}return t}function mw(s){return hF(s)==="dark"}function w$(s){let t=window.getComputedStyle(s);return{backgroundColor:gv(t.getPropertyValue("--calcite-color-foreground-1")),textColor:gv(t.getPropertyValue("--calcite-color-text-1")),lineColor:gv(t.getPropertyValue("--calcite-color-border-1")),secondLineColor:gv(t.getPropertyValue("--calcite-color-text-3"))}}function AY(s,t){s?.axes?.forEach(e=>{e?.title?.content&&t.textColor&&(e.title.content.color=t.textColor),e?.labels?.content&&t.textColor&&(e.labels.content.color=t.textColor),e?.grid&&t.lineColor&&(e.grid.color=t.lineColor),e?.lineSymbol&&t.lineColor&&(e.lineSymbol.color=t.lineColor),e?.guides?.forEach(i=>{i.label&&t.textColor&&(i.label.color=t.textColor),t.lineColor&&(i.style?.type===Dt.SLS?i.style.color=t.lineColor:i.style?.type===Dt.SFS&&i.style?.outline&&(i.style.outline.color=t.lineColor))})})}function pY(s,t){s&&t.backgroundColor&&(s.background=t.backgroundColor)}function fY(s,t){s?.title?.content&&t.textColor&&(s.title.content.color=t.textColor),s?.subtitle?.content&&t.textColor&&(s.subtitle.content.color=t.textColor),s?.footer?.content&&t.textColor&&(s.footer.content.color=t.textColor)}function $f(s,t){t?.created&&t?.visible&&(t.symbol={type:Dt.SLS,...t.symbol,color:s})}function OL(s){let{configElementWithFillSymbol:t,markerColor:e,lineColor:i}=s;t.markerSymbol={type:Dt.SMS,...t.markerSymbol,color:e},t.markerSymbol.outline={type:Dt.SLS,...t.markerSymbol.outline,color:i}}function yv(s){let{configElementWithFillSymbol:t,fillColor:e,lineColor:i}=s;t.fillSymbol={type:Dt.SFS,...t.fillSymbol,color:e},i&&(t.fillSymbol.outline={type:Dt.SLS,...t.fillSymbol.outline,color:i})}function B$(s,t){s&&(s.colorMatch=!1,s.series.forEach((e,i)=>{e.dataLabels?.content&&t.textColor&&(e.dataLabels.content.color=t.textColor);let r=KA[i%KA.length];switch(e.type){case V.BarSeries:yv({configElementWithFillSymbol:e,fillColor:r,lineColor:t.lineColor});break;case V.HistogramSeries:yv({configElementWithFillSymbol:e,fillColor:r,lineColor:t.lineColor}),$f(ud[0],e.overlays?.standardDeviation),$f(ud[1],e.overlays?.mean),$f(ud[2],e.overlays?.median),$f(ud[3],e.overlays?.comparisonDistribution);break;case V.LineSeries:case V.RadarSeries:e.lineSymbol={type:Dt.SLS,...e.lineSymbol,color:r},OL({configElementWithFillSymbol:e,markerColor:r,lineColor:t.lineColor}),e.areaColor=[r[0],r[1],r[2],255*re.lineSeries.areaOpacity];break;case V.BoxPlotSeries:yv({configElementWithFillSymbol:e,fillColor:r,lineColor:t.lineColor});break;case V.PieSeries:e.slices?.forEach((a,n)=>{yv({configElementWithFillSymbol:a,fillColor:KA[n%KA.length],lineColor:t.lineColor})});break;case V.ScatterSeries:OL({configElementWithFillSymbol:e,markerColor:r,lineColor:t.lineColor}),$f(ud[1],e.overlays?.trendLine);break;case V.HeatSeries:case V.GaugeSeries:}}))}function mY(s,t){if(s?.series[0].type===V.PieSeries){let e=s.series[0];e.ticks?.lineSymbol&&t.secondLineColor&&(e.ticks.lineSymbol.color=t.secondLineColor)}}function gY(s,t){s?.legend&&(s.legend.title?.content&&t.textColor&&(s.legend.title.content.color=t.textColor),s.legend.body&&t.textColor&&(s.legend.body.color=t.textColor))}function yY(s,t){s?.series[0].type===V.GaugeSeries&&s.axes?.forEach(e=>{e.innerLabel?.content&&t.textColor&&(e.innerLabel.content.color=t.textColor),e.needle?.symbol&&t.textColor&&(e.needle.symbol.color=t.textColor)})}function vY(s,t){s?.series[0].type===V.HeatSeries&&s.series.forEach(e=>{e.gridLine&&t.textColor&&(e.gridLine.color=t.textColor)})}function bY(s){let{chartElement:t,options:e,calciteThemeApplied:i}=s,r=e;return i==="dark"&&(r.selectionTheme={...ht.selectionTheme,selectedElementsTheme:{...ht.selectionTheme.selectedElementsTheme,elementOutlineColor:[55,255,255,255]}},r.chartWillRender=async a=>{let{chartConfig:n,slices:o}=a,l=Tr(n);if(t.chartWillRender&&(l=await t.chartWillRender(a)),l.series[0].type===V.PieSeries&&!l.series[0].slices){let h=w$(t);l.series[0].slices=o,B$(l,h)}return l}),r}function xY(s,t){let e=Tr(t);if(e&&mw(s)){let i=w$(s);pY(e,i),fY(e,i),AY(e,i),B$(e,i),gY(e,i),yY(e,i),mY(e,i),vY(e,i)}return e}function _Y(){return!0}function EL(s){let{layer:t}=s,e,i=Ys(t),r=Ym(i);return r!==void 0&&"definitionExpression"in r&&s.layerFilterChangePolicy===hg.Refresh&&(e=ka.watch(()=>r.definitionExpression,()=>{s.refresh({updateData:!0,resetAxesBounds:!0})})),e}function ML(s){let{layer:t,model:e}=s,i=Ho(e)?e.config:e,r;if(t!==void 0&&s.layerRendererChangePolicy===ug.Refresh){let a=Ys(t);r=ka.watch(()=>a.renderer,()=>{if(Ol(i)){let n=_Y();s.refresh({updateData:n})}})}return r}async function CY(s){let{view:t,layer:e,model:i,filterByExtent:r}=s,a=Ho(i)?i.config:i,n;if(t!==void 0&&a!==void 0){let o=await Ax({chartConfig:a,view:t,layer:e,filterByExtent:r}),l;if(dd(o)?l=o:Gs(o)&&(l=await t.whenLayerView(o)),l){await ka.whenOnce(()=>!l.updating);let h=async()=>{s.filterByExtent&&t.stationary&&(l.updating&&await ka.whenOnce(()=>!l.updating),await s.refresh({updateData:!0,resetAxesBounds:!0}))};n=[],dd(l)?(n.push(ka.when(()=>t.stationary,h)),n.push(ka.when(()=>!l.dataUpdating,h))):n.push(ka.when(()=>t.stationary,h)),await h()}}return n}function wY(s){let{view:t,model:e}=s,i=Ho(e)?e.config:e,r=ze(i?.series),a;return t!==void 0&&s.viewTimeExtentChangePolicy===lp.Refresh&&r!==V.HistogramSeries&&(a=ka.watch(()=>t.timeExtent,()=>{s.refresh({updateData:!0})})),a}function BY(s){let{view:t}=s,e;return t&&"timeZone"in t&&(e=ka.watch(()=>t.timeZone,()=>{let{model:i}=s,r=Ho(i)?i.config:i;kl(r)&&s.refresh({updateData:!0})})),e}function RL(s){let{layer:t}=s,e,i=Ys(t),r=Ym(i);return r!==void 0&&"fields"in r&&s.layerFieldsChangePolicy===cg.Refresh&&(e=ka.watch(()=>[r.fields],()=>{s.refresh({updateData:!0})})),e}function S$(s,t){return ka.watch(()=>t.selections,e=>{(s.syncViewSelection||s.syncSelectionsBetweenChartAndLayerViewPolicy===hp.Enabled)&&(Array.isArray(e)&&e?.length===0?s.clearSelection():s.applySelectionFromSelectionManager())})}function SY(s){let{view:t}=s,e;return t?.selectionManager&&(e=S$(s,t.selectionManager)),e}function FY(s){let{selectionManager:t}=s,e;return t&&(e=S$(s,t)),e}var TY=({message:s,heading:t,options:e})=>nd`<calcite-alert .icon=${e?.icon??"exclamationMarkTriangle"} .open=${e?.active===!0} .autoClose=${e?.autoClose??!1} .autoCloseDuration=${e?.duration??"medium"} scale=m .kind=${e?.kind??"danger"} .ariaHidden=${e?.active!==!0} dir=ltr role=alertdialog label="arcgis charts notify panel">${t!==void 0?nd`<div slot=title>${t}</div>`:null}${s!==void 0?nd`<div slot=message>${s}</div>`:null}</calcite-alert>`,PY=eF`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.chart{flex-grow:1;overflow-y:hidden}.chart>div{justify-content:center;align-items:center}:host{width:var(--chart-width, var(--arcgis-charts-default-width));height:var(--chart-height, var(--arcgis-charts-default-height));display:flex;flex-direction:row;position:relative;overflow:hidden}.chart-wrapper{position:relative;width:100%}.chart-container{height:100%;overflow:hidden}`;async function DY(s){let t=oF(`assets/common/t9n/messages.${s}.json`),e=await fetch(t);if(!e.ok)throw new Error(`Failed to load t9n file: ${t}`);return await e.json()}async function LY(s=Du(document.documentElement).t9nLocale){let t=(await import("./H6G4K2SI.js")).default;switch(s){case"ar":t=(await import("./C32DLPO2.js")).default;break;case"bs":t=(await import("./ZGRLFOVN.js")).default;break;case"bg":t=(await import("./2MVU33EQ.js")).default;break;case"ca":t=(await import("./K7M5S6GY.js")).default;break;case"cs":t=(await import("./W5WI6CWC.js")).default;break;case"da":t=(await import("./A2SOXYD7.js")).default;break;case"de":t=(await import("./5WSLX3X6.js")).default;break;case"el":t=(await import("./INFEECC2.js")).default;break;case"es":t=(await import("./ANEY3G3T.js")).default;break;case"et":t=(await import("./UJ7GGLFA.js")).default;break;case"fi":t=(await import("./577EV2JF.js")).default;break;case"fr":t=(await import("./U7L3L6IV.js")).default;break;case"he":t=(await import("./XTWWNXCJ.js")).default;break;case"hr":t=(await import("./RRDNOR24.js")).default;break;case"hu":t=(await import("./SWQ7K4X5.js")).default;break;case"id":t=(await import("./FW27X6ZH.js")).default;break;case"it":t=(await import("./AGJRXDBI.js")).default;break;case"ja":t=(await import("./OLBJGP5C.js")).default;break;case"ko":t=(await import("./43SJZXD3.js")).default;break;case"lt":t=(await import("./PI6HSSQL.js")).default;break;case"lv":t=(await import("./VHOYFIGY.js")).default;break;case"no":t=(await import("./X5TUHBXH.js")).default;break;case"nl":t=(await import("./KSNCOD3U.js")).default;break;case"pl":t=(await import("./BHNYXBUZ.js")).default;break;case"pt-BR":t=(await import("./4VMTBYLY.js")).default;break;case"pt-PT":t=(await import("./2JPFAFHJ.js")).default;break;case"ro":t=(await import("./WQRZ7LGV.js")).default;break;case"ru":t=(await import("./RKXV44WI.js")).default;break;case"sr":t=(await import("./B3HEXSCX.js")).default;break;case"sk":t=(await import("./DF2JGSK4.js")).default;break;case"sv":t=(await import("./NXRLNLM4.js")).default;break;case"th":t=(await import("./WMSU5OWP.js")).default;break;case"tr":t=(await import("./MIVV22F3.js")).default;break;case"uk":t=(await import("./GBCL3LR7.js")).default;break;case"vi":t=(await import("./YZTAP3PR.js")).default;break;case"zh-CN":t=(await import("./PF6HSS3J.js")).default;break;case"zh-HK":t=(await import("./Z5L2GNFQ.js")).default;break;case"zh-TW":t=(await import("./Z5L2GNFQ.js")).default;break}return t}async function IY(s=Du(document.documentElement).t9nLocale){let t=(await import("./I3BNBZ4D.js")).default;switch(s){case"ar":t=(await import("./6HUDF5Q2.js")).default;break;case"bs":t=(await import("./LOX7MXL4.js")).default;break;case"bg":t=(await import("./WRNEDEFZ.js")).default;break;case"ca":t=(await import("./FSNQ3YXX.js")).default;break;case"cs":t=(await import("./MS6EYP4R.js")).default;break;case"da":t=(await import("./HLSO5KDC.js")).default;break;case"de":t=(await import("./NGLXQHZ2.js")).default;break;case"el":t=(await import("./DNSUOJXJ.js")).default;break;case"es":t=(await import("./ZL5EGDOW.js")).default;break;case"et":t=(await import("./BUCYRXMT.js")).default;break;case"fi":t=(await import("./GWPFABGL.js")).default;break;case"fr":t=(await import("./JM6E3U5J.js")).default;break;case"he":t=(await import("./3VMIFF7C.js")).default;break;case"hr":t=(await import("./THJTENN5.js")).default;break;case"hu":t=(await import("./5TOYNVTW.js")).default;break;case"id":t=(await import("./B4ULOSFG.js")).default;break;case"it":t=(await import("./TX2SYGTH.js")).default;break;case"ja":t=(await import("./AVU2CHAB.js")).default;break;case"ko":t=(await import("./FLSUJTUZ.js")).default;break;case"lt":t=(await import("./EIIQ2CSC.js")).default;break;case"lv":t=(await import("./BY77PBZ2.js")).default;break;case"no":t=(await import("./F57IRWBF.js")).default;break;case"nl":t=(await import("./NPVXLEZW.js")).default;break;case"pl":t=(await import("./COQ55XOW.js")).default;break;case"pt-BR":t=(await import("./GR4BZF3L.js")).default;break;case"pt-PT":t=(await import("./NSRIVIOH.js")).default;break;case"ro":t=(await import("./47EOUNYO.js")).default;break;case"ru":t=(await import("./HJW6UNEH.js")).default;break;case"sr":t=(await import("./G2L5FYWK.js")).default;break;case"sk":t=(await import("./X7ENJ4HH.js")).default;break;case"sl":t=(await import("./S5EI7T2D.js")).default;break;case"sv":t=(await import("./RHGKKMJG.js")).default;break;case"th":t=(await import("./3OGKV4KZ.js")).default;break;case"tr":t=(await import("./KCILWIMQ.js")).default;break;case"uk":t=(await import("./EVHJVY4I.js")).default;break;case"vi":t=(await import("./ALRIN5E5.js")).default;break;case"zh-CN":t=(await import("./SOIF6AMX.js")).default;break;case"zh-HK":t=(await import("./YQJLA77R.js")).default;break;case"zh-TW":t=(await import("./YQJLA77R.js")).default;break}return t}async function kY(s=Du(document.documentElement).t9nLocale,t){let e=t?await IY(s):await LY(s),i=(await DY(s)).customAmchartsStrings;return{...e,...i}}var gw=class extends sF{constructor(){super(),this.loaderHandle={showLoader:()=>{this.showLoader=!this.hideLoaderAnimation},hideLoader:()=>{this.showLoader=!1}},this._messages=Dx(),this.chartRef=rF(),this.guid=OT(),this.commonStrings=Dx({name:"common",blocking:!0}),this.dataUpdateNeededProps=["forceDataUpdate","runtimeDataFilters","returnFeaturesExtent","chartLimits","updateSplitBySeries"],this.updatedProps=new Map,this.updateQueue=IN.promise(async()=>await this.renderChart(),xF),this._disableInteractions=!1,this._rotation=!1,this._legendVisibility=!1,this._filterByExtent=!1,this.noRenderingUpdateProps=["_messages","showLoader","infoModalMessage","notifyMessage"],this.handleExternalSelection=t=>{if(!Gs(this.layer)){let e=t,{selectionData:i,model:r}=e.detail,a=this.layer&&r?.layer?.id===Ru(this.layer).id;this.syncSelection&&a&&t.target!==this.el&&!Ll(i.selectionOIDs,this.selectionData?.selectionOIDs)&&(i.selectionOIDs?(this.selectionData={selectionOIDs:i.selectionOIDs,selectionSource:Pr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model})):this.clearSelection())}},this.configPanelNumberChange=t=>{let e=t,{panelNumber:i,modelList:r}=e.detail;this.actionBarElement&&this.enableConfiguration&&this.ourModelExistsIn(r)&&(this.actionBarElement.editChartToggle=i===1?Ox.Active:Ox.Inactive)},this.configDataChangeError=t=>{let e=t,{error:i,model:r}=e.detail;this.enableConfiguration&&r?.isSameChartAs(this._model)&&this.notify(i.message)},this.modelConfigChange=t=>{let e=t;this.lastModelSetterCalled=e.detail.setterName;let i=this._model?.config;i?.iLayer&&!Ll(this.config?.iLayer,i?.iLayer)&&(this.layer=new QC(i.iLayer)),JSON.stringify(this.config)!==JSON.stringify(i)&&(this.config=Tr(i))},this.modelDataChange=()=>{this.setTimeBinningInfoWhenNotProvided&&xT(this._model)&&this._model?.resetTimeInterval()},this.actionBarSlotRef=t=>{this.actionBarElement=t&&"assignedElements"in t?t.assignedElements().find(e=>e.tagName.toLowerCase()==="arcgis-charts-action-bar"):void 0},this.checkForInvalidContainer=()=>{this.chartRef.value||Rm("divNode",this.commonStrings?.errorStrings)},this._loadQueryObject=new up(this,{args:()=>[this.config,this.layer,this.view,this.filterByExtent],task:async([t,e,i,r],{signal:a})=>{let n=await Ax({chartConfig:t,layer:e,view:i,filterByExtent:r,abortSignal:a});return await Ys(n)?.load({signal:a}),n}}),this.showLoader=!1,this.enableBetaFeatures=!1,this.enableConfiguration=!1,this.enableAutoTheming=!1,this.syncSelection=!1,this.allowUsingObjectIdStat=!1,this.nullAsValid=!1,this.hideUIMessages=!1,this.showEmptySeries=!1,this.autoInverseDataLabelTextColor=!1,this.hideZeroCountCategories=!1,this.ignoreSmoothRenderingLimit=!1,this.returnSelectionIndexes=!1,this.returnFeaturesExtent=!1,this.filterBySelection=!1,this.skipChartCreationQueue=!1,this.useAnimatedCharts=!1,this.showLicenseWatermark=!1,this.enableResponsiveFeatures=!1,this.autoDisposeChart=!1,this.setTimeBinningInfoWhenNotProvided=!1,this.errorPolicy=lg.Throw,this.disableTogglingLegendItems=!1,this.hideLoaderAnimation=!1,this.usePopupTemplateFieldsInfo=!1,this.layerFilterChangePolicy=hg.Refresh,this.viewTimeExtentChangePolicy=lp.Ignore,this.layerRendererChangePolicy=ug.Refresh,this.layerFieldsChangePolicy=cg.Refresh,this.syncSelectionsBetweenChartAndLayerViewPolicy=hp.Disabled,this.syncViewSelection=!1,this.ignoreViewExtent=!1,this.autoDestroyDisabled=!1,this.arcgisAxesMinMaxChange=Xs(),this.arcgisBadDataWarningRaise=Xs(),this.arcgisChartNotFoundWarning=Xs(),this.arcgisConfigChange=Xs(),this.arcgisDataFetchComplete=Xs(),this.arcgisDataProcessComplete=Xs(),this.arcgisDataProcessError=Xs(),this.arcgisInvalidConfigWarningRaise=Xs(),this.arcgisLegendItemVisibilityChange=Xs(),this.arcgisNoRenderPropChange=Xs(),this.arcgisRenderingComplete=Xs(),this.arcgisRuntimeError=Xs(),this.arcgisSelectionComplete=Xs(),this.arcgisSeriesColorChange=Xs(),this.arcgisSeriesOrder=Xs(),this.arcgisUpdateComplete=Xs(),this.listen("arcgisChartsJSLegendItemVisibilityChange",this.handleLegendItemVisibilityChanged),this.listen("arcgisChartsJSInvalidConfigWarningRaise",this.handleInvalidConfigWarningRaise),this.listen("arcgisChartsJSSeriesColorChange",this.handleSeriesColorsChange),this.listen("arcgisChartsJSSelectionComplete",this.handleSelection),this.listen("arcgisChartsJSTooManySelectedElements",this.handleTooManySelectedElements),this.listen("calciteAlertClose",this.handleAlertClosed),this.listen("arcgisChartsJSAxesMinMaxChange",this.handleAxesMinMaxChange),this.listen("arcgisChartsJSSeriesOrder",this.handleSeriesOrder),this.listen("arcgisChartsJSRenderingComplete",this.handleRenderingComplete),this.addConfigListeners(),this.listenOn(document,"arcgisSelectionComplete",this.handleExternalSelection)}static{this.properties={infoModalMessage:16,notifyMessage:16,showLoader:16,config:16,enableBetaFeatures:5,model:0,enableConfiguration:5,enableAutoTheming:5,syncSelection:5,rotation:[5,{hasChanged:()=>!1}],actionMode:1,cursorRange:1,legendPosition:[1,{hasChanged:()=>!1}],legendVisibility:[5,{hasChanged:()=>!1}],allowUsingObjectIdStat:5,nullAsValid:5,showUIMessages:5,hideUIMessages:5,hideEmptySeries:5,showEmptySeries:5,autoInverseDataLabelTextColor:5,replaceNoValueCategoryWithZero:5,hideZeroCountCategories:5,ignoreSmoothRenderingLimit:5,chartWillRender:0,legendValueLabelFormatter:0,timeZone:1,view:[0,{hasChanged:()=>!1}],layer:0,layerItemId:1,chartIndex:9,selectionData:0,returnSelectionOIDs:5,returnSelectionIndexes:5,returnFeaturesExtent:5,filterBySelection:5,filterByExtent:[5,{hasChanged:()=>!1}],disableInteractions:[5,{hasChanged:()=>!1}],queueChartCreation:5,skipChartCreationQueue:5,useAnimatedCharts:5,hideLicenseWatermark:5,showLicenseWatermark:5,enableResponsiveFeatures:5,autoDisposeChart:5,featureIndex:[9,{hasChanged:()=>!1}],placeholder:1,selectionTheme:0,setTimeBinningInfoWhenNotProvided:5,chartLimits:0,aria:[0,{hasChanged:()=>!1}],tooltipFormatter:0,dataLabelFormatter:0,guideTooltipFormatter:0,xAxisLabelFormatter:0,yAxisLabelFormatter:0,secondaryYAxisLabelFormatter:0,gaugeInnerLabelFormatter:0,errorPolicy:1,disableTogglingLegendItems:5,hideLoaderAnimation:5,loaderColors:0,runtimeDataFilters:0,usePopupTemplateFieldsInfo:5,layerFilterChangePolicy:1,viewTimeExtentChangePolicy:1,layerRendererChangePolicy:1,layerFieldsChangePolicy:1,syncSelectionsBetweenChartAndLayerViewPolicy:1,syncViewSelection:5,ignoreViewExtent:5,updateSplitBySeries:0,messageOverrides:0,autoDestroyDisabled:5,selectionManager:0}}static{this.styles=PY}get config(){return this._config}set config(t){let e=this._config;this._config=t,e&&t&&MF(e,t)&&this.updatedProps.set("forceDataUpdate",{oldValue:!1,newValue:!0}),this.arcgisConfigChange.emit({newConfig:t,oldConfig:e,functionCalled:this.lastModelSetterCalled}),this.lastModelSetterCalled=void 0,this.actionBarElement&&!Uu(t)&&(this.actionBarElement.forceDisableActions=!1)}get rotation(){return this._rotation}set rotation(t){this.rotationChange(t),this.handleNoRenderPropChange("rotation",t),this._rotation=t}get legendPosition(){return this._legendPosition}set legendPosition(t){this.legendPositionChange(t),this.handleNoRenderPropChange("legendPosition",t),this._legendPosition=t}get legendVisibility(){return this._legendVisibility}set legendVisibility(t){this.legendVisibilityChange(t),this.handleNoRenderPropChange("legendVisibility",t),this._legendVisibility=t}get view(){return this._view}set view(t){let e=this._view;this._view=t,this.viewChange(t,e),this.handleNoRenderPropChange("view",t)}get filterByExtent(){return this._filterByExtent}set filterByExtent(t){this._filterByExtent=t,this.filterByExtentChanged(t),this.handleNoRenderPropChange("filterByExtent",t)}get disableInteractions(){return this._disableInteractions}set disableInteractions(t){this.disableInteractionsChange(t),this.handleNoRenderPropChange("disableInteractions",t),this._disableInteractions=t}get featureIndex(){return this._featureIndex}set featureIndex(t){let e=this.featureIndex;this.featureIndexChange(t,e),this.handleNoRenderPropChange("featureIndex",t),this._featureIndex=t}get aria(){return this._aria??{}}set aria(t){this._aria=t,this.chartRef.value&&(this.chartRef.value.ariaLabel=t.label??this.chartRef.value.ariaLabel,this.chartRef.value.ariaDescription=t.description??this.chartRef.value.ariaDescription,this.chartRef.value.ariaLabelledByElements=t.labelledByElements??this.chartRef.value.ariaLabelledByElements,this.chartRef.value.ariaDescribedByElements=t.describedByElements??this.chartRef.value.ariaDescribedByElements),this.handleNoRenderPropChange("aria",t)}async clearSelection(){this.chart!==void 0&&(this.unsanitizedSelectionDataItems=void 0,this.chart.clearSelection(),this.filterBySelection&&await this.refresh())}async destroy(){this.chart?.dispose()}async exportAsCSV(t){let e=SF(this.config)||Gs(this.layer),i,r;if(this.sanitizedChartData&&!e){let a=await this._loadQueryObject.taskComplete,n=a?ln(a,this.usePopupTemplateFieldsInfo):void 0,o=Ho(this.model)?this.model.titleText:this.config?.title?.content?.text??this.commonStrings.utilsStrings.chartType.chart;if(Object.values(this.sanitizedChartData).filter(l=>Array.isArray(l)&&l.length>0).length>1){let l=new VL.default;Object.entries(this.sanitizedChartData).forEach(([c,u])=>{if(Array.isArray(u)&&u.length>0){let d=Rx({rawData:u,config:this._model?.config??this.config,layer:a,fieldList:n}),A=Mx(d,t),p=`${o}-${c}.csv`;l.file(p,A)}});let h=await l.generateAsync({type:"blob"});i=URL.createObjectURL(h),r=`${o}.zip`}else{let l;if("bins"in this.sanitizedChartData?l=this.sanitizedChartData.bins:"dataItems"in this.sanitizedChartData&&(l=this.sanitizedChartData.dataItems),l){let h=Rx({rawData:l,config:this._model?.config??this.config,layer:a,fieldList:n}),c=Mx(h,t);i=URL.createObjectURL(new Blob([c],{type:"text/csv;charset=utf-8;"})),r=`${o}.csv`}}i!==void 0&&r!==void 0&&Ex(i,r)}}async exportAsImage(t=_F.PNG){let e=this.chartRef.value;e?(await(0,UL.default)(e,{useCORS:!0,backgroundColor:null})).toBlob(i=>{if(i){let r=URL.createObjectURL(i),a=`${this.model.titleText??this.commonStrings.utilsStrings.chartType.chart}.${t}`;Ex(r,a)}},t):this.notify(this.commonStrings?.errorStrings.errors.exportImageChartNotReady)}async loadModel(){return this._model?await this._model.asyncUpdatesPromise:await new Promise(t=>{this.resolveModelSetup=t})}async notify(t,e){this.infoModalMessage=t,this.infoModalHeading=e}async refresh(t){let{updateData:e=!0,resetAxesBounds:i=!1}=t??{};this.updatedProps.set(e?"forceDataUpdate":"forceSimpleUpdate",{oldValue:!1,newValue:!0}),i&&(delete this.config?.axes?.[0]?.minimum,delete this.config?.axes?.[0]?.maximum,delete this.config?.axes?.[1]?.minimum,delete this.config?.axes?.[1]?.maximum),this.requestUpdate("refresh")}async resetZoom(){this.chart!==void 0&&this.chart.resetZoom()}async switchSelection(){let t=await this._loadQueryObject.taskComplete;this.chart!==void 0&&!this.filterBySelection&&t&&await this.chart.switchSelection(t)}load(){if(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===hp.Enabled){let t=this.getSelectionFromSelectionManager();t&&(this.selectionData={selectionOIDs:t,selectionSource:Pr.ProgrammaticSelection})}}willUpdate(t){t.has("model")&&this.modelChange(),t.has("selectionData")&&this.selectionDataChange(),t.has("layer")&&this.layerChange(),t.has("layerItemId")&&this.layerItemIdChange(),(t.has("chartIndex")||t.has("layerItemId"))&&this.createModelFromLayer(),t.has("timeZone")&&this.timeZoneChange(),t.has("filterBySelection")&&this.filterBySelectionChanged(),t.has("layerFilterChangePolicy")&&this.layerFilterChangePolicyCallBack(this.layerFilterChangePolicy),t.has("viewTimeExtentChangePolicy")&&this.viewTimeExtentChangePolicyCallback(this.viewTimeExtentChangePolicy),t.has("layerRendererChangePolicy")&&this.layerRendererChangePolicyCallBack(this.layerRendererChangePolicy),t.has("layerFieldsChangePolicy")&&this.layerFieldsChangePolicyCallBack(this.layerFieldsChangePolicy),t.has("selectionManager")&&(this.setSelectionManagerChangeWatchHandler(),this.applySelectionFromSelectionManager()),Array.from(t.keys(),e=>{let i=e.toString(),r=i==="model"||i==="config"?this.updatedProps.get(i)?.oldValue??t.get(i):t.get(i);this.updatedProps.set(i,{oldValue:r,newValue:this[i]})})}updated(t){Array.from(t.keys()).filter(e=>!this.noRenderingUpdateProps.includes(e)).length>0&&this.updatedAsync(),this.actionBarElement!==void 0&&IT({actionBar:this.actionBarElement,chartComponent:this.el,config:this.config,isInfoModalDisplayed:this.infoModalMessage!==void 0})}disconnectedCallback(){super.disconnectedCallback(),this.removeLayerWatchHandlers(),this.removeExtentChangeWatchHandlers(),this.removeViewWatchHandlers(),this.removeSelectionManagerChangeWatchHandler(),this.autoDestroyDisabled||this.chart?.dispose()}hideInfoModal(){this.infoModalMessage=void 0}async generateHeatChartClassBreaks(t){if(!Gs(this.layer)&&Ix(this._model)&&t?.data&&"dataItems"in t.data){let e=await ET({data:t.data,classificationMethod:this._model.classificationMethod,breaksCount:this._model.breaksCount,xAxisField:this._model.xAxisField,existingClassBreakInfos:this._model.chartRenderer?.classBreakInfos});MT({currentBreaks:e,configBreaks:this._model.chartRenderer?.classBreakInfos??[]})&&(this._model.chartRenderer={...this._model.chartRenderer,classBreakInfos:e,type:"classBreaks",field:Cr.valueField})}}async updatedAsync(){if(this.dataFetching&&(await this.dataFetching,this.dataFetching=void 0),this.chart===void 0&&this.chartCreationProcessing!==void 0&&(await this.chartCreationProcessing,this.chartCreationProcessing=void 0),this.config!==void 0&&this.chart!==void 0)try{(!this.config&&!this.layer||kx(this.config,this.layer)&&!Uu(this.config)&&await $x(this.config,this.layer))&&await this.updateQueue?.push({})}catch(t){if(this.updatedProps.clear(),this.chartRef.value!==void 0){if(t instanceof Ln&&t.name===cd.ChartDisposed)this.chart?.dispose(),this.chart=void 0,this.chartRef.value.innerHTML="",await this.createChartInstance(!1);else if(t instanceof Ln&&t.name===cd.QueryFeaturesError?this.arcgisDataProcessError.emit(t.details):t instanceof Ln&&this.arcgisRuntimeError.emit(t.details??t),typeof t=="object"&&t&&"message"in t){let e=t instanceof Ln?t.message:this.commonStrings?.errorStrings.errors.simpleError;this.notify(e,this.commonStrings?.errorStrings.errorHeading)}}}else this.chart===void 0&&this.chartCreationProcessing===void 0&&await this.createChartInstance();this.placeholder!==void 0?await this.notify(this.placeholder):this.enableConfiguration&&Uu(this.config)&&this.applyPlaceholderForPartialConfig(this.config)}useAmCharts5(){let t=ze(this.config?.series);return this.enableBetaFeatures||t===V.ScatterSeries||t===V.HistogramSeries||t===V.RadarSeries||t===V.HeatSeries}handleNoRenderPropChange(t,e){this.arcgisNoRenderPropChange.emit({propName:t,value:e,model:this._model})}handleRenderingComplete(t){this.arcgisRenderingComplete.emit(t.detail),this.showLoader=!1}applySelectionFromSelectionManager(){let t=this.getSelectionFromSelectionManager();t&&(this.selectionData={selectionOIDs:t,selectionSource:Pr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model}))}applySelectionFromView(){this.applySelectionFromSelectionManager()}handleLegendItemVisibilityChanged(t){wF(t,this.config),this.arcgisLegendItemVisibilityChange.emit({legendItemVisibility:t.detail,model:this._model})}handleUpdateCompleted(t){if(this.enableConfiguration){let e=this.commonStrings?.errorStrings.notifications;if(this.placeholder===void 0&&(t.schemaErrors.length>0&&!Uu(this.config)?this.notify(e?.invalidConfig,void 0):t.warnings.length>0&&t.warnings.some(i=>i.keyword===TF.NonNumericAggregation)&&this.notify(e?.validateAggregationTypeMsg,e?.missingNumericFields)),(yT(this._model)||vT(this._model)||Lx(this._model)||bT(this._model))&&this._model.aggregationType===Pn.NoAggregation&&this._model.numericFields.length===1&&this.layer){let i=Ru(this.layer),r=_h(i).idField;r&&this._model.numericFields.includes(r)&&this.notify(e?.noAggregationRequiresNumericFields,e?.missingNumericFields)}}this.showLoader&&this.loaderHandle.hideLoader(),this.arcgisUpdateComplete.emit(t)}handleInvalidConfigWarningRaise(t){this.arcgisInvalidConfigWarningRaise.emit(t.detail),this.notify(t.detail.message,t.detail.header)}handleSeriesColorsChange(t){this.arcgisSeriesColorChange.emit({data:t.detail.data,colorMatchApplied:t.detail.colorMatchApplied,model:this._model})}handleSelection(t){let e={...t.detail};this.unsanitizedSelectionDataItems=e.selectionItems;let i={...e},r=Tr(e.selectionItems);r&&(r=cT(r,this.config?.series),r=r.map(dT),r=uT(r,this.config?.series),i.selectionItems=r),Ll(i,this.selectionData)||(this.selectionData=i,this.arcgisSelectionComplete.emit({selectionData:i,model:this._model}))}handleTooManySelectedElements(){this.errorPolicy===lg.Throw&&(this.infoModalHeading=this.commonStrings?.errorStrings.tooManySelectedElements?.title,this.infoModalMessage=this.commonStrings?.errorStrings.tooManySelectedElements?.message,this.notifyOptions={kind:"warning",autoClose:!0,duration:"fast",active:!0})}handleAlertClosed(t){t.target===this.el&&(this.notifyHeading=void 0,this.notifyMessage=void 0)}handleAxesMinMaxChange(t){this.arcgisAxesMinMaxChange.emit({bounds:t.detail,model:this._model})}handleSeriesOrder(t){this.arcgisSeriesOrder.emit(t.detail)}modelChange(){if(Ho(this.model)){this._model=this.model,this.config=Tr(this._model?.config);let t=this._model?.layer;!this.layerItemId&&t&&(this.layer=t),this.addModelListeners(),this._model.asyncUpdatesPromise.then(()=>{typeof this.resolveModelSetup=="function"&&this.resolveModelSetup()})}else this.config=this.model;if(this.enableBetaFeatures===void 0){let t=ze(this.config?.series);this.enableBetaFeatures=t===V.ScatterSeries||t===V.HistogramSeries}}selectionDataChange(){this.setSelectionInSelectionManager()}async viewChange(t,e){this.layerItemId&&this.layerItemId?.trim()!==""&&(this.layer=px({view:this.view,portalItemId:this.layerItemId})??new QC({portalItem:{id:this.layerItemId}})),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),e!==void 0&&t===void 0&&await this.refresh(),this.view?this.setViewSelectionsChangeWatchHandler():this.removeViewSelectionsChangeWatchHandler()}async layerChange(){this.addLayerWatchHandlers(),this.layer&&(await Ru(this.layer).load(),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler())}layerItemIdChange(){this.layerItemId&&this.layerItemId?.trim()!==""?this.layer=px({view:this.view,portalItemId:this.layerItemId})??new QC({portalItem:{id:this.layerItemId}}):this.layer=void 0}featureIndexChange(t,e){e===void 0&&typeof t=="number"&&this.updatedProps.set("forceDataUpdate",{oldValue:e,newValue:t})}disableInteractionsChange(t){t?this.chartRef.value?.classList.add(to.DisableInteractions):this.chartRef.value?.classList.remove(to.DisableInteractions)}rotationChange(t){t!==void 0&&(this.config=wT(t,this.config))}legendPositionChange(t){t!==void 0&&(this.config=_T(t,this.config))}legendVisibilityChange(t){t!==void 0&&(this.config=CT(t,this.config))}timeZoneChange(){this.updateConfigTimeZone()}filterBySelectionChanged(){this.config=BT(this.config)}layerFilterChangePolicyCallBack(t){t!==hg.Ignore?this.setLayerFilterWatchHandler():this.removeLayerFilterWatchHandler()}viewTimeExtentChangePolicyCallback(t){t!==lp.Refresh?this.removeViewTimeExtentChangeWatchHandler():this.setViewTimeExtentChangeWatchHandler()}layerRendererChangePolicyCallBack(t){t!==ug.Ignore?this.setLayerRendererWatchHandler():this.removeLayerRendererWatchHandler()}async filterByExtentChanged(t){t||await this.refresh({updateData:!0,resetAxesBounds:!0}),t?this.setExtentChangeWatchHandler(t):this.removeExtentChangeWatchHandlers()}layerFieldsChangePolicyCallBack(t){t!==cg.Ignore?this.setLayerFieldsWatchHandler():this.removeLayerFieldsWatchHandler()}addConfigListeners(){this.listenOn(document,"arcgisChartsConfigPanelNumberChange",this.configPanelNumberChange),this.listenOn(document,"arcgisChartsConfigDataChangeError",this.configDataChangeError)}getSelectionFromSelectionManager(){let t;if((this.view||this.selectionManager)&&this.layer&&!Gs(this.layer)){let e=Ru(this.layer);t=(this.selectionManager??this.view?.selectionManager)?.getSelection(e)}return t}setSelectionInSelectionManager(){let t=this.selectionManager??this.view?.selectionManager;if(this.layer&&t&&!Gs(this.layer)&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===hp.Enabled)){let e,i=this.selectionData?.selectionOIDs?.length===0||this.selectionData?.selectionOIDs===void 0||this.selectionData?.selectionSource===Pr.ClearSelection,r=(this.selectionData?.selectionOIDs?.length??0)>0;i?e=[]:r&&this.selectionData&&(e=this.selectionData.selectionOIDs),e&&t.replace(Ru(this.layer),e)}}addModelListeners(){this.listenOn(this._model??null,"arcgisChartsModelConfigChange",this.modelConfigChange),this.listenOn(this._model??null,"arcgisChartsModelDataChange",this.modelDataChange)}addLayerWatchHandlers(){this.removeLayerWatchHandlers(),this.layerFilterWatchHandler=EL(this),this.layerRendererWatchHandler=ML(this),this.layerFieldsWatchHandler=RL(this)}setLayerFilterWatchHandler(){this.removeLayerFilterWatchHandler(),this.layerFilterWatchHandler=EL(this)}setLayerRendererWatchHandler(){this.removeLayerRendererWatchHandler(),this.layerRendererWatchHandler=ML(this)}setLayerFieldsWatchHandler(){this.removeLayerFieldsWatchHandler(),this.layerFieldsWatchHandler=RL(this)}async setExtentChangeWatchHandler(t){(t??this.filterByExtent)&&(this.removeExtentChangeWatchHandlers(),this.extentChangeWatchHandlers=await CY(this))}setViewTimeZoneWatchHandler(){this.removeViewTimeZoneChangeWatchHandler(),this.viewTimeZoneChangeWatchHandler=BY(this)}setViewTimeExtentChangeWatchHandler(){this.removeViewTimeExtentChangeWatchHandler(),this.viewTimeExtentChangeWatchHandler=wY(this)}setViewSelectionsChangeWatchHandler(){this.removeViewSelectionsChangeWatchHandler(),this.viewSelectionsChangeWatchHandler=SY(this)}setSelectionManagerChangeWatchHandler(){this.removeSelectionManagerChangeWatchHandler(),this.selectionManagerChangeWatchHandler=FY(this)}removeLayerWatchHandlers(){this.removeLayerFilterWatchHandler(),this.removeLayerRendererWatchHandler(),this.removeLayerFieldsWatchHandler()}removeViewWatchHandlers(){this.removeViewSelectionsChangeWatchHandler(),this.removeViewTimeZoneChangeWatchHandler(),this.removeViewTimeExtentChangeWatchHandler()}removeLayerFilterWatchHandler(){this.layerFilterWatchHandler?.remove()}removeLayerRendererWatchHandler(){this.layerRendererWatchHandler?.remove()}removeLayerFieldsWatchHandler(){this.layerFieldsWatchHandler?.remove()}removeExtentChangeWatchHandlers(){this.extentChangeWatchHandlers?.forEach(t=>t.remove()),this.extentChangeWatchHandlers=[]}removeViewSelectionsChangeWatchHandler(){this.viewSelectionsChangeWatchHandler?.remove()}removeSelectionManagerChangeWatchHandler(){this.selectionManagerChangeWatchHandler?.remove()}removeViewTimeZoneChangeWatchHandler(){this.viewTimeZoneChangeWatchHandler?.remove()}removeViewTimeExtentChangeWatchHandler(){this.viewTimeExtentChangeWatchHandler?.remove(),this.runtimeDataFilters?.timeExtent&&delete this.runtimeDataFilters.timeExtent}async createModelFromLayer(){if(this.layer){let t=Ru(this.layer);await t.load();let e=this.chartIndex??0,i="charts"in t?t?.charts?.[e]:void 0;if(i)this.model=await TT({layer:t,config:i});else{let r=fA(this._messages?.chartNotFoundWarning??"",{chartIndex:e.toString(),layerTitle:t.title});this.arcgisChartNotFoundWarning.emit(r),iF("warn",this,r)}}}applyPlaceholderForPartialConfig(t){let e=Lx(this._model)?V.ComboLineAndBarSeries:ze(t?.series),i=dY(e,this.commonStrings?.errorStrings);this.notify(i)}checkForIncompatibleChartVersion(){let t=this.config?.version;this.errorPolicy===lg.Throw&&$F(t).versionStatus===uF.Newer&&(this.notifyHeading=this.commonStrings?.errorStrings.incompatibleChartVersion?.title,this.notifyMessage=this.commonStrings?.errorStrings.incompatibleChartVersion?.message?fA(this.commonStrings?.errorStrings.incompatibleChartVersion?.message,{chartVersion:t??""}):"",this.notifyOptions={kind:"warning",autoClose:!0,active:!0})}ourModelExistsIn(t){return t.some(e=>this._model?.isSameChartAs(e))}updateConfigTimeZone(){this.config?.axes?.[0]?.valueFormat.type===V.DateAxisFormat&&(this.config.axes[0].valueFormat.intlOptions.timeZone=pT(this.timeZone))}gatherComponentGlobalOptions(){return{queueChartCreation:this.queueChartCreation,skipChartCreationQueue:this.skipChartCreationQueue,useAnimatedCharts:this.useAnimatedCharts,hideLicenseWatermark:this.hideLicenseWatermark,showLicenseWatermark:this.showLicenseWatermark,enableResponsiveFeatures:this.enableResponsiveFeatures,autoDisposeChart:this.autoDisposeChart}}addMutationObserverForCalciteTheme(){lF(this.el,["class"],()=>{if(this.enableAutoTheming){let t=mw(this.el);(this.calciteThemeApplied==="dark"&&!t||this.calciteThemeApplied!=="dark"&&t)&&(this.calciteThemeApplied=t?"dark":void 0,this.refresh({updateData:!1}))}})}gatherComponentOptions(t=!0){let e=this.runtimeDataFilters;this.view&&this.viewTimeExtentChangePolicy===lp.Refresh&&this.view.timeExtent?.start!=null&&this.view.timeExtent?.end!=null&&(e={...e,timeExtent:[this.view.timeExtent.start.valueOf(),this.view.timeExtent.end.valueOf()]});let i;if(Gs(this.layer))i=this.filterByExtent?this.view:void 0;else{let r=Ho(this.model)?this.model.config:this.model,a=ze(r?.series);i=this.filterByExtent||a!==V.HistogramSeries?this.view:void 0}return{layer:this.layer,view:i,viewExtentUpdated:t&&this.filterByExtent&&(this.view!==void 0||dd(this.layer)),allowUsingObjectIdStat:this.allowUsingObjectIdStat,nullAsValid:this.nullAsValid,createMessage:this.placeholder,hideLoaderAnimation:this.hideLoaderAnimation,loaderColors:Tr(this.loaderColors),runtimeDataFilters:e,usePopupTemplateFieldsInfo:this.usePopupTemplateFieldsInfo,ignoreViewExtent:this.ignoreViewExtent,chartLimits:this.chartLimits,guideTooltipFormatter:this.guideTooltipFormatter,xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter,tooltipFormatter:this.tooltipFormatter,dataLabelFormatter:this.dataLabelFormatter,selectionData:this.selectionData,filterBySelection:this.filterBySelection,actionMode:this.actionMode,cursorRange:this.cursorRange,selectionTheme:this.selectionTheme,setTimeBinningInfoWhenNotProvided:this.setTimeBinningInfoWhenNotProvided,returnSelectionOIDs:Gs(this.layer)?!1:this.returnSelectionOIDs,returnSelectionIndexes:this.returnSelectionIndexes,returnFeaturesExtent:this.returnFeaturesExtent,disableInteractions:this.disableInteractions,disableTogglingLegendItems:this.disableTogglingLegendItems,hideEmptySeries:this.hideEmptySeries,autoInverseDataLabelTextColor:this.autoInverseDataLabelTextColor,replaceNoValueCategoryWithZero:this.replaceNoValueCategoryWithZero,hideZeroCountCategories:this.hideZeroCountCategories,gaugeInnerLabelFormatter:this.gaugeInnerLabelFormatter,ignoreSmoothRenderingLimit:this.ignoreSmoothRenderingLimit,chartWillRender:this.chartWillRender,pieChartLegendValueLabelFormatter:this.legendValueLabelFormatter}}raiseLogScaleNotCompatibleWarning(t){let e=!0;return this.config?.axes?.forEach((i,r)=>{ag({chartConfig:this.config,axisConfigIndex:r,chartData:In(t?.data??this.sanitizedChartData)})||(e=!1,this.raiseInvalidDataWarning(r===0?Ad.NegativeValueInXAxisLogScale:Ad.NegativeValueInYAxisLogScale))}),e}raiseNoDataWarning(t,e){let i=!1;if(t?.data){let r=In(t.data);lT({chartConfig:e,nullAsValid:this.nullAsValid,dataSet:r})&&(i=!0,this.raiseInvalidDataWarning(Ad.EmptyDataSet))}return i}raiseInvalidDataWarning(t,e){let i=this.layer,r=this.gatherComponentOptions(),a=this.config!==void 0&&qm({seriesConfig:this.config.series[0],xAxisValueFormatType:dF(this.config),queryObject:i}),n=iT({invalidType:t,elementCount:e,seriesCount:this.config?.series?.length,chartLimits:r?.chartLimits,filterBySelection:r?.filterBySelection,queryObject:i,formatLocale:fd(this.el),isTemporalChart:a,errorStrings:this.commonStrings?.errorStrings});(n.keyword!==Ad.EmptyDataSet||this.infoModalMessage===void 0)&&(this.arcgisBadDataWarningRaise.emit(n),this.notify(n.message,n.header))}processInvalidConfigStatus(t,e){if(this.enableConfiguration)this.handleUpdateCompleted(t);else{this.loaderHandle.hideLoader();let{title:i,message:r}=cY({chartConfig:e,createMessage:this.placeholder,status:t,errorStrings:this.commonStrings?.errorStrings});this.arcgisInvalidConfigWarningRaise.emit({keyword:Ad.InvalidConfig,header:i,message:r}),this.notify(r,i)}}async createChartInstance(t=!0){if(this.config)try{this.addMutationObserverForCalciteTheme(),await this.renderChart(),t&&this.chart&&(this.addLayerWatchHandlers(),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),this.setViewSelectionsChangeWatchHandler(),this.setSelectionManagerChangeWatchHandler())}catch(e){if(this.updatedProps.clear(),e instanceof Ln&&e.name===cd.QueryFeaturesError?this.arcgisDataProcessError.emit(e.details):e instanceof Ln&&this.arcgisRuntimeError.emit(e.details??e),typeof e=="object"&&e&&"message"in e){let i=e instanceof Ln?e.message:this.commonStrings?.errorStrings.errors.simpleError;this.notify(i,this.commonStrings?.errorStrings.errorHeading)}this.chart?.dispose(),this.chartCreationProcessing=void 0,this.chart=void 0}}notifyDataProcessComplete(t){if(t&&this._config){let e=ng({data:t,seriesConfig:this._config.series});e&&(this.sanitizedChartData=e,this.arcgisDataProcessComplete.emit({chartData:e,model:this._model}))}}notifyDataFetchComplete(t){if(t&&"dataItems"in t&&this._config&&ze(this._config?.series)===V.PieSeries){let e=Tr(t);e.dataItems=$W(e.dataItems,this._config),this.arcgisDataFetchComplete.emit(e)}}async renderChart(){if(Uu(this.config))this.applyPlaceholderForPartialConfig(this.config);else if(this.config){let t=this.chart===void 0,e=new Map(this.updatedProps),i=Array.from(e.keys());if(t||i.length>0){this.checkForInvalidContainer(),t&&(this.dataFetching&&(await this.dataFetching,this.dataFetching=void 0),this.chartCreationProcessing&&(await this.chartCreationProcessing,this.chartCreationProcessing=void 0),this.updateConfigTimeZone(),this.checkForIncompatibleChartVersion(),this.updatedProps.clear());let r=await this._loadQueryObject.taskComplete;if(r){let a=this.gatherComponentOptions(),n=ln(r,this.usePopupTemplateFieldsInfo),o;if(e.has("model")){let p=e.get("model")?.oldValue;Ho(p)?o=p.config:o=p}!o&&e.has("config")&&(o=e.get("config")?.oldValue),o??=this.config;let l=t,h;t||({dataUpdateNeeded:l,dataUpdateDetails:h}=aT({config:this.config,previousConfig:o,dataUpdateNeededProps:this.dataUpdateNeededProps,updatedProps:e,options:a,filterBySelection:this.filterBySelection,previousSelectionOIDs:e.has("selectionData")?e.get("selectionData")?.oldValue?.selectionOIDs:this.selectionData?.selectionOIDs,fieldList:n,queryObject:r}),l&&this.hideInfoModal());let c=this.updateSplitBySeries?.addMissingSeries===!0&&(t||l||i.includes("layer")||i.includes("filterByExtent")),u,d,A=!0;for(let p=0;p<$T&&A;p++){let m=this.config;({alteredConfig:u,preFetchedQueryResponse:d}=await ST({configToAlter:this.config,updateSplitBySeries:this.updateSplitBySeries,addMissingSeries:c,chartContainer:this.el,queryObject:r,options:a,layer:this.layer})),A=this.config!==m}if(this._config=u,this.model&&u&&!Ho(this.model)&&(this.model.series=u.series),h?.common&&o?.series&&u?.series&&(h.common.numberOfSeriesChanged=RF(o.series,u.series)),!u&&!this.layer||kx(u,this.layer)&&await $x(u,this.layer)){let p=await Bx({input:u,queryObject:r,allowUsingObjectIdStat:a?.allowUsingObjectIdStat,errorStrings:this.commonStrings?.errorStrings});if(i.forEach(m=>this.updatedProps.delete(m)),!p.valid)this.processInvalidConfigStatus(p,u);else{let m={valid:!0,data:this.processedChartData??this.sanitizedChartData};if(u){if(dd(r)&&await ka.whenOnce(()=>!r.updating),l=l&&u!==void 0&&!Uu(u),l&&(this.loaderHandle.showLoader(),this.dataFetching=nT({chartConfig:u,preFetchedQueryResponse:d,queryObject:r,options:a,fieldList:n,currentSelectionDataItems:this.unsanitizedSelectionDataItems,dataForFilterBySelectionChanged:h?.common?.dataForFilterBySelectionChanged,errorStrings:this.commonStrings?.errorStrings,abortKey:this.guid}),m=await this.dataFetching,Ix(this._model)&&DT(PT,m.data)),ze(u.series)===V.PieSeries){let f=nL({creation:t,previousConfig:o,newConfig:u,dataInfo:m,dataUpdateNeeded:l,utilsStrings:this.commonStrings.utilsStrings});l=l||f}if(!m.valid)this.raiseInvalidDataWarning(m.invalidType,m.count);else{if(ze(u.series)===V.PieSeries){let y=nL({creation:t,previousConfig:o,newConfig:u,dataInfo:m,dataUpdateNeeded:l,utilsStrings:this.commonStrings.utilsStrings});l=l||y}let f,g=Tr(u);if({filteredConfig:u,seriesFilteredOut:f}=FT({showEmptySeries:this.showEmptySeries??this.hideEmptySeries===!1,config:u,data:m?.data}),!this.raiseNoDataWarning(m,u)&&this.raiseLogScaleNotCompatibleWarning(m)){let y=ap({oldConfig:f?g:o,newConfig:u,dataWasUpdated:l});y&&sT({alteredConfig:u,dataInfo:m,fieldList:n,options:a,queryObject:r}),Jm(o,u)&&(l=!0);let x=$l(u)?u.showMean:void 0,w=m?.data??this.sanitizedChartData,S=w&&x&&"meanLines"in w?w.meanLines:In(w);S&&(t||l)&&({colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames}=await bx({data:S,queryObject:r,chartConfig:u,allowColorMatch:nx({chartConfig:u,queryObject:r})})),this.enableAutoTheming&&(u=xY(this.el,u),this.calciteThemeApplied=mw(this.el)?"dark":void 0,a=bY({chartElement:this.el,options:a,calciteThemeApplied:this.calciteThemeApplied}));let D=!1,T;if(u.series[0].type===V.PieSeries){let $=In(this.processedChartData),I=In(m.data);D=qI($,I),T=YL({creation:t,dataInfo:m,pieChartDataActuallyChanged:D,chartConfig:u,previousConfig:o,queryObject:r,usePopupTemplateFieldsInfo:a?.usePopupTemplateFieldsInfo,utilsStrings:this.commonStrings.utilsStrings})}let L=await qN({creation:t,dataInfo:m,pieChartDataActuallyChanged:D,chartConfig:u,previousConfig:o,pieSlicesSymbols:T,queryObject:r,options:a,utilsStrings:this.commonStrings?.utilsStrings});if(L?.changesApplied&&(p=await Bx({input:L?.alteredConfig,queryObject:r,allowUsingObjectIdStat:a?.allowUsingObjectIdStat,errorStrings:this.commonStrings?.errorStrings}),p.valid&&(u=L?.alteredConfig,T=L.alteredPieSlicesSymbols,this._colorMatchApplied=L.colorMatchApplied,this._rendererFieldNames=L.rendererFieldNames)),u.series[0].type===V.PieSeries&&m.data&&"dataItems"in m.data&&EW({data:m.data.dataItems,newChartConfig:u,pieSlicesSymbols:T,fieldList:n}),this.processedChartData=Tr(m.data),!p.valid)this.processInvalidConfigStatus(p,u);else{if((l||y)&&(this.notifyDataProcessComplete(m.data),this.notifyDataFetchComplete(m.data)),!this.filterBySelection&&!Gs(r)){let H=await AT({updatedPropsSnapshot:e,chartConfig:u,chartData:this.processedChartData,dataWasUpdated:l,queryObject:r,options:a,errorStrings:this.commonStrings?.errorStrings});H&&a&&(a.selectionData={...a?.selectionData,selectionItems:H})}this.hideInfoModal();let{t9nLocale:$}=Du(this.chartRef.value??document.documentElement),I=await kY($,this.useAmCharts5()),R={chartContainer:this.chartRef.value,queryObject:r,dataInfo:m,colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames,pieSlicesSymbols:T,hasSeriesFilteredOut:f,uniqueInternalID:this.el.id,t9nStrings:{errorStrings:this.commonStrings?.errorStrings,utilsStrings:this.commonStrings?.utilsStrings,amChartsStrings:I},loaderHandle:this.loaderHandle},F=u.series?.[0]?.query;if(kT(u)&&F&&(m.gaugeMinMaxFromData=await rT({queryObject:r,chartConfig:u,queryConfig:F})),t){let H=this.useAmCharts5()?uY:XW;this.chartCreationProcessing=H({...R,chartConfig:u,options:a,globalOptions:this.gatherComponentGlobalOptions()}),this.chart=await this.chartCreationProcessing,this.chartCreationProcessing=void 0}else await this.chart?.update({...R,newChartConfig:u,dataUpdateDetails:h,configWithAllSeries:g,dataWasUpdated:l,updateOptions:a,updateGlobalOptions:this.gatherComponentGlobalOptions()}),this.handleUpdateCompleted(p);await this.generateHeatChartClassBreaks(m)}}}}}}}}}}render(){let t=this.notifyMessage?TY({heading:this.notifyHeading,message:this.notifyMessage,options:this.notifyOptions}):null,e="";switch(!0){case(this.notifyMessage&&this.notifyOptions?.kind==="danger"):case(this.infoModalMessage&&(!this.hideUIMessages||this.showUIMessages!==!1)):e=to.Hide;break;default:e=`${to.Chart} ${to.Show}`;break}let i=this.notifyMessage?`${to.Show} ${to.NotifyPanel}`:to.Hide;return nd`<slot name=${gT.actionBar} @slotchange=${r=>{this.actionBarElement=LT(r,this.el,this.config)}} ${Rb(this.actionBarSlotRef)}></slot>${(this.infoModalMessage||this.showLoader)&&(!this.hideUIMessages||this.showUIMessages!==!1)?nd`<arcgis-charts-info-modal .heading=${this.infoModalHeading??""} .message=${this.infoModalMessage??""} .showLoader=${this.showLoader} .loaderColors=${this.loaderColors} .calciteThemeApplied=${this.calciteThemeApplied} .enableAutoTheming=${this.enableAutoTheming}></arcgis-charts-info-modal>`:null}<div class=${`${to.ChartWrapper} ${e}`}><div class=${`${to.ChartContainer} ${e}`} ${Rb(this.chartRef)}></div></div><div class=${aF(i)}>${t}</div>`}};nF("arcgis-chart",gw);return gw},"core/reactiveUtils","intl","layers/FeatureLayer","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic","layers/support/CodedValueDomain","core/sql",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o)
58
+ Value: {${Cr.valueField}}`,width:ge,height:ge}),Yw(o,r?.tooltipFormatter),TA(o,a),us(o.columns.template,r?.selectionTheme),Do({element:o.columns.template,series:o,queryObject:n}),o}function J4(s){let{columnSeries:t,data:e,loaderHandle:i}=s;e?.dataItems&&(t.events.once(Ai.DataValidated,()=>{i.hideLoader()}),t.data.setAll(e.dataItems))}function eX(s){let{columnSeries:t,seriesConfig:e}=s,{gradientHeatRules:i}=q.heatChart,{gradientRules:r,heatRulesType:a,gridLine:n}=e,o=e.emptyCells?.symbol??q.heatChart.emptyCells?.symbol,l=r?.colorList?.[0]??i.minColor,h=r?.colorList?.[1]??i.maxColor,c=r?.outsideRangeLowerColor??i.outsideRangeLowerColor,u=r?.outsideRangeUpperColor??i.outsideRangeUpperColor,{minValue:d,maxValue:A}=r??{},{color:p,opacity:m}=Xt(l),{color:f,opacity:g}=Xt(h),y=Xt(c),x=Xt(u);t.set("heatRules",[{target:t.columns.template,dataField:"value",key:"fill",customFunction:(w,S,D,T)=>{let L=w.dataItem?.dataContext;if(w instanceof ft){let $,I,R,F=!1;if(a===Iu.Renderer){let H=L?.[ht.rendererSymbolField];if(md(H)){R=Tr(H);let{outlineSymbol:K}=Tv(n);R.outline=K}else F=!0}if((!Number.isFinite(T)||F)&&o){R=Tr(o);let{outlineSymbol:H}=Tv(n);R.outline=H}if(R){let H=vu({root:t.root,element:w,fillSymbol:R});pA(w,H)}else typeof d=="number"&&T<d?{color:$,opacity:I}=y:typeof A=="number"&&T>A?{color:$,opacity:I}=x:S===D?($=p,I=m):($=ot.interpolate((T-S)/(D-S),p,f,"rgb"),I=m+(T-S)/(D-S)*(g-m)),$&&w.set("fill",$),I!==void 0&&w.set("fillOpacity",I)}}}])}function tX(s,t){t?.color?So({element:s.columns.template,lineSymbol:t}):s.columns.template.setAll({strokeOpacity:0,strokeWidth:0})}function iX(s){let{series:t,data:e,loaderHandle:i,dataWasUpdated:r,sortChanged:a,timeZoneChanged:n,seriesWereReinitialized:o,seriesConfig:l,autoInverseDataLabelTextColor:h,options:c,queryObject:u,chartConfig:d}=s,A=r===!0||a===!0||n||o===!0;t.set("id",l.id),Zi(t,l.visible),bA(t,!1),us(t.columns.template,c?.selectionTheme),xu(t.columns.template,e?.dataItems?.length),Z4(s),tX(t,l.gridLine),eX({columnSeries:t,seriesConfig:l}),A&&J4({columnSeries:t,data:e,loaderHandle:i}),P4({seriesType:V.HeatSeries,series:t,seriesConfig:l,dataLabelsConfig:l.dataLabels,yAxisValueFormat:{intlOptions:{},type:"number"},autoInverseDataLabelTextColor:h,externalDataLabelFormatter:c?.dataLabelFormatter});let{chart:p}=t;p&&rX({seriesConfig:l,queryObject:u,chartConfig:d,chart:p}),c?.disableInteractions&&bA(t,!0)}function rX(s){let{seriesConfig:t,queryObject:e,chartConfig:i,chart:r}=s,a;if(t.heatRulesType===Iu.Renderer)a={heatRulesType:Iu.Renderer,seriesColors:Bk({queryObject:e,chartConfig:i,forLegend:!1})};else{let{gradientHeatRules:n}=q.heatChart,{gradientRules:o}=t;a={heatRulesType:Iu.Gradient,seriesColors:{startColor:o?.colorList?.[0]??n.minColor,endColor:o?.colorList?.[1]??n.maxColor}}}nn({chartId:r.get("id"),data:a,colorMatchApplied:!1,htmlContainer:r.root.dom})}function wk(s,t){let e="",i,r,a;return s&&typeof s=="object"&&(e="label"in s&&typeof s.label=="string"?s.label:"",i="symbol"in s&&s.symbol&&typeof s.symbol=="object"&&"color"in s.symbol&&Array.isArray(s.symbol.color)?s.symbol.color:void 0,a="symbol"in s&&s.symbol&&typeof s.symbol=="object"&&"outline"in s.symbol&&Array.isArray(s.symbol.outline)?s.symbol.outline:void 0,t&&(Array.isArray(i)&&({color:i,opacity:r}=Xt(i)),Array.isArray(a)&&(a=Xt(a).color))),{legendItemLabel:e,legendItemColor:i,legendItemColorOpacity:r,legendItemStrokeColor:a}}function sX(s){let t,{outlineColor:e,outlineOpacity:i,dataItems:r,valueField:a,classBreakInfo:n,classBreakIndex:o,numberOfClassBreaks:l,evaluateUpTo:h}=s,{legendItemLabel:c,legendItemColor:u,legendItemColorOpacity:d}=wk(n,!0);if(n&&typeof n=="object"&&u&&!Array.isArray(u)){let A=!0;if(r&&a){let p="classMinValue"in n&&typeof n.classMinValue=="number"?n.classMinValue:-1/0,m="classMaxValue"in n&&typeof n.classMaxValue=="number"?n.classMaxValue:1/0,f=o===l-1;A=r.some(g=>{let y=g[a];return f||h?typeof y=="number"&&y>=p&&y<=m:typeof y=="number"&&y>=p&&y<m})}A&&(t={[Ps.nameField]:c,[Ps.fillField]:u,[Ps.strokeField]:e,[Ps.fillOpacityField]:d,[Ps.strokeOpacityField]:i})}return t}function aX(s){let t,{legendItemLabel:e,legendItemColor:i,legendItemStrokeColor:r}=wk(s,!1);return Array.isArray(i)&&(!r||Array.isArray(r))&&(t={label:e,symbol:{type:Dt.SFS,style:bs.Solid,color:i,outline:{type:Dt.SLS,color:r??i}}}),t}function Bk(s){let{queryObject:t,chartConfig:e,forLegend:i,series:r}=s,a,n=Ys(t),o=e.series?.[0],l=e.chartRenderer??n?.renderer?.toJSON(),{outlineColor:h,outlineOpacity:c}=Tv(o?.gridLine);if((l?.type==="classBreaks"||l?.type==="class-breaks")&&"classBreakInfos"in l){let u=r?.data.values,d=r?.get("valueField")??Cr.valueField,A=l.classBreakInfos?.[0],p=A?A.classMinValue===A.classMaxValue:!1;a=l.classBreakInfos.map((m,f)=>{let g;return i?g=sX({outlineColor:h,outlineOpacity:c,dataItems:u,valueField:d,classBreakInfo:m,classBreakIndex:f,numberOfClassBreaks:l.classBreakInfos.length,evaluateUpTo:p}):g=aX(m),g}).filter(Boolean)}return a}var Wv="arcgis_charts_title_container",Kw="arcgis_charts_subtitle_container",Xv="arcgis_charts_footer_container",Sk="arcgis_charts_title",Fk="arcgis_charts_subtitle",Tk="arcgis_charts_footer",ba="arcgis_charts_legend_container",Jn="arcgis_charts_legend_title",hw="arcgis_charts_axis_title_id";function nX(s){let t=s.yAxes.getIndex(0);if(t){let e=Ii({childId:`${hw}_y_${t.uid}`,parent:t});e instanceof Zt&&e.set("dx",0)}}function oX(s,t){let e=q.axisLabelSpacing.verticalAxisLabelSidePadding,i=q.heatChart.legend.legendPadding+e;t.set("marginRight",i),s.leftAxesContainer.setAll({paddingLeft:e});let r=s.leftAxesContainer.children.values[0];r instanceof Sr&&r.set("paddingLeft",e)}function Pk(s,t){let{root:e}=s,i=fe(s.uid,"rtl")??!1,r=fe(s.uid,"config")??t,a=r?.series[0],{start:n,end:o}=zv(i,a),l=r?.legend?.position??q.heatChart.legend.position,h=l===st.Top||l===st.Bottom;return bo.new(e,{orientation:h?"horizontal":"vertical",startColor:n.color,endColor:o.color,visible:r?.legend?.visible,startOpacity:n.opacity,endOpacity:o.opacity})}function lX(s,t){let e=fe(t.uid,"rtl")??!1,i=fe(t.uid,"config");if(i?.series[0].type===V.HeatSeries){let r=i?.series[0],{start:a,end:n}=zv(e,r);s.setAll({startColor:a.color,endColor:n.color,startOpacity:a.opacity,endOpacity:n.opacity})}}function zv(s=!1,t){let e=q.heatChart.gradientHeatRules,i=t.gradientRules?.colorList??[...s?[e.maxColor,e.minColor]:[e.minColor,e.maxColor]],{color:r,opacity:a}=Xt(i[0]),{color:n,opacity:o}=Xt(i[1]);return{start:{color:r,opacity:a},end:{color:n,opacity:o}}}function AL(s,t){let e=fe(s.uid,"rtl")??!1,i=fe(s.uid,"config")?.series[0],{start:r,end:a}=zv(e,i);t.setAll({startColor:r.color,endColor:a.color})}function Dk(s){let t=fe(s.uid,"config");if(t?.series?.[0]?.type===V.HeatSeries&&t?.legend?.visible!==!1){let e=q.heatChart.legend,i=t?.legend?.position??e.position,r=Ns(ba,s.uid),a,n=!1;switch(i){case st.Top:a=s.topAxesContainer,n=!0;break;case st.Bottom:a=s.bottomAxesContainer,n=!1;break;case st.Left:a=s.leftAxesContainer,n=!0;break;case st.Right:a=s.rightAxesContainer,n=!1;break;default:a=void 0}if(a!==void 0){let o=Ii({childId:r,parent:a,useChildId:!0});if(o!==void 0){let{children:l}=a,h=l.indexOf(o);h!==-1&&(n&&h!==0?(l.removeValue(o),l.unshift(o),a.markDirty()):!n&&h!==l.length-1&&(l.removeValue(o),l.push(o),a.markDirty()))}}}}function Lk(s){let{chart:t,legend:e,legendContainer:i}=s,{root:r}=t,a=fe(t.uid,"config"),n=q.heatChart.legend,o=a?.legend?.position??n.position,l,h,c,u=o===st.Left||o===st.Top,d=Ii({childId:Jn,parent:i}),A=a?.legend?a.legend.visible??!0:!1,p=a?.legend?.title?a.legend.title.visible??!0:!1,m=d instanceof Zt&&A&&p?d.height()>0?d.height():n.titleHeight:0,f=o===st.Left||o===st.Right;switch(e.setAll({orientation:f?"vertical":"horizontal",width:ge}),o){case st.Left:i.setAll({layout:r.verticalLayout,paddingRight:n.legendPadding,width:n.width}),oX(t,i),l=t.leftAxesContainer;break;case st.Right:i.setAll({layout:r.verticalLayout,paddingLeft:n.legendPadding,paddingRight:n.legendPadding,width:n.width}),t.rightAxesContainer.setAll({paddingRight:n.chartPadding}),l=t.rightAxesContainer;break;case st.Top:c=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingBottom:n.legendPadding,paddingTop:n.legendPadding,width:ge}),l=t.topAxesContainer;break;case st.Bottom:{h=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingTop:n.legendPadding,width:ge}),t.bottomAxesContainer.setAll({paddingBottom:n.legendPadding+m});let g=Ii({childId:Xv,parent:t});g instanceof Re&&g.set("paddingBottom",n.chartPadding+m),l=t.bottomAxesContainer}break}nX(t),e.markDirty(),Ik(t,{chartPaddingTop:c,chartPaddingBottom:h}),yu(()=>{l&&(u?l.children.unshift(i):l.children.push(i),t.markDirty(),e.markDirty(),l.markDirty())})}function Ik(s,t){let{chartPaddingTop:e,chartPaddingLeft:i,chartPaddingRight:r,chartPaddingBottom:a}=t;s.setAll({paddingTop:e,paddingLeft:i,paddingRight:r,paddingBottom:a})}function kk(s,t){let e=s.root.events.on(Ai.FrameEnded,()=>{s.markerContainer.children.length>0&&(t(),e.dispose())})}function $k(s){let{series:t,legend:e,chart:i}=s,r=fe(i.uid,"config"),a=n=>{let o=n.getPrivate("valueLow"),l=n.getPrivate("valueHigh");o!==void 0&&l!==void 0&&(e.get("orientation")==="vertical"?(e.set("startValue",l),e.set("endValue",o)):(e.set("startValue",o),e.set("endValue",l))),yu(()=>{kk(e,()=>{Ok({legend:e,series:n,chartConfig:r})})})};t!==void 0&&(t.events.on("datavalidated",()=>{a(t)}),a(t)),Ek(e,r?.legend)}function Ok(s){let{legend:t,series:e,chartConfig:i}=s,r=i?.series[0],a=r?.gradientRules;if(a&&(a.minValue!==void 0||a.maxValue!==void 0)){let n=e.getPrivate("valueLow"),o=e.getPrivate("valueHigh");if(n!==void 0&&o!==void 0&&o>n){let l=n,h=o,c=h-l,u=a.minValue??l,d=a.maxValue??h,A=(u-l)/c,p=(d-l)/c;A=Math.max(0,Math.min(1,A)),p=Math.max(0,Math.min(1,p));let{start:m,end:f}=zv(!1,r),{color:g,opacity:y}=Xt(a.outsideRangeLowerColor??q.heatChart.gradientHeatRules.outsideRangeLowerColor),{color:x,opacity:w}=Xt(a.outsideRangeUpperColor??q.heatChart.gradientHeatRules.outsideRangeUpperColor),S=[{color:g,opacity:y,offset:0},{color:g,opacity:y,offset:A},{color:m.color,opacity:m.opacity,offset:A},{color:f.color,opacity:f.opacity,offset:p},{color:x,opacity:w,offset:p},{color:x,opacity:w,offset:1}],D=(L,$,I)=>{let R=Ns(`heatLegendLabel${I}`,t.uid),F=t.markerContainer.children.values.find(z=>z instanceof Zt&&z.get("id")===R),H=F&&!F.isDisposed()?F:void 0,K=t.startLabel;if(H||(H=Zt.new(t.root,{id:R,position:"absolute",isMeasured:!1,centerX:Qe,centerY:Qe,paddingLeft:0}),t.markerContainer.children.push(H)),H.setAll({fill:K.get("fill"),fontSize:K.get("fontSize"),fontFamily:K.get("fontFamily")}),H.set("text",L.toString()),t.get("orientation")==="vertical"){let z=K.localBounds().top,ee=K.get("fontSize")??0;if(typeof ee=="number"){let ie=q.heatChart.legend.minMaxLabelPadding;H.set("x",z-ee*2-ie)}else H.set("x",z);H.set("y",Bt($*100)),H.set("centerY",Qe)}else{H.set("x",Bt($*100));let z=t.startLabel.localBounds().bottom,ee=q.heatChart.legend.minMaxLabelPadding;H.set("y",-z-ee),H.set("centerX",Xr)}};A>0&&A<1&&D(u,A,"Min"),p>0&&p<1&&D(d,p,"Max");let T=()=>{let L;if(t.markerContainer.children.length>0&&t.markerContainer.children.each($=>{$ instanceof nr&&(L=$)}),L){let $=0;t.get("orientation")==="vertical"&&($=90),L.set("fillGradient",ll.new(t.root,{stops:S,rotation:$}))}};if(t.markerContainer.children.length>0)T();else{let L=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(L.dispose(),T())})}}}else{let n=()=>{if(t.get("orientation")==="vertical"){let o;t.markerContainer.children.length>0&&t.markerContainer.children.each(l=>{l instanceof nr&&(o=l)}),o&&o.set("rotation",180)}};if(t.markerContainer.children.length>0)n();else{let o=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(o.dispose(),n())})}}}function Ek(s,t){if(s!==void 0){let e={type:V.Text,visible:t?.visible,content:{...t?.body,type:Dt.TS,text:" "}};[s.startLabel,s.endLabel].forEach(i=>{wn({label:i,labelConfig:e,skipSettingText:!0,skipSettingXAndY:!0})})}}function Zw(s){let t=Ns(ba,s.uid);[s.bottomAxesContainer,s.rightAxesContainer,s.leftAxesContainer,s.topAxesContainer].forEach(e=>{let i=Ii({childId:t,parent:e,useChildId:!0});i&&(i.children.values.filter(r=>r instanceof bo).forEach(r=>{r.dispose()}),e.children.removeValue(i),i.dispose()),e.markDirty()}),Ik(s,{}),uX(s)}function qw(s,t){let e=gA({root:t.root,parent:t,index:0,id:Ns(Jn,t.uid)});return e.set("paddingTop",q.heatChart.legend.titlePadding),yA({chart:s,label:e,labelType:ii.LegendTitle}),e}function uw(s){let{chart:t,legendConfig:e,container:i}=s,r=Ns(ba,t.uid),a=i;if(a||[t.bottomAxesContainer,t.rightAxesContainer,t.leftAxesContainer,t.topAxesContainer].forEach(n=>{let o=Ii({childId:r,parent:n,useChildId:!0});o&&(a=o)}),a!==void 0){let n=Ii({childId:Jn,parent:a})??qw(t,a);if(e!==void 0){let{title:o,visible:l}=e,{legendTitle:h}=q.legendProperties;if(o!==void 0){wn({label:n,labelConfig:{...o,visible:l!==!1&&o.visible!==!1},defaults:{...h,verticalCenter:Yt.Top}});let c=fe(t.uid,"config")?.legend?.position??q.heatChart.legend.position;c===st.Left||c===st.Right?(n.set("maxWidth",250),bl({chart:t,label:n,labelType:ii.LegendTitle})):n.set("maxWidth",void 0),Mk({legendContainer:a,chart:t})}else Zi(n,!1)}}}function hX(s,t){let{root:e}=s,i=fe(s.uid,"config"),r=i?.legend,a=s.series.values[0];Zw(s);let n=Pk(s,i??t),o=Re.new(e,{id:Ns(ba,s.uid),layout:e.verticalLayout});return o.children.push(n),qw(s,o),uw({chart:s,legendConfig:r,container:o}),$k({series:a,legend:n,chart:s}),r!==void 0&&r.visible!==!1&&(Lk({chart:s,legend:n,legendContainer:o}),cw({legend:n,chart:s,legendContainer:o})),n}function cw(s){let{legend:t,chart:e,legendContainer:i}=s,r=fe(e.uid,"config"),a=q.heatChart.legend,n=r?.legend?.position??a.position;if(n===st.Left||n===st.Right)t.set("height",ge),i.set("height",ge),Mk({legendContainer:i,chart:e});else{let o=Ii({childId:Jn,parent:i}),l=r?.legend?r.legend.visible??!0:!1,h=r?.legend?.title?r.legend.title.visible??!0:!1,c=o instanceof Zt&&l&&h?o.height()>0?o.height():a.titleHeight+a.titlePadding:0,u=n===st.Top?a.topHeight:a.bottomHeight;t.set("height",u),i.set("height",u+c+20)}}function Mk(s){let{legendContainer:t,chart:e}=s,i=fe(e.uid,"config"),r=q.heatChart.legend,a=i?.legend?.position??r.position;if(a!==st.Left&&a!==st.Right)return;let n=Ii({childId:Jn,parent:t}),o=i?.legend?.title?i.legend.title.visible??!0:!1;if(n instanceof Zt&&o){let l=()=>{let h=n.width(),c=r.width,u=Math.max(h+r.legendPadding*2,c);t.set("width",u)};n.width()>0?l():n.events.once("boundschanged",l)}else t.set("width",r.width)}function uX(s){let t=Ii({childId:Wv,parent:s});t instanceof Re&&t.set("marginTop",0)}function cX(s){let t,e=Ns(ba,s.uid);return[s.bottomAxesContainer,s.rightAxesContainer,s.leftAxesContainer,s.topAxesContainer].forEach(i=>{let r=Ii({childId:e,parent:i,useChildId:!0});if(r){let n=r.children.values.find(o=>o instanceof bo);if(n){t=n;return}}let a=i.children.values.find(n=>n instanceof bo);if(a){t=a;return}}),t}function dX(s){let{chart:t,chartConfig:e,heatLegendPositionChanged:i,heatRulesTypeChanged:r}=s,{legend:a}=e,n=a!==void 0&&a.visible!==!1,o=t.series.values[0];if(i||r)Zw(t),n&&o instanceof Li&&yu(()=>{let l=Pk(t),h=Re.new(t.root,{id:Ns(ba,t.uid),layout:t.root.verticalLayout});h.children.push(l),qw(t,h),uw({chart:t,legendConfig:a,container:h}),AL(t,l),Lk({chart:t,legend:l,legendContainer:h}),$k({series:o,legend:l,chart:t}),cw({legend:l,chart:t,legendContainer:h})});else if(o instanceof Li){let l=cX(t);if(l){AL(t,l),uw({chart:t,legendConfig:a}),Ek(l,a);let h=l.parent;h?.get("id")===Ns(ba,t.uid)&&Zi(h,n),Zi(l,n),lX(l,t),h&&cw({legend:l,chart:t,legendContainer:h}),yu(()=>{kk(l,()=>{Ok({legend:l,series:o,chartConfig:e})})})}}}function AX(s,t){let e=!1;if(t===st.Right||t===st.Left)e=!0;else{let i=s.dataItems[0]?.get("itemContainer").bounds().left;i!==void 0&&(e=!s.dataItems.some(r=>r.get("itemContainer").bounds().left!==i))}return e}function pX(s){let t=!1,e=s.dataItems[0]?.get("itemContainer").bounds().bottom;return e!==void 0&&(t=!s.dataItems.some(i=>i.get("itemContainer").bounds().bottom!==e)),t}function fX(s){Vw(s.uid,{isLegendValueLabel:!0}),s.valueLabels.template.adapters.add("text",(t,e)=>{let i=t??"",r=GW(s.uid,"pieChartLegendValueLabelsFormatter");return r!==void 0&&(i=r(e.dataItem?.get("value")??0,e.dataItem?.get("valuePercentTotal")??0)),i}),s.valueLabels.template.set("text","")}function Rk(s){let{legend:t,seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r,chart:a}=s,{visible:n,body:o,displayNumericValue:l,displayPercentage:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:c,percentValueFormat:u,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:m}=e[0],f=l??q.pieChart.displayNumericValueOnLegend,g=h??q.pieChart.displayPercentageOnLegend,y=r;if(r===void 0){let $=Xw({pieChart:a,valueIntlOptions:c?.intlOptions,percentageIntlOptions:u?.intlOptions,displayNumericValue:f,displayPercentage:g,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:m});y=(I,R)=>$("",I,R)}YW(t.uid,{pieChartLegendValueLabelsFormatter:y});let x=fe(a?.uid??0,"config")?.legend?.position??q.legendProperties.position,w=i?.valueLabelMaxWidth,S=AX(t,x),D={type:V.Text,visible:n,content:{...o,type:Dt.TS,text:".",verticalAlignment:Yt.Middle,horizontalAlignment:S?bi.Right:bi.Center}};wn({label:t.valueLabels.template,labelConfig:D,defaults:q.legendProperties.valueLabels});let T=fe(a?.uid??0,"rtl")??!1,L=w!==void 0&&!Number.isNaN(w);t.valueLabels.template.setAll({x:void 0,y:void 0,paddingRight:5,textAlign:T?"right":"left",disabled:f===!1&&g===!1,width:L?w:null,oversizedBehavior:L?"wrap":"none"})}}function mX(s,t){s.labels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),a=r?.legend?.labelMaxWidth,n=r?.legend?.position??q.legendProperties.position;if(n===st.Right||n===st.Left)i=a??q.legendProperties.legendLabels.maxWidth;else if(a!==void 0)i=a;else{let o=0;s.valueLabels.template.get("forceHidden")||s.valueLabels.each(h=>{let c=h.get("width",0);typeof c=="number"&&(o=Math.max(o,c))});let l=s.get("width",200);typeof l=="number"&&(i=l+o)}return i}),s.valueLabels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),a=r?.legend?.valueLabelMaxWidth,n=r?.legend?.position??q.legendProperties.position;return n===st.Right||n===st.Left?i=a??q.legendProperties.valueLabels.maxWidth:i=a??Number.NaN,i})}function Uk(s,t){let e=0;for(let i of s.dataItems){let r=i.get("label")?._contentWidth??0;e=Math.max(e,r)}return t&&e>t?t:e}function gX(s,t){for(let e of s.dataItems)e.get("label")?.set("width",t)}function yX(s,t){let e=0;for(let i of s.dataItems){let r=i.get("marker")?._contentWidth??0,a=i.get("valueLabel")?._contentWidth??0,n=r+t+a;e=Math.max(e,n)}return Math.ceil(e)+q.legendPadding}function Vk(s,t){yu(()=>{let e=pX(s),i=t===st.Right||t===st.Left||!e;gX(s,i?Uk(s):void 0)})}function vX(s){let{legend:t,chart:e,seriesConfig:i,legendConfig:r}=s,{displayCategory:a}=r??{},n=a??q.pieChart.displayCategoryOnLegend,o=fe(e?.uid??0,"rtl")??!1;t.labels.template.setAll({forceHidden:n===!1,direction:o?"rtl":"ltr",oversizedBehavior:r?.labelMaxWidth!==void 0&&!Number.isNaN(r.labelMaxWidth)?"wrap":"none"}),yu(()=>{let l=Uk(t,r?.labelMaxWidth),h=yX(t,l);t.itemContainers.template.setAll({width:h,layout:e.root.horizontalLayout}),mX(t,e),Rk({legend:t,seriesConfig:i,webChartLegend:r,chart:e});let c=r.position??q.legendProperties.position;Vk(t,c),t.markDirty()})}function Nk(s){return s?.[0].type===V.HeatSeries&&s[0].heatRulesType!==Iu.Renderer}function Hk(s){let t=s.get("id");s.on("visible",(e,i)=>{if(i){let{chart:r}=i;if(r instanceof Ts){let a=Ii({childId:ba,parent:r});a!==void 0&&a.dataItems?.forEach(n=>{n.get("id")===t&&a.set("opacity",e?1:q.legendProperties.legendLabelReducedOpacity)})}}})}function bX(s){let t=s.target.dataItem;if(t?.dataContext!==void 0){let{dataContext:e}=t,i=typeof e=="object"&&e!==null&&"component"in e?e.component:e;if(i instanceof Yr){let r={visible:!i.get("visible")};nh(i)||Gf(i)?r.overlayType=Rt(i.uid,"type"):r.seriesId=i.get("id"),Jb(r,i.root.dom)}}}function xX(s){s.itemContainers.template.events.on(Ai.Click,bX)}function _X(s,t){let e=fe(t.uid,"rtl")??!1;s.itemContainers.template.setAll({reverseChildren:e})}function CX(s){let{chart:t,legend:e,chartConfig:i,showEmptySeries:r,queryObject:a}=s,n=ze(i.series);if(t.series.length>1||n===V.PieSeries||n===V.HeatSeries){let o=[],l=It(i.series);switch(n){case V.BoxPlotSeries:{let h=Ca(i);o=t.series.values.filter(c=>{let u=!1;return h?u=c instanceof qt&&!(c instanceof wo):u=c instanceof Ia,u});break}case V.HistogramSeries:{o=t.series.values.filter(h=>{let c=!1;if(Rt(h.uid,"isOverlay")){let u=i.series[0].type===V.HistogramSeries?i.series[0].overlays:void 0,d=Rt(h.uid,"type"),A;switch(d){case xr.Mean:A=u?.mean?.created;break;case xr.Median:A=u?.median?.created;break;case xr.Normal:A=u?.comparisonDistribution?.created;break;case xr.StdDev:A=u?.standardDeviation?.created;break}c=A===!0}return c});break}case V.PieSeries:{o=t.series.getIndex(0)?.dataItems??[];break}case V.ComboLineAndBarSeries:case V.LineSeries:case V.RadarSeries:case V.BarSeries:o=t.series.values.filter(h=>{let c=!0;if(!r){let u=i.series.find(d=>d.id===h.get("id"));if(u!==void 0&&"y"in u&&typeof u.y=="string"){let{x:d,y:A}=u,p=l===Ee.BarAndLineSplitByNoAggregation?`${A}_${Ch({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:A;c=h.data.values.some(m=>oT({dataItem:m,x:d,y:p}))}}return c});break;case V.ScatterSeries:{let h=Xk(t);h!==void 0&&(o=[h]);break}case V.HeatSeries:{let h=t.series.getIndex(0);if(h instanceof Li&&kl(i)&&!Gs(a)){let c=Bk({queryObject:a,chartConfig:i,forLegend:!0,series:h});if(c){o=[...c];let u=EX(t);u!==void 0&&o.push(u)}}break}}e.data.setAll(o)}}function pL(s){let t=0;return s.dataItems.forEach(e=>{let i=e.get("itemContainer").width();t=Math.max(i,t)}),Math.ceil(t)}function fL(s){let t=0;if(s instanceof Zt&&s.get("visible")!==!1&&s.get("forceHidden")!==!0){let e=s.width();Number.isFinite(e)&&(t=e)}return t}function mL(s){let t=0;return s.series.values.forEach(e=>{let i=e.bulletsContainer;i&&i.children.values.forEach(r=>{t=Math.max(t,fL(r))}),t===0&&e.dataItems.forEach(r=>{let a=r.bullets;if(a)for(let n of a)t=Math.max(t,fL(n.get("sprite")))})}),Math.ceil(t)}function $c(s,t){let{root:e}=s,i=Ii({childId:ba,parent:s});if(i!==void 0){let r=fe(s.uid,"config"),a=fe(s.uid,"rtl"),n=ks(r),o=ze(r?.series),l=Ua(r),h=r?.series?.some(We=>We.dataLabels?.visible!==!1)??!1,c=r?.title?r.title.visible??!0:!1,u=r?.subtitle?r.subtitle.visible??!0:!1,d=r?.footer?r.footer.visible??!0:!1,A=r?.legend?r.legend.visible??!0:!1,p=r?.legend?.title?r.legend.title.visible??!0:!1,m=Ii({childId:Wv,parent:s}),f=m instanceof Re&&c?m.height():0,g=Ii({childId:Kw,parent:s}),y=g instanceof Re&&u?g.height():0,x=Ii({childId:Xv,parent:s}),w=x instanceof Re&&d?x.height():0,S=Ii({childId:Jn,parent:i}),D=S instanceof Zt&&A&&p?S?.height():0,T=r?.legend?.position??q.legendProperties.position,L,$=t.get("verticalScrollbar"),I=Qe,R=Qe,F=e.verticalLayout,H=Qe,K=Qe,z=Qe,ee=Qe,ie=0,de,G=t.height()+D,Y=0,xe=0,ae=h&&!n?q.chartContainer.paddingTop??0:0,le=0,Ie,Ze;switch(T){case st.Left:F=e.verticalLayout,H=Xr,z=Xr,K=Xr,ee=Xr,de=void 0,I=Xr,R=Xr,Y=i.width(),ie=f+y,G<s.seriesContainer.height()&&(ie+=s.seriesContainer.height()/2-G/2),L=pL(t),$?.width()!==void 0&&L&&$.isVisible()&&(L+=$.width()+q.scrollbarPadding),a&&(Ie=ge,Ze=L);break;case st.Right:F=e.verticalLayout,H=ge,z=ge,K=Xr,ee=Xr,de=void 0,I=Xr,R=Xr,xe=i.width(),ie=f+y,G<s.seriesContainer.height()&&(ie+=s.seriesContainer.height()/2-G/2),L=pL(t),$?.width()!==void 0&&L&&$.isVisible()&&(L+=$.width()+q.scrollbarPadding),a&&(Ie=ge,Ze=L);break;case st.Top:F=e.gridLayout,H=Qe,z=Qe,K=Xr,ee=Xr,de=ge,I=Qe,R=Qe,ae+=G,ie+=f+y,L=void 0,a&&(Ie=void 0);break;case st.Bottom:F=e.gridLayout,H=Qe,z=Qe,K=ge,ee=ge,de=ge,I=Qe,R=Qe,le=G,ie=-le-w,L=void 0,a&&(Ie=void 0);break}if(n&&h&&(o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.BarSeries&&l===Gi.Side)){let We=mL(s);if(We>0)xe+=We;else if(s.series.length>0){let Je=t.root.events.on(Ai.FrameEnded,()=>{let kt=mL(s);kt>0&&(a?Y+=kt:xe+=kt,Je.dispose(),$c(s,t))})}}(L===void 0||L>0)&&(t.setPrivate("width",L),a&&t.itemContainers.template.setAll({centerX:Ie,dx:Ze})),t.setAll({layout:F,x:I,centerX:R}),i.setAll({x:H,y:K,centerX:z,centerY:ee,dy:ie,width:de,height:0}),s.chartContainer.setAll({paddingBottom:le,paddingTop:ae,paddingLeft:Y,paddingRight:xe}),de===void 0&&(i.setPrivate("width",void 0),i.markDirty()),s instanceof Rs&&Vk(t,T)}}function wX(s){let{chart:t,legend:e,legendContainer:i}=s,r=Ii({childId:Jn,parent:i});r&&r.on("visible",()=>{e.root.events.once(Ai.FrameEnded,()=>{$c(t,e)})}),i.events.on(Ai.BoundsChanged,()=>{$c(t,e)}),e.events.on(Ai.BoundsChanged,()=>{$c(t,e)}),t.seriesContainer.onPrivate("height",()=>{$c(t,e)}),t.series.each(a=>{a.events.on(Ai.DataValidated,()=>{$c(t,e)})})}function Qk(s,t){let e=gA({root:t.root,parent:t,index:0,id:Ns(Jn,t.uid)});return e.set("paddingTop",10),yA({chart:s,label:e,labelType:ii.LegendTitle}),e}function BX(s,t){t.markers.template.setAll({width:q.legendProperties.legendMarkersSize,height:q.legendProperties.legendMarkersSize}),t.markerRectangles.template.adapters.add("fillOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,a=r&&Ps.fillOpacityField in r?r[Ps.fillOpacityField]:e;return typeof a=="number"?a:e}),t.markerRectangles.template.adapters.add("strokeOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,a=r&&Ps.strokeOpacityField in r?r[Ps.strokeOpacityField]:e;return typeof a=="number"?a:e}),t.labels.template.adapters.add("text",(e,i)=>{let r=e,a=fe(s.uid,"config");if(ze(a?.series)!==V.HeatSeries){let n=i.dataItem?.component;if(n instanceof Hr){let o=n.get("categoryField")??"",l=i.dataItem,h=l?.get("category"),c=l?.dataContext;r=h??(c?.[o]??e)?.toString()}else n instanceof Yr&&(r=n.get("name"))}if(a!==void 0){let{legend:n}=a,o={...n?.body,type:Dt.TS,text:r};r=_a({textSymbol:o,format:"amChartsV5"})}return r})}function SX(s,t){t.seriesContainer.onPrivate("height",e=>{let i=0,r=fe(t.uid,"config"),a=r?.legend,n=Ii({childId:ba,parent:t});if(n!==void 0){let l=Ii({childId:Jn,parent:n});l!==void 0&&a?.visible!==!1&&a?.title?.visible!==!1&&(i=l.height())}let o=r?.legend?.maxHeight??Number.NaN;Number.isFinite(o)||(r?.legend?.position===st.Top||r?.legend?.position===st.Bottom?o=q.legendProperties.maxHeight:typeof e=="number"&&(o=e-i)),s.set("maxHeight",o)})}function FX(s,t,e){s.events.on(Ai.DataValidated,()=>{s.dataItems.length>0&&jk(s,t,e)})}function TX(s){let t;if(s!==void 0){let e=fe(s?.uid,"config");t=fe(s.uid,"rtl")&&(e?.legend?.position===st.Top||e?.legend?.position===st.Bottom)}return t??!1}function PX(s){let t="";if(s instanceof Ci){let e=fe(s.uid,"config"),i=ks(e),r=i?B.Rotated:B.NonRotated,a=Ua(e),n=B.SideBySide;a===Gi.Stacked?n=B.Stacked:a===Gi.Stacked100&&(n=B.Stacked100);let o=fe(s.uid,"rtl")?B.RTL:B.LTR,l;switch(e?.legend?.position){case st.Left:l=B.LegendLeft;break;case st.Top:l=B.LegendTop;break;case st.Bottom:l=B.LegendBottom;break;case st.Right:default:l=B.LegendRight;break}let h=i?s.yAxes.getIndex(0):s.xAxes.getIndex(0),c;h instanceof yr?c=B.DateAxis:h instanceof di?c=B.ValueAxis:c=B.CategoryAxis;let u=e?.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===zA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;t=`${r}-${o}-${n}-${l}-${c}-${u}`}return t}function DX(s){let t=PX(s);return wI.has(t)}function jk(s,t,e){switch(e){case V.HistogramSeries:case V.PieSeries:s.set("reverseChildren",TX(t));break;case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:s.set("reverseChildren",DX(t));break}}function LX(s,t){let e=Ii({childId:ba,parent:s});if(e!==void 0){let i=Ii({childId:Jn,parent:e})??Qk(s,e);if(t!==void 0){let{title:r,visible:a}=t,{legendTitle:n}=q.legendProperties;r!==void 0?(wn({label:i,labelConfig:{...r,visible:a!==!1&&r.visible!==!1},defaults:{...n,verticalCenter:Yt.Top}}),bl({chart:s,label:i,labelType:ii.LegendTitle})):Zi(i,!1)}}}function IX(s,t=!1){let e=t?q.legendProperties.roundedMarkerRadius:q.legendProperties.rectangleMarkerRadius;s.markerRectangles.template.setAll({cornerRadiusTL:e,cornerRadiusTR:e,cornerRadiusBL:e,cornerRadiusBR:e})}function kX(s){let{legend:t,legendConfig:e,chartType:i,seriesConfig:r,chart:a}=s;if(t!==void 0){let n={type:V.Text,visible:e?.visible,content:{...e?.body,type:Dt.TS,text:" "}};if(i===V.PieSeries){let o=Ii({childId:ba,parent:a});o!==void 0&&Ii({childId:Jn,parent:o})!==void 0&&Rk({legend:t,seriesConfig:r,webChartLegend:e,chart:a})}wn({label:t.labels.template,labelConfig:n}),t.labels.template.setAll({x:void 0,y:void 0,paddingRight:5})}}function $X(s,t){t===!0&&s.itemContainers.each(e=>{e.events.disableType(Ai.Click)})}function OX(s){let{legend:t,chart:e,seriesConfig:i}=s;i?.[0].type!==V.HeatSeries&&t.itemContainers.template.adapters.add("cursorOverStyle",()=>fe(e.uid,"options")?.disableTogglingLegendItems===!0?"default":"pointer")}function gL(s,t){let{root:e}=s,i;if(Nk(t?.series))i=hX(s,t);else{let r=Re.new(e,{id:Ns(ba,s.uid),layout:e.verticalLayout}),a=t?.series?.[0].type===V.HeatSeries?{nameField:Ps.nameField,fillField:Ps.fillField,strokeField:Ps.strokeField,fillOpacityField:Ps.fillOpacityField,strokeOpacityField:Ps.strokeOpacityField}:{};i=hl.new(e,{...a,verticalScrollbar:cl.new(e,{orientation:"vertical"})}),s instanceof Rs?fX(i):i.valueLabels.template.setAll({forceHidden:!0,textAlign:"left"}),BX(s,i),Qk(s,r),xX(i),_X(i,s),wX({chart:s,legend:i,legendContainer:r}),SX(i,s),FX(i,s,ze(t?.series)),OX({legend:i,chart:s,seriesConfig:t?.series}),r.children.push(i),s.children.push(r)}return i}function EX(s){let t=fe(s.uid??NaN,"config"),e=t?.series[0].heatRulesType===Iu.Renderer,i=s.series.values[0].data.values.some(a=>a[Cr.valueField]===null||e&&!a[ht.rendererSymbolField]),r;if(i){let a=t?.series[0].emptyCells,n=a?.symbol?.color??q.heatChart.emptyCells?.symbol?.color,{outlineColor:o,outlineOpacity:l}=Tv(t?.series[0].gridLine);r={[Ps.nameField]:a?.text??q.heatChart.emptyCells?.text??"",[Ps.fillField]:Xt(n).color,[Ps.fillOpacityField]:Xt(n).opacity,[Ps.strokeField]:o,[Ps.strokeOpacityField]:l}}return r}function yL(s){let{chart:t,legend:e,showLegend:i}=s,r=Ii({childId:ba,parent:t});r&&(Zi(r,i),Zi(e,i))}function vL(s){let{chart:t,showLegend:e,legendConfig:i}=s;if(i){let{title:r,visible:a}=i,n=r!==void 0&&a!==!1&&r.visible!==!1,o=Ii({childId:ba,parent:t});if(o){let l=Ii({childId:Jn,parent:o});l&&(r?Zi(l,n):Zi(l,e))}}}function Wk(s){let{chart:t,chartConfig:e,legend:i,heatChartLegendUpdatedNeeded:r,showEmptySeries:a,seriesConfig:n,queryObject:o,heatRulesTypeChanged:l,heatLegendPositionChanged:h}=s,{legend:c,series:u}=e;if(Nk(n)&&r)l&&i&&(yL({chart:t,legend:i,showLegend:!1}),vL({chart:t,showLegend:!1,legendConfig:c})),dX({chart:t,chartConfig:e,heatLegendPositionChanged:h,heatRulesTypeChanged:l});else if(i instanceof hl&&(n?.[0].type===V.HeatSeries&&Zw(t),Ii({childId:ba,parent:t})!==void 0)){let d=ux(u)&&c!==void 0&&c.visible!==!1;if(yL({chart:t,legend:i,showLegend:d}),vL({chart:t,showLegend:d,legendConfig:c}),d){IX(i,c?.roundMarkers),kX({legend:i,legendConfig:c,chartType:ze(u),seriesConfig:n,chart:t}),jk(i,t,ze(u)),CX({chart:t,legend:i,chartConfig:e,showEmptySeries:a,queryObject:o}),LX(t,c),$c(t,i);let A=fe(t.uid,"options");$X(i,A?.disableTogglingLegendItems),t instanceof Rs&&vX({legend:i,chart:t,seriesConfig:n,legendConfig:c})}}}function MX(s){let{seriesConfig:t,series:e,sizePolicyChanged:i}=s,{sizePolicy:r}=t,a=e.get("heatRules")?.[0],n=Rt(e.uid,"bulletTemplate");if(n!==void 0)if(r!==void 0){let{scaleType:o,field:l,minSize:h,maxSize:c}=r,u=mF(),d=t.markerSymbol?.size??Kb().size??1,A=(h??u.minSize)/d,p=(c??u.maxSize)/d;a!==void 0?i&&(a.min=A,a.max=p,a.logarithmic=o===Hb.Logarithmic,e.set("valueField",l),e.markDirtySize()):e.setAll({valueField:l,calculateAggregates:!0,heatRules:[{target:n,key:"scale",min:A,max:p,dataField:"value",logarithmic:o===Hb.Logarithmic}]})}else e.get("heatRules")?.pop(),e.setAll({valueField:void 0,calculateAggregates:!1})}function nh(s){return s.get("id")===q.overlayId.scatterplotTrendLine}function RX(s){return s.series.values.find(t=>!nh(t))}function Xk(s){return s.series.values.find(t=>nh(t))}function UX(s){let{root:t,xAxis:e,yAxis:i,seriesConfig:r}=s,{x:a,y:n}=r,o=qt.new(t,{xAxis:e,yAxis:i,valueXField:a,valueYField:n,layer:q.zIndexes.scatterplotTrendLine});return o.set("id",q.overlayId.scatterplotTrendLine),hs(o.uid,{type:xr.Trendline}),o}function VX(s){let{markerSeries:t,options:e,queryObject:i}=s,r=Pt.new({});hs(t.uid,{bulletTemplate:r}),us(r,e?.selectionTheme),t.bullets.push(a=>{let n=ft.new(a,{nonScalingStroke:!0,tooltip:BA({series:t,tooltipFormatter:e?.tooltipFormatter})},r);return Do({element:n,series:t,queryObject:i}),e$(n,t),ma.new(a,{sprite:n})})}function NX(s){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:a,options:n,queryObject:o}=s,{x:l,y:h,id:c}=i,u=[],d=qt.new(t,{xAxis:r,yAxis:a,valueXField:l,valueYField:h,id:c,opacity:0,valueField:"value",maskBullets:!1,layer:q.zIndexes.bulletMarkers});d.strokes.template.set("forceHidden",!0),VX({markerSeries:d,options:n,queryObject:o}),TA(d,e),u.push(d);let A=UX({root:t,xAxis:r,yAxis:a,seriesConfig:i});return Hk(A),u.push(A),d.appear(),u}function HX(s){let{root:t,trendLineSeries:e,data:i,dataWasUpdated:r,seriesWereReinitialized:a,valueFormat:n,defaultR2Value:o,chartConfig:l}=s,{chart:h}=e,c=l.series[0],u=c.overlays?.trendLine,d=u?.symbol??{type:Dt.SLS},A=u?.created===!0&&u.visible!==!1;if(i&&(r||a)){let p=q.scatterplotSeries,m=h!==void 0?fe(h.uid,"formatLocale"):void 0,{x:f,y:g}=c;e.setAll({valueXField:f,valueYField:g}),e.data.setAll(i.trendLinePoints??q.scatterplotSeries.trendLinePoints);let y=Number.isFinite(i.r2)?vA({root:t,value:i.r2??p.r2,valueFormat:n,formatLocale:m}):void 0,x=y!==void 0?`R\xB2 = ${y}`:o;e.set("name",x)}d.color===void 0&&(d.color=bh({colorIndex:1})),So({element:e,lineSymbol:d,visible:A})}function QX(s){let{root:t,chartConfig:e,markerSeries:i}=s,r=i.chart;if(r){let a=e.series[0],n=Ol(e),o,l,h=Kb(),c=new Set;i.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");if(A!==void 0){let p=on({dataItem:d?.dataContext,seriesConfig:a,chartSubType:Ee.NonSpecific,colorMatch:n}),m=en({root:t,element:A,seriesSymbol:a.markerSymbol??h,rendererSymbol:p,colorMatch:n});o=m.symbolWithColorInfo,l=m.stylingInfo,pA(A,l),c.add(JSON.stringify(l))}}),o=c.size>1?void 0:o;let u=new Map;u.set(0,o),nn({data:u,htmlContainer:t.dom,chartId:i.chart?.get("id"),colorMatchApplied:PA(r)})}}function jX(s){let{dataWasUpdated:t,seriesWereReinitialized:e,data:i,series:r,chartConfig:a,loaderHandle:n}=s;if((t||e)&&i){let{x:o,y:l}=a.series[0];if(r.setAll({valueXField:o,valueYField:l}),r.events.once(Ai.DataValidated,()=>{n.hideLoader()}),a.series[0].type===V.ScatterSeries&&a.series[0].sizePolicy){let{field:h}=a.series[0].sizePolicy;i.dataItems=i.dataItems.sort((c,u)=>typeof u[h]=="number"&&typeof c[h]=="number"?u[h]-c[h]:0)}r.data.setAll(i.dataItems)}}function WX(s){let{root:t,chartConfig:e,seriesConfig:i,options:r,fieldList:a,series:n,trendLineSeries:o,data:l,dataWasUpdated:h,seriesWereReinitialized:c,sizePolicyChanged:u,loaderHandle:d,utilsStrings:A}=s,{axes:p}=e,{tooltipFormatter:m}=r??{};n.set("id",i.id);let f=Rt(n.uid,"bulletTemplate");f&&us(f,r?.selectionTheme),Zi(n.bulletsContainer,i.visible),HX({root:t,trendLineSeries:o,chartConfig:e,data:l,dataWasUpdated:h,seriesWereReinitialized:c,valueFormat:Xb(),defaultR2Value:A.notAvailable}),MX({seriesConfig:i,series:n,sizePolicyChanged:u}),oh(s)&&lh({styleCallback:QX,callbackProps:{root:t,chartConfig:e,markerSeries:n,dataWasUpdated:h},series:n,seriesConfig:i}),U4({axesConfig:p,seriesConfig:i,series:n,fieldList:a,tooltipFormatter:m}),jX({dataWasUpdated:h,seriesWereReinitialized:c,data:l,series:n,chartConfig:e,loaderHandle:d})}function XX(s){s.series.each(t=>{t instanceof qt?t.dataItems.forEach(e=>{let i=e.bullets?.[0];i&&na({element:i.get("sprite"),selected:!1,backToDefaultState:!0})}):t instanceof Li?t.columns.each(e=>{na({element:e,selected:!1,backToDefaultState:!0})}):t instanceof Hr&&t.slices.each(e=>{na({element:e,selected:!1,backToDefaultState:!0})})})}function zc(s){let{chart:t,selectionSource:e}=s,i=fe(t.uid,"currentSelectionDataItems");Kr(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),Nw(t)&&XX(t),i&&Mu({data:{selectionSource:e??Pr.ClearSelection},htmlContainer:t.root.dom})}function zk(s){let t=s?.selection.width();return t!==void 0&&t>0&&t!==2e7}function Do(s){let{element:t,series:e,queryObject:i}=s;t.events.on(Ai.PointerUp,async r=>{let{chart:a}=e;if(a){let n=a.get("cursor");if(!zk(n)){let o=fe(e.chart?.uid??Number.NaN,"actionMode");if(!fe(e.chart?.uid??Number.NaN,"filterBySelection")&&o!==Vt.None&&o!==Vt.Zoom){let l=r.target,h=v4(r,e);na({element:l,selected:_l(l.uid,"selected")!==!0}),h&&a.series.each(c=>{c instanceof qt?c.dataItems.forEach(u=>{let d=u.bullets?.[0]?.get("sprite");d!==l&&na({element:d,selected:!1})}):c instanceof Li?c.columns.each(u=>{u!==l&&na({element:u,selected:!1})}):c instanceof Hr&&c.slices.each(u=>{u!==l&&na({element:u,selected:!1})})}),await Jw({chart:a,selectionSource:Pr.SelectionByClick,queryObject:i})}}}})}function bL(s,t){let e=Number.NaN,i=Number.NaN;if(s instanceof ml){let r=t.get("renderer")instanceof Us,a=s.getPrivate(r?"downPositionX":"downPositionY"),n=s.getPrivate(r?"positionX":"positionY");if(a!==void 0&&n!==void 0)if(t instanceof Sr)e=t.axisPositionToIndex(t.toAxisPosition(a)),i=t.axisPositionToIndex(t.toAxisPosition(n));else if(t instanceof yr){e=t.positionToDate(t.toAxisPosition(a)).getTime(),i=t.positionToDate(t.toAxisPosition(n)).getTime();let o=t.getPrivate("baseInterval"),l=Sc.getDuration(o.timeUnit,o.count)*(t.chart?.series.getIndex(0)?.get("locationX")??1);e-=l,i-=l}else t instanceof di&&(e=t.positionToValue(t.toAxisPosition(a)),i=t.positionToValue(t.toAxisPosition(n)))}else{let r=t.get("renderer")instanceof ls,a=s.getPrivate(r?"downPositionX":"downPositionY"),n=s.getPrivate(r?"positionX":"positionY");a!==void 0&&n!==void 0&&(e=a*(r?t.width():t.height()),i=n*(r?t.width():t.height()))}return{value1:e,value2:i}}function zX(s){let t=()=>{let e=s instanceof Ci?s.get("cursor"):void 0,i=fe(s.uid,"filterBySelection");(e===void 0||!zk(e))&&!i&&zc({chart:s})};s.get("background")?.events.on(Ai.Click,t),s instanceof Ci&&s.plotContainer.events.on(Ai.PointerUp,t)}function GX(s){let{series:t,cursorBounds:e,multiSelect:i}=s,r=fe(t.chart?.uid??NaN,"config"),a=ze(r?.series);t.columns.each(n=>{let o=n.get("x"),l=n.get("y"),h=n.height()<0&&a!==V.HeatSeries,c=h?Math.abs(n.height()):n.height();if(typeof o=="number"&&typeof l=="number"){let u=h?l-c:l,d={left:o,right:o+n.width(),top:u,bottom:u+c};if(a===V.HeatSeries){let p=d.top;d.top=d.bottom,d.bottom=p}let A=!(d.left>e.right||d.right<e.left||d.top>e.bottom||d.bottom<e.top)||i&&_l(n.uid,"selected")===!0;na({element:n,selected:A})}})}function YX(s){let{series:t,cursorBounds:e,multiSelect:i}=s;t.dataItems.forEach(r=>{let a=r.bullets?.[0]?.get("sprite");if(a){let n=r.bullets?.[0]?.get("sprite").get("x"),o=r.bullets?.[0]?.get("sprite").get("y"),l=typeof n=="number"&&typeof o=="number"&&n>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom||i&&_l(a.uid,"selected")===!0;na({element:a,selected:l})}})}function KX(s){let{xAxis:t,series:e,cursorBounds:i,multiSelect:r}=s;e.dataItems.forEach(a=>{let n=a.bullets?.[0]?.get("sprite");if(n){let o=a.dataContext,l=a.get("valueX"),h=a.get("valueY");if(t instanceof Sr){let A=o?.[q.xAxisField];typeof A=="string"&&(l=t.categoryToIndex(A))}let c=typeof l=="number"&&l>=i.left&&l<=i.right,u=typeof h=="number"&&h>=i.top&&h<=i.bottom,d=c&&u||r&&_l(n.uid,"selected")===!0;na({element:n,selected:d})}})}function ZX(s){let{cursor:t,xAxis:e,yAxis:i}=s,r=t.get("behavior"),{value1:a,value2:n}=bL(t,e),{value1:o,value2:l}=bL(t,i),h={left:a>n?n:a,right:a>n?a:n,top:o<l?o:l,bottom:o<l?l:o};return r==="selectX"?(h.top=Number.NEGATIVE_INFINITY,h.bottom=Number.POSITIVE_INFINITY):r==="selectY"&&(h.right=Number.POSITIVE_INFINITY,h.left=Number.NEGATIVE_INFINITY),h}function qX(s,t){s.get("cursor")?.events.on(Ai.SelectEnded,async e=>{let i=fe(s.uid,"actionMode");if(i===Vt.MultiSelection||i===Vt.MultiSelectionWithCtrlKey){let r=s.xAxes.getIndex(0),a=s.yAxes.getIndex(0);if(r&&a){let n=fe(s.uid,"config"),o=ze(n?.series),l=s.get("cursor"),h=ZX({cursor:l,xAxis:r,yAxis:a}),c=pk(e);s.series.each(u=>{!nh(u)&&!Gf(u)&&(u instanceof Li?GX({series:u,cursorBounds:h,multiSelect:c}):u instanceof qt&&(o===V.RadarSeries?KX({xAxis:r,series:u,cursorBounds:h,multiSelect:c}):YX({series:u,cursorBounds:h,multiSelect:c})))}),Zi(l.selection,!1),await Jw({chart:s,selectionSource:Pr.SelectionByRange,queryObject:t})}}})}function JX(s){let{series:t,labelDefaults:e,externalDataLabelFormatter:i,seriesType:r}=s;t.bullets.push(()=>{let a=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??s.dataLabelsConfig,n=ma.new(t.root,{locationY:1,sprite:Zt.new(t.root,{populateText:!0,oversizedBehavior:"hide",centerY:ge,centerX:Qe,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(a?.content.color).color,fontSize:a?.content.font?.size})}),o=n.get("sprite");return o&&(Gk({dataLabel:o,series:t,externalDataLabelFormatter:i}),t.chart&&a?.visible&&mk({label:o,chart:t.chart,seriesType:r}),jv({...s,dataLabel:o,dataLabelsConfig:a,labelDefaults:e,defaultDataLabelFormatter:Yk})),n})}function Gk(s){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=s;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";Nf({label:t,labelOutputProp:r}),t.adapters.add(r,(a,n)=>{let o=a??"",l=Rt(e.uid,"histogramDataLabelFormatter"),h=n.dataItem;if(h&&"dataContext"in h&&h.dataContext!==void 0&&l!==void 0){let{count:c,minValue:u,maxValue:d}=h.dataContext;o=l(c,u,d)}return r==="html"?Mr(o):o})}function Yk(s){let{numberFormatter:t,dataLabelsConfigContent:e,externalDataLabelFormatter:i}=s;return(r,a,n)=>_a({textSymbol:{...e,text:t.format(r)},format:i===void 0?"amChartsV5":"html"})}function ez(s){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=s;t.dataItems.forEach(r=>{let a=r.bullets?.[0];if(a){let n=a.get("sprite");n&&n instanceof Zt&&(Gk({dataLabel:n,series:t,externalDataLabelFormatter:i}),jv({...s,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:Yk,externalDataLabelFormatter:i}))}})}function Kk(s){let{series:t,dataLabelsConfig:e}=s,i=e?.visible,r=t.bullets.hasIndex(0);i!==!0?r&&Qw(t,0):(r||JX(s),ez(s))}function Gf(s){return[q.overlayId.histogramMean,q.overlayId.histogramMedian,q.overlayId.histogramStdDev,q.overlayId.histogramNormalDistribution].includes(s.get("id")??"")}function tz(s){let t="";switch(s){case xr.Mean:t=q.overlayId.histogramMean;break;case xr.Median:t=q.overlayId.histogramMedian;break;case xr.StdDev:t=q.overlayId.histogramStdDev;break;case xr.Normal:t=q.overlayId.histogramNormalDistribution;break}return t}function iz(s){let{series:t,seriesConfig:e,colorMatch:i,rendererSymbol:r}=s,{root:a}=t,n=t.chart;if(n){let o=e.fillSymbol??gF(),l=en({root:t.root,element:t.columns.template,seriesSymbol:o,rendererSymbol:r,colorMatch:i,isChartFillSymbol:!0}).symbolWithColorInfo;if(l!==void 0){let h=new Map;h.set(0,l),nn({data:h,htmlContainer:a.dom,chartId:n.get("id"),colorMatchApplied:PA(n)})}}}function rz(s){let{series:t,data:e,dataWasUpdated:i,seriesWereReinitialized:r,loaderHandle:a}=s;e&&(i===!0||r===!0)&&(t.events.once(Ai.DataValidated,()=>{a.hideLoader()}),t.data.setAll(e.bins))}function mv(s){let{root:t,xAxis:e,yAxis:i,type:r,utilsStrings:a}=s,n=qt.new(t,{id:tz(r),valueXField:"x",valueYField:"y",xAxis:e,yAxis:i,visible:!1});return r===xr.Normal&&FA(n,a.overlays.normal),hs(n.uid,{isOverlay:!0,type:r}),n.set("connect",!1),n.appear(),n}function sz(s){let{root:t,seriesConfig:e,xAxis:i,yAxis:r,options:a,chartConfig:n,queryObject:o}=s,{id:l,name:h}=e,c=Li.new(t,{id:l,name:h,xAxis:i,yAxis:r,categoryXField:od.Start,valueYField:od.Count,maskBullets:!1});return us(c.columns.template,a?.selectionTheme),Do({element:c.columns.template,series:c,queryObject:o}),c.columns.template.setAll({width:ge}),Kk({yAxisValueFormat:n.axes?.[1]?.valueFormat,series:c,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:a?.dataLabelFormatter}),TA(c,n),c.appear(),c}function az(s){let{root:t,seriesConfig:e,xAxis:i,xAxisForOverlaySeries:r,yAxis:a,utilsStrings:n,options:o,chartConfig:l,queryObject:h}=s,c=[],u=sz({root:t,seriesConfig:e,xAxis:i,yAxis:a,options:o,chartConfig:l,queryObject:h});return c.push(u),Ww(u,o?.tooltipFormatter),r&&(c.push(mv({root:t,xAxis:r,yAxis:a,type:xr.Mean,utilsStrings:n})),c.push(mv({root:t,xAxis:r,yAxis:a,type:xr.Median,utilsStrings:n})),c.push(mv({root:t,xAxis:r,yAxis:a,type:xr.StdDev,utilsStrings:n})),c.push(mv({root:t,xAxis:r,yAxis:a,type:xr.Normal,utilsStrings:n}))),c}function nz(s){let{lineSeries:t,overlayConfig:e,data:i,utilsStrings:r}=s;if(!e)Zi(t,!1);else{let{symbol:a,created:n,visible:o}=e,l=Rt(t.uid,"type"),h=a??{type:Dt.SLS};if(e.symbol?.color===void 0&&(h.color=bh({colorIndex:cx(l),histogramOverlays:!0})),So({element:t,lineSymbol:h,visible:n===!0&&o!==!1}),i&&"bins"in i){let u=i.bins.map(x=>x.count),d=Math.max(...u),{mean:A,stddev:p,median:m}=i,f=A-p,g=A+p,y=[];switch(l){case xr.Mean:y=[{x:A,y:0},{x:A,y:d}];break;case xr.Median:y=[{x:m,y:0},{x:m,y:d}];break;case xr.StdDev:y=[{x:f,y:0},{x:f,y:d},{x:null,y:null},{x:g,y:0},{x:g,y:d}];break}t.data.setAll(y)}let c=t.data.getIndex(0)?.x;if(l===xr.StdDev&&(c=i?.stddev??Rt(t.uid,"stddev"),hs(t.uid,{stddev:c})),typeof c=="number"){let u=l;switch(l){case xr.Mean:u=r.overlays.mean;break;case xr.Median:u=r.overlays.median;break;case xr.StdDev:u=r.overlays.stdDev;break}let d=fe(t.chart?.uid??Number.NaN,"formatLocale"),A=vA({root:t.root,value:c,valueFormat:Xb(),formatLocale:d}),p=`${u}: ${A}`;FA(t,p)}}}function oz(s){let{lineSeries:t,overlayConfig:e,data:i,numberOfPoints:r}=s;if(!e)Zi(t,!1);else{let{symbol:a,created:n,visible:o}=e,l=a??{type:Dt.SLS};if(e?.symbol?.color===void 0&&(l.color=bh({colorIndex:cx(xr.Normal),histogramOverlays:!0})),So({element:t,lineSymbol:l,visible:n===!0&&o!==!1}),i&&"bins"in i){let{mean:h,stddev:c,min:u,max:d}=i,A=y4(i.bins),p=m4(u,d,r??q.histogramSeries.normalDistribNumberOfPoints).map(m=>({x:m,y:g4({x:m,mean:h,stddev:c,scalingFactor:A})}));t.data.setAll(p)}}}function lz(s){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,data:a,loaderHandle:n,options:o}=s;t.set("id",e.id),Zi(t,e.visible),us(t.columns.template,o?.selectionTheme),xu(t.columns.template,a?.bins?.length),FA(t,e.name);let l=a?.bins.find(h=>"symbol"in h)?.symbol;oh(s)&&lh({styleCallback:iz,callbackProps:{...s,rendererSymbol:l},series:t,seriesConfig:e}),rz({series:t,seriesWereReinitialized:i,dataWasUpdated:r,data:a,loaderHandle:n})}function hz(s){let{allChartSeries:t,seriesConfig:e,data:i,utilsStrings:r,fieldList:a,axes:n,options:o,dataLabelFormatter:l,chartConfig:h}=s,{tooltipFormatter:c}=o??{};for(let u=0;u<t.length;u++){let d=t[u];if(d instanceof qt&&Rt(d.uid,"isOverlay")){let A=Rt(d.uid,"type");if(A===xr.Normal)oz({lineSeries:d,overlayConfig:e.overlays?.comparisonDistribution,data:i});else{let p;switch(A){case xr.Mean:p=e.overlays?.mean;break;case xr.Median:p=e.overlays?.median;break;case xr.StdDev:p=e.overlays?.standardDeviation;break}nz({lineSeries:d,overlayConfig:p,data:i,utilsStrings:r})}}else d instanceof Li&&(lz({...s,series:d}),Kk({series:d,yAxisValueFormat:h.axes?.[1]?.valueFormat,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:l}),I4({axes:n,series:d,seriesConfig:e,fieldList:a,tooltipFormatter:c,utilsStrings:r,axesConfig:h.axes}))}}function uz(s){let t="";return s instanceof ya?t=s.get("categoryXField")??s.get("valueXField")??"":s instanceof Hr&&(t=s.get("categoryField")??""),t}function cz(s){let t="";return s instanceof ya?t=s.get("categoryYField")??s.get("valueYField")??"":s instanceof Hr&&(t=s.get("categoryField")??""),t}function Yf(s){let t="",{chart:e}=s;return e!==void 0&&(t=fe(e.uid,"isRotated")===!0?uz(s):cz(s)),t}function dz(s){dx(),ex(s.root.dom),zc({chart:s})}function Az(s){let{chart:t,chartType:e,showMean:i}=s;return t.series.values.filter(r=>{let a=!0;return nh(r)||Gf(r)||Rt(r.uid,"isOverlay")===!0?a=!1:e===V.BoxPlotSeries&&(i?a=Rt(r.uid,"isBoxPlotMeanLineSeries")===!0:a=r instanceof Ia),a}).every(r=>Rt(r.uid,"isSelectionApplied")===!0)}function pz(s){s.series.each(t=>hs(t.uid,{isSelectionApplied:void 0}))}function fz(s){let t=[];if(!nh(s)&&!Gf(s))switch(!0){case s instanceof Hr:t=s.slices.values;break;case s instanceof Li:let{chart:e}=s;if(e){let i=fe(e.uid,"config");if(i){let r=ze(i?.series),a=[];r===V.HistogramSeries?a=[od.Count]:r===V.HeatSeries?a=[Cr.valueField]:a=No(i?.series,[s.get("id")??""]),t=s.columns.values.filter(n=>{let o=!1,l=n.dataItem?.dataContext;return l&&(o=r===V.HeatSeries||a.some(h=>h in l&&Number.isFinite(l[h]))),o})}}break;case s instanceof qt:t=Array.from(s.dataItems.values());break}return t}function Zk(s,t){let e=fe(s.uid,"actionMode");(e===Vt.MonoSelection||e===Vt.None)&&t.length>1?zc({chart:s}):t.forEach(i=>{na({element:i,selected:!0})})}function mz(s){let{chart:t,selectionIndexes:e,queryObject:i}=s,r=[],a=[],n=fe(t.uid,"config"),o=Ro(n),l=No(n?.series??[]),h=It(n?.series),c=ze(n?.series);return t.series.each((u,d)=>{if(n&&u.get("visible")===!0&&u.get("id")!==q.overlayId.scatterplotTrendLine){let A=n.series[0].x,p=Yf(u),m=e.get(d);if(m!==void 0){let f;if(u instanceof qt&&(f=u.dataItems.map(g=>g?.bullets?.[0]?.get("sprite")).filter(g=>g!==void 0)),f!==void 0){let{indexesToSelect:g}=m;f.forEach((y,x)=>{if(g===void 0||g.includes(x)){let w=sh({dataContext:y.dataItem?.dataContext,yList:l,yAxisField:p,xAxisField:A,chartType:c,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Uo(i)});w!==void 0&&r.push(w),a.push(y)}else na({element:y,selected:!1})})}}}}),Zk(t,a),r}function gz(s){let{chart:t,chartConfig:e,options:i,elementsToApplySelectionTo:r,selectionDataItems:a,layerOidField:n,xAxisField:o,yAxisField:l,splitBy:h,queryObject:c}=s,u=ze(e.series),d=It(e.series),A=Ro(e),p=[],m=[],f=[],g=No(e.series);return r.forEach((y,x)=>{let w=y instanceof gr||y instanceof ga?y:y.bullets?.[0]?.get("sprite");if(w!==void 0){let S=y instanceof gr||y instanceof ga?w.dataItem?.dataContext:y.dataContext;if(S!==void 0&&u===V.BoxPlotSeries&&S[q.boxPlot.boxPlotOutlierId]!==!0&&(S=sh({dataContext:S,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Uo(c)})),Lv({elementDataContext:S,options:i,selectionDataItems:a,layerOidField:n,xAxisField:o,yAxisField:l,chartType:u,splitBy:h,chartSubType:d,showOutliers:A}))if(p.push(w),m.push(x),w?.dataItem instanceof Xa&&S!==void 0)f.push(S);else{let D=new Set;u===V.PieSeries&&ah(S)?(Hf({groupOfSlicesDataContext:S})??[]).forEach(T=>{a.forEach(L=>{_w({layerOidField:n,sliceDataContext:T,selectionDataContext:L,xAxisField:o})&&D.add(T)})}):D.add(S),Array.from(D)?.forEach(T=>{let L=sh({dataContext:T,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Uo(c)});L!==void 0&&f.push(L)})}else na({element:w,selected:!1})}}),Zk(t,p),{selectedIndexes:m,newSelectionDataItems:f}}function yz(s){let{series:t,seriesIndex:e,queryObject:i,dataWasUpdated:r,sortChanged:a,groupOfSlicesWasUpdated:n,xAxisField:o,yAxisField:l,splitBy:h,rotationChanged:c}=s,{chart:u}=t;if(u instanceof Ts){let d=fe(u.uid,"options"),{filterBySelection:A,selectionData:p,returnSelectionIndexes:m,returnSelectionOIDs:f}=d??{},{selectionIndexes:g}=p??{},y=fe(u.uid,"config"),x=Ca(y),w=ze(y?.series),S=It(y?.series),D=fz(t);if(A!==!0&&y!==void 0){let T=Ys(i),L=_h(T).idField,$=fe(u.uid,"currentSelectionDataItems"),I=!1,R=!1,F,H=!1;if(D?.[0]!==void 0){if(d?.viewExtentUpdated!==!0){F=d?.selectionData?.selectionItems??$;let K=fe(u.uid,"currentSelectionIndexes");H=xx({itemsA:F,itemsB:$,isPieFromFields:S===Ee.PieFromFields,x:o,y:l,outStatisticFieldName:y.series[0].query?.outStatistics?.[0]?.outStatisticFieldName});let z=g?.keys.length!==K?.keys.length||!Ll(g,K);I=a===!0||r===!0||n===!0||c===!0||F!==void 0&&H;let ee=!0;if(g!==void 0&&g.size>0){let{indexesToSelect:ie}=g.get(e??0)??{};ee=ie!==void 0&&ie[0]===void 0}R=r===!0||n===!0||c===!0||!ee&&z}if(I&&F!==void 0&&F.length>0){let{selectedIndexes:K,newSelectionDataItems:z}=gz({chart:u,chartConfig:y,options:d,elementsToApplySelectionTo:D,selectionDataItems:F,layerOidField:L,xAxisField:o,yAxisField:l,splitBy:h,queryObject:i}),ee=fe(u.uid,"computedSelectionDataItems")??[];if(ee.push(...z),y.series.length>1&&S!==Ee.BarAndLineNoAggregation&&S!==Ee.BarAndLineSplitByNoAggregation&&(ee=Cx({data:ee,x:y.series[0].x,splitByField:Vo(y.series[0].query?.where)})),Kr(u.uid,{computedSelectionDataItems:ee}),m===!0){let ie=Array.from(new Set(K)),de=fe(u.uid,"computedSelectionIndexes");de===void 0&&(de=new Map),ie.length===D.length?de.set(e??0,{}):de.set(e??0,{indexesToSelect:ie}),Kr(u.uid,{computedSelectionIndexes:de})}}else if(g!==void 0&&R)F=mz({chart:u,selectionIndexes:g,queryObject:i});else{let K=z=>{let ee=z.dataItem?.dataContext;return Lv({elementDataContext:ee,options:d,selectionDataItems:F??$??[],layerOidField:L,xAxisField:o,yAxisField:l,chartType:w,splitBy:h,chartSubType:S})};D.forEach(z=>{let ee=z instanceof gr||z instanceof ga?z:z.bullets?.[0]?.get("sprite");ee!==void 0&&na({element:ee,selected:_l(ee.uid,"selected")===!0||K(ee),backToDefaultState:F===void 0||F.length===0})})}}if(hs(t.uid,{isSelectionApplied:!0}),Az({chart:u,chartType:w,showMean:x})&&(pz(u),H||R)){let K=fe(u.uid,"computedSelectionDataItems")??F;K=Array.from(new Set(K?.map(ee=>JSON.stringify(ee)))).map(ee=>JSON.parse(ee)),F!==void 0&&Kr(u.uid,{currentSelectionDataItems:K}),p?.selectionOIDs!==void 0&&Kr(u.uid,{currentSelectionOIDs:p.selectionOIDs});let z;if(m===!0&&(z=fe(u.uid,"computedSelectionIndexes")??g,z!==void 0&&Kr(u.uid,{currentSelectionIndexes:z})),K===void 0||K.length===0)zc({chart:u,selectionSource:Pr.ProgrammaticSelection});else{let ee={selectionItems:K,selectionSource:Pr.ProgrammaticSelection};m===!0&&(ee.selectionIndexes=z),f!==!1&&(ee.selectionOIDs=p?.selectionOIDs??fe(u.uid,"currentSelectionOIDs")),Mu({data:ee,htmlContainer:u.root.dom})}Kr(u.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}}function vz(s){let{chart:t,chartConfig:e,queryObject:i}=s;!fe(t.uid,"filterBySelection")&&!Gs(i)&&t.series.values.filter(r=>!nh(r)&&!Gf(r)).forEach(r=>{let{seriesConfig:a,seriesIndex:n}=Gv(r,e);if(a){let o=a.x,l=a.type===V.BoxPlotSeries||a.type===V.HeatSeries?a.y.toString():Yf(r),h=a.query?.where??"";bz({callbackProps:{...s,series:r,seriesIndex:n,xAxisField:o,yAxisField:l,splitBy:h},series:r,seriesConfig:a})}})}async function Jw(s){let{chart:t,selectionSource:e,queryObject:i}=s,r=fe(t.uid,"config"),a=Gs(i);if(r){let n=fe(t.uid,"options"),o=ze(r.series),l=It(r.series),h=Ro(r),c=No(r.series),u=r.series[0].x,d=dd(i),A=a?void 0:Ym(Ys(i))?.dateFieldsTimeZone,p=kl(r)?r.outTimeZone:void 0,m=ln(i).find(f=>f.name===u)?.type;try{let f=new Set,g=[],y=new Map,x=[],w=[],S=0;if(t.series.each((D,T)=>{let{seriesConfig:L}=Gv(D,r),$=L?.query?.where??"",I=L?.type===V.BoxPlotSeries?L.y.toString():Yf(D),R;D instanceof qt?R=D.dataItems:D instanceof Li?R=D.columns.values:D instanceof Hr&&(R=D.slices.values),R?.forEach((F,H)=>{let K=F instanceof gr||F instanceof ga?F:F.bullets?.[0]?.get("sprite");if(K!==void 0&&_l(K.uid,"selected")===!0){S+=1;let z=F instanceof gr||F instanceof ga?F.dataItem?.dataContext:F.dataContext;if(z!==void 0){if(z=sh({dataContext:z,yAxisField:I,yList:c,xAxisField:u,splitBy:$,chartType:o,chartSubType:l,showOutliers:h,isFeatureCollectionLayer:Uo(i)}),f.has(JSON.stringify(z))||(f.add(JSON.stringify(z)),g.push(z)),H!==void 0){let ie=y.get(T)?.indexesToSelect??[];ie.push(H),y.set(T,{indexesToSelect:Array.from(new Set(ie))})}let ee=z[Eu.uniqueIdsName]!==void 0?[z[Eu.uniqueIdsName]].flat():[];if(ee.length>0)w.push(...ee);else if(!a&&n?.returnSelectionOIDs!==!1){let ie=_x({dataContext:z,options:n,xAxisField:u,yAxisField:I??"",splitBy:$,xAxisFieldType:m,chartConfig:r,outTimeZone:p,dataTimeZone:A,runsOnClientQueryEngine:d,queryObject:i});x.push(ie)}}}})}),S===0)zc({chart:t,selectionSource:e});else{if(!a&&n?.returnSelectionOIDs!==!1&&x.length>0){let T={...fe(t.uid,"queryConfig")};delete T.groupByFieldsForStatistics,delete T.orderByFields,delete T.outStatistics;let L=await aI({whereList:x,queryObject:i,queryConfig:T});if(x.length===S)w=L;else for(let $=0;$<L.length;$+=1)w.push(L[$])}w=Array.from(new Set(w)),Kr(t.uid,{currentSelectionDataItems:g,currentSelectionOIDs:w,currentSelectionIndexes:y});let D={selectionItems:g,selectionSource:e};n?.returnSelectionIndexes===!0&&(D.selectionIndexes=y),n?.returnSelectionOIDs!==!1&&(D.selectionOIDs=w),a&&(D.selectionPixelTarget=DF({chartConfig:r,layer:i,selectionDataItems:g})),Mu({data:D,htmlContainer:t.root.dom})}}catch(f){Kr(t.uid,{pendingSelectionQueries:!1});let{httpStatus:g}=f instanceof Ln?f.details.details:f.details??{};if(g===429)dz(t);else throw f}Kr(t.uid,{pendingSelectionQueries:!1})}}function SA(s,t){let{y:e,query:i}=t,r=It(s.series)===Ee.BarAndLineSplitByNoAggregation?`${e.toString()}_${Ch({where:i?.where,keepSurroundingQuotes:!1,escape:!1})}`:[e].flat()[0],a=q.xAxisField,n=s.rotated===!0?"categoryYField":"categoryXField",o=s.rotated===!0?"valueYField":"valueXField",l=s.axes?.[0]?.valueFormat?.type===V.CategoryAxisFormat?n:o,h=s.rotated===!0?"valueXField":"valueYField";return{xField:a,yField:r,xAxisField:l,yAxisField:h}}function oh(s){let{chartConfig:t,seriesWereReinitialized:e,dataWasUpdated:i,colorMatchChanged:r,seriesStyleChanged:a,sortChanged:n,groupOfSlicesUpdateNeeded:o,stackedTypeChanged:l}=s,h=t.series.length===1,c=ze(t.series),u=!!(e||i||r||a||l),d=!1;switch(c){case V.BarSeries:d=!!(h&&n);break;case V.PieSeries:d=!!(o||n);break}return u||d}function qk(s){let{series:t,callbackInfo:e,seriesConfig:i}=s,r=n=>{let{type:o,callbackProps:l}=n;o==="selection"?yz(l):(Zi(t,i.visible),n.styleCallback(l))},a=fe(t.chart?.uid??Number.NaN,"config");switch(!0){case t instanceof wo:t.events.once(Ai.DataValidated,()=>r(e));break;case t instanceof Li:{let n=t.root.events.on(Ai.FrameEnded,()=>{t.columns.length===t.dataItems.length&&(n.dispose(),r(e))})}break;case t instanceof qt:{let n=Rt(t.uid,"bulletTemplate");if(n)if(ze(a?.series??[i])===V.ScatterSeries){let o=t.root.events.on(Ai.FrameEnded,()=>{n.entities.length===t.data.length&&t.dataItems[t.dataItems.length-1]?.bullets?.[0]?.get("sprite")&&(o.dispose(),r(e))})}else{let o=t.root.events.on(Ai.FrameEnded,()=>{let l=Yf(t)??"",h=a?.series[0]?.x??"";t.dataItems.filter(c=>{let u=c.dataContext;return l in u&&h in u&&u[h]!==void 0}).every(c=>!Number.isFinite(c.dataContext[l])||c?.bullets?.[0]?.get("sprite"))&&(o.dispose(),r(e))});e.type==="style"&&r(e)}}break;default:r(e);break}}function bz(s){let{series:t,callbackProps:e,seriesConfig:i}=s;qk({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i})}function lh(s){let{series:t,styleCallback:e,callbackProps:i,seriesConfig:r}=s;qk({callbackInfo:{styleCallback:e,callbackProps:i,type:"style"},series:t,seriesConfig:r})}function Jk(s){let t;return s&&s.series.length>0&&(t=s.series.values.map(e=>e.get("visible")!==!1?`${e.get("id")}`:"").filter(e=>e!=="")),t}function eB(s){let{series:t,chartConfig:e,isRotated:i}=s,r=Ua(e),a=e.series[0],n=t.chart?.xAxes.getIndex(0),o=t.chart?.yAxes.getIndex(0),l=i&&(r===Gi.Stacked||r===Gi.Stacked100)?o:n;switch(r){case Gi.Stacked:{t.setAll({stacked:!0,valueYShow:"valueYWorking",valueXShow:"valueXWorking",baseAxis:l}),t instanceof qt&&t.set("stackToNegative",a.stackNegativeValuesToBaseline??q.lineSeries.stackNegativeValuesToBaseline);break}case Gi.Stacked100:{t.setAll({stacked:!0,baseAxis:l}),i===!0?(t.setAll({valueXShow:"valueXTotalPercent"}),n instanceof di&&n.set("calculateTotals",!0)):(t.setAll({valueYShow:"valueYTotalPercent"}),o instanceof di&&o.set("calculateTotals",!0));break}case Gi.Side:default:{t.setAll({stacked:!1,valueYShow:"valueYWorking",valueXShow:"valueXWorking"});break}}}function FA(s,t){s.set("name",t)}function xz(s){let{chart:t,chartType:e,rotated:i,assignToSecondValueAxis:r}=s,a=t.xAxes.getIndex(0),n=t.yAxes.getIndex(0),o=[a,n,t.xAxes.getIndex(1)??t.yAxes.getIndex(1)],l,h;i!==!0?(l=o[0],h=r===!0&&o[2]?o[2]:o[1]):(l=r===!0&&o[2]?o[2]:o[0],h=o[1]);let c=e===V.HistogramSeries?t.xAxes.getIndex(1):void 0;return{xAxis:l,xAxisForHistogramOverlaySeries:c,yAxis:h}}function TA(s,t){let{series:e}=t,i=ze(e);s instanceof Li&&(s.columns.template.setAll({hoverOnFocus:!0}),i===V.HeatSeries?s.columns.template.set("ariaLabel",wz()):s.columns.template.set("ariaLabel",tp()))}function xu(s,t){s&&s.set("focusable",(t??0)<q.focusableThreshold)}function _z(s){let{currentChartSeriesCount:t,chartConfig:e,dataUpdateDetails:i,seriesCompositionChanged:r,seriesFilteredOut:a,sizePolicyChangesRequireSeriesReinit:n}=s,o=!1;switch(ze(e.series)){case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:o=a||r||i?.common?.numberOfSeriesChanged===!0||t!==e.series.length;break;case V.ScatterSeries:o=n===!0;break}return o}function tB(s){let{chartConfig:t,series:e,seriesIndex:i,queryObject:r}=s,a=t.series[i];if(a){let n=It(t.series),o=a.name;if(n===Ee.BarAndLineSplitBy||n===Ee.BarAndLineSplitByNoAggregation){let l=Vo(a.query?.where);o=Zm({queryObject:r,fieldName:l,fieldValue:o})??o}FA(e,o)}}function Gv(s,t){let e=ze(t?.series),i,r;return t?.series.forEach((a,n)=>{let o=!1;e!==V.BoxPlotSeries||s instanceof Ia?o=s.get("id")===a.id:s instanceof wo?o=s.get("id")?.replace(`_${Wi.Top}`,"")===a.id||s.get("id")?.replace(`_${Wi.Median}`,"")===a.id||s.get("id")?.replace(`_${Wi.Bottom}`,"")===a.id:s instanceof qt&&(o=s.get("id")?.replace(`_${Wi.Outliers}`,"")===a.id),o&&(i=a,r=n)}),{seriesConfig:i,seriesIndex:r}}function Cz(s,t){let{chart:e}=t;if(e instanceof Ci){let i=t.get("xAxis"),r=t.get("yAxis"),a=s.dataItem?.get("valueX"),n=s.dataItem?.get("valueY");if(typeof a=="number"&&typeof n=="number"){let o=i?.getPrivate("min",0),l=i?.getPrivate("max",0),h=r?.getPrivate("min",0),c=r?.getPrivate("max",0),u=i?.get("start",0),d=i?.get("end",1),A=r?.get("start",0),p=r?.get("end",1),m=o+u*(l-o),f=o+d*(l-o),g=h+A*(c-h),y=h+p*(c-h),x=a<m||a>f||n<g||n>y;s.set("forceHidden",x)}}}function e$(s,t){let e=(i,r)=>{r!==void 0&&Cz(r,t)};s.on("x",e),s.on("y",e)}function PA(s,t){let e=t;e===void 0&&(e=fe(s.uid,"config"));let i=fe(s.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function bA(s,t){s.set("turboMode",t===!0)}function wz(){return`{${Cr.xField}} {${Cr.yField}} {${Cr.valueField}}`}function t$(s){let{root:t,intlOptions:e,formatLocale:i,overridePercentMultiplication:r}=s,a=Zn({root:t,intlOptions:e,type:V.NumberAxisFormat,formatLocale:i});return n=>{let o=`${n}`;if(a!==void 0&&n!==null&&!(n instanceof Date)){let l=typeof n=="number"?n:Fx(n,a.get("intlLocales"));r===!0&&e.style==="percent"&&(l/=100),o=a.format(l)}else n instanceof Date&&(o=n.toLocaleString(void 0,e));return o}}function Bz(s){let{axis:t,intlOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=s,{chart:a,root:n}=t,o=a!==void 0?fe(a.uid,"formatLocale"):void 0,l=r??t$({root:n,intlOptions:e,formatLocale:o,overridePercentMultiplication:i});return wA(t.uid,{numberFormatter:l}),l}function Sz(s){let{chart:t,formatOptions:e,isNonAggregatedChart:i}=s,{root:r}=t;return a=>{let n=a??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(typeof a=="number"&&e.type===V.NumberAxisFormat)n=t$({root:r,intlOptions:e.intlOptions,formatLocale:o})(a);else if(i===!0&&e.type===V.DateAxisFormat)n=Zn({root:r,type:V.DateAxisFormat,intlOptions:e.intlOptions,formatLocale:o}).format(n,e.intlOptions);else if(e.type===V.CategoryAxisFormat){let h=It(l?.series);if([Ee.BoxPlotMonoField,Ee.BoxPlotMultiFields,Ee.BoxPlotMonoFieldAndSplitBy,Ee.BoxPlotMultiFieldsAndSplitBy,Ee.BarAndLineFromFields].includes(h)&&typeof a=="string"){let u=fe(t.uid,"fieldList");a=Er(u,a)}let{characterLimit:c}=e;n=a?.toString()??"",!Yi(n)&&n!==q.htmlEmptyContent&&(n=ax({stringToTruncate:n,characterLimit:c}))}return n.toString()}}function Fz(s){let{chart:t,isXAxis:e=!0,formatOptions:i}=s,{root:r}=t;return a=>{let n=a??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(kl(l)){let h=cF(l.series[0],e);if(h&&a!==void 0&&a!==""){if(i.type===V.DateAxisFormat&&i.intlOptions)switch(h.unit){case Dn.DayOfWeek:n=uk({weekdayNumber:Number(a),format:i.intlOptions,firstDayOfWeek:l.firstDayOfWeek,locale:o});break;case Dn.MonthOfYear:n=ck({monthNumber:Number(a),format:i.intlOptions,locale:o});break;case Dn.HourOfDay:n=hk({hour:Number(a),format:i.intlOptions,locale:o});break}}else if(a!==void 0&&a!==""){if(i.type===V.DateAxisFormat)n=Zn({root:r,type:V.DateAxisFormat,intlOptions:i.intlOptions,formatLocale:o}).format(n,i.intlOptions);else if(i.type===V.CategoryAxisFormat&&(n=a?.toString()??"",!Yi(n)&&n!==q.htmlEmptyContent)){let{characterLimit:c}=i;n=ax({stringToTruncate:n,characterLimit:c})}}}return n.toString()}}function Tz(s){let{axis:t,formatOptions:e,isTimeOnlyField:i}=s,r={...Eo(e)},a=["year","month","day","hour","minute","second"],n=i?{hour:{hour:"numeric",minute:"numeric"}}:{},o=i?{hour:{hour:"numeric",minute:"numeric"}}:{},l=Cc.new(r.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone);t.root.timezone?.name!==l.name&&(t.root.timezone=l);for(let h=0;h<a.length;h+=1){let c=a[h],u=h===0?c:a[h-1],d=e?.formatPerDateTimeUnit?.[c]??r,A=e?.formatPerDateTimeUnit?.[u];d&&Object.values(d).find(p=>p!==void 0&&(typeof p!="string"||!Yi(p)))&&(n[c]=d,o[c]=A??d)}Object.keys(n).length>0&&t.set("dateFormats",n),Object.keys(o).length>0&&t.set("periodChangeDateFormats",o)}function xL(s){let{axis:t,valueFormat:e,chartType:i}=s,r=sB({isXAxis:!0,chartType:i,valueFormat:e}),a=ro(e)&&t instanceof yr,n=xa(e)&&t instanceof di&&!(t instanceof yr),o=r&&t instanceof Sr;return!a&&!n&&!o}function i$(s){let{dataContext:t,defaultValue:e,chartUID:i}=s,r=so(t),a=fe(i,"config"),n=fe(i,"rendererFieldNames"),o=ze(a?.series),l=It(a?.series);if(o===V.BoxPlotSeries&&(l===Ee.BoxPlotMonoField||l===Ee.BoxPlotMultiFields||l===Ee.BoxPlotMonoFieldAndSplitBy||l===Ee.BoxPlotMultiFieldsAndSplitBy))r=t?.[Hm];else if(o===V.HistogramSeries)r=t?.[od.Start];else if((o===V.BarSeries||o===V.LineSeries||o===V.RadarSeries||o===V.ComboLineAndBarSeries)&&a!==void 0){let h=a.series?.[0]?.nullCategory,c=rp(l,a.series?.[0]);r=r===null&&h?.text!==void 0?h.text:t?.[c]?.toString()??""}else r=Mo({value:e??"",dataContext:t,useRendererLabel:JA(a,n),specificField:ht.xAxisField});return{labelValue:r,originalLabelValue:so(t)}}function Pz(s,t){let{chart:e}=s;if(e!==void 0){let i=s.get("renderer").labels.template;i.adapters.remove("text"),i.adapters.remove("html"),i.set("html",void 0);let r=To(s.uid,"isHtmlLabelFormatter")===!0,a=t!==void 0||r?"html":"text";i.adapters.add(a,(n,o)=>{let l=n,h=To(s.uid,"labelFormatter");if(!rn(o.uid,"isGuide")&&h!==void 0){let c,u;switch(!0){case s instanceof yr:case s instanceof di:c=o.dataItem?._settings?.value;break;case s instanceof Sr:{let d=n,A=o.dataItem?.dataContext,p=fe(s.chart?.uid??Number.NaN,"config");if(ze(p?.series)===V.HeatSeries){let f=Uc(s.get("renderer"))?A?.[Cr.xField]:A?.[Cr.yField];typeof f=="string"&&(d=f)}let m=i$({dataContext:A,defaultValue:d,chartUID:e.uid});c=m.labelValue,u=m.originalLabelValue}break}c!==void 0&&(l=h(c,u),a==="html"&&(l=Mr(l)))}return l}),i.adapters.add(a,(n,o)=>{let l=n,h=fe(e.uid,"config");if(!rn(o.uid,"isGuide")&&h!==void 0&&!(a==="html"&&r)){let c=ks(h),u=Uc(s.get("renderer"),c),d=h.axes?.[u?0:1],A={type:Dt.TS,...d?.labels.content,text:n};l=_a({textSymbol:A,format:a==="text"?"amChartsV5":"html"})}return l}),a==="html"&&(i.set("html",q.htmlEmptyContent),i.set("text","")),Dz(s,a)}}function Dz(s,t){s.get("renderer").labels.each(e=>{if(t==="html")e.set("html",void 0),e.set("html",q.htmlEmptyContent),e.set("text","");else{let i=e.get("text")??"";e.set("text",""),e.set("text",i),e.set("html",void 0)}})}function Lz(s){let{axis:t,isRotated:e,chartConfig:i}=s;if(t instanceof Sr||t instanceof yr){let r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy===zA.Descending:!1,a=e===!0;r&&t instanceof yr&&(a=!a),t.get("renderer").set("inversed",a)}}function Iz(s){let{axis:t,isXAxis:e,chartType:i,formatOptions:r,isNonAggregatedChart:a,overridePercentMultiplication:n,externalAxisLabelFormatter:o,isTimeOnlyField:l,errorStrings:h}=s,{chart:c}=t;if(c!==void 0){let u=sB({isXAxis:e,chartType:i,valueFormat:r}),d=t instanceof di&&!(t instanceof yr)&&xa(r),A=t instanceof yr&&ro(r),p=t instanceof Sr&&u;if(!(d||A||p))Rm("mismatchAxisAndValueFormat",h);else{let m=To(t.uid,"labelFormatter"),f=o??m;o===void 0&&(i===V.HeatSeries?f=Fz({chart:c,isXAxis:e,formatOptions:r}):p?f=Sz({chart:c,formatOptions:r,isNonAggregatedChart:a}):d?f=Bz({axis:t,intlOptions:r.intlOptions,overridePercentMultiplication:n,valueAxisFormatter:o}):A&&Tz({axis:t,formatOptions:r,isTimeOnlyField:l}));let g=o!==void 0;wA(t.uid,{labelFormatter:f,isHtmlLabelFormatter:g}),Pz(t,f)}}}function kz(s){let{chart:t,chartConfig:{axes:e,series:i},rotationChanged:r,axisLabelsBehaviorChanged:a,timeIntervalInfoWasReset:n}=s,o=ze(i),l=ks(s.chartConfig),h=l?1:0,c=l?0:1,u=e?.[h]?.valueFormat,d=e?.[c]?.valueFormat,A=t.xAxes.getIndex(0),p=t.yAxes.getIndex(0),m=A===void 0||r||u!==void 0&&xL({axis:A,valueFormat:u,chartType:o}),f=p===void 0||r||d!==void 0&&xL({axis:p,valueFormat:d,chartType:o});return n||a?.[0]||a?.[1]||m||f}function Uc(s,t){return s instanceof ls&&!t||s instanceof va&&t||s instanceof Us}function Yv(s){return s instanceof ls}function $z(s){return s instanceof va}function Oz(s){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=s,r=fe(t.chart?.uid??Number.NaN,"config"),a=e===!0&&ag({chartConfig:r,axisConfigIndex:i,chartData:t.chart?.series.getIndex(0)?.data.values});(t instanceof yr||t instanceof di)&&t.setAll({logarithmic:a,treatZeroAs:a?q.treatZeroValueAs:0,maxPrecision:a?0:void 0})}function Ez(s,t){if(s instanceof di){let{integerOnlyValues:e,valueFormat:i}=t,r=Px(i)?i.intlOptions.maximumFractionDigits:void 0;s.set("maxPrecision",e===!0||r===0?0:Number.NaN)}}function r$(s,t){let{chart:e}=t,i=Gr.new(s,{forceHidden:!0});return t.set("tooltip",i),i.adapters.add("labelText",(r,a)=>{let n=r??"",o=To(t.uid,"labelFormatter");if(!a.isHidden()&&o&&e){let{label:l}=a,h=l.get("text")??"";if(t instanceof di){let c=Number.parseFloat(h.replace(/,/gu,""));n=o(Number.isNaN(c)?h:c,r)}else if(t instanceof Sr){let c=l.dataItem?.dataContext,u=i$({dataContext:c,defaultValue:r,chartUID:e.uid});n=o(u.labelValue??h,r??u.originalLabelValue)}}return n}),i}function Mz(s){let{root:t,axis:e,displayCursorTooltip:i}=s;(e.get("tooltip")??r$(t,e)).set("forceHidden",i!==!0)}function Rz(s){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i,xFieldIsTimeOnly:r}=s;if(t instanceof yr){let a,n=1;if(r)a="second";else{let{size:o,unit:l}=e??{};if(l||({size:o,unit:l}=i??{}),o&&l!==void 0){switch(l){case tr.Second:a="second";break;case tr.Minute:a="minute";break;case tr.Hour:a="hour";break;case tr.Day:a="day";break;case tr.Week:a="week";break;case tr.Month:a="month";break;case tr.Year:a="year";break}n=o}}a!==void 0&&t.set("baseInterval",{timeUnit:a,count:n})}}function Uz(s,t){let{buffer:e}=t??{};return e??=q.buffer,s instanceof di&&!(s instanceof yr)&&!e}function Vz(s,t){let e=!1;return s instanceof di&&!(s instanceof yr)&&(e=Uz(s,t),s.set("strictMinMax",e)),e}function _L(s,t){let e=s;if(s){let i=(t?Math.ceil:Math.floor)(Math.log10(s));e=Math.pow(10,i)}return e}function Nz(s){let{axis:t,xAxis:e,isSecondValueAxis:i,chartType:r,stackedType:a,isLogarithmic:n}=s,o=!1,l=[V.BarSeries,V.LineSeries,V.RadarSeries];if(r!==void 0&&l.includes(r)&&a===Gi.Stacked100&&!n&&t instanceof di&&!e){let h=fe(t.chart?.uid??Number.NaN,"config"),c=t.chart?.series.getIndex(0)?.data.values;if(h&&c){let u=Jk(t.chart),d=sg({chartConfig:h,isSecondValueAxis:i,seriesIds:u});o=!hT({seriesConfig:h.series,filteredData:c,filteredSeriesIds:d}).dataHasNegativeValues}}return o}function Hz(s){let{dataMinMax:t,chartType:e,stackedType:i,isXAxis:r,minimumFromConfig:a,maximumFromConfig:n,isLogarithmic:o}=s,{minX:l,maxX:h,minY:c,maxY:u}=t,[d,A]=r?[l??Number.NaN,h??Number.NaN]:[c,u],p=d,m=A;return i===Gi.Stacked100?(p=Number.NaN,m=Number.NaN):((e===V.BarSeries||e===V.ComboLineAndBarSeries||e===V.HistogramSeries&&!r||(e===V.LineSeries||e===V.RadarSeries)&&i===Gi.Stacked&&!r)&&(p=Math.min(d,0),m=Math.max(A,0)),p=a??p,m=n??m),o===!0&&(p=Number.isFinite(p)?_L(p,!1):p,m=Number.isFinite(m)?_L(m,!0):m),{min:p??Number.NaN,max:m??Number.NaN}}function Qz(s){let{axis:t,xAxis:e,isSecondValueAxis:i,data:r,minimumFromConfig:a,maximumFromConfig:n}=s,o=a,l=n,{chart:h}=t;if(h){let c=fe(h.uid,"config");if(h instanceof Ci&&c){let u=ze(c.series),d=Ua(c)??Gi.Side,A=Jk(h),p=sg({chartConfig:c,isSecondValueAxis:i,seriesIds:A}),m=In(r),f=wx({chartConfig:c,chartData:m??h.series.getIndex(0)?.data.values??[],filteredSeriesIds:p}),g=Hz({dataMinMax:f,chartType:u,stackedType:d,isXAxis:e,minimumFromConfig:a,maximumFromConfig:n});o=g.min,l=g.max}}return{min:o,max:l}}function jz(s){let{axis:t,axisConfig:e,minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:a,chartType:n,stackedType:o,isRotated:l,data:h,isSecondValueAxis:c}=s,{chart:u}=t;if(u&&(t instanceof di||t instanceof yr))if(Vz(t,e)){let d=i,A=r,p=Uc(t.get("renderer"),l);if(Nz({chartType:n,stackedType:o,isLogarithmic:a,axis:t,xAxis:p}))d=d??0,A=A??100;else if(qL({minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:a})){let m=Qz({axis:t,xAxis:p,data:h,minimumFromConfig:d,maximumFromConfig:A,isSecondValueAxis:c});d=m.min,A=m.max}A=A??Number.NaN,d=d??Number.NaN,a&&d!==void 0&&d!==null&&(d=Number.isNaN(d)||d===0?q.treatZeroValueAs:d),Number.isNaN(d)||Number.isNaN(A)||d<A?t.setAll({min:d,max:A}):t.setAll({min:Number.NaN,max:Number.NaN}),n===V.GaugeSeries&&t.markDirty()}else t.setAll({min:Number.NaN,max:Number.NaN})}function Pv(s,t){if(s!==void 0){let e=fe(s.uid,"config");if(e!==void 0){let i=ze(e?.series),r=Ua(e)??Gi.Side,a=ks(e),n=s.xAxes.getIndex(0),o=e.axes?.[0],l=e.axes?.[1],h=e.axes?.[2],c=s.yAxes.getIndex(0),u=s.xAxes.getIndex(1)??s.yAxes.getIndex(1);[{axis:n,axisConfig:o},{axis:c,axisConfig:l},{axis:u,axisConfig:i===V.HistogramSeries?o:h,isSecondValueAxis:i!==V.HistogramSeries}].forEach(d=>{let{axis:A,axisConfig:p,isSecondValueAxis:m}=d;if(A!==void 0){let{minimum:f,maximum:g,buffer:y,isLogarithmic:x}=p??{};jz({axis:A,axisConfig:p,data:t,chartType:i,stackedType:r,isRotated:a,minimumFromConfig:f,maximumFromConfig:g,isLogarithmic:x,isSecondValueAxis:m})}})}}}function Wz(s){s.get("renderer").grid.template.adapters.add("strokeWidth",(t,e)=>{let i=To(s.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,a=i?.strokeWidth??q.lineWidth;return e.get("themeTags")?.includes("base")&&r&&(a=(a===0?1:a)*1.5),a}),s.get("renderer").grid.template.adapters.add("strokeOpacity",(t,e)=>{let i=To(s.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,a=i?.visible===!0?t:0;return e.get("themeTags")?.includes("base")&&r&&(a=1),a})}function iB(s){s.on("visible",()=>{s.chart instanceof Ci&&Pv(s.chart)}),s.events.on(Ai.DataValidated,()=>{s.chart instanceof Ci&&Pv(s.chart)})}function Xz(s){let t=0;return s.dataItems.forEach(e=>{let i=e.get("label");i!==void 0&&rn(i.uid,"isGuide")!==!0&&i.getText()!==void 0&&i.height()>t&&i.isVisible()&&(t=i.height())}),t}function CL(s,t){if(t){let{chart:e}=t;if(e){let i=fe(e.uid,"isRotated"),r=fe(e.uid,"config"),a=ze(r?.series),n=[],o=(l,h)=>{if(l instanceof di){let c=l.get("renderer")instanceof Us;n.push({isXAxis:Uc(l.get("renderer"),i),isSecondValueAxis:h===1&&a!==V.HistogramSeries,minimum:c?l.get("min"):l.getPrivate("min"),maximum:c?l.get("max"):l.getPrivate("max")})}};e.xAxes.each(o),e.yAxes.each(o),n.length>0&&n.every(l=>!Number.isNaN(l.minimum)&&!Number.isNaN(l.maximum))&&tx(n,e.root.dom)}}}function s$(s){s.ghostLabel?.set("forceHidden",!0)}function wL(s){let{axis:t,start:e,end:i}=s;t.zoom(e??0,i??1)}function BL(s){s!==void 0&&s.setAll({start:0,end:1})}function zz(s){s instanceof Ci&&(s.xAxes.each(t=>wL({axis:t})),s.yAxes.each(t=>wL({axis:t})),BL(s.get("scrollbarX")),BL(s.get("scrollbarY")))}function Gz(s){let{axis:t,guide:e,guideIndex:i}=s,{root:r,chart:a}=t,n=e.get("axisFill");n?.set("tooltip",Gr.new(r,{autoTextColor:!1}));let o=n?.get("tooltip");if(o!==void 0&&a!==void 0){o.label.setAll({oversizedBehavior:"wrap"}),o.label.adapters.add("maxWidth",()=>Math.min(q.tooltipWidth,a.seriesContainer.width())),o.get("background")?.set("fillOpacity",Nm);let l=fe(a.uid,"rtl");o.label.set("direction",l?"rtl":"ltr")}if(n!==void 0){n.adapters.remove("tooltipText"),n.adapters.remove("tooltipHTML"),n.setAll({tooltipText:void 0,tooltipHTML:q.htmlEmptyContent,tooltipPosition:q.guideTooltipPosition}),n.adapters.add("tooltipHTML",(h,c)=>{let u=h,{dataItem:d}=c;if(!(t.get("renderer")instanceof Us)){let A=To(t.uid,"guideTooltipFormatter");if(A!==void 0&&d instanceof os){let p,m;switch(!0){case t instanceof yr:case t instanceof di:p=d.get("value"),m=d.get("endValue");break;case t instanceof Sr:p=d.get("category"),m=d.get("endCategory");break}u=A({guideName:ZW(d.uid,"name")??"",start:p??"",end:m,guideIndex:i})}}return Mr(u??"")});let l=n.getTooltip();l&&(_k(l),l.adapters.add("x",(h,c)=>{let{chart:u}=t;if(u&&c){let d=fe(u.uid,"config"),A=fe(u.uid,"isRotated");if(d){let p=Uc(t.get("renderer"),A)?0:1,m=d?.axes?.[p]?.guides?.[i];if(m){let{tooltipReverseColor:f}=m;Ck(c,f)}}}return h}))}}function Yz(s,t){return e=>{let{guideName:i,start:r,end:a}=e,{chart:n,root:o}=s,l="";if(n!==void 0){let h=fe(n.uid,"config"),c=fe(n.uid,"isRotated"),u=Uc(s.get("renderer"),c)?0:1,d=h?.axes?.[u]?.guides,A=r,p=a;if(s instanceof yr){let x;if(n!==void 0){let w=fe(s.chart?.uid??Number.NaN,"formatLocale");x=Zn({root:s.root,type:V.DateAxisFormat,formatLocale:w});let S=h?.axes?.[0]?.valueFormat?.type===V.DateAxisFormat?h.axes[0].valueFormat.intlOptions:void 0;A=x.format(r,S),a!==void 0&&(p=x.format(a,S))}}else if(s instanceof di&&!(r instanceof Date)&&!(a instanceof Date)){let x=d?.find(T=>T.name===i),{start:w,end:S}=a$(s,x);Number.isFinite(w)&&(A=w),Number.isFinite(S)&&(p=S);let D=To(s.uid,"numberFormatter")??(T=>Jh.new(o,{}).format(T));A=D(A),p!==void 0&&(p=D(p))}else s instanceof Sr&&(A=r,p=a);let m=A.toString(),f=p?.toString()??"";!Yi(f)&&m!==f?l=fA(t.guideTooltipLabel,{guideStart:m,guideEnd:f}):l=m;let g=fe(n.uid,"rtl"),y=Ra(g??!1);l=`${i}${y} ${l}`}return l}}function Kz(s){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=s;wA(t.uid,{guideTooltipFormatter:e??Yz(t,i)})}function SL(s){let{inputValue:t,axis:e,axisMin:i,axisMax:r}=s,a=t;if(t!=null)switch(!0){case e instanceof yr:a=t;break;case e instanceof Sr:a=t.toString();break;case e instanceof di:if(typeof t!="number"){let n=t.toString().trim(),o=qA(n);o!==void 0?i!==void 0&&r!==void 0?a=o/100*(r-i)+i:a=null:a=Number.parseFloat(n)}break}return a}function rB(s,t){return s.axisRanges?.values?.filter(e=>{let i=e.get("label"),r=rn(i?.uid??Number.NaN,"isGuide")??!1,a=rn(i?.uid??Number.NaN,"isGaugeAxisLabel")??!1,n=!1;switch(t){case vr.Ticks:n=!r;break;case vr.Guides:n=r;break;case vr.GaugeTicksWithLabels:n=a&&"value"in e&&e.value!==void 0;break}return n})??[]}function Zz(s){let{axis:t,guideConfig:e,above:i}=s,r=e!==void 0,a=t.axisRanges.length,n=t.axisRanges.insertIndex(a,t.makeDataItem({above:i}));r&&(i===!0&&n.get("axisFill")?.setAll({layer:q.zIndexes.guide}),A4({guide:n,axis:t,guideLabelConfig:e?.label}));let o=n.get("axisFill");o!==void 0&&o.setAll({disabled:!0,fillOpacity:1});let l=n.get("grid");return l!==void 0&&r&&l.set("strokeOpacity",0),n}function qz(s){let{axis:t,guideIndex:e,guideConfig:i}=s,r=Zz({axis:t,guideConfig:i,above:i?.above});Gz({axis:t,guide:r,guideIndex:e});let a=r.get("tick"),n=r.get("label"),o=r.get("grid");a!==void 0&&a.set("disabled",!0),n!==void 0&&n.set("inside",!0),o!==void 0&&o.set("disabled",!0)}function Jz(s,t){let e=rB(s,vr.Guides).length,i=(t?.length??e)-e;for(let r=0;r<i;r+=1)qz({axis:s,guideIndex:r,guideConfig:t?.[r]})}function e5(s,t){let{start:e,end:i}=t,r=e!==null?e:void 0,a=i!==null?i:void 0,{chart:n}=s,o=fe(n?.uid??Number.NaN,"config");if(o!==void 0){let l=eg(o),h=s.data.values,c=h.find(u=>u[q.originalCategoryValue]===e)?.[l];if((typeof c=="string"||typeof c=="number"||c instanceof Date)&&(r=c),a!==void 0)for(let u=h.length-1;u>=0;u-=1){let d=h[u],A=d[l];if(d[q.originalCategoryValue]===i&&(typeof A=="string"||typeof A=="number"||A instanceof Date)){a=A;break}}}return{modifiedStart:r,modifiedEnd:a}}function a$(s,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let a=s instanceof di?s.get("min"):void 0,n=s instanceof di?s.get("max"):void 0,o=SL({inputValue:e,axis:s,axisMin:a,axisMax:n}),l=t.style?.type===Dt.SFS&&i!==null&&i!==void 0?SL({inputValue:i,axis:s,axisMin:a,axisMax:n}):o;r={isValidGuide:o!=null&&(i===void 0||l!=null),start:o,end:l}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function t5(s){let{axis:t,guide:e,guideConfig:i}=s,{start:r,end:a}=i;if(r!==void 0){let{chart:n}=t,o;if(t instanceof Sr&&n instanceof Ci&&fe(n.uid,"isNonAggregatedChart")===!0){let{modifiedStart:l,modifiedEnd:h}=e5(t,i);o={isValidGuide:!0,start:l??r,end:h??a}}else o=a$(t,i);if(o.isValidGuide){let l,h;switch(!0){case t instanceof yr:case t instanceof di:l="value",h="endValue";break;case t instanceof Sr:l="category",h="endCategory";break}l!==void 0&&o.start!==void 0&&e.setAll({[l]:o.start}),h!==void 0&&o.end!==void 0&&e.setAll({[h]:o.end})}}}function i5(s){let{axis:t,guide:e,guideConfig:i}=s;if(e){let r=e.get("axisFill"),a=e.get("label");if(i!==void 0){qW(e.uid,{name:i.name}),Zi(e,i.visible),t5({axis:t,guide:e,guideConfig:i}),i.style.type===Dt.SLS?vu({root:t.root,element:r,fillSymbol:{type:Dt.SFS,color:i.style?.color,outline:i.style},visible:i.visible}):i.style.type===Dt.SFS&&vu({root:t.root,element:r,fillSymbol:i.style,visible:i.visible}),p4({axis:t,guide:e,guideConfig:i,guideType:i.style.type}),e.get("axisFill")?.setAll({layer:i.above?q.zIndexes.guide:0});let{chart:n}=t}else r!==void 0&&r.set("disabled",!0),a!==void 0&&a.set("disabled",!0)}}function r5(s){let{axis:t,guideConfigs:e,guideTooltipFormatter:i,utilsStrings:r}=s;if(e!==void 0){let a=rB(t,vr.Guides);e.forEach((n,o)=>{i5({axis:t,guide:a[o],guideConfig:n})}),Kz({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function s5(s){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=s,r=[],a=t.axisRanges.length-1,n=i;for(;n>0&&a>=0;){let o=t.axisRanges.getIndex(a);o!==void 0&&(rn(o.get("label")?.uid??Number.NaN,"isGuide")??!1)===!0&&e===vr.Guides&&(r.push(o),n-=1),a-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function FL(s,t){let e=rB(s,vr.Guides).length,i=t?.length??0,r=e-i;s5({axis:s,numberOfElementsToBeDeleted:r,tickOrGuide:vr.Guides})}function a5(s){let{axis:t,guideConfigs:e,anyGuideAboveChanged:i}=s;i&&FL(t),Jz(t,e),r5(s),FL(t,e)}function n$(s){return s.getCellWidthPosition()*s.width()}function n5(s,t){let e=s.get("renderer");if(s!==void 0){let i=Number.NaN;if(t===ir.Wrap){let r=Number.MAX_SAFE_INTEGER;e.labels.each(n=>{rn(n.uid,"isGuide")!==!0&&n.width()>0&&(r=Math.min(r,n.innerWidth()))});let a=s instanceof yr?s.width()/q.maxNumberOfXAxisLabelsInWrapModeForDateAxis:s.width()/q.maxNumberOfXAxisLabelsInWrapMode;i=Math.max(r,a)}else if(t===ir.Hide){let r=Number.MIN_SAFE_INTEGER;e.labels.each(a=>{rn(a.uid,"isGuide")!==!0&&a.width()>0&&(r=Math.max(r,a.innerWidth()))}),i=r+2}Number.isFinite(i)&&i>q.shortestMinGridDistance&&e.set("minGridDistance",i)}}function o5(s){let{axis:t,chartType:e,labelConfig:i,isSecondValueAxis:r,tickSpacing:a}=s,{horizontalAxisLabelsBehavior:n}=s;n===void 0&&(n=e!==V.HistogramSeries?ir.Rotate:ir.Hide);let o=t.get("renderer"),l=o.get("minGridDistance");if(typeof a=="number"&&Number.isFinite(a))l=a;else if(e!==V.RadarSeries)if(o instanceof Us)l=q.gauge.gaugeMinGridDistance;else if(t instanceof di)l=o instanceof ls?q.xAxisMinGridDistance:q.yAxisMinGridDistance;else if(o instanceof ls)if(r===!0)l=q.secondRotatedValueAxisMinGridDistance;else if(n===ir.Rotate){let h=i.content.font?.size??q.generalFontSize,c=t instanceof Sr?q.categoryAxisLabelPadding:q.axisLabelPadding;l=h*c}else if(n===ir.Wrap||n===ir.Hide){n===ir.Hide&&(l=t instanceof Sr?q.xCategoryAxisMinGridDistance:q.xAxisMinGridDistance);let h=To(t.uid,"minGridDistanceCallbackDisposer");h!==void 0&&h.dispose(),h=t.events.on(Ai.BoundsChanged,()=>{n5(t,n)}),wA(t.uid,{minGridDistanceCallbackDisposer:h})}else n===ir.Stagger?l=q.staggerMinGridDistance:l=t instanceof Sr?q.xCategoryAxisMinGridDistance:q.xAxisMinGridDistance;else l=t instanceof Sr?q.yCategoryAxisMinGridDistance:q.yAxisMinGridDistance;o.set("minGridDistance",l)}function TL(s=1,t){t.get("renderer").labels.template.set("maxWidth",n$(t)*s)}function PL(s,t=1){s.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",paddingLeft:.5,paddingRight:.5,textAlign:"center"}),s.events.on(Ai.BoundsChanged,()=>TL(t,s)),TL(t,s)}function l5(s){let t=s.get("renderer").labels.template;t.adapters.add("rotation",(e,i)=>{let r=rn(i.uid,"isGuide")!==!0?To(s.uid,"rotation")??0:e??0;return t.set("centerX",r===0?Qe:ge),r})}function GC(s){if(s?.chart!==void 0){let t=s.get("renderer");if(fe(s.chart.uid,"config")?.axes?.[0].labels!==void 0&&t.labels.length>1){let e=t.labels.getIndex(0)?.get("rotation"),i=0;t.labels.each(a=>{if(rn(a.uid,"isGuide")!==!0&&a.width()>0){let n=e===q.rotatedAxisLabel.rotation?Math.sqrt(a.innerHeight()**2+a.innerWidth()**2):a.innerWidth();n>i&&(i=n)}});let r=n$(s)>=i+5;if(!r&&e===0||r&&e===q.rotatedAxisLabel.rotation){let a=r?q.axisLabel.rotation:q.rotatedAxisLabel.rotation;t.labels.template.setAll({rotation:a,centerX:r?Qe:ge,centerY:Xr,paddingTop:r?q.axisLabel.paddingTop:q.rotatedAxisLabel.paddingTop,paddingLeft:r?q.axisLabel.paddingLeft:q.rotatedAxisLabel.paddingLeft,paddingRight:r?q.axisLabel.paddingRight:q.rotatedAxisLabel.paddingRight}),wA(s.uid,{rotation:a})}}}}function DL(s){let t=s.get("renderer");l5(s),t.labels.template.setAll({oversizedBehavior:"hide"}),s instanceof yr||(t.labels.template.setAll({multiLocation:.5}),t.ticks.template.setAll({multiLocation:.5})),s.events.on(Ai.BoundsChanged,()=>GC(s)),s.events.on(Ai.DataValidated,()=>GC(s)),GC()}function LL(s){if(s&&fe(s.chart?.uid??Number.NaN,"config")?.axes?.[0].labels?.visible!==!1){let t=0;s.dataItems.forEach((e,i)=>{let r=e.get("label");r!==void 0&&rn(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0&&i%2===0&&r.innerHeight()>t&&(t=r.innerHeight())}),t=Math.round(t),t>0&&(s.dataItems.filter(e=>{let i=e.get("tick"),r=e.get("label");return i!==void 0&&r!==void 0&&rn(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0}).forEach((e,i)=>{let r=e.get("tick"),a=e.get("label"),n=i%2===1;r&&r.set("length",n?t+5:q.axisTickLength),a&&a.set("dy",n?t:0)}),t&&s.get("renderer").labels.template.get("paddingBottom")!==t+5&&s.get("renderer").labels.template.set("paddingBottom",t+5))}}function h5(s){s.get("renderer").labels.template.set("oversizedBehavior","wrap"),s.events.on(Ai.BoundsChanged,()=>LL(s)),LL(s)}function u5(s){s.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",maxWidth:q.yAxisLabelMaxWidth,textAlign:"end"})}function c5(s){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,axisLabelsBehaviorChanged:r,labelConfig:a,chartType:n}=s,o=t.get("renderer");if(!(o instanceof Us))if(Yv(o)&&r?.[0]===!0)switch(n===V.HistogramSeries&&e===void 0?ir.Hide:e){case ir.Hide:break;case ir.Stagger:h5(t),PL(t,2);break;case ir.Wrap:PL(t);break;case ir.Rotate:DL(t);break;default:a.content.angle!==null&&a.content.angle===void 0&&DL(t);break}else $z(o)&&i!==ir.Hide&&u5(t)}function d5(s){let{renderer:t,axisConfig:e,labelConfig:i}=s;switch(e.labelsOrientation){case Qb.Horizontal:t.labels.template.setAll({textType:"adjusted"}),t.labels.template.remove("radius");break;case Qb.Radial:t.labels.template.setAll({textType:"radial",radius:35}),i.content.verticalAlignment=Yt.Middle;break;default:t.labels.template.setAll({textType:"circular"}),t.labels.template.remove("radius")}}function A5(s){let{axis:t,axisConfig:{labels:e},horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:a,chartType:n}=s,o={...e},l=t.get("renderer"),h=l?.get("opposite");Yv(l)?(o.content.horizontalAlignment=bi.Center,o.content.verticalAlignment=h?Yt.Bottom:Yt.Top):(o.content.horizontalAlignment=h?bi.Left:bi.Right,o.content.verticalAlignment=Yt.Middle),l instanceof Us?d5({renderer:l,axisConfig:s.axisConfig,labelConfig:e}):o.content.angle=o.content.angle??l.labels.template.get("rotation");let c=To(t.uid,"isHtmlLabelFormatter")===!0;wn({label:l.labels.template,labelConfig:o,skipSettingText:c}),c5({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelConfig:e,axisLabelsBehaviorChanged:a,chartType:n})}function p5(s){let{axis:t,isHorizontalAxis:e,label:i}=s,{chart:r}=t;if(r){let a=e?"width":"height",n=e?ii.XAxisTitle:ii.YAxisTitle;bl({chart:r,label:i,labelType:n}),t.onPrivate(a,zs(()=>bl({chart:r,label:i,labelType:n}),q.debounceTime))}}function f5(s){let{x:t,data:e,chart:i,valueFormat:r,minimum:a,maximum:n}=s,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(c=>t in c),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,Kr(i.uid,{gaugeData:o}))}else{let l=fe(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Ou(r)&&a!==void 0&&n!==void 0&&a!==null&&n!==null&&o!==null&&n-a!==0&&(o=Vf({value:o,axisMin:a,axisMax:n})),o}function m5(s,t){let e=t??null;if(t!=null){let i=s.xAxes.getIndex(0),r=fe(s.uid,"config"),a=i.get("min")??r?.axes?.[0].minimum??q.gauge.axisMinimum,n=i.get("max")??r?.axes?.[0].maximum??q.gauge.axisMaximum;t<a?e=a:t>n&&(e=n)}return e??void 0}function g5(s){let{root:t}=s,e=fl.new(t,{radius:Bt(100)}),i=s.makeDataItem({value:0,bullet:hu.new(t,{sprite:e})});return s.createAxisRange(i),i.get("grid")?.set("visible",!1),i.get("tick")?.set("visible",!1),e}function y5(s){let{chart:t,axis:e,needleConfig:i,gaugeValue:r}=s,a=e.axisRanges.values.find(o=>o.get("bullet")?.get("sprite")instanceof fl),n=a?.get("bullet")?.get("sprite");if(a&&n instanceof fl){let{startWidth:o,endWidth:l,innerRadius:h}=q.gaugeNeedle;vu({root:e.root,element:n.hand,fillSymbol:i?.symbol}),vu({root:e.root,element:n.pin,fillSymbol:i?.symbol}),a.set("value",m5(t,r)),n.pin.set("visible",i?.displayPin===!0),n.setAll({visible:i?.visible??!0,innerRadius:Bt(i?.innerRadius??h),bottomWidth:i?.startWidth??o,topWidth:i?.endWidth??l})}}function v5(s,t){let e=Number.isFinite(t?.innerRadius)?t?.innerRadius:q.gauge.innerRadius;typeof e=="number"&&Number.isFinite(e)&&s.set("innerRadius",Bt(e))}function b5(s,t){let e=Number.isFinite(t?.startAngle)?t?.startAngle:q.gauge.startAngle,i=Number.isFinite(t?.endAngle)?t?.endAngle:q.gauge.endAngle;typeof e=="number"&&Number.isFinite(e)&&s.set("startAngle",e),typeof i=="number"&&Number.isFinite(i)&&s.set("endAngle",i)}function x5(s){let{chart:t,chartConfig:e,data:i,queryObject:r,xAxisLabelFormatter:a,utilsStrings:n,errorStrings:o,gaugeMinMaxFromData:l}=s,{axes:h,series:c}=e,u=rg(e),{featureIndex:d,x:A}=c[0],p=h?.[0],m=t.xAxes.getIndex(0),f={...p};if(m instanceof di&&m.get("renderer")instanceof Us&&f!==void 0&&i&&"dataItems"in i){let{valueFormat:g,needle:y}=f;v5(t,e),b5(t,e);let x=jI({featureIndex:d,chartData:i.dataItems,chartConfig:e,gaugeMinMaxFromData:l,queryConfig:fe(t.uid,"queryConfig")});f.minimum=x.minimum,f.maximum=x.maximum;let{min:w,max:S}=HI(f),D={...f};Ou(g)?(D.minimum=0,D.maximum=1,QI({axisConfig:D,axisMin:f.minimum,axisMax:f.maximum})):(D.minimum=w,D.maximum=S),aB({chartConfig:e,axis:m,axisConfig:D,axisConfigIndex:0,externalAxisLabelFormatter:a,utilsStrings:n,errorStrings:o,queryObject:r});let T=u?x?.dataValue:f5({x:A,data:i.dataItems,chart:t,minimum:f.minimum,maximum:f.maximum,valueFormat:g});y5({chart:t,axis:m,needleConfig:y,gaugeValue:T})}}function _5(s){let{chart:t,axesConfig:e,errorStrings:i}=s,{root:r}=t;Il({chartType:V.GaugeSeries,axesConfig:e,errorStrings:i});let a=t.xAxes.push(di.new(r,{min:0,max:100,renderer:Us.new(r,{})}));g5(a),s$(a)}function C5(s){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,data:a,dataWasUpdated:n,axesInitializationNeeded:o,yAxisLabelFormatter:l,xAxisLabelFormatter:h,guideTooltipFormatter:c,utilsStrings:u,errorStrings:d,queryObject:A}=s,{horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:m,axes:f}=e,g=V.HistogramSeries,y=t.xAxes.getIndex(0),x=t.yAxes.getIndex(0);Il({chartType:g,axesConfig:f,errorStrings:d}),[{axis:y,axisConfig:f?.[0],externalAxisLabelFormatter:h},{axis:x,axisConfig:f?.[1],externalAxisLabelFormatter:l}].forEach((w,S)=>{let{axis:D,axisConfig:T,externalAxisLabelFormatter:L}=w;D!==void 0&&!D.isDisposed()&&T!==void 0&&aB({axis:D,data:a,dataWasUpdated:n,axesInitializationNeeded:o,sortChanged:r,axisConfig:T,axisConfigIndex:S,horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:m,axisLabelsBehaviorChanged:i,utilsStrings:u,chartConfig:e,externalAxisLabelFormatter:L,guideTooltipFormatter:c,errorStrings:d,queryObject:A})}),Pv(t,a)}function w5(s){let{chart:t,axesConfig:e,x:i,errorStrings:r}=s,{root:a}=t,n=V.HistogramSeries;Il({chartType:n,axesConfig:e,errorStrings:r});let o={root:a,x:i,chartType:n},l=e?.[0]?.valueFormat,h=e?.[1]?.valueFormat;if(l!==void 0&&h!==void 0){let c=fu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:ls.new(a,{}),isXAxis:!0,x:i}),u=fu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:ls.new(a,{}),isAxisForHistogramOverlaySeries:!0,isXAxis:!0,x:i});fu({...o,axes:t.yAxes,valueFormat:h,axisRenderer:va.new(a,{}),isXAxis:!1,x:i}),c&&(c.get("renderer").grid.template.set("location",0),c.get("renderer").ticks.template.set("location",0),c.get("renderer").labels.template.set("location",0)),u&&(u.set("visible",!1),u.get("renderer").grid.template.set("visible",!1),u.get("renderer").ticks.template.set("visible",!1),u.get("renderer").labels.template.set("visible",!1))}}function sB(s){let{isXAxis:t,chartType:e,valueFormat:i,isAxisForHistogramOverlaySeries:r}=s;return e===V.HeatSeries||t&&(ld(i)||e===V.HistogramSeries&&!r||e===V.BarSeries&&xa(i))}function o$(s,t){return t?`${hw}_x_${s.uid}`:`${hw}_y_${s.uid}`}function dw(s,t){let e=fe(s.chart?.uid??Number.NaN,"config"),i=ks(e)?1:0,r=e?.axes?.[i]?.title?.content?.verticalAlignment,a=Xz(s),n=a;switch(r){case Yt.Baseline:case Yt.Middle:n=a/2;break;case Yt.Bottom:n=Math.min(a,0);break;case Yt.Top:}t?.set("dy",n)}function B5(s){s instanceof di&&(s.onPrivate("min",CL),s.onPrivate("max",CL))}function S5(s){let{axis:t,isHorizontalAxis:e,isSecondValueAxis:i}=s,{root:r}=t,a=e?{...q.xAxisTitleLabel,verticalCenter:Yt.Top}:q.yAxisTitleLabel,n=gA({root:r,id:o$(t,e),defaults:a});return t.get("renderer")instanceof va&&i!==!0||t.get("renderer")instanceof ls&&i===!0?t.children.unshift(n):t.children.push(n),e&&i!==!0&&(t.events.onDebounced(Ai.BoundsChanged,()=>dw(t,n),q.debounceTime),t.events.onDebounced(Ai.DataValidated,()=>dw(t,n),q.debounceTime),p5({axis:t,isHorizontalAxis:e,label:n})),n}function fu(s){let{root:t,axes:e,isXAxis:i,valueFormat:r,axisRenderer:a,isSecondValueAxis:n=!1,chartType:o,x:l,isAxisForHistogramOverlaySeries:h}=s,c;if(sB({isXAxis:i,chartType:o,valueFormat:r,isAxisForHistogramOverlaySeries:h})&&!n){let u;switch(o){case V.HeatSeries:u=i?Cr.xField:Cr.yField;break;case V.HistogramSeries:u=od.Start;break;case V.BoxPlotSeries:u=l;break;default:u=q.xAxisField;break}u&&(c=e.push(Sr.new(t,{categoryField:u,renderer:a})))}else if(ro(r))c=e.push(yr.new(t,{strictMinMax:!0,baseInterval:{timeUnit:"day",count:1},renderer:a}));else if(xa(r)&&(c=e.push(di.new(t,{strictMinMax:!0,renderer:a})),n&&c instanceof di)){let u=e.getIndex(0);u instanceof di&&c.set("syncWithAxis",u)}if(c!==void 0&&!h){Wz(c),r$(t,c);let u=o===V.HistogramSeries||o===V.HeatSeries?0:.1,d=o===V.HistogramSeries||o===V.HeatSeries?1:.9;c.get("renderer").setAll({cellStartLocation:u,cellEndLocation:d}),o===V.HeatSeries&&(a instanceof ls||a instanceof va)&&a.setAll({layer:q.zIndexes.axisLineLayer}),s$(c),B5(c),Yv(c.get("renderer"))?c.get("renderer").labels.template.set(n?"paddingBottom":"paddingTop",q.axisLabelSpacing.horizontalAxisLabelPaddingTop):a instanceof va&&c.get("renderer").labels.template.set(n?"paddingLeft":"paddingRight",q.axisLabelSpacing.verticalAxisLabelSidePadding)}return c}function F5(s){let{axis:t,data:e,chartType:i,dataWasUpdated:r,axesInitializationNeeded:a,sortChanged:n,heatChartHideEmptyRowsAndColumnsChanged:o}=s;if(e&&(r||a||n||o)){let l=In(e);if(i!==V.HeatSeries)t.data.setAll(l??[]);else{let h=(d,A)=>{let p=A?.map(m=>d in m?m[d]:void 0);return Array.from(new Set(p)).map(m=>({[d]:m}))},c=t.get("renderer")instanceof va?Cr.yField:Cr.xField,u=h(c,l);t.data.setAll(u)}}}function T5(s){let{axis:t,axisTitleConfig:e,isSecondValueAxis:i}=s,r=t.get("renderer"),{chart:a}=t,n=Yv(r),o=Ii({childId:o$(t,n),parent:t,useChildId:!0})??S5({axis:t,isHorizontalAxis:n,isSecondValueAxis:i});if(o instanceof Zt){let l=n?{...q.xAxisTitleLabel,verticalCenter:Yt.Top}:q.yAxisTitleLabel;if(wn({label:o,labelConfig:e,defaults:l}),n&&i!==!0&&dw(t,o),a){let h={chart:a,label:o,labelType:n?ii.XAxisTitle:ii.YAxisTitle};bl(h)}}}function aB(s){let{axis:t,data:e,dataWasUpdated:i,axesInitializationNeeded:r,sortChanged:a,heatChartHideEmptyRowsAndColumnsChanged:n,axisConfig:o,axisConfigIndex:l,timeIntervalInfo:h,horizontalAxisLabelsBehavior:c,verticalAxisLabelsBehavior:u,axisLabelsBehaviorChanged:d,anyGuideAboveChanged:A,isNonAggregatedChart:p,isSecondValueAxis:m,chartConfig:f,externalAxisLabelFormatter:g,guideTooltipFormatter:y,utilsStrings:x,errorStrings:w,queryObject:S}=s,{visible:D,lineSymbol:T,title:L,labels:$,isLogarithmic:I,grid:R,displayCursorTooltip:F,displayZeroLine:H,valueFormat:K,guides:z,tickSpacing:ee,dateBaseInterval:ie}=o,{root:de}=t,G=ze(f.series),Y=Ua(f),xe=ks(f),{chart:ae}=t,le=ae?fe(ae.uid,"config"):void 0,Ie=Ys(S),Ze=ln(Ie).find(kt=>kt.name===le?.series?.[0]?.x),We=kF(Ze),Je=t.get("renderer");wA(t.uid,{zeroGridLine:{displayZeroLine:H,strokeWidth:R?.width??q.lineWidth,visible:R!==void 0}}),Oz({axis:t,isLogarithmic:I,axisConfigIndex:l}),Iz({axis:t,isXAxis:Uc(t.get("renderer"),xe),chartType:G,formatOptions:K,isNonAggregatedChart:p,overridePercentMultiplication:Y===Gi.Stacked100,externalAxisLabelFormatter:g,isTimeOnlyField:We,errorStrings:w}),Lz({axis:t,isRotated:xe,chartConfig:f}),Rz({axis:t,timeIntervalInfo:h,dateBaseInterval:ie,xFieldIsTimeOnly:We}),So({element:Je,lineSymbol:{color:[...q.color],...T??ZA()},visible:D}),So({element:Je.ticks.template,lineSymbol:T,visible:D}),So({element:Je.grid.template,lineSymbol:R,visible:D}),R===void 0&&(t.get("renderer").grid.template.set("strokeWidth",q.lineWidth),t.markDirtyValues()),A5({axis:t,axisConfig:o,chartType:G,horizontalAxisLabelsBehavior:c,verticalAxisLabelsBehavior:u,axisLabelsBehaviorChanged:d}),T5({axis:t,axisTitleConfig:L,isSecondValueAxis:m}),Ez(t,o),o5({axis:t,chartType:G,labelConfig:$,horizontalAxisLabelsBehavior:c,isSecondValueAxis:m,tickSpacing:ee}),Mz({root:de,axis:t,displayCursorTooltip:F}),a5({axis:t,guideConfigs:z,guideTooltipFormatter:y,anyGuideAboveChanged:A,utilsStrings:x}),F5({axis:t,data:e,chartType:G,dataWasUpdated:i,axesInitializationNeeded:r,heatChartHideEmptyRowsAndColumnsChanged:n,sortChanged:a})}function P5(s){let{chart:t,errorStrings:e}=s,{root:i}=t,r=fe(t.uid,"config");if(r){let{x:a}=r.series[0],n=ks(r),{axes:o}=r,l=ze(r.series);Il({chartType:l,axesConfig:o,errorStrings:e});let h={root:i,x:a,chartType:l},c=n?o?.[1]:o?.[0],u=n?o?.[0]:o?.[1],d=c?.valueFormat,A=u?.valueFormat;if(d!==void 0&&A!==void 0&&(fu({...h,axes:t.xAxes,valueFormat:d,axisRenderer:ls.new(i,{}),isXAxis:!n,x:a}),fu({...h,axes:t.yAxes,valueFormat:A,axisRenderer:va.new(i,{}),isXAxis:n,x:a}),o?.[2]!==void 0)){let p=n?ls:va;fu({...h,axes:n?t.xAxes:t.yAxes,valueFormat:o[2]?.valueFormat,axisRenderer:p.new(i,{opposite:!0}),isSecondValueAxis:!0,isXAxis:n,x:a})}}}function D5(s){let{chart:t,chartType:e,axesConfig:i,x:r,errorStrings:a}=s,{root:n}=t,o=i?.[0],l=i?.[1];if(Il({chartType:e,axesConfig:i,errorStrings:a}),o?.valueFormat!==void 0&&l?.valueFormat!==void 0){let h={root:n,x:r,chartType:e};fu({...h,axes:t.xAxes,valueFormat:o.valueFormat,axisRenderer:Us.new(n,{}),isXAxis:!0,x:r}),fu({...h,axes:t.yAxes,valueFormat:l.valueFormat,axisRenderer:ou.new(n,{}),isXAxis:!1,x:r})}}function l$(s){let{chart:t,chartConfig:e,errorStrings:i}=s,{axes:r}=e,{x:a}=e.series[0],n=ze(e.series);switch(t.xAxes.clear(),t.yAxes.clear(),n){case V.GaugeSeries:t instanceof La&&_5({chart:t,axesConfig:r,errorStrings:i});break;case V.HistogramSeries:w5({chart:t,axesConfig:r,x:a,errorStrings:i});break;case V.HeatSeries:case V.BarSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.LineSeries:case V.BoxPlotSeries:P5({chart:t,errorStrings:i});break;case V.RadarSeries:t instanceof La&&D5({chart:t,axesConfig:r,chartType:n,x:a,errorStrings:i});break}}function L5(s){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,anyGuideAboveChanged:a,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,timeIntervalInfo:c,xAxisLabelFormatter:u,yAxisLabelFormatter:d,secondaryYAxisLabelFormatter:A,guideTooltipFormatter:p,utilsStrings:m,errorStrings:f,queryObject:g}=s,{horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axes:w}=e,S=ks(e),D=ze(e.series),T=fe(t.uid,"isNonAggregatedChart"),L=t.xAxes.getIndex(0),$=t.yAxes.getIndex(0),I=t.xAxes.getIndex(1)??t.yAxes.getIndex(1);Il({chartType:D,axesConfig:w,errorStrings:f});let R=S?1:0,F=S?0:1,H=w?.[R],K=w?.[F];[{axis:L,axisConfig:H,externalAxisLabelFormatter:S?d:u,axisConfigIndex:R},{axis:$,axisConfig:K,externalAxisLabelFormatter:S?u:d,axisConfigIndex:F},{axis:I,axisConfig:w?.[2],externalAxisLabelFormatter:A,isSecondValueAxis:!0,axisConfigIndex:2}].forEach(z=>{let{axis:ee,axisConfig:ie,axisConfigIndex:de,externalAxisLabelFormatter:G,isSecondValueAxis:Y}=z;ee!==void 0&&!ee.isDisposed()&&ie!==void 0&&aB({axis:ee,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,sortChanged:r,timeIntervalInfo:c,axisConfig:ie,axisConfigIndex:de,horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:i,anyGuideAboveChanged:a,isNonAggregatedChart:T,isSecondValueAxis:Y,utilsStrings:m,chartConfig:e,externalAxisLabelFormatter:G,guideTooltipFormatter:p,errorStrings:f,queryObject:g})}),Pv(t,n)}function h$(s){let{chart:t,chartConfig:e}=s,i=ze(e.series);i===V.GaugeSeries&&t instanceof La?x5(s):i===V.HistogramSeries?C5(s):L5(s)}function I5(s,t){let e=Xt(q.backgroundColor);t.set("background",nr.new(s,{fill:e.color,fillOpacity:e.opacity}))}function u$(s,t){let e=Xt(t??q.backgroundColor);s.get("background")?.setAll({fill:e.color,fillOpacity:e.opacity})}function c$(s,t){let e=ze(t.series);return s instanceof Ci&&e!==V.GaugeSeries}function k5(s,t){let e=q.cursorCrosshair.style,i={type:Dt.SLS,style:t?.style??e.style,color:t?.color??e.color,width:t?.width??e.width},r=s.get("cursor")?.lineX,a=s.get("cursor")?.lineY;So({element:r,lineSymbol:i}),So({element:a,lineSymbol:i})}function d$(s){let{root:t,chart:e,config:i,queryObject:r}=s,a;if(c$(e,i)){let n=e instanceof La?ml:Gn;a=e.set("cursor",n.new(t,{})),qX(e,r)}return a}function A$(s){let{root:t,chart:e,cursorCrosshair:i,config:r,queryObject:a}=s;if(c$(e,r)){let n=e.get("cursor")??d$({root:t,chart:e,config:r,queryObject:a});n&&(k5(e,i?.style),n.lineX.set("visible",i?.verticalLineVisible??q.cursorCrosshair.verticalLineVisible),n.lineY.set("visible",i?.horizontalLineVisible??q.cursorCrosshair.horizontalLineVisible))}}function $5(s){let{chart:t,enabled:e}=s,i=e?"pointer":"default";t instanceof Ts&&t.series.each(r=>{switch(!0){case r instanceof Li:r.columns.template.set("cursorOverStyle",i);break;case r instanceof qt:let a=Rt(r.uid,"bulletTemplate");a!==void 0&&!nh(r)&&a.set("cursorOverStyle",i);break;case r instanceof Hr:r.slices.template.setAll({cursorOverStyle:i});break}})}function O5(s){let{chart:t,actionMode:e,cursorRange:i}=s,r=fe(t.uid,"isRotated"),a=fe(t.uid,"config"),n=ze(a?.series),o=n===V.ScatterSeries,l=(n===V.LineSeries||n===V.RadarSeries)&&xa(a?.axes?.[0]?.valueFormat),h=(n===V.LineSeries||n===V.RadarSeries)&&ld(a?.axes?.[0]?.valueFormat),c=(n===V.LineSeries||n===V.RadarSeries)&&ro(a?.axes?.[0]?.valueFormat),u,d=!1,A=e??fe(t.uid,"actionMode")??q.actionMode;if(fe(t.uid,"filterBySelection")===!0)u=ji.None,d=!1;else if(i!==void 0)u=JL({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Vt.Zoom:o||l||c?u=ji.ZoomXY:u=r===!0?ji.ZoomY:ji.ZoomX,d=!1;break;case Vt.MultiSelection:case Vt.MultiSelectionWithCtrlKey:h?u=r===!0?ji.SelectY:ji.SelectX:u=ji.SelectXY,d=!0;break;case Vt.MonoSelection:u=ji.None,d=!0;break;case Vt.None:u=ji.None,d=!1;break}t instanceof Ci&&t.get("cursor")!==void 0&&u!==void 0&&t.get("cursor")?.set("behavior",u),$5({chart:t,enabled:d})}function E5(s,t){t!==void 0&&(t.width!==void 0&&s.set("width",oL(t.width)),t.height!==void 0&&s.set("height",oL(t.height)),t.paddingTop!==void 0&&s.set("paddingTop",t.paddingTop),t.paddingBottom!==void 0&&s.set("paddingBottom",t.paddingBottom))}function Aw(s){let{root:t,defaults:e,parent:i,id:r,index:a}=s,n=Re.new(t,{});return E5(n,e),i!==void 0&&i.children.insertIndex(a??i.children.length,n),r!==void 0&&n.set("id",r),n}function pw(s,t){t?s.hide():s.show()}function M5(s,t){let e=Aw({root:s,defaults:q.headerContainer,parent:t,id:Ns(Wv,t.uid),index:0}),i=Aw({root:s,defaults:q.headerContainer,parent:t,id:Ns(Kw,t.uid),index:1}),r=gA({root:s,parent:e,defaults:q.titleLabel,id:Ns(Sk,e.uid)}),a=gA({root:s,parent:i,defaults:q.subtitleLabel,id:Ns(Fk,i.uid)});yA({chart:t,label:r,labelType:ii.ChartTitle}),yA({chart:t,label:a,labelType:ii.ChartSubTitle})}function p$(s,t){let{title:e,subtitle:i}=t??{},r=fe(s.uid,"config"),a=r?.legend?.visible!==!1&&r?.legend?.position===st.Top?0:q.headerContainer.paddingBottom??0,n=Ii({childId:Wv,parent:s});if(n!==void 0){n.set("paddingBottom",a);let l=Ii({childId:Sk,parent:n});l!==void 0&&(wn({label:l,labelConfig:e,defaults:q.titleLabel}),bl({chart:s,label:l,labelType:ii.ChartTitle}),pw(n,l.get("disabled")===!0||(e?.content.text??"")===""))}let o=Ii({childId:Kw,parent:s});if(o!==void 0){o.set("paddingBottom",a),n!==void 0&&n.set("paddingBottom",q.titleAndSubtitlePaddingBottom);let l=Ii({childId:Fk,parent:o});l!==void 0&&(wn({label:l,labelConfig:i,defaults:q.subtitleLabel}),bl({chart:s,label:l,labelType:ii.ChartSubTitle}),pw(o,l.get("disabled")===!0||(i?.content.text??"")===""))}}function R5(s){let{root:t}=s,e=Aw({root:t,defaults:q.footerContainer,parent:s,id:Ns(Xv,s.uid)}),i=gA({root:t,parent:e,id:Ns(Tk,e.uid)});yA({chart:s,label:i,labelType:ii.ChartFooter})}function f$(s,t){let e=Ii({childId:Xv,parent:s});if(e!==void 0){let i=Ii({childId:Tk,parent:e});i!==void 0&&(wn({label:i,labelConfig:t,defaults:q.footer}),bl({chart:s,label:i,labelType:ii.ChartFooter}),pw(e,i.get("disabled")||(t?.content.text??"")===""))}}function m$(s){if(!(s instanceof La)&&s instanceof Ci){let{root:t}=s,e=cl.new(t,{orientation:"horizontal",visible:!1,marginTop:0}),i=cl.new(t,{orientation:"vertical",visible:!1});s.setAll({scrollbarX:e,scrollbarY:i})}}function U5(s,t){if(t!==void 0){let e=Xt(t),i=t[3]/255,r=i/2;[{element:s.get("background"),specificOpacity:r},{element:s.startGrip.get("background")},{element:s.endGrip.get("background")},{element:s.thumb}].forEach(a=>{let{element:n,specificOpacity:o}=a;n!==void 0&&n.setAll({fill:e.color,fillOpacity:o??i})}),[{element:s.get("background"),stateName:"default",specificOpacity:r},{element:s.startGrip.get("background"),stateName:"default"},{element:s.startGrip.get("background"),stateName:"hover"},{element:s.startGrip.get("background"),stateName:"down"},{element:s.endGrip.get("background"),stateName:"default"},{element:s.endGrip.get("background"),stateName:"hover"},{element:s.endGrip.get("background"),stateName:"down"},{element:s.thumb,stateName:"default"},{element:s.thumb,stateName:"hover"},{element:s.thumb,stateName:"down"}].forEach(a=>{let{element:n,stateName:o,specificOpacity:l}=a;(n?.states.lookup(o)??n?.states.create(o,{}))?.setAll({fill:e.color,fillOpacity:l??i})})}}function V5(s,t){typeof t=="number"&&Number.isFinite(t)&&(s.get("orientation")==="horizontal"?s.setAll({height:t,minHeight:t}):s.setAll({width:t,minWidth:t}))}function N5(s,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;s.startGrip.set("scale",e),s.endGrip.set("scale",e)}}function IL(s,t){typeof t=="number"&&Number.isFinite(t)&&(s.get("orientation")==="horizontal"?s.set("marginBottom",t):s.set("marginLeft",t),s.markDirtyBounds())}function g$(s){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=s;if(!(t instanceof La)&&t instanceof Ci){let r=fe(t.uid,"isRotated");(t.get("scrollbarX")===void 0||t.get("scrollbarY")===void 0)&&m$(t);let a=t.get("scrollbarX"),n=t.get("scrollbarY");[a,n].forEach(o=>{if(o!==void 0){let l=o.get("orientation")==="horizontal"&&r!==!0||o.get("orientation")==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(Zi(o,!h),l!==void 0&&!h){let{width:c,color:u,gripSize:d,margin:A}=l;IL(o,A??c??q.scrollbarPadding),U5(o,u),N5(o,d),V5(o,c)}else IL(o,0)}})}}function H5(s){bk(s)}function kL(s){return s.get("legendDataItem")?.get("marker").children.getIndex(0)}function Q5(s,t){s.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&e.set("strokeOpacity",0)})}function j5(s){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:a,options:n,queryObject:o}=s,{id:l,name:h}=i,{xField:c,yField:u,xAxisField:d,yAxisField:A}=SA(e,i),p=tT(e),m=Li.new(t,{id:l,name:h,stacked:p,turboMode:!0,xAxis:r,yAxis:a,[d]:c,[A]:u,maskBullets:!1});us(m.columns.template,n?.selectionTheme);let f=Pt.new({});return hs(m.uid,{bulletTemplate:f}),Do({element:m.columns.template,series:m,queryObject:o}),m.bullets.push(g=>{let y=ft.new(g,{},f);return ma.new(g,{sprite:y})}),m.columns.template.set("width",Bt(100)),iB(m),jw(m,n?.tooltipFormatter),Hk(m),TA(m,e),m.appear(),m}function W5(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:a,colorMatch:n,rendererType:o}=s,l=t.root,h=Yf(t),c=new Set,u,d,A=e.fillSymbol,p={root:l,seriesConfig:e,seriesIndex:i,seriesSymbol:A,isChartFillSymbol:!0},m={},f={},g=Zb(i),y=Rt(t.uid,"bulletTemplate");if(y&&A?.style&&A.style!==bs.Solid&&vu({root:l,element:y,fillSymbol:A,defaultToColorFromRamp:!0,colorRampIndex:i,isChartFillSymbol:!0,chartBackgroundColor:tk(t.chart)??[...q.backgroundColor]}),t.columns.length===0?m=en({root:l,seriesIndex:i,colorMatch:n,seriesSymbol:A??g,element:ft.new(l,{}),isChartFillSymbol:!0}):t.columns.each(x=>{let w=x.dataItem?.dataContext;if(Number.isFinite(w?.[h])){d=on({dataItem:w,seriesConfig:e,chartSubType:a,colorMatch:n,rendererType:o});let S=w[q.xAxisField]===q.nullValue,D=(S&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:A)??g;m=en({...p,seriesSymbol:D,element:x,colorMatch:n,rendererSymbol:d}),pA(x,m.stylingInfo),S||(c.add(JSON.stringify(m.symbolWithColorInfo)),f=m)}}),r>1){let x=kL(t);if(x!==void 0)en({...p,seriesSymbol:A??g,element:x,colorMatch:n,rendererSymbol:d}),pA(x,f.stylingInfo);else if(t.chart instanceof Ci){let w=t.chart.children.values.find(S=>S instanceof hl);w!==void 0&&w.events.once(Ai.BoundsChanged,()=>{pA(kL(t),f.stylingInfo)})}en({...p,seriesSymbol:f.symbolWithColorInfo??A??g,element:t,colorMatch:n,rendererSymbol:d,keepCurrentVisibility:!0}),en({...p,seriesSymbol:f.symbolWithColorInfo??A??g,element:t.columns.template,colorMatch:n,rendererSymbol:d})}return c.size<=1&&(u=f.symbolWithColorInfo??A),Q5(t,h),u}function X5(s){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:a,rendererType:n,disableInteractions:o}=s,l=s.seriesConfig,h=t.chart;if(h!==void 0){let c=fe(h.uid,"config"),u=c?.series.length??0,d=It(c?.series);bA(t,!1);let A=W5({series:t,seriesConfig:l,seriesIndex:r,numberOfSeries:u,chartSubType:d,colorMatch:a,rendererType:n});o&&bA(t,!0),e.set(i?.get(l.id)??r,A),e.size===u&&nn({data:e,htmlContainer:t.root.dom,chartId:h.get("id"),colorMatchApplied:PA(h)})}}function z5(s){let{columnSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:a,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:c,loaderHandle:u}=s,d=r.series[i];if(e&&d?.type===V.BarSeries&&(o===!0||a===!0||c===!0||l===!0||h||n===!0)){let{xField:A,yField:p,xAxisField:m,yAxisField:f}=SA(r,d);t.setAll({[m]:A,[f]:p}),t.events.once(Ai.DataValidated,()=>{u.hideLoader()}),t.data.setAll(e.dataItems)}}function G5(s){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:a,dataWasUpdated:n,rotationChanged:o,timeZoneChanged:l,queryObject:h,utilsStrings:c,seriesWereReinitialized:u,autoInverseDataLabelTextColor:d,fieldList:A,sortChanged:p,stackedTypeChanged:m,loaderHandle:f}=s,g=i.series[a],y=i.rotated,x=i.axes,w;if(x?.[1]&&(w=x[1]),t.set("id",g.id),Zi(t,g.visible),us(t.columns.template,r?.selectionTheme),xu(t.columns.template,e?.dataItems?.length),eB({series:t,chartConfig:i,isRotated:y}),H5({seriesType:V.BarSeries,series:t,seriesConfig:g,isRotated:y,dataLabelsConfig:g.dataLabels,autoInverseDataLabelTextColor:d,yAxisValueFormat:w?.valueFormat,externalDataLabelFormatter:r?.dataLabelFormatter}),z5({columnSeries:t,data:e,seriesIndex:a,chartConfig:i,dataWasUpdated:n,timeZoneChanged:l,seriesWereReinitialized:u,rotationChanged:o,stackedTypeChanged:m,sortChanged:p,loaderHandle:f}),Gw({series:t,seriesConfig:g,fieldList:A,queryObject:h,seriesIndex:a,tooltipFormatter:r?.tooltipFormatter,utilsStrings:c}),oh(s)){let S={series:t,seriesConfig:g,seriesIndex:a,colorMatch:s.colorMatch,seriesIndexMapper:s.seriesIndexMapper,seriesSymbolMapForEvent:s.seriesSymbolMapForEvent,rendererType:s.rendererType,disableInteractions:r?.disableInteractions};lh({styleCallback:X5,callbackProps:S,series:t,seriesConfig:g})}tB({chartConfig:i,series:t,seriesIndex:a,queryObject:h})}function Y5(s){let{chartConfig:t,seriesConfig:e}=s,i=ks(t),r=t.showOutliers,a=t.standardizeValues,n=Ca(t),{y:o}=e,l=tg(t),h=It(l.series),c=n?void 0:e?.query?.where,u={y:h===Ee.BoxPlotMultiFieldsAndCategory&&typeof o=="string"?o:void 0,chartSubType:h,splitBy:c,showOutliers:r,standardizeValues:pd(h)?a:!1},d=Kv({chartConfig:t,seriesConfig:e,key:Kt.ThirdQuartile});return{properties:{...d.properties,low:er({...u,key:Kt.Min}),open:er({...u,key:Kt.FirstQuartile}),high:er({...u,key:Kt.Max})},dataFields:{...d.dataFields,low:i?"lowValueXField":"lowValueYField",open:i?"openValueXField":"openValueYField",high:i?"highValueXField":"highValueYField"}}}function K5(s){let{candleStickSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:n,loaderHandle:o}=s;(i===!0||a===!0||r===!0||n===!0)&&(t.events.once(Ai.DataValidated,()=>{o.hideLoader()}),t.data.setAll(e?.dataItems??[]))}function Z5(s){let{candleStickSeries:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:a,showMean:n,rendererType:o,options:l}=s,{root:h}=t,c=e.fillSymbol??jm(i),u={},d={root:h,seriesConfig:e,seriesIndex:i,colorMatch:a,isChartFillSymbol:!0};bA(t,!1),t.columns.length===0?u=en({...d,seriesSymbol:c,element:ft.new(h,{})}):t.columns.each(A=>{u=en({...d,seriesSymbol:c,element:A,rendererSymbol:n?void 0:on({dataItem:A.dataItem?.dataContext,seriesConfig:e,chartSubType:r,colorMatch:a,rendererType:o})})}),en({...d,seriesSymbol:u?.symbolWithColorInfo??c,element:t.columns.template,colorMatch:a}),l?.disableInteractions&&bA(t,!0)}function q5(s){let{candleStickSeries:t,seriesConfig:e,data:i,options:r}=s;us(t.columns.template,r?.selectionTheme),xu(t.columns.template,i?.dataItems?.length),FA(t,e.name),K5(s),oh(s)&&lh({styleCallback:Z5,callbackProps:s,series:t,seriesConfig:e})}function J5(s){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:a,options:n,queryObject:o}=s,l=r.series[a],h;if(l.type===V.BoxPlotSeries){let c=Y5({chartConfig:r,seriesConfig:l});h=Ia.new(t,{id:l.id,turboMode:!0,xAxis:e,yAxis:i,[c.dataFields.low]:c.properties.low,[c.dataFields.open]:c.properties.open,[c.dataFields.high]:c.properties.high,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),h.columns.template.setAll({themeTags:[],width:Bt(80)}),us(h.columns.template,n?.selectionTheme),Do({element:h.columns.template,series:h,queryObject:o})}return h}function eG(s){let{chartConfig:t,seriesConfig:e}=s,i=It(t.series),{showOutliers:r,standardizeValues:a}=t,{y:n}=e,o=e?.query?.where,l=tg(t),h=Kv({chartConfig:l,seriesConfig:e,key:Kt.Average}),c=er({y:i===Ee.BoxPlotMultiFieldsAndCategory&&typeof n=="string"?n:void 0,chartSubType:i,splitBy:o,showOutliers:r,standardizeValues:pd(i)?a:!1,key:Kt.Average});return h.properties.value=c,h}function tG(s){let{meanLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:n}=s;(i===!0||a===!0||r===!0||n===!0)&&t.data.setAll(e?.meanLines??[])}function iG(s){let{meanLineSeries:t,seriesConfig:e,data:i,dataWasUpdated:r,sortChanged:a,rotationChanged:n,seriesWereReinitialized:o,options:l}=s,h=Rt(t.uid,"bulletTemplate");h&&us(h,l?.selectionTheme),xu(h,i?.meanLines?.length),FA(t,e?.name),tG({meanLineSeries:t,data:i,dataWasUpdated:r,sortChanged:a,rotationChanged:n,seriesWereReinitialized:o})}function rG(s){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:a,options:n,queryObject:o}=s,l=r.series[a],h;if(l.type===V.LineSeries){let c=eG({chartConfig:r,seriesConfig:l});h=qt.new(t,{id:l.id,xAxis:e,yAxis:i,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),h.appear();let u=Pt.new({});hs(h.uid,{isBoxPlotMeanLineSeries:!0,bulletTemplate:u}),us(u,n?.selectionTheme),h.bullets.push(d=>{let A=ft.new(d,{},u),p=ma.new(d,{sprite:A});return h&&Do({element:A,series:h,queryObject:o}),p})}return h}function sG(s,t){return s.get("id")===`${t}_${Wi.Outliers}`}function aG(s){let{chartConfig:t,seriesConfig:e}=s;return Kv({chartConfig:t,seriesConfig:e,key:Kt.Outlier})}function nG(s){let{outlierSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:n}=s;(i===!0||a===!0||r===!0||n===!0)&&t.data.setAll(e?.outliers??[])}function oG(s,t){return(s??q.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function lG(s){let{outlierSeries:t,chartSubType:e,seriesConfig:i,colorMatch:r,showOutliers:a}=s;if(Rt(t.uid,"bulletTemplate")&&i.type===V.BoxPlotSeries){let o=i.fillSymbol,l={type:Dt.SMS,style:YA.Circle,color:o?.color,size:q.boxPlot.boxPlotOutliersSize};t.dataItems.forEach(h=>{let c=h.bullets?.[0]?.get("sprite");if(c!==void 0){let u=on({dataItem:h.dataContext,seriesConfig:i,chartSubType:e,colorMatch:r});en({root:t.root,seriesSymbol:l,element:c,colorMatch:r,rendererSymbol:u})}})}let n=oG(a,i.visible);Zi(t,n)}function hG(s){let{outlierSeries:t,data:e,seriesConfig:i,sortChanged:r,dataWasUpdated:a,rotationChanged:n,seriesWereReinitialized:o,options:l}=s;if(t&&i.type===V.BoxPlotSeries){let h=Rt(t.uid,"bulletTemplate");h&&us(h,l?.selectionTheme),xu(h,e?.outliers?.length),nG({outlierSeries:t,data:e,rotationChanged:n,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:o}),oh(s)&&lh({styleCallback:lG,callbackProps:s,series:t,seriesConfig:i})}}function uG(s){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:a,options:n,queryObject:o}=s,l=r.series[a],h;if(l.type===V.BoxPlotSeries){let c=aG({chartConfig:r,seriesConfig:l});h=qt.new(t,{id:`${l.id}_${Wi.Outliers}`,xAxis:e,yAxis:i,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),h.strokes.template.set("forceHidden",!0);let u=Pt.new({});hs(h.uid,{isBoxPlotOutliersSeries:!0,bulletTemplate:u}),us(u,n?.selectionTheme),h.bullets.push(d=>{let A=ft.new(d,{},u),p=ma.new(d,{sprite:A});return h&&Do({element:A,series:h,queryObject:o}),mG({outlierSeries:h,bullet:p,seriesConfigId:l.id}),p}),h.appear()}return h}function cG(s){let{chartConfig:t,seriesConfig:e,type:i}=s,r="";switch(i){case Wi.Top:r=Kt.Max;break;case Wi.Median:r=Kt.Median;break;case Wi.Bottom:r=Kt.Min;break}return Kv({chartConfig:t,seriesConfig:e,key:r})}function dG(s){let{stepLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:a,seriesWereReinitialized:n}=s;(i===!0||a===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function AG(s){let{stepLineSeries:t,data:e,seriesConfig:i,seriesIndex:r,colorMatch:a,chartSubType:n,rendererType:o}=s;if(i.type===V.BoxPlotSeries){let{root:l}=t,h=nI({data:e.dataItems,colorMatch:a,chartSubType:n,rendererType:o}),c=(i.fillSymbol??jm(r)).color,u={type:Dt.SLS,width:q.boxPlot.boxPlotLineWidth,color:h?q.boxPlot.boxPlotWhiskersColor:c};en({root:l,seriesIndex:r,seriesSymbol:u,element:t,colorMatch:a})}}function pG(s){let{stepLineSeries:t,data:e,seriesConfig:i,rotationChanged:r,sortChanged:a,dataWasUpdated:n,seriesWereReinitialized:o}=s,l=i.visible!==!1;t!==void 0&&i.type===V.BoxPlotSeries&&(Zi(t,l),oh(s)&&lh({styleCallback:AG,callbackProps:s,series:t,seriesConfig:i}),dG({stepLineSeries:t,data:e,rotationChanged:r,sortChanged:a,dataWasUpdated:n,seriesWereReinitialized:o}))}function YC(s){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:a,type:n,options:o,queryObject:l}=s,h=r.series[a],c;if(h.type===V.BoxPlotSeries){let u=cG({chartConfig:r,seriesConfig:h,type:n});c=wo.new(t,{id:`${h.id}_${n}`,xAxis:e,yAxis:i,noRisers:!0,[u.dataFields.value]:u.properties.value,[u.dataFields.category]:u.properties.category}),us(c.strokes.template,o?.selectionTheme),Do({element:c.strokes.template,series:c,queryObject:l})}return c}function Kv(s){let{chartConfig:t,seriesConfig:e,key:i}=s,r=ks(t),a=t.showOutliers,n=t.standardizeValues,o=Ca(t),l=It(t.series),{x:h,y:c}=e,u=o?void 0:e?.query?.where,d={y:l===Ee.BoxPlotMultiFieldsAndCategory&&typeof c=="string"?c:void 0,chartSubType:l,splitBy:u,showOutliers:a,standardizeValues:pd(l)?n:!1},A=l===Ee.BoxPlotMonoField||l===Ee.BoxPlotMultiFields||l===Ee.BoxPlotMonoFieldAndSplitBy||l===Ee.BoxPlotMultiFieldsAndSplitBy?Hm:h;return{dataFields:{value:r?"valueXField":"valueYField",category:r?"categoryYField":"categoryXField"},properties:{value:er({key:i,...d}),category:A}}}function fG(s,t){return s.series.values.find(e=>sG(e,t))}function y$(s,t){let e=s.series.values.find(a=>a.get("id")===`${t}_${Wi.Top}`),i=s.series.values.find(a=>a.get("id")===`${t}_${Wi.Median}`),r=s.series.values.find(a=>a.get("id")===`${t}_${Wi.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function v$(s){return s!==Ee.BoxPlotMonoField&&s!==Ee.BoxPlotMultiFields&&s!==Ee.BoxPlotMonoFieldAndCategory}function b$(s){let{chart:t,candleSeriesIndex:e,numberOfCandleStickSeries:i}=s,r,a,n=fe(t.uid,"config");if(n){let o=ks(n),l=Ca(n),h=o?t.yAxes.getIndex(0)?.get("renderer"):t.xAxes.getIndex(0)?.get("renderer"),c=h?.get("cellStartLocation"),u=h?.get("cellEndLocation");if(c&&u){let d=c/(l?1:n.series.length);r=c+e/i*(u-c)+d,a=c+(e+1)/i*(u-c)-d}}return{startLocation:r,endLocation:a}}function mG(s){let{outlierSeries:t,bullet:e,seriesConfigId:i}=s;if(t){let{chart:r}=t;if(r){let a=fe(r.uid,"config");if(a){let n=It(a.series);if(v$(n)){let o=r.series.values.filter(h=>h instanceof Ia),l=o?.findIndex(h=>h.get("id")===i);if(l&&l!==-1&&o[l]){let{startLocation:h,endLocation:c}=b$({chart:r,candleSeriesIndex:l,numberOfCandleStickSeries:o.length});h!==void 0&&c!==void 0&&e.set("locationX",(h+c)/2)}}}}}}function gG(s){let t=fe(s.uid,"config");if(t){let e=It(t.series),i=t.series.length,r=ks(t)?s.yAxes.getIndex(0)?.get("renderer"):s.xAxes.getIndex(0)?.get("renderer"),a=r?.get("cellStartLocation"),n=r?.get("cellEndLocation");if(a&&n){let o=s.series.values.filter(l=>l instanceof Ia);o.forEach((l,h)=>{let{topStepLineSeries:c,medianStepLineSeries:u,bottomStepLineSeries:d}=y$(s,l.get("id")??"");if(v$(e)){let{startLocation:A,endLocation:p}=b$({chart:s,candleSeriesIndex:h,numberOfCandleStickSeries:o.length});[c,u,d].forEach(m=>{m!==void 0&&(m.set("stepWidth",Bt(60/i)),A&&p&&m.set("locationX",(A+p)/2))})}else[c,u,d].forEach(A=>{A!==void 0&&A.setAll({stepWidth:Bt(60/i)})})})}}}function yG(s){let{chartConfig:t,seriesIndex:e}=s,i=t.series[e],r=ze([i]),a=[];if(r===V.BoxPlotSeries)[J5(s),YC({...s,type:Wi.Top}),YC({...s,type:Wi.Median}),YC({...s,type:Wi.Bottom}),uG(s)].forEach(n=>{n&&a.push(n)});else if(r===V.LineSeries){let n=rG(s);n&&a.push(n)}return a}function vG(s){let{chart:t,chartConfig:e,series:i,seriesConfig:r}=s;if(t&&e)if(gG(t),i instanceof Ia&&r.type===V.BoxPlotSeries){i.set("id",r.id);let a=i.get("id")??"";q5({...s,series:i,seriesConfig:r,candleStickSeries:i});let{topStepLineSeries:n,medianStepLineSeries:o,bottomStepLineSeries:l}=y$(t,a),h=[Wi.Top,Wi.Median,Wi.Bottom];[n,o,l].forEach((u,d)=>{u&&(u.set("id",`${r.id}_${h[d]}`),pG({...s,stepLineSeries:u}))});let c=fG(t,a);c&&(c.set("id",`${r.id}_${Wi.Outliers}`),hG({...s,outlierSeries:c}))}else i instanceof qt&&r.type===V.LineSeries&&iG({...s,meanLineSeries:i})}function bG(s){bk(s)}function nB(s){let{isLineSmoothed:t,isRadarLineSeries:e,isRotated:i}=s,r=e?RC:Lc;return t&&(r=e?MC:i?OC:$C),r}function xG(s){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:a}=s,n;for(let o of t.dataItems){let l=o.dataContext;if(n=on({seriesConfig:e,dataItem:l,chartSubType:i,colorMatch:r,rendererType:a}),n!==void 0)break}return n}function _G(s){let{series:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:a,rendererType:n}=s,o=t.root,l=xG({series:t,seriesConfig:e,chartSubType:r,colorMatch:a,rendererType:n}),h=en({root:o,seriesIndex:i,seriesSymbol:e.lineSymbol??Yb(i),element:t,colorMatch:a,rendererSymbol:l});return Zi(t,e.visible),h.symbolWithColorInfo}function CG(s){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:a,lineColor:n}=s,o=!1,l,h=Rt(t.uid,"bulletTemplate");if(h!==void 0){r.markerVisible!==!1&&r.visible!==!1?t.bulletsContainer.show():t.bulletsContainer.hide();let{markerSymbol:c}=r;c===void 0&&(c=Gb(),c.color=n),a?c.color=n:c.color??=n;let u=on({dataItem:t.dataItems[0]?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:a});u&&u.outline&&(c.outline??=u.outline,c.outline.color=u.outline.color),Ak({element:h,markerSymbol:c});let d=new Set,A;t.dataItems.forEach(p=>{let m=p.bullets?.[0]?.get("sprite");if(m!==void 0){let f=on({dataItem:p?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:a}),g=en({root:t.root,seriesIndex:e,seriesSymbol:c,element:m,colorMatch:a,rendererSymbol:f});l=g.symbolWithColorInfo,A=g.stylingInfo,pA(m,A),d.add(JSON.stringify(A))}}),o=d.size>1}return o?void 0:l}function wG(s,t){if(s.showArea===!0)if(s.areaColor!==void 0){let{color:e,opacity:i}=Xt(s.areaColor);t.set("fill",e),t.fills.template.setAll({fillOpacity:i,visible:!0})}else t.set("fill",t.get("stroke")),t.fills.template.setAll({fillOpacity:q.lineSeries.areaOpacity,visible:!0});else t.fills.template.set("visible",!1)}function x$(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,rendererType:n,chartSubType:o,seriesIndexMapper:l,seriesSymbolMapForEvent:h,isRotated:c}=s,u=t.root,d=t.chart;if(d){let A=t instanceof gl;Zi(t,e.visible);let p=nB({isRadarLineSeries:A,isLineSmoothed:e.lineSmoothed,isRotated:c});t.set("curveFactory",p);let m=_G({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:a,rendererType:n}),f=CG({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:a,lineColor:m.color});h.set(l?.get(e.id)??i,{lineSymbol:m,markerSymbol:f}),wG(e,t),h.size===r&&(nn({data:Tr(h),htmlContainer:u.dom,chartId:t.chart?.get("id"),colorMatchApplied:PA(d)}),h.clear())}}function BG(s){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:a,options:n,queryObject:o}=s,{id:l,name:h}=a,{xField:c,yField:u,xAxisField:d,yAxisField:A}=SA(e,a),p=qt.new(t,{id:l,name:h,xAxis:i,yAxis:r,[d]:c,[A]:u,maskBullets:!1,curveFactory:nB({isRadarLineSeries:!1,isLineSmoothed:a.lineSmoothed,isRotated:e.rotated})});p.appear();let m=Pt.new({});return us(m,n?.selectionTheme),hs(p.uid,{bulletTemplate:m}),p.bullets.push(f=>{let g=ft.new(f,{role:q.aria.defaultChartItemRole,ariaLabel:tp(),hoverOnFocus:!0,tooltip:BA({series:p,tooltipFormatter:n?.tooltipFormatter}),layer:q.zIndexes.bulletMarkers},m);return Do({element:g,series:p,queryObject:o}),e$(g,p),ma.new(f,{sprite:g})}),iB(p),TA(p,e),p}function SG(s){let{lineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:a,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:c,loaderHandle:u}=s,d=r.series[i];if(e!==void 0&&i>=0&&i<r.series.length&&d.type===V.LineSeries&&(o===!0||a===!0||l===!0||h||n===!0||c===!0)){let{xField:A,yField:p,xAxisField:m,yAxisField:f}=SA(r,d);t.setAll({[m]:A,[f]:p}),t.events.once(Ai.DataValidated,()=>{u.hideLoader()}),t.data.setAll(e.dataItems)}}function FG(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=s,{chart:h}=t;if(h!==void 0){let c=fe(h.uid,"config"),u=fe(h.uid,"isRotated")??!1,d=It(c?.series);x$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:u})}}function TG(s,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;s.set("connect",e!==!1&&r!==Nb.Null)}function PG(s){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:a,dataWasUpdated:n,queryObject:o,fieldList:l,utilsStrings:h,rotationChanged:c,seriesWereReinitialized:u,timeZoneChanged:d,sortChanged:A,stackedTypeChanged:p,loaderHandle:m}=s,f=i.series[a],g=i.rotated,y=i.axes,x;y?.[1]&&(x=y[1]),t.set("id",f.id),Zi(t,f.visible);let w=Rt(t.uid,"bulletTemplate");w&&us(w,r?.selectionTheme),xu(w,e?.dataItems?.length),eB({series:t,chartConfig:i,isRotated:g}),bG({seriesType:V.LineSeries,series:t,seriesConfig:f,isRotated:g,dataLabelsConfig:f.dataLabels,yAxisValueFormat:x?.valueFormat,externalDataLabelFormatter:r?.dataLabelFormatter}),TG(t,f),SG({lineSeries:t,seriesIndex:a,data:e,chartConfig:i,dataWasUpdated:n,rotationChanged:c,stackedTypeChanged:p,seriesWereReinitialized:u,timeZoneChanged:d,sortChanged:A,loaderHandle:m}),Gw({series:t,seriesConfig:f,fieldList:l,queryObject:o,seriesIndex:a,tooltipFormatter:r?.tooltipFormatter,utilsStrings:h}),oh(s)&&lh({styleCallback:FG,callbackProps:s,series:t,seriesConfig:f}),tB({chartConfig:i,series:t,seriesIndex:a,queryObject:o})}function _$(s,t){let e=s.labels.template;e.adapters.remove("text"),e.adapters.remove("html");let i=t!==void 0?"html":"text";Nf({label:e,labelOutputProp:i});let r=(a,n)=>{let o=a??"",l=Rt(s.uid,"pieChartDataLabelFormatter");if(l){let h=n.dataItem;if(h){let c=h?.get("valuePercentTotal"),u=h?.get("value"),d=h?.get("category")??a??"";o=l(d,u,c)}}return i==="html"?Mr(o):o};e.adapters.add(i,(a,n)=>r(a,n)),s.labels.each(a=>{a.adapters.remove("text"),a.adapters.remove("html"),Nf({label:a,labelOutputProp:i}),a.adapters.add(i,n=>r(n,a))})}function DG(s){let t=s.dataItem?.component,e;if(t instanceof Hr){let i=fe(t.chart?.uid??Number.NaN,"config");if(i!==void 0&&i.series[0].type===V.PieSeries){let r=i.series[0].dataLabelsInside??q.pieChart.dataLabelsInside,a=Xt(i?.series[0].dataLabels?.content?.color).color,n=t.chart?.get("background")?.get("fill")??Xt(q.backgroundColor).color,o=fe(t.chart?.uid??Number.NaN,"options")?.autoInverseDataLabelTextColor??ht.options.autoInverseDataLabelTextColor,l=s.dataItem?.dataContext?.[ht.pieChart.technicalFieldSliceId],h=t.slices.values.find(u=>(u.dataItem?.dataContext)[ht.pieChart.technicalFieldSliceId]===l)?.get("fill")??Xt(i.series[0].fillSymbol?.color).color,c=a??s.text.get("fill");e=c,c&&h&&o&&r&&(e=gk({textBackgroundColor:h,chartBackgroundColor:n}))}}return e}function LG(s,t){let e=s.labels.template;e.set("cursorOverStyle","pointer"),e.setAll({cursorOverStyle:"pointer",maxWidth:q.pieChart.dataLabels.maxWidth??Number.NaN,oversizedBehavior:q.pieChart.dataLabels.wrap??!0?"wrap":"none",centerX:Qe,centerY:Qe}),_$(s,t),e.adapters.add("fill",(i,r,a)=>DG(r))}function IG(s,t){let{numericValueFormat:e,percentValueFormat:i,displayNumericValueOnDataLabel:r,displayCategoryOnDataLabel:a,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c,dataLabelsCharacterLimit:u}=t,{chart:d}=s,A;if(d){let p=Xw({pieChart:d,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:r??q.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??q.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}),m=Xm(u),f=Ra(fe(s.chart?.uid??Number.NaN,"rtl")??!1," ");A=(g,y,x)=>{let w=p(g,y,x),S=a??q.pieChart.displayCategoryOnDataLabel?m(g):"",D=Yi(S)?"":`${S}${f}`;return D=`${D}${w}`,t.dataLabels?.content!==void 0&&(D=_a({textSymbol:{...t.dataLabels.content,text:D},format:"amChartsV5",defaults:{...q.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??q.pieChart.dataLabels.wrap}})),D}}return A}function kG(s){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=s,{dataLabels:r}=e,a=e.dataLabelsOffset??q.pieChart.dataLabelsOffset,n=e.dataLabelsInside??q.pieChart.dataLabelsInside;_$(t,i),hs(t.uid,{pieChartDataLabelFormatter:i??IG(t,e)}),wn({label:t.labels.template,labelConfig:r,defaults:{...q.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??q.pieChart.alignDataLabels}});let o=fe(t.chart?.uid??0,"rtl"),l=!n&&(e.alignDataLabels??q.pieChart.alignDataLabels),h=e.optimizeDataLabelsOverlapping===!0;t.set("alignLabels",l),t.labels.template.setAll({forceHidden:!r?.visible,breakWords:h?!1:void 0,textAlign:o?"right":"left"});let c=t.labels.template.get("radius"),u=t.labels.template.get("baseRadius");n&&u!==Bt(60)?t.labels.template.setAll({radius:void 0,baseRadius:Bt(60),textType:"regular"}):!n&&!h&&!l&&(t.labels.template.setAll({baseRadius:ge,textType:"adjusted"}),a!==void 0&&Number.isFinite(a)&&c!==a&&t.labels.template.set("radius",a))}var KC;function $G(s,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;s.ticks.template.setAll({visible:!i,crisp:!1});let r=e?.lineSymbol??ZA({color:Wb});i&&(r.width=0),So({element:s.ticks.template,lineSymbol:r,visible:!i})}function OG(s){let{series:t,pieSlicesSymbols:e,seriesConfig:i}=s;t.slices.each((r,a)=>{let n=r.dataItem?.dataContext,o=xw({dataContext:n,pieSlicesSymbols:e,seriesConfig:i});vu({root:t.root,element:r,fillSymbol:o,defaultToColorFromRamp:!0,colorRampIndex:a,isChartFillSymbol:!0})})}function EG(s,t){let e=new Map(s.map((i,r)=>[i.arcgis_charts_original_category_value,r]));return[...t].sort((i,r)=>(e.get(i.arcgis_charts_original_category_value)??1/0)-(e.get(r.arcgis_charts_original_category_value)??1/0))}function MG(s){let{series:t,data:e,seriesConfig:i,dataWasUpdated:r,sortChanged:a,seriesWereReinitialized:n,loaderHandle:o,labelUpdateNeeded:l,groupOfSlicesUpdateNeeded:h}=s,{x:c,y:u}=i,d=It([i]),A=d===Ee.PieFromFields?io:c;if(e&&(r===!0||n===!0||a===!0||h===!0))t.setAll({categoryField:A,valueField:d===Ee.PieFromFields?$u:u}),t.events.once(Ai.DataValidated,()=>{o.hideLoader()}),t.data.setAll(e.dataItems);else if(e&&l){let p=t.dataItems,m=p.map(g=>g.dataContext),f=EG(m,e.dataItems);p.forEach((g,y)=>{let x=f[y];if(typeof x[A]=="string"){let w=x[A];g.set("category",w);let S=g.dataContext;S&&(S[A]=w)}}),t.markDirty()}}function RG(s,t){let{innerRadius:e}=t;s.set("innerRadius",e?Bt(e):0)}function UG(s,t){let{startAngle:e,endAngle:i}=t;s.setAll({startAngle:e??q.pieChart.min,endAngle:i??360+(s.get("startAngle")??0)})}function VG(s){let{root:t,seriesConfig:e,options:i,chart:r,queryObject:a}=s,{id:n,name:o,x:l,y:h}=e,c=It([e]),u=Hr.new(t,{id:n,name:o,categoryField:c===Ee.PieFromFields?io:l,valueField:c===Ee.PieFromFields?$u:h});return LG(u,i?.dataLabelFormatter),zw(u,i?.tooltipFormatter),u.slices.template.states.create("hover",{scale:1,stateAnimationDuration:0}),us(u.slices.template,i?.selectionTheme),Do({element:u.slices.template,series:u,queryObject:a}),u.appear(),r instanceof Rs&&C$(r,u),u}function NG(s){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:a,data:n,options:o,loaderHandle:l,labelUpdateNeeded:h,utilsStrings:c,groupOfSlicesUpdateNeeded:u}=s,{dataLabelFormatter:d,tooltipFormatter:A}=o??{};t.set("id",e.id),Zi(t,e.visible),us(t.slices.template,o?.selectionTheme),MG({series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:a,data:n,loaderHandle:l,labelUpdateNeeded:h,groupOfSlicesUpdateNeeded:u}),oh(s)&&lh({styleCallback:OG,callbackProps:s,series:t,seriesConfig:e}),kG({pieSeries:t,seriesConfig:e,dataLabelFormatter:d}),RG(t,e),UG(t,e),$G(t,e),E4({series:t,seriesConfig:e,tooltipFormatter:A});let{chart:p}=t;p instanceof Rs&&C$(p,t)}function C$(s,t){if(!s.isDisposed()){let e=s.radius();Kr(s.uid,{pieChartRadius:e});let i=()=>{let r=Bt(fe(s.uid,"pieChartRadius")??q.pieChart.chartOptimizedRadius),a=r,n=s.series?.values?.[0]??t,o=fe(s.uid,"config");if(o!==void 0){let{series:l}=o,{innerRadius:h,optimizeDataLabelsOverlapping:c,alignDataLabels:u,dataLabelsOffset:d=q.pieChart.dataLabelsOffset,dataLabels:A,dataLabelsInside:p}=l[0];if(A?.visible===!0&&u===!0&&c===!0&&p!==!0){let m=q.pieChart.chartOptimizedRadius/100,f=500,g=150,y=.6,x=.5,w=1,S=s.seriesContainer.width()-d*2,D=Math.max(S-g,0)/(f-g),T=D<1?Math.max(D**w*y,.4):Math.min(D**x*y,m);a=Bt(T*100)}else a=Bt(q.pieChart.chartRadius);r.value.toFixed(1)!==a.value.toFixed(1)&&(Kr(s.uid,{pieChartRadius:a.percent}),KC&&clearTimeout(KC),KC=yu(()=>{let m=s.chartContainer.height();if(s.chartContainer.set("height",m+.1),s.set("radius",a),h&&!Number.isNaN(h)&&h>0){let f=(h??q.pieChart.innerRadius)*a.value;s.set("innerRadius",Bt(f))}s.markDirty(),n.markDirty(),s.root.resize(),HG(s)})),n instanceof Hr&&n.labels.template.setAll({maxWidth:QG({seriesConfig:o?.series[0],chart:s,newChartRadius:a})})}return a};s.events.onDebounced(Ai.BoundsChanged,()=>i(),q.debounceTime),i()}}function HG(s){yu(()=>{s.chartContainer.set("height",Bt(100)),s.root.resize()})}function QG(s){let{seriesConfig:t,chart:e,newChartRadius:i}=s,r=q.pieChart.dataLabels.maxWidth??100;if(t!=null){let{alignDataLabels:a,dataLabelsOffset:n=q.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:o,dataLabels:l,dataLabelsInside:h}=t;if(l?.visible===!0&&a===!0&&h!==!0&&o===!0){let c=e.seriesContainer.width(),u=e.seriesContainer.height(),d=i.value*Math.min(c,u),A=5,p=Math.floor((c-d)/2)-A-n;r=Math.min(p,r-A);let m=q.pieChartDataLabel.minWidth;r<m&&(r=m)}}return r}function jG(s){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:a,options:n,queryObject:o}=s,{id:l,name:h}=a,{xField:c,yField:u,xAxisField:d,yAxisField:A}=SA(e,a),p=gl.new(t,{id:l,name:h,xAxis:i,yAxis:r,[d]:c,[A]:u,curveFactory:nB({isRadarLineSeries:!0,isLineSmoothed:a.lineSmoothed,isRotated:e.rotated}),layer:q.zIndexes.bulletMarkers});p.appear();let m=Pt.new({});return hs(p.uid,{bulletTemplate:m}),us(m,n?.selectionTheme),p.bullets.push(f=>{let g=ft.new(f,{tooltip:BA({series:p,tooltipFormatter:n?.tooltipFormatter})},m);return Do({element:g,series:p,queryObject:o}),ma.new(f,{sprite:g})}),iB(p),TA(p,e),p}function WG(s){let{radarLineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:a,seriesWereReinitialized:n,stackedTypeChanged:o,timeZoneChanged:l,loaderHandle:h}=s,c=r.series[i];if(e!==void 0&&c?.type===V.RadarSeries&&(a||l||n||o)){let{xField:u,yField:d,xAxisField:A,yAxisField:p}=SA(r,c);t.setAll({[A]:u,[p]:d}),t.events.once(Ai.DataValidated,()=>{h.hideLoader()}),t.data.setAll(e.dataItems)}}function XG(s){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=s,{chart:h}=t;if(h!==void 0){let c=fe(h.uid,"config"),u=fe(h.uid,"isRotated")??!1,d=It(c?.series);x$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:a,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:u})}}function zG(s){let{series:t,data:e,seriesWereReinitialized:i,chartConfig:r,options:a,seriesIndex:n,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,fieldList:c,queryObject:u,loaderHandle:d,utilsStrings:A}=s,p=r.series[n];t.set("id",p.id),Zi(t,p.visible);let m=Rt(t.uid,"bulletTemplate");m&&us(m,a?.selectionTheme),xu(m,e?.dataItems?.length),eB({series:t,chartConfig:r,isRotated:!1}),Gw({series:t,seriesConfig:p,fieldList:c,queryObject:u,seriesIndex:n,tooltipFormatter:a?.tooltipFormatter,utilsStrings:A}),oh(s)&&lh({styleCallback:XG,callbackProps:s,series:t,seriesConfig:p}),tB({chartConfig:r,series:t,seriesIndex:n,queryObject:u}),WG({radarLineSeries:t,data:e,seriesIndex:n,chartConfig:r,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,seriesWereReinitialized:i,loaderHandle:d})}function oB(s){let{chart:t,chartConfig:e,options:i,utilsStrings:r,queryObject:a}=s,{rotated:n}=e,{root:o}=t,l=ze(e.series);t.series.clear();let h={root:o,chartConfig:e,options:i,chart:t,utilsStrings:r,queryObject:a},c=[];for(let u=0;u<e.series.length;u+=1){let d=e.series[u],{assignToSecondValueAxis:A,type:p}=d,m=t instanceof Ci?xz({chart:t,chartType:l,rotated:n,assignToSecondValueAxis:A}):void 0,{xAxis:f,xAxisForHistogramOverlaySeries:g,yAxis:y}=m??{};switch(!0){case p===V.HeatSeries:{ao(a),f&&y&&c.push(q4({...h,queryObject:a,xAxis:f,yAxis:y}));break}case l===V.BoxPlotSeries:{f&&y&&$l(e)&&c.push(...yG({...h,xAxis:f,yAxis:y,seriesIndex:u,seriesConfig:e.series[u],chartConfig:e}));break}case p===V.HistogramSeries:{f&&y&&c.push(...az({...h,seriesConfig:d,xAxis:f,xAxisForOverlaySeries:g,yAxis:y}));break}case p===V.PieSeries:{c.push(VG({...h,seriesConfig:d}));break}case(l===V.ComboLineAndBarSeries||l===V.BarSeries||l===V.LineSeries):{f&&y&&(p===V.BarSeries?c.push(j5({...h,seriesConfig:d,xAxis:f,yAxis:y})):p===V.LineSeries&&c.push(BG({...h,seriesConfig:d,xAxis:f,yAxis:y})));break}case p===V.RadarSeries:{f&&y&&c.push(jG({...h,seriesConfig:d,xAxis:f,yAxis:y}));break}case p===V.ScatterSeries:{f&&y&&c.push(...NX({...h,seriesConfig:d,xAxis:f,yAxis:y}));break}}}c.forEach(u=>{u instanceof ya&&u.setPrivate("doNotUpdateLegend",!0)}),t.series.pushAll(c)}function Zv(s){let{chart:t,chartConfig:e,options:i,data:r,seriesIndexMapper:a,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,rotationChanged:h,colorMatchChanged:c,stackedTypeChanged:u,seriesStyleChanged:d,timeZoneChanged:A,sizePolicyChanged:p,pieSlicesSymbols:m,queryObject:f,loaderHandle:g,utilsStrings:y,errorStrings:x,groupOfSlicesUpdateNeeded:w,labelUpdateNeeded:S}=s,{chartRenderer:D}=e,{root:T}=t,{series:L}=e,$=ze(e.series),I=It(e.series),R=t.series.values,F=Ol(e),H=e.series.length,K=new Map,z=ln(f,i?.usePopupTemplateFieldsInfo),ee=Ys(f),ie=Gs(ee)?void 0:Gm(D,ee.renderer),de=l||n||o||h||u,G={root:T,chartConfig:e,queryObject:f,options:i,colorMatch:F,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,fieldList:z,rendererType:ie,dataLabelFormatter:i?.dataLabelFormatter,utilsStrings:y,chartSubType:I,loaderHandle:g,autoInverseDataLabelTextColor:i?.autoInverseDataLabelTextColor??q.options.autoInverseDataLabelTextColor},Y={...G,numberOfSeries:H,rotationChanged:h,colorMatchChanged:c,stackedTypeChanged:u,seriesStyleChanged:d,seriesIndexMapper:a,seriesSymbolMapForEvent:K,timeZoneChanged:A};for(let xe=0;xe<L.length;xe++){let ae=L[xe],le=R[xe],Ie=ae.type;switch(!0){case $===V.HeatSeries:{le instanceof Li&&t instanceof Ci&&kl(e)&&iX({...Y,series:le,data:r,seriesConfig:e.series[xe],chartConfig:e});break}case $===V.BoxPlotSeries:{le=R.find(Ze=>Ze.get("id")===ae.id),t instanceof Ci&&$l(e)&&(le instanceof Ia||le instanceof qt)&&(Ie===V.BoxPlotSeries||Ie===V.LineSeries)&&vG({...Y,chart:t,series:le,data:r,seriesIndex:xe,seriesConfig:ae,chartConfig:e,showMean:Ca(e),showOutliers:Ro(e)});break}case Ie===V.HistogramSeries:{le instanceof Li&&t instanceof Ci&&fT(r)&&hz({...Y,series:le,allChartSeries:R,data:r,seriesIndex:xe,seriesConfig:ae,axes:e.axes});break}case Ie===V.PieSeries:{le instanceof Hr&&t instanceof Rs&&og(r)&&NG({...G,series:le,seriesConfig:ae,data:r,pieSlicesSymbols:m,groupOfSlicesUpdateNeeded:w,seriesStyleChanged:d,colorMatchChanged:c,labelUpdateNeeded:S});break}case($===V.ComboLineAndBarSeries||$===V.BarSeries||$===V.LineSeries):t instanceof Ci&&og(r)&&(Ie===V.BarSeries&&le instanceof Li?G5({...Y,series:le,data:r,seriesIndex:xe}):Ie===V.LineSeries&&le instanceof qt&&PG({...Y,series:le,seriesIndex:xe,seriesConfig:ae,data:r}));break;case Ie===V.ScatterSeries:{le=RX(t);let Ze=Xk(t);le instanceof qt&&Ze instanceof qt&&mT(r)&&WX({...Y,series:le,seriesConfig:ae,trendLineSeries:Ze,sizePolicyChanged:p,data:r});break}case Ie===V.RadarSeries:{le instanceof gl&&t instanceof La&&og(r)&&zG({...Y,series:le,data:r,seriesIndex:xe,seriesConfig:ae,chartConfig:e});break}}de&&$&&le&&G4({chartType:$,series:le,tooltipFormatter:i?.tooltipFormatter})}vz({chart:t,options:i,dataWasUpdated:n,data:r,chartConfig:e,queryObject:f,errorStrings:x})}function GG(s){nh(s)||s.dataItems.forEach(t=>{let e=t.bullets?.[0];if(e){let i=e.get("sprite"),r=_l(i.uid,"selected")!==!0;na({element:i,selected:r})}})}function YG(s){s.columns.each(t=>{let e=_l(t.uid,"selected")!==!0;na({element:t,selected:e})})}function KG(s){s.slices.each(t=>{let e=_l(t.uid,"selected")!==!0;na({element:t,selected:e})})}async function ZG(s,t){if(Nw(s)){let e=fe(s.uid,"actionMode");e!==Vt.MonoSelection&&e!==Vt.None&&(s.series.each(i=>{switch(!0){case i instanceof Li:YG(i);break;case i instanceof qt:GG(i);break;case i instanceof Hr:KG(i);break}}),await Jw({chart:s,selectionSource:Pr.ProgrammaticSelection,queryObject:t}))}}function qG(s,t){let e=!1,i=s.series,r=t.series,a=ze(r),n=(u,d)=>u.filter(A=>A.type===d).flatMap(A=>{let p=[];switch(d){case V.BarSeries:case V.HistogramSeries:p.push(A.fillSymbol);break;case V.LineSeries:case V.RadarSeries:p.push(A.lineSymbol,A.markerSymbol);break;case V.ScatterSeries:p.push(A.markerSymbol);break;case V.PieSeries:let m=A;p.push(m.fillSymbol),m.slices?.forEach(f=>{p.push(f.fillSymbol)}),m.sliceGrouping&&p.push(m.sliceGrouping.fillSymbol);break}return(A.type===V.BarSeries||A.type===V.LineSeries||A.type===V.RadarSeries)&&A.nullCategory?.symbol!==void 0&&p.push(A.nullCategory.symbol),p}),o,l;a===V.ComboLineAndBarSeries?(o=n(i,V.BarSeries).concat(n(i,V.LineSeries)),l=n(r,V.BarSeries).concat(n(r,V.LineSeries))):(o=n(i,i[0].type),l=n(r,r[0].type));let h=!Ll(o,l),c=!1;switch(a){case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:c=r.filter(u=>u.type===V.LineSeries||u.type===V.RadarSeries).some(u=>{let d=i.find(A=>A.id===u.id);return(u.showArea??q.lineSeries.showArea)!==(d?.showArea??q.lineSeries.showArea)||(u.lineSmoothed??q.lineSeries.lineSmoothed)!==(d?.lineSmoothed??q.lineSeries.lineSmoothed)||(u.markerVisible??q.lineSeries.markerVisible)!==(d?.markerVisible??q.lineSeries.markerVisible)||u.showArea&&!Ll(u.areaColor,d?.areaColor)});break}return e=h||c,e}function JG(s){let{chartSeries:t,oldSeries:e,newSeries:i}=s,r=vx(e,i);for(let a=0;a<r.length;a+=1){let n=r[a][0],o=r[a][1],l=t.length;n>=0&&n<l&&o>=0&&o<l&&t.swap(r[a][0],r[a][1])}}function eY(){W_(zW)}function tY(s){s.dispose()}function iY(s){let{chart:t,chartContainer:e,chartLocale:i}=s,{root:r}=t,{t9nLocale:a}=Du(e??document.documentElement),n=fd(e??document.documentElement);r.locale=i,Kr(t.uid,{locale:a,formatLocale:n,rtl:Om(e??document.documentElement)==="rtl"})}function fw(s){let{chart:t,actionMode:e,cursorRange:i}=s;if(Nw(t)){let r=e??fe(t.uid,"actionMode")??q.actionMode;Kr(t.uid,{actionMode:r}),r===Vt.None&&zc({chart:t,selectionSource:Pr.ClearSelection}),O5({chart:t,actionMode:r,cursorRange:i})}}function rY(s){return Pa.rootElements.find(t=>t.dom===s)?.dispose(),Bc.new(s)}function sY(s,t){s.container.children.clear();let e=ze(t?.series),i;switch(e){case V.RadarSeries:case V.GaugeSeries:i=La;break;case V.PieSeries:i=Rs;break;default:i=Ci;break}return s.container.children.push(i.new(s,{id:`${t?.id}`,layout:s.verticalLayout,paddingBottom:q.chartPadding,paddingTop:q.chartPadding,paddingRight:q.chartPadding,paddingLeft:q.chartPadding}))}function aY(s){let{chart:t,chartConfig:e,data:i,dataWasUpdated:r,sortChanged:a,slicesConfigChangedSinceLastUpdate:n,chartRendererChanged:o,colorMatchChanged:l,pieSlicesSymbols:h,options:c,queryObject:u,loaderHandle:d,utilsStrings:A,errorStrings:p,groupOfSlicesUpdateNeeded:m,seriesStyleChanged:f}=s;Zv({chart:t,chartConfig:e,options:c,data:i,dataWasUpdated:r,sortChanged:a,queryObject:u,pieSlicesSymbols:h,loaderHandle:d,utilsStrings:A,errorStrings:p,groupOfSlicesUpdateNeeded:m,seriesStyleChanged:f,colorMatchChanged:l,labelUpdateNeeded:r||n||o||l}),nn({data:h,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:PA(t)})}function nY(s){let{chart:t,chartConfig:e,data:i,anyGuideAboveChanged:r,dataWasUpdated:a,dataUpdateDetails:n,seriesIndexMapper:o,seriesFilteredOut:l,sortChanged:h,options:c,queryObject:u,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesCompositionChanged:m,heatChartHideEmptyRowsAndColumnsChanged:f,seriesStyleChanged:g,timeZoneChanged:y,timeIntervalInfoWasReset:x,sizePolicyChanged:w,sizePolicyChangesRequireSeriesReinit:S,loaderHandle:D,utilsStrings:T,errorStrings:L,gaugeMinMaxFromData:$}=s,{axisLabelsBehaviorChanged:I}=s,R=kz({chart:t,chartConfig:e,rotationChanged:d,axisLabelsBehaviorChanged:I,timeIntervalInfoWasReset:x}),F=R||_z({currentChartSeriesCount:t.series.length,chartConfig:e,dataUpdateDetails:n,seriesFilteredOut:l,sizePolicyChangesRequireSeriesReinit:S,seriesCompositionChanged:m});R&&(l$({chart:t,chartConfig:e,errorStrings:L}),I=[!0,!0]),F&&(t.series.clear(),oB({chart:t,chartConfig:e,options:c,utilsStrings:T,queryObject:u}),t.gridContainer?.toBack?.()),h$({chart:t,chartConfig:e,queryObject:u,data:i,dataWasUpdated:a,axesInitializationNeeded:R,heatChartHideEmptyRowsAndColumnsChanged:f,sortChanged:h,timeIntervalInfo:i?.timeIntervalInfo??fe(t.uid,"timeIntervalInfo"),axisLabelsBehaviorChanged:I,anyGuideAboveChanged:r,xAxisLabelFormatter:c?.xAxisLabelFormatter,yAxisLabelFormatter:c?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:c?.secondaryYAxisLabelFormatter,guideTooltipFormatter:c?.guideTooltipFormatter,gaugeInnerLabelFormatter:c?.gaugeInnerLabelFormatter,utilsStrings:T,errorStrings:L,gaugeMinMaxFromData:$}),Zv({chart:t,chartConfig:e,options:c,data:i,dataWasUpdated:a,sortChanged:h,seriesIndexMapper:o,seriesWereReinitialized:F,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesStyleChanged:g,timeZoneChanged:y,sizePolicyChanged:w,queryObject:u,loaderHandle:D,utilsStrings:T,errorStrings:L}),ze(e.series)===V.HeatSeries&&Dk(t),g$({chart:t,scrollbarXConfig:e.axes?.[0]?.scrollbar,scrollbarYConfig:e.axes?.[1]?.scrollbar})}function oY(s){let{chart:t,legend:e,loaderHandle:i,updateProps:r,gaugeMinMaxFromData:a}=s,{newChartConfig:n,updateOptions:o,dataWasUpdated:l,dataUpdateDetails:h,hasSeriesFilteredOut:c,pieSlicesSymbols:u,colorMatchApplied:d,rendererFieldNames:A,configWithAllSeries:p,t9nStrings:m,queryObject:f,dataInfo:g}=r,{data:y}=g,{utilsStrings:x,errorStrings:w}=m,{root:S}=t,{usePopupTemplateFieldsInfo:D}=o??{};if(n===void 0)throw new Error;let T=n,L=fe(t.uid,"config");if(t.isDisposed()||!lx(L,T))throw new Ln(cd.ChartDisposed);L??=T,Kr(t.uid,{queryObject:f});let $=It(T.series),I=ks(T);Kr(t.uid,{config:Tr(T),options:o,isNonAggregatedChart:!ep($),isRotated:I,filterBySelection:o?.filterBySelection,colorMatchApplied:d,rendererFieldNames:A});let R=ln(f,D),F=YF(L,T),H=yx(L,T),K=fx(L,T),z=VF(L,T),ee=qG(L,T),ie=JSON.stringify(ip(L.series))!==JSON.stringify(ip(T.series)),de=Jm(L,T),G=qF(L,T),Y=gx(L,T),xe=JF(L,T),ae=eT(L,T),le=ap({oldConfig:c?p:L,newConfig:T,dataWasUpdated:l}),Ie=!1,Ze=!1,We=!1,Je=!1;kl(L)&&kl(n)&&(Ie=jF(L,n),Ze=HF(L,n),We=NF(L,n)||QF(L,n)||Ie,Je=UF(L,n));let kt=jb({oldConfig:L,newConfig:T,rotationChanged:H}),pt=L.series,Ui=T.series;if(l){let{queryConfig:ye,count:Z}=g??{};Kr(t.uid,{fieldList:R,queryConfig:ye,elementCount:Z,timeIntervalInfo:y!==void 0&&"timeIntervalInfo"in y?y.timeIntervalInfo:void 0}),xh(S.dom)}t instanceof Ts&&JG({chartSeries:t.series,oldSeries:pt,newSeries:Ui});let Xi=t instanceof Rs?bw(pt,Ui):!1,U=mx({oldConfig:L,newConfig:T}),Be=new Map;switch(T.series.forEach((ye,Z)=>{Be.set(ye.id,Z)}),u$(t,T.background),p$(t,{title:T.title,subtitle:T.subtitle}),f$(t,T.footer),A$({root:S,chart:t,cursorCrosshair:T.cursorCrosshair,config:T,queryObject:f}),ze(T.series)){case V.PieSeries:{t instanceof Rs&&(ao(f),aY({chart:t,chartConfig:T,options:o,data:y,dataWasUpdated:l,slicesConfigChangedSinceLastUpdate:U,pieSlicesSymbols:u,chartRendererChanged:de,sortChanged:le,queryObject:f,loaderHandle:i,colorMatchChanged:K,utilsStrings:x,errorStrings:w,groupOfSlicesUpdateNeeded:Xi,seriesStyleChanged:ee}));break}case V.HeatSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.RadarSeries:case V.GaugeSeries:case V.HistogramSeries:case V.BoxPlotSeries:t instanceof Ci&&nY({chart:t,chartConfig:T,options:o,data:y,dataWasUpdated:l,seriesIndexMapper:Be,dataUpdateDetails:h,seriesFilteredOut:c,heatChartHideEmptyRowsAndColumnsChanged:Je,sortChanged:le,axisLabelsBehaviorChanged:kt,anyGuideAboveChanged:F,rotationChanged:H,colorMatchChanged:K,stackedTypeChanged:z,seriesStyleChanged:ee,seriesCompositionChanged:ie,timeZoneChanged:G,timeIntervalInfoWasReset:Y,sizePolicyChanged:xe,sizePolicyChangesRequireSeriesReinit:ae,queryObject:f,loaderHandle:i,utilsStrings:x,errorStrings:w,gaugeMinMaxFromData:a});break}t instanceof Ts&&Wk({chart:t,chartConfig:T,legend:e,showEmptySeries:o?.showEmptySeries??o?.hideEmptySeries===!1,seriesConfig:T.series,heatChartLegendUpdatedNeeded:We,heatRulesTypeChanged:Ie,heatLegendPositionChanged:Ze,queryObject:f}),fw({chart:t,actionMode:o?.actionMode,cursorRange:o?.cursorRange})}function lY(s){let{chart:t,data:e,chartConfig:i,pieSlicesSymbols:r,options:a,queryObject:n,loaderHandle:o,utilsStrings:l,errorStrings:h}=s;oB({chart:t,chartConfig:i,options:a,utilsStrings:l,queryObject:n}),Zv({chart:t,chartConfig:i,options:a,data:e,dataWasUpdated:!0,pieSlicesSymbols:r,queryObject:n,loaderHandle:o,utilsStrings:l,errorStrings:h}),nn({data:r,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:PA(t)})}function hY(s){let{chart:t,data:e,chartConfig:i,options:r,queryObject:a,loaderHandle:n,seriesIndexMapper:o,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:c}=s;m$(t),g$({chart:t,scrollbarXConfig:i.axes?.[0]?.scrollbar,scrollbarYConfig:i.axes?.[1]?.scrollbar}),l$({chart:t,chartConfig:i,errorStrings:h}),h$({chart:t,chartConfig:i,queryObject:a,axisLabelsBehaviorChanged:[!0,!0],data:e,dataWasUpdated:!0,timeIntervalInfo:e?.timeIntervalInfo,xAxisLabelFormatter:r?.xAxisLabelFormatter,yAxisLabelFormatter:r?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:r?.secondaryYAxisLabelFormatter,guideTooltipFormatter:r?.guideTooltipFormatter,gaugeInnerLabelFormatter:r?.gaugeInnerLabelFormatter,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:c}),oB({chart:t,chartConfig:i,options:r,utilsStrings:l,queryObject:a}),t.gridContainer?.toBack?.(),Zv({chart:t,chartConfig:i,seriesIndexMapper:o,options:r,data:e,dataWasUpdated:!0,timeZoneChanged:!0,queryObject:a,loaderHandle:n,utilsStrings:l,errorStrings:h}),ze(i.series)===V.HeatSeries&&Dk(t)}function uY(s){let{chartContainer:t,chartConfig:e,options:i,colorMatchApplied:r,rendererFieldNames:a,pieSlicesSymbols:n,globalOptions:o,t9nStrings:l,queryObject:h,dataInfo:c,loaderHandle:u}=s,{errorStrings:d,utilsStrings:A,amChartsStrings:p}=l,{data:m,queryConfig:f,count:g,gaugeMinMaxFromData:y={}}=c??{};eY();let x=e,w=rY(t);e4(w,o?.enableResponsiveFeatures);let S=sY(w,x);iY({chart:S,chartContainer:t,chartLocale:p});let D;if(t4(w,o?.useAnimatedCharts),!S.isDisposed()){let L=It(x.series),$=ks(x);Kr(S.uid,{options:i,filterBySelection:i?.filterBySelection,config:x,queryObject:h,isNonAggregatedChart:!ep(L),isRotated:$,colorMatchApplied:r,rendererFieldNames:a}),d$({root:w,chart:S,config:x,queryObject:h}),A$({root:w,chart:S,cursorCrosshair:x.cursorCrosshair,config:x,queryObject:h});let{title:I,subtitle:R,footer:F}=x;M5(w,S),p$(S,{title:I,subtitle:R}),R5(S),f$(S,F),I5(w,S),u$(S,x.background);let H=ln(h,i?.usePopupTemplateFieldsInfo);Kr(S.uid,{fieldList:H}),Kr(S.uid,{options:i,queryConfig:f,elementCount:g,timeIntervalInfo:m!==void 0&&"timeIntervalInfo"in m?m.timeIntervalInfo:void 0});let K=new Map;x.series.forEach((z,ee)=>{K.set(z.id,ee)}),Kr(S.uid,{queryConfig:f,elementCount:g}),S instanceof Ci?hY({chart:S,data:m,chartConfig:x,options:i,queryObject:h,loaderHandle:u,utilsStrings:A,errorStrings:d,gaugeMinMaxFromData:y}):S instanceof Rs&&m&&"dataItems"in m&&(ao(h),lY({chart:S,data:m,chartConfig:x,pieSlicesSymbols:n,options:i,queryObject:h,loaderHandle:u,utilsStrings:A,errorStrings:d})),S instanceof Ts&&(D=gL(S,x),Wk({chart:S,chartConfig:x,legend:D,showEmptySeries:i?.showEmptySeries??i?.hideEmptySeries===!1,seriesConfig:x.series,queryObject:h})),fw({chart:S,actionMode:i?.actionMode,cursorRange:i?.cursorRange}),zX(S),xh(w.dom)}function T(){zz(S)}return{update:L=>{D===void 0&&(D=gL(S,L.newChartConfig)),oY({chart:S,legend:D,loaderHandle:u,updateProps:L,gaugeMinMaxFromData:y})},dispose:()=>tY(w),resetZoom:T,clearSelection:()=>zc({chart:S}),switchSelection:async()=>await ZG(S,h),exportImage:async L=>await b4({root:w,exportOptions:L}),setActionMode:(L,$)=>fw({chart:S,actionMode:L,cursorRange:$}),loaderHandle:u}}function $L(s){let t="";for(let e=0;e<s.length;e+=1){let i=s[e];t+=`<li>${i.message}</li>`}return`<ol>${t}</ol>`}function cY(s){let{chartConfig:t,createMessage:e,status:i,errorStrings:r}=s,{schemaErrors:a,customErrors:n,warnings:o}=i,l="",h="";return t===void 0?(h=e===void 0?r.modalHeaders.newChart:"",l=e??r.errors.newChartRequest):a.length>0?(h=r.modalHeaders.error,l=r.errors.simpleError):n.length>0?(h=r.modalHeaders.error,l=$L(n)):o.length>0&&(h=r.modalHeaders.warning,l=`<p>${r.errors.warningRequest}</p>${$L(o)}`),{title:h,message:l}}function dY(s,t){let e;switch(s){case V.PieSeries:e=t?.placeholders.pieChartCreateMsg;break;case V.BarSeries:e=t?.placeholders.barChartCreateMsg;break;case V.BoxPlotSeries:e=t?.placeholders.boxPlotCreateMsg;break;case V.LineSeries:e=t?.placeholders.lineChartCreateMsg;break;case V.HistogramSeries:e=t?.placeholders.histogramCreateMsg;break;case V.ScatterSeries:e=t?.placeholders.scatterplotCreateMsg;break;case V.HeatSeries:e=t?.placeholders.calendarHeatChartCreateMsg;break;case V.ComboLineAndBarSeries:e=t?.placeholders.comboBarLineChartCreateMsg;break;case V.RadarSeries:e=t?.placeholders.radarChartCreateMsg;break;case V.GaugeSeries:e=t?.placeholders.gaugeCreateMsg;break}return e}function gv(s){let t;if(s){let e=ik(s);e&&(t=[e.r,e.g,e.b,255])}return t}function mw(s){return hF(s)==="dark"}function w$(s){let t=window.getComputedStyle(s);return{backgroundColor:gv(t.getPropertyValue("--calcite-color-foreground-1")),textColor:gv(t.getPropertyValue("--calcite-color-text-1")),lineColor:gv(t.getPropertyValue("--calcite-color-border-1")),secondLineColor:gv(t.getPropertyValue("--calcite-color-text-3"))}}function AY(s,t){s?.axes?.forEach(e=>{e?.title?.content&&t.textColor&&(e.title.content.color=t.textColor),e?.labels?.content&&t.textColor&&(e.labels.content.color=t.textColor),e?.grid&&t.lineColor&&(e.grid.color=t.lineColor),e?.lineSymbol&&t.lineColor&&(e.lineSymbol.color=t.lineColor),e?.guides?.forEach(i=>{i.label&&t.textColor&&(i.label.color=t.textColor),t.lineColor&&(i.style?.type===Dt.SLS?i.style.color=t.lineColor:i.style?.type===Dt.SFS&&i.style?.outline&&(i.style.outline.color=t.lineColor))})})}function pY(s,t){s&&t.backgroundColor&&(s.background=t.backgroundColor)}function fY(s,t){s?.title?.content&&t.textColor&&(s.title.content.color=t.textColor),s?.subtitle?.content&&t.textColor&&(s.subtitle.content.color=t.textColor),s?.footer?.content&&t.textColor&&(s.footer.content.color=t.textColor)}function $f(s,t){t?.created&&t?.visible&&(t.symbol={type:Dt.SLS,...t.symbol,color:s})}function OL(s){let{configElementWithFillSymbol:t,markerColor:e,lineColor:i}=s;t.markerSymbol={type:Dt.SMS,...t.markerSymbol,color:e},t.markerSymbol.outline={type:Dt.SLS,...t.markerSymbol.outline,color:i}}function yv(s){let{configElementWithFillSymbol:t,fillColor:e,lineColor:i}=s;t.fillSymbol={type:Dt.SFS,...t.fillSymbol,color:e},i&&(t.fillSymbol.outline={type:Dt.SLS,...t.fillSymbol.outline,color:i})}function B$(s,t){s&&(s.colorMatch=!1,s.series.forEach((e,i)=>{e.dataLabels?.content&&t.textColor&&(e.dataLabels.content.color=t.textColor);let r=KA[i%KA.length];switch(e.type){case V.BarSeries:yv({configElementWithFillSymbol:e,fillColor:r,lineColor:t.lineColor});break;case V.HistogramSeries:yv({configElementWithFillSymbol:e,fillColor:r,lineColor:t.lineColor}),$f(ud[0],e.overlays?.standardDeviation),$f(ud[1],e.overlays?.mean),$f(ud[2],e.overlays?.median),$f(ud[3],e.overlays?.comparisonDistribution);break;case V.LineSeries:case V.RadarSeries:e.lineSymbol={type:Dt.SLS,...e.lineSymbol,color:r},OL({configElementWithFillSymbol:e,markerColor:r,lineColor:t.lineColor}),e.areaColor=[r[0],r[1],r[2],255*re.lineSeries.areaOpacity];break;case V.BoxPlotSeries:yv({configElementWithFillSymbol:e,fillColor:r,lineColor:t.lineColor});break;case V.PieSeries:e.slices?.forEach((a,n)=>{yv({configElementWithFillSymbol:a,fillColor:KA[n%KA.length],lineColor:t.lineColor})});break;case V.ScatterSeries:OL({configElementWithFillSymbol:e,markerColor:r,lineColor:t.lineColor}),$f(ud[1],e.overlays?.trendLine);break;case V.HeatSeries:case V.GaugeSeries:}}))}function mY(s,t){if(s?.series[0].type===V.PieSeries){let e=s.series[0];e.ticks?.lineSymbol&&t.secondLineColor&&(e.ticks.lineSymbol.color=t.secondLineColor)}}function gY(s,t){s?.legend&&(s.legend.title?.content&&t.textColor&&(s.legend.title.content.color=t.textColor),s.legend.body&&t.textColor&&(s.legend.body.color=t.textColor))}function yY(s,t){s?.series[0].type===V.GaugeSeries&&s.axes?.forEach(e=>{e.innerLabel?.content&&t.textColor&&(e.innerLabel.content.color=t.textColor),e.needle?.symbol&&t.textColor&&(e.needle.symbol.color=t.textColor)})}function vY(s,t){s?.series[0].type===V.HeatSeries&&s.series.forEach(e=>{e.gridLine&&t.textColor&&(e.gridLine.color=t.textColor)})}function bY(s){let{chartElement:t,options:e,calciteThemeApplied:i}=s,r=e;return i==="dark"&&(r.selectionTheme={...ht.selectionTheme,selectedElementsTheme:{...ht.selectionTheme.selectedElementsTheme,elementOutlineColor:[55,255,255,255]}},r.chartWillRender=async a=>{let{chartConfig:n,slices:o}=a,l=Tr(n);if(t.chartWillRender&&(l=await t.chartWillRender(a)),l.series[0].type===V.PieSeries&&!l.series[0].slices){let h=w$(t);l.series[0].slices=o,B$(l,h)}return l}),r}function xY(s,t){let e=Tr(t);if(e&&mw(s)){let i=w$(s);pY(e,i),fY(e,i),AY(e,i),B$(e,i),gY(e,i),yY(e,i),mY(e,i),vY(e,i)}return e}function _Y(){return!0}function EL(s){let{layer:t}=s,e,i=Ys(t),r=Ym(i);return r!==void 0&&"definitionExpression"in r&&s.layerFilterChangePolicy===hg.Refresh&&(e=ka.watch(()=>r.definitionExpression,()=>{s.refresh({updateData:!0,resetAxesBounds:!0})})),e}function ML(s){let{layer:t,model:e}=s,i=Ho(e)?e.config:e,r;if(t!==void 0&&s.layerRendererChangePolicy===ug.Refresh){let a=Ys(t);r=ka.watch(()=>a.renderer,()=>{if(Ol(i)){let n=_Y();s.refresh({updateData:n})}})}return r}async function CY(s){let{view:t,layer:e,model:i,filterByExtent:r}=s,a=Ho(i)?i.config:i,n;if(t!==void 0&&a!==void 0){let o=await Ax({chartConfig:a,view:t,layer:e,filterByExtent:r}),l;if(dd(o)?l=o:Gs(o)&&(l=await t.whenLayerView(o)),l){await ka.whenOnce(()=>!l.updating);let h=async()=>{s.filterByExtent&&t.stationary&&(l.updating&&await ka.whenOnce(()=>!l.updating),await s.refresh({updateData:!0,resetAxesBounds:!0}))};n=[],dd(l)?(n.push(ka.when(()=>t.stationary,h)),n.push(ka.when(()=>!l.dataUpdating,h))):n.push(ka.when(()=>t.stationary,h)),await h()}}return n}function wY(s){let{view:t,model:e}=s,i=Ho(e)?e.config:e,r=ze(i?.series),a;return t!==void 0&&s.viewTimeExtentChangePolicy===lp.Refresh&&r!==V.HistogramSeries&&(a=ka.watch(()=>t.timeExtent,()=>{s.refresh({updateData:!0})})),a}function BY(s){let{view:t}=s,e;return t&&"timeZone"in t&&(e=ka.watch(()=>t.timeZone,()=>{let{model:i}=s,r=Ho(i)?i.config:i;kl(r)&&s.refresh({updateData:!0})})),e}function RL(s){let{layer:t}=s,e,i=Ys(t),r=Ym(i);return r!==void 0&&"fields"in r&&s.layerFieldsChangePolicy===cg.Refresh&&(e=ka.watch(()=>[r.fields],()=>{s.refresh({updateData:!0})})),e}function S$(s,t){return ka.watch(()=>t.selections,e=>{(s.syncViewSelection||s.syncSelectionsBetweenChartAndLayerViewPolicy===hp.Enabled)&&(Array.isArray(e)&&e?.length===0?s.clearSelection():s.applySelectionFromSelectionManager())})}function SY(s){let{view:t}=s,e;return t?.selectionManager&&(e=S$(s,t.selectionManager)),e}function FY(s){let{selectionManager:t}=s,e;return t&&(e=S$(s,t)),e}var TY=({message:s,heading:t,options:e})=>nd`<calcite-alert .icon=${e?.icon??"exclamationMarkTriangle"} .open=${e?.active===!0} .autoClose=${e?.autoClose??!1} .autoCloseDuration=${e?.duration??"medium"} scale=m .kind=${e?.kind??"danger"} .ariaHidden=${e?.active!==!0} dir=ltr role=alertdialog label="arcgis charts notify panel">${t!==void 0?nd`<div slot=title>${t}</div>`:null}${s!==void 0?nd`<div slot=message>${s}</div>`:null}</calcite-alert>`,PY=eF`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.chart{flex-grow:1;overflow-y:hidden}.chart>div{justify-content:center;align-items:center}:host{width:var(--chart-width, var(--arcgis-charts-default-width));height:var(--chart-height, var(--arcgis-charts-default-height));display:flex;flex-direction:row;position:relative;overflow:hidden}.chart-wrapper{position:relative;width:100%}.chart-container{height:100%;overflow:hidden}`;async function DY(s){let t=oF(`assets/common/t9n/messages.${s}.json`),e=await fetch(t);if(!e.ok)throw new Error(`Failed to load t9n file: ${t}`);return await e.json()}async function LY(s=Du(document.documentElement).t9nLocale){let t=(await import("./H6G4K2SI.js")).default;switch(s){case"ar":t=(await import("./C32DLPO2.js")).default;break;case"bs":t=(await import("./ZGRLFOVN.js")).default;break;case"bg":t=(await import("./2MVU33EQ.js")).default;break;case"ca":t=(await import("./K7M5S6GY.js")).default;break;case"cs":t=(await import("./W5WI6CWC.js")).default;break;case"da":t=(await import("./A2SOXYD7.js")).default;break;case"de":t=(await import("./5WSLX3X6.js")).default;break;case"el":t=(await import("./INFEECC2.js")).default;break;case"es":t=(await import("./ANEY3G3T.js")).default;break;case"et":t=(await import("./UJ7GGLFA.js")).default;break;case"fi":t=(await import("./577EV2JF.js")).default;break;case"fr":t=(await import("./U7L3L6IV.js")).default;break;case"he":t=(await import("./XTWWNXCJ.js")).default;break;case"hr":t=(await import("./RRDNOR24.js")).default;break;case"hu":t=(await import("./SWQ7K4X5.js")).default;break;case"id":t=(await import("./FW27X6ZH.js")).default;break;case"it":t=(await import("./AGJRXDBI.js")).default;break;case"ja":t=(await import("./OLBJGP5C.js")).default;break;case"ko":t=(await import("./43SJZXD3.js")).default;break;case"lt":t=(await import("./PI6HSSQL.js")).default;break;case"lv":t=(await import("./VHOYFIGY.js")).default;break;case"no":t=(await import("./X5TUHBXH.js")).default;break;case"nl":t=(await import("./KSNCOD3U.js")).default;break;case"pl":t=(await import("./BHNYXBUZ.js")).default;break;case"pt-BR":t=(await import("./4VMTBYLY.js")).default;break;case"pt-PT":t=(await import("./2JPFAFHJ.js")).default;break;case"ro":t=(await import("./WQRZ7LGV.js")).default;break;case"ru":t=(await import("./RKXV44WI.js")).default;break;case"sr":t=(await import("./B3HEXSCX.js")).default;break;case"sk":t=(await import("./DF2JGSK4.js")).default;break;case"sv":t=(await import("./NXRLNLM4.js")).default;break;case"th":t=(await import("./WMSU5OWP.js")).default;break;case"tr":t=(await import("./MIVV22F3.js")).default;break;case"uk":t=(await import("./GBCL3LR7.js")).default;break;case"vi":t=(await import("./YZTAP3PR.js")).default;break;case"zh-CN":t=(await import("./PF6HSS3J.js")).default;break;case"zh-HK":t=(await import("./Z5L2GNFQ.js")).default;break;case"zh-TW":t=(await import("./Z5L2GNFQ.js")).default;break}return t}async function IY(s=Du(document.documentElement).t9nLocale){let t=(await import("./I3BNBZ4D.js")).default;switch(s){case"ar":t=(await import("./6HUDF5Q2.js")).default;break;case"bs":t=(await import("./LOX7MXL4.js")).default;break;case"bg":t=(await import("./WRNEDEFZ.js")).default;break;case"ca":t=(await import("./FSNQ3YXX.js")).default;break;case"cs":t=(await import("./MS6EYP4R.js")).default;break;case"da":t=(await import("./HLSO5KDC.js")).default;break;case"de":t=(await import("./NGLXQHZ2.js")).default;break;case"el":t=(await import("./DNSUOJXJ.js")).default;break;case"es":t=(await import("./ZL5EGDOW.js")).default;break;case"et":t=(await import("./BUCYRXMT.js")).default;break;case"fi":t=(await import("./GWPFABGL.js")).default;break;case"fr":t=(await import("./JM6E3U5J.js")).default;break;case"he":t=(await import("./3VMIFF7C.js")).default;break;case"hr":t=(await import("./THJTENN5.js")).default;break;case"hu":t=(await import("./5TOYNVTW.js")).default;break;case"id":t=(await import("./B4ULOSFG.js")).default;break;case"it":t=(await import("./TX2SYGTH.js")).default;break;case"ja":t=(await import("./AVU2CHAB.js")).default;break;case"ko":t=(await import("./FLSUJTUZ.js")).default;break;case"lt":t=(await import("./EIIQ2CSC.js")).default;break;case"lv":t=(await import("./BY77PBZ2.js")).default;break;case"no":t=(await import("./F57IRWBF.js")).default;break;case"nl":t=(await import("./NPVXLEZW.js")).default;break;case"pl":t=(await import("./COQ55XOW.js")).default;break;case"pt-BR":t=(await import("./GR4BZF3L.js")).default;break;case"pt-PT":t=(await import("./NSRIVIOH.js")).default;break;case"ro":t=(await import("./47EOUNYO.js")).default;break;case"ru":t=(await import("./HJW6UNEH.js")).default;break;case"sr":t=(await import("./G2L5FYWK.js")).default;break;case"sk":t=(await import("./X7ENJ4HH.js")).default;break;case"sl":t=(await import("./S5EI7T2D.js")).default;break;case"sv":t=(await import("./RHGKKMJG.js")).default;break;case"th":t=(await import("./3OGKV4KZ.js")).default;break;case"tr":t=(await import("./KCILWIMQ.js")).default;break;case"uk":t=(await import("./EVHJVY4I.js")).default;break;case"vi":t=(await import("./ALRIN5E5.js")).default;break;case"zh-CN":t=(await import("./SOIF6AMX.js")).default;break;case"zh-HK":t=(await import("./YQJLA77R.js")).default;break;case"zh-TW":t=(await import("./YQJLA77R.js")).default;break}return t}async function kY(s=Du(document.documentElement).t9nLocale,t){let e=t?await IY(s):await LY(s),i=(await DY(s)).customAmchartsStrings;return{...e,...i}}var gw=class extends sF{constructor(){super(),this.loaderHandle={showLoader:()=>{this.showLoader=!this.hideLoaderAnimation},hideLoader:()=>{this.showLoader=!1}},this._messages=Dx(),this.chartRef=rF(),this.guid=OT(),this.commonStrings=Dx({name:"common",blocking:!0}),this.dataUpdateNeededProps=["forceDataUpdate","runtimeDataFilters","returnFeaturesExtent","chartLimits","updateSplitBySeries"],this.updatedProps=new Map,this.updateQueue=IN.promise(async()=>await this.renderChart(),xF),this._disableInteractions=!1,this._rotation=!1,this._legendVisibility=!1,this._filterByExtent=!1,this.noRenderingUpdateProps=["_messages","showLoader","infoModalMessage","notifyMessage"],this.handleExternalSelection=t=>{if(!Gs(this.layer)){let e=t,{selectionData:i,model:r}=e.detail,a=this.layer&&r?.layer?.id===Ru(this.layer).id;this.syncSelection&&a&&t.target!==this.el&&!Ll(i.selectionOIDs,this.selectionData?.selectionOIDs)&&(i.selectionOIDs?(this.selectionData={selectionOIDs:i.selectionOIDs,selectionSource:Pr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model})):this.clearSelection())}},this.configPanelNumberChange=t=>{let e=t,{panelNumber:i,modelList:r}=e.detail;this.actionBarElement&&this.enableConfiguration&&this.ourModelExistsIn(r)&&(this.actionBarElement.editChartToggle=i===1?Ox.Active:Ox.Inactive)},this.configDataChangeError=t=>{let e=t,{error:i,model:r}=e.detail;this.enableConfiguration&&r?.isSameChartAs(this._model)&&this.notify(i.message)},this.modelConfigChange=t=>{let e=t;this.lastModelSetterCalled=e.detail.setterName;let i=this._model?.config;i?.iLayer&&!Ll(this.config?.iLayer,i?.iLayer)&&(this.layer=new QC(i.iLayer)),JSON.stringify(this.config)!==JSON.stringify(i)&&(this.config=Tr(i))},this.modelDataChange=()=>{this.setTimeBinningInfoWhenNotProvided&&xT(this._model)&&this._model?.resetTimeInterval()},this.actionBarSlotRef=t=>{this.actionBarElement=t&&"assignedElements"in t?t.assignedElements().find(e=>e.tagName.toLowerCase()==="arcgis-charts-action-bar"):void 0},this.checkForInvalidContainer=()=>{this.chartRef.value||Rm("divNode",this.commonStrings?.errorStrings)},this._loadQueryObject=new up(this,{args:()=>[this.config,this.layer,this.view,this.filterByExtent],task:async([t,e,i,r],{signal:a})=>{let n=await Ax({chartConfig:t,layer:e,view:i,filterByExtent:r,abortSignal:a});return await Ys(n)?.load({signal:a}),n}}),this.showLoader=!1,this.enableBetaFeatures=!1,this.enableConfiguration=!1,this.enableAutoTheming=!1,this.syncSelection=!1,this.allowUsingObjectIdStat=!1,this.nullAsValid=!1,this.hideUIMessages=!1,this.showEmptySeries=!1,this.autoInverseDataLabelTextColor=!1,this.hideZeroCountCategories=!1,this.ignoreSmoothRenderingLimit=!1,this.returnSelectionIndexes=!1,this.returnFeaturesExtent=!1,this.filterBySelection=!1,this.skipChartCreationQueue=!1,this.useAnimatedCharts=!1,this.showLicenseWatermark=!1,this.enableResponsiveFeatures=!1,this.autoDisposeChart=!1,this.setTimeBinningInfoWhenNotProvided=!1,this.errorPolicy=lg.Throw,this.disableTogglingLegendItems=!1,this.hideLoaderAnimation=!1,this.usePopupTemplateFieldsInfo=!1,this.layerFilterChangePolicy=hg.Refresh,this.viewTimeExtentChangePolicy=lp.Ignore,this.layerRendererChangePolicy=ug.Refresh,this.layerFieldsChangePolicy=cg.Refresh,this.syncSelectionsBetweenChartAndLayerViewPolicy=hp.Disabled,this.syncViewSelection=!1,this.ignoreViewExtent=!1,this.autoDestroyDisabled=!1,this.arcgisAxesMinMaxChange=Xs(),this.arcgisBadDataWarningRaise=Xs(),this.arcgisChartNotFoundWarning=Xs(),this.arcgisConfigChange=Xs(),this.arcgisDataFetchComplete=Xs(),this.arcgisDataProcessComplete=Xs(),this.arcgisDataProcessError=Xs(),this.arcgisInvalidConfigWarningRaise=Xs(),this.arcgisLegendItemVisibilityChange=Xs(),this.arcgisNoRenderPropChange=Xs(),this.arcgisRenderingComplete=Xs(),this.arcgisRuntimeError=Xs(),this.arcgisSelectionComplete=Xs(),this.arcgisSeriesColorChange=Xs(),this.arcgisSeriesOrder=Xs(),this.arcgisUpdateComplete=Xs(),this.listen("arcgisChartsJSLegendItemVisibilityChange",this.handleLegendItemVisibilityChanged),this.listen("arcgisChartsJSInvalidConfigWarningRaise",this.handleInvalidConfigWarningRaise),this.listen("arcgisChartsJSSeriesColorChange",this.handleSeriesColorsChange),this.listen("arcgisChartsJSSelectionComplete",this.handleSelection),this.listen("arcgisChartsJSTooManySelectedElements",this.handleTooManySelectedElements),this.listen("calciteAlertClose",this.handleAlertClosed),this.listen("arcgisChartsJSAxesMinMaxChange",this.handleAxesMinMaxChange),this.listen("arcgisChartsJSSeriesOrder",this.handleSeriesOrder),this.listen("arcgisChartsJSRenderingComplete",this.handleRenderingComplete),this.addConfigListeners(),this.listenOn(document,"arcgisSelectionComplete",this.handleExternalSelection)}static{this.properties={infoModalMessage:16,notifyMessage:16,showLoader:16,config:16,enableBetaFeatures:5,model:0,enableConfiguration:5,enableAutoTheming:5,syncSelection:5,rotation:[5,{hasChanged:()=>!1}],actionMode:1,cursorRange:1,legendPosition:[1,{hasChanged:()=>!1}],legendVisibility:[5,{hasChanged:()=>!1}],allowUsingObjectIdStat:5,nullAsValid:5,showUIMessages:5,hideUIMessages:5,hideEmptySeries:5,showEmptySeries:5,autoInverseDataLabelTextColor:5,replaceNoValueCategoryWithZero:5,hideZeroCountCategories:5,ignoreSmoothRenderingLimit:5,chartWillRender:0,legendValueLabelFormatter:0,timeZone:1,view:[0,{hasChanged:()=>!1}],layer:0,layerItemId:1,chartIndex:9,selectionData:0,returnSelectionOIDs:5,returnSelectionIndexes:5,returnFeaturesExtent:5,filterBySelection:5,filterByExtent:[5,{hasChanged:()=>!1}],disableInteractions:[5,{hasChanged:()=>!1}],queueChartCreation:5,skipChartCreationQueue:5,useAnimatedCharts:5,hideLicenseWatermark:5,showLicenseWatermark:5,enableResponsiveFeatures:5,autoDisposeChart:5,featureIndex:[9,{hasChanged:()=>!1}],placeholder:1,selectionTheme:0,setTimeBinningInfoWhenNotProvided:5,chartLimits:0,aria:[0,{hasChanged:()=>!1}],tooltipFormatter:0,dataLabelFormatter:0,guideTooltipFormatter:0,xAxisLabelFormatter:0,yAxisLabelFormatter:0,secondaryYAxisLabelFormatter:0,gaugeInnerLabelFormatter:0,errorPolicy:1,disableTogglingLegendItems:5,hideLoaderAnimation:5,loaderColors:0,runtimeDataFilters:0,usePopupTemplateFieldsInfo:5,layerFilterChangePolicy:1,viewTimeExtentChangePolicy:1,layerRendererChangePolicy:1,layerFieldsChangePolicy:1,syncSelectionsBetweenChartAndLayerViewPolicy:1,syncViewSelection:5,ignoreViewExtent:5,updateSplitBySeries:0,messageOverrides:0,autoDestroyDisabled:5,selectionManager:0}}static{this.styles=PY}get config(){return this._config}set config(t){let e=this._config;this._config=t,e&&t&&MF(e,t)&&this.updatedProps.set("forceDataUpdate",{oldValue:!1,newValue:!0}),this.arcgisConfigChange.emit({newConfig:t,oldConfig:e,functionCalled:this.lastModelSetterCalled}),this.lastModelSetterCalled=void 0,this.actionBarElement&&!Uu(t)&&(this.actionBarElement.forceDisableActions=!1)}get rotation(){return this._rotation}set rotation(t){this.rotationChange(t),this.handleNoRenderPropChange("rotation",t),this._rotation=t}get legendPosition(){return this._legendPosition}set legendPosition(t){this.legendPositionChange(t),this.handleNoRenderPropChange("legendPosition",t),this._legendPosition=t}get legendVisibility(){return this._legendVisibility}set legendVisibility(t){this.legendVisibilityChange(t),this.handleNoRenderPropChange("legendVisibility",t),this._legendVisibility=t}get view(){return this._view}set view(t){let e=this._view;this._view=t,this.viewChange(t,e),this.handleNoRenderPropChange("view",t)}get filterByExtent(){return this._filterByExtent}set filterByExtent(t){this._filterByExtent=t,this.filterByExtentChanged(t),this.handleNoRenderPropChange("filterByExtent",t)}get disableInteractions(){return this._disableInteractions}set disableInteractions(t){this.disableInteractionsChange(t),this.handleNoRenderPropChange("disableInteractions",t),this._disableInteractions=t}get featureIndex(){return this._featureIndex}set featureIndex(t){let e=this.featureIndex;this.featureIndexChange(t,e),this.handleNoRenderPropChange("featureIndex",t),this._featureIndex=t}get aria(){return this._aria??{}}set aria(t){this._aria=t,this.chartRef.value&&(this.chartRef.value.ariaLabel=t.label??this.chartRef.value.ariaLabel,this.chartRef.value.ariaDescription=t.description??this.chartRef.value.ariaDescription,this.chartRef.value.ariaLabelledByElements=t.labelledByElements??this.chartRef.value.ariaLabelledByElements,this.chartRef.value.ariaDescribedByElements=t.describedByElements??this.chartRef.value.ariaDescribedByElements),this.handleNoRenderPropChange("aria",t)}async clearSelection(){this.chart!==void 0&&(this.unsanitizedSelectionDataItems=void 0,this.chart.clearSelection(),this.filterBySelection&&await this.refresh())}async destroy(){this.chart?.dispose()}async exportAsCSV(t){let e=SF(this.config)||Gs(this.layer),i,r;if(this.sanitizedChartData&&!e){let a=await this._loadQueryObject.taskComplete,n=a?ln(a,this.usePopupTemplateFieldsInfo):void 0,o=Ho(this.model)?this.model.titleText:this.config?.title?.content?.text??this.commonStrings.utilsStrings.chartType.chart;if(Object.values(this.sanitizedChartData).filter(l=>Array.isArray(l)&&l.length>0).length>1){let l=new VL.default;Object.entries(this.sanitizedChartData).forEach(([c,u])=>{if(Array.isArray(u)&&u.length>0){let d=Rx({rawData:u,config:this._model?.config??this.config,layer:a,fieldList:n}),A=Mx(d,t),p=`${o}-${c}.csv`;l.file(p,A)}});let h=await l.generateAsync({type:"blob"});i=URL.createObjectURL(h),r=`${o}.zip`}else{let l;if("bins"in this.sanitizedChartData?l=this.sanitizedChartData.bins:"dataItems"in this.sanitizedChartData&&(l=this.sanitizedChartData.dataItems),l){let h=Rx({rawData:l,config:this._model?.config??this.config,layer:a,fieldList:n}),c=Mx(h,t);i=URL.createObjectURL(new Blob([c],{type:"text/csv;charset=utf-8;"})),r=`${o}.csv`}}i!==void 0&&r!==void 0&&Ex(i,r)}}async exportAsImage(t=_F.PNG){let e=this.chartRef.value;e?(await(0,UL.default)(e,{useCORS:!0,backgroundColor:null})).toBlob(i=>{if(i){let r=URL.createObjectURL(i),a=`${this.model.titleText??this.commonStrings.utilsStrings.chartType.chart}.${t}`;Ex(r,a)}},t):this.notify(this.commonStrings?.errorStrings.errors.exportImageChartNotReady)}async loadModel(){return this._model?await this._model.asyncUpdatesPromise:await new Promise(t=>{this.resolveModelSetup=t})}async notify(t,e){this.infoModalMessage=t,this.infoModalHeading=e}async refresh(t){let{updateData:e=!0,resetAxesBounds:i=!1}=t??{};this.updatedProps.set(e?"forceDataUpdate":"forceSimpleUpdate",{oldValue:!1,newValue:!0}),i&&(delete this.config?.axes?.[0]?.minimum,delete this.config?.axes?.[0]?.maximum,delete this.config?.axes?.[1]?.minimum,delete this.config?.axes?.[1]?.maximum),this.requestUpdate("refresh")}async resetZoom(){this.chart!==void 0&&this.chart.resetZoom()}async switchSelection(){let t=await this._loadQueryObject.taskComplete;this.chart!==void 0&&!this.filterBySelection&&t&&await this.chart.switchSelection(t)}load(){if(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===hp.Enabled){let t=this.getSelectionFromSelectionManager();t&&(this.selectionData={selectionOIDs:t,selectionSource:Pr.ProgrammaticSelection})}}willUpdate(t){t.has("model")&&this.modelChange(),t.has("selectionData")&&this.selectionDataChange(),t.has("layer")&&this.layerChange(),t.has("layerItemId")&&this.layerItemIdChange(),(t.has("chartIndex")||t.has("layerItemId"))&&this.createModelFromLayer(),t.has("timeZone")&&this.timeZoneChange(),t.has("filterBySelection")&&this.filterBySelectionChanged(),t.has("layerFilterChangePolicy")&&this.layerFilterChangePolicyCallBack(this.layerFilterChangePolicy),t.has("viewTimeExtentChangePolicy")&&this.viewTimeExtentChangePolicyCallback(this.viewTimeExtentChangePolicy),t.has("layerRendererChangePolicy")&&this.layerRendererChangePolicyCallBack(this.layerRendererChangePolicy),t.has("layerFieldsChangePolicy")&&this.layerFieldsChangePolicyCallBack(this.layerFieldsChangePolicy),t.has("selectionManager")&&(this.setSelectionManagerChangeWatchHandler(),this.applySelectionFromSelectionManager()),Array.from(t.keys(),e=>{let i=e.toString(),r=i==="model"||i==="config"?this.updatedProps.get(i)?.oldValue??t.get(i):t.get(i);this.updatedProps.set(i,{oldValue:r,newValue:this[i]})})}updated(t){Array.from(t.keys()).filter(e=>!this.noRenderingUpdateProps.includes(e)).length>0&&this.updatedAsync(),this.actionBarElement!==void 0&&IT({actionBar:this.actionBarElement,chartComponent:this.el,config:this.config,isInfoModalDisplayed:this.infoModalMessage!==void 0})}disconnectedCallback(){super.disconnectedCallback(),this.removeLayerWatchHandlers(),this.removeExtentChangeWatchHandlers(),this.removeViewWatchHandlers(),this.removeSelectionManagerChangeWatchHandler(),this.autoDestroyDisabled||this.chart?.dispose()}hideInfoModal(){this.infoModalMessage=void 0}async generateHeatChartClassBreaks(t){if(!Gs(this.layer)&&Ix(this._model)&&t?.data&&"dataItems"in t.data){let e=await ET({data:t.data,classificationMethod:this._model.classificationMethod,breaksCount:this._model.breaksCount,xAxisField:this._model.xAxisField,existingClassBreakInfos:this._model.chartRenderer?.classBreakInfos});MT({currentBreaks:e,configBreaks:this._model.chartRenderer?.classBreakInfos??[]})&&(this._model.chartRenderer={...this._model.chartRenderer,classBreakInfos:e,type:"classBreaks",field:Cr.valueField})}}async updatedAsync(){if(this.dataFetching&&(await this.dataFetching,this.dataFetching=void 0),this.config!==void 0&&this.chart!==void 0)try{(!this.config&&!this.layer||kx(this.config,this.layer)&&!Uu(this.config)&&await $x(this.config,this.layer))&&await this.updateQueue?.push({})}catch(t){if(this.updatedProps.clear(),this.chartRef.value!==void 0){if(t instanceof Ln&&t.name===cd.ChartDisposed)this.chart?.dispose(),this.chart=void 0,this.chartRef.value.innerHTML="",await this.createChartInstance(!1);else if(t instanceof Ln&&t.name===cd.QueryFeaturesError?this.arcgisDataProcessError.emit(t.details):t instanceof Ln&&this.arcgisRuntimeError.emit(t.details??t),typeof t=="object"&&t&&"message"in t){let e=t instanceof Ln?t.message:this.commonStrings?.errorStrings.errors.simpleError;this.notify(e,this.commonStrings?.errorStrings.errorHeading)}}}else this.chart===void 0&&await this.createChartInstance();this.placeholder!==void 0?await this.notify(this.placeholder):this.enableConfiguration&&Uu(this.config)&&this.applyPlaceholderForPartialConfig(this.config)}useAmCharts5(){let t=ze(this.config?.series);return this.enableBetaFeatures||t===V.ScatterSeries||t===V.HistogramSeries||t===V.RadarSeries||t===V.HeatSeries}handleNoRenderPropChange(t,e){this.arcgisNoRenderPropChange.emit({propName:t,value:e,model:this._model})}handleRenderingComplete(t){this.arcgisRenderingComplete.emit(t.detail),this.showLoader=!1}applySelectionFromSelectionManager(){let t=this.getSelectionFromSelectionManager();t&&(this.selectionData={selectionOIDs:t,selectionSource:Pr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model}))}applySelectionFromView(){this.applySelectionFromSelectionManager()}handleLegendItemVisibilityChanged(t){wF(t,this.config),this.arcgisLegendItemVisibilityChange.emit({legendItemVisibility:t.detail,model:this._model})}handleUpdateCompleted(t){if(this.enableConfiguration){let e=this.commonStrings?.errorStrings.notifications;if(this.placeholder===void 0&&(t.schemaErrors.length>0&&!Uu(this.config)?this.notify(e?.invalidConfig,void 0):t.warnings.length>0&&t.warnings.some(i=>i.keyword===TF.NonNumericAggregation)&&this.notify(e?.validateAggregationTypeMsg,e?.missingNumericFields)),(yT(this._model)||vT(this._model)||Lx(this._model)||bT(this._model))&&this._model.aggregationType===Pn.NoAggregation&&this._model.numericFields.length===1&&this.layer){let i=Ru(this.layer),r=_h(i).idField;r&&this._model.numericFields.includes(r)&&this.notify(e?.noAggregationRequiresNumericFields,e?.missingNumericFields)}}this.showLoader&&this.loaderHandle.hideLoader(),this.arcgisUpdateComplete.emit(t)}handleInvalidConfigWarningRaise(t){this.arcgisInvalidConfigWarningRaise.emit(t.detail),this.notify(t.detail.message,t.detail.header)}handleSeriesColorsChange(t){this.arcgisSeriesColorChange.emit({data:t.detail.data,colorMatchApplied:t.detail.colorMatchApplied,model:this._model})}handleSelection(t){let e={...t.detail};this.unsanitizedSelectionDataItems=e.selectionItems;let i={...e},r=Tr(e.selectionItems);r&&(r=cT(r,this.config?.series),r=r.map(dT),r=uT(r,this.config?.series),i.selectionItems=r),Ll(i,this.selectionData)||(this.selectionData=i,this.arcgisSelectionComplete.emit({selectionData:i,model:this._model}))}handleTooManySelectedElements(){this.errorPolicy===lg.Throw&&(this.infoModalHeading=this.commonStrings?.errorStrings.tooManySelectedElements?.title,this.infoModalMessage=this.commonStrings?.errorStrings.tooManySelectedElements?.message,this.notifyOptions={kind:"warning",autoClose:!0,duration:"fast",active:!0})}handleAlertClosed(t){t.target===this.el&&(this.notifyHeading=void 0,this.notifyMessage=void 0)}handleAxesMinMaxChange(t){this.arcgisAxesMinMaxChange.emit({bounds:t.detail,model:this._model})}handleSeriesOrder(t){this.arcgisSeriesOrder.emit(t.detail)}modelChange(){if(Ho(this.model)){this._model=this.model,this.config=Tr(this._model?.config);let t=this._model?.layer;!this.layerItemId&&t&&(this.layer=t),this.addModelListeners(),this._model.asyncUpdatesPromise.then(()=>{typeof this.resolveModelSetup=="function"&&this.resolveModelSetup()})}else this.config=this.model;if(this.enableBetaFeatures===void 0){let t=ze(this.config?.series);this.enableBetaFeatures=t===V.ScatterSeries||t===V.HistogramSeries}}selectionDataChange(){this.setSelectionInSelectionManager()}async viewChange(t,e){this.layerItemId&&this.layerItemId?.trim()!==""&&(this.layer=px({view:this.view,portalItemId:this.layerItemId})??new QC({portalItem:{id:this.layerItemId}})),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),e!==void 0&&t===void 0&&await this.refresh(),this.view?this.setViewSelectionsChangeWatchHandler():this.removeViewSelectionsChangeWatchHandler()}async layerChange(){this.addLayerWatchHandlers(),this.layer&&(await Ru(this.layer).load(),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler())}layerItemIdChange(){this.layerItemId&&this.layerItemId?.trim()!==""?this.layer=px({view:this.view,portalItemId:this.layerItemId})??new QC({portalItem:{id:this.layerItemId}}):this.layer=void 0}featureIndexChange(t,e){e===void 0&&typeof t=="number"&&this.updatedProps.set("forceDataUpdate",{oldValue:e,newValue:t})}disableInteractionsChange(t){t?this.chartRef.value?.classList.add(to.DisableInteractions):this.chartRef.value?.classList.remove(to.DisableInteractions)}rotationChange(t){t!==void 0&&(this.config=wT(t,this.config))}legendPositionChange(t){t!==void 0&&(this.config=_T(t,this.config))}legendVisibilityChange(t){t!==void 0&&(this.config=CT(t,this.config))}timeZoneChange(){this.updateConfigTimeZone()}filterBySelectionChanged(){this.config=BT(this.config)}layerFilterChangePolicyCallBack(t){t!==hg.Ignore?this.setLayerFilterWatchHandler():this.removeLayerFilterWatchHandler()}viewTimeExtentChangePolicyCallback(t){t!==lp.Refresh?this.removeViewTimeExtentChangeWatchHandler():this.setViewTimeExtentChangeWatchHandler()}layerRendererChangePolicyCallBack(t){t!==ug.Ignore?this.setLayerRendererWatchHandler():this.removeLayerRendererWatchHandler()}async filterByExtentChanged(t){t||await this.refresh({updateData:!0,resetAxesBounds:!0}),t?this.setExtentChangeWatchHandler(t):this.removeExtentChangeWatchHandlers()}layerFieldsChangePolicyCallBack(t){t!==cg.Ignore?this.setLayerFieldsWatchHandler():this.removeLayerFieldsWatchHandler()}addConfigListeners(){this.listenOn(document,"arcgisChartsConfigPanelNumberChange",this.configPanelNumberChange),this.listenOn(document,"arcgisChartsConfigDataChangeError",this.configDataChangeError)}getSelectionFromSelectionManager(){let t;if((this.view||this.selectionManager)&&this.layer&&!Gs(this.layer)){let e=Ru(this.layer);t=(this.selectionManager??this.view?.selectionManager)?.getSelection(e)}return t}setSelectionInSelectionManager(){let t=this.selectionManager??this.view?.selectionManager;if(this.layer&&t&&!Gs(this.layer)&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===hp.Enabled)){let e,i=this.selectionData?.selectionOIDs?.length===0||this.selectionData?.selectionOIDs===void 0||this.selectionData?.selectionSource===Pr.ClearSelection,r=(this.selectionData?.selectionOIDs?.length??0)>0;i?e=[]:r&&this.selectionData&&(e=this.selectionData.selectionOIDs),e&&t.replace(Ru(this.layer),e)}}addModelListeners(){this.listenOn(this._model??null,"arcgisChartsModelConfigChange",this.modelConfigChange),this.listenOn(this._model??null,"arcgisChartsModelDataChange",this.modelDataChange)}addLayerWatchHandlers(){this.removeLayerWatchHandlers(),this.layerFilterWatchHandler=EL(this),this.layerRendererWatchHandler=ML(this),this.layerFieldsWatchHandler=RL(this)}setLayerFilterWatchHandler(){this.removeLayerFilterWatchHandler(),this.layerFilterWatchHandler=EL(this)}setLayerRendererWatchHandler(){this.removeLayerRendererWatchHandler(),this.layerRendererWatchHandler=ML(this)}setLayerFieldsWatchHandler(){this.removeLayerFieldsWatchHandler(),this.layerFieldsWatchHandler=RL(this)}async setExtentChangeWatchHandler(t){(t??this.filterByExtent)&&(this.removeExtentChangeWatchHandlers(),this.extentChangeWatchHandlers=await CY(this))}setViewTimeZoneWatchHandler(){this.removeViewTimeZoneChangeWatchHandler(),this.viewTimeZoneChangeWatchHandler=BY(this)}setViewTimeExtentChangeWatchHandler(){this.removeViewTimeExtentChangeWatchHandler(),this.viewTimeExtentChangeWatchHandler=wY(this)}setViewSelectionsChangeWatchHandler(){this.removeViewSelectionsChangeWatchHandler(),this.viewSelectionsChangeWatchHandler=SY(this)}setSelectionManagerChangeWatchHandler(){this.removeSelectionManagerChangeWatchHandler(),this.selectionManagerChangeWatchHandler=FY(this)}removeLayerWatchHandlers(){this.removeLayerFilterWatchHandler(),this.removeLayerRendererWatchHandler(),this.removeLayerFieldsWatchHandler()}removeViewWatchHandlers(){this.removeViewSelectionsChangeWatchHandler(),this.removeViewTimeZoneChangeWatchHandler(),this.removeViewTimeExtentChangeWatchHandler()}removeLayerFilterWatchHandler(){this.layerFilterWatchHandler?.remove()}removeLayerRendererWatchHandler(){this.layerRendererWatchHandler?.remove()}removeLayerFieldsWatchHandler(){this.layerFieldsWatchHandler?.remove()}removeExtentChangeWatchHandlers(){this.extentChangeWatchHandlers?.forEach(t=>t.remove()),this.extentChangeWatchHandlers=[]}removeViewSelectionsChangeWatchHandler(){this.viewSelectionsChangeWatchHandler?.remove()}removeSelectionManagerChangeWatchHandler(){this.selectionManagerChangeWatchHandler?.remove()}removeViewTimeZoneChangeWatchHandler(){this.viewTimeZoneChangeWatchHandler?.remove()}removeViewTimeExtentChangeWatchHandler(){this.viewTimeExtentChangeWatchHandler?.remove(),this.runtimeDataFilters?.timeExtent&&delete this.runtimeDataFilters.timeExtent}async createModelFromLayer(){if(this.layer){let t=Ru(this.layer);await t.load();let e=this.chartIndex??0,i="charts"in t?t?.charts?.[e]:void 0;if(i)this.model=await TT({layer:t,config:i});else{let r=fA(this._messages?.chartNotFoundWarning??"",{chartIndex:e.toString(),layerTitle:t.title});this.arcgisChartNotFoundWarning.emit(r),iF("warn",this,r)}}}applyPlaceholderForPartialConfig(t){let e=Lx(this._model)?V.ComboLineAndBarSeries:ze(t?.series),i=dY(e,this.commonStrings?.errorStrings);this.notify(i)}checkForIncompatibleChartVersion(){let t=this.config?.version;this.errorPolicy===lg.Throw&&$F(t).versionStatus===uF.Newer&&(this.notifyHeading=this.commonStrings?.errorStrings.incompatibleChartVersion?.title,this.notifyMessage=this.commonStrings?.errorStrings.incompatibleChartVersion?.message?fA(this.commonStrings?.errorStrings.incompatibleChartVersion?.message,{chartVersion:t??""}):"",this.notifyOptions={kind:"warning",autoClose:!0,active:!0})}ourModelExistsIn(t){return t.some(e=>this._model?.isSameChartAs(e))}updateConfigTimeZone(){this.config?.axes?.[0]?.valueFormat.type===V.DateAxisFormat&&(this.config.axes[0].valueFormat.intlOptions.timeZone=pT(this.timeZone))}gatherComponentGlobalOptions(){return{queueChartCreation:this.queueChartCreation,skipChartCreationQueue:this.skipChartCreationQueue,useAnimatedCharts:this.useAnimatedCharts,hideLicenseWatermark:this.hideLicenseWatermark,showLicenseWatermark:this.showLicenseWatermark,enableResponsiveFeatures:this.enableResponsiveFeatures,autoDisposeChart:this.autoDisposeChart}}addMutationObserverForCalciteTheme(){lF(this.el,["class"],()=>{if(this.enableAutoTheming){let t=mw(this.el);(this.calciteThemeApplied==="dark"&&!t||this.calciteThemeApplied!=="dark"&&t)&&(this.calciteThemeApplied=t?"dark":void 0,this.refresh({updateData:!1}))}})}gatherComponentOptions(t=!0){let e=this.runtimeDataFilters;this.view&&this.viewTimeExtentChangePolicy===lp.Refresh&&this.view.timeExtent?.start!=null&&this.view.timeExtent?.end!=null&&(e={...e,timeExtent:[this.view.timeExtent.start.valueOf(),this.view.timeExtent.end.valueOf()]});let i;if(Gs(this.layer))i=this.filterByExtent?this.view:void 0;else{let r=Ho(this.model)?this.model.config:this.model,a=ze(r?.series);i=this.filterByExtent||a!==V.HistogramSeries?this.view:void 0}return{layer:this.layer,view:i,viewExtentUpdated:t&&this.filterByExtent&&(this.view!==void 0||dd(this.layer)),allowUsingObjectIdStat:this.allowUsingObjectIdStat,nullAsValid:this.nullAsValid,createMessage:this.placeholder,hideLoaderAnimation:this.hideLoaderAnimation,loaderColors:Tr(this.loaderColors),runtimeDataFilters:e,usePopupTemplateFieldsInfo:this.usePopupTemplateFieldsInfo,ignoreViewExtent:this.ignoreViewExtent,chartLimits:this.chartLimits,guideTooltipFormatter:this.guideTooltipFormatter,xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter,tooltipFormatter:this.tooltipFormatter,dataLabelFormatter:this.dataLabelFormatter,selectionData:this.selectionData,filterBySelection:this.filterBySelection,actionMode:this.actionMode,cursorRange:this.cursorRange,selectionTheme:this.selectionTheme,setTimeBinningInfoWhenNotProvided:this.setTimeBinningInfoWhenNotProvided,returnSelectionOIDs:Gs(this.layer)?!1:this.returnSelectionOIDs,returnSelectionIndexes:this.returnSelectionIndexes,returnFeaturesExtent:this.returnFeaturesExtent,disableInteractions:this.disableInteractions,disableTogglingLegendItems:this.disableTogglingLegendItems,hideEmptySeries:this.hideEmptySeries,autoInverseDataLabelTextColor:this.autoInverseDataLabelTextColor,replaceNoValueCategoryWithZero:this.replaceNoValueCategoryWithZero,hideZeroCountCategories:this.hideZeroCountCategories,gaugeInnerLabelFormatter:this.gaugeInnerLabelFormatter,ignoreSmoothRenderingLimit:this.ignoreSmoothRenderingLimit,chartWillRender:this.chartWillRender,pieChartLegendValueLabelFormatter:this.legendValueLabelFormatter}}raiseLogScaleNotCompatibleWarning(t){let e=!0;return this.config?.axes?.forEach((i,r)=>{ag({chartConfig:this.config,axisConfigIndex:r,chartData:In(t?.data??this.sanitizedChartData)})||(e=!1,this.raiseInvalidDataWarning(r===0?Ad.NegativeValueInXAxisLogScale:Ad.NegativeValueInYAxisLogScale))}),e}raiseNoDataWarning(t,e){let i=!1;if(t?.data){let r=In(t.data);lT({chartConfig:e,nullAsValid:this.nullAsValid,dataSet:r})&&(i=!0,this.raiseInvalidDataWarning(Ad.EmptyDataSet))}return i}raiseInvalidDataWarning(t,e){let i=this.layer,r=this.gatherComponentOptions(),a=this.config!==void 0&&qm({seriesConfig:this.config.series[0],xAxisValueFormatType:dF(this.config),queryObject:i}),n=iT({invalidType:t,elementCount:e,seriesCount:this.config?.series?.length,chartLimits:r?.chartLimits,filterBySelection:r?.filterBySelection,queryObject:i,formatLocale:fd(this.el),isTemporalChart:a,errorStrings:this.commonStrings?.errorStrings});(n.keyword!==Ad.EmptyDataSet||this.infoModalMessage===void 0)&&(this.arcgisBadDataWarningRaise.emit(n),this.notify(n.message,n.header))}processInvalidConfigStatus(t,e){if(this.enableConfiguration)this.handleUpdateCompleted(t);else{this.loaderHandle.hideLoader();let{title:i,message:r}=cY({chartConfig:e,createMessage:this.placeholder,status:t,errorStrings:this.commonStrings?.errorStrings});this.arcgisInvalidConfigWarningRaise.emit({keyword:Ad.InvalidConfig,header:i,message:r}),this.notify(r,i)}}async createChartInstance(t=!0){if(this.config)try{this.addMutationObserverForCalciteTheme(),await this.renderChart(),t&&this.chart&&(this.addLayerWatchHandlers(),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),this.setViewSelectionsChangeWatchHandler(),this.setSelectionManagerChangeWatchHandler())}catch(e){if(this.updatedProps.clear(),e instanceof Ln&&e.name===cd.QueryFeaturesError?this.arcgisDataProcessError.emit(e.details):e instanceof Ln&&this.arcgisRuntimeError.emit(e.details??e),typeof e=="object"&&e&&"message"in e){let i=e instanceof Ln?e.message:this.commonStrings?.errorStrings.errors.simpleError;this.notify(i,this.commonStrings?.errorStrings.errorHeading)}this.chart?.dispose(),this.chart=void 0}}notifyDataProcessComplete(t){if(t&&this._config){let e=ng({data:t,seriesConfig:this._config.series});e&&(this.sanitizedChartData=e,this.arcgisDataProcessComplete.emit({chartData:e,model:this._model}))}}notifyDataFetchComplete(t){if(t&&"dataItems"in t&&this._config&&ze(this._config?.series)===V.PieSeries){let e=Tr(t);e.dataItems=$W(e.dataItems,this._config),this.arcgisDataFetchComplete.emit(e)}}async renderChart(){if(Uu(this.config))this.applyPlaceholderForPartialConfig(this.config);else if(this.config){let t=this.chart===void 0,e=new Map(this.updatedProps),i=Array.from(e.keys());if(t||i.length>0){this.checkForInvalidContainer(),t&&(this.dataFetching&&(await this.dataFetching,this.dataFetching=void 0),this.updateConfigTimeZone(),this.checkForIncompatibleChartVersion(),this.updatedProps.clear());let r=await this._loadQueryObject.taskComplete;if(r){let a=this.gatherComponentOptions(),n=ln(r,this.usePopupTemplateFieldsInfo),o;if(e.has("model")){let p=e.get("model")?.oldValue;Ho(p)?o=p.config:o=p}!o&&e.has("config")&&(o=e.get("config")?.oldValue),o??=this.config;let l=t,h;t||({dataUpdateNeeded:l,dataUpdateDetails:h}=aT({config:this.config,previousConfig:o,dataUpdateNeededProps:this.dataUpdateNeededProps,updatedProps:e,options:a,filterBySelection:this.filterBySelection,previousSelectionOIDs:e.has("selectionData")?e.get("selectionData")?.oldValue?.selectionOIDs:this.selectionData?.selectionOIDs,fieldList:n,queryObject:r}),l&&this.hideInfoModal());let c=this.updateSplitBySeries?.addMissingSeries===!0&&(t||l||i.includes("layer")||i.includes("filterByExtent")),u,d,A=!0;for(let p=0;p<$T&&A;p++){let m=this.config;({alteredConfig:u,preFetchedQueryResponse:d}=await ST({configToAlter:this.config,updateSplitBySeries:this.updateSplitBySeries,addMissingSeries:c,chartContainer:this.el,queryObject:r,options:a,layer:this.layer})),A=this.config!==m}if(this._config=u,this.model&&u&&!Ho(this.model)&&(this.model.series=u.series),h?.common&&o?.series&&u?.series&&(h.common.numberOfSeriesChanged=RF(o.series,u.series)),!u&&!this.layer||kx(u,this.layer)&&await $x(u,this.layer)){let p=await Bx({input:u,queryObject:r,allowUsingObjectIdStat:a?.allowUsingObjectIdStat,errorStrings:this.commonStrings?.errorStrings});if(i.forEach(m=>this.updatedProps.delete(m)),!p.valid)this.processInvalidConfigStatus(p,u);else{let m={valid:!0,data:this.processedChartData??this.sanitizedChartData};if(u){if(dd(r)&&await ka.whenOnce(()=>!r.updating),l=l&&u!==void 0&&!Uu(u),l&&(this.loaderHandle.showLoader(),this.dataFetching=nT({chartConfig:u,preFetchedQueryResponse:d,queryObject:r,options:a,fieldList:n,currentSelectionDataItems:this.unsanitizedSelectionDataItems,dataForFilterBySelectionChanged:h?.common?.dataForFilterBySelectionChanged,errorStrings:this.commonStrings?.errorStrings,abortKey:this.guid}),m=await this.dataFetching,Ix(this._model)&&DT(PT,m.data)),ze(u.series)===V.PieSeries){let f=nL({creation:t,previousConfig:o,newConfig:u,dataInfo:m,dataUpdateNeeded:l,utilsStrings:this.commonStrings.utilsStrings});l=l||f}if(!m.valid)this.raiseInvalidDataWarning(m.invalidType,m.count);else{if(ze(u.series)===V.PieSeries){let y=nL({creation:t,previousConfig:o,newConfig:u,dataInfo:m,dataUpdateNeeded:l,utilsStrings:this.commonStrings.utilsStrings});l=l||y}let f,g=Tr(u);if({filteredConfig:u,seriesFilteredOut:f}=FT({showEmptySeries:this.showEmptySeries??this.hideEmptySeries===!1,config:u,data:m?.data}),!this.raiseNoDataWarning(m,u)&&this.raiseLogScaleNotCompatibleWarning(m)){let y=ap({oldConfig:f?g:o,newConfig:u,dataWasUpdated:l});y&&sT({alteredConfig:u,dataInfo:m,fieldList:n,options:a,queryObject:r}),Jm(o,u)&&(l=!0);let x=$l(u)?u.showMean:void 0,w=m?.data??this.sanitizedChartData,S=w&&x&&"meanLines"in w?w.meanLines:In(w);S&&(t||l)&&({colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames}=await bx({data:S,queryObject:r,chartConfig:u,allowColorMatch:nx({chartConfig:u,queryObject:r})})),this.enableAutoTheming&&(u=xY(this.el,u),this.calciteThemeApplied=mw(this.el)?"dark":void 0,a=bY({chartElement:this.el,options:a,calciteThemeApplied:this.calciteThemeApplied}));let D=!1,T;if(u.series[0].type===V.PieSeries){let $=In(this.processedChartData),I=In(m.data);D=qI($,I),T=YL({creation:t,dataInfo:m,pieChartDataActuallyChanged:D,chartConfig:u,previousConfig:o,queryObject:r,usePopupTemplateFieldsInfo:a?.usePopupTemplateFieldsInfo,utilsStrings:this.commonStrings.utilsStrings})}let L=await qN({creation:t,dataInfo:m,pieChartDataActuallyChanged:D,chartConfig:u,previousConfig:o,pieSlicesSymbols:T,queryObject:r,options:a,utilsStrings:this.commonStrings?.utilsStrings});if(L?.changesApplied&&(p=await Bx({input:L?.alteredConfig,queryObject:r,allowUsingObjectIdStat:a?.allowUsingObjectIdStat,errorStrings:this.commonStrings?.errorStrings}),p.valid&&(u=L?.alteredConfig,T=L.alteredPieSlicesSymbols,this._colorMatchApplied=L.colorMatchApplied,this._rendererFieldNames=L.rendererFieldNames)),u.series[0].type===V.PieSeries&&m.data&&"dataItems"in m.data&&EW({data:m.data.dataItems,newChartConfig:u,pieSlicesSymbols:T,fieldList:n}),this.processedChartData=Tr(m.data),!p.valid)this.processInvalidConfigStatus(p,u);else{if((l||y)&&(this.notifyDataProcessComplete(m.data),this.notifyDataFetchComplete(m.data)),!this.filterBySelection&&!Gs(r)){let H=await AT({updatedPropsSnapshot:e,chartConfig:u,chartData:this.processedChartData,dataWasUpdated:l,queryObject:r,options:a,errorStrings:this.commonStrings?.errorStrings});H&&a&&(a.selectionData={...a?.selectionData,selectionItems:H})}this.hideInfoModal();let{t9nLocale:$}=Du(this.chartRef.value??document.documentElement),I=await kY($,this.useAmCharts5()),R={chartContainer:this.chartRef.value,queryObject:r,dataInfo:m,colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames,pieSlicesSymbols:T,hasSeriesFilteredOut:f,uniqueInternalID:this.el.id,t9nStrings:{errorStrings:this.commonStrings?.errorStrings,utilsStrings:this.commonStrings?.utilsStrings,amChartsStrings:I},loaderHandle:this.loaderHandle},F=u.series?.[0]?.query;if(kT(u)&&F&&(m.gaugeMinMaxFromData=await rT({queryObject:r,chartConfig:u,queryConfig:F})),t){let H=this.useAmCharts5()?uY:XW;this.chart=H({...R,chartConfig:u,options:a,globalOptions:this.gatherComponentGlobalOptions()})}else this.chart?.update({...R,newChartConfig:u,dataUpdateDetails:h,configWithAllSeries:g,dataWasUpdated:l,updateOptions:a,updateGlobalOptions:this.gatherComponentGlobalOptions()}),this.handleUpdateCompleted(p);await this.generateHeatChartClassBreaks(m)}}}}}}}}}}render(){let t=this.notifyMessage?TY({heading:this.notifyHeading,message:this.notifyMessage,options:this.notifyOptions}):null,e="";switch(!0){case(this.notifyMessage&&this.notifyOptions?.kind==="danger"):case(this.infoModalMessage&&(!this.hideUIMessages||this.showUIMessages!==!1)):e=to.Hide;break;default:e=`${to.Chart} ${to.Show}`;break}let i=this.notifyMessage?`${to.Show} ${to.NotifyPanel}`:to.Hide;return nd`<slot name=${gT.actionBar} @slotchange=${r=>{this.actionBarElement=LT(r,this.el,this.config)}} ${Rb(this.actionBarSlotRef)}></slot>${(this.infoModalMessage||this.showLoader)&&(!this.hideUIMessages||this.showUIMessages!==!1)?nd`<arcgis-charts-info-modal .heading=${this.infoModalHeading??""} .message=${this.infoModalMessage??""} .showLoader=${this.showLoader} .loaderColors=${this.loaderColors} .calciteThemeApplied=${this.calciteThemeApplied} .enableAutoTheming=${this.enableAutoTheming}></arcgis-charts-info-modal>`:null}<div class=${`${to.ChartWrapper} ${e}`}><div class=${`${to.ChartContainer} ${e}`} ${Rb(this.chartRef)}></div></div><div class=${aF(i)}>${t}</div>`}};nF("arcgis-chart",gw);return gw},"core/reactiveUtils","intl","layers/FeatureLayer","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic","layers/support/CodedValueDomain","core/sql",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o)