@milaboratories/graph-maker 1.1.87 → 1.1.88

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.
@@ -24,7 +24,7 @@ __p += '`),pi&&(Ot+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+Ot+`return __p
27
- }`;var Ta=_E(function(){return Va(De,Un+"return "+Ot).apply(n,Ue)});if(Ta.source=Ot,gh(Ta))throw Ta;return Ta}function bM(w){return lo(w).toLowerCase()}function q9(w){return lo(w).toUpperCase()}function EM(w,B,F){if(w=lo(w),w&&(F||B===n))return Nt(w);if(!w||!(B=kl(B)))return w;var ne=gi(w),ve=gi(B),De=wa(ne,ve),Ue=Go(ne,ve)+1;return Fu(ne,De,Ue).join("")}function e4(w,B,F){if(w=lo(w),w&&(F||B===n))return w.slice(0,zd(w)+1);if(!w||!(B=kl(B)))return w;var ne=gi(w),ve=Go(ne,gi(B))+1;return Fu(ne,0,ve).join("")}function TE(w,B,F){if(w=lo(w),w&&(F||B===n))return w.replace(pn,"");if(!w||!(B=kl(B)))return w;var ne=gi(w),ve=wa(ne,gi(B));return Fu(ne,ve).join("")}function xM(w,B){var F=ae,ne=U;if(Ml(B)){var ve="separator"in B?B.separator:ve;F="length"in B?Ca(B.length):F,ne="omission"in B?kl(B.omission):ne}w=lo(w);var De=w.length;if(Lc(w)){var Ue=gi(w);De=Ue.length}if(F>=De)return w;var Ke=F-su(ne);if(Ke<1)return ne;var st=Ue?Fu(Ue,0,Ke).join(""):w.slice(0,Ke);if(ve===n)return st+ne;if(Ue&&(Ke+=st.length-Ke),$2(ve)){if(w.slice(Ke).search(ve)){var Rt,Ht=st;for(ve.global||(ve=Ts(ve.source,lo(bn.exec(ve))+"g")),ve.lastIndex=0;Rt=ve.exec(Ht);)var Ot=Rt.index;st=st.slice(0,Ot===n?Ke:Ot)}}else if(w.indexOf(kl(ve),Ke)!=Ke){var fn=st.lastIndexOf(ve);fn>-1&&(st=st.slice(0,fn))}return st+ne}function SM(w){return w=lo(w),w&&We.test(w)?w.replace(Dr,Rc):w}var BM=z(function(w,B,F){return w+(F?" ":"")+B.toUpperCase()}),t4=N("toUpperCase");function n4(w,B,F){return w=lo(w),B=F?n:B,B===n?e0(w)?ah(w):Gr(w):w.match(B)||[]}var _E=ia(function(w,B){try{return Ar(w,n,B)}catch(F){return gh(F)?F:new pr(F)}}),kM=Jd(function(w,B){return Qr(B,function(F){F=Uu(F),ps(w,F,Yt(w[F],w))}),w});function TM(w){var B=w==null?0:w.length,F=br();return w=B?fe(w,function(ne){if(typeof ne[1]!="function")throw new Ys(o);return[F(ne[0]),ne[1]]}):[],ia(function(ne){for(var ve=-1;++ve<B;){var De=w[ve];if(Ar(De[0],this,ne))return Ar(De[1],this,ne)}})}function _M(w){return sp(Sl(w,h))}function r4(w){return function(){return w}}function PM(w,B){return w==null||w!==w?B:w}var MM=Qe(),a4=Qe(!0);function Hf(w){return w}function i4(w){return wf(typeof w=="function"?w:Sl(w,h))}function DM(w){return Eu(Sl(w,h))}function HM(w,B){return Pi(w,Sl(B,h))}var IM=ia(function(w,B){return function(F){return Fl(F,w,B)}}),LM=ia(function(w,B){return function(F){return Fl(w,F,B)}});function o4(w,B,F){var ne=Bu(B),ve=$l(B,ne);F==null&&!(Ml(B)&&(ve.length||!ne.length))&&(F=B,B=w,w=this,ve=$l(B,Bu(B)));var De=!(Ml(F)&&"chain"in F)||!!F.chain,Ue=wp(w);return Qr(ve,function(Ke){var st=B[Ke];w[Ke]=st,Ue&&(w.prototype[Ke]=function(){var Rt=this.__chain__;if(De||Rt){var Ht=w(this.__wrapped__),Ot=Ht.__actions__=rl(this.__actions__);return Ot.push({func:st,args:arguments,thisArg:w}),Ht.__chain__=Rt,Ht}return st.apply(w,xe([this.value()],arguments))})}),w}function RM(){return $a._===this&&($a._=yA),this}function l4(){}function PE(w){return w=Ca(w),ia(function(B){return Cf(B,w)})}var s4=cn(fe),NM=cn(ls),$M=cn(un);function ny(w){return _n(w)?Z(Uu(w)):On(w)}function ry(w){return function(B){return w==null?n:qo(w,B)}}var FM=al(),VM=al(!0);function u4(){return[]}function c4(){return!1}function OM(){return{}}function QM(){return""}function zM(){return!0}function ME(w,B){if(w=Ca(w),w<1||w>re)return[];var F=ce,ne=Lo(w,ce);B=br(B),w-=ce;for(var ve=it(ne,B);++F<w;)B(F);return ve}function UM(w){return xa(w)?fe(w,Uu):li(w)?[w]:rl(Gm(lo(w)))}function jM(w){var B=++Fc;return lo(w)+B}var GM=Vt(function(w,B){return w+B},0),YM=oi("ceil"),WM=Vt(function(w,B){return w/B},1),XM=oi("floor");function KM(w){return w&&w.length?Xs(w,Hf,vu):n}function ZM(w,B){return w&&w.length?Xs(w,br(B,2),vu):n}function JM(w){return po(w,Hf)}function qM(w,B){return po(w,br(B,2))}function eD(w){return w&&w.length?Xs(w,Hf,Jl):n}function tD(w,B){return w&&w.length?Xs(w,br(B,2),Jl):n}var nD=Vt(function(w,B){return w*B},1),rD=oi("round"),aD=Vt(function(w,B){return w-B},0);function iD(w){return w&&w.length?ot(w,Hf):0}function Av(w,B){return w&&w.length?ot(w,br(B,2)):0}return ke.after=Ze,ke.ary=Ct,ke.assign=Mf,ke.assignIn=cv,ke.assignInWith=_1,ke.assignWith=Ch,ke.at=vE,ke.before=Ut,ke.bind=Yt,ke.bindAll=kM,ke.bindKey=Qt,ke.castArray=uE,ke.chain=tv,ke.chunk=s0,ke.compact=Ym,ke.concat=kf,ke.cond=TM,ke.conforms=_M,ke.constant=r4,ke.countBy=Og,ke.create=P1,ke.curry=Cn,ke.curryRight=Fn,ke.debounce=zn,ke.defaults=M1,ke.defaultsDeep=O2,ke.defer=Ql,ke.delay=At,ke.difference=Wa,ke.differenceBy=Pl,ke.differenceWith=Oo,ke.drop=ys,ke.dropRight=bc,ke.dropRightWhile=dh,ke.dropWhile=ws,ke.fill=v1,ke.filter=iv,ke.flatMap=zg,ke.flatMapDeep=L9,ke.flatMapDepth=Ug,ke.flatten=Wm,ke.flattenDeep=hp,ke.flattenDepth=Su,ke.flip=qe,ke.flow=MM,ke.flowRight=a4,ke.fromPairs=Xm,ke.functions=wE,ke.functionsIn=eM,ke.groupBy=gp,ke.initial=Km,ke.intersection=Lg,ke.intersectionBy=Tf,ke.intersectionWith=Ah,ke.invert=CE,ke.invertBy=tM,ke.invokeMap=L2,ke.iteratee=i4,ke.keyBy=R9,ke.keys=Bu,ke.keysIn=Df,ke.map=p0,ke.mapKeys=nM,ke.mapValues=rM,ke.matches=DM,ke.matchesProperty=HM,ke.memoize=mt,ke.merge=aM,ke.mergeWith=bE,ke.method=IM,ke.methodOf=LM,ke.mixin=o4,ke.negate=nn,ke.nthArg=PE,ke.omit=iM,ke.omitBy=oM,ke.once=Jn,ke.orderBy=N9,ke.over=s4,ke.overArgs=Sr,ke.overEvery=NM,ke.overSome=$M,ke.partial=Ln,ke.partialRight=Br,ke.partition=S1,ke.pick=lM,ke.pickBy=EE,ke.property=ny,ke.propertyOf=ry,ke.pull=y1,ke.pullAll=mp,ke.pullAllBy=Vs,ke.pullAllWith=DA,ke.pullAt=vl,ke.range=FM,ke.rangeRight=VM,ke.rearg=bs,ke.reject=p,ke.remove=Cs,ke.rest=Mi,ke.reverse=ph,ke.sampleSize=T,ke.set=W9,ke.setWith=X9,ke.shuffle=L,ke.slice=f0,ke.sortBy=Ce,ke.sortedUniq=Jm,ke.sortedUniqBy=d0,ke.split=yM,ke.spread=HA,ke.tail=S2,ke.take=B2,ke.takeRight=w1,ke.takeRightWhile=qm,ke.takeWhile=_9,ke.tap=I9,ke.throttle=$9,ke.thru=Sd,ke.toArray=uv,ke.toPairs=G2,ke.toPairsIn=xE,ke.toPath=UM,ke.toPlainObject=U9,ke.transform=Kg,ke.unary=FP,ke.union=P9,ke.unionBy=k2,ke.unionWith=T2,ke.uniq=vp,ke.uniqBy=M9,ke.uniqWith=mh,ke.unset=Zg,ke.unzip=ev,ke.unzipWith=gl,ke.update=sM,ke.updateWith=SE,ke.values=dv,ke.valuesIn=uM,ke.without=D9,ke.words=n4,ke.wrap=VP,ke.xor=_2,ke.xorBy=Fg,ke.xorWith=H9,ke.zip=P2,ke.zipObject=M2,ke.zipObjectDeep=D2,ke.zipWith=Pf,ke.entries=G2,ke.entriesIn=xE,ke.extend=cv,ke.extendWith=_1,o4(ke,ke),ke.add=GM,ke.attempt=_E,ke.camelCase=kE,ke.capitalize=Jg,ke.ceil=YM,ke.clamp=BE,ke.clone=cE,ke.cloneDeep=QP,ke.cloneDeepWith=fE,ke.cloneWith=OP,ke.conformsTo=F9,ke.deburr=qg,ke.defaultTo=PM,ke.divide=WM,ke.endsWith=Y2,ke.eq=IA,ke.escape=ey,ke.escapeRegExp=ty,ke.every=Qg,ke.find=E1,ke.findIndex=pp,ke.findKey=j9,ke.findLast=I2,ke.findLastIndex=u0,ke.findLastKey=Q2,ke.floor=XM,ke.forEach=x1,ke.forEachRight=vh,ke.forIn=Xg,ke.forInRight=gE,ke.forOwn=z2,ke.forOwnRight=yE,ke.get=G9,ke.gt=zP,ke.gte=UP,ke.has=U2,ke.hasIn=fv,ke.head=c0,ke.identity=Hf,ke.includes=ov,ke.indexOf=MA,ke.inRange=cM,ke.invoke=j2,ke.isArguments=B1,ke.isArray=xa,ke.isArrayBuffer=jP,ke.isArrayLike=Js,ke.isArrayLikeObject=zl,ke.isBoolean=jg,ke.isBuffer=yp,ke.isDate=GP,ke.isElement=YP,ke.isEmpty=dE,ke.isEqual=WP,ke.isEqualWith=N2,ke.isError=gh,ke.isFinite=V9,ke.isFunction=wp,ke.isInteger=Gg,ke.isLength=Yg,ke.isMap=O9,ke.isMatch=AE,ke.isMatchWith=pE,ke.isNaN=yh,ke.isNative=XP,ke.isNil=ZP,ke.isNull=KP,ke.isNumber=sv,ke.isObject=Ml,ke.isObjectLike=Ul,ke.isPlainObject=k1,ke.isRegExp=$2,ke.isSafeInteger=JP,ke.isSet=Q9,ke.isString=F2,ke.isSymbol=li,ke.isTypedArray=wh,ke.isUndefined=V2,ke.isWeakMap=Wg,ke.isWeakSet=hE,ke.join=_f,ke.kebabCase=dM,ke.last=ju,ke.lastIndexOf=g1,ke.lowerCase=K9,ke.lowerFirst=Z9,ke.lt=mE,ke.lte=z9,ke.max=KM,ke.maxBy=ZM,ke.mean=JM,ke.meanBy=qM,ke.min=eD,ke.minBy=tD,ke.stubArray=u4,ke.stubFalse=c4,ke.stubObject=OM,ke.stubString=QM,ke.stubTrue=zM,ke.multiply=nD,ke.nth=Zm,ke.noConflict=RM,ke.noop=l4,ke.now=Fe,ke.pad=AM,ke.padEnd=pM,ke.padStart=PZ,ke.parseInt=hM,ke.random=fM,ke.reduce=R2,ke.reduceRight=lv,ke.repeat=mM,ke.replace=vM,ke.result=Y9,ke.round=rD,ke.runInContext=tt,ke.sample=v,ke.size=j,ke.snakeCase=gM,ke.some=te,ke.sortedIndex=Rg,ke.sortedIndexBy=Ng,ke.sortedIndexOf=nA,ke.sortedLastIndex=hh,ke.sortedLastIndexBy=$g,ke.sortedLastIndexOf=rA,ke.startCase=wM,ke.startsWith=J9,ke.subtract=aD,ke.sum=iD,ke.sumBy=Av,ke.template=CM,ke.times=ME,ke.toFinite=h0,ke.toInteger=Ca,ke.toLength=T1,ke.toLower=bM,ke.toNumber=aA,ke.toSafeInteger=qP,ke.toString=lo,ke.toUpper=q9,ke.trim=EM,ke.trimEnd=e4,ke.trimStart=TE,ke.truncate=xM,ke.unescape=SM,ke.uniqueId=jM,ke.upperCase=BM,ke.upperFirst=t4,ke.each=x1,ke.eachRight=vh,ke.first=c0,o4(ke,function(){var w={};return ii(ke,function(B,F){ja.call(ke.prototype,F)||(w[F]=B)}),w}(),{chain:!1}),ke.VERSION=r,Qr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(w){ke[w].placeholder=ke}),Qr(["drop","take"],function(w,B){Nr.prototype[w]=function(F){F=F===n?1:Fi(Ca(F),0);var ne=this.__filtered__&&!B?new Nr(this):this.clone();return ne.__filtered__?ne.__takeCount__=Lo(F,ne.__takeCount__):ne.__views__.push({size:Lo(F,ce),type:w+(ne.__dir__<0?"Right":"")}),ne},Nr.prototype[w+"Right"]=function(F){return this.reverse()[w](F).reverse()}}),Qr(["filter","map","takeWhile"],function(w,B){var F=B+1,ne=F==Y||F==oe;Nr.prototype[w]=function(ve){var De=this.clone();return De.__iteratees__.push({iteratee:br(ve,3),type:F}),De.__filtered__=De.__filtered__||ne,De}}),Qr(["head","last"],function(w,B){var F="take"+(B?"Right":"");Nr.prototype[w]=function(){return this[F](1).value()[0]}}),Qr(["initial","tail"],function(w,B){var F="drop"+(B?"":"Right");Nr.prototype[w]=function(){return this.__filtered__?new Nr(this):this[F](1)}}),Nr.prototype.compact=function(){return this.filter(Hf)},Nr.prototype.find=function(w){return this.filter(w).head()},Nr.prototype.findLast=function(w){return this.reverse().find(w)},Nr.prototype.invokeMap=ia(function(w,B){return typeof w=="function"?new Nr(this):this.map(function(F){return Fl(F,w,B)})}),Nr.prototype.reject=function(w){return this.filter(nn(br(w)))},Nr.prototype.slice=function(w,B){w=Ca(w);var F=this;return F.__filtered__&&(w>0||B<0)?new Nr(F):(w<0?F=F.takeRight(-w):w&&(F=F.drop(w)),B!==n&&(B=Ca(B),F=B<0?F.dropRight(-B):F.take(B-w)),F)},Nr.prototype.takeRightWhile=function(w){return this.reverse().takeWhile(w).reverse()},Nr.prototype.toArray=function(){return this.take(ce)},ii(Nr.prototype,function(w,B){var F=/^(?:filter|find|map|reject)|While$/.test(B),ne=/^(?:head|last)$/.test(B),ve=ke[ne?"take"+(B=="last"?"Right":""):B],De=ne||/^find/.test(B);ve&&(ke.prototype[B]=function(){var Ue=this.__wrapped__,Ke=ne?[1]:arguments,st=Ue instanceof Nr,Rt=Ke[0],Ht=st||xa(Ue),Ot=function(ei){var pi=ve.apply(ke,xe([ei],Ke));return ne&&fn?pi[0]:pi};Ht&&F&&typeof Rt=="function"&&Rt.length!=1&&(st=Ht=!1);var fn=this.__chain__,Un=!!this.__actions__.length,_r=De&&!fn,Ta=st&&!Un;if(!De&&Ht){Ue=Ta?Ue:new Nr(this);var zr=w.apply(Ue,Ke);return zr.__actions__.push({func:Sd,args:[Ot],thisArg:n}),new Ko(zr,fn)}return _r&&Ta?w.apply(this,Ke):(zr=this.thru(Ot),_r?ne?zr.value()[0]:zr.value():zr)})}),Qr(["pop","push","shift","sort","splice","unshift"],function(w){var B=_s[w],F=/^(?:push|sort|unshift)$/.test(w)?"tap":"thru",ne=/^(?:pop|shift)$/.test(w);ke.prototype[w]=function(){var ve=arguments;if(ne&&!this.__chain__){var De=this.value();return B.apply(xa(De)?De:[],ve)}return this[F](function(Ue){return B.apply(xa(Ue)?Ue:[],ve)})}}),ii(Nr.prototype,function(w,B){var F=ke[B];if(F){var ne=F.name+"";ja.call(sd,ne)||(sd[ne]=[]),sd[ne].push({name:B,func:F})}}),sd[lt(n,k).name]=[{name:"wrapper",func:n}],Nr.prototype.clone=Gn,Nr.prototype.reverse=du,Nr.prototype.value=_i,ke.prototype.at=nv,ke.prototype.chain=A0,ke.prototype.commit=rv,ke.prototype.next=av,ke.prototype.plant=b1,ke.prototype.reverse=Vg,ke.prototype.toJSON=ke.prototype.valueOf=ke.prototype.value=H2,ke.prototype.first=ke.prototype.head,cs&&(ke.prototype[cs]=C1),ke},Nc=rp();ze?((ze.exports=Nc)._=Nc,he._=Nc):$a._=Nc}).call(yy)}(oC,oC.exports);var qte=oC.exports;const Ir=z1(qte);var ene="pl7.app/axisNature",tne="pl7.app/label",nne="pl7.app/isLabel",rne="pl7.app/columnAsAxis/name",ane="pl7.app/columnAsAxis/domain",L5="pl7.app/isSubset",R5="pl7.app/isDiscreteFilter",ine="pl7.app/discreteValues",one="pl7.app/graph/axis/highCardinality",lne="pl7.app/graph/isVirtual",hi=class K4{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return Tp(this)}static fromAxisSpec(t){return new K4({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>K4.fromAxisSpec(n))}copy(){return new K4({type:this.type,name:this.name,domain:this.domain})}toPFrameId(){return{type:this.type,name:this.name,domain:this.domain}}static fromPojo(t){return new K4(t)}},By=class Lee{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return Tp(this)}static fromPojo(t){return new Lee(t)}};function or(e){return e!==null&&e.kind==="column"}function ky(e){return e!==null&&e.kind==="axis"}function Sn(e){const t=JSON.parse(e);if(t.kind==="column")return By.fromPojo(t);if(t.kind==="axis")return hi.fromPojo(t);throw Error("wrong column or axis object")}async function sne(e,t,n){if(n){const r=await e.pFrameProvider.getTableOuterJoin([t,n],[]),a=r.columnsData[t.toCanonicalString()],i=r.columnsData[n.toCanonicalString()];return a.reduce((o,s,c)=>(o[String(s)]=String(i[c]),o),{})}return null}async function une(e,t,n,r){if(r){const{data:a,axesData:i}=await e.pFrameProvider.getSingleColumnData(r);return i[t.toCanonicalString()].reduce((s,c,f)=>(s[String(c)]=String(a[f]),s),{})}return null}async function cne(e,t,n,r,a){var i,o,s,c;const f=Sn(t);if(or(f)){const A=await e.pFrameProvider.getColumnSpecById(f);if(!A)return;const h=[],m={};A.axesSpec.forEach((b,C)=>{const x=hi.fromAxisSpec(b).toCanonicalString();a.has(x)||(h.push(x),m[x]=C)});const g={kind:"column",name:A.name,label:n??await Oa(e,t,[]),type:A.valueType,spec:A,annotations:A.annotations,isSubsetFilter:((i=A.annotations)==null?void 0:i[L5])==="true",isDiscreteFilter:A.valueType==="String"||((o=A.annotations)==null?void 0:o[R5])==="true",axesToBeFixed:h,axesToBeFixedIndexes:m};r.set(f.toCanonicalString(),g);for(const b of A.axesSpec){const x=hi.fromAxisSpec(b).toCanonicalString();if(r.has(x))continue;const k=ZI(b),_={kind:"axis",name:b.name,label:await Oa(e,x,[t]),type:b.type,mustBeConsumed:k,dividable:!1,spec:b,annotations:b.annotations,isSubsetFilter:((s=b.annotations)==null?void 0:s[L5])==="true",isDiscreteFilter:b.type==="String"||((c=b.annotations)==null?void 0:c[R5])==="true",parentSources:[t]};r.set(x,_)}}}function XI(e){const t=Sn(e),{name:n,type:r}=t;return or(t)?{kind:"column",name:"",label:" ",type:t.type,spec:{axesSpec:[],kind:"PColumn",valueType:t.type,name:n},annotations:void 0,isSubsetFilter:!1,isDiscreteFilter:t.type==="String",axesToBeFixed:[],axesToBeFixedIndexes:{}}:{kind:"axis",name:"",label:" ",type:r,spec:{type:r,name:n},mustBeConsumed:!1,dividable:!1,annotations:void 0,isSubsetFilter:!1,isDiscreteFilter:r==="String",parentSources:[]}}function lC(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function fne(e){const{selectedSource:t,type:n,selectedFilterRange:r,selectedFilterValue:a}=e,i=Sn(t);if(!i)throw Error("Empty source selected");if(n==="range"){const o=[];return(r==null?void 0:r.max)!==void 0&&o.push({type:"bySingleColumnV2",column:ky(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"LessOrEqual",reference:r.max}}),(r==null?void 0:r.min)!==void 0&&o.push({type:"bySingleColumnV2",column:ky(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"GreaterOrEqual",reference:r==null?void 0:r.min}}),o}else if(n==="subset")return[{type:"bySingleColumnV2",column:ky(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Not",operand:{operator:"IsNA"}}}];return typeof a>"u"?[]:[{type:"bySingleColumnV2",column:ky(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Equal",reference:i.type==="String"?String(a):Number(a)}}]}function X1(e){const t=[];for(const n of e)t.push(...fne(n));return t}function Zx(e){var t,n,r,a;if("kind"in e&&e.kind==="PColumn"){const s=(n=e.name)!=null?n:(t=e.annotations)==null?void 0:t[rne],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[ane];return Tp({name:s,domain:c})}const i=e.name,o=e.domain;return Tp({name:i,domain:o})}async function KI(e,t,n){var r;for(const a of n){const i=Sn(a);if(or(i)){const o=await e.pFrameProvider.getColumnSpecById(i),s=(r=o==null?void 0:o.axesSpec)==null?void 0:r.find(c=>hi.fromAxisSpec(c).toCanonicalString()===t.toCanonicalString());if(s)return s}}return null}var dne="pl7.app/label";async function Ei(e,t,n){const r=Sn(t);async function a(f){const A=await KI(e,f,n);return A?Zx(A):null}async function i(f){const A=await e.pFrameProvider.getColumnSpecById(f);return A?Zx(A):null}const o=await e.pFrameProvider.getColumns([],!1,void 0,[dne]),s=or(r)?await i(r):await a(r),c=await Promise.all(o.map(async f=>{const A=await e.pFrameProvider.getColumnSpecById(f);return A&&A.axesSpec.length===1&&Zx(A.axesSpec[0])===s})).then(f=>f.findIndex(A=>A===!0));if(c!==-1)return o[c]}async function Oa(e,t,n){var r,a;const i=Sn(t),o=await Ei(e,t,n);let s;if(or(i)?s=await e.pFrameProvider.getColumnSpecById(o??i):s=o?await e.pFrameProvider.getColumnSpecById(o):await KI(e,i,n),!s)return"";const c=(a=(r=s.annotations)==null?void 0:r[tne])!=null?a:s.name;return e.labelsModifier(s.name,c)}function ZI(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[ene])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}function Ty(e){var t,n;return((t=e.annotations)==null?void 0:t[L5])==="true"||((n=e.annotations)==null?void 0:n[R5])==="true",!0}function Ane(e){var t;return!e.name.includes("metadata")&&((t=e.annotations)==null?void 0:t[lne])!=="true"}var Mv=class{constructor(e,t){this.simpleComponentControllers=e,this.filterComponentControllers=t,this.ignoredOptionIdNames=[],this.dataInputs=[],this.dontAllowUnfilteredHighCardinality=!1}get requiredComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].isRequired&&e.push(t);return e}get dimensionsConsumerComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].isDimensionsConsumer&&e.push(t);for(const t of Object.keys(this.filterComponentControllers))this.filterComponentControllers[t].isDimensionsConsumer&&e.push(t);return e}addSelected(e,t,n){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].addSelected(t,n);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].addSelected(t,n);throw Error(`Unknown input name: ${String(e)}`)}deleteSelected(e,t,n,r){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].deleteSelected(n,r.selectedSource);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].deleteSelected(n,r.selectedSource);throw Error(`Unknown input name: ${String(e)}`)}changeSelected(e,t,n,r){const a=n.components[e].selectorStates,i=a.filter(c=>!r.find(f=>f.selectedSource===c.selectedSource)),o=r.filter(c=>!a.find(f=>f.selectedSource===c.selectedSource));let s=lC(n);return i.forEach(c=>{s=this.deleteSelected(e,t,s,c)}),o.forEach(c=>{s=this.addSelected(e,s,c)}),n.components[e].selectorStates=r.map(c=>n.components[e].selectorStates.find(f=>f.selectedSource===c.selectedSource)).filter(Boolean),s}switchDividableAxis(e,t){return lC(e)}async getMustBeConsumedAxes(e,t){return Promise.resolve(new Set)}createEmptyComponentsGuide(e){return Object.fromEntries(Object.entries(e.components).map(([t,n])=>[t,{options:[],optionsInfo:new Map,stateConsistency:{},required:!1,multipleSelectors:!1}]))}async getSelectedSourcesInfo(e,t,n){const r=new Map,a=new Set;for(const i of this.dataInputs)for(const o of t.components[i].selectorStates){const s=Sn(o.selectedSource);if(or(s)){const c=await e.pFrameProvider.getColumnSpecById(s);c&&c.axesSpec.forEach(f=>a.add(hi.fromAxisSpec(f).toCanonicalString()))}}for(const{selectorStates:i}of Object.values(t.components))for(const{selectedSource:o}of i)await cne(e,o,n[o],r,a);return r}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>XI(t),freeOptionsSet:new Set,axesToBeFixedSet:new Set,readyData:!1,ready:!1,consistent:!0}}async getLabelsMap(e,t){const n=await e.pFrameProvider.getColumnsFull(this.dataInputs.reduce((r,a)=>{const o=t.components[a].selectorStates.map(s=>Sn(s.selectedSource));return r.concat(o)},[]),!1);return Jte(n,r=>r.spec).reduce((r,a)=>{const i=new By({name:a.value.columnId,type:a.value.spec.valueType}).toCanonicalString();return r[i]=a.label,r},{})}async calculateOptions(e,t,n=[],r=Ane){var a,i;const o=this.createEmptyComponentsGuide(t),s=new Set;for(const O of this.dimensionsConsumerComponents)for(const{selectedSource:I}of t.components[O].selectorStates)s.add(I);const c=new Set(this.ignoredOptionIdNames),f=new Set(n),A=new Set,h=await this.getLabelsMap(e,t),m=await this.getSelectedSourcesInfo(e,t,h),g=new Map,b={...this.simpleComponentControllers,...this.filterComponentControllers};for(const[O,I]of Object.entries(b)){const $=await I.getOptions(e,t,h,s,r,c,f);this.dataInputs.includes(O)||$.options.forEach(Q=>{A.add(Q.value)});for(const[Q,ee]of $.optionsInfo)g.set(Q,ee);o[O]=$}const C=O=>{const I=g.get(O);I&&I.kind==="axis"&&(I.mustBeConsumed=!0);const $=m.get(O);$&&$.kind==="axis"&&($.mustBeConsumed=!0)},x=await this.getMustBeConsumedAxes(e,t);for(const O of x)C(O);if(this.dontAllowUnfilteredHighCardinality){const O=$=>{var Q;return((Q=$==null?void 0:$.annotations)==null?void 0:Q[one])==="true"},I=(i=(a=t.components.filters)==null?void 0:a.selectorStates.reduce(($,Q)=>{const ee=m.get(Q.selectedSource);return(ee==null?void 0:ee.kind)==="column"&&ee.spec.axesSpec.filter(O).forEach(ae=>$.add(hi.fromAxisSpec(ae).toCanonicalString())),(ee==null?void 0:ee.kind)==="axis"&&O(ee.spec)&&$.add(hi.fromAxisSpec(ee.spec).toCanonicalString()),$},new Set))!=null?i:new Set;this.dataInputs.forEach($=>{for(const{selectedSource:Q}of t.components[$].selectorStates){const ee=m.get(Q);if((ee==null?void 0:ee.kind)==="column"&&ee.spec.axesSpec.filter(O).forEach(ae=>{const U=hi.fromAxisSpec(ae).toCanonicalString();!A.has(U)&&!I.has(U)&&A.add(U),I.has(U)||C(U)}),(ee==null?void 0:ee.kind)==="axis"&&O(ee.spec)){const J=hi.fromAxisSpec(ee.spec).toCanonicalString();A.has(J)||A.add(J),I.has(J)||C(J)}}})}const k=new Set;for(const{selectorStates:O}of Object.values(t.components))for(const{selectedSource:I}of O){const $=m.get(I);$&&$.kind==="column"&&$.axesToBeFixed.forEach(Q=>{k.add(Q)})}const _=await this.isConsistent(e,t),D=O=>{var I,$,Q;const ee=(I=Sn(O).toCanonicalString())!=null?I:O;return(Q=($=g.get(ee))!=null?$:m.get(ee))!=null?Q:XI(O)};return{components:o,getSourceInfo:D,freeOptionsSet:A,axesToBeFixedSet:k,readyData:this.readyDataInputs(t),ready:this.readyForPlotBuilding(e,t,_,A,D),consistent:_}}async getUniqueSourceValuesWithLabels(e,t,n){var r;const a=t.getSourceInfo(n),i=(r=a.annotations)==null?void 0:r[ine],o=i?JSON.parse(i).map(s=>String(s)):null;if(a.kind==="axis"){const s=Sn(n),c=a.parentSources.map(Sn),f=await Ei(e,n,a.parentSources),A=o??await e.pFrameProvider.getAxisUniqueValues(s,c),h=await une(e,s,c[0],f);return A.map(m=>{var g;return{value:m,label:(g=h==null?void 0:h[m])!=null?g:m}})}if(a.kind==="column"){const s=Sn(n),c=await Ei(e,n,[]),f=await e.pFrameProvider.getColumnUniqueValues(s),A=await sne(e,s,c);return f.map(h=>{var m;return{value:h,label:(m=A==null?void 0:A[h])!=null?m:h}})}return[]}async checkStateConsistency(e,t){const n=new Map;for(const r of Object.keys(this.simpleComponentControllers))n.set(r,await this.simpleComponentControllers[r].checkStateConsistency(e,t));for(const r of Object.keys(this.filterComponentControllers))n.set(r,await this.filterComponentControllers[r].checkStateConsistency(e,t));return n}async isConsistent(e,t){const n=await this.checkStateConsistency(e,t);for(const r of n.values())if(Object.values(r).some(a=>!a))return!1;return!0}readyDataInputs(e){return this.dataInputs.every(t=>e.components[t].selectorStates.length>0)}readyForPlotBuilding(e,t,n,r,a){if(!n||!this.readyDataInputs(t))return!1;let i=!1;for(const s of r){const c=a(s);if(c&&c.kind==="axis"&&c.mustBeConsumed){i=!0;break}}let o=!1;for(const{selectorStates:s}of Object.values(t.components)){for(const{selectedSource:c,fixedAxes:f}of s){const A=a(c);if(A&&A.kind==="column"&&A.axesToBeFixed.some(h=>{var m;return((m=(f??[]).find(g=>g.axisSource===h))==null?void 0:m.axisValue)===void 0})){o=!0;break}}if(o)break}return this.requiredComponents.every(s=>t.components[s].selectorStates.length>0)&&!i&&!o}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},JI=class Ree{constructor({componentName:t,allowedTypes:n,settings:r,strictlyDependsOnParents:a,dependsOn:i=[],parentComponents:o=[],annotations:s={},checkSourceBySpec:c}){this.componentName=t,this.allowedTypes=[...n],this.settings={...Ree.DefaultSettings,...r},this.dependsOn=[...i],this.parentComponents=[...o],this.strictlyDependsOnParents=a??!0,this.annotations={...s},c&&(this.checkSourceBySpec=c)}get isRequired(){return this.settings.required}get isDimensionsConsumer(){return this.settings.dimensionConsumer}addSelected(t,n){const r=lC(t);return r.components[this.componentName].selectorStates.push(n),r}deleteSelected(t,n){const r=lC(t);return r.components[this.componentName].selectorStates=r.components[this.componentName].selectorStates.filter(a=>a.selectedSource!==n),r}async checkStateConsistency(t,n){const r=n.components[this.componentName],a=await this.getParentAxes(t,n);function i(s){const c=hi.fromAxisSpec(s);return a.has(c.toCanonicalString())}const o=await Promise.all(r.selectorStates.map(async({selectedSource:s})=>{const c=Sn(s);if(or(c)){const f=await t.pFrameProvider.getColumnSpecById(c);return f?this.parentComponents.length===0?!0:this.strictlyDependsOnParents&&!this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?f.axesSpec.every(h=>i(h)):this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?f.axesSpec.some(h=>i(h)):a.size===0||f.axesSpec.some(h=>i(h)):!1}return a.has(s)}));return r.selectorStates.reduce((s,c,f)=>(s[c.selectedSource]=o[f],s),{})}async getProducingAxes(t,n){const i=n.components[this.componentName].selectorStates.map(c=>Sn(c.selectedSource)).filter(c=>or(c)),o=new Set;return(await Promise.all(i.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{o.add(hi.fromAxisSpec(f).toCanonicalString())})}),o}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,i)=>{const o=n.components[i].selectorStates.map(s=>Sn(s.selectedSource));return a.push(...o),a},[])}async getParentAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),i=new Set;for(const o of a)if(or(o)){const s=await t.pFrameProvider.getColumnSpecById(o);(r=s==null?void 0:s.axesSpec)==null||r.forEach(c=>{const f=hi.fromAxisSpec(c);i.add(f.toCanonicalString())})}return i}async getAllowedAxes(t,n){var r,a,i;const o=this.getParentSelectedSources(t,n),s=new Set,c=new Map;for(const f of o)if(or(f)){const A=await t.pFrameProvider.getColumnSpecById(f);for(const h of(r=A==null?void 0:A.axesSpec)!=null?r:[]){const m=hi.fromAxisSpec(h),g=this.allowedTypes.includes(h.type),b=Object.entries(this.annotations).every(([C,x])=>{var k;return((k=h.annotations)==null?void 0:k[C])===x});if(this.checkSourceBySpec?this.checkSourceBySpec(h,n):g&&b){if(s.has(m.toCanonicalString()))continue;s.add(m.toCanonicalString());const C=ZI(h);c.set(m.toCanonicalString(),{kind:"axis",name:h.name,label:await Oa(t,m.toCanonicalString(),[f.toCanonicalString()]),type:h.type,mustBeConsumed:C,dividable:!1,spec:h,annotations:h.annotations,isSubsetFilter:((a=h.annotations)==null?void 0:a[L5])==="true",isDiscreteFilter:h.type==="String"||((i=h.annotations)==null?void 0:i[R5])==="true",parentSources:[f.toCanonicalString()]})}}}return{axes:s,optionsInfo:c}}async getOptions(t,n,r,a,i,o=new Set,s=new Set){var c,f,A,h;const m=this.settings.multipleSelectors,g=this.settings.required,b=await this.checkStateConsistency(t,n);if(this.dependsOn.length&&this.dependsOn.some(I=>n.components[I].selectorStates.length===0))return{multipleSelectors:m,required:g,stateConsistency:b,options:[],optionsInfo:new Map};if(this.strictlyDependsOnParents&&!this.settings.isDataComponent&&this.parentComponents.some(I=>n.components[I].selectorStates.length===0))return{multipleSelectors:m,required:g,stateConsistency:b,options:[],optionsInfo:new Map};const C=this.getParentSelectedSources(t,n),x=(await t.pFrameProvider.getColumns(C,!this.settings.columnsWithExtraAxesAllowed&&this.strictlyDependsOnParents,this.allowedTypes,void 0,this.annotations)).filter(I=>!a.has(I.toCanonicalString())),{axes:k,optionsInfo:_}=await this.getAllowedAxes(t,n),D=n.components[this.componentName],O=[];if(this.settings.axesAllowed)for(const I of k){const $=Sn(I),Q=_.get($.toCanonicalString()),ee=!this.settings.homogeneous||!(Q!=null&&Q.mustBeConsumed),J=!a.has(I),ae=o.has($.name)||s.has($.toCanonicalString()),U=D.selectorStates.some(G=>G.selectedSource===I);ee&&J&&!ae&&!U&&O.push({value:I})}if(this.settings.columnsAllowed)for(const I of x){const $=I.toCanonicalString(),Q=Sn($),ee=await t.pFrameProvider.getColumnSpecById(Q);if(((c=ee==null?void 0:ee.annotations)==null?void 0:c[nne])==="true"||this.checkSourceBySpec&&ee&&!this.checkSourceBySpec(ee,n)||this.settings.isDataComponent&&ee&&!i(ee))continue;const ae=[],U={};if(this.settings.columnsWithExtraAxesAllowed&&(ee==null||ee.axesSpec.forEach((Y,X)=>{const oe=hi.fromAxisSpec(Y).toCanonicalString();k.has(oe)||(ae.push(oe),U[oe]=X)})),ee){const Y=(f=r[$])!=null?f:await Oa(t,I.toCanonicalString(),[]),X={kind:"column",name:ee.name,label:Y,type:ee.valueType,spec:ee,annotations:ee.annotations,isSubsetFilter:((A=ee.annotations)==null?void 0:A[L5])==="true",isDiscreteFilter:ee.valueType==="String"||((h=ee.annotations)==null?void 0:h[R5])==="true",axesToBeFixed:ae,axesToBeFixedIndexes:U};_.set(Q.toCanonicalString(),X)}const G=o.has(Q.name)||s.has(Q.toCanonicalString()),K=n.components[this.componentName].selectorStates.some(Y=>Y.selectedSource===$);!G&&!K&&O.push({value:$})}return{multipleSelectors:m,required:g,stateConsistency:b,options:O,optionsInfo:_}}};JI.DefaultSettings={isDataComponent:!1,multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,columnsWithExtraAxesAllowed:!0,dimensionConsumer:!1};var nr=JI,pne={type:"bubble",components:{valueSize:{type:"simple",selectorStates:[]},valueColor:{type:"simple",selectorStates:[]},x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}};function sC(e,t){if(!t.length)return[];const n=t.map(i=>Sn(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const o=n.map(s=>{const c=s.toCanonicalString();return or(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(o)}return a}var hne=class extends Mv{constructor(){super({valueSize:new nr({componentName:"valueSize",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueColor"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),valueColor:new nr({componentName:"valueColor",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueSize"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new nr({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),y:new nr({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tooltipContent:new nr({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["valueSize","valueColor"],this.dontAllowUnfilteredHighCardinality=!0}async getMustBeConsumedAxes(e,t){if(!t.components.valueColor.selectorStates.length)return new Set;const n=t.components.valueColor.selectorStates[0].selectedSource,r=await e.pFrameProvider.getColumnSpecById(Sn(n));return r?new Set(r.axesSpec.map(a=>hi.fromAxisSpec(a).toCanonicalString())):new Set}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.valueColor.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("Value column is not valid");const s=Sn(i),c=Sn(o);if(!s||!c||!or(s)&&!or(c))throw Error("Value column is not valid");const f={type:"columns",id:(a=Tp(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=X1(A),m=A.map(ae=>Sn(ae.selectedSource)).filter(or),g=[s,c].filter(or),b=g.map(ae=>ae.toCanonicalString()),C=[t.components.facetBy,t.components.x,t.components.y,t.components.tooltipContent],x=[],k=g.map(()=>[]),_=[];A.forEach(({fixedAxes:ae})=>{k.push((ae??[]).map(({axisIdx:U,axisValue:G})=>({idx:U,value:G})))});for(const ae of C)for(const{selectedSource:U,fixedAxes:G}of ae.selectorStates){x.push(Sn(U)),_.push((G??[]).map(({axisIdx:Y,axisValue:X})=>({idx:Y,value:X})));const K=await Ei(e,U,b);K&&x.push(K)}const D=await e.pFrameProvider.getTableOuterJoin([...g,...m],x,h,!0,k,_);x.forEach(ae=>{const U=ae.toCanonicalString();f.values[U]=or(ae)?D.columnsData[U]:D.axesData[U]}),f.values[i]=or(s)?D.columnsData[i]:D.axesData[i],f.values[o]=or(c)?D.columnsData[o]:D.axesData[o];const O=t.components.x.selectorStates.map(ae=>ae.selectedSource),I=O.join(", "),$=await Promise.all(O.map(async ae=>{var U,G;return(G=(U=await Ei(e,ae,b))==null?void 0:U.toCanonicalString())!=null?G:ae}));f.values[I]=sC(D,O),f.values.xLabels=sC(D,$);const Q=t.components.y.selectorStates.map(ae=>ae.selectedSource),ee=Q.join(", "),J=await Promise.all(Q.map(async ae=>{var U,G;return(G=(U=await Ei(e,ae,b))==null?void 0:U.toCanonicalString())!=null?G:ae}));return f.values[ee]=sC(D,Q),f.values.yLabels=sC(D,J),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.valueColor.selectorStates[0])==null?void 0:n.selectedSource,i=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!a||!i)throw Error("Value column is not valid");const o=Sn(a),s=Sn(i);if(!or(o)&&!or(s))throw Error("Value column is not valid");const c=[o,s].filter(or).map(D=>D.toCanonicalString()),f={type:"column",value:a,label:await Oa(e,a,[])},A={type:"column",value:i,label:await Oa(e,i,[])},m=t.components.x.selectorStates.map(({selectedSource:D})=>D).join(", "),b=t.components.y.selectorStates.map(({selectedSource:D})=>D).join(", "),C=await Promise.all(t.components.facetBy.selectorStates.map(async D=>{var O,I;return{type:"column",value:(I=(O=await Ei(e,D.selectedSource,c))==null?void 0:O.toCanonicalString())!=null?I:D.selectedSource}})),x=(await Promise.all(t.components.x.selectorStates.map(D=>Oa(e,D.selectedSource,c)))).join(", "),k=(await Promise.all(t.components.y.selectorStates.map(D=>Oa(e,D.selectedSource,c)))).join(", "),_=await Promise.all(t.components.tooltipContent.selectorStates.map(async D=>{var O,I;const $=D.selectedSource;return{type:"column",label:await Oa(e,$,c)||$,value:$,valueLabels:(I=(O=await Ei(e,$,c))==null?void 0:O.toCanonicalString())!=null?I:$}}));return{type:"bubble",valueColor:f,valueSize:A,xColumn:{type:"column",value:m,label:x,valueLabels:"xLabels"},yColumn:{type:"column",value:b,label:k,valueLabels:"yLabels"},facetBy:C,tooltips:{show:!0,content:_}}}},mne={type:"histogram",components:{value:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]}},dividedAxes:{}},vne=class extends Mv{constructor(){super({value:new nr({componentName:"value",allowedTypes:["Int","Long","Double","Float"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"]}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!a)throw Error("Value column is not valid");const i=Sn(a);if(!or(i))throw Error("Value column is not valid");const o={type:"columns",id:(r=Tp(t.components))!=null?r:"",values:{}},s=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],c=X1(s),f=s.map(x=>Sn(x.selectedSource)).filter(or),A=[a],h=[t.components.facetBy],m=[],g=[[]],b=[];s.forEach(({fixedAxes:x})=>{g.push((x??[]).map(({axisIdx:k,axisValue:_})=>({idx:k,value:_})))});for(const x of h)for(const{selectedSource:k,fixedAxes:_}of x.selectorStates){m.push(Sn(k)),b.push((_??[]).map(({axisIdx:O,axisValue:I})=>({idx:O,value:I})));const D=await Ei(e,k,A);D&&m.push(D)}const C=await e.pFrameProvider.getTableOuterJoin([i,...f],m,c,!0,g,b);return m.forEach(x=>{const k=x.toCanonicalString();o.values[k]=or(x)?C.columnsData[k]:C.axesData[k]}),o.values[i.toCanonicalString()]=C.columnsData[i.toCanonicalString()],o}async createChartSettings(e,t){var n;const r=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!r)throw Error("Value column is not valid");const a=Sn(r);if(!or(a))throw Error("Value column is not valid");const i=[r],o={type:"column",value:r,label:await Oa(e,r,[])},s=await Promise.all(t.components.facetBy.selectorStates.map(async c=>{var f,A;return{type:"column",value:(A=(f=await Ei(e,c.selectedSource,i))==null?void 0:f.toCanonicalString())!=null?A:c.selectedSource}}));return{type:"histogram",valueColumn:o,facetBy:s}}},gne={type:"discrete",components:{y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},primaryGrouping:{type:"simple",selectorStates:[]},secondaryGrouping:{type:"simple",selectorStates:[]}},dividedAxes:{}},yne=class extends Mv{constructor(){super({y:new nr({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{isDataComponent:!0}}),primaryGrouping:new nr({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new nr({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["y"],this.dontAllowUnfilteredHighCardinality=!0}async createDataByColumns(e,t){var n;const r=t.components.y.selectorStates[0].selectedSource,a=Sn(r);if(!r||!or(a))throw Error("Y column is not valid");const i={type:"columns",id:(n=Tp(t.components))!=null?n:"",values:{}},o=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],s=X1(o),c=o.map(C=>Sn(C.selectedSource)).filter(or),f=[r],A=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],h=[],m=[[]],g=[];o.forEach(({fixedAxes:C})=>{m.push((C??[]).map(({axisIdx:x,axisValue:k})=>({idx:x,value:k})))});for(const C of A)for(const{selectedSource:x,fixedAxes:k}of C.selectorStates){h.push(Sn(x)),g.push((k??[]).map(({axisIdx:D,axisValue:O})=>({idx:D,value:O})));const _=await Ei(e,x,f);_&&h.push(_)}const b=await e.pFrameProvider.getTableOuterJoin([a,...c],h,s,!0,m,g);return h.forEach(C=>{const x=C.toCanonicalString();i.values[x]=or(C)?b.columnsData[x]:b.axesData[x]}),i.values[a.toCanonicalString()]=b.columnsData[a.toCanonicalString()],i}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,i=Sn(a);if(!a||!or(i))throw Error("Y column is not valid");const o={type:"column",value:a,label:await Oa(e,a,[])},s=[a];let c;if(t.components.primaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.primaryGrouping.selectorStates[0];c={columnName:{type:"column",value:h,label:await Oa(e,h,s),valueLabels:(n=await Ei(e,h,s))==null?void 0:n.toCanonicalString()}}}let f;if(t.components.secondaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.secondaryGrouping.selectorStates[0];f={columnName:{type:"column",value:h,label:await Oa(e,h,s),valueLabels:(r=await Ei(e,h,s))==null?void 0:r.toCanonicalString()}}}const A=await Promise.all(t.components.facetBy.selectorStates.map(async h=>{var m,g;return{type:"column",value:(g=(m=await Ei(e,h.selectedSource,s))==null?void 0:m.toCanonicalString())!=null?g:h.selectedSource,label:await Oa(e,h.selectedSource,s)}}));return{type:"discrete",y:o,primaryGrouping:c,secondaryGrouping:f,facetBy:A}}},wne={type:"heatmap",components:{value:{type:"simple",selectorStates:[]},x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},xGroupBy:{type:"simple",selectorStates:[]},yGroupBy:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},annotationsX:{type:"simple",selectorStates:[]},annotationsY:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}};function Jx(e){return e?"kind"in e&&e.kind==="PColumn"?e.valueType==="String":e.type==="String":!0}function uC(e,t){if(!t.length)return[];const n=t.map(i=>Sn(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const o=n.map(s=>{const c=s.toCanonicalString();return or(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(o)}return a}var Cne=class extends Mv{constructor(){super({value:new nr({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new nr({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new nr({componentName:"xGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["x"]}),y:new nr({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),yGroupBy:new nr({componentName:"yGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["y"]}),tooltipContent:new nr({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotationsX:new nr({componentName:"annotationsX",allowedTypes:["Int","Long","Double","Float","String"],parentComponents:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},dependsOn:["x"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.x.selectorStates.map(r=>r.selectedSource),...t.components.xGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?hi.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(hi.fromAxisSpec(e).toCanonicalString())}}),annotationsY:new nr({componentName:"annotationsY",allowedTypes:["Int","Long","Double","Float","String"],parentComponents:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},dependsOn:["y"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.y.selectorStates.map(r=>r.selectedSource),...t.components.yGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?hi.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(hi.fromAxisSpec(e).toCanonicalString())}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"],this.dontAllowUnfilteredHighCardinality=!0}async getMustBeConsumedAxes(e,t){if(!t.components.value.selectorStates.length)return new Set;const n=t.components.value.selectorStates[0].selectedSource,r=await e.pFrameProvider.getColumnSpecById(Sn(n));return r?new Set(r.axesSpec.map(a=>hi.fromAxisSpec(a).toCanonicalString())):new Set}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!a)throw Error("Value column is not valid");const i=Sn(a);if(!or(i))throw Error("Value column is not valid");const o={type:"columns",id:(r=Tp(t.components))!=null?r:"",values:{}},s=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],c=X1(s),f=s.map(ee=>Sn(ee.selectedSource)).filter(or),A=[a],h=[t.components.facetBy,t.components.annotationsX,t.components.annotationsY,t.components.x,t.components.y,t.components.xGroupBy,t.components.yGroupBy,t.components.tooltipContent],m=[],g=[[]],b=[];s.forEach(({fixedAxes:ee})=>{g.push((ee??[]).map(({axisIdx:J,axisValue:ae})=>({idx:J,value:ae})))});for(const ee of h)for(const{selectedSource:J,fixedAxes:ae}of ee.selectorStates){m.push(Sn(J)),b.push((ae??[]).map(({axisIdx:G,axisValue:K})=>({idx:G,value:K})));const U=await Ei(e,J,A);U&&m.push(U)}const C=await e.pFrameProvider.getTableOuterJoin([i,...f],m,c,!0,g,b);m.forEach(ee=>{const J=ee.toCanonicalString();o.values[J]=or(ee)?C.columnsData[J]:C.axesData[J]}),o.values[i.toCanonicalString()]=C.columnsData[i.toCanonicalString()];const x=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(ee=>ee.selectedSource),k=x.join(", ");o.values[k]=uC(C,x);const _=t.components.x.selectorStates.map(ee=>ee.selectedSource),D=await Promise.all(_.map(async ee=>{var J,ae;return(ae=(J=await Ei(e,ee,A))==null?void 0:J.toCanonicalString())!=null?ae:ee}));o.values.xLabelsKey=uC(C,D);const O=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(ee=>ee.selectedSource),I=O.join(", ");o.values[I]=uC(C,O);const $=t.components.y.selectorStates.map(ee=>ee.selectedSource),Q=await Promise.all($.map(async ee=>{var J,ae;return(ae=(J=await Ei(e,ee,A))==null?void 0:J.toCanonicalString())!=null?ae:ee}));return o.values.yLabelsKey=uC(C,Q),o}async createChartSettings(e,t){var n;const r=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!r)throw Error("Value column is not valid");const a=Sn(r);if(!or(a))throw Error("Value column is not valid");const i=[r],o={type:"column",value:r,label:await Oa(e,r,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:O})=>Sn(O)).filter(O=>ky(O)).map(O=>O.toCanonicalString()).join(", "),A=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:O})=>Sn(O)).filter(O=>ky(O)).map(O=>O.toCanonicalString()).join(", "),h=await Promise.all(t.components.facetBy.selectorStates.map(async O=>{var I,$;return{type:"column",value:($=(I=await Ei(e,O.selectedSource,i))==null?void 0:I.toCanonicalString())!=null?$:O.selectedSource}})),m=await Promise.all(t.components.xGroupBy.selectorStates.map(async O=>({type:"column",label:await Oa(e,O.selectedSource,i),value:O.selectedSource}))),g=await Promise.all(t.components.yGroupBy.selectorStates.map(async O=>({type:"column",label:await Oa(e,O.selectedSource,i),value:O.selectedSource}))),b=await e.pFrameProvider.getColumnSpecById(a),C=await Promise.all(t.components.annotationsX.selectorStates.map(async O=>{var I,$;const Q=O.selectedSource,ee=Sn(Q),J=or(ee)?await e.pFrameProvider.getColumnSpecById(ee):($=(I=b==null?void 0:b.axesSpec)==null?void 0:I.find(ae=>hi.fromAxisSpec(ae).toCanonicalString()===Q))!=null?$:null;return{axis:"x",valueColumn:{type:"column",value:Q,label:await Oa(e,Q,i)},type:Jx(J)?"discrete":"continuous"}})),x=await Promise.all(t.components.annotationsY.selectorStates.map(async O=>{var I,$;const Q=O.selectedSource,ee=Sn(Q),J=or(ee)?await e.pFrameProvider.getColumnSpecById(ee):($=(I=b==null?void 0:b.axesSpec)==null?void 0:I.find(ae=>hi.fromAxisSpec(ae).toCanonicalString()===Q))!=null?$:null;return{axis:"y",valueColumn:{type:"column",value:Q,label:await Oa(e,Q,i)},type:Jx(J)?"discrete":"continuous"}})),k=(await Promise.all(t.components.x.selectorStates.map(O=>Oa(e,O.selectedSource,i)))).join(", "),_=(await Promise.all(t.components.y.selectorStates.map(O=>Oa(e,O.selectedSource,i)))).join(", "),D=await Promise.all(t.components.tooltipContent.selectorStates.map(async O=>{var I,$;const Q=O.selectedSource;return{type:"column",label:await Oa(e,Q,i)||Q,value:Q,valueLabels:($=(I=await Ei(e,Q,i))==null?void 0:I.toCanonicalString())!=null?$:Q}}));return{type:"heatmap",valueColumn:o,valueType:Jx(b)?"discrete":"continuous",xColumn:{type:"column",value:c,label:k,valueLabels:"xLabelsKey"},yColumn:{type:"column",value:A,label:_,valueLabels:"yLabelsKey"},facetBy:h,xGroupBy:m,yGroupBy:g,annotations:[...C,...x],tooltips:{show:!0,content:D}}}},bne={type:"scatterplot",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},shape:{type:"simple",selectorStates:[]},size:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Ene=class extends Mv{constructor(){super({x:new nr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new nr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new nr({componentName:"grouping",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),shape:new nr({componentName:"shape",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),size:new nr({componentName:"size",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),tooltipContent:new nr({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),label:new nr({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["x","y"]}async getMustBeConsumedAxes(e,t){if(!t.components.x.selectorStates.length||!t.components.y.selectorStates.length)return new Set;const n=t.components.x.selectorStates[0].selectedSource,r=t.components.y.selectorStates[0].selectedSource,a=await e.pFrameProvider.getColumnSpecById(Sn(n)),i=await e.pFrameProvider.getColumnSpecById(Sn(r));if(!a||!i)return new Set;const o=a.axesSpec.map(A=>hi.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>hi.fromAxisSpec(A).toCanonicalString()),c=o.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!o.some(h=>h===A));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("X or Y column is not valid");const s=Sn(i),c=Sn(o),f={type:"columns",id:(a=Tp(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=X1(A),m=A.map(O=>Sn(O.selectedSource)).filter(or),g=[s,c].filter(or).map(O=>O.toCanonicalString());if(g.length===0)throw Error("One of X and Y should be a column");const b=[s,c,...m],C=[],x=[[],[]],k=[];A.forEach(({fixedAxes:O})=>{x.push((O??[]).map(({axisIdx:I,axisValue:$})=>({idx:I,value:$})))});const _=[t.components.grouping,t.components.size,t.components.shape,t.components.tooltipContent,t.components.facetBy,t.components.label];for(const O of _)for(const{selectedSource:I,fixedAxes:$}of O.selectorStates){C.push(Sn(I)),k.push(($??[]).map(({axisIdx:ee,axisValue:J})=>({idx:ee,value:J})));const Q=await Ei(e,I,g);Q&&C.push(Q)}const D=await e.pFrameProvider.getTableOuterJoin(b,C,h,!1,x,k);return[...b,...C].forEach(O=>{const I=O.toCanonicalString();f.values[I]=or(O)?D.columnsData[I]:D.axesData[I]}),f.values.key=f.values[Object.keys(f.values)[0]].map((O,I)=>I),f}async createChartSettings(e,t){var n,r,a,i;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=o?Sn(o):null,f=s?Sn(s):null;if(!o||!s||!c||!f||!or(c)&&!or(f))throw Error("Empty or invalid required data");const A=[c,f].filter(or).map(D=>D.toCanonicalString()),h={type:"column",value:o,label:await Oa(e,o,A)},m={type:"column",value:s,label:await Oa(e,s,A)},g={type:"column",value:"key"},b=await Promise.all(t.components.facetBy.selectorStates.map(async D=>{var O,I;return{type:"column",value:(I=(O=await Ei(e,D.selectedSource,A))==null?void 0:O.toCanonicalString())!=null?I:D.selectedSource}})),C=Ir.uniq([...t.components.grouping.selectorStates.map(D=>D.selectedSource),...t.components.size.selectorStates.map(D=>D.selectedSource),...t.components.shape.selectorStates.map(D=>D.selectedSource)]),x=await Promise.all(C.map(async D=>{var O,I;return{type:"column",label:await Oa(e,D,A)||D,value:D,valueLabels:(I=(O=await Ei(e,D,A))==null?void 0:O.toCanonicalString())!=null?I:D}})),k=await Promise.all(t.components.tooltipContent.selectorStates.map(async D=>{var O,I;const $=D.selectedSource;return{type:"column",label:await Oa(e,$,A)||$,value:$,valueLabels:(I=(O=await Ei(e,$,A))==null?void 0:O.toCanonicalString())!=null?I:$}}));let _;if(t.components.label.selectorStates.length){const D=t.components.label.selectorStates[0].selectedSource;_={type:"column",value:D,label:await Oa(e,D,A),valueLabels:(i=(a=await Ei(e,D,A))==null?void 0:a.toCanonicalString())!=null?i:D}}return{type:"scatterplot",x:h,y:m,keyColumn:g,facetBy:b,grouping:x,label:_,tooltips:{show:!0,content:k}}}},xne={type:"scatterplot-umap",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Sne=class extends Mv{constructor(){super({x:new nr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new nr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new nr({componentName:"grouping",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),tooltipContent:new nr({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),label:new nr({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["x","y"]}async getMustBeConsumedAxes(e,t){if(!t.components.x.selectorStates.length||!t.components.y.selectorStates.length)return new Set;const n=t.components.x.selectorStates[0].selectedSource,r=t.components.y.selectorStates[0].selectedSource,a=await e.pFrameProvider.getColumnSpecById(Sn(n)),i=await e.pFrameProvider.getColumnSpecById(Sn(r));if(!a||!i)return new Set;const o=a.axesSpec.map(A=>hi.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>hi.fromAxisSpec(A).toCanonicalString()),c=o.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!o.some(h=>h===A));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("X or Y column is not valid");const s=Sn(i),c=Sn(o);if(!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=Tp(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=X1(A),m=A.map(O=>Sn(O.selectedSource)).filter(or),g=[s,c].filter(or).map(O=>O.toCanonicalString());if(g.length===0)throw Error("One of X and Y should be a column");const b=[s,c,...m],C=[],x=[[],[]],k=[];A.forEach(({fixedAxes:O})=>{x.push((O??[]).map(({axisIdx:I,axisValue:$})=>({idx:I,value:$})))});const _=[t.components.grouping,t.components.facetBy,t.components.tooltipContent,t.components.label];for(const O of _)for(const{selectedSource:I,fixedAxes:$}of O.selectorStates){C.push(Sn(I)),k.push(($??[]).map(({axisIdx:ee,axisValue:J})=>({idx:ee,value:J})));const Q=await Ei(e,I,g);Q&&C.push(Q)}const D=await e.pFrameProvider.getTableOuterJoin(b,C,h,!1,x,k);return[...b,...C].forEach(O=>{const I=O.toCanonicalString();f.values[I]=or(O)?D.columnsData[I]:D.axesData[I]}),f.values.key=f.values[Object.keys(f.values)[0]].map((O,I)=>I),f}async createChartSettings(e,t){var n,r,a,i;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=o?Sn(o):null,f=s?Sn(s):null;if(!o||!s||!c||!f||!or(c)&&!or(f))throw Error("Empty or invalid required data");const A=[c,f].filter(or).map(_=>_.toCanonicalString()),h={type:"column",value:o,label:await Oa(e,o,A)},m={type:"column",value:s,label:await Oa(e,s,A)},g={type:"column",value:"key"},b=await Promise.all(t.components.facetBy.selectorStates.map(async _=>{var D,O;return{type:"column",value:(O=(D=await Ei(e,_.selectedSource,A))==null?void 0:D.toCanonicalString())!=null?O:_.selectedSource}})),C=await Promise.all(t.components.grouping.selectorStates.map(async _=>{var D,O;const I=_.selectedSource;return{type:"column",label:await Oa(e,I,A)||I,value:I,valueLabels:(O=(D=await Ei(e,I,A))==null?void 0:D.toCanonicalString())!=null?O:I}})),x=await Promise.all(t.components.tooltipContent.selectorStates.map(async _=>{var D,O;const I=_.selectedSource;return{type:"column",label:await Oa(e,I,A)||I,value:I,valueLabels:(O=(D=await Ei(e,I,A))==null?void 0:D.toCanonicalString())!=null?O:I}}));let k;if(t.components.label.selectorStates.length){const _=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:_,label:await Oa(e,_,A),valueLabels:(i=(a=await Ei(e,_,A))==null?void 0:a.toCanonicalString())!=null?i:_}}return{type:"scatterplot-umap",x:h,y:m,keyColumn:g,facetBy:b,grouping:C,label:k,tooltips:{show:!0,content:x}}}},qx="pl7.app/dendrogram/nodeId",eS="id",Bne={type:"dendro",components:{value:{type:"simple",selectorStates:[]},height:{type:"simple",selectorStates:[]},labels:{type:"simple",selectorStates:[]},tableContent:{type:"simple",selectorStates:[]},nodeColor:{type:"simple",selectorStates:[]},nodeShape:{type:"simple",selectorStates:[]},nodeSize:{type:"simple",selectorStates:[]},lineColor:{type:"simple",selectorStates:[]},heatmapAnnotation:{type:"simple",selectorStates:[]},heatmapForSequence:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},heatmapAxis:{type:"simple",selectorStates:[]},heatmapGroup:{type:"simple",selectorStates:[]}},dividedAxes:{}},kne=class extends Mv{constructor(){super({value:new nr({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{isDataComponent:!0,columnsAllowed:!0,required:!0,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),height:new nr({componentName:"height",allowedTypes:["Int","Long","Double","Float"],annotations:{"pl7.app/dendrogram/isDistance":"true"},parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),labels:new nr({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tableContent:new nr({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0,columnsWithExtraAxesAllowed:!1}}),nodeShape:new nr({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeSize:new nr({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeColor:new nr({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),lineColor:new nr({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapForSequence:new nr({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),heatmapAnnotation:new nr({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapAxis:new nr({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapGroup:new nr({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})}),this.ignoredOptionIdNames=[qx]}readyDataInputs(e){return e.components.value.selectorStates.length>0}async createTableData(e,t){var n;const r={},a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,i=Sn(a);if(!a||!or(i))throw Error("Value column is not valid");const o=X1([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),s=[...t.components.filters.selectorStates.map(x=>Sn(x.selectedSource)),...t.components.tabBy.selectorStates.map(x=>Sn(x.selectedSource))].filter(or),c=[a],f=[],A=[],h=[t.components.value],m=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],g={};for(const x of h)for(const{selectedSource:k}of x.selectorStates){const _=await Ei(e,k,c),D=_??Sn(k);g[D.toCanonicalString()]=k,f.push(D)}for(const x of m)for(const{selectedSource:k}of x.selectorStates){const _=await Ei(e,k,c),D=_??Sn(k);g[k]=D.toCanonicalString(),A.push(D)}const b=await e.pFrameProvider.getTableOuterJoin([...f,...s],A,o,!1);for(const x of[...f,...A]){const k=x.toCanonicalString(),_=g[x.toCanonicalString()];r[_]={data:or(x)?b.columnsData[k]:b.axesData[k],spec:or(x)?b.columnSpecs[k]:b.axesSpecs[k],label:await Oa(e,_,c)}}const C=Object.keys(b.axesData).find(x=>{var k;return((k=Sn(x))==null?void 0:k.name)===qx});return C?r[eS]={data:b.axesData[C],spec:{kind:"PColumn",valueType:"Int",name:"Node id"},label:"Node id"}:console.warn("Missed node id axis in data column"),r}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,s=Sn(i),c=o?Sn(o):null;if(!i||!or(s))throw Error("Value column is not valid");const f={type:"columns",id:(a=Tp(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=X1(A),m=A.map($=>Sn($.selectedSource)).filter(or),g=[s,c].filter(or).map($=>$.toCanonicalString()),b=[],C=[],x=[],k=[],_=[t.components.value,t.components.height,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor,t.components.heatmapAnnotation,t.components.heatmapForSequence],D=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const $ of _)for(const{selectedSource:Q,fixedAxes:ee}of $.selectorStates){b.push(Sn(Q)),x.push((ee??[]).map(({axisIdx:ae,axisValue:U})=>({idx:ae,value:U})));const J=await Ei(e,Q,g);J&&b.push(J)}A.forEach(({fixedAxes:$})=>{x.push(($??[]).map(({axisIdx:Q,axisValue:ee})=>({idx:Q,value:ee})))});for(const $ of D)for(const{selectedSource:Q,fixedAxes:ee}of $.selectorStates){C.push(Sn(Q)),k.push((ee??[]).map(({axisIdx:ae,axisValue:U})=>({idx:ae,value:U})));const J=await Ei(e,Q,g);J&&C.push(J)}const O=await e.pFrameProvider.getTableOuterJoin([...b,...m],C,h,!1,x,k);[...b,...C].forEach($=>{const Q=$.toCanonicalString(),ee=or($)?O.columnsData[Q]:O.axesData[Q];f.values[Q]=[],f.values[Q]=ee});const I=Object.keys(O.axesData).find($=>{var Q;return((Q=Sn($))==null?void 0:Q.name)===qx});return I?f.values[eS]=O.axesData[I]:console.warn("Missed node id axis in data column"),f}async createChartSettings(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,o=Sn(i);if(!i||!or(o))throw Error("Data column is not valid");const s=[i],c={type:"column",value:eS},f={type:"column",value:i},A=t.components.height.selectorStates.length?{type:"column",value:t.components.height.selectorStates[0].selectedSource}:void 0,h=t.components.labels.selectorStates.length?{type:"column",value:t.components.labels.selectorStates[0].selectedSource}:void 0,m={};if(t.components.nodeColor.selectorStates.length){const x=t.components.nodeColor.selectorStates[0].selectedSource;m.nodeColor={columnName:{type:"column",value:x,label:await Oa(e,x,s)}}}if(t.components.nodeShape.selectorStates.length){const x=t.components.nodeShape.selectorStates[0].selectedSource;m.nodeShape={columnName:{type:"column",value:x,label:await Oa(e,x,s)}}}if(t.components.nodeSize.selectorStates.length){const x=t.components.nodeSize.selectorStates[0].selectedSource;m.nodeSize={columnName:{type:"column",value:x,label:await Oa(e,x,s)}}}if(t.components.lineColor.selectorStates.length){const x=t.components.lineColor.selectorStates[0].selectedSource;m.lineColor={columnName:{type:"column",value:x,label:await Oa(e,x,s)}}}let g,b,C;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const x=t.components.heatmapAnnotation.selectorStates[0].selectedSource;g={type:"column",value:x,label:await Oa(e,x,[]),valueLabels:(r=await Ei(e,x,[]))==null?void 0:r.toCanonicalString()};const k=t.components.heatmapAxis.selectorStates[0].selectedSource;b={type:"column",value:k,label:await Oa(e,k,[x]),valueLabels:(a=await Ei(e,k,[x]))==null?void 0:a.toCanonicalString()},C=await Promise.all(t.components.heatmapGroup.selectorStates.map(async _=>{var D;return{type:"column",value:_.selectedSource,label:await Oa(e,_.selectedSource,[x]),valueLabels:(D=await Ei(e,_.selectedSource,[x]))==null?void 0:D.toCanonicalString()}}))}else if(t.components.heatmapForSequence.selectorStates.length){const x=t.components.heatmapForSequence.selectorStates[0].selectedSource;g={type:"column",value:x,label:await Oa(e,x,[])}}return{type:"dendro",id:c,parentId:f,height:A,labels:h,aes:m,heatmapAnnotation:g,heatmapAxis:b,heatmapGroup:C}}},cC=1e6;function _y(e,t){return e==="String"?t.data:Array.from(t.data).map(n=>e==="Int"&&n===-2147483648||e==="Long"&&n===BigInt(-9007199254740991)||(e==="Double"||e==="Float")&&isNaN(n)?null:Number(n))}var K1=!1,U8t=100,Tne=class{constructor(e,t){this.pframeHandle=e,this.pframeDriver=t}async isColumnExisted(e){return!!await this.getColumnSpecById(e)}async getSingleColumnData(e,t=[]){if(!await this.isColumnExisted(e))return{axesData:{},data:[]};try{const n=Date.now(),r=await this.pframeDriver.calculateTableData(this.pframeHandle,{src:{type:"column",column:e.name},filters:t,sorting:[]}),a=r.filter(o=>o.spec.type==="axis"),i=r.filter(o=>o.spec.type==="column");return{axesData:a.reduce((o,s)=>{const c=hi.fromAxisSpec(s.spec.spec);return o[c.toCanonicalString()]=_y(c.type,s.data),o},{}),data:i.length?_y(e.type,i[0].data):[]}}catch(n){throw console.error("PFrame: calculateTableData error"),n}}async getColumnUniqueValues(e,t=[],n=!1){if(!await this.isColumnExisted(e))return[];const r={columnId:e.name,filters:t,limit:cC};try{const a=Date.now(),i=await this.pframeDriver.getUniqueValues(this.pframeHandle,r);return i.overflow&&console.warn(`More than ${cC} values for ${e.name} column`),_y(e.type,i.values).map(String)}catch(a){throw console.error("PFrame: getUniqueValues for column error"),a}}async getAxisUniqueValues(e,t,n=[]){const r=t.filter(or),a=await Promise.all(r.map(s=>this.getColumnSpecById(s))),i=e.toCanonicalString(),o=r.filter((s,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(A=>hi.fromAxisSpec(A).toCanonicalString()===i)});if(o.length===0)return[];try{const s=Date.now(),c=await Promise.all(o.map(f=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:f.name,axis:e.toPFrameId(),filters:n,limit:cC})));return c.forEach((f,A)=>{f.overflow&&console.warn(`More than ${cC} values for ${o[A].name} column`)}),Ir.uniq(Ir.flatten(c.map(f=>_y(e.type,f.values).map(String))))}catch(s){throw console.error("PFrame: getUniqueValues for axis error",s),s}}async getTableOuterJoin(e,t,n=[],r=!0,a=[],i=[]){const o=e.filter(or),s=t.filter(or),c={src:{type:"outer",primary:{type:r?"inner":"full",entries:o.map((f,A)=>{var h;const m=(h=a[A])==null?void 0:h.map(g=>({type:"constant",axisIndex:g.idx,constant:g.value})).filter(g=>g.constant!==void 0);return m!=null&&m.length?{type:"slicedColumn",newId:f.name,column:f.name,axisFilters:m}:{type:"column",column:f.name}})},secondary:s.map((f,A)=>{var h;const m=(h=i[A])==null?void 0:h.map(g=>({type:"constant",axisIndex:g.idx,constant:g.value})).filter(g=>g.constant!==void 0);return m!=null&&m.length?{type:"slicedColumn",newId:f.name,column:f.name,axisFilters:m}:{type:"column",column:f.name}})},filters:n,sorting:[]};try{const f=Date.now(),A=await this.pframeDriver.calculateTableData(this.pframeHandle,c),h=A.filter(g=>g.spec.type==="axis"),m=A.filter(g=>g.spec.type==="column");return{axesData:h.reduce((g,b)=>{const C=hi.fromAxisSpec(b.spec.spec);return g[C.toCanonicalString()]=_y(C.type,b.data),g},{}),columnsData:m.reduce((g,b)=>{const C=b.spec.spec,x=new By({name:b.spec.id,type:C.valueType});return g[x.toCanonicalString()]=_y(x.type,b.data),g},{}),columnSpecs:m.reduce((g,b)=>{const C=b.spec.spec,x=new By({name:b.spec.id,type:C.valueType});return g[x.toCanonicalString()]=C,g},{}),axesSpecs:h.reduce((g,b)=>{const C=b.spec.spec,x=hi.fromAxisSpec(C);return g[x.toCanonicalString()]=C,g},{})}}catch(f){throw console.error("PFrame: table outer join error"),console.info("error with request: ",c),f}}async getColumnSpecById(e){try{const t=Date.now(),n=await this.pframeDriver.getColumnSpec(this.pframeHandle,e.name);return n??null}catch{return console.error("PFrame: get single column error"),null}}async getColumnAxesIds(e){var t,n;return(n=(t=await this.getColumnSpecById(e))==null?void 0:t.axesSpec.map(r=>hi.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(or(a)){const i=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...i.map(o=>hi.fromAxisSpec(o).toPFrameId()))}return r}async getColumnsList(){return this.pframeDriver.listColumns(this.pframeHandle)}async getColumnsFull(e,t,n,r,a){try{const i={columnFilter:{type:n,name:r,annotationValue:a},compatibleWith:await this.getRequestColumnsFromSelectedSources(e),strictlyCompatible:t},o=Date.now(),s=await this.pframeDriver.findColumns(this.pframeHandle,i),c=[];return s.hits.forEach(f=>{c.push(f)}),c}catch(i){throw console.error("PFrame: findColumns error"),i}}async getColumns(e,t,n,r,a){return(await this.getColumnsFull(e,t,n,r,a)).map(i=>new By({name:i.columnId,type:i.spec.valueType}))}async findColumnBy(e,t,n,r){try{const a={columnFilter:{name:[e],...t?{type:[t]}:{},...n?{annotationValue:n}:{},...r?{domainValue:r}:{}},compatibleWith:[],strictlyCompatible:!1},i=Date.now(),o=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return o.hits.forEach(({columnId:c,spec:f})=>{s.push(new By({name:c,type:f.valueType}))}),s.length>1&&console.warn(`More than 1 column found for ${e}}`),s.length===0?(console.warn(`No columns found for ${e}}`),null):s[0]}catch(a){throw console.error("PFrame: findColumns error"),a}}},_ne=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new Tne(e,t)}},qI={controllers:{discrete:new yne,scatterplot:new Ene,"scatterplot-umap":new Sne,heatmap:new Cne,dendro:new kne,histogram:new vne,bubble:new hne},initialStates:{discrete:gne,scatterplot:bne,"scatterplot-umap":xne,heatmap:wne,dendro:Bne,histogram:mne,bubble:pne}};function fC(e){return qI.controllers[e]}function Pne(e){return qI.initialStates[e]}const Wr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Mne={},Dne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hne(e,t){return d.openBlock(),d.createElementBlock("svg",Dne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25V21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 1C17.5523 1 18 1.44772 18 2C18 2.55228 17.5523 3 17 3C16.4477 3 16 2.55228 16 2C16 1.44772 16.4477 1 17 1ZM15 6.75H16.25L16.25 9H14C13.4477 9 13 9.44771 13 10V12.125V13.25V14V14.75V16V18C13 18.5523 13.4477 19 14 19H16.25L16.25 21.25H15H14.25V22.75H15H19H19.75V21.25H19H17.75V19H20C20.5523 19 21 18.5523 21 18V16V14.75V14V13.25V12.125V10C21 9.44771 20.5523 9 20 9H17.75V6.75H19H19.75V5.25H19H15H14.25V6.75H15ZM16.25 10.5H14.5V12.125V13.25H19.5V12.125V10.5H17.75H16.25ZM14.5 16V14.75H19.5V16V17.5H14.5V16Z",fill:"#07AD3E"},null,-1)]))}const Ine=Wr(Mne,[["render",Hne]]),Lne={},Rne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nne(e,t){return d.openBlock(),d.createElementBlock("svg",Rne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25L6.25 21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.25 7C14.25 5.75736 15.2574 4.75 16.5 4.75C17.7426 4.75 18.75 5.75736 18.75 7C18.75 7.08866 18.7449 7.17613 18.7349 7.26211C19.8671 7.37957 20.75 8.33668 20.75 9.5C20.75 10.6633 19.8671 11.6204 18.7349 11.7379C18.7449 11.8239 18.75 11.9113 18.75 12C18.75 13.2426 17.7426 14.25 16.5 14.25C15.2574 14.25 14.25 13.2426 14.25 12C14.25 11.9113 14.2551 11.8239 14.2651 11.7379C13.1329 11.6204 12.25 10.6633 12.25 9.5C12.25 8.33668 13.1329 7.37957 14.2651 7.26211C14.2551 7.17613 14.25 7.08866 14.25 7ZM16.5 6.25C16.0858 6.25 15.75 6.58579 15.75 7C15.75 7.41421 16.0858 7.75 16.5 7.75C16.9142 7.75 17.25 7.41421 17.25 7C17.25 6.58579 16.9142 6.25 16.5 6.25ZM13.75 9.5C13.75 9.08579 14.0858 8.75 14.5 8.75C14.9142 8.75 15.25 9.08579 15.25 9.5C15.25 9.91421 14.9142 10.25 14.5 10.25C14.0858 10.25 13.75 9.91421 13.75 9.5ZM18.5 8.75C18.0858 8.75 17.75 9.08579 17.75 9.5C17.75 9.91421 18.0858 10.25 18.5 10.25C18.9142 10.25 19.25 9.91421 19.25 9.5C19.25 9.08579 18.9142 8.75 18.5 8.75ZM14.25 18.5C14.25 17.2574 15.2574 16.25 16.5 16.25C17.7426 16.25 18.75 17.2574 18.75 18.5C18.75 19.7426 17.7426 20.75 16.5 20.75C15.2574 20.75 14.25 19.7426 14.25 18.5ZM16.5 17.75C16.0858 17.75 15.75 18.0858 15.75 18.5C15.75 18.9142 16.0858 19.25 16.5 19.25C16.9142 19.25 17.25 18.9142 17.25 18.5C17.25 18.0858 16.9142 17.75 16.5 17.75ZM15.75 12C15.75 11.5858 16.0858 11.25 16.5 11.25C16.9142 11.25 17.25 11.5858 17.25 12C17.25 12.4142 16.9142 12.75 16.5 12.75C16.0858 12.75 15.75 12.4142 15.75 12Z",fill:"#07AD3E"},null,-1)]))}const $ne=Wr(Lne,[["render",Nne]]),Fne={},Vne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function One(e,t){return d.openBlock(),d.createElementBlock("svg",Vne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25L6.25 21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 3C18 3.55228 17.5523 4 17 4C16.4477 4 16 3.55228 16 3C16 2.44772 16.4477 2 17 2C17.5523 2 18 2.44772 18 3ZM17 15C17 15.5523 16.5523 16 16 16C15.4477 16 15 15.5523 15 15C15 14.4477 15.4477 14 16 14C16.5523 14 17 14.4477 17 15ZM18 17.5C18.5523 17.5 19 17.0523 19 16.5C19 15.9477 18.5523 15.5 18 15.5C17.4477 15.5 17 15.9477 17 16.5C17 17.0523 17.4477 17.5 18 17.5ZM17 6.5C17 7.05228 16.5523 7.5 16 7.5C15.4477 7.5 15 7.05228 15 6.5C15 5.94772 15.4477 5.5 16 5.5C16.5523 5.5 17 5.94772 17 6.5ZM18 9.5C18.5523 9.5 19 9.05228 19 8.5C19 7.94772 18.5523 7.5 18 7.5C17.4477 7.5 17 7.94772 17 8.5C17 9.05228 17.4477 9.5 18 9.5ZM21 15C21 15.5523 20.5523 16 20 16C19.4477 16 19 15.5523 19 15C19 14.4477 19.4477 14 20 14C20.5523 14 21 14.4477 21 15ZM15 13.5C15.5523 13.5 16 13.0523 16 12.5C16 11.9477 15.5523 11.5 15 11.5C14.4477 11.5 14 11.9477 14 12.5C14 13.0523 14.4477 13.5 15 13.5ZM15 16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5C13 15.9477 13.4477 15.5 14 15.5C14.5523 15.5 15 15.9477 15 16.5ZM16 19C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19ZM18 11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11ZM18 14.5C18.5523 14.5 19 14.0523 19 13.5C19 12.9477 18.5523 12.5 18 12.5C17.4477 12.5 17 12.9477 17 13.5C17 14.0523 17.4477 14.5 18 14.5ZM18 20.5C18 21.0523 17.5523 21.5 17 21.5C16.4477 21.5 16 21.0523 16 20.5C16 19.9477 16.4477 19.5 17 19.5C17.5523 19.5 18 19.9477 18 20.5Z",fill:"#07AD3E"},null,-1)]))}const Qne=Wr(Fne,[["render",One]]),zne={},Une={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jne(e,t){return d.openBlock(),d.createElementBlock("svg",Une,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25H21" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M14 11.5C14 12.3284 13.3284 13 12.5 13C11.6716 13 11 12.3284 11 11.5C11 10.6716 11.6716 10 12.5 10C13.3284 10 14 10.6716 14 11.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M14 14.5C14 15.3284 13.3284 16 12.5 16C11.6716 16 11 15.3284 11 14.5C11 13.6716 11.6716 13 12.5 13C13.3284 13 14 13.6716 14 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M14 17.5C14 18.3284 13.3284 19 12.5 19C11.6716 19 11 18.3284 11 17.5C11 16.6716 11.6716 16 12.5 16C13.3284 16 14 16.6716 14 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M9 17.5C9 18.3284 8.32843 19 7.5 19C6.67157 19 6 18.3284 6 17.5C6 16.6716 6.67157 16 7.5 16C8.32843 16 9 16.6716 9 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4C16.3284 4 17 4.67157 17 5.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 17.5C17 18.3284 16.3284 19 15.5 19C14.6716 19 14 18.3284 14 17.5C14 16.6716 14.6716 16 15.5 16C16.3284 16 17 16.6716 17 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M20 17.5C20 18.3284 19.3284 19 18.5 19C17.6716 19 17 18.3284 17 17.5C17 16.6716 17.6716 16 18.5 16C19.3284 16 20 16.6716 20 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M20 14.5C20 15.3284 19.3284 16 18.5 16C17.6716 16 17 15.3284 17 14.5C17 13.6716 17.6716 13 18.5 13C19.3284 13 20 13.6716 20 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 14.5C17 15.3284 16.3284 16 15.5 16C14.6716 16 14 15.3284 14 14.5C14 13.6716 14.6716 13 15.5 13C16.3284 13 17 13.6716 17 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 11.5C17 12.3284 16.3284 13 15.5 13C14.6716 13 14 12.3284 14 11.5C14 10.6716 14.6716 10 15.5 10C16.3284 10 17 10.6716 17 11.5Z" stroke="#07AD3E" stroke-width="1.5"></path>',18)]))}const Gne=Wr(zne,[["render",jne]]),Yne={},Wne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xne(e,t){return d.openBlock(),d.createElementBlock("svg",Wne,t[0]||(t[0]=[d.createStaticVNode('<path d="M18 3C18 3.55228 17.5523 4 17 4C16.4477 4 16 3.55228 16 3C16 2.44772 16.4477 2 17 2C17.5523 2 18 2.44772 18 3Z" fill="#07AD3E"></path><path d="M17 15C17 15.5523 16.5523 16 16 16C15.4477 16 15 15.5523 15 15C15 14.4477 15.4477 14 16 14C16.5523 14 17 14.4477 17 15Z" fill="#07AD3E"></path><path d="M18 17.5C18.5523 17.5 19 17.0523 19 16.5C19 15.9477 18.5523 15.5 18 15.5C17.4477 15.5 17 15.9477 17 16.5C17 17.0523 17.4477 17.5 18 17.5Z" fill="#07AD3E"></path><path d="M17 6.5C17 7.05228 16.5523 7.5 16 7.5C15.4477 7.5 15 7.05228 15 6.5C15 5.94772 15.4477 5.5 16 5.5C16.5523 5.5 17 5.94772 17 6.5Z" fill="#07AD3E"></path><path d="M18 9.5C18.5523 9.5 19 9.05228 19 8.5C19 7.94772 18.5523 7.5 18 7.5C17.4477 7.5 17 7.94772 17 8.5C17 9.05228 17.4477 9.5 18 9.5Z" fill="#07AD3E"></path><path d="M21 15C21 15.5523 20.5523 16 20 16C19.4477 16 19 15.5523 19 15C19 14.4477 19.4477 14 20 14C20.5523 14 21 14.4477 21 15Z" fill="#07AD3E"></path><path d="M15 13.5C15.5523 13.5 16 13.0523 16 12.5C16 11.9477 15.5523 11.5 15 11.5C14.4477 11.5 14 11.9477 14 12.5C14 13.0523 14.4477 13.5 15 13.5Z" fill="#07AD3E"></path><path d="M15 16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5C13 15.9477 13.4477 15.5 14 15.5C14.5523 15.5 15 15.9477 15 16.5Z" fill="#07AD3E"></path><path d="M16 19C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19Z" fill="#07AD3E"></path><path d="M18 11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11Z" fill="#07AD3E"></path><path d="M18 14.5C18.5523 14.5 19 14.0523 19 13.5C19 12.9477 18.5523 12.5 18 12.5C17.4477 12.5 17 12.9477 17 13.5C17 14.0523 17.4477 14.5 18 14.5Z" fill="#07AD3E"></path><path d="M18 20.5C18 21.0523 17.5523 21.5 17 21.5C16.4477 21.5 16 21.0523 16 20.5C16 19.9477 16.4477 19.5 17 19.5C17.5523 19.5 18 19.9477 18 20.5Z" fill="#07AD3E"></path><path d="M8 3C8 2.44772 7.55228 2 7 2C6.44772 2 6 2.44772 6 3C6 3.55228 6.44772 4 7 4C7.55228 4 8 3.55228 8 3Z" fill="#110529"></path><path d="M6 4.5C6.55228 4.5 7 4.94772 7 5.5C7 6.05228 6.55228 6.5 6 6.5C5.44772 6.5 5 6.05228 5 5.5C5 4.94772 5.44772 4.5 6 4.5Z" fill="#110529"></path><path d="M5 7C5 6.44772 4.55228 6 4 6C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8C4.55228 8 5 7.55228 5 7Z" fill="#110529"></path><path d="M8 6C8.55228 6 9 6.44772 9 7C9 7.55228 8.55228 8 8 8C7.44772 8 7 7.55228 7 7C7 6.44772 7.44772 6 8 6Z" fill="#110529"></path><path d="M7 8.5C7 7.94772 6.55228 7.5 6 7.5C5.44772 7.5 5 7.94772 5 8.5C5 9.05228 5.44772 9.5 6 9.5C6.55228 9.5 7 9.05228 7 8.5Z" fill="#110529"></path><path d="M8 20.5C8 19.9477 7.55228 19.5 7 19.5C6.44772 19.5 6 19.9477 6 20.5C6 21.0523 6.44772 21.5 7 21.5C7.55228 21.5 8 21.0523 8 20.5Z" fill="#110529"></path><path d="M7 17C7 16.4477 6.55228 16 6 16C5.44772 16 5 16.4477 5 17C5 17.5523 5.44772 18 6 18C6.55228 18 7 17.5523 7 17Z" fill="#110529"></path><path d="M8 14C8.55228 14 9 14.4477 9 15C9 15.5523 8.55228 16 8 16C7.44772 16 7 15.5523 7 15C7 14.4477 7.44772 14 8 14Z" fill="#110529"></path><path d="M11 8.5C11 7.94772 10.5523 7.5 10 7.5C9.44772 7.5 9 7.94772 9 8.5C9 9.05228 9.44772 9.5 10 9.5C10.5523 9.5 11 9.05228 11 8.5Z" fill="#110529"></path><path d="M5 10C5.55228 10 6 10.4477 6 11C6 11.5523 5.55228 12 5 12C4.44772 12 4 11.5523 4 11C4 10.4477 4.44772 10 5 10Z" fill="#110529"></path><path d="M8 12.5C8 11.9477 7.55228 11.5 7 11.5C6.44772 11.5 6 11.9477 6 12.5C6 13.0523 6.44772 13.5 7 13.5C7.55228 13.5 8 13.0523 8 12.5Z" fill="#110529"></path><path d="M8 9C8.55228 9 9 9.44772 9 10C9 10.5523 8.55228 11 8 11C7.44772 11 7 10.5523 7 10C7 9.44772 7.44772 9 8 9Z" fill="#110529"></path>',24)]))}const Kne=Wr(Yne,[["render",Xne]]),Zne={},Jne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qne(e,t){return d.openBlock(),d.createElementBlock("svg",Jne,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40827 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M16.1603 11.6035C16.5892 12.0178 17.0904 12.5021 17.5 13.1017C17.9096 12.5021 18.4108 12.0178 18.8397 11.6035C18.8575 11.5863 18.8751 11.5692 18.8927 11.5522C19.7742 10.6998 20.25 10.1824 20.25 9.5C20.25 8.81759 19.7742 8.30021 18.8927 7.4478C18.8751 7.43083 18.8575 7.41374 18.8397 7.39653C18.4108 6.98221 17.9096 6.49792 17.5 5.89827C17.0904 6.49792 16.5892 6.98221 16.1603 7.39653C16.1425 7.41374 16.1249 7.43083 16.1073 7.4478C15.2258 8.30021 14.75 8.81759 14.75 9.5C14.75 10.1824 15.2258 10.6998 16.1073 11.5522C16.1249 11.5692 16.1425 11.5863 16.1603 11.6035Z",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const ere=Wr(Zne,[["render",qne]]),tre={},nre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rre(e,t){return d.openBlock(),d.createElementBlock("svg",nre,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40826 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.25 7C14.25 5.75736 15.2574 4.75 16.5 4.75C17.7426 4.75 18.75 5.75736 18.75 7C18.75 7.08866 18.7449 7.17613 18.7349 7.26211C19.8671 7.37957 20.75 8.33668 20.75 9.5C20.75 10.6633 19.8671 11.6204 18.7349 11.7379C18.7449 11.8239 18.75 11.9113 18.75 12C18.75 13.2426 17.7426 14.25 16.5 14.25C15.2574 14.25 14.25 13.2426 14.25 12C14.25 11.9113 14.2551 11.8239 14.2651 11.7379C13.1329 11.6204 12.25 10.6633 12.25 9.5C12.25 8.33668 13.1329 7.37957 14.2651 7.26211C14.2551 7.17613 14.25 7.08866 14.25 7ZM16.5 6.25C16.0858 6.25 15.75 6.58579 15.75 7C15.75 7.41421 16.0858 7.75 16.5 7.75C16.9142 7.75 17.25 7.41421 17.25 7C17.25 6.58579 16.9142 6.25 16.5 6.25ZM13.75 9.5C13.75 9.08579 14.0858 8.75 14.5 8.75C14.9142 8.75 15.25 9.08579 15.25 9.5C15.25 9.91421 14.9142 10.25 14.5 10.25C14.0858 10.25 13.75 9.91421 13.75 9.5ZM18.5 8.75C18.0858 8.75 17.75 9.08579 17.75 9.5C17.75 9.91421 18.0858 10.25 18.5 10.25C18.9142 10.25 19.25 9.91421 19.25 9.5C19.25 9.08579 18.9142 8.75 18.5 8.75ZM14.25 18.5C14.25 17.2574 15.2574 16.25 16.5 16.25C17.7426 16.25 18.75 17.2574 18.75 18.5C18.75 19.7426 17.7426 20.75 16.5 20.75C15.2574 20.75 14.25 19.7426 14.25 18.5ZM16.5 17.75C16.0858 17.75 15.75 18.0858 15.75 18.5C15.75 18.9142 16.0858 19.25 16.5 19.25C16.9142 19.25 17.25 18.9142 17.25 18.5C17.25 18.0858 16.9142 17.75 16.5 17.75ZM15.75 12C15.75 11.5858 16.0858 11.25 16.5 11.25C16.9142 11.25 17.25 11.5858 17.25 12C17.25 12.4142 16.9142 12.75 16.5 12.75C16.0858 12.75 15.75 12.4142 15.75 12Z",fill:"#07AD3E"},null,-1)]))}const are=Wr(tre,[["render",rre]]),ire={},ore={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lre(e,t){return d.openBlock(),d.createElementBlock("svg",ore,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40827 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M16.1603 11.6035C16.5892 12.0178 17.0904 12.5021 17.5 13.1017C17.9096 12.5021 18.4108 12.0178 18.8397 11.6035C18.8575 11.5863 18.8751 11.5692 18.8927 11.5522C19.7742 10.6998 20.25 10.1824 20.25 9.5C20.25 8.81759 19.7742 8.30021 18.8927 7.4478C18.8751 7.43083 18.8575 7.41374 18.8397 7.39653C18.4108 6.98221 17.9096 6.49792 17.5 5.89827C17.0904 6.49792 16.5892 6.98221 16.1603 7.39653C16.1425 7.41374 16.1249 7.43083 16.1073 7.4478C15.2258 8.30021 14.75 8.81759 14.75 9.5C14.75 10.1824 15.2258 10.6998 16.1073 11.5522C16.1249 11.5692 16.1425 11.5863 16.1603 11.6035Z",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const sre=Wr(ire,[["render",lre]]),ure={},cre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fre(e,t){return d.openBlock(),d.createElementBlock("svg",cre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M7 19L7 10" stroke="#07AD3E" stroke-width="1.5"></path><path d="M11 19L11 14" stroke="#110529" stroke-width="1.5"></path><path d="M15 19L15 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M19 19L19 7" stroke="#110529" stroke-width="1.5"></path>',11)]))}const eL=Wr(ure,[["render",fre]]),dre={},Are={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pre(e,t){return d.openBlock(),d.createElementBlock("svg",Are,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M5.49982 10.5L10.5037 5.49615C10.7829 5.21695 11.2307 5.20204 11.5279 5.46205L14.4718 8.03795C14.7689 8.29796 15.2168 8.28305 15.496 8.00385L20.4998 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M7 14V19" stroke="#110529" stroke-width="1.5"></path><path d="M11 10L11 19" stroke="#110529" stroke-width="1.5"></path><path d="M15 12V19" stroke="#110529" stroke-width="1.5"></path><path d="M19 9L19 19" stroke="#110529" stroke-width="1.5"></path>',12)]))}const tL=Wr(dre,[["render",pre]]),hre={},mre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vre(e,t){return d.openBlock(),d.createElementBlock("svg",mre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M11.25 11V13V16V18C11.25 18.1381 11.1381 18.25 11 18.25H9H7C6.86193 18.25 6.75 18.1381 6.75 18V16V13V11C6.75 10.8619 6.86193 10.75 7 10.75H9H11C11.1381 10.75 11.25 10.8619 11.25 11Z" stroke="#07AD3E" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.75 8V7.25H8.25V8H9.75ZM9.75 14V8H8.25V14H9.75Z" fill="#07AD3E"></path><path d="M19.25 6V9.66667V14.3333V18C19.25 18.1381 19.1381 18.25 19 18.25H17H15C14.8619 18.25 14.75 18.1381 14.75 18V14.3333V9.66667V6C14.75 5.86193 14.8619 5.75 15 5.75H17H19C19.1381 5.75 19.25 5.86193 19.25 6Z" stroke="#110529" stroke-width="1.5" stroke-linecap="round"></path><path d="M17 9V3" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path>',11)]))}const gre=Wr(hre,[["render",vre]]),yre={},wre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cre(e,t){return d.openBlock(),d.createElementBlock("svg",wre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M11 19L11 14" stroke="#110529" stroke-width="1.5"></path><path d="M11 13L11 9" stroke="#07AD3E" stroke-width="1.5"></path><path d="M15 19L15 7" stroke="#110529" stroke-width="1.5"></path><path d="M7 19L7 11" stroke="#110529" stroke-width="1.5"></path><path d="M19 19L19 11" stroke="#110529" stroke-width="1.5"></path><path d="M15 6L15 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M7 10L7 7" stroke="#07AD3E" stroke-width="1.5"></path><path d="M19 10L19 6" stroke="#07AD3E" stroke-width="1.5"></path>',15)]))}const bre=Wr(yre,[["render",Cre]]),Ere={},xre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sre(e,t){return d.openBlock(),d.createElementBlock("svg",xre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M6 17L10.3949 10.1634C10.4567 10.0673 10.5759 10.0253 10.6843 10.0614L16.3157 11.9386C16.4241 11.9747 16.5433 11.9327 16.6051 11.8366L21 5" stroke="#07AD3E" stroke-width="1.5"></path>',8)]))}const nL=Wr(Ere,[["render",Sre]]),Bre={},kre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tre(e,t){return d.openBlock(),d.createElementBlock("svg",kre,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.87166 17.4862C6.72148 18.5589 5.21191 19.25 3 19.25H2.25V20.75H3C5.01 20.75 6.5821 20.2481 7.84779 19.4106C7.78374 19.1173 7.75 18.8126 7.75 18.5C7.75 18.1506 7.79216 17.8111 7.87166 17.4862ZM16.5833 6.12522C17.6721 5.27714 19.0682 4.75 21 4.75H21.75V3.25H21C18.7445 3.25 17.0404 3.882 15.702 4.91089C15.8578 5.18652 15.9838 5.48129 16.0755 5.79079C16.253 5.8903 16.4227 6.00217 16.5833 6.12522ZM3.75 5.5L3.75 4H2.25L2.25 5.5H3.75ZM3.75 8.5V7H2.25L2.25 8.5H3.75ZM3.75 10L3.75 11.5H2.25L2.25 10H3.75ZM3.75 14.5V13H2.25V14.5H3.75ZM3.75 16L3.75 17.5H2.25V16H3.75ZM20.25 6.5V8L21.75 8V6.5H20.25ZM20.25 11V9.5H21.75V11H20.25ZM20.25 12.5V14H21.75V12.5H20.25ZM20.25 17V15.5H21.75V17H20.25ZM20.25 20V18.5H21.75V20H20.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.75 7C9.75 5.75736 10.7574 4.75 12 4.75C13.2426 4.75 14.25 5.75736 14.25 7C14.25 7.08866 14.2449 7.17613 14.2349 7.26211C15.3671 7.37957 16.25 8.33668 16.25 9.5C16.25 10.6633 15.3671 11.6204 14.2349 11.7379C14.2449 11.8239 14.25 11.9113 14.25 12C14.25 13.2426 13.2426 14.25 12 14.25C10.7574 14.25 9.75 13.2426 9.75 12C9.75 11.9113 9.75513 11.8239 9.7651 11.7379C8.63285 11.6204 7.75 10.6633 7.75 9.5C7.75 8.33668 8.63285 7.37957 9.7651 7.26211C9.75513 7.17613 9.75 7.08866 9.75 7ZM12 6.25C11.5858 6.25 11.25 6.58579 11.25 7C11.25 7.41421 11.5858 7.75 12 7.75C12.4142 7.75 12.75 7.41421 12.75 7C12.75 6.58579 12.4142 6.25 12 6.25ZM9.25 9.5C9.25 9.08579 9.58579 8.75 10 8.75C10.4142 8.75 10.75 9.08579 10.75 9.5C10.75 9.91421 10.4142 10.25 10 10.25C9.58579 10.25 9.25 9.91421 9.25 9.5ZM14 8.75C13.5858 8.75 13.25 9.08579 13.25 9.5C13.25 9.91421 13.5858 10.25 14 10.25C14.4142 10.25 14.75 9.91421 14.75 9.5C14.75 9.08579 14.4142 8.75 14 8.75ZM9.75 18.5C9.75 17.2574 10.7574 16.25 12 16.25C13.2426 16.25 14.25 17.2574 14.25 18.5C14.25 19.7426 13.2426 20.75 12 20.75C10.7574 20.75 9.75 19.7426 9.75 18.5ZM12 17.75C11.5858 17.75 11.25 18.0858 11.25 18.5C11.25 18.9142 11.5858 19.25 12 19.25C12.4142 19.25 12.75 18.9142 12.75 18.5C12.75 18.0858 12.4142 17.75 12 17.75ZM11.25 12C11.25 11.5858 11.5858 11.25 12 11.25C12.4142 11.25 12.75 11.5858 12.75 12C12.75 12.4142 12.4142 12.75 12 12.75C11.5858 12.75 11.25 12.4142 11.25 12Z",fill:"#07AD3E"},null,-1)]))}const _re=Wr(Bre,[["render",Tre]]),Pre={},Mre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dre(e,t){return d.openBlock(),d.createElementBlock("svg",Mre,t[0]||(t[0]=[d.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M6.66173 18.3797C5.69642 18.9269 4.51239 19.25 3 19.25H2.25V20.75H3C5.08009 20.75 6.69121 20.2125 7.97909 19.3218C7.45744 19.133 7.00308 18.8038 6.66173 18.3797ZM15.6198 7.03708C15.6306 7.02483 15.6415 7.01261 15.6524 7.00044C16.858 5.65468 18.4693 4.75 21 4.75H21.75V3.25H21C18.0608 3.25 16.0579 4.32325 14.5803 5.94949C15.0122 6.21765 15.3709 6.59244 15.6198 7.03708ZM3.75 5.5L3.75 4H2.25L2.25 5.5H3.75ZM3.75 8.5V7H2.25L2.25 8.5H3.75ZM3.75 10L3.75 11.5H2.25L2.25 10H3.75ZM3.75 14.5V13H2.25V14.5H3.75ZM3.75 16L3.75 17.5H2.25V16H3.75ZM20.25 6.5V8L21.75 8V6.5H20.25ZM20.25 11V9.5H21.75V11H20.25ZM20.25 12.5V14H21.75V12.5H20.25ZM20.25 17V15.5H21.75V17H20.25ZM20.25 20V18.5H21.75V20H20.25Z" fill="#110529"></path><path d="M13 3C13 3.55228 12.5523 4 12 4C11.4477 4 11 3.55228 11 3C11 2.44772 11.4477 2 12 2C12.5523 2 13 2.44772 13 3Z" fill="#07AD3E"></path><path d="M12 15C12 15.5523 11.5523 16 11 16C10.4477 16 10 15.5523 10 15C10 14.4477 10.4477 14 11 14C11.5523 14 12 14.4477 12 15Z" fill="#07AD3E"></path><path d="M13 17.5C13.5523 17.5 14 17.0523 14 16.5C14 15.9477 13.5523 15.5 13 15.5C12.4477 15.5 12 15.9477 12 16.5C12 17.0523 12.4477 17.5 13 17.5Z" fill="#07AD3E"></path><path d="M12 6.5C12 7.05228 11.5523 7.5 11 7.5C10.4477 7.5 10 7.05228 10 6.5C10 5.94772 10.4477 5.5 11 5.5C11.5523 5.5 12 5.94772 12 6.5Z" fill="#07AD3E"></path><path d="M13 9.5C13.5523 9.5 14 9.05228 14 8.5C14 7.94772 13.5523 7.5 13 7.5C12.4477 7.5 12 7.94772 12 8.5C12 9.05228 12.4477 9.5 13 9.5Z" fill="#07AD3E"></path><path d="M16 15C16 15.5523 15.5523 16 15 16C14.4477 16 14 15.5523 14 15C14 14.4477 14.4477 14 15 14C15.5523 14 16 14.4477 16 15Z" fill="#07AD3E"></path><path d="M10 13.5C10.5523 13.5 11 13.0523 11 12.5C11 11.9477 10.5523 11.5 10 11.5C9.44772 11.5 9 11.9477 9 12.5C9 13.0523 9.44772 13.5 10 13.5Z" fill="#07AD3E"></path><path d="M10 16.5C10 17.0523 9.55228 17.5 9 17.5C8.44772 17.5 8 17.0523 8 16.5C8 15.9477 8.44772 15.5 9 15.5C9.55228 15.5 10 15.9477 10 16.5Z" fill="#07AD3E"></path><path d="M11 19C11.5523 19 12 18.5523 12 18C12 17.4477 11.5523 17 11 17C10.4477 17 10 17.4477 10 18C10 18.5523 10.4477 19 11 19Z" fill="#07AD3E"></path><path d="M13 11C13 11.5523 12.5523 12 12 12C11.4477 12 11 11.5523 11 11C11 10.4477 11.4477 10 12 10C12.5523 10 13 10.4477 13 11Z" fill="#07AD3E"></path><path d="M13 14.5C13.5523 14.5 14 14.0523 14 13.5C14 12.9477 13.5523 12.5 13 12.5C12.4477 12.5 12 12.9477 12 13.5C12 14.0523 12.4477 14.5 13 14.5Z" fill="#07AD3E"></path><path d="M13 20.5C13 21.0523 12.5523 21.5 12 21.5C11.4477 21.5 11 21.0523 11 20.5C11 19.9477 11.4477 19.5 12 19.5C12.5523 19.5 13 19.9477 13 20.5Z" fill="#07AD3E"></path>',13)]))}const rL=Wr(Pre,[["render",Dre]]),Hre={},Ire={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lre(e,t){return d.openBlock(),d.createElementBlock("svg",Ire,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5 16.5C13.5556 16.5 10.4444 7.5 19 7.5",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M5 21.25V16.5V11.75M5 21.25H8M5 21.25H2M5 11.75H8M5 11.75H2M5 9.5V8M5 6.5V5M5 3.5V2",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M5 21.25V16.5V11.75M5 21.25H8M5 21.25H2M5 11.75H8M5 11.75H2M5 9.5V8M5 6.5V5M5 3.5V2",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M19 2.75V7.5V12.25M19 2.75H16M19 2.75H22M19 12.25H16M19 12.25H22M19 14.5V16M19 17.5V19M19 20.5V22",stroke:"#110529","stroke-width":"1.5"},null,-1)]))}const Rre=Wr(Hre,[["render",Lre]]),Nre={},$re={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fre(e,t){return d.openBlock(),d.createElementBlock("svg",$re,t[0]||(t[0]=[d.createStaticVNode('<path d="M18 4.5C18 3.94772 17.5523 3.5 17 3.5C16.4477 3.5 16 3.94772 16 4.5C16 5.05228 16.4477 5.5 17 5.5C17.5523 5.5 18 5.05228 18 4.5Z" fill="#07AD3E"></path><path d="M17 18.5C17.5523 18.5 18 18.9477 18 19.5C18 20.0523 17.5523 20.5 17 20.5C16.4477 20.5 16 20.0523 16 19.5C16 18.9477 16.4477 18.5 17 18.5Z" fill="#07AD3E"></path><path d="M16 16.5C16.5523 16.5 17 16.9477 17 17.5C17 18.0523 16.5523 18.5 16 18.5C15.4477 18.5 15 18.0523 15 17.5C15 16.9477 15.4477 16.5 16 16.5Z" fill="#07AD3E"></path><path d="M17 17.5C17 16.9477 17.4477 16.5 18 16.5C18.5523 16.5 19 16.9477 19 17.5C19 18.0523 18.5523 18.5 18 18.5C17.4477 18.5 17 18.0523 17 17.5Z" fill="#07AD3E"></path><path d="M17 14.5C17.5523 14.5 18 14.9477 18 15.5C18 16.0523 17.5523 16.5 17 16.5C16.4477 16.5 16 16.0523 16 15.5C16 14.9477 16.4477 14.5 17 14.5Z" fill="#07AD3E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16 7C16.5523 7 17 7.44772 17 8C17 8.55228 16.5523 9 16 9C15.4477 9 15 8.55228 15 8C15 7.44772 15.4477 7 16 7ZM17 10C17 9.44772 16.5523 9 16 9C15.4477 9 15 9.44772 15 10C15 9.44772 14.5523 9 14 9C13.4477 9 13 9.44772 13 10C13 10.5523 13.4477 11 14 11C14.5523 11 15 10.5523 15 10C15 10.5523 15.4477 11 16 11C15.4477 11 15 11.4477 15 12C15 12.5523 15.4477 13 16 13C16.5523 13 17 12.5523 17 12C17 12.5523 17.4477 13 18 13C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11C18.5523 11 19 10.5523 19 10C19 10.5523 19.4477 11 20 11C20.5523 11 21 10.5523 21 10C21 9.44772 20.5523 9 20 9C19.4477 9 19 9.44772 19 10C19 9.44772 18.5523 9 18 9C18.5523 9 19 8.55228 19 8C19 7.44772 18.5523 7 18 7C17.4477 7 17 7.44772 17 8C17 8.55228 17.4477 9 18 9C17.4477 9 17 9.44772 17 10ZM17 10C17 10.5523 17.4477 11 18 11C17.4477 11 17 11.4477 17 12C17 11.4477 16.5523 11 16 11C16.5523 11 17 10.5523 17 10Z" fill="#07AD3E"></path><path d="M7 5.5C7.55228 5.5 8 5.05228 8 4.5C8 3.94772 7.55228 3.5 7 3.5C6.44772 3.5 6 3.94772 6 4.5C6 5.05228 6.44772 5.5 7 5.5Z" fill="#110529"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8 15C8.55228 15 9 14.5523 9 14C9 14.5523 9.44772 15 10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44772 13 9 13.4477 9 14C9 13.4477 8.55228 13 8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 11.4477 6.55228 11 6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13C5.44772 13 5 13.4477 5 14C5 13.4477 4.55228 13 4 13C3.44772 13 3 13.4477 3 14C3 14.5523 3.44772 15 4 15C4.55228 15 5 14.5523 5 14C5 14.5523 5.44772 15 6 15C5.44772 15 5 15.4477 5 16C5 16.5523 5.44772 17 6 17C6.55228 17 7 16.5523 7 16C7 16.5523 7.44772 17 8 17C8.55228 17 9 16.5523 9 16C9 15.4477 8.55228 15 8 15ZM8 15C7.44772 15 7 15.4477 7 16C7 15.4477 6.55228 15 6 15C6.55228 15 7 14.5523 7 14C7 14.5523 7.44772 15 8 15ZM7 14C7 13.4477 6.55228 13 6 13C6.55228 13 7 12.5523 7 12C7 12.5523 7.44772 13 8 13C7.44772 13 7 13.4477 7 14Z" fill="#110529"></path><path d="M6 7.5C6.55228 7.5 7 7.05228 7 6.5C7 7.05228 7.44772 7.5 8 7.5C8.55228 7.5 9 7.05228 9 6.5C9 5.94772 8.55228 5.5 8 5.5C7.44772 5.5 7 5.94772 7 6.5C7 5.94772 6.55228 5.5 6 5.5C5.44772 5.5 5 5.94772 5 6.5C5 7.05228 5.44772 7.5 6 7.5Z" fill="#110529"></path><path d="M7 9.5C7.55228 9.5 8 9.05228 8 8.5C8 7.94772 7.55228 7.5 7 7.5C6.44772 7.5 6 7.94772 6 8.5C6 9.05228 6.44772 9.5 7 9.5Z" fill="#110529"></path><path d="M8 19.5C8 20.0523 7.55228 20.5 7 20.5C6.44772 20.5 6 20.0523 6 19.5C6 18.9477 6.44772 18.5 7 18.5C7.55228 18.5 8 18.9477 8 19.5Z" fill="#110529"></path>',11)]))}const Vre=Wr(Nre,[["render",Fre]]),Ore={},Qre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zre(e,t){return d.openBlock(),d.createElementBlock("svg",Qre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M20 5C20 5.55228 19.5523 6 19 6C18.4477 6 18 5.55228 18 5C18 4.44772 18.4477 4 19 4C19.5523 4 20 4.44772 20 5Z" fill="#07AD3E"></path><path d="M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z" fill="#07AD3E"></path><path d="M16 17C16.5523 17 17 16.5523 17 16C17 15.4477 16.5523 15 16 15C15.4477 15 15 15.4477 15 16C15 16.5523 15.4477 17 16 17Z" fill="#07AD3E"></path><path d="M13 6C13.5523 6 14 5.55228 14 5C14 4.44772 13.5523 4 13 4C12.4477 4 12 4.44772 12 5C12 5.55228 12.4477 6 13 6Z" fill="#110529"></path><path d="M16 9C16.5523 9 17 8.55228 17 8C17 7.44772 16.5523 7 16 7C15.4477 7 15 7.44772 15 8C15 8.55228 15.4477 9 16 9Z" fill="#110529"></path><path d="M8 17C8.55228 17 9 16.5523 9 16C9 15.4477 8.55228 15 8 15C7.44772 15 7 15.4477 7 16C7 16.5523 7.44772 17 8 17Z" fill="#110529"></path><path d="M20 11C20 11.5523 19.5523 12 19 12C18.4477 12 18 11.5523 18 11C18 10.4477 18.4477 10 19 10C19.5523 10 20 10.4477 20 11Z" fill="#110529"></path><path d="M15 12C15.5523 12 16 11.5523 16 11C16 10.4477 15.5523 10 15 10C14.4477 10 14 10.4477 14 11C14 11.5523 14.4477 12 15 12Z" fill="#110529"></path><path d="M10 13C10 13.5523 9.55228 14 9 14C8.44772 14 8 13.5523 8 13C8 12.4477 8.44772 12 9 12C9.55228 12 10 12.4477 10 13Z" fill="#110529"></path><path d="M11 16C11.5523 16 12 15.5523 12 15C12 14.4477 11.5523 14 11 14C10.4477 14 10 14.4477 10 15C10 15.5523 10.4477 16 11 16Z" fill="#110529"></path><path d="M14 9C14 9.55228 13.5523 10 13 10C12.4477 10 12 9.55228 12 9C12 8.44772 12.4477 8 13 8C13.5523 8 14 8.44772 14 9Z" fill="#110529"></path><path d="M13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z" fill="#110529"></path>',19)]))}const Ure=Wr(Ore,[["render",zre]]),jre={},Gre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yre(e,t){return d.openBlock(),d.createElementBlock("svg",Gre,t[0]||(t[0]=[d.createStaticVNode('<path d="M10 20.5C10 20.7761 10.2239 21 10.5 21H13.5C13.7761 21 14 20.7761 14 20.5V19.3333V18.3333V18V17.5C14 17.2239 13.7761 17 13.5 17H10.5C10.2239 17 10 17.2239 10 17.5V18V18.3333V19.3333V20.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M10 13.5C10 13.7761 10.2239 14 10.5 14H13.5C13.7761 14 14 13.7761 14 13.5V12.3333V11.3333V11V10.5C14 10.2239 13.7761 10 13.5 10H10.5C10.2239 10 10 10.2239 10 10.5V11V11.3333V12.3333V13.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M17 13.5C17 13.7761 17.2239 14 17.5 14H20.5C20.7761 14 21 13.7761 21 13.5V12.3333V11.3333V11V10.5C21 10.2239 20.7761 10 20.5 10H17.5C17.2239 10 17 10.2239 17 10.5V11V11.3333V12.3333V13.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M17 20.5C17 20.7761 17.2239 21 17.5 21H20.5C20.7761 21 21 20.7761 21 20.5V19.3333V18.3333V18V17.5C21 17.2239 20.7761 17 20.5 17H17.5C17.2239 17 17 17.2239 17 17.5V18V18.3333V19.3333V20.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M10 6.5C10 6.77614 10.2239 7 10.5 7H13.5C13.7761 7 14 6.77614 14 6.5V5.33333V4.33333V4V3.5C14 3.22386 13.7761 3 13.5 3H10.5C10.2239 3 10 3.22386 10 3.5V4V4.33333V5.33333V6.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M3 20.5C3 20.7761 3.22386 21 3.5 21H6.5C6.77614 21 7 20.7761 7 20.5V19.3333V18.3333V18V17.5C7 17.2239 6.77614 17 6.5 17H3.5C3.22386 17 3 17.2239 3 17.5V18V18.3333V19.3333V20.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M3 13.5C3 13.7761 3.22386 14 3.5 14H6.5C6.77614 14 7 13.7761 7 13.5V12.3333V11.3333V11V10.5C7 10.2239 6.77614 10 6.5 10H3.5C3.22386 10 3 10.2239 3 10.5V11V11.3333V12.3333V13.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 6.5C17 6.77614 17.2239 7 17.5 7H20.5C20.7761 7 21 6.77614 21 6.5V5.33333V4.33333V4V3.5C21 3.22386 20.7761 3 20.5 3H17.5C17.2239 3 17 3.22386 17 3.5V4V4.33333V5.33333V6.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M3 6.5C3 6.77614 3.22386 7 3.5 7H6.5C6.77614 7 7 6.77614 7 6.5V5.33333V4.33333V4V3.5C7 3.22386 6.77614 3 6.5 3H3.5C3.22386 3 3 3.22386 3 3.5V4V4.33333V5.33333V6.5Z" stroke="#110529" stroke-width="1.5"></path>',9)]))}const aL=Wr(jre,[["render",Yre]]),Wre={},Xre={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Kre(e,t){return d.openBlock(),d.createElementBlock("svg",Xre,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 20.5H21.75V22H2.25V20.5Z",fill:"#110529"},null,-1),d.createElementVNode("path",{d:"M8.91649 19H7.25L10.2842 10H12.2116L15.25 19H13.5835L11.2816 11.8457H11.2142L8.91649 19ZM8.9712 15.4712H13.5162V16.7808H8.9712V15.4712Z",fill:"#07AD3E"},null,-1),d.createElementVNode("path",{d:"M20.4799 8.18631C20.4158 7.77567 20.3273 7.40811 20.2144 7.08365C20.1041 6.75412 19.9707 6.47275 19.8142 6.23954C19.6603 6.00634 19.4832 5.83143 19.2831 5.71483C19.083 5.59316 18.8649 5.53232 18.6289 5.53232C18.2056 5.53232 17.8285 5.74271 17.4975 6.1635C17.1666 6.58428 16.9062 7.20279 16.7163 8.01901C16.529 8.83016 16.4354 9.81876 16.4354 10.9848C16.4354 12.161 16.529 13.1572 16.7163 13.9734C16.9036 14.7896 17.164 15.4106 17.4975 15.8365C17.831 16.2573 18.2184 16.4677 18.6597 16.4677C19.0599 16.4677 19.4063 16.3156 19.6987 16.0114C19.9938 15.7072 20.2208 15.2763 20.3799 14.7186C20.5389 14.1559 20.6185 13.4968 20.6185 12.7414H20.618H18.8021V10.635H22V12.5057C22 13.839 21.8563 14.9924 21.569 15.9658C21.2817 16.9392 20.8866 17.6895 20.3837 18.2167C19.8809 18.7389 19.3036 19 18.652 19C17.926 19 17.2884 18.6781 16.7394 18.0342C16.193 17.3853 15.7658 16.4651 15.4579 15.2738C15.1526 14.0773 15 12.6578 15 11.0152C15 9.75792 15.0898 8.63498 15.2694 7.64639C15.4515 6.6578 15.7055 5.81876 16.0313 5.12928C16.3572 4.43473 16.7394 3.90748 17.1781 3.54753C17.6168 3.18251 18.094 3 18.6097 3C19.0458 3 19.4524 3.12674 19.8296 3.38023C20.2067 3.62864 20.5415 3.98352 20.834 4.44487C21.129 4.90621 21.3714 5.45374 21.5613 6.08745C21.7511 6.72117 21.8756 7.42079 21.9346 8.18631H20.4799Z",fill:"#110529"},null,-1),d.createElementVNode("path",{d:"M2 7V5H9L9 7H6.25V19H4.75V7H2Z",fill:"#110529"},null,-1)]))}const Zre=Wr(Wre,[["render",Kre]]),Py=[{name:"Light green",color:"#99E099"},{name:"Green",color:"#42B842"},{name:"Dark green",color:"#198020"},{name:"Light violet",color:"#C1ADFF"},{name:"Violet",color:"#845CFF"},{name:"Dark violet",color:"#5F31CC"},{name:"Light orange",color:"#FFCB8F"},{name:"Orange",color:"#FF9429"},{name:"Dark orange",color:"#C26A27"},{name:"Light teal",color:"#90E0E0"},{name:"Teal",color:"#27C2C2"},{name:"Dark teal",color:"#068A94"},{name:"Light rose",color:"#FAAAFA"},{name:"Rose",color:"#E553E5"},{name:"Dark rose",color:"#A324B2"},{name:"Light lime",color:"#CBEB67"},{name:"Lime",color:"#95C700"},{name:"Dark lime",color:"#659406"},{name:"Light blue",color:"#99CCFF"},{name:"Blue",color:"#2D93FA"},{name:"Dark blue",color:"#105BCC"},{name:"Light red",color:"#FFADBA"},{name:"Red",color:"#F05670"},{name:"Dark red",color:"#AD3757"},{name:"Light grey",color:"#D3D7E0"},{name:"Grey",color:"#929BAD"},{name:"Dark grey",color:"#5E5E70"},{name:"Black",color:"#110529"},{name:"White",color:"#FFFFFF"},{name:"None",color:"transparent"}],My="#FFFFFF",yo="#110529";Py.reduce((e,t)=>(e[t.color]=t,e),{});const N5=Py.slice(0,-3).map(e=>e.color),Jre=N5.filter((e,t)=>t%3===0),qre=N5.filter((e,t)=>t%3===1),eae=N5.filter((e,t)=>t%3===2),tae=N5.filter((e,t)=>t%3!==2),nae=N5,rae=["#FFF680","#53D788","#36739D","#4A005C"],aae=["#FFF680","#F77E5B","#902B83","#2B125C"],iae=["#DFFADC","#74CFD1","#635AC1","#611347"],oae=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],lae=["#FFEA80","#F07A76","#7535A4","#003752"],sae=["#FFF780","#6CEA90","#6C90F0","#942AAE"],uae=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],cae=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],fae=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],dae=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],Aae=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],iL=["light","bright","dark","paired","triadic"],pae=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],hae=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function tS(e){return iL.includes(e)}const Do={...{light:{title:"Light",colors:Jre},bright:{title:"Bright",colors:qre},dark:{title:"Dark",colors:eae},paired:{title:"Paired",colors:tae},triadic:{title:"Triadic",colors:nae}},...{viridis:{title:"Viridis",colors:rae},magma:{title:"Magma",colors:aae},density:{title:"Density",colors:iae},salinity:{title:"Salinity",colors:oae},sunset:{title:"Sunset",colors:lae},perceptual_rainbow:{title:"Rainbow",colors:sae}},...{spectrum:{title:"Spectrum",colors:uae},teal_red:{title:"Teal-Red",colors:cae},blue_red:{title:"Blue-Red",colors:fae},lime_rose:{title:"Lime-Rose",colors:dae},viridis_magma:{title:"Vir-Mag",colors:Aae}}},oL="light",Z1="salinity",mae="salinity",$5=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],dC="#F0F0F0",P0="21",Dy=["solid","dashed","dotted","dotdash","longdash","twodash"],AC="solid",vae={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}},gae={A:"#cc0100",C:"#0000cc",G:"#ffb300",T:"#027f00",U:"#027f00"},yae={A:"#7fa0f0",R:"#ef1405",N:"#01ff00",D:"#c048bf",C:"#ef8080",Q:"#01ff00",E:"#c048bf",G:"#f09047",H:"#14a4a4",I:"#7fa0f0",L:"#7fa0f0",K:"#ef1405",M:"#7fa0f0",F:"#7fa0f0",P:"#ffff00",S:"#01ff00",T:"#01ff00",W:"#7fa0f0",Y:"#14a4a4",V:"#7fa0f0",B:"#eeeeee",X:"#eeeeee",Z:"#eeeeee"};function Hy(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wae(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nS(e){let t,n,r;e.length!==2?(t=Hy,n=(s,c)=>Hy(e(s),c),r=(s,c)=>e(s)-c):(t=e===Hy||e===wae?e:Cae,n=e,r=e);function a(s,c,f=0,A=s.length){if(f<A){if(t(c,c)!==0)return A;do{const h=f+A>>>1;n(s[h],c)<0?f=h+1:A=h}while(f<A)}return f}function i(s,c,f=0,A=s.length){if(f<A){if(t(c,c)!==0)return A;do{const h=f+A>>>1;n(s[h],c)<=0?f=h+1:A=h}while(f<A)}return f}function o(s,c,f=0,A=s.length){const h=a(s,c,f,A-1);return h>f&&r(s[h-1],c)>-r(s[h],c)?h-1:h}return{left:a,center:o,right:i}}function Cae(){return 0}function lL(e){return e===null?NaN:+e}function*bae(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const sL=nS(Hy).right;nS(lL).center;function Eae(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function xae(e,t){let n=0,r,a=0,i=0;for(let o of e)o!=null&&(o=+o)>=o&&(r=o-a,a+=r/++n,i+=r*(o-a));if(n>1)return i/(n-1)}function uL(e,t){const n=xae(e);return n&&Math.sqrt(n)}function $A(e,t){let n,r;if(t===void 0)for(const a of e)a!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)));else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}class cL extends Map{constructor(t,n=kae){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(fL(this,t))}has(t){return super.has(fL(this,t))}set(t,n){return super.set(Sae(this,t),n)}delete(t){return super.delete(Bae(this,t))}}function fL({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Sae({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Bae({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function kae(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Tae(e){return e}function _ae(e=Hy){if(e===Hy)return dL;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function dL(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Pae=Array.prototype,Mae=Pae.slice;function rS(e){return()=>e}const Dae=Math.sqrt(50),Hae=Math.sqrt(10),Iae=Math.sqrt(2);function pC(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=Dae?10:i>=Hae?5:i>=Iae?2:1;let s,c,f;return a<0?(f=Math.pow(10,-a)/o,s=Math.round(e*f),c=Math.round(t*f),s/f<e&&++s,c/f>t&&--c,f=-f):(f=Math.pow(10,a)*o,s=Math.round(e/f),c=Math.round(t/f),s*f<e&&++s,c*f>t&&--c),c<s&&.5<=n&&n<2?pC(e,t,n*2):[s,c,f]}function hC(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?pC(t,e,n):pC(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let f=0;f<s;++f)c[f]=(i-f)/-o;else for(let f=0;f<s;++f)c[f]=(i-f)*o;else if(o<0)for(let f=0;f<s;++f)c[f]=(a+f)/-o;else for(let f=0;f<s;++f)c[f]=(a+f)*o;return c}function Iy(e,t,n){return t=+t,e=+e,n=+n,pC(e,t,n)[2]}function aS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Iy(t,e,n):Iy(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Lae(e,t,n){let r;for(;;){const a=Iy(e,t,n);if(a===r||a===0||!isFinite(a))return[e,t];a>0?(e=Math.floor(e/a)*a,t=Math.ceil(t/a)*a):a<0&&(e=Math.ceil(e*a)/a,t=Math.floor(t*a)/a),r=a}}function Rae(e){return Math.max(1,Math.ceil(Math.log(Eae(e))/Math.LN2)+1)}function AL(){var e=Tae,t=$A,n=Rae;function r(a){Array.isArray(a)||(a=Array.from(a));var i,o=a.length,s,c,f=new Array(o);for(i=0;i<o;++i)f[i]=e(a[i],i,a);var A=t(f),h=A[0],m=A[1],g=n(f,h,m);if(!Array.isArray(g)){const D=m,O=+g;if(t===$A&&([h,m]=Lae(h,m,O)),g=hC(h,m,O),g[0]<=h&&(c=Iy(h,m,O)),g[g.length-1]>=m)if(D>=m&&t===$A){const I=Iy(h,m,O);isFinite(I)&&(I>0?m=(Math.floor(m/I)+1)*I:I<0&&(m=(Math.ceil(m*-I)+1)/-I))}else g.pop()}for(var b=g.length,C=0,x=b;g[C]<=h;)++C;for(;g[x-1]>m;)--x;(C||x<b)&&(g=g.slice(C,x),b=x-C);var k=new Array(b+1),_;for(i=0;i<=b;++i)_=k[i]=[],_.x0=i>0?g[i-1]:h,_.x1=i<b?g[i]:m;if(isFinite(c)){if(c>0)for(i=0;i<o;++i)(s=f[i])!=null&&h<=s&&s<=m&&k[Math.min(b,Math.floor((s-h)/c))].push(a[i]);else if(c<0){for(i=0;i<o;++i)if((s=f[i])!=null&&h<=s&&s<=m){const D=Math.floor((h-s)*c);k[Math.min(b,D+(g[D]<=s))].push(a[i])}}}else for(i=0;i<o;++i)(s=f[i])!=null&&h<=s&&s<=m&&k[sL(g,s,0,b)].push(a[i]);return k}return r.value=function(a){return arguments.length?(e=typeof a=="function"?a:rS(a),r):e},r.domain=function(a){return arguments.length?(t=typeof a=="function"?a:rS([a[0],a[1]]),r):t},r.thresholds=function(a){return arguments.length?(n=typeof a=="function"?a:rS(Array.isArray(a)?Mae.call(a):a),r):n},r}function Ih(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function mC(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function pL(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?dL:_ae(a);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,A=Math.log(c),h=.5*Math.exp(2*A/3),m=.5*Math.sqrt(A*h*(c-h)/c)*(f-c/2<0?-1:1),g=Math.max(n,Math.floor(t-f*h/c+m)),b=Math.min(r,Math.floor(t+(c-f)*h/c+m));pL(e,t,g,b,a)}const i=e[t];let o=n,s=r;for(F5(e,n,t),a(e[r],i)>0&&F5(e,n,r);o<s;){for(F5(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[n],i)===0?F5(e,n,s):(++s,F5(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function F5(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function hL(e,t,n){if(e=Float64Array.from(bae(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return mC(e);if(t>=1)return Ih(e);var r,a=(r-1)*t,i=Math.floor(a),o=Ih(pL(e,i).subarray(0,i+1)),s=mC(e.subarray(i+1));return o+(s-o)*(a-i)}}function Dp(e,t,n=lL){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function tu(e,t){let n=0,r=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(++n,r+=a);else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function Nae(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function Sc(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function Dv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const mL=Symbol("implicit");function Hl(){var e=new cL,t=[],n=[],r=mL;function a(i){let o=e.get(i);if(o===void 0){if(r!==mL)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new cL;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Hl(t,n).unknown(r)},Dv.apply(a,arguments),a}function V5(){var e=Hl().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,f=0,A=.5;delete e.unknown;function h(){var m=t().length,g=a<r,b=g?a:r,C=g?r:a;i=(C-b)/Math.max(1,m-c+f*2),s&&(i=Math.floor(i)),b+=(C-b-i*(m-c))*A,o=i*(1-c),s&&(b=Math.round(b),o=Math.round(o));var x=Nae(m).map(function(k){return b+i*k});return n(g?x.reverse():x)}return e.domain=function(m){return arguments.length?(t(m),h()):t()},e.range=function(m){return arguments.length?([r,a]=m,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(m){return[r,a]=m,r=+r,a=+a,s=!0,h()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(m){return arguments.length?(s=!!m,h()):s},e.padding=function(m){return arguments.length?(c=Math.min(1,f=+m),h()):c},e.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),h()):c},e.paddingOuter=function(m){return arguments.length?(f=+m,h()):f},e.align=function(m){return arguments.length?(A=Math.max(0,Math.min(1,m)),h()):A},e.copy=function(){return V5(t(),[r,a]).round(s).paddingInner(c).paddingOuter(f).align(A)},Dv.apply(h(),arguments)}function iS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function O5(){}var Q5=.7,vC=1/Q5,Ly="\\s*([+-]?\\d+)\\s*",z5="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",M0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$ae=/^#([0-9a-f]{3,8})$/,Fae=new RegExp(`^rgb\\(${Ly},${Ly},${Ly}\\)$`),Vae=new RegExp(`^rgb\\(${M0},${M0},${M0}\\)$`),Oae=new RegExp(`^rgba\\(${Ly},${Ly},${Ly},${z5}\\)$`),Qae=new RegExp(`^rgba\\(${M0},${M0},${M0},${z5}\\)$`),zae=new RegExp(`^hsl\\(${z5},${M0},${M0}\\)$`),Uae=new RegExp(`^hsla\\(${z5},${M0},${M0},${z5}\\)$`),gL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};iS(O5,Hv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yL,formatHex:yL,formatHex8:jae,formatHsl:Gae,formatRgb:wL,toString:wL});function yL(){return this.rgb().formatHex()}function jae(){return this.rgb().formatHex8()}function Gae(){return SL(this).formatHsl()}function wL(){return this.rgb().formatRgb()}function Hv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?CL(t):n===3?new Md(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gC(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Fae.exec(e))?new Md(t[1],t[2],t[3],1):(t=Vae.exec(e))?new Md(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Oae.exec(e))?gC(t[1],t[2],t[3],t[4]):(t=Qae.exec(e))?gC(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zae.exec(e))?xL(t[1],t[2]/100,t[3]/100,1):(t=Uae.exec(e))?xL(t[1],t[2]/100,t[3]/100,t[4]):gL.hasOwnProperty(e)?CL(gL[e]):e==="transparent"?new Md(NaN,NaN,NaN,0):null}function CL(e){return new Md(e>>16&255,e>>8&255,e&255,1)}function gC(e,t,n,r){return r<=0&&(e=t=n=NaN),new Md(e,t,n,r)}function Yae(e){return e instanceof O5||(e=Hv(e)),e?(e=e.rgb(),new Md(e.r,e.g,e.b,e.opacity)):new Md}function Ry(e,t,n,r){return arguments.length===1?Yae(e):new Md(e,t,n,r??1)}function Md(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}iS(Md,Ry,vL(O5,{brighter(e){return e=e==null?vC:Math.pow(vC,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Q5:Math.pow(Q5,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Md(Iv(this.r),Iv(this.g),Iv(this.b),yC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bL,formatHex:bL,formatHex8:Wae,formatRgb:EL,toString:EL}));function bL(){return`#${Lv(this.r)}${Lv(this.g)}${Lv(this.b)}`}function Wae(){return`#${Lv(this.r)}${Lv(this.g)}${Lv(this.b)}${Lv((isNaN(this.opacity)?1:this.opacity)*255)}`}function EL(){const e=yC(this.opacity);return`${e===1?"rgb(":"rgba("}${Iv(this.r)}, ${Iv(this.g)}, ${Iv(this.b)}${e===1?")":`, ${e})`}`}function yC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Iv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lv(e){return e=Iv(e),(e<16?"0":"")+e.toString(16)}function xL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Hp(e,t,n,r)}function SL(e){if(e instanceof Hp)return new Hp(e.h,e.s,e.l,e.opacity);if(e instanceof O5||(e=Hv(e)),!e)return new Hp;if(e instanceof Hp)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new Hp(o,s,c,e.opacity)}function Xae(e,t,n,r){return arguments.length===1?SL(e):new Hp(e,t,n,r??1)}function Hp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}iS(Hp,Xae,vL(O5,{brighter(e){return e=e==null?vC:Math.pow(vC,e),new Hp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q5:Math.pow(Q5,e),new Hp(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Md(oS(e>=240?e-240:e+120,a,r),oS(e,a,r),oS(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Hp(BL(this.h),wC(this.s),wC(this.l),yC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yC(this.opacity);return`${e===1?"hsl(":"hsla("}${BL(this.h)}, ${wC(this.s)*100}%, ${wC(this.l)*100}%${e===1?")":`, ${e})`}`}}));function BL(e){return e=(e||0)%360,e<0?e+360:e}function wC(e){return Math.max(0,Math.min(1,e||0))}function oS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const lS=e=>()=>e;function Kae(e,t){return function(n){return e+n*t}}function Zae(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Jae(e){return(e=+e)==1?kL:function(t,n){return n-t?Zae(t,n,e):lS(isNaN(t)?n:t)}}function kL(e,t){var n=t-e;return n?Kae(e,n):lS(isNaN(e)?t:e)}const CC=function e(t){var n=Jae(t);function r(a,i){var o=n((a=Ry(a)).r,(i=Ry(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),f=kL(a.opacity,i.opacity);return function(A){return a.r=o(A),a.g=s(A),a.b=c(A),a.opacity=f(A),a+""}}return r.gamma=e,r}(1);function qae(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function eie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function tie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=cS(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function nie(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ip(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function rie(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=cS(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var sS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uS=new RegExp(sS.source,"g");function aie(e){return function(){return e}}function iie(e){return function(t){return e(t)+""}}function TL(e,t){var n=sS.lastIndex=uS.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=sS.exec(e))&&(a=uS.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:Ip(r,a)})),n=uS.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?iie(c[0].x):aie(t):(t=c.length,function(f){for(var A=0,h;A<t;++A)s[(h=c[A]).i]=h.x(f);return s.join("")})}function cS(e,t){var n=typeof t,r;return t==null||n==="boolean"?lS(t):(n==="number"?Ip:n==="string"?(r=Hv(t))?(t=r,CC):TL:t instanceof Hv?CC:t instanceof Date?nie:eie(t)?qae:Array.isArray(t)?tie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?rie:Ip)(e,t)}function oie(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var _L=180/Math.PI,fS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function PL(e,t,n,r,a,i){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*_L,skewX:Math.atan(c)*_L,scaleX:o,scaleY:s}}var bC;function lie(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?fS:PL(t.a,t.b,t.c,t.d,t.e,t.f)}function sie(e){return e==null||(bC||(bC=document.createElementNS("http://www.w3.org/2000/svg","g")),bC.setAttribute("transform",e),!(e=bC.transform.baseVal.consolidate()))?fS:(e=e.matrix,PL(e.a,e.b,e.c,e.d,e.e,e.f))}function ML(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function i(f,A,h,m,g,b){if(f!==h||A!==m){var C=g.push("translate(",null,t,null,n);b.push({i:C-4,x:Ip(f,h)},{i:C-2,x:Ip(A,m)})}else(h||m)&&g.push("translate("+h+t+m+n)}function o(f,A,h,m){f!==A?(f-A>180?A+=360:A-f>180&&(f+=360),m.push({i:h.push(a(h)+"rotate(",null,r)-2,x:Ip(f,A)})):A&&h.push(a(h)+"rotate("+A+r)}function s(f,A,h,m){f!==A?m.push({i:h.push(a(h)+"skewX(",null,r)-2,x:Ip(f,A)}):A&&h.push(a(h)+"skewX("+A+r)}function c(f,A,h,m,g,b){if(f!==h||A!==m){var C=g.push(a(g)+"scale(",null,",",null,")");b.push({i:C-4,x:Ip(f,h)},{i:C-2,x:Ip(A,m)})}else(h!==1||m!==1)&&g.push(a(g)+"scale("+h+","+m+")")}return function(f,A){var h=[],m=[];return f=e(f),A=e(A),i(f.translateX,f.translateY,A.translateX,A.translateY,h,m),o(f.rotate,A.rotate,h,m),s(f.skewX,A.skewX,h,m),c(f.scaleX,f.scaleY,A.scaleX,A.scaleY,h,m),f=A=null,function(g){for(var b=-1,C=m.length,x;++b<C;)h[(x=m[b]).i]=x.x(g);return h.join("")}}}var uie=ML(lie,"px, ","px)","deg)"),cie=ML(sie,", ",")",")"),fie=1e-12;function DL(e){return((e=Math.exp(e))+1/e)/2}function die(e){return((e=Math.exp(e))-1/e)/2}function Aie(e){return((e=Math.exp(2*e))-1)/(e+1)}const pie=function e(t,n,r){function a(i,o){var s=i[0],c=i[1],f=i[2],A=o[0],h=o[1],m=o[2],g=A-s,b=h-c,C=g*g+b*b,x,k;if(C<fie)k=Math.log(m/f)/t,x=function(Q){return[s+Q*g,c+Q*b,f*Math.exp(t*Q*k)]};else{var _=Math.sqrt(C),D=(m*m-f*f+r*C)/(2*f*n*_),O=(m*m-f*f-r*C)/(2*m*n*_),I=Math.log(Math.sqrt(D*D+1)-D),$=Math.log(Math.sqrt(O*O+1)-O);k=($-I)/t,x=function(Q){var ee=Q*k,J=DL(I),ae=f/(n*_)*(J*Aie(t*ee+I)-die(I));return[s+ae*g,c+ae*b,f*J/DL(t*ee+I)]}}return x.duration=k*1e3*t/Math.SQRT2,x}return a.rho=function(i){var o=Math.max(.001,+i),s=o*o,c=s*s;return e(o,s,c)},a}(Math.SQRT2,2,4);function hie(e){return function(){return e}}function dS(e){return+e}var HL=[0,1];function D0(e){return e}function AS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:hie(isNaN(t)?NaN:.5)}function mie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function vie(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=AS(a,r),i=n(o,i)):(r=AS(r,a),i=n(i,o)),function(s){return i(r(s))}}function gie(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=AS(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=sL(e,s,1,r)-1;return i[c](a[c](s))}}function U5(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function EC(){var e=HL,t=HL,n=cS,r,a,i,o=D0,s,c,f;function A(){var m=Math.min(e.length,t.length);return o!==D0&&(o=mie(e[0],e[m-1])),s=m>2?gie:vie,c=f=null,h}function h(m){return m==null||isNaN(m=+m)?i:(c||(c=s(e.map(r),t,n)))(r(o(m)))}return h.invert=function(m){return o(a((f||(f=s(t,e.map(r),Ip)))(m)))},h.domain=function(m){return arguments.length?(e=Array.from(m,dS),A()):e.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),A()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),n=oie,A()},h.clamp=function(m){return arguments.length?(o=m?!0:D0,A()):o!==D0},h.interpolate=function(m){return arguments.length?(n=m,A()):n},h.unknown=function(m){return arguments.length?(i=m,h):i},function(m,g){return r=m,a=g,A()}}function IL(){return EC()(D0,D0)}function yie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xC(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ny(e){return e=xC(Math.abs(e)),e?e[1]:NaN}function wie(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function Cie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var bie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function j5(e){if(!(t=bie.exec(e)))throw new Error("invalid format: "+e);var t;return new pS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}j5.prototype=pS.prototype;function pS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}pS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Eie(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var LL;function xie(e,t){var n=xC(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(LL=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+xC(e,Math.max(0,t+i-1))[0]}function RL(e,t){var n=xC(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const NL={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yie,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>RL(e*100,t),r:RL,s:xie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function $L(e){return e}var FL=Array.prototype.map,VL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Sie(e){var t=e.grouping===void 0||e.thousands===void 0?$L:wie(FL.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?$L:Cie(FL.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(h){h=j5(h);var m=h.fill,g=h.align,b=h.sign,C=h.symbol,x=h.zero,k=h.width,_=h.comma,D=h.precision,O=h.trim,I=h.type;I==="n"?(_=!0,I="g"):NL[I]||(D===void 0&&(D=12),O=!0,I="g"),(x||m==="0"&&g==="=")&&(x=!0,m="0",g="=");var $=C==="$"?n:C==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",Q=C==="$"?r:/[%p]/.test(I)?o:"",ee=NL[I],J=/[defgprs%]/.test(I);D=D===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function ae(U){var G=$,K=Q,Y,X,oe;if(I==="c")K=ee(U)+K,U="";else{U=+U;var me=U<0||1/U<0;if(U=isNaN(U)?c:ee(Math.abs(U),D),O&&(U=Eie(U)),me&&+U==0&&b!=="+"&&(me=!1),G=(me?b==="("?b:s:b==="-"||b==="("?"":b)+G,K=(I==="s"?VL[8+LL/3]:"")+K+(me&&b==="("?")":""),J){for(Y=-1,X=U.length;++Y<X;)if(oe=U.charCodeAt(Y),48>oe||oe>57){K=(oe===46?a+U.slice(Y+1):U.slice(Y))+K,U=U.slice(0,Y);break}}}_&&!x&&(U=t(U,1/0));var re=G.length+U.length+K.length,ge=re<k?new Array(k-re+1).join(m):"";switch(_&&x&&(U=t(ge+U,ge.length?k-K.length:1/0),ge=""),g){case"<":U=G+U+K+ge;break;case"=":U=G+ge+U+K;break;case"^":U=ge.slice(0,re=ge.length>>1)+G+U+K+ge.slice(re);break;default:U=ge+G+U+K;break}return i(U)}return ae.toString=function(){return h+""},ae}function A(h,m){var g=f((h=j5(h),h.type="f",h)),b=Math.max(-8,Math.min(8,Math.floor(Ny(m)/3)))*3,C=Math.pow(10,-b),x=VL[8+b/3];return function(k){return g(C*k)+x}}return{format:f,formatPrefix:A}}var SC,G5,OL;Bie({thousands:",",grouping:[3],currency:["$",""]});function Bie(e){return SC=Sie(e),G5=SC.format,OL=SC.formatPrefix,SC}function kie(e){return Math.max(0,-Ny(Math.abs(e)))}function Tie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ny(t)/3)))*3-Ny(Math.abs(e)))}function _ie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ny(t)-Ny(e))+1}function Pie(e,t,n,r){var a=aS(e,t,n),i;switch(r=j5(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Tie(a,o))&&(r.precision=i),OL(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=_ie(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=kie(a))&&(r.precision=i-(r.type==="%")*2);break}}return G5(r)}function BC(e){var t=e.domain;return e.ticks=function(n){var r=t();return hC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Pie(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],c,f,A=10;for(s<o&&(f=o,o=s,s=f,f=a,a=i,i=f);A-- >0;){if(f=Iy(o,s,n),f===c)return r[a]=o,r[i]=s,t(r);if(f>0)o=Math.floor(o/f)*f,s=Math.ceil(s/f)*f;else if(f<0)o=Math.ceil(o*f)/f,s=Math.floor(s*f)/f;else break;c=f}return e},e}function Da(){var e=IL();return e.copy=function(){return U5(e,Da())},Dv.apply(e,arguments),BC(e)}function J1(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,dS),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return J1(e).unknown(t)},e=arguments.length?Array.from(e,dS):[0,1],BC(n)}function QL(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function zL(e){return Math.log(e)}function UL(e){return Math.exp(e)}function Mie(e){return-Math.log(-e)}function Die(e){return-Math.exp(-e)}function Hie(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Iie(e){return e===10?Hie:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Lie(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function jL(e){return(t,n)=>-e(-t,n)}function Rie(e){const t=e(zL,UL),n=t.domain;let r=10,a,i;function o(){return a=Lie(r),i=Iie(r),n()[0]<0?(a=jL(a),i=jL(i),e(Mie,Die)):e(zL,UL),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let f=c[0],A=c[c.length-1];const h=A<f;h&&([f,A]=[A,f]);let m=a(f),g=a(A),b,C;const x=s==null?10:+s;let k=[];if(!(r%1)&&g-m<x){if(m=Math.floor(m),g=Math.ceil(g),f>0){for(;m<=g;++m)for(b=1;b<r;++b)if(C=m<0?b/i(-m):b*i(m),!(C<f)){if(C>A)break;k.push(C)}}else for(;m<=g;++m)for(b=r-1;b>=1;--b)if(C=m>0?b/i(-m):b*i(m),!(C<f)){if(C>A)break;k.push(C)}k.length*2<x&&(k=hC(f,A,x))}else k=hC(m,g,Math.min(g-m,x)).map(i);return h?k.reverse():k},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=j5(c)).precision==null&&(c.trim=!0),c=G5(c)),s===1/0)return c;const f=Math.max(1,r*s/t.ticks().length);return A=>{let h=A/i(Math.round(a(A)));return h*r<r-.5&&(h*=r),h<=f?c(A):""}},t.nice=()=>n(QL(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Rv(){const e=Rie(EC()).domain([1,10]);return e.copy=()=>U5(e,Rv()).base(e.base()),Dv.apply(e,arguments),e}function GL(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function YL(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Nie(e){var t=1,n=e(GL(t),YL(t));return n.constant=function(r){return arguments.length?e(GL(t=+r),YL(t)):t},BC(n)}function q1(){var e=Nie(EC());return e.copy=function(){return U5(e,q1()).constant(e.constant())},Dv.apply(e,arguments)}function WL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $ie(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Fie(e){return e<0?-e*e:e*e}function Vie(e){var t=e(D0,D0),n=1;function r(){return n===1?e(D0,D0):n===.5?e($ie,Fie):e(WL(n),WL(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},BC(t)}function hS(){var e=Vie(EC());return e.copy=function(){return U5(e,hS()).exponent(e.exponent())},Dv.apply(e,arguments),e}function $y(){return hS.apply(null,arguments).exponent(.5)}const mS=new Date,vS=new Date;function Tu(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let f;do c.push(f=new Date(+i)),t(i,s),e(i);while(f<i&&i<o);return c},a.filter=i=>Tu(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(mS.setTime(+i),vS.setTime(+o),e(mS),e(vS),Math.floor(n(mS,vS))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const kC=Tu(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kC.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Tu(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kC),kC.range;const Lh=1e3,FA=Lh*60,Rh=FA*60,Nh=Rh*24,gS=Nh*7,XL=Nh*30,yS=Nh*365,Fy=Tu(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Lh)},(e,t)=>(t-e)/Lh,e=>e.getUTCSeconds());Fy.range;const wS=Tu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lh)},(e,t)=>{e.setTime(+e+t*FA)},(e,t)=>(t-e)/FA,e=>e.getMinutes());wS.range,Tu(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*FA)},(e,t)=>(t-e)/FA,e=>e.getUTCMinutes()).range;const CS=Tu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lh-e.getMinutes()*FA)},(e,t)=>{e.setTime(+e+t*Rh)},(e,t)=>(t-e)/Rh,e=>e.getHours());CS.range,Tu(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Rh)},(e,t)=>(t-e)/Rh,e=>e.getUTCHours()).range;const Y5=Tu(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*FA)/Nh,e=>e.getDate()-1);Y5.range;const bS=Tu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nh,e=>e.getUTCDate()-1);bS.range,Tu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nh,e=>Math.floor(e/Nh)).range;function Nv(e){return Tu(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*FA)/gS)}const TC=Nv(0),_C=Nv(1),Oie=Nv(2),Qie=Nv(3),Vy=Nv(4),zie=Nv(5),Uie=Nv(6);TC.range,_C.range,Oie.range,Qie.range,Vy.range,zie.range,Uie.range;function $v(e){return Tu(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/gS)}const KL=$v(0),PC=$v(1),jie=$v(2),Gie=$v(3),Oy=$v(4),Yie=$v(5),Wie=$v(6);KL.range,PC.range,jie.range,Gie.range,Oy.range,Yie.range,Wie.range;const ES=Tu(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ES.range,Tu(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()).range;const $h=Tu(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$h.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tu(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),$h.range;const Fv=Tu(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Fv.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tu(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Fv.range;function Xie(e,t,n,r,a,i){const o=[[Fy,1,Lh],[Fy,5,5*Lh],[Fy,15,15*Lh],[Fy,30,30*Lh],[i,1,FA],[i,5,5*FA],[i,15,15*FA],[i,30,30*FA],[a,1,Rh],[a,3,3*Rh],[a,6,6*Rh],[a,12,12*Rh],[r,1,Nh],[r,2,2*Nh],[n,1,gS],[t,1,XL],[t,3,3*XL],[e,1,yS]];function s(f,A,h){const m=A<f;m&&([f,A]=[A,f]);const g=h&&typeof h.range=="function"?h:c(f,A,h),b=g?g.range(f,+A+1):[];return m?b.reverse():b}function c(f,A,h){const m=Math.abs(A-f)/h,g=nS(([,,x])=>x).right(o,m);if(g===o.length)return e.every(aS(f/yS,A/yS,h));if(g===0)return kC.every(Math.max(aS(f,A,h),1));const[b,C]=o[m/o[g-1][2]<o[g][2]/m?g-1:g];return b.every(C)}return[s,c]}const[Kie,Zie]=Xie($h,ES,TC,Y5,CS,wS);function xS(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function SS(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function W5(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Jie(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,f=X5(a),A=K5(a),h=X5(i),m=K5(i),g=X5(o),b=K5(o),C=X5(s),x=K5(s),k=X5(c),_=K5(c),D={a:me,A:re,b:ge,B:Ee,c:null,d:nR,e:nR,f:Coe,g:Moe,G:Hoe,H:goe,I:yoe,j:woe,L:rR,m:boe,M:Eoe,p:ce,q:ye,Q:uR,s:cR,S:xoe,u:Soe,U:Boe,V:koe,w:Toe,W:_oe,x:null,X:null,y:Poe,Y:Doe,Z:Ioe,"%":sR},O={a:Ye,A:Ne,b:je,B:Oe,c:null,d:iR,e:iR,f:$oe,g:Woe,G:Koe,H:Loe,I:Roe,j:Noe,L:oR,m:Foe,M:Voe,p:Xe,q:dt,Q:uR,s:cR,S:Ooe,u:Qoe,U:zoe,V:Uoe,w:joe,W:Goe,x:null,X:null,y:Yoe,Y:Xoe,Z:Zoe,"%":sR},I={a:ae,A:U,b:G,B:K,c:Y,d:eR,e:eR,f:poe,g:qL,G:JL,H:tR,I:tR,j:coe,L:Aoe,m:uoe,M:foe,p:J,q:soe,Q:moe,s:voe,S:doe,u:roe,U:aoe,V:ioe,w:noe,W:ooe,x:X,X:oe,y:qL,Y:JL,Z:loe,"%":hoe};D.x=$(n,D),D.X=$(r,D),D.c=$(t,D),O.x=$(n,O),O.X=$(r,O),O.c=$(t,O);function $(Ge,rt){return function(He){var $e=[],ut=-1,ct=0,Bt=Ge.length,dn,gn,fr;for(He instanceof Date||(He=new Date(+He));++ut<Bt;)Ge.charCodeAt(ut)===37&&($e.push(Ge.slice(ct,ut)),(gn=ZL[dn=Ge.charAt(++ut)])!=null?dn=Ge.charAt(++ut):gn=dn==="e"?" ":"0",(fr=rt[dn])&&(dn=fr(He,gn)),$e.push(dn),ct=ut+1);return $e.push(Ge.slice(ct,ut)),$e.join("")}}function Q(Ge,rt){return function(He){var $e=W5(1900,void 0,1),ut=ee($e,Ge,He+="",0),ct,Bt;if(ut!=He.length)return null;if("Q"in $e)return new Date($e.Q);if("s"in $e)return new Date($e.s*1e3+("L"in $e?$e.L:0));if(rt&&!("Z"in $e)&&($e.Z=0),"p"in $e&&($e.H=$e.H%12+$e.p*12),$e.m===void 0&&($e.m="q"in $e?$e.q:0),"V"in $e){if($e.V<1||$e.V>53)return null;"w"in $e||($e.w=1),"Z"in $e?(ct=SS(W5($e.y,0,1)),Bt=ct.getUTCDay(),ct=Bt>4||Bt===0?PC.ceil(ct):PC(ct),ct=bS.offset(ct,($e.V-1)*7),$e.y=ct.getUTCFullYear(),$e.m=ct.getUTCMonth(),$e.d=ct.getUTCDate()+($e.w+6)%7):(ct=xS(W5($e.y,0,1)),Bt=ct.getDay(),ct=Bt>4||Bt===0?_C.ceil(ct):_C(ct),ct=Y5.offset(ct,($e.V-1)*7),$e.y=ct.getFullYear(),$e.m=ct.getMonth(),$e.d=ct.getDate()+($e.w+6)%7)}else("W"in $e||"U"in $e)&&("w"in $e||($e.w="u"in $e?$e.u%7:"W"in $e?1:0),Bt="Z"in $e?SS(W5($e.y,0,1)).getUTCDay():xS(W5($e.y,0,1)).getDay(),$e.m=0,$e.d="W"in $e?($e.w+6)%7+$e.W*7-(Bt+5)%7:$e.w+$e.U*7-(Bt+6)%7);return"Z"in $e?($e.H+=$e.Z/100|0,$e.M+=$e.Z%100,SS($e)):xS($e)}}function ee(Ge,rt,He,$e){for(var ut=0,ct=rt.length,Bt=He.length,dn,gn;ut<ct;){if($e>=Bt)return-1;if(dn=rt.charCodeAt(ut++),dn===37){if(dn=rt.charAt(ut++),gn=I[dn in ZL?rt.charAt(ut++):dn],!gn||($e=gn(Ge,He,$e))<0)return-1}else if(dn!=He.charCodeAt($e++))return-1}return $e}function J(Ge,rt,He){var $e=f.exec(rt.slice(He));return $e?(Ge.p=A.get($e[0].toLowerCase()),He+$e[0].length):-1}function ae(Ge,rt,He){var $e=g.exec(rt.slice(He));return $e?(Ge.w=b.get($e[0].toLowerCase()),He+$e[0].length):-1}function U(Ge,rt,He){var $e=h.exec(rt.slice(He));return $e?(Ge.w=m.get($e[0].toLowerCase()),He+$e[0].length):-1}function G(Ge,rt,He){var $e=k.exec(rt.slice(He));return $e?(Ge.m=_.get($e[0].toLowerCase()),He+$e[0].length):-1}function K(Ge,rt,He){var $e=C.exec(rt.slice(He));return $e?(Ge.m=x.get($e[0].toLowerCase()),He+$e[0].length):-1}function Y(Ge,rt,He){return ee(Ge,t,rt,He)}function X(Ge,rt,He){return ee(Ge,n,rt,He)}function oe(Ge,rt,He){return ee(Ge,r,rt,He)}function me(Ge){return o[Ge.getDay()]}function re(Ge){return i[Ge.getDay()]}function ge(Ge){return c[Ge.getMonth()]}function Ee(Ge){return s[Ge.getMonth()]}function ce(Ge){return a[+(Ge.getHours()>=12)]}function ye(Ge){return 1+~~(Ge.getMonth()/3)}function Ye(Ge){return o[Ge.getUTCDay()]}function Ne(Ge){return i[Ge.getUTCDay()]}function je(Ge){return c[Ge.getUTCMonth()]}function Oe(Ge){return s[Ge.getUTCMonth()]}function Xe(Ge){return a[+(Ge.getUTCHours()>=12)]}function dt(Ge){return 1+~~(Ge.getUTCMonth()/3)}return{format:function(Ge){var rt=$(Ge+="",D);return rt.toString=function(){return Ge},rt},parse:function(Ge){var rt=Q(Ge+="",!1);return rt.toString=function(){return Ge},rt},utcFormat:function(Ge){var rt=$(Ge+="",O);return rt.toString=function(){return Ge},rt},utcParse:function(Ge){var rt=Q(Ge+="",!0);return rt.toString=function(){return Ge},rt}}}var ZL={"-":"",_:" ",0:"0"},tc=/^\s*\d+/,qie=/^%/,eoe=/[\\^$*+?|[\]().{}]/g;function no(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function toe(e){return e.replace(eoe,"\\$&")}function X5(e){return new RegExp("^(?:"+e.map(toe).join("|")+")","i")}function K5(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function noe(e,t,n){var r=tc.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function roe(e,t,n){var r=tc.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function aoe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ioe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ooe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function JL(e,t,n){var r=tc.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function qL(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function loe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function soe(e,t,n){var r=tc.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function uoe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function eR(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function coe(e,t,n){var r=tc.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function tR(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function foe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function doe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Aoe(e,t,n){var r=tc.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function poe(e,t,n){var r=tc.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hoe(e,t,n){var r=qie.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function moe(e,t,n){var r=tc.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function voe(e,t,n){var r=tc.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function nR(e,t){return no(e.getDate(),t,2)}function goe(e,t){return no(e.getHours(),t,2)}function yoe(e,t){return no(e.getHours()%12||12,t,2)}function woe(e,t){return no(1+Y5.count($h(e),e),t,3)}function rR(e,t){return no(e.getMilliseconds(),t,3)}function Coe(e,t){return rR(e,t)+"000"}function boe(e,t){return no(e.getMonth()+1,t,2)}function Eoe(e,t){return no(e.getMinutes(),t,2)}function xoe(e,t){return no(e.getSeconds(),t,2)}function Soe(e){var t=e.getDay();return t===0?7:t}function Boe(e,t){return no(TC.count($h(e)-1,e),t,2)}function aR(e){var t=e.getDay();return t>=4||t===0?Vy(e):Vy.ceil(e)}function koe(e,t){return e=aR(e),no(Vy.count($h(e),e)+($h(e).getDay()===4),t,2)}function Toe(e){return e.getDay()}function _oe(e,t){return no(_C.count($h(e)-1,e),t,2)}function Poe(e,t){return no(e.getFullYear()%100,t,2)}function Moe(e,t){return e=aR(e),no(e.getFullYear()%100,t,2)}function Doe(e,t){return no(e.getFullYear()%1e4,t,4)}function Hoe(e,t){var n=e.getDay();return e=n>=4||n===0?Vy(e):Vy.ceil(e),no(e.getFullYear()%1e4,t,4)}function Ioe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+no(t/60|0,"0",2)+no(t%60,"0",2)}function iR(e,t){return no(e.getUTCDate(),t,2)}function Loe(e,t){return no(e.getUTCHours(),t,2)}function Roe(e,t){return no(e.getUTCHours()%12||12,t,2)}function Noe(e,t){return no(1+bS.count(Fv(e),e),t,3)}function oR(e,t){return no(e.getUTCMilliseconds(),t,3)}function $oe(e,t){return oR(e,t)+"000"}function Foe(e,t){return no(e.getUTCMonth()+1,t,2)}function Voe(e,t){return no(e.getUTCMinutes(),t,2)}function Ooe(e,t){return no(e.getUTCSeconds(),t,2)}function Qoe(e){var t=e.getUTCDay();return t===0?7:t}function zoe(e,t){return no(KL.count(Fv(e)-1,e),t,2)}function lR(e){var t=e.getUTCDay();return t>=4||t===0?Oy(e):Oy.ceil(e)}function Uoe(e,t){return e=lR(e),no(Oy.count(Fv(e),e)+(Fv(e).getUTCDay()===4),t,2)}function joe(e){return e.getUTCDay()}function Goe(e,t){return no(PC.count(Fv(e)-1,e),t,2)}function Yoe(e,t){return no(e.getUTCFullYear()%100,t,2)}function Woe(e,t){return e=lR(e),no(e.getUTCFullYear()%100,t,2)}function Xoe(e,t){return no(e.getUTCFullYear()%1e4,t,4)}function Koe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Oy(e):Oy.ceil(e),no(e.getUTCFullYear()%1e4,t,4)}function Zoe(){return"+0000"}function sR(){return"%"}function uR(e){return+e}function cR(e){return Math.floor(+e/1e3)}var Qy,fR;Joe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Joe(e){return Qy=Jie(e),fR=Qy.format,Qy.parse,Qy.utcFormat,Qy.utcParse,Qy}function qoe(e){return new Date(e)}function ele(e){return e instanceof Date?+e:+new Date(+e)}function dR(e,t,n,r,a,i,o,s,c,f){var A=IL(),h=A.invert,m=A.domain,g=f(".%L"),b=f(":%S"),C=f("%I:%M"),x=f("%I %p"),k=f("%a %d"),_=f("%b %d"),D=f("%B"),O=f("%Y");function I($){return(c($)<$?g:s($)<$?b:o($)<$?C:i($)<$?x:r($)<$?a($)<$?k:_:n($)<$?D:O)($)}return A.invert=function($){return new Date(h($))},A.domain=function($){return arguments.length?m(Array.from($,ele)):m().map(qoe)},A.ticks=function($){var Q=m();return e(Q[0],Q[Q.length-1],$??10)},A.tickFormat=function($,Q){return Q==null?I:f(Q)},A.nice=function($){var Q=m();return(!$||typeof $.range!="function")&&($=t(Q[0],Q[Q.length-1],$??10)),$?m(QL(Q,$)):A},A.copy=function(){return U5(A,dR(e,t,n,r,a,i,o,s,c,f))},A}function tle(){return Dv.apply(dR(Kie,Zie,$h,ES,TC,Y5,CS,wS,Fy,fR).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function AR(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="continuous"}function pR(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="categorical"}function hR(e){return pR(e)||AR(e)}const zy="#110529",nle="solid",BS=1,Z5="21",Lp=3,Uy={min:3,max:10},mR={color:"#ccc",lineShape:nle,dotShape:Z5},rle="light";function ale(e){const t=1/(e.length-1);return Da().domain(e.map((n,r)=>r*t)).range(e)}function vR(e,t){const n=Do[e].colors,r=t.length>1?1/(t.length-1):0,a=ale(n),i=tS(e),o=t.reduce((s,c,f)=>(s[c]={colorIdx:i?f:f*r,aes:{color:i?n[f%n.length]:a(f*r),lineShape:Dy[f%Dy.length],dotShape:$5[f%$5.length]}},s),{});return{type:"categorical",palette:e,naAes:mR,order:t,mapping:o}}function Vv(e){return{type:"continuous",palette:e,naAes:mR,range:null,midPoint:null,log:!1}}function jy(e){return vR(rle,e)}function gR(e,t,n,r){var i;if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??jy(n?((i=e[n])==null?void 0:i.list)??[]:[]);return{order:a.order,inheritedAes:a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={},r.fill&&(o[s].fillColor=c.color,o[s].dotFill=c.color),r.stroke&&(o[s].lineColor=c.color),r.dotShape&&(o[s].dotShape=c.dotShape),r.lineType&&(o[s].lineShape=c.lineShape),o},{})}}function yR(e,t,n){var i;const r=n[e];if(r&&!pR(r))return{};const a=r??jy(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={fillColor:c.color,lineColor:c.color,dotFill:c.color,dotShape:c.dotShape,dotSize:Lp,lineWidth:BS},o},{})}function kS(e,t,n,r){var i;const a=n[e]??jy(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]=c[r],o},{})}const ile={},ole={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function lle(e,t){return d.openBlock(),d.createElementBlock("svg",ole,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 2.25H12V3.75H15.25V11.25H13.5C12.8096 11.25 12.25 11.8096 12.25 12.5V21H13.75V12.75H18.25V16.25H17.5C16.8096 16.25 16.25 16.8096 16.25 17.5V21H17.75V17.75H20.25V21H21.75V17.5C21.75 16.8096 21.1904 16.25 20.5 16.25H19.75V12.5C19.75 11.8096 19.1904 11.25 18.5 11.25H16.75V3.5C16.75 2.80964 16.1904 2.25 15.5 2.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5 3.75H7.25V7.25H8.5C9.19036 7.25 9.75 7.80964 9.75 8.5V21H8.25V8.75H4.75V21H3.25V8.5C3.25 7.80965 3.80964 7.25 4.5 7.25H5.75V3.5C5.75 2.80964 6.30964 2.25 7 2.25H10.5V3.75Z",fill:"#07AD3E"},null,-1)]))}const wR=Wr(ile,[["render",lle]]),MC="pl7.app/graph/thresholds",em="pl7.app/graph/axis/lowerLimit",tm="pl7.app/graph/axis/upperLimit",nm="pl7.app/graph/axis/symmetricRange",Gy="pl7.app/graph/palette",DC="pl7.app/axisNature",sle="pl7.app/isSubset";function ule(e,t){return t==="discrete"?e&&Yy[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&Ov[e]?e:"dots":t==="dendro"?"dendro":e??"heatmap"}const Yy={box:["box"],box_binnedDots:["box","binnedDots"],box_jitteredDots:["box","jitteredDots"],violin:["violin"],violin_binnedDots:["violin","binnedDots"],violin_jitteredDots:["violin","jitteredDots"],binnedDots:["binnedDots"],jitteredDots:["jitteredDots"],bar:["bar"],bar_line:["bar","line"],bar_errorbar:["bar","errorbar"],stackedBar:["stackedBar"],line:["line"],line_jitteredDots:["line","jitteredDots"],line_binnedDots:["line","binnedDots"],line_errorbar:["line","errorbar"],errorbar:["errorbar"],sina:["sina"],logo:["logo"]},Ov={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},CR={dots:["dots"],curve_dots:["curve","dots"]},cle={heatmap:["heatmap"],heatmapClustered:["heatmapClustered"]},fle={bins:["bins"]},H0={box:"Boxplot",binnedDots:"Binned Dots",jitteredDots:"Jittered Dots",violin:"Violins",bar:"Bar",stackedBar:"Stacked Bar",line:"Line",errorbar:"Error Bar",sina:"Sina",logo:"Logo Plot",dots:"Scatter Plot",curve:"Curve",heatmap:"Heatmap",heatmapClustered:"Heatmap + Dendro",dendro:"Dendrogram",bins:"Histogram",bubble:"Bubble plot"};function dle(e,t){var r,a,i,o,s,c,f,A,h,m,g,b,C,x,k,_,D,O,I,$,Q,ee,J,ae,U,G,K,Y,X,oe,me;if(e==="discrete"){const re=t;return{overall:{data:{testMethod:((a=(r=re==null?void 0:re.overall)==null?void 0:r.data)==null?void 0:a.testMethod)??null},validity:{testMethod:((o=(i=re==null?void 0:re.overall)==null?void 0:i.validity)==null?void 0:o.testMethod)??!0}},referenceGroup:{data:{testMethod:((c=(s=re==null?void 0:re.referenceGroup)==null?void 0:s.data)==null?void 0:c.testMethod)??null,referenceGroup:((A=(f=re==null?void 0:re.referenceGroup)==null?void 0:f.data)==null?void 0:A.referenceGroup)??null,correctionMethod:((m=(h=re==null?void 0:re.referenceGroup)==null?void 0:h.data)==null?void 0:m.correctionMethod)??"Bonferroni",format:((b=(g=re==null?void 0:re.referenceGroup)==null?void 0:g.data)==null?void 0:b.format)??"significance",ns:((x=(C=re==null?void 0:re.referenceGroup)==null?void 0:C.data)==null?void 0:x.ns)??!1},validity:{testMethod:((_=(k=re==null?void 0:re.referenceGroup)==null?void 0:k.validity)==null?void 0:_.testMethod)??!0,referenceGroup:((O=(D=re==null?void 0:re.referenceGroup)==null?void 0:D.validity)==null?void 0:O.referenceGroup)??!0}},pairwise:{data:{testMethod:(($=(I=re==null?void 0:re.pairwise)==null?void 0:I.data)==null?void 0:$.testMethod)??null,correctionMethod:((ee=(Q=re==null?void 0:re.pairwise)==null?void 0:Q.data)==null?void 0:ee.correctionMethod)??"Bonferroni",format:((ae=(J=re==null?void 0:re.pairwise)==null?void 0:J.data)==null?void 0:ae.format)??"significance",ns:((G=(U=re==null?void 0:re.pairwise)==null?void 0:U.data)==null?void 0:G.ns)??!1},validity:{testMethod:((Y=(K=re==null?void 0:re.pairwise)==null?void 0:K.validity)==null?void 0:Y.testMethod)??!0}}}}const n=t;return{trend:{on:((X=n==null?void 0:n.trend)==null?void 0:X.on)??!1,trim:((oe=n==null?void 0:n.trend)==null?void 0:oe.trim)??!1,showLegend:((me=n==null?void 0:n.trend)==null?void 0:me.showLegend)??!0}}}function TS(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"min"in e&&"max"in e}function Wy(e){return typeof e=="object"&&e!==null&&"type"in e}function Qv(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"range"in e}const Ale=()=>({bubble:{NAValueAs:0,strokeColor:null,minRadius:3,maxRadius:38,normalizationDirection:"row",normalizationMethod:"standardScaling"},bins:{fillColor:null,opacity:1},dendro:{dotFill:yo,dotShape:P0,dotSize:Lp,lineColor:yo,mode:"normal",leavesMode:"normal",showTable:!1,showLegend:!0},heatmap:{NAValueAs:0,normalizationDirection:"row",normalizationMethod:"standardScaling"},heatmapClustered:{NAValueAs:0,normalizationDirection:"row",normalizationMethod:"standardScaling",dendrogramX:!0,dendrogramY:!0,disableClusteringX:!1,disableClusteringY:!1},dots:{dotFill:null,dotShape:null,dotSize:Lp},curve:{lineColor:yo,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:zy,dotShape:P0,lineType:AC,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:zy,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:P0,lineColor:zy,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:zy,lineType:AC,opacity:1,trim:!1,showQuartiles:!1,quartilesLineStyle:"dashed",medianLineStyle:"solid"},bar:{fillColor:null,lineColor:zy,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:zy,opacity:1,normalize:!1},line:{pointsValues:"mean",lineColor:null,dotShape:P0,lineType:AC,dotFill:null,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:P0,dotFill:null,opacity:1},sina:{dotFill:null,dotShape:P0,opacity:1,showOutliers:!0},logo:{normalize:!1,opacity:1}});function ple(e){const t=Ale();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const hle=()=>({title:{value:"Graph 1",position:"center",mode:"auto",facetTitleFrame:"full"},axisX:{labelsPosition:"bottom",labelsRotation:null,axisLabelsAngle:90,titleMode:"auto",customTitle:"",gridlines:!0,linesBetweenCategories:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed",sorting:"asc"},axisY:{titleMode:"auto",customTitle:"",axisLabelsAngle:90,gridlines:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed",sorting:"asc"},legend:{},other:{frame:"full",reverse:!1,facetSharedBy:"xy",facetColumns:3,binsCount:10}});function bR(e){return e==="full"||e==="none"}function mle(e,t){var a;const n=hle();if(!t)return n;function r(i){return!i||e==="heatmap"&&!bR(i)?"full":e!=="heatmap"&&bR(i)&&i==="none"?"empty":i}return{title:{...n.title,...t.title},axisX:{...n.axisX,...t.axisX},axisY:{...n.axisY,...t.axisY},legend:{...n.legend,...t.legend},other:{...n.other,...t.other,frame:r((a=t.other)==null?void 0:a.frame)}}}const Vf={box:Ine,box_binnedDots:$ne,box_jitteredDots:Qne,binnedDots:Gne,jitteredDots:Kne,violin:ere,violin_binnedDots:are,violin_jitteredDots:sre,bar:eL,bar_line:tL,bar_errorbar:gre,stackedBar:bre,line:nL,line_binnedDots:_re,line_jitteredDots:rL,line_errorbar:Rre,errorbar:tL,sina:Vre,logo:Zre,dots:Ure,curve:nL,curve_dots:rL,heatmap:aL,heatmapClustered:wR,dendro:wR,bins:eL,bubble:aL},HC=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],ER=[{value:"BenjaminiHochberg",text:"Benjamini-Hochberg"},{value:"BenjaminiYekutieli",text:"Benjamini-Yekutieli"},{value:"Bonferroni",text:"Bonferroni"},{value:"Hochberg",text:"Hochberg"},{value:"Holm",text:"Holm"},{value:"Hommel",text:"Hommel"},{value:"none",text:"None"}],xR=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}],SR=600,BR=350,vle=400,gle=250;function kR(e,t,n){var a,i,o,s,c,f;if(((i=(a=e.components)==null?void 0:a.y)==null?void 0:i.selectorStates.length)===0)return[];if(!((s=(o=e.components)==null?void 0:o[n])!=null&&s.selectorStates.length))return["single common group"];const r=(c=e.components)==null?void 0:c[n].selectorStates[0].selectedSource;return((f=t[r])==null?void 0:f.list)??[]}function yle(e){const t=[];if(e.overall.data.testMethod&&e.overall.validity.testMethod&&t.push({type:"stat",statType:"overall",testMethod:e.overall.data.testMethod}),e.referenceGroup.data.testMethod&&e.referenceGroup.validity.testMethod&&e.referenceGroup.validity.referenceGroup){const n={type:"stat",statType:"referenceGroup",testMethod:e.referenceGroup.data.testMethod,referenceGroup:e.referenceGroup.data.referenceGroup,format:e.referenceGroup.data.format,ns:e.referenceGroup.data.ns};e.referenceGroup.data.correctionMethod!=="none"&&(n.correctionMethod=e.referenceGroup.data.correctionMethod),t.push(n)}if(e.pairwise.data.testMethod&&e.pairwise.validity.testMethod){const n={type:"stat",statType:"pairwise",testMethod:e.pairwise.data.testMethod,format:e.pairwise.data.format,ns:e.pairwise.data.ns};e.referenceGroup.data.correctionMethod!=="none"&&(n.correctionMethod=e.referenceGroup.data.correctionMethod),t.push(n)}return t}function TR(e,t,n,r,a){const i=[],o=r.components.primaryGrouping.selectorStates.length>0,s=r.components.secondaryGrouping.selectorStates.length>0;function c(f,A=!1){return f===null?s?{type:"secondaryGrouping"}:o&&!A?{type:"primaryGrouping"}:{type:"secondaryGrouping"}:f}return e.forEach(f=>{var A;if(f==="box"){const h=t[f];i.push({type:"box",aes:{showOutliers:h.showOutliers,dotShape:h.dotShape,fillColor:c(h.fillColor),lineColor:c(h.lineColor),lineShape:h.lineType,opacity:h.opacity}})}if(f==="binnedDots"){const h=t[f];i.push({type:"binnedDots",aes:{showOutliers:h.showOutliers,fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="jitteredDots"){const h=t[f];i.push({type:"dot",aes:{showOutliers:h.showOutliers,dotFill:c(h.dotFill),dotShape:h.dotShape,lineColor:h.lineColor,opacity:h.opacity}})}if(f==="violin"){const h=t[f];i.push({type:"violin",stat:{trim:h.trim},aes:{showQuartiles:h.showQuartiles,medianLineStyle:h.medianLineStyle,quartilesLineStyle:h.quartilesLineStyle,fillColor:c(h.fillColor),lineColor:c(h.lineColor),lineShape:h.lineType,opacity:h.opacity}})}if(f==="bar"){const h=t[f];i.push({type:"bar",height:h.height,aes:{fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="stackedBar"){const h=t[f];i.push({type:"stackedBar",normalize:h.normalize,aes:{fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="line"){const h=t[f];i.push({type:"line",pointsValues:h.pointsValues,aes:{lineColor:c(h.lineColor,!0),fillColor:c(h.dotFill,!0),lineShape:h.lineType,dotShape:h.dotShape,opacity:h.opacity}})}if(f==="errorbar"){const h=t[f];i.push({type:"errorbar",pointsValues:h.pointsValues,interval:h.interval,aes:{lineColor:c(h.lineColor,!0),fillColor:c(h.dotFill,!0),dotShape:h.dotShape,opacity:h.opacity}})}if(f==="sina"){const h=t[f];i.push({type:"sina",aes:{showOutliers:h.showOutliers,dotFill:c(h.dotFill),dotShape:h.dotShape}})}if(f==="logo"&&s){const h=t[f],g=((A=a.getSourceInfo(r.components.secondaryGrouping.selectorStates[0].selectedSource).spec.domain)==null?void 0:A["pl7.app/alphabet"])==="aminoacid";i.push({type:"logo",normalize:h.normalize,aes:{opacity:h.opacity,dotFill:g?yae:gae}})}}),o&&!s&&i.push(...yle(n)),i}function wle(e,t,n){if(e){const r=Qv(t)?t:{column:e.value,range:Uy},a=[1/0,-1/0];return n.values[e.value].forEach(i=>{const o=Number(i);o<a[0]&&(a[0]=o),o>a[1]&&(a[1]=o)}),{columnName:e,domain:a,range:[r.range.min,r.range.max]}}return Qv(t)?Lp:t??Lp}function _R(e,t,n,r){const a=n.find(o=>o.value===e);let i=[1/0,-1/0];if(a){const{range:o,palette:s,midPoint:c,log:f}=t,A=(o==null?void 0:o.minValue)===null||(o==null?void 0:o.minValue)===void 0,h=(o==null?void 0:o.maxValue)===null||(o==null?void 0:o.maxValue)===void 0;if((A||h)&&r.values[a.value].forEach(m=>{const g=Number(m);A&&g<i[0]&&(i[0]=g),h&&g>i[1]&&(i[1]=g)}),A||(i[0]=o==null?void 0:o.minValue),h||(i[1]=o==null?void 0:o.maxValue),c!=null){const m=Math.max(Math.abs(c-i[0]),Math.abs(c-i[1]));i[0]=c-m,i[1]=c+m}return{columnName:a,domain:i,range:Do[s].colors,type:f?"log":"linear"}}return yo}function PR(e,t,n,r,a,i,o=[]){var g,b;const s=[];function c(C,x,k,_=!1){var D;if(x.length){const O=x.length?(D=i.getSourceInfo(x[0]))==null?void 0:D.type:void 0,I=O==="String"||!_?{type:"grouping",value:x[0]}:_R(x[0],Vv(Z1),o,n),$=a[x[0]];return C===null||O==="String"||!_||!AR($)?I:_R(x[0],$,o,n)}return typeof C=="object"?k:C}const f=r.components.grouping.selectorStates.map(C=>C.selectedSource),A=((g=r.components.shape)==null?void 0:g.selectorStates.map(C=>C.selectedSource))??[],h=(b=r.components.size)==null?void 0:b.selectorStates.map(C=>C.selectedSource)[0],m=h?o.find(C=>C.value===h):void 0;return e.forEach(C=>{if(C==="dots"){const x=t[C];s.push({type:"dots",aes:{dotFill:c(x.dotFill,f,yo,!0),dotShape:c(x.dotShape,A,P0),dotSize:wle(m,x.dotSize,n)}})}if(C==="curve"){const x=t[C];s.push({type:"curve",smoothing:x.smoothing,aes:{lineColor:c(x.lineColor,f,yo,!0)}})}}),s}const Cle=6,ble=5;function MR(e,t=[]){return e!==null?e:t.length>Cle&&t.some(({label:n})=>n.length>ble)?"45deg":"center"}function Xy(e,t,n=[]){let r={},a={};t==="discrete"&&(r.labelsPosition=MR(e.axisX.labelsRotation,n),r.linesBetweenCategories=e.axisX.linesBetweenCategories,a.scale=e.axisY.scale),(t==="discrete"||t==="scatterplot"||t==="scatterplot-umap")&&(r.showGrid=e.axisX.gridlines,r.showTicks=e.axisX.ticks,a.showGrid=e.axisY.gridlines,a.showTicks=e.axisY.ticks),(t==="scatterplot"||t==="scatterplot-umap")&&(r.scale=e.axisX.scale,a.scale=e.axisY.scale,r.significantLinesStyle=e.axisX.significantLinesStyle,a.significantLinesStyle=e.axisY.significantLinesStyle),t==="histogram"&&(r.scale=e.axisX.scale,a.scale=e.axisY.scale),(t==="heatmap"||t==="bubble")&&(r.axisLabelsAngle=e.axisX.axisLabelsAngle,a.axisLabelsAngle=e.axisY.axisLabelsAngle,r.sorting=e.axisX.sorting,a.sorting=e.axisY.sorting),e.axisY.titleMode!=="auto"&&(a.title=e.axisY.titleMode==="custom"?e.axisY.customTitle:""),e.axisX.titleMode!=="auto"&&(r.title=e.axisX.titleMode==="custom"?e.axisX.customTitle:"");const i={xAxis:r,yAxis:a,frame:{type:e.other.frame},facetSettings:{nCols:e.other.facetColumns}};return(t==="discrete"||t==="scatterplot"||t==="heatmap")&&(i.orientation=e.other.reverse?"horizontal":"vertical",i.facetSettings.sharedX=["x","xy"].includes(e.other.facetSharedBy),i.facetSettings.sharedY=["y","xy"].includes(e.other.facetSharedBy)),i}function I0(e){return JSON.parse(JSON.stringify(e))}function Ele(e,t){if(typeof e>"u")return!0;const n=Object.keys(e);return typeof t>"u"?n.length===0:n.every(r=>t[r])}function DR(e,t){return(t==null?void 0:t[sle])==="true"?"subset":e==="Int"||e==="String"?"equals":"range"}async function _S(e,t,n=!0){const r=[],a=t.filter(({selectedSource:s})=>"kind"in s&&s.kind==="PColumn"),i=t.filter(({selectedSource:s})=>!("kind"in s&&s.kind==="PColumn")),o=[];for(const{inputName:s,filterType:c,selectedSource:f,selectedFilterValue:A,selectedFilterRange:h,fixedAxes:m}of a){const{name:g,valueType:b,annotations:C,domain:x}=f,k=await e.pFrameProvider.findColumnBy(g,b,d.toRaw(C),d.toRaw(x)),_=s==="filters"||s==="tabBy";if(k){const D=await e.pFrameProvider.getColumnSpecById(k),O=D&&m?m.map(I=>({axisIdx:I.axisIdx,axisValue:I.axisValue,axisSource:hi.fromAxisSpec(D==null?void 0:D.axesSpec[I.axisIdx]).toCanonicalString()})):[];if(!_)r.push({inputName:s,selectedSource:k.toCanonicalString(),fixedAxes:O});else{const I=c??DR(b,D==null?void 0:D.annotations),$=I==="equals"&&typeof A>"u"?(await e.pFrameProvider.getColumnUniqueValues(k))[0]:A,Q=I==="range"&&typeof h>"u"?{min:0,max:0}:h;r.push({inputName:s,filterType:I,selectedSource:k.toCanonicalString(),selectedFilterValue:$,selectedFilterRange:Q,fixedAxes:O})}o.push(...(D==null?void 0:D.axesSpec.map(I=>({spec:I,parentColumn:k})))??[])}else console.warn(`Not found column for default option: ${JSON.stringify({inputName:s,selectedSource:f})}`)}for(const{inputName:s,selectedSource:c,filterType:f,selectedFilterValue:A,selectedFilterRange:h}of i){const m=hi.fromAxisSpec(c),g=m.toCanonicalString(),b=s==="filters"||s==="tabBy",C=b?f??DR(m.type,c==null?void 0:c.annotations):void 0,x=o.find(D=>hi.fromAxisSpec(D.spec).toCanonicalString()===g),k=b&&C==="equals"&&typeof A>"u"&&(x!=null&&x.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(m,[x==null?void 0:x.parentColumn]))[0]:A,_=b&&C==="range"&&typeof h>"u"?{min:0,max:0}:h;if(n||r.push({inputName:s,filterType:C,selectedSource:g,selectedFilterValue:k,selectedFilterRange:_,fixedAxes:[]}),x)r.push({inputName:s,filterType:C,selectedSource:g,selectedFilterValue:k,selectedFilterRange:_,fixedAxes:[]});else{const{spec:D,parentColumn:O}=o.find(I=>m.name===I.spec.name&&m.type===I.spec.type&&Ele(m.domain,I.spec.domain))??{};if(D){const I=(s==="filters"||s==="tabBy")&&typeof A>"u"?(await e.pFrameProvider.getAxisUniqueValues(hi.fromAxisSpec(D),[O]))[0]:A;r.push({inputName:s,filterType:C,selectedSource:hi.fromAxisSpec(D).toCanonicalString(),selectedFilterValue:I,selectedFilterRange:_,fixedAxes:[]})}}}return r}async function HR(e,t,n){if(!n||n.length===0)return e;const r=await _S(t,n,!1),a=I0(e);return r.forEach(({inputName:i,selectedSource:o,selectedFilterValue:s})=>{e.components[i]&&a.components[i].selectorStates.push({selectedSource:o,type:"equals",selectedFilterValue:s})}),a}function xle(e,t,n,r){var c;const a=TR(Yy[t.template],t.layersSettings,t.statisticsSettings,t.optionsState,r),i=NR(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState,r);e.layers=a;const o=t.optionsState.components;if(o.primaryGrouping.selectorStates.length&&e.primaryGrouping){const f=o.primaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.primaryGrouping,gR(n,t.dataBindAes[f],f,A))}if(o.secondaryGrouping.selectorStates&&e.secondaryGrouping){const f=o.secondaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.secondaryGrouping,gR(n,t.dataBindAes[f],f,A))}const s=e.primaryGrouping?(c=n[e.primaryGrouping.columnName.value])==null?void 0:c.options:[];return Object.assign(e,Xy(t.axesSettings,t.chartType,s)),e}function Sle(e,t,n,r,a){var b,C,x,k,_;e.layers=PR(Ov[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping,o=n.optionsState.components.shape;if(i.selectorStates.length||o.selectorStates.length){const D=[...i.selectorStates,...o.selectorStates],O={};D.forEach(({selectedSource:I})=>{O[I]=yR(I,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:O})}const s=n.statisticsSettings,c=e.layers.find(D=>D.type==="dots");s.trend.on&&c&&(e.trend={color:(b=c.aes)==null?void 0:b.dotFill,bounded:!1}),Object.assign(e,Xy(n.axesSettings,n.chartType));const f=(C=i.selectorStates[0])==null?void 0:C.selectedSource,A=(x=n.optionsState.components.x.selectorStates[0])==null?void 0:x.selectedSource,h=(k=n.optionsState.components.y.selectorStates[0])==null?void 0:k.selectedSource,m=r.getSourceInfo(A),g=r.getSourceInfo(h);if(i.selectorStates.length){const D=r.getSourceInfo(f).annotations;if(D!=null&&D[MC]&&(JSON.parse(D[MC])??[]).forEach(I=>{const{columnId:$,value:Q}=I;$&&m.kind==="column"&&m.type===$.valueType&&m.name===$.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(Q))),$&&g.kind==="column"&&g.type===$.valueType&&g.name===$.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(Q)))}),D!=null&&D[Gy]){const O=JSON.parse(D[Gy]),{mapping:I={},name:$=""}=O;e.layers.forEach(J=>{J.type==="dots"&&(J.aes||(J.aes={}),J.aes.dotFill={type:"grouping",value:f})});const Q=[...Object.entries(I),["null",dC]],ee=((_=Do[$])==null?void 0:_.colors)??[];e.inheritedAes[f]=Q.reduce((J,[ae,U])=>{const G=ee[Number(U)]??yo;return J[ae]={fillColor:G,lineColor:G,dotFill:G,dotShape:Z5,dotSize:Lp,lineWidth:BS},J},{})}}return m.annotations&&(m.annotations[tm]&&(e.xAxis.upperValue=Number(m.annotations[tm])),m.annotations[em]&&(e.xAxis.lowerValue=Number(m.annotations[em])),m.annotations[nm]&&(e.xAxis.symmetricRange=Number(m.annotations[nm]))),g.annotations&&(g.annotations[tm]&&(e.yAxis.upperValue=Number(g.annotations[tm])),g.annotations[em]&&(e.yAxis.lowerValue=Number(g.annotations[em])),g.annotations[nm]&&(e.yAxis.symmetricRange=Number(g.annotations[nm]))),e}const Ble=750,kle=450;function Tle(e,t,n,r,a){var h,m,g,b;e.layers=PR(Ov[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping;if(i.selectorStates.length){const C=[...i.selectorStates],x={};C.forEach(({selectedSource:k})=>{x[k]=yR(k,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:x})}Object.assign(e,Xy(n.axesSettings,n.chartType));const o=(h=i.selectorStates[0])==null?void 0:h.selectedSource,s=(m=n.optionsState.components.x.selectorStates[0])==null?void 0:m.selectedSource,c=(g=n.optionsState.components.y.selectorStates[0])==null?void 0:g.selectedSource,f=r.getSourceInfo(s),A=r.getSourceInfo(c);if(i.selectorStates.length){const C=r.getSourceInfo(o).annotations;if(C!=null&&C[MC]&&(JSON.parse(C[MC])??[]).forEach(k=>{const{columnId:_,value:D}=k;_&&f.kind==="column"&&f.type===_.valueType&&f.name===_.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(D))),_&&A.kind==="column"&&A.type===_.valueType&&A.name===_.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(D)))}),C!=null&&C[Gy]){const x=JSON.parse(C[Gy]),{mapping:k={},name:_=""}=x;e.layers.forEach(I=>{I.type==="dots"&&(I.aes||(I.aes={}),I.aes.dotFill={type:"grouping",value:o})});const D=[...Object.entries(k),["null",dC]],O=((b=Do[_])==null?void 0:b.colors)??[];e.inheritedAes[o]=D.reduce((I,[$,Q])=>{const ee=O[Number(Q)]??yo;return I[$]={fillColor:ee,lineColor:ee,dotFill:ee,dotShape:Z5,dotSize:Lp,lineWidth:BS},I},{})}}return f.annotations&&(f.annotations[tm]&&(e.xAxis.upperValue=Number(f.annotations[tm])),f.annotations[em]&&(e.xAxis.lowerValue=Number(f.annotations[em])),f.annotations[nm]&&(e.xAxis.symmetricRange=Number(f.annotations[nm]))),A.annotations&&(A.annotations[tm]&&(e.yAxis.upperValue=Number(A.annotations[tm])),A.annotations[em]&&(e.yAxis.lowerValue=Number(A.annotations[em])),A.annotations[nm]&&(e.yAxis.symmetricRange=Number(A.annotations[nm]))),e.size={width:Ble,height:kle},e.lassoMode=n.lassoMode,e}function _le(e,t){var o,s;const n={},r=(o=t.dataBindAes[e.valueColumn.value])==null?void 0:o.palette;if((e==null?void 0:e.valueType)!=="discrete"){if(t.template==="heatmapClustered"){const c=t.layersSettings.heatmapClustered;c.disableClusteringX||(e.dendrogramX={fillNA:0,showNodes:!1,hidden:!c.dendrogramX}),c.disableClusteringY||(e.dendrogramY={fillNA:0,position:"right",showNodes:!1,hidden:!c.dendrogramY})}n.colorsList=Do[r??mae].colors}else n.colorsList=Do[r??"bright"].colors;e.aes=n,(s=e.annotations)==null||s.forEach(c=>{var m;const f=c.valueColumn.value,A=(m=t.dataBindAes[f])==null?void 0:m.palette,h=c.type==="discrete"?oL:Z1;c.colors=Do[A??h].colors}),Object.assign(e,Xy(t.axesSettings,t.chartType)),t.template==="heatmapClustered"&&(e==null?void 0:e.valueType)!=="discrete"&&(e.facetSettings.sharedX=!1,e.facetSettings.sharedY=!1);const a=t.template,i=t.layersSettings[a];return e.NAValueAs=i.NAValueAs,e.valueType==="continuous"&&i.normalizationDirection&&(e.normalization={method:i.normalizationMethod,direction:i.normalizationDirection}),e}const Ple=280;async function Mle(e,t,n,r,a,i){var f,A,h,m;n.rootPosition="left",n.size={width:SR,height:BR};const o=r.optionsState.components,s=r.layersSettings.dendro,c=n==null?void 0:n.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const g=(f=o.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,b=kS(g,a,r.dataBindAes,"dotShape");Object.keys(b).length?c.nodeShape.valuesMap=b:c.nodeShape=Z5}else typeof s.dotShape=="string"&&(c.nodeShape=s.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const g=(A=o.nodeColor.selectorStates[0])==null?void 0:A.selectedSource,b=kS(g,a,r.dataBindAes,"color");Object.keys(b).length?c.nodeColor.valuesMap=b:c.nodeColor=yo}else typeof s.dotFill=="string"&&(c.nodeColor=s.dotFill);if(c.nodeSize&&typeof c.nodeSize=="object"){const g=(h=o.nodeSize.selectorStates[0])==null?void 0:h.selectedSource;let[b,C]=[1/0,-1/0];t.values[g].forEach(x=>{const k=Number(x);k<b&&(b=k),k>C&&(C=k)}),c.nodeSize.domain=[b,C],c.nodeSize.range=TS(s.dotSize)?[s.dotSize.min,s.dotSize.max]:[Uy.min,Uy.max]}else typeof s.dotSize=="number"&&(c.nodeSize=s.dotSize);if(c.lineColor&&typeof c.lineColor=="object"){const g=(m=o.lineColor.selectorStates[0])==null?void 0:m.selectedSource;c.lineColor.valuesMap=kS(g,a,r.dataBindAes,"color")}else typeof s.lineColor=="string"&&(c.lineColor=s.lineColor);if(o.heatmapForSequence.selectorStates.length>0&&(n.heatmapSettings={valueType:"stringSource",aes:{colorsList:Do.bright.colors}},n.size.maxCellWidth=8),o.heatmapAnnotation.selectorStates.length>0){const g=Sn(o.heatmapAnnotation.selectorStates[0].selectedSource),b=await e.pFrameProvider.getColumnSpecById(g),C=(b==null?void 0:b.valueType)==="Double"||(b==null?void 0:b.valueType)==="Float"||(b==null?void 0:b.valueType)==="Int"||(b==null?void 0:b.valueType)==="Long"?"continuous":"discrete",x=Do.bright.colors;let k;C==="discrete"&&(k=(await e.pFrameProvider.getColumnUniqueValues(g)).filter(Boolean).reduce((D,O,I)=>(D[O]=x[I%x.length],D),{})),n.heatmapSettings={valueType:C,aes:{colorsList:Do.viridis.colors,colorsMap:k}}}return n.mode=s.mode,n.leavesMode=s.leavesMode,n.showNodesLabels=o.labels.selectorStates.length>0,n.showLeavesLabels=o.labels.selectorStates.length>0,s.showTable&&o.heatmapAnnotation.selectorStates.length===0&&o.heatmapForSequence.selectorStates.length===0&&(n.size.width=Ple),n.size.scale=i/100,n.legend={show:r.layersSettings.dendro.showLegend??!0},n}function Dle(e,t){const n=fle[t.template],r=[];return n.forEach(a=>{if(a==="bins"){const i=t.layersSettings[a];r.push({type:"bins",aes:{opacity:i.opacity,fillColor:i.fillColor??"white"}})}}),e.layers=r,Object.assign(e,Xy(t.axesSettings,t.chartType)),e.binsCount=t.axesSettings.other.binsCount,e}const IR=40,Hle=IR/2-2,Ile=3;function Lle(e,t){var i;const n=t.template,r=t.layersSettings[n],a=(i=t.dataBindAes[e.valueColor.value])==null?void 0:i.palette;return e.aes={cellStrokeColor:r.strokeColor??yo,colorsList:Do[a??Z1].colors,maxRadius:Hle*(t.chartScale/100),minRadius:Ile},e.size={cellSize:IR*(t.chartScale/100)},Object.assign(e,Xy(t.axesSettings,t.chartType)),e.NAValueAs=r.NAValueAs,r.normalizationDirection&&(e.normalization={method:r.normalizationMethod,direction:r.normalizationDirection}),e}function Rle(e,t=0){return{width:(t>0?vle:SR)*(e/100),height:(t>0?gle:BR)*(e/100)}}function Nle(e,t,n,r){var a,i;if(e!=="scatterplot"&&e!=="scatterplot-umap"&&e!=="discrete"&&e!=="heatmap"&&e!=="histogram"&&e!=="bubble")return{name:"",show:!1};if(r.title.mode==="hidden")return{name:"",show:!1};if(r.title.mode==="custom")return{name:r.title.value,show:!0,position:r.title.position};if(r.title.mode==="auto"){const o=[];return[...((a=t.components)==null?void 0:a.filters.selectorStates)??[],...((i=t.components)==null?void 0:i.tabBy.selectorStates)??[]].forEach(({type:f,selectedSource:A,selectedFilterValue:h})=>{if((!f||f==="equals")&&h){const m=n[A];o.push((m==null?void 0:m.labels[h])??String(h))}}),{name:o.join(", "),show:!0,position:r.title.position}}return{name:"",show:!1}}async function $le(e,t,n,r,a){var i;if(!e.ready||r===null)return null;try{const o=fC(n.chartType),s=await HR(n.optionsState,r,a),c=await o.createDataForPlot(r,s);let f=c.settings;return f.title=Nle(n.chartType,n.optionsState,t,n.axesSettings),f.size=Rle(n.chartScale,((i=n.optionsState.components)==null?void 0:i.facetBy.selectorStates.length)||0),n.chartType==="discrete"&&(f=xle(f,n,t,e)),n.chartType==="scatterplot"&&(f=Sle(f,c.dataByColumns,n,e,t)),n.chartType==="scatterplot-umap"&&(f=Tle(f,c.dataByColumns,n,e,t)),n.chartType==="heatmap"&&(f=_le(f,n)),n.chartType==="dendro"&&(f=await Mle(r,c.dataByColumns,f,n,t,n.chartScale)),n.chartType==="histogram"&&(f=Dle(f,n)),n.chartType==="bubble"&&(f=Lle(f,n)),{settings:f,dataByColumns:c.dataByColumns}}catch(o){return console.warn("Cant build chart data"),console.warn(o.message),null}}function LR(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function RR(e){return e.length<2?[]:e.length>2?HC.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):HC}function PS(e){return async()=>{const t=e.value.commonHelpersData.primaryGroups.value;function n(c,f){return f===null||!!c.find(A=>A.value===f)}if(e.value.reactive.chartType!=="discrete")return;const r=e.value.reactive.statisticsSettings,a=RR(t),i=LR(t),o=r.overall.data.testMethod,s=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,o),r.referenceGroup.validity.referenceGroup=n(i,s)}}function Fle(e){e.dispatchEvent(new MouseEvent("click"))}function Vle(e,t){const n=window.URL||window.webkitURL,r=document.createElement("a");r.download=t,r.rel="noopener",r.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(r.href)},4e4),setTimeout(function(){Fle(r)},0)}function J5(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return Wy(a)&&a.type===n})}function NR(e,t,n,r,a,i){var c,f,A;const o={};let s=[];if(e==="discrete"){s=["primaryGrouping","secondaryGrouping"];const h=TR(Yy[t],n,r,a,i);s.forEach(m=>{var b,C;const g=(C=(b=a.components[m])==null?void 0:b.selectorStates[0])==null?void 0:C.selectedSource;g&&(o[g]={fill:J5(h,"fillColor",m)||J5(h,"dotFill",m),stroke:J5(h,"lineColor",m),dotShape:J5(h,"dotShape",m),lineType:J5(h,"lineShape",m),size:!1})})}if(e==="scatterplot"){const h=a.components.grouping.selectorStates.map(g=>g.selectedSource),m=a.components.shape.selectorStates.map(g=>g.selectedSource);s=[...h,...m],s.forEach(g=>{o[g]={fill:g===h[0],stroke:!1,dotShape:g===m[0],lineType:!1,size:!1}})}return e==="scatterplot-umap"&&(s=a.components.grouping.selectorStates.map(h=>h.selectedSource),s.forEach(h=>{o[h]={fill:h===s[0],stroke:!1,dotShape:!1,lineType:!1,size:!1}})),e==="dendro"&&(s=[((c=a.components.nodeColor.selectorStates[0])==null?void 0:c.selectedSource)??null,((f=a.components.nodeShape.selectorStates[0])==null?void 0:f.selectedSource)??null,((A=a.components.lineColor.selectorStates[0])==null?void 0:A.selectedSource)??null].filter(m=>m!==null),s.forEach(m=>{o[m]={fill:Wy(n.dendro.dotFill)&&n.dendro.dotFill.value===m,stroke:Wy(n.dendro.lineColor)&&n.dendro.lineColor.value===m,dotShape:Wy(n.dendro.dotShape)&&n.dendro.dotShape.value===m,lineType:!1,size:!1}})),o}function Ole(e,t){const n=I0(Pne(e));if((t==null?void 0:t.type)!==e)return n;const r=I0(t);return{...n,...r,components:{...n.components,...r.components}}}function $R(e,t){return d.reactive({chartType:t,optionsState:Ole(t,e.optionsState),template:ule(e.template,t),statisticsSettings:dle(t,e.statisticsSettings),layersSettings:ple(e.layersSettings),axesSettings:mle(t,e.axesSettings),dataBindAes:I0(e.dataBindAes??{}),chartScale:e.zoomState??100,lassoMode:!1,currentTab:e.currentTab===void 0?"dataMapping":e.currentTab,dendroInfoByClick:null,dendroSelectedNodeId:null})}function Qle(e,t,n,r,a,i,o){return{reactive:e,loading:d.reactive({initialInputGuide:!0,initialCharts:!0,initialDefaults:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:d.computed(()=>kR(e.optionsState,i.value,"primaryGrouping")),secondaryGroups:d.computed(()=>kR(e.optionsState,i.value,"secondaryGrouping")),usedAesInMapping:d.computed(()=>NR(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState,n.value)),dendroTableData:a},controller:fC(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r,uniqueValuesData:i,readonlyInputs:o}}function zle(e,t,n,r,a,i,o){const s=$R(e,n),c=fC(s.chartType),f=d.ref(fC(s.chartType).getEmptyInputGuide(s.optionsState)),A=d.ref(null),h=d.ref({}),m=d.ref(null),g=d.computed(()=>Qle(s,d.toRaw(t.value),f,A,m,h,o));d.watch([()=>t.value,()=>r.value],async([x,k])=>{if(!k||!x||!g.value.loading.initialDefaults)return;g.value.loading.initialDefaults=!1,g.value.loading.initialInputGuide=!0;const _=I0(s.optionsState.components),D=k.filter(I=>{var $;return(($=s.optionsState.components[I.inputName])==null?void 0:$.selectorStates.length)===0||(o==null?void 0:o.includes(I.inputName))});if(D.length===0)return;D.forEach(I=>{_[I.inputName].selectorStates=[]});const O=await _S(x,D);for(const{inputName:I,selectedSource:$,filterType:Q,selectedFilterValue:ee,selectedFilterRange:J,fixedAxes:ae}of O)_[I].selectorStates.push({selectedSource:$,type:Q,selectedFilterValue:ee,selectedFilterRange:J,fixedAxes:ae});s.optionsState.components={...s.optionsState.components,..._}},{immediate:!0});const b=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>a.value],async([x,k,_])=>{b.value++;const D=b.value;g.value.loading.inputGuide=!0;const O=k&&_?(await _S(k,_,!1)).map(J=>J.selectedSource):[],I=k?await c.calculateOptions(d.toRaw(k),x,O,i):c.getEmptyInputGuide(x),$=["primaryGrouping","secondaryGrouping","grouping","shape","nodeColor","nodeShape","lineColor","filters","tabBy"],Q=[];$.forEach(J=>{const ae=s.optionsState.components[J];if(ae)for(const{selectedSource:U}of ae.selectorStates)Q.push(U)}),[...I.freeOptionsSet].forEach(J=>{var U,G,K;const ae=I.getSourceInfo(J);ae.kind==="axis"&&((U=ae.annotations)!=null&&U[DC])&&((G=ae.annotations)==null?void 0:G[DC])!=="homogeneous"&&((K=ae.annotations)==null?void 0:K[DC])!=="homogenous"&&Q.push(J)}),[...I.axesToBeFixedSet].forEach(J=>{Q.push(J)});const ee={};for(const J of Q)if(k&&!h.value[J]){const ae=await c.getUniqueSourceValuesWithLabels(k,I,J);if(!ae.length)continue;ae.sort((U,G)=>U.label.localeCompare(G.label,"en",{numeric:!0})),ee[J]={list:ae.map(U=>U.value),options:ae,labels:ae.reduce((U,G)=>(U[G.value]=G.label,U),{})}}h.value={...h.value,...ee},D===b.value&&(f.value=I,g.value.loading.inputGuide=!1,g.value.loading.initialInputGuide=!1)},{immediate:!0,deep:!0});const C=d.ref(0);if(d.watch([()=>f.value,()=>s.template,()=>s.layersSettings,()=>s.axesSettings,()=>s.statisticsSettings,()=>s.dataBindAes,()=>s.chartScale,()=>s.lassoMode],async([x])=>{C.value++;const k=C.value;g.value.loading.chartData=!0;const _=await $le(x,h.value,s,d.toRaw(t.value),a.value);k===C.value&&(A.value=_,x.ready&&(g.value.loading.initialCharts=!1),g.value.loading.chartData=!1)},{immediate:!0,deep:!0}),s.chartType==="dendro"){const x=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>f.value.readyData,()=>a.value],async([k,_,D,O])=>{if(D&&_){x.value++;const I=x.value;g.value.loading.dendroTableData=!0;const $=await HR(k,_,O),Q=await c.createTableData(_,$);x.value===I&&(m.value=Q),g.value.loading.dendroTableData=!1}},{immediate:!0})}return d.provide(HI,g),g}function da(){return zee(d.inject(HI),"Empty store")}const Ule={class:"template-list"},jle=["onClick"],Gle=["onClick"],Yle=["onClick"],Wle=["onClick"],Xle=d.defineComponent({__name:"TemplateForm",setup(e){const t=da(),n=Object.entries(Yy).map(([A,h])=>({id:A,text:h.map(m=>H0[m]).join(" + "),icon:Vf[A]})),r=Object.entries(Ov).map(([A,h])=>({id:A,text:h.map(m=>H0[m]).join(" + "),icon:Vf[A]})),a=Object.entries(CR).map(([A,h])=>({id:A,text:h.map(m=>H0[m]).join(" + "),icon:Vf[A]})),i=[{id:"heatmap",text:"Heatmap",icon:Vf.heatmap},{id:"heatmapClustered",text:"Heatmap + Dendro",icon:Vf.heatmapClustered}],o=[{id:"dendro",text:"Dendrogram",icon:Vf.dendro}],s=[{id:"bins",text:"Histogram",icon:Vf.bar}],c=[{id:"bubble",text:"Bubble plot",icon:Vf.bubble}];function f(A){t.value.reactive.template=A}return(A,h)=>(d.openBlock(),d.createElementBlock("div",{class:"template-form",onClick:h[0]||(h[0]=m=>m.stopPropagation())},[h[8]||(h[8]=d.createElementVNode("div",{class:"template-title"},[d.createElementVNode("h3",null," Template ")],-1)),d.createElementVNode("div",Ule,[d.unref(t).reactive.chartType==="discrete"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(d.unref(n),({id:m,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===m}]),onClick:C=>f(m)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[1]||(h[1]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,jle))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="scatterplot"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(d.unref(r),({id:m,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===m}]),onClick:C=>f(m)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[2]||(h[2]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Gle))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="scatterplot-umap"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:2},d.renderList(d.unref(a),({id:m,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===m}]),onClick:C=>f(m)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[3]||(h[3]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Yle))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="heatmap"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:3},d.renderList(i,({id:m,text:g,icon:b})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===m}]),onClick:C=>f(m)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[4]||(h[4]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Wle)),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="dendro"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:4},d.renderList(o,({text:m,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(m)+" ",1),h[5]||(h[5]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="histogram"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:5},d.renderList(s,({text:m,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(m)+" ",1),h[6]||(h[6]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="bubble"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:6},d.renderList(c,({text:m,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(m)+" ",1),h[7]||(h[7]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0)])]))}});function FR(e,t,n,r,a){return d.computed({get(){return e.value.components[t].selectorStates.map(i=>i.selectedSource)},set(i){if(!r)return;const o=i.map(s=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===s);if(c)return c;{const f=a.value.getSourceInfo(s),A=f.kind==="column"?f.axesToBeFixed.map(h=>{var b,C;const m=a.value.axesToBeFixedSet.has(h);let g;if(m)for(const{selectorStates:x}of Object.values(e.value.components)){for(const k of x){const _=(C=(b=k.fixedAxes)==null?void 0:b.find(D=>D.axisSource===h&&D.axisValue!==void 0))==null?void 0:C.axisValue;if(_){g=_;break}}if(g)break}return console.log(g,"axisValue new"),{axisSource:h,axisIdx:f.axesToBeFixedIndexes[h],axisValue:g}}):[];return f.isSubsetFilter?{selectedSource:s,type:"subset",fixedAxes:A}:f.isDiscreteFilter?{selectedSource:s,type:"equals",selectedFilterValue:void 0,fixedAxes:A}:{selectedSource:s,type:"range",selectedFilterRange:{min:void 0,max:void 0},fixedAxes:A}}});e.value=n.changeSelected(t,r,e.value,o)}})}function VR(e,t,n,r,a){return d.computed({get(){return e.value.components[t].selectorStates.map(i=>i.selectedSource)},set(i){if(!r)return;const o=i.map(s=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===s);if(c)return c;{const f=a.value.getSourceInfo(s),A=f.kind==="column"?f.axesToBeFixed.map(h=>{var b,C;const m=a.value.axesToBeFixedSet.has(h);let g;if(m)for(const{selectorStates:x}of Object.values(e.value.components)){for(const k of x){const _=(C=(b=k.fixedAxes)==null?void 0:b.find(D=>D.axisSource===h&&D.axisValue!==void 0))==null?void 0:C.axisValue;if(_){g=_;break}}if(g)break}return console.log(g,"axisValue new"),{axisSource:h,axisIdx:f.axesToBeFixedIndexes[h],axisValue:g}}):[];return{selectedSource:s,fixedAxes:A}}});e.value=n.changeSelected(t,r,e.value,o)}})}function OR(e,t,n,r){return d.computed({get(){var a;return((a=e.value.components[t].selectorStates.map(i=>i.selectedSource))==null?void 0:a[0])??void 0},set(a){r&&(e.value=n.changeSelected(t,r,e.value,typeof a>"u"?[]:[{selectedSource:a}]))}})}function Kle(e,t,n){const r=e.options.map(i=>({text:t(i.value).label,value:i.value}));return n.selectorStates.map(i=>i.selectedSource).forEach(i=>{const o=t(i),s=e.stateConsistency[i]===!1;r.unshift({text:s?"Inconsistent value":o.label,value:i})}),r.sort((i,o)=>i.text>o.text?1:-1)}function QR(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=Kle(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function MS(e,t){if(!e.value.readyData)return[];const n=new Set;return t.forEach(r=>{e.value.components[r].options.forEach(({value:i})=>{n.add(i)})}),[...n].map(r=>({id:r,info:e.value.getSourceInfo(r)})).sort((r,a)=>r.info.label.localeCompare(a.info.label))}function Zle(e,t){return MS(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function Jle(e,t){return MS(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function zR(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function Ky(e,t){return zR(e,t)?" ":""}function qle(e){var n;const t=(n=e==null?void 0:e[DC])==null?void 0:n.toLowerCase();return!!t&&t!=="homogenous"&&t!=="homogeneous"}function UR(e,t,n){return n.reduce((r,a)=>{var A;const i=e.getSourceInfo(a),s=[...Object.keys(e.components).filter(h=>e.components[h].options.find(m=>m.value===a))],c=Object.values(e.components).some(({stateConsistency:h})=>h[a]===!1),f=(((A=t[a])==null?void 0:A.options)??[]).sort((h,m)=>h.label>m.label?1:-1).map(h=>h.label);return r[a]={id:a,title:c?"Inconsistent value":i.label,type:i.type,nonHomogenous:i.kind==="axis"&&qle(i.annotations),isSubsetFilter:i.isSubsetFilter,isDiscreteFilter:i.isDiscreteFilter,availableBasketIds:new Set(s),uniqueValues:f,axesToBeFixed:i.kind==="column"?i.axesToBeFixed:[],axesToBeFixedInfo:i.kind==="column"?i.axesToBeFixed.reduce((h,m)=>{const g=e.getSourceInfo(m);return h[m]={title:g.label,type:g.type,idx:i.axesToBeFixedIndexes[m]},h},{}):{}},r},{})}const DS=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
27
+ }`;var Ta=_E(function(){return Va(De,Un+"return "+Ot).apply(n,Ue)});if(Ta.source=Ot,gh(Ta))throw Ta;return Ta}function bM(w){return lo(w).toLowerCase()}function q9(w){return lo(w).toUpperCase()}function EM(w,B,F){if(w=lo(w),w&&(F||B===n))return Nt(w);if(!w||!(B=kl(B)))return w;var ne=gi(w),ve=gi(B),De=wa(ne,ve),Ue=Go(ne,ve)+1;return Fu(ne,De,Ue).join("")}function e4(w,B,F){if(w=lo(w),w&&(F||B===n))return w.slice(0,zd(w)+1);if(!w||!(B=kl(B)))return w;var ne=gi(w),ve=Go(ne,gi(B))+1;return Fu(ne,0,ve).join("")}function TE(w,B,F){if(w=lo(w),w&&(F||B===n))return w.replace(pn,"");if(!w||!(B=kl(B)))return w;var ne=gi(w),ve=wa(ne,gi(B));return Fu(ne,ve).join("")}function xM(w,B){var F=ae,ne=U;if(Ml(B)){var ve="separator"in B?B.separator:ve;F="length"in B?Ca(B.length):F,ne="omission"in B?kl(B.omission):ne}w=lo(w);var De=w.length;if(Lc(w)){var Ue=gi(w);De=Ue.length}if(F>=De)return w;var Ke=F-su(ne);if(Ke<1)return ne;var st=Ue?Fu(Ue,0,Ke).join(""):w.slice(0,Ke);if(ve===n)return st+ne;if(Ue&&(Ke+=st.length-Ke),$2(ve)){if(w.slice(Ke).search(ve)){var Rt,Ht=st;for(ve.global||(ve=Ts(ve.source,lo(bn.exec(ve))+"g")),ve.lastIndex=0;Rt=ve.exec(Ht);)var Ot=Rt.index;st=st.slice(0,Ot===n?Ke:Ot)}}else if(w.indexOf(kl(ve),Ke)!=Ke){var fn=st.lastIndexOf(ve);fn>-1&&(st=st.slice(0,fn))}return st+ne}function SM(w){return w=lo(w),w&&We.test(w)?w.replace(Dr,Rc):w}var BM=z(function(w,B,F){return w+(F?" ":"")+B.toUpperCase()}),t4=N("toUpperCase");function n4(w,B,F){return w=lo(w),B=F?n:B,B===n?e0(w)?ah(w):Gr(w):w.match(B)||[]}var _E=ia(function(w,B){try{return Ar(w,n,B)}catch(F){return gh(F)?F:new pr(F)}}),kM=Jd(function(w,B){return Qr(B,function(F){F=Uu(F),ps(w,F,Yt(w[F],w))}),w});function TM(w){var B=w==null?0:w.length,F=br();return w=B?fe(w,function(ne){if(typeof ne[1]!="function")throw new Ys(o);return[F(ne[0]),ne[1]]}):[],ia(function(ne){for(var ve=-1;++ve<B;){var De=w[ve];if(Ar(De[0],this,ne))return Ar(De[1],this,ne)}})}function _M(w){return sp(Sl(w,h))}function r4(w){return function(){return w}}function PM(w,B){return w==null||w!==w?B:w}var MM=Qe(),a4=Qe(!0);function Hf(w){return w}function i4(w){return wf(typeof w=="function"?w:Sl(w,h))}function DM(w){return Eu(Sl(w,h))}function HM(w,B){return Pi(w,Sl(B,h))}var IM=ia(function(w,B){return function(F){return Fl(F,w,B)}}),LM=ia(function(w,B){return function(F){return Fl(w,F,B)}});function o4(w,B,F){var ne=Bu(B),ve=$l(B,ne);F==null&&!(Ml(B)&&(ve.length||!ne.length))&&(F=B,B=w,w=this,ve=$l(B,Bu(B)));var De=!(Ml(F)&&"chain"in F)||!!F.chain,Ue=wp(w);return Qr(ve,function(Ke){var st=B[Ke];w[Ke]=st,Ue&&(w.prototype[Ke]=function(){var Rt=this.__chain__;if(De||Rt){var Ht=w(this.__wrapped__),Ot=Ht.__actions__=rl(this.__actions__);return Ot.push({func:st,args:arguments,thisArg:w}),Ht.__chain__=Rt,Ht}return st.apply(w,xe([this.value()],arguments))})}),w}function RM(){return $a._===this&&($a._=yA),this}function l4(){}function PE(w){return w=Ca(w),ia(function(B){return Cf(B,w)})}var s4=cn(fe),NM=cn(ls),$M=cn(un);function ny(w){return _n(w)?Z(Uu(w)):On(w)}function ry(w){return function(B){return w==null?n:qo(w,B)}}var FM=al(),VM=al(!0);function u4(){return[]}function c4(){return!1}function OM(){return{}}function QM(){return""}function zM(){return!0}function ME(w,B){if(w=Ca(w),w<1||w>re)return[];var F=ce,ne=Lo(w,ce);B=br(B),w-=ce;for(var ve=it(ne,B);++F<w;)B(F);return ve}function UM(w){return xa(w)?fe(w,Uu):li(w)?[w]:rl(Gm(lo(w)))}function jM(w){var B=++Fc;return lo(w)+B}var GM=Vt(function(w,B){return w+B},0),YM=oi("ceil"),WM=Vt(function(w,B){return w/B},1),XM=oi("floor");function KM(w){return w&&w.length?Xs(w,Hf,vu):n}function ZM(w,B){return w&&w.length?Xs(w,br(B,2),vu):n}function JM(w){return po(w,Hf)}function qM(w,B){return po(w,br(B,2))}function eD(w){return w&&w.length?Xs(w,Hf,Jl):n}function tD(w,B){return w&&w.length?Xs(w,br(B,2),Jl):n}var nD=Vt(function(w,B){return w*B},1),rD=oi("round"),aD=Vt(function(w,B){return w-B},0);function iD(w){return w&&w.length?ot(w,Hf):0}function Av(w,B){return w&&w.length?ot(w,br(B,2)):0}return ke.after=Ze,ke.ary=Ct,ke.assign=Mf,ke.assignIn=cv,ke.assignInWith=_1,ke.assignWith=Ch,ke.at=vE,ke.before=Ut,ke.bind=Yt,ke.bindAll=kM,ke.bindKey=Qt,ke.castArray=uE,ke.chain=tv,ke.chunk=s0,ke.compact=Ym,ke.concat=kf,ke.cond=TM,ke.conforms=_M,ke.constant=r4,ke.countBy=Og,ke.create=P1,ke.curry=Cn,ke.curryRight=Fn,ke.debounce=zn,ke.defaults=M1,ke.defaultsDeep=O2,ke.defer=Ql,ke.delay=At,ke.difference=Wa,ke.differenceBy=Pl,ke.differenceWith=Oo,ke.drop=ys,ke.dropRight=bc,ke.dropRightWhile=dh,ke.dropWhile=ws,ke.fill=v1,ke.filter=iv,ke.flatMap=zg,ke.flatMapDeep=L9,ke.flatMapDepth=Ug,ke.flatten=Wm,ke.flattenDeep=hp,ke.flattenDepth=Su,ke.flip=qe,ke.flow=MM,ke.flowRight=a4,ke.fromPairs=Xm,ke.functions=wE,ke.functionsIn=eM,ke.groupBy=gp,ke.initial=Km,ke.intersection=Lg,ke.intersectionBy=Tf,ke.intersectionWith=Ah,ke.invert=CE,ke.invertBy=tM,ke.invokeMap=L2,ke.iteratee=i4,ke.keyBy=R9,ke.keys=Bu,ke.keysIn=Df,ke.map=p0,ke.mapKeys=nM,ke.mapValues=rM,ke.matches=DM,ke.matchesProperty=HM,ke.memoize=mt,ke.merge=aM,ke.mergeWith=bE,ke.method=IM,ke.methodOf=LM,ke.mixin=o4,ke.negate=nn,ke.nthArg=PE,ke.omit=iM,ke.omitBy=oM,ke.once=Jn,ke.orderBy=N9,ke.over=s4,ke.overArgs=Sr,ke.overEvery=NM,ke.overSome=$M,ke.partial=Ln,ke.partialRight=Br,ke.partition=S1,ke.pick=lM,ke.pickBy=EE,ke.property=ny,ke.propertyOf=ry,ke.pull=y1,ke.pullAll=mp,ke.pullAllBy=Vs,ke.pullAllWith=DA,ke.pullAt=vl,ke.range=FM,ke.rangeRight=VM,ke.rearg=bs,ke.reject=p,ke.remove=Cs,ke.rest=Mi,ke.reverse=ph,ke.sampleSize=T,ke.set=W9,ke.setWith=X9,ke.shuffle=L,ke.slice=f0,ke.sortBy=Ce,ke.sortedUniq=Jm,ke.sortedUniqBy=d0,ke.split=yM,ke.spread=HA,ke.tail=S2,ke.take=B2,ke.takeRight=w1,ke.takeRightWhile=qm,ke.takeWhile=_9,ke.tap=I9,ke.throttle=$9,ke.thru=Sd,ke.toArray=uv,ke.toPairs=G2,ke.toPairsIn=xE,ke.toPath=UM,ke.toPlainObject=U9,ke.transform=Kg,ke.unary=FP,ke.union=P9,ke.unionBy=k2,ke.unionWith=T2,ke.uniq=vp,ke.uniqBy=M9,ke.uniqWith=mh,ke.unset=Zg,ke.unzip=ev,ke.unzipWith=gl,ke.update=sM,ke.updateWith=SE,ke.values=dv,ke.valuesIn=uM,ke.without=D9,ke.words=n4,ke.wrap=VP,ke.xor=_2,ke.xorBy=Fg,ke.xorWith=H9,ke.zip=P2,ke.zipObject=M2,ke.zipObjectDeep=D2,ke.zipWith=Pf,ke.entries=G2,ke.entriesIn=xE,ke.extend=cv,ke.extendWith=_1,o4(ke,ke),ke.add=GM,ke.attempt=_E,ke.camelCase=kE,ke.capitalize=Jg,ke.ceil=YM,ke.clamp=BE,ke.clone=cE,ke.cloneDeep=QP,ke.cloneDeepWith=fE,ke.cloneWith=OP,ke.conformsTo=F9,ke.deburr=qg,ke.defaultTo=PM,ke.divide=WM,ke.endsWith=Y2,ke.eq=IA,ke.escape=ey,ke.escapeRegExp=ty,ke.every=Qg,ke.find=E1,ke.findIndex=pp,ke.findKey=j9,ke.findLast=I2,ke.findLastIndex=u0,ke.findLastKey=Q2,ke.floor=XM,ke.forEach=x1,ke.forEachRight=vh,ke.forIn=Xg,ke.forInRight=gE,ke.forOwn=z2,ke.forOwnRight=yE,ke.get=G9,ke.gt=zP,ke.gte=UP,ke.has=U2,ke.hasIn=fv,ke.head=c0,ke.identity=Hf,ke.includes=ov,ke.indexOf=MA,ke.inRange=cM,ke.invoke=j2,ke.isArguments=B1,ke.isArray=xa,ke.isArrayBuffer=jP,ke.isArrayLike=Js,ke.isArrayLikeObject=zl,ke.isBoolean=jg,ke.isBuffer=yp,ke.isDate=GP,ke.isElement=YP,ke.isEmpty=dE,ke.isEqual=WP,ke.isEqualWith=N2,ke.isError=gh,ke.isFinite=V9,ke.isFunction=wp,ke.isInteger=Gg,ke.isLength=Yg,ke.isMap=O9,ke.isMatch=AE,ke.isMatchWith=pE,ke.isNaN=yh,ke.isNative=XP,ke.isNil=ZP,ke.isNull=KP,ke.isNumber=sv,ke.isObject=Ml,ke.isObjectLike=Ul,ke.isPlainObject=k1,ke.isRegExp=$2,ke.isSafeInteger=JP,ke.isSet=Q9,ke.isString=F2,ke.isSymbol=li,ke.isTypedArray=wh,ke.isUndefined=V2,ke.isWeakMap=Wg,ke.isWeakSet=hE,ke.join=_f,ke.kebabCase=dM,ke.last=ju,ke.lastIndexOf=g1,ke.lowerCase=K9,ke.lowerFirst=Z9,ke.lt=mE,ke.lte=z9,ke.max=KM,ke.maxBy=ZM,ke.mean=JM,ke.meanBy=qM,ke.min=eD,ke.minBy=tD,ke.stubArray=u4,ke.stubFalse=c4,ke.stubObject=OM,ke.stubString=QM,ke.stubTrue=zM,ke.multiply=nD,ke.nth=Zm,ke.noConflict=RM,ke.noop=l4,ke.now=Fe,ke.pad=AM,ke.padEnd=pM,ke.padStart=PZ,ke.parseInt=hM,ke.random=fM,ke.reduce=R2,ke.reduceRight=lv,ke.repeat=mM,ke.replace=vM,ke.result=Y9,ke.round=rD,ke.runInContext=tt,ke.sample=v,ke.size=j,ke.snakeCase=gM,ke.some=te,ke.sortedIndex=Rg,ke.sortedIndexBy=Ng,ke.sortedIndexOf=nA,ke.sortedLastIndex=hh,ke.sortedLastIndexBy=$g,ke.sortedLastIndexOf=rA,ke.startCase=wM,ke.startsWith=J9,ke.subtract=aD,ke.sum=iD,ke.sumBy=Av,ke.template=CM,ke.times=ME,ke.toFinite=h0,ke.toInteger=Ca,ke.toLength=T1,ke.toLower=bM,ke.toNumber=aA,ke.toSafeInteger=qP,ke.toString=lo,ke.toUpper=q9,ke.trim=EM,ke.trimEnd=e4,ke.trimStart=TE,ke.truncate=xM,ke.unescape=SM,ke.uniqueId=jM,ke.upperCase=BM,ke.upperFirst=t4,ke.each=x1,ke.eachRight=vh,ke.first=c0,o4(ke,function(){var w={};return ii(ke,function(B,F){ja.call(ke.prototype,F)||(w[F]=B)}),w}(),{chain:!1}),ke.VERSION=r,Qr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(w){ke[w].placeholder=ke}),Qr(["drop","take"],function(w,B){Nr.prototype[w]=function(F){F=F===n?1:Fi(Ca(F),0);var ne=this.__filtered__&&!B?new Nr(this):this.clone();return ne.__filtered__?ne.__takeCount__=Lo(F,ne.__takeCount__):ne.__views__.push({size:Lo(F,ce),type:w+(ne.__dir__<0?"Right":"")}),ne},Nr.prototype[w+"Right"]=function(F){return this.reverse()[w](F).reverse()}}),Qr(["filter","map","takeWhile"],function(w,B){var F=B+1,ne=F==Y||F==oe;Nr.prototype[w]=function(ve){var De=this.clone();return De.__iteratees__.push({iteratee:br(ve,3),type:F}),De.__filtered__=De.__filtered__||ne,De}}),Qr(["head","last"],function(w,B){var F="take"+(B?"Right":"");Nr.prototype[w]=function(){return this[F](1).value()[0]}}),Qr(["initial","tail"],function(w,B){var F="drop"+(B?"":"Right");Nr.prototype[w]=function(){return this.__filtered__?new Nr(this):this[F](1)}}),Nr.prototype.compact=function(){return this.filter(Hf)},Nr.prototype.find=function(w){return this.filter(w).head()},Nr.prototype.findLast=function(w){return this.reverse().find(w)},Nr.prototype.invokeMap=ia(function(w,B){return typeof w=="function"?new Nr(this):this.map(function(F){return Fl(F,w,B)})}),Nr.prototype.reject=function(w){return this.filter(nn(br(w)))},Nr.prototype.slice=function(w,B){w=Ca(w);var F=this;return F.__filtered__&&(w>0||B<0)?new Nr(F):(w<0?F=F.takeRight(-w):w&&(F=F.drop(w)),B!==n&&(B=Ca(B),F=B<0?F.dropRight(-B):F.take(B-w)),F)},Nr.prototype.takeRightWhile=function(w){return this.reverse().takeWhile(w).reverse()},Nr.prototype.toArray=function(){return this.take(ce)},ii(Nr.prototype,function(w,B){var F=/^(?:filter|find|map|reject)|While$/.test(B),ne=/^(?:head|last)$/.test(B),ve=ke[ne?"take"+(B=="last"?"Right":""):B],De=ne||/^find/.test(B);ve&&(ke.prototype[B]=function(){var Ue=this.__wrapped__,Ke=ne?[1]:arguments,st=Ue instanceof Nr,Rt=Ke[0],Ht=st||xa(Ue),Ot=function(ei){var pi=ve.apply(ke,xe([ei],Ke));return ne&&fn?pi[0]:pi};Ht&&F&&typeof Rt=="function"&&Rt.length!=1&&(st=Ht=!1);var fn=this.__chain__,Un=!!this.__actions__.length,_r=De&&!fn,Ta=st&&!Un;if(!De&&Ht){Ue=Ta?Ue:new Nr(this);var zr=w.apply(Ue,Ke);return zr.__actions__.push({func:Sd,args:[Ot],thisArg:n}),new Ko(zr,fn)}return _r&&Ta?w.apply(this,Ke):(zr=this.thru(Ot),_r?ne?zr.value()[0]:zr.value():zr)})}),Qr(["pop","push","shift","sort","splice","unshift"],function(w){var B=_s[w],F=/^(?:push|sort|unshift)$/.test(w)?"tap":"thru",ne=/^(?:pop|shift)$/.test(w);ke.prototype[w]=function(){var ve=arguments;if(ne&&!this.__chain__){var De=this.value();return B.apply(xa(De)?De:[],ve)}return this[F](function(Ue){return B.apply(xa(Ue)?Ue:[],ve)})}}),ii(Nr.prototype,function(w,B){var F=ke[B];if(F){var ne=F.name+"";ja.call(sd,ne)||(sd[ne]=[]),sd[ne].push({name:B,func:F})}}),sd[lt(n,k).name]=[{name:"wrapper",func:n}],Nr.prototype.clone=Gn,Nr.prototype.reverse=du,Nr.prototype.value=_i,ke.prototype.at=nv,ke.prototype.chain=A0,ke.prototype.commit=rv,ke.prototype.next=av,ke.prototype.plant=b1,ke.prototype.reverse=Vg,ke.prototype.toJSON=ke.prototype.valueOf=ke.prototype.value=H2,ke.prototype.first=ke.prototype.head,cs&&(ke.prototype[cs]=C1),ke},Nc=rp();ze?((ze.exports=Nc)._=Nc,he._=Nc):$a._=Nc}).call(yy)}(oC,oC.exports);var qte=oC.exports;const Ir=z1(qte);var ene="pl7.app/axisNature",tne="pl7.app/label",nne="pl7.app/isLabel",rne="pl7.app/columnAsAxis/name",ane="pl7.app/columnAsAxis/domain",L5="pl7.app/isSubset",R5="pl7.app/isDiscreteFilter",ine="pl7.app/discreteValues",one="pl7.app/graph/axis/highCardinality",lne="pl7.app/graph/isVirtual",hi=class K4{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return Tp(this)}static fromAxisSpec(t){return new K4({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>K4.fromAxisSpec(n))}copy(){return new K4({type:this.type,name:this.name,domain:this.domain})}toPFrameId(){return{type:this.type,name:this.name,domain:this.domain}}static fromPojo(t){return new K4(t)}},By=class Lee{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return Tp(this)}static fromPojo(t){return new Lee(t)}};function or(e){return e!==null&&e.kind==="column"}function ky(e){return e!==null&&e.kind==="axis"}function Sn(e){const t=JSON.parse(e);if(t.kind==="column")return By.fromPojo(t);if(t.kind==="axis")return hi.fromPojo(t);throw Error("wrong column or axis object")}async function sne(e,t,n){if(n){const r=await e.pFrameProvider.getTableOuterJoin([t,n],[]),a=r.columnsData[t.toCanonicalString()],i=r.columnsData[n.toCanonicalString()];return a.reduce((o,s,c)=>(o[String(s)]=String(i[c]),o),{})}return null}async function une(e,t,n,r){if(r){const{data:a,axesData:i}=await e.pFrameProvider.getSingleColumnData(r);return i[t.toCanonicalString()].reduce((s,c,f)=>(s[String(c)]=String(a[f]),s),{})}return null}async function cne(e,t,n,r,a){var i,o,s,c;const f=Sn(t);if(or(f)){const A=await e.pFrameProvider.getColumnSpecById(f);if(!A)return;const h=[],m={};A.axesSpec.forEach((b,C)=>{const x=hi.fromAxisSpec(b).toCanonicalString();a.has(x)||(h.push(x),m[x]=C)});const g={kind:"column",name:A.name,label:n??await Oa(e,t,[]),type:A.valueType,spec:A,annotations:A.annotations,isSubsetFilter:((i=A.annotations)==null?void 0:i[L5])==="true",isDiscreteFilter:A.valueType==="String"||((o=A.annotations)==null?void 0:o[R5])==="true",axesToBeFixed:h,axesToBeFixedIndexes:m};r.set(f.toCanonicalString(),g);for(const b of A.axesSpec){const x=hi.fromAxisSpec(b).toCanonicalString();if(r.has(x))continue;const k=ZI(b),_={kind:"axis",name:b.name,label:await Oa(e,x,[t]),type:b.type,mustBeConsumed:k,dividable:!1,spec:b,annotations:b.annotations,isSubsetFilter:((s=b.annotations)==null?void 0:s[L5])==="true",isDiscreteFilter:b.type==="String"||((c=b.annotations)==null?void 0:c[R5])==="true",parentSources:[t]};r.set(x,_)}}}function XI(e){const t=Sn(e),{name:n,type:r}=t;return or(t)?{kind:"column",name:"",label:" ",type:t.type,spec:{axesSpec:[],kind:"PColumn",valueType:t.type,name:n},annotations:void 0,isSubsetFilter:!1,isDiscreteFilter:t.type==="String",axesToBeFixed:[],axesToBeFixedIndexes:{}}:{kind:"axis",name:"",label:" ",type:r,spec:{type:r,name:n},mustBeConsumed:!1,dividable:!1,annotations:void 0,isSubsetFilter:!1,isDiscreteFilter:r==="String",parentSources:[]}}function lC(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function fne(e){const{selectedSource:t,type:n,selectedFilterRange:r,selectedFilterValue:a}=e,i=Sn(t);if(!i)throw Error("Empty source selected");if(n==="range"){const o=[];return(r==null?void 0:r.max)!==void 0&&o.push({type:"bySingleColumnV2",column:ky(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"LessOrEqual",reference:r.max}}),(r==null?void 0:r.min)!==void 0&&o.push({type:"bySingleColumnV2",column:ky(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"GreaterOrEqual",reference:r==null?void 0:r.min}}),o}else if(n==="subset")return[{type:"bySingleColumnV2",column:ky(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Not",operand:{operator:"IsNA"}}}];return typeof a>"u"?[]:[{type:"bySingleColumnV2",column:ky(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Equal",reference:i.type==="String"?String(a):Number(a)}}]}function X1(e){const t=[];for(const n of e)t.push(...fne(n));return t}function Zx(e){var t,n,r,a;if("kind"in e&&e.kind==="PColumn"){const s=(n=e.name)!=null?n:(t=e.annotations)==null?void 0:t[rne],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[ane];return Tp({name:s,domain:c})}const i=e.name,o=e.domain;return Tp({name:i,domain:o})}async function KI(e,t,n){var r;for(const a of n){const i=Sn(a);if(or(i)){const o=await e.pFrameProvider.getColumnSpecById(i),s=(r=o==null?void 0:o.axesSpec)==null?void 0:r.find(c=>hi.fromAxisSpec(c).toCanonicalString()===t.toCanonicalString());if(s)return s}}return null}var dne="pl7.app/label";async function Ei(e,t,n){const r=Sn(t);async function a(f){const A=await KI(e,f,n);return A?Zx(A):null}async function i(f){const A=await e.pFrameProvider.getColumnSpecById(f);return A?Zx(A):null}const o=await e.pFrameProvider.getColumns([],!1,void 0,[dne]),s=or(r)?await i(r):await a(r),c=await Promise.all(o.map(async f=>{const A=await e.pFrameProvider.getColumnSpecById(f);return A&&A.axesSpec.length===1&&Zx(A.axesSpec[0])===s})).then(f=>f.findIndex(A=>A===!0));if(c!==-1)return o[c]}async function Oa(e,t,n){var r,a;const i=Sn(t),o=await Ei(e,t,n);let s;if(or(i)?s=await e.pFrameProvider.getColumnSpecById(o??i):s=o?await e.pFrameProvider.getColumnSpecById(o):await KI(e,i,n),!s)return"";const c=(a=(r=s.annotations)==null?void 0:r[tne])!=null?a:s.name;return e.labelsModifier(s.name,c)}function ZI(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[ene])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}function Ty(e){var t,n;return((t=e.annotations)==null?void 0:t[L5])==="true"||((n=e.annotations)==null?void 0:n[R5])==="true",!0}function Ane(e){var t;return!e.name.includes("metadata")&&((t=e.annotations)==null?void 0:t[lne])!=="true"}var Mv=class{constructor(e,t){this.simpleComponentControllers=e,this.filterComponentControllers=t,this.ignoredOptionIdNames=[],this.dataInputs=[],this.dontAllowUnfilteredHighCardinality=!1}get requiredComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].isRequired&&e.push(t);return e}get dimensionsConsumerComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].isDimensionsConsumer&&e.push(t);for(const t of Object.keys(this.filterComponentControllers))this.filterComponentControllers[t].isDimensionsConsumer&&e.push(t);return e}addSelected(e,t,n){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].addSelected(t,n);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].addSelected(t,n);throw Error(`Unknown input name: ${String(e)}`)}deleteSelected(e,t,n,r){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].deleteSelected(n,r.selectedSource);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].deleteSelected(n,r.selectedSource);throw Error(`Unknown input name: ${String(e)}`)}changeSelected(e,t,n,r){const a=n.components[e].selectorStates,i=a.filter(c=>!r.find(f=>f.selectedSource===c.selectedSource)),o=r.filter(c=>!a.find(f=>f.selectedSource===c.selectedSource));let s=lC(n);return i.forEach(c=>{s=this.deleteSelected(e,t,s,c)}),o.forEach(c=>{s=this.addSelected(e,s,c)}),n.components[e].selectorStates=r.map(c=>n.components[e].selectorStates.find(f=>f.selectedSource===c.selectedSource)).filter(Boolean),s}switchDividableAxis(e,t){return lC(e)}async getMustBeConsumedAxes(e,t){return Promise.resolve(new Set)}createEmptyComponentsGuide(e){return Object.fromEntries(Object.entries(e.components).map(([t,n])=>[t,{options:[],optionsInfo:new Map,stateConsistency:{},required:!1,multipleSelectors:!1}]))}async getSelectedSourcesInfo(e,t,n){const r=new Map,a=new Set;for(const i of this.dataInputs)for(const o of t.components[i].selectorStates){const s=Sn(o.selectedSource);if(or(s)){const c=await e.pFrameProvider.getColumnSpecById(s);c&&c.axesSpec.forEach(f=>a.add(hi.fromAxisSpec(f).toCanonicalString()))}}for(const{selectorStates:i}of Object.values(t.components))for(const{selectedSource:o}of i)await cne(e,o,n[o],r,a);return r}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>XI(t),freeOptionsSet:new Set,axesToBeFixedSet:new Set,readyData:!1,ready:!1,consistent:!0}}async getLabelsMap(e,t){const n=await e.pFrameProvider.getColumnsFull(this.dataInputs.reduce((r,a)=>{const o=t.components[a].selectorStates.map(s=>Sn(s.selectedSource));return r.concat(o)},[]),!1);return Jte(n,r=>r.spec).reduce((r,a)=>{const i=new By({name:a.value.columnId,type:a.value.spec.valueType}).toCanonicalString();return r[i]=a.label,r},{})}async calculateOptions(e,t,n=[],r=Ane){var a,i;const o=this.createEmptyComponentsGuide(t),s=new Set;for(const O of this.dimensionsConsumerComponents)for(const{selectedSource:I}of t.components[O].selectorStates)s.add(I);const c=new Set(this.ignoredOptionIdNames),f=new Set(n),A=new Set,h=await this.getLabelsMap(e,t),m=await this.getSelectedSourcesInfo(e,t,h),g=new Map,b={...this.simpleComponentControllers,...this.filterComponentControllers};for(const[O,I]of Object.entries(b)){const $=await I.getOptions(e,t,h,s,r,c,f);this.dataInputs.includes(O)||$.options.forEach(Q=>{A.add(Q.value)});for(const[Q,ee]of $.optionsInfo)g.set(Q,ee);o[O]=$}const C=O=>{const I=g.get(O);I&&I.kind==="axis"&&(I.mustBeConsumed=!0);const $=m.get(O);$&&$.kind==="axis"&&($.mustBeConsumed=!0)},x=await this.getMustBeConsumedAxes(e,t);for(const O of x)C(O);if(this.dontAllowUnfilteredHighCardinality){const O=$=>{var Q;return((Q=$==null?void 0:$.annotations)==null?void 0:Q[one])==="true"},I=(i=(a=t.components.filters)==null?void 0:a.selectorStates.reduce(($,Q)=>{const ee=m.get(Q.selectedSource);return(ee==null?void 0:ee.kind)==="column"&&ee.spec.axesSpec.filter(O).forEach(ae=>$.add(hi.fromAxisSpec(ae).toCanonicalString())),(ee==null?void 0:ee.kind)==="axis"&&O(ee.spec)&&$.add(hi.fromAxisSpec(ee.spec).toCanonicalString()),$},new Set))!=null?i:new Set;this.dataInputs.forEach($=>{for(const{selectedSource:Q}of t.components[$].selectorStates){const ee=m.get(Q);if((ee==null?void 0:ee.kind)==="column"&&ee.spec.axesSpec.filter(O).forEach(ae=>{const U=hi.fromAxisSpec(ae).toCanonicalString();!A.has(U)&&!I.has(U)&&A.add(U),I.has(U)||C(U)}),(ee==null?void 0:ee.kind)==="axis"&&O(ee.spec)){const J=hi.fromAxisSpec(ee.spec).toCanonicalString();A.has(J)||A.add(J),I.has(J)||C(J)}}})}const k=new Set;for(const{selectorStates:O}of Object.values(t.components))for(const{selectedSource:I}of O){const $=m.get(I);$&&$.kind==="column"&&$.axesToBeFixed.forEach(Q=>{k.add(Q)})}const _=await this.isConsistent(e,t),D=O=>{var I,$,Q;const ee=(I=Sn(O).toCanonicalString())!=null?I:O;return(Q=($=g.get(ee))!=null?$:m.get(ee))!=null?Q:XI(O)};return{components:o,getSourceInfo:D,freeOptionsSet:A,axesToBeFixedSet:k,readyData:this.readyDataInputs(t),ready:this.readyForPlotBuilding(e,t,_,A,D),consistent:_}}async getUniqueSourceValuesWithLabels(e,t,n){var r;const a=t.getSourceInfo(n),i=(r=a.annotations)==null?void 0:r[ine],o=i?JSON.parse(i).map(s=>String(s)):null;if(a.kind==="axis"){const s=Sn(n),c=a.parentSources.map(Sn),f=await Ei(e,n,a.parentSources),A=o??await e.pFrameProvider.getAxisUniqueValues(s,c),h=await une(e,s,c[0],f);return A.map(m=>{var g;return{value:m,label:(g=h==null?void 0:h[m])!=null?g:m}})}if(a.kind==="column"){const s=Sn(n),c=await Ei(e,n,[]),f=await e.pFrameProvider.getColumnUniqueValues(s),A=await sne(e,s,c);return f.map(h=>{var m;return{value:h,label:(m=A==null?void 0:A[h])!=null?m:h}})}return[]}async checkStateConsistency(e,t){const n=new Map;for(const r of Object.keys(this.simpleComponentControllers))n.set(r,await this.simpleComponentControllers[r].checkStateConsistency(e,t));for(const r of Object.keys(this.filterComponentControllers))n.set(r,await this.filterComponentControllers[r].checkStateConsistency(e,t));return n}async isConsistent(e,t){const n=await this.checkStateConsistency(e,t);for(const r of n.values())if(Object.values(r).some(a=>!a))return!1;return!0}readyDataInputs(e){return this.dataInputs.every(t=>e.components[t].selectorStates.length>0)}readyForPlotBuilding(e,t,n,r,a){if(!n||!this.readyDataInputs(t))return!1;let i=!1;for(const s of r){const c=a(s);if(c&&c.kind==="axis"&&c.mustBeConsumed){i=!0;break}}let o=!1;for(const{selectorStates:s}of Object.values(t.components)){for(const{selectedSource:c,fixedAxes:f}of s){const A=a(c);if(A&&A.kind==="column"&&A.axesToBeFixed.some(h=>{var m;return((m=(f??[]).find(g=>g.axisSource===h))==null?void 0:m.axisValue)===void 0})){o=!0;break}}if(o)break}return this.requiredComponents.every(s=>t.components[s].selectorStates.length>0)&&!i&&!o}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},JI=class Ree{constructor({componentName:t,allowedTypes:n,settings:r,strictlyDependsOnParents:a,dependsOn:i=[],parentComponents:o=[],annotations:s={},checkSourceBySpec:c}){this.componentName=t,this.allowedTypes=[...n],this.settings={...Ree.DefaultSettings,...r},this.dependsOn=[...i],this.parentComponents=[...o],this.strictlyDependsOnParents=a??!0,this.annotations={...s},c&&(this.checkSourceBySpec=c)}get isRequired(){return this.settings.required}get isDimensionsConsumer(){return this.settings.dimensionConsumer}addSelected(t,n){const r=lC(t);return r.components[this.componentName].selectorStates.push(n),r}deleteSelected(t,n){const r=lC(t);return r.components[this.componentName].selectorStates=r.components[this.componentName].selectorStates.filter(a=>a.selectedSource!==n),r}async checkStateConsistency(t,n){const r=n.components[this.componentName],a=await this.getParentAxes(t,n);function i(s){const c=hi.fromAxisSpec(s);return a.has(c.toCanonicalString())}const o=await Promise.all(r.selectorStates.map(async({selectedSource:s})=>{const c=Sn(s);if(or(c)){const f=await t.pFrameProvider.getColumnSpecById(c);return f?this.parentComponents.length===0?!0:this.strictlyDependsOnParents&&!this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?f.axesSpec.every(h=>i(h)):this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?f.axesSpec.some(h=>i(h)):a.size===0||f.axesSpec.some(h=>i(h)):!1}return a.has(s)}));return r.selectorStates.reduce((s,c,f)=>(s[c.selectedSource]=o[f],s),{})}async getProducingAxes(t,n){const i=n.components[this.componentName].selectorStates.map(c=>Sn(c.selectedSource)).filter(c=>or(c)),o=new Set;return(await Promise.all(i.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{o.add(hi.fromAxisSpec(f).toCanonicalString())})}),o}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,i)=>{const o=n.components[i].selectorStates.map(s=>Sn(s.selectedSource));return a.push(...o),a},[])}async getParentAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),i=new Set;for(const o of a)if(or(o)){const s=await t.pFrameProvider.getColumnSpecById(o);(r=s==null?void 0:s.axesSpec)==null||r.forEach(c=>{const f=hi.fromAxisSpec(c);i.add(f.toCanonicalString())})}return i}async getAllowedAxes(t,n){var r,a,i;const o=this.getParentSelectedSources(t,n),s=new Set,c=new Map;for(const f of o)if(or(f)){const A=await t.pFrameProvider.getColumnSpecById(f);for(const h of(r=A==null?void 0:A.axesSpec)!=null?r:[]){const m=hi.fromAxisSpec(h),g=this.allowedTypes.includes(h.type),b=Object.entries(this.annotations).every(([C,x])=>{var k;return((k=h.annotations)==null?void 0:k[C])===x});if(this.checkSourceBySpec?this.checkSourceBySpec(h,n):g&&b){if(s.has(m.toCanonicalString()))continue;s.add(m.toCanonicalString());const C=ZI(h);c.set(m.toCanonicalString(),{kind:"axis",name:h.name,label:await Oa(t,m.toCanonicalString(),[f.toCanonicalString()]),type:h.type,mustBeConsumed:C,dividable:!1,spec:h,annotations:h.annotations,isSubsetFilter:((a=h.annotations)==null?void 0:a[L5])==="true",isDiscreteFilter:h.type==="String"||((i=h.annotations)==null?void 0:i[R5])==="true",parentSources:[f.toCanonicalString()]})}}}return{axes:s,optionsInfo:c}}async getOptions(t,n,r,a,i,o=new Set,s=new Set){var c,f,A,h;const m=this.settings.multipleSelectors,g=this.settings.required,b=await this.checkStateConsistency(t,n);if(this.dependsOn.length&&this.dependsOn.some(I=>n.components[I].selectorStates.length===0))return{multipleSelectors:m,required:g,stateConsistency:b,options:[],optionsInfo:new Map};if(this.strictlyDependsOnParents&&!this.settings.isDataComponent&&this.parentComponents.some(I=>n.components[I].selectorStates.length===0))return{multipleSelectors:m,required:g,stateConsistency:b,options:[],optionsInfo:new Map};const C=this.getParentSelectedSources(t,n),x=(await t.pFrameProvider.getColumns(C,!this.settings.columnsWithExtraAxesAllowed&&this.strictlyDependsOnParents,this.allowedTypes,void 0,this.annotations)).filter(I=>!a.has(I.toCanonicalString())),{axes:k,optionsInfo:_}=await this.getAllowedAxes(t,n),D=n.components[this.componentName],O=[];if(this.settings.axesAllowed)for(const I of k){const $=Sn(I),Q=_.get($.toCanonicalString()),ee=!this.settings.homogeneous||!(Q!=null&&Q.mustBeConsumed),J=!a.has(I),ae=o.has($.name)||s.has($.toCanonicalString()),U=D.selectorStates.some(G=>G.selectedSource===I);ee&&J&&!ae&&!U&&O.push({value:I})}if(this.settings.columnsAllowed)for(const I of x){const $=I.toCanonicalString(),Q=Sn($),ee=await t.pFrameProvider.getColumnSpecById(Q);if(((c=ee==null?void 0:ee.annotations)==null?void 0:c[nne])==="true"||this.checkSourceBySpec&&ee&&!this.checkSourceBySpec(ee,n)||this.settings.isDataComponent&&ee&&!i(ee))continue;const ae=[],U={};if(this.settings.columnsWithExtraAxesAllowed&&(ee==null||ee.axesSpec.forEach((Y,X)=>{const oe=hi.fromAxisSpec(Y).toCanonicalString();k.has(oe)||(ae.push(oe),U[oe]=X)})),ee){const Y=(f=r[$])!=null?f:await Oa(t,I.toCanonicalString(),[]),X={kind:"column",name:ee.name,label:Y,type:ee.valueType,spec:ee,annotations:ee.annotations,isSubsetFilter:((A=ee.annotations)==null?void 0:A[L5])==="true",isDiscreteFilter:ee.valueType==="String"||((h=ee.annotations)==null?void 0:h[R5])==="true",axesToBeFixed:ae,axesToBeFixedIndexes:U};_.set(Q.toCanonicalString(),X)}const G=o.has(Q.name)||s.has(Q.toCanonicalString()),K=n.components[this.componentName].selectorStates.some(Y=>Y.selectedSource===$);!G&&!K&&O.push({value:$})}return{multipleSelectors:m,required:g,stateConsistency:b,options:O,optionsInfo:_}}};JI.DefaultSettings={isDataComponent:!1,multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,columnsWithExtraAxesAllowed:!0,dimensionConsumer:!1};var nr=JI,pne={type:"bubble",components:{valueSize:{type:"simple",selectorStates:[]},valueColor:{type:"simple",selectorStates:[]},x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}};function sC(e,t){if(!t.length)return[];const n=t.map(i=>Sn(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const o=n.map(s=>{const c=s.toCanonicalString();return or(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(o)}return a}var hne=class extends Mv{constructor(){super({valueSize:new nr({componentName:"valueSize",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueColor"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),valueColor:new nr({componentName:"valueColor",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueSize"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new nr({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),y:new nr({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tooltipContent:new nr({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["valueSize","valueColor"],this.dontAllowUnfilteredHighCardinality=!0}async getMustBeConsumedAxes(e,t){if(!t.components.valueColor.selectorStates.length)return new Set;const n=t.components.valueColor.selectorStates[0].selectedSource,r=await e.pFrameProvider.getColumnSpecById(Sn(n));return r?new Set(r.axesSpec.map(a=>hi.fromAxisSpec(a).toCanonicalString())):new Set}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.valueColor.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("Value column is not valid");const s=Sn(i),c=Sn(o);if(!s||!c||!or(s)&&!or(c))throw Error("Value column is not valid");const f={type:"columns",id:(a=Tp(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=X1(A),m=A.map(ae=>Sn(ae.selectedSource)).filter(or),g=[s,c].filter(or),b=g.map(ae=>ae.toCanonicalString()),C=[t.components.facetBy,t.components.x,t.components.y,t.components.tooltipContent],x=[],k=g.map(()=>[]),_=[];A.forEach(({fixedAxes:ae})=>{k.push((ae??[]).map(({axisIdx:U,axisValue:G})=>({idx:U,value:G})))});for(const ae of C)for(const{selectedSource:U,fixedAxes:G}of ae.selectorStates){x.push(Sn(U)),_.push((G??[]).map(({axisIdx:Y,axisValue:X})=>({idx:Y,value:X})));const K=await Ei(e,U,b);K&&x.push(K)}const D=await e.pFrameProvider.getTableOuterJoin([...g,...m],x,h,!0,k,_);x.forEach(ae=>{const U=ae.toCanonicalString();f.values[U]=or(ae)?D.columnsData[U]:D.axesData[U]}),f.values[i]=or(s)?D.columnsData[i]:D.axesData[i],f.values[o]=or(c)?D.columnsData[o]:D.axesData[o];const O=t.components.x.selectorStates.map(ae=>ae.selectedSource),I=O.join(", "),$=await Promise.all(O.map(async ae=>{var U,G;return(G=(U=await Ei(e,ae,b))==null?void 0:U.toCanonicalString())!=null?G:ae}));f.values[I]=sC(D,O),f.values.xLabels=sC(D,$);const Q=t.components.y.selectorStates.map(ae=>ae.selectedSource),ee=Q.join(", "),J=await Promise.all(Q.map(async ae=>{var U,G;return(G=(U=await Ei(e,ae,b))==null?void 0:U.toCanonicalString())!=null?G:ae}));return f.values[ee]=sC(D,Q),f.values.yLabels=sC(D,J),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.valueColor.selectorStates[0])==null?void 0:n.selectedSource,i=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!a||!i)throw Error("Value column is not valid");const o=Sn(a),s=Sn(i);if(!or(o)&&!or(s))throw Error("Value column is not valid");const c=[o,s].filter(or).map(D=>D.toCanonicalString()),f={type:"column",value:a,label:await Oa(e,a,[])},A={type:"column",value:i,label:await Oa(e,i,[])},m=t.components.x.selectorStates.map(({selectedSource:D})=>D).join(", "),b=t.components.y.selectorStates.map(({selectedSource:D})=>D).join(", "),C=await Promise.all(t.components.facetBy.selectorStates.map(async D=>{var O,I;return{type:"column",value:(I=(O=await Ei(e,D.selectedSource,c))==null?void 0:O.toCanonicalString())!=null?I:D.selectedSource}})),x=(await Promise.all(t.components.x.selectorStates.map(D=>Oa(e,D.selectedSource,c)))).join(", "),k=(await Promise.all(t.components.y.selectorStates.map(D=>Oa(e,D.selectedSource,c)))).join(", "),_=await Promise.all(t.components.tooltipContent.selectorStates.map(async D=>{var O,I;const $=D.selectedSource;return{type:"column",label:await Oa(e,$,c)||$,value:$,valueLabels:(I=(O=await Ei(e,$,c))==null?void 0:O.toCanonicalString())!=null?I:$}}));return{type:"bubble",valueColor:f,valueSize:A,xColumn:{type:"column",value:m,label:x,valueLabels:"xLabels"},yColumn:{type:"column",value:b,label:k,valueLabels:"yLabels"},facetBy:C,tooltips:{show:!0,content:_}}}},mne={type:"histogram",components:{value:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]}},dividedAxes:{}},vne=class extends Mv{constructor(){super({value:new nr({componentName:"value",allowedTypes:["Int","Long","Double","Float"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"]}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!a)throw Error("Value column is not valid");const i=Sn(a);if(!or(i))throw Error("Value column is not valid");const o={type:"columns",id:(r=Tp(t.components))!=null?r:"",values:{}},s=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],c=X1(s),f=s.map(x=>Sn(x.selectedSource)).filter(or),A=[a],h=[t.components.facetBy],m=[],g=[[]],b=[];s.forEach(({fixedAxes:x})=>{g.push((x??[]).map(({axisIdx:k,axisValue:_})=>({idx:k,value:_})))});for(const x of h)for(const{selectedSource:k,fixedAxes:_}of x.selectorStates){m.push(Sn(k)),b.push((_??[]).map(({axisIdx:O,axisValue:I})=>({idx:O,value:I})));const D=await Ei(e,k,A);D&&m.push(D)}const C=await e.pFrameProvider.getTableOuterJoin([i,...f],m,c,!0,g,b);return m.forEach(x=>{const k=x.toCanonicalString();o.values[k]=or(x)?C.columnsData[k]:C.axesData[k]}),o.values[i.toCanonicalString()]=C.columnsData[i.toCanonicalString()],o}async createChartSettings(e,t){var n;const r=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!r)throw Error("Value column is not valid");const a=Sn(r);if(!or(a))throw Error("Value column is not valid");const i=[r],o={type:"column",value:r,label:await Oa(e,r,[])},s=await Promise.all(t.components.facetBy.selectorStates.map(async c=>{var f,A;return{type:"column",value:(A=(f=await Ei(e,c.selectedSource,i))==null?void 0:f.toCanonicalString())!=null?A:c.selectedSource}}));return{type:"histogram",valueColumn:o,facetBy:s}}},gne={type:"discrete",components:{y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},primaryGrouping:{type:"simple",selectorStates:[]},secondaryGrouping:{type:"simple",selectorStates:[]}},dividedAxes:{}},yne=class extends Mv{constructor(){super({y:new nr({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{isDataComponent:!0}}),primaryGrouping:new nr({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new nr({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["y"],this.dontAllowUnfilteredHighCardinality=!0}async createDataByColumns(e,t){var n;const r=t.components.y.selectorStates[0].selectedSource,a=Sn(r);if(!r||!or(a))throw Error("Y column is not valid");const i={type:"columns",id:(n=Tp(t.components))!=null?n:"",values:{}},o=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],s=X1(o),c=o.map(C=>Sn(C.selectedSource)).filter(or),f=[r],A=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],h=[],m=[[]],g=[];o.forEach(({fixedAxes:C})=>{m.push((C??[]).map(({axisIdx:x,axisValue:k})=>({idx:x,value:k})))});for(const C of A)for(const{selectedSource:x,fixedAxes:k}of C.selectorStates){h.push(Sn(x)),g.push((k??[]).map(({axisIdx:D,axisValue:O})=>({idx:D,value:O})));const _=await Ei(e,x,f);_&&h.push(_)}const b=await e.pFrameProvider.getTableOuterJoin([a,...c],h,s,!0,m,g);return h.forEach(C=>{const x=C.toCanonicalString();i.values[x]=or(C)?b.columnsData[x]:b.axesData[x]}),i.values[a.toCanonicalString()]=b.columnsData[a.toCanonicalString()],i}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,i=Sn(a);if(!a||!or(i))throw Error("Y column is not valid");const o={type:"column",value:a,label:await Oa(e,a,[])},s=[a];let c;if(t.components.primaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.primaryGrouping.selectorStates[0];c={columnName:{type:"column",value:h,label:await Oa(e,h,s),valueLabels:(n=await Ei(e,h,s))==null?void 0:n.toCanonicalString()}}}let f;if(t.components.secondaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.secondaryGrouping.selectorStates[0];f={columnName:{type:"column",value:h,label:await Oa(e,h,s),valueLabels:(r=await Ei(e,h,s))==null?void 0:r.toCanonicalString()}}}const A=await Promise.all(t.components.facetBy.selectorStates.map(async h=>{var m,g;return{type:"column",value:(g=(m=await Ei(e,h.selectedSource,s))==null?void 0:m.toCanonicalString())!=null?g:h.selectedSource,label:await Oa(e,h.selectedSource,s)}}));return{type:"discrete",y:o,primaryGrouping:c,secondaryGrouping:f,facetBy:A}}},wne={type:"heatmap",components:{value:{type:"simple",selectorStates:[]},x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},xGroupBy:{type:"simple",selectorStates:[]},yGroupBy:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},annotationsX:{type:"simple",selectorStates:[]},annotationsY:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}};function Jx(e){return e?"kind"in e&&e.kind==="PColumn"?e.valueType==="String":e.type==="String":!0}function uC(e,t){if(!t.length)return[];const n=t.map(i=>Sn(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const o=n.map(s=>{const c=s.toCanonicalString();return or(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(o)}return a}var Cne=class extends Mv{constructor(){super({value:new nr({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new nr({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new nr({componentName:"xGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["x"]}),y:new nr({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),yGroupBy:new nr({componentName:"yGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["y"]}),tooltipContent:new nr({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotationsX:new nr({componentName:"annotationsX",allowedTypes:["Int","Long","Double","Float","String"],parentComponents:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},dependsOn:["x"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.x.selectorStates.map(r=>r.selectedSource),...t.components.xGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?hi.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(hi.fromAxisSpec(e).toCanonicalString())}}),annotationsY:new nr({componentName:"annotationsY",allowedTypes:["Int","Long","Double","Float","String"],parentComponents:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},dependsOn:["y"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.y.selectorStates.map(r=>r.selectedSource),...t.components.yGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?hi.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(hi.fromAxisSpec(e).toCanonicalString())}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"],this.dontAllowUnfilteredHighCardinality=!0}async getMustBeConsumedAxes(e,t){if(!t.components.value.selectorStates.length)return new Set;const n=t.components.value.selectorStates[0].selectedSource,r=await e.pFrameProvider.getColumnSpecById(Sn(n));return r?new Set(r.axesSpec.map(a=>hi.fromAxisSpec(a).toCanonicalString())):new Set}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!a)throw Error("Value column is not valid");const i=Sn(a);if(!or(i))throw Error("Value column is not valid");const o={type:"columns",id:(r=Tp(t.components))!=null?r:"",values:{}},s=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],c=X1(s),f=s.map(ee=>Sn(ee.selectedSource)).filter(or),A=[a],h=[t.components.facetBy,t.components.annotationsX,t.components.annotationsY,t.components.x,t.components.y,t.components.xGroupBy,t.components.yGroupBy,t.components.tooltipContent],m=[],g=[[]],b=[];s.forEach(({fixedAxes:ee})=>{g.push((ee??[]).map(({axisIdx:J,axisValue:ae})=>({idx:J,value:ae})))});for(const ee of h)for(const{selectedSource:J,fixedAxes:ae}of ee.selectorStates){m.push(Sn(J)),b.push((ae??[]).map(({axisIdx:G,axisValue:K})=>({idx:G,value:K})));const U=await Ei(e,J,A);U&&m.push(U)}const C=await e.pFrameProvider.getTableOuterJoin([i,...f],m,c,!0,g,b);m.forEach(ee=>{const J=ee.toCanonicalString();o.values[J]=or(ee)?C.columnsData[J]:C.axesData[J]}),o.values[i.toCanonicalString()]=C.columnsData[i.toCanonicalString()];const x=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(ee=>ee.selectedSource),k=x.join(", ");o.values[k]=uC(C,x);const _=t.components.x.selectorStates.map(ee=>ee.selectedSource),D=await Promise.all(_.map(async ee=>{var J,ae;return(ae=(J=await Ei(e,ee,A))==null?void 0:J.toCanonicalString())!=null?ae:ee}));o.values.xLabelsKey=uC(C,D);const O=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(ee=>ee.selectedSource),I=O.join(", ");o.values[I]=uC(C,O);const $=t.components.y.selectorStates.map(ee=>ee.selectedSource),Q=await Promise.all($.map(async ee=>{var J,ae;return(ae=(J=await Ei(e,ee,A))==null?void 0:J.toCanonicalString())!=null?ae:ee}));return o.values.yLabelsKey=uC(C,Q),o}async createChartSettings(e,t){var n;const r=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!r)throw Error("Value column is not valid");const a=Sn(r);if(!or(a))throw Error("Value column is not valid");const i=[r],o={type:"column",value:r,label:await Oa(e,r,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:O})=>Sn(O)).filter(O=>ky(O)).map(O=>O.toCanonicalString()).join(", "),A=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:O})=>Sn(O)).filter(O=>ky(O)).map(O=>O.toCanonicalString()).join(", "),h=await Promise.all(t.components.facetBy.selectorStates.map(async O=>{var I,$;return{type:"column",value:($=(I=await Ei(e,O.selectedSource,i))==null?void 0:I.toCanonicalString())!=null?$:O.selectedSource}})),m=await Promise.all(t.components.xGroupBy.selectorStates.map(async O=>({type:"column",label:await Oa(e,O.selectedSource,i),value:O.selectedSource}))),g=await Promise.all(t.components.yGroupBy.selectorStates.map(async O=>({type:"column",label:await Oa(e,O.selectedSource,i),value:O.selectedSource}))),b=await e.pFrameProvider.getColumnSpecById(a),C=await Promise.all(t.components.annotationsX.selectorStates.map(async O=>{var I,$;const Q=O.selectedSource,ee=Sn(Q),J=or(ee)?await e.pFrameProvider.getColumnSpecById(ee):($=(I=b==null?void 0:b.axesSpec)==null?void 0:I.find(ae=>hi.fromAxisSpec(ae).toCanonicalString()===Q))!=null?$:null;return{axis:"x",valueColumn:{type:"column",value:Q,label:await Oa(e,Q,i)},type:Jx(J)?"discrete":"continuous"}})),x=await Promise.all(t.components.annotationsY.selectorStates.map(async O=>{var I,$;const Q=O.selectedSource,ee=Sn(Q),J=or(ee)?await e.pFrameProvider.getColumnSpecById(ee):($=(I=b==null?void 0:b.axesSpec)==null?void 0:I.find(ae=>hi.fromAxisSpec(ae).toCanonicalString()===Q))!=null?$:null;return{axis:"y",valueColumn:{type:"column",value:Q,label:await Oa(e,Q,i)},type:Jx(J)?"discrete":"continuous"}})),k=(await Promise.all(t.components.x.selectorStates.map(O=>Oa(e,O.selectedSource,i)))).join(", "),_=(await Promise.all(t.components.y.selectorStates.map(O=>Oa(e,O.selectedSource,i)))).join(", "),D=await Promise.all(t.components.tooltipContent.selectorStates.map(async O=>{var I,$;const Q=O.selectedSource;return{type:"column",label:await Oa(e,Q,i)||Q,value:Q,valueLabels:($=(I=await Ei(e,Q,i))==null?void 0:I.toCanonicalString())!=null?$:Q}}));return{type:"heatmap",valueColumn:o,valueType:Jx(b)?"discrete":"continuous",xColumn:{type:"column",value:c,label:k,valueLabels:"xLabelsKey"},yColumn:{type:"column",value:A,label:_,valueLabels:"yLabelsKey"},facetBy:h,xGroupBy:m,yGroupBy:g,annotations:[...C,...x],tooltips:{show:!0,content:D}}}},bne={type:"scatterplot",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},shape:{type:"simple",selectorStates:[]},size:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Ene=class extends Mv{constructor(){super({x:new nr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new nr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new nr({componentName:"grouping",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),shape:new nr({componentName:"shape",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),size:new nr({componentName:"size",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),tooltipContent:new nr({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),label:new nr({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["x","y"]}async getMustBeConsumedAxes(e,t){if(!t.components.x.selectorStates.length||!t.components.y.selectorStates.length)return new Set;const n=t.components.x.selectorStates[0].selectedSource,r=t.components.y.selectorStates[0].selectedSource,a=await e.pFrameProvider.getColumnSpecById(Sn(n)),i=await e.pFrameProvider.getColumnSpecById(Sn(r));if(!a||!i)return new Set;const o=a.axesSpec.map(A=>hi.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>hi.fromAxisSpec(A).toCanonicalString()),c=o.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!o.some(h=>h===A));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("X or Y column is not valid");const s=Sn(i),c=Sn(o),f={type:"columns",id:(a=Tp(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=X1(A),m=A.map(O=>Sn(O.selectedSource)).filter(or),g=[s,c].filter(or).map(O=>O.toCanonicalString());if(g.length===0)throw Error("One of X and Y should be a column");const b=[s,c,...m],C=[],x=[[],[]],k=[];A.forEach(({fixedAxes:O})=>{x.push((O??[]).map(({axisIdx:I,axisValue:$})=>({idx:I,value:$})))});const _=[t.components.grouping,t.components.size,t.components.shape,t.components.tooltipContent,t.components.facetBy,t.components.label];for(const O of _)for(const{selectedSource:I,fixedAxes:$}of O.selectorStates){C.push(Sn(I)),k.push(($??[]).map(({axisIdx:ee,axisValue:J})=>({idx:ee,value:J})));const Q=await Ei(e,I,g);Q&&C.push(Q)}const D=await e.pFrameProvider.getTableOuterJoin(b,C,h,!1,x,k);return[...b,...C].forEach(O=>{const I=O.toCanonicalString();f.values[I]=or(O)?D.columnsData[I]:D.axesData[I]}),f.values.key=f.values[Object.keys(f.values)[0]].map((O,I)=>I),f}async createChartSettings(e,t){var n,r,a,i;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=o?Sn(o):null,f=s?Sn(s):null;if(!o||!s||!c||!f||!or(c)&&!or(f))throw Error("Empty or invalid required data");const A=[c,f].filter(or).map(D=>D.toCanonicalString()),h={type:"column",value:o,label:await Oa(e,o,A)},m={type:"column",value:s,label:await Oa(e,s,A)},g={type:"column",value:"key"},b=await Promise.all(t.components.facetBy.selectorStates.map(async D=>{var O,I;return{type:"column",value:(I=(O=await Ei(e,D.selectedSource,A))==null?void 0:O.toCanonicalString())!=null?I:D.selectedSource}})),C=Ir.uniq([...t.components.grouping.selectorStates.map(D=>D.selectedSource),...t.components.size.selectorStates.map(D=>D.selectedSource),...t.components.shape.selectorStates.map(D=>D.selectedSource)]),x=await Promise.all(C.map(async D=>{var O,I;return{type:"column",label:await Oa(e,D,A)||D,value:D,valueLabels:(I=(O=await Ei(e,D,A))==null?void 0:O.toCanonicalString())!=null?I:D}})),k=await Promise.all(t.components.tooltipContent.selectorStates.map(async D=>{var O,I;const $=D.selectedSource;return{type:"column",label:await Oa(e,$,A)||$,value:$,valueLabels:(I=(O=await Ei(e,$,A))==null?void 0:O.toCanonicalString())!=null?I:$}}));let _;if(t.components.label.selectorStates.length){const D=t.components.label.selectorStates[0].selectedSource;_={type:"column",value:D,label:await Oa(e,D,A),valueLabels:(i=(a=await Ei(e,D,A))==null?void 0:a.toCanonicalString())!=null?i:D}}return{type:"scatterplot",x:h,y:m,keyColumn:g,facetBy:b,grouping:x,label:_,tooltips:{show:!0,content:k}}}},xne={type:"scatterplot-umap",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Sne=class extends Mv{constructor(){super({x:new nr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new nr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new nr({componentName:"grouping",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),tooltipContent:new nr({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),label:new nr({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Ty}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["x","y"]}async getMustBeConsumedAxes(e,t){if(!t.components.x.selectorStates.length||!t.components.y.selectorStates.length)return new Set;const n=t.components.x.selectorStates[0].selectedSource,r=t.components.y.selectorStates[0].selectedSource,a=await e.pFrameProvider.getColumnSpecById(Sn(n)),i=await e.pFrameProvider.getColumnSpecById(Sn(r));if(!a||!i)return new Set;const o=a.axesSpec.map(A=>hi.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>hi.fromAxisSpec(A).toCanonicalString()),c=o.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!o.some(h=>h===A));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("X or Y column is not valid");const s=Sn(i),c=Sn(o);if(!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=Tp(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=X1(A),m=A.map(O=>Sn(O.selectedSource)).filter(or),g=[s,c].filter(or).map(O=>O.toCanonicalString());if(g.length===0)throw Error("One of X and Y should be a column");const b=[s,c,...m],C=[],x=[[],[]],k=[];A.forEach(({fixedAxes:O})=>{x.push((O??[]).map(({axisIdx:I,axisValue:$})=>({idx:I,value:$})))});const _=[t.components.grouping,t.components.facetBy,t.components.tooltipContent,t.components.label];for(const O of _)for(const{selectedSource:I,fixedAxes:$}of O.selectorStates){C.push(Sn(I)),k.push(($??[]).map(({axisIdx:ee,axisValue:J})=>({idx:ee,value:J})));const Q=await Ei(e,I,g);Q&&C.push(Q)}const D=await e.pFrameProvider.getTableOuterJoin(b,C,h,!1,x,k);return[...b,...C].forEach(O=>{const I=O.toCanonicalString();f.values[I]=or(O)?D.columnsData[I]:D.axesData[I]}),f.values.key=f.values[Object.keys(f.values)[0]].map((O,I)=>I),f}async createChartSettings(e,t){var n,r,a,i;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=o?Sn(o):null,f=s?Sn(s):null;if(!o||!s||!c||!f||!or(c)&&!or(f))throw Error("Empty or invalid required data");const A=[c,f].filter(or).map(_=>_.toCanonicalString()),h={type:"column",value:o,label:await Oa(e,o,A)},m={type:"column",value:s,label:await Oa(e,s,A)},g={type:"column",value:"key"},b=await Promise.all(t.components.facetBy.selectorStates.map(async _=>{var D,O;return{type:"column",value:(O=(D=await Ei(e,_.selectedSource,A))==null?void 0:D.toCanonicalString())!=null?O:_.selectedSource}})),C=await Promise.all(t.components.grouping.selectorStates.map(async _=>{var D,O;const I=_.selectedSource;return{type:"column",label:await Oa(e,I,A)||I,value:I,valueLabels:(O=(D=await Ei(e,I,A))==null?void 0:D.toCanonicalString())!=null?O:I}})),x=await Promise.all(t.components.tooltipContent.selectorStates.map(async _=>{var D,O;const I=_.selectedSource;return{type:"column",label:await Oa(e,I,A)||I,value:I,valueLabels:(O=(D=await Ei(e,I,A))==null?void 0:D.toCanonicalString())!=null?O:I}}));let k;if(t.components.label.selectorStates.length){const _=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:_,label:await Oa(e,_,A),valueLabels:(i=(a=await Ei(e,_,A))==null?void 0:a.toCanonicalString())!=null?i:_}}return{type:"scatterplot-umap",x:h,y:m,keyColumn:g,facetBy:b,grouping:C,label:k,tooltips:{show:!0,content:x}}}},qx="pl7.app/dendrogram/nodeId",eS="id",Bne={type:"dendro",components:{value:{type:"simple",selectorStates:[]},height:{type:"simple",selectorStates:[]},labels:{type:"simple",selectorStates:[]},tableContent:{type:"simple",selectorStates:[]},nodeColor:{type:"simple",selectorStates:[]},nodeShape:{type:"simple",selectorStates:[]},nodeSize:{type:"simple",selectorStates:[]},lineColor:{type:"simple",selectorStates:[]},heatmapAnnotation:{type:"simple",selectorStates:[]},heatmapForSequence:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},heatmapAxis:{type:"simple",selectorStates:[]},heatmapGroup:{type:"simple",selectorStates:[]}},dividedAxes:{}},kne=class extends Mv{constructor(){super({value:new nr({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{isDataComponent:!0,columnsAllowed:!0,required:!0,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),height:new nr({componentName:"height",allowedTypes:["Int","Long","Double","Float"],annotations:{"pl7.app/dendrogram/isDistance":"true"},parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),labels:new nr({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tableContent:new nr({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0,columnsWithExtraAxesAllowed:!1}}),nodeShape:new nr({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeSize:new nr({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeColor:new nr({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),lineColor:new nr({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapForSequence:new nr({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),heatmapAnnotation:new nr({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),facetBy:new nr({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapAxis:new nr({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapGroup:new nr({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})},{filters:new nr({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tabBy:new nr({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})}),this.ignoredOptionIdNames=[qx]}readyDataInputs(e){return e.components.value.selectorStates.length>0}async createTableData(e,t){var n;const r={},a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,i=Sn(a);if(!a||!or(i))throw Error("Value column is not valid");const o=X1([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),s=[...t.components.filters.selectorStates.map(x=>Sn(x.selectedSource)),...t.components.tabBy.selectorStates.map(x=>Sn(x.selectedSource))].filter(or),c=[a],f=[],A=[],h=[t.components.value],m=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],g={};for(const x of h)for(const{selectedSource:k}of x.selectorStates){const _=await Ei(e,k,c),D=_??Sn(k);g[D.toCanonicalString()]=k,f.push(D)}for(const x of m)for(const{selectedSource:k}of x.selectorStates){const _=await Ei(e,k,c),D=_??Sn(k);g[k]=D.toCanonicalString(),A.push(D)}const b=await e.pFrameProvider.getTableOuterJoin([...f,...s],A,o,!1);for(const x of[...f,...A]){const k=x.toCanonicalString(),_=g[x.toCanonicalString()];r[_]={data:or(x)?b.columnsData[k]:b.axesData[k],spec:or(x)?b.columnSpecs[k]:b.axesSpecs[k],label:await Oa(e,_,c)}}const C=Object.keys(b.axesData).find(x=>{var k;return((k=Sn(x))==null?void 0:k.name)===qx});return C?r[eS]={data:b.axesData[C],spec:{kind:"PColumn",valueType:"Int",name:"Node id"},label:"Node id"}:console.warn("Missed node id axis in data column"),r}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,s=Sn(i),c=o?Sn(o):null;if(!i||!or(s))throw Error("Value column is not valid");const f={type:"columns",id:(a=Tp(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=X1(A),m=A.map($=>Sn($.selectedSource)).filter(or),g=[s,c].filter(or).map($=>$.toCanonicalString()),b=[],C=[],x=[],k=[],_=[t.components.value,t.components.height,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor,t.components.heatmapAnnotation,t.components.heatmapForSequence],D=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const $ of _)for(const{selectedSource:Q,fixedAxes:ee}of $.selectorStates){b.push(Sn(Q)),x.push((ee??[]).map(({axisIdx:ae,axisValue:U})=>({idx:ae,value:U})));const J=await Ei(e,Q,g);J&&b.push(J)}A.forEach(({fixedAxes:$})=>{x.push(($??[]).map(({axisIdx:Q,axisValue:ee})=>({idx:Q,value:ee})))});for(const $ of D)for(const{selectedSource:Q,fixedAxes:ee}of $.selectorStates){C.push(Sn(Q)),k.push((ee??[]).map(({axisIdx:ae,axisValue:U})=>({idx:ae,value:U})));const J=await Ei(e,Q,g);J&&C.push(J)}const O=await e.pFrameProvider.getTableOuterJoin([...b,...m],C,h,!1,x,k);[...b,...C].forEach($=>{const Q=$.toCanonicalString(),ee=or($)?O.columnsData[Q]:O.axesData[Q];f.values[Q]=[],f.values[Q]=ee});const I=Object.keys(O.axesData).find($=>{var Q;return((Q=Sn($))==null?void 0:Q.name)===qx});return I?f.values[eS]=O.axesData[I]:console.warn("Missed node id axis in data column"),f}async createChartSettings(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,o=Sn(i);if(!i||!or(o))throw Error("Data column is not valid");const s=[i],c={type:"column",value:eS},f={type:"column",value:i},A=t.components.height.selectorStates.length?{type:"column",value:t.components.height.selectorStates[0].selectedSource}:void 0,h=t.components.labels.selectorStates.length?{type:"column",value:t.components.labels.selectorStates[0].selectedSource}:void 0,m={};if(t.components.nodeColor.selectorStates.length){const x=t.components.nodeColor.selectorStates[0].selectedSource;m.nodeColor={columnName:{type:"column",value:x,label:await Oa(e,x,s)}}}if(t.components.nodeShape.selectorStates.length){const x=t.components.nodeShape.selectorStates[0].selectedSource;m.nodeShape={columnName:{type:"column",value:x,label:await Oa(e,x,s)}}}if(t.components.nodeSize.selectorStates.length){const x=t.components.nodeSize.selectorStates[0].selectedSource;m.nodeSize={columnName:{type:"column",value:x,label:await Oa(e,x,s)}}}if(t.components.lineColor.selectorStates.length){const x=t.components.lineColor.selectorStates[0].selectedSource;m.lineColor={columnName:{type:"column",value:x,label:await Oa(e,x,s)}}}let g,b,C;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const x=t.components.heatmapAnnotation.selectorStates[0].selectedSource;g={type:"column",value:x,label:await Oa(e,x,[]),valueLabels:(r=await Ei(e,x,[]))==null?void 0:r.toCanonicalString()};const k=t.components.heatmapAxis.selectorStates[0].selectedSource;b={type:"column",value:k,label:await Oa(e,k,[x]),valueLabels:(a=await Ei(e,k,[x]))==null?void 0:a.toCanonicalString()},C=await Promise.all(t.components.heatmapGroup.selectorStates.map(async _=>{var D;return{type:"column",value:_.selectedSource,label:await Oa(e,_.selectedSource,[x]),valueLabels:(D=await Ei(e,_.selectedSource,[x]))==null?void 0:D.toCanonicalString()}}))}else if(t.components.heatmapForSequence.selectorStates.length){const x=t.components.heatmapForSequence.selectorStates[0].selectedSource;g={type:"column",value:x,label:await Oa(e,x,[])}}return{type:"dendro",id:c,parentId:f,height:A,labels:h,aes:m,heatmapAnnotation:g,heatmapAxis:b,heatmapGroup:C}}},cC=1e6;function _y(e,t){return e==="String"?t.data:Array.from(t.data).map(n=>e==="Int"&&n===-2147483648||e==="Long"&&n===BigInt(-9007199254740991)||(e==="Double"||e==="Float")&&isNaN(n)?null:Number(n))}var K1=!1,U8t=100,Tne=class{constructor(e,t){this.pframeHandle=e,this.pframeDriver=t}async isColumnExisted(e){return!!await this.getColumnSpecById(e)}async getSingleColumnData(e,t=[]){if(!await this.isColumnExisted(e))return{axesData:{},data:[]};try{const n=Date.now(),r=await this.pframeDriver.calculateTableData(this.pframeHandle,{src:{type:"column",column:e.name},filters:t,sorting:[]}),a=r.filter(o=>o.spec.type==="axis"),i=r.filter(o=>o.spec.type==="column");return{axesData:a.reduce((o,s)=>{const c=hi.fromAxisSpec(s.spec.spec);return o[c.toCanonicalString()]=_y(c.type,s.data),o},{}),data:i.length?_y(e.type,i[0].data):[]}}catch(n){throw console.error("PFrame: calculateTableData error"),n}}async getColumnUniqueValues(e,t=[],n=!1){if(!await this.isColumnExisted(e))return[];const r={columnId:e.name,filters:t,limit:cC};try{const a=Date.now(),i=await this.pframeDriver.getUniqueValues(this.pframeHandle,r);return i.overflow&&console.warn(`More than ${cC} values for ${e.name} column`),_y(e.type,i.values).map(String)}catch(a){throw console.error("PFrame: getUniqueValues for column error"),a}}async getAxisUniqueValues(e,t,n=[]){const r=t.filter(or),a=await Promise.all(r.map(s=>this.getColumnSpecById(s))),i=e.toCanonicalString(),o=r.filter((s,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(A=>hi.fromAxisSpec(A).toCanonicalString()===i)});if(o.length===0)return[];try{const s=Date.now(),c=await Promise.all(o.map(f=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:f.name,axis:e.toPFrameId(),filters:n,limit:cC})));return c.forEach((f,A)=>{f.overflow&&console.warn(`More than ${cC} values for ${o[A].name} column`)}),Ir.uniq(Ir.flatten(c.map(f=>_y(e.type,f.values).map(String))))}catch(s){throw console.error("PFrame: getUniqueValues for axis error",s),s}}async getTableOuterJoin(e,t,n=[],r=!0,a=[],i=[]){const o=e.filter(or),s=t.filter(or),c={src:{type:"outer",primary:{type:r?"inner":"full",entries:o.map((f,A)=>{var h;const m=(h=a[A])==null?void 0:h.map(g=>({type:"constant",axisIndex:g.idx,constant:g.value})).filter(g=>g.constant!==void 0);return m!=null&&m.length?{type:"slicedColumn",newId:f.name,column:f.name,axisFilters:m}:{type:"column",column:f.name}})},secondary:s.map((f,A)=>{var h;const m=(h=i[A])==null?void 0:h.map(g=>({type:"constant",axisIndex:g.idx,constant:g.value})).filter(g=>g.constant!==void 0);return m!=null&&m.length?{type:"slicedColumn",newId:f.name,column:f.name,axisFilters:m}:{type:"column",column:f.name}})},filters:n,sorting:[]};try{const f=Date.now(),A=await this.pframeDriver.calculateTableData(this.pframeHandle,c),h=A.filter(g=>g.spec.type==="axis"),m=A.filter(g=>g.spec.type==="column");return{axesData:h.reduce((g,b)=>{const C=hi.fromAxisSpec(b.spec.spec);return g[C.toCanonicalString()]=_y(C.type,b.data),g},{}),columnsData:m.reduce((g,b)=>{const C=b.spec.spec,x=new By({name:b.spec.id,type:C.valueType});return g[x.toCanonicalString()]=_y(x.type,b.data),g},{}),columnSpecs:m.reduce((g,b)=>{const C=b.spec.spec,x=new By({name:b.spec.id,type:C.valueType});return g[x.toCanonicalString()]=C,g},{}),axesSpecs:h.reduce((g,b)=>{const C=b.spec.spec,x=hi.fromAxisSpec(C);return g[x.toCanonicalString()]=C,g},{})}}catch(f){throw console.error("PFrame: table outer join error"),console.info("error with request: ",c),f}}async getColumnSpecById(e){try{const t=Date.now(),n=await this.pframeDriver.getColumnSpec(this.pframeHandle,e.name);return n??null}catch{return console.error("PFrame: get single column error"),null}}async getColumnAxesIds(e){var t,n;return(n=(t=await this.getColumnSpecById(e))==null?void 0:t.axesSpec.map(r=>hi.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(or(a)){const i=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...i.map(o=>hi.fromAxisSpec(o).toPFrameId()))}return r}async getColumnsList(){return this.pframeDriver.listColumns(this.pframeHandle)}async getColumnsFull(e,t,n,r,a){try{const i={columnFilter:{type:n,name:r,annotationValue:a},compatibleWith:await this.getRequestColumnsFromSelectedSources(e),strictlyCompatible:t},o=Date.now(),s=await this.pframeDriver.findColumns(this.pframeHandle,i),c=[];return s.hits.forEach(f=>{c.push(f)}),c}catch(i){throw console.error("PFrame: findColumns error"),i}}async getColumns(e,t,n,r,a){return(await this.getColumnsFull(e,t,n,r,a)).map(i=>new By({name:i.columnId,type:i.spec.valueType}))}async findColumnBy(e,t,n,r){try{const a={columnFilter:{name:[e],...t?{type:[t]}:{},...n?{annotationValue:n}:{},...r?{domainValue:r}:{}},compatibleWith:[],strictlyCompatible:!1},i=Date.now(),o=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return o.hits.forEach(({columnId:c,spec:f})=>{s.push(new By({name:c,type:f.valueType}))}),s.length>1&&console.warn(`More than 1 column found for ${e}}`),s.length===0?(console.warn(`No columns found for ${e}}`),null):s[0]}catch(a){throw console.error("PFrame: findColumns error"),a}}},_ne=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new Tne(e,t)}},qI={controllers:{discrete:new yne,scatterplot:new Ene,"scatterplot-umap":new Sne,heatmap:new Cne,dendro:new kne,histogram:new vne,bubble:new hne},initialStates:{discrete:gne,scatterplot:bne,"scatterplot-umap":xne,heatmap:wne,dendro:Bne,histogram:mne,bubble:pne}};function fC(e){return qI.controllers[e]}function Pne(e){return qI.initialStates[e]}const Wr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Mne={},Dne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hne(e,t){return d.openBlock(),d.createElementBlock("svg",Dne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25V21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 1C17.5523 1 18 1.44772 18 2C18 2.55228 17.5523 3 17 3C16.4477 3 16 2.55228 16 2C16 1.44772 16.4477 1 17 1ZM15 6.75H16.25L16.25 9H14C13.4477 9 13 9.44771 13 10V12.125V13.25V14V14.75V16V18C13 18.5523 13.4477 19 14 19H16.25L16.25 21.25H15H14.25V22.75H15H19H19.75V21.25H19H17.75V19H20C20.5523 19 21 18.5523 21 18V16V14.75V14V13.25V12.125V10C21 9.44771 20.5523 9 20 9H17.75V6.75H19H19.75V5.25H19H15H14.25V6.75H15ZM16.25 10.5H14.5V12.125V13.25H19.5V12.125V10.5H17.75H16.25ZM14.5 16V14.75H19.5V16V17.5H14.5V16Z",fill:"#07AD3E"},null,-1)]))}const Ine=Wr(Mne,[["render",Hne]]),Lne={},Rne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nne(e,t){return d.openBlock(),d.createElementBlock("svg",Rne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25L6.25 21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.25 7C14.25 5.75736 15.2574 4.75 16.5 4.75C17.7426 4.75 18.75 5.75736 18.75 7C18.75 7.08866 18.7449 7.17613 18.7349 7.26211C19.8671 7.37957 20.75 8.33668 20.75 9.5C20.75 10.6633 19.8671 11.6204 18.7349 11.7379C18.7449 11.8239 18.75 11.9113 18.75 12C18.75 13.2426 17.7426 14.25 16.5 14.25C15.2574 14.25 14.25 13.2426 14.25 12C14.25 11.9113 14.2551 11.8239 14.2651 11.7379C13.1329 11.6204 12.25 10.6633 12.25 9.5C12.25 8.33668 13.1329 7.37957 14.2651 7.26211C14.2551 7.17613 14.25 7.08866 14.25 7ZM16.5 6.25C16.0858 6.25 15.75 6.58579 15.75 7C15.75 7.41421 16.0858 7.75 16.5 7.75C16.9142 7.75 17.25 7.41421 17.25 7C17.25 6.58579 16.9142 6.25 16.5 6.25ZM13.75 9.5C13.75 9.08579 14.0858 8.75 14.5 8.75C14.9142 8.75 15.25 9.08579 15.25 9.5C15.25 9.91421 14.9142 10.25 14.5 10.25C14.0858 10.25 13.75 9.91421 13.75 9.5ZM18.5 8.75C18.0858 8.75 17.75 9.08579 17.75 9.5C17.75 9.91421 18.0858 10.25 18.5 10.25C18.9142 10.25 19.25 9.91421 19.25 9.5C19.25 9.08579 18.9142 8.75 18.5 8.75ZM14.25 18.5C14.25 17.2574 15.2574 16.25 16.5 16.25C17.7426 16.25 18.75 17.2574 18.75 18.5C18.75 19.7426 17.7426 20.75 16.5 20.75C15.2574 20.75 14.25 19.7426 14.25 18.5ZM16.5 17.75C16.0858 17.75 15.75 18.0858 15.75 18.5C15.75 18.9142 16.0858 19.25 16.5 19.25C16.9142 19.25 17.25 18.9142 17.25 18.5C17.25 18.0858 16.9142 17.75 16.5 17.75ZM15.75 12C15.75 11.5858 16.0858 11.25 16.5 11.25C16.9142 11.25 17.25 11.5858 17.25 12C17.25 12.4142 16.9142 12.75 16.5 12.75C16.0858 12.75 15.75 12.4142 15.75 12Z",fill:"#07AD3E"},null,-1)]))}const $ne=Wr(Lne,[["render",Nne]]),Fne={},Vne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function One(e,t){return d.openBlock(),d.createElementBlock("svg",Vne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25L6.25 21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 3C18 3.55228 17.5523 4 17 4C16.4477 4 16 3.55228 16 3C16 2.44772 16.4477 2 17 2C17.5523 2 18 2.44772 18 3ZM17 15C17 15.5523 16.5523 16 16 16C15.4477 16 15 15.5523 15 15C15 14.4477 15.4477 14 16 14C16.5523 14 17 14.4477 17 15ZM18 17.5C18.5523 17.5 19 17.0523 19 16.5C19 15.9477 18.5523 15.5 18 15.5C17.4477 15.5 17 15.9477 17 16.5C17 17.0523 17.4477 17.5 18 17.5ZM17 6.5C17 7.05228 16.5523 7.5 16 7.5C15.4477 7.5 15 7.05228 15 6.5C15 5.94772 15.4477 5.5 16 5.5C16.5523 5.5 17 5.94772 17 6.5ZM18 9.5C18.5523 9.5 19 9.05228 19 8.5C19 7.94772 18.5523 7.5 18 7.5C17.4477 7.5 17 7.94772 17 8.5C17 9.05228 17.4477 9.5 18 9.5ZM21 15C21 15.5523 20.5523 16 20 16C19.4477 16 19 15.5523 19 15C19 14.4477 19.4477 14 20 14C20.5523 14 21 14.4477 21 15ZM15 13.5C15.5523 13.5 16 13.0523 16 12.5C16 11.9477 15.5523 11.5 15 11.5C14.4477 11.5 14 11.9477 14 12.5C14 13.0523 14.4477 13.5 15 13.5ZM15 16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5C13 15.9477 13.4477 15.5 14 15.5C14.5523 15.5 15 15.9477 15 16.5ZM16 19C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19ZM18 11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11ZM18 14.5C18.5523 14.5 19 14.0523 19 13.5C19 12.9477 18.5523 12.5 18 12.5C17.4477 12.5 17 12.9477 17 13.5C17 14.0523 17.4477 14.5 18 14.5ZM18 20.5C18 21.0523 17.5523 21.5 17 21.5C16.4477 21.5 16 21.0523 16 20.5C16 19.9477 16.4477 19.5 17 19.5C17.5523 19.5 18 19.9477 18 20.5Z",fill:"#07AD3E"},null,-1)]))}const Qne=Wr(Fne,[["render",One]]),zne={},Une={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jne(e,t){return d.openBlock(),d.createElementBlock("svg",Une,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25H21" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M14 11.5C14 12.3284 13.3284 13 12.5 13C11.6716 13 11 12.3284 11 11.5C11 10.6716 11.6716 10 12.5 10C13.3284 10 14 10.6716 14 11.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M14 14.5C14 15.3284 13.3284 16 12.5 16C11.6716 16 11 15.3284 11 14.5C11 13.6716 11.6716 13 12.5 13C13.3284 13 14 13.6716 14 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M14 17.5C14 18.3284 13.3284 19 12.5 19C11.6716 19 11 18.3284 11 17.5C11 16.6716 11.6716 16 12.5 16C13.3284 16 14 16.6716 14 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M9 17.5C9 18.3284 8.32843 19 7.5 19C6.67157 19 6 18.3284 6 17.5C6 16.6716 6.67157 16 7.5 16C8.32843 16 9 16.6716 9 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4C16.3284 4 17 4.67157 17 5.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 17.5C17 18.3284 16.3284 19 15.5 19C14.6716 19 14 18.3284 14 17.5C14 16.6716 14.6716 16 15.5 16C16.3284 16 17 16.6716 17 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M20 17.5C20 18.3284 19.3284 19 18.5 19C17.6716 19 17 18.3284 17 17.5C17 16.6716 17.6716 16 18.5 16C19.3284 16 20 16.6716 20 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M20 14.5C20 15.3284 19.3284 16 18.5 16C17.6716 16 17 15.3284 17 14.5C17 13.6716 17.6716 13 18.5 13C19.3284 13 20 13.6716 20 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 14.5C17 15.3284 16.3284 16 15.5 16C14.6716 16 14 15.3284 14 14.5C14 13.6716 14.6716 13 15.5 13C16.3284 13 17 13.6716 17 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 11.5C17 12.3284 16.3284 13 15.5 13C14.6716 13 14 12.3284 14 11.5C14 10.6716 14.6716 10 15.5 10C16.3284 10 17 10.6716 17 11.5Z" stroke="#07AD3E" stroke-width="1.5"></path>',18)]))}const Gne=Wr(zne,[["render",jne]]),Yne={},Wne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xne(e,t){return d.openBlock(),d.createElementBlock("svg",Wne,t[0]||(t[0]=[d.createStaticVNode('<path d="M18 3C18 3.55228 17.5523 4 17 4C16.4477 4 16 3.55228 16 3C16 2.44772 16.4477 2 17 2C17.5523 2 18 2.44772 18 3Z" fill="#07AD3E"></path><path d="M17 15C17 15.5523 16.5523 16 16 16C15.4477 16 15 15.5523 15 15C15 14.4477 15.4477 14 16 14C16.5523 14 17 14.4477 17 15Z" fill="#07AD3E"></path><path d="M18 17.5C18.5523 17.5 19 17.0523 19 16.5C19 15.9477 18.5523 15.5 18 15.5C17.4477 15.5 17 15.9477 17 16.5C17 17.0523 17.4477 17.5 18 17.5Z" fill="#07AD3E"></path><path d="M17 6.5C17 7.05228 16.5523 7.5 16 7.5C15.4477 7.5 15 7.05228 15 6.5C15 5.94772 15.4477 5.5 16 5.5C16.5523 5.5 17 5.94772 17 6.5Z" fill="#07AD3E"></path><path d="M18 9.5C18.5523 9.5 19 9.05228 19 8.5C19 7.94772 18.5523 7.5 18 7.5C17.4477 7.5 17 7.94772 17 8.5C17 9.05228 17.4477 9.5 18 9.5Z" fill="#07AD3E"></path><path d="M21 15C21 15.5523 20.5523 16 20 16C19.4477 16 19 15.5523 19 15C19 14.4477 19.4477 14 20 14C20.5523 14 21 14.4477 21 15Z" fill="#07AD3E"></path><path d="M15 13.5C15.5523 13.5 16 13.0523 16 12.5C16 11.9477 15.5523 11.5 15 11.5C14.4477 11.5 14 11.9477 14 12.5C14 13.0523 14.4477 13.5 15 13.5Z" fill="#07AD3E"></path><path d="M15 16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5C13 15.9477 13.4477 15.5 14 15.5C14.5523 15.5 15 15.9477 15 16.5Z" fill="#07AD3E"></path><path d="M16 19C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19Z" fill="#07AD3E"></path><path d="M18 11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11Z" fill="#07AD3E"></path><path d="M18 14.5C18.5523 14.5 19 14.0523 19 13.5C19 12.9477 18.5523 12.5 18 12.5C17.4477 12.5 17 12.9477 17 13.5C17 14.0523 17.4477 14.5 18 14.5Z" fill="#07AD3E"></path><path d="M18 20.5C18 21.0523 17.5523 21.5 17 21.5C16.4477 21.5 16 21.0523 16 20.5C16 19.9477 16.4477 19.5 17 19.5C17.5523 19.5 18 19.9477 18 20.5Z" fill="#07AD3E"></path><path d="M8 3C8 2.44772 7.55228 2 7 2C6.44772 2 6 2.44772 6 3C6 3.55228 6.44772 4 7 4C7.55228 4 8 3.55228 8 3Z" fill="#110529"></path><path d="M6 4.5C6.55228 4.5 7 4.94772 7 5.5C7 6.05228 6.55228 6.5 6 6.5C5.44772 6.5 5 6.05228 5 5.5C5 4.94772 5.44772 4.5 6 4.5Z" fill="#110529"></path><path d="M5 7C5 6.44772 4.55228 6 4 6C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8C4.55228 8 5 7.55228 5 7Z" fill="#110529"></path><path d="M8 6C8.55228 6 9 6.44772 9 7C9 7.55228 8.55228 8 8 8C7.44772 8 7 7.55228 7 7C7 6.44772 7.44772 6 8 6Z" fill="#110529"></path><path d="M7 8.5C7 7.94772 6.55228 7.5 6 7.5C5.44772 7.5 5 7.94772 5 8.5C5 9.05228 5.44772 9.5 6 9.5C6.55228 9.5 7 9.05228 7 8.5Z" fill="#110529"></path><path d="M8 20.5C8 19.9477 7.55228 19.5 7 19.5C6.44772 19.5 6 19.9477 6 20.5C6 21.0523 6.44772 21.5 7 21.5C7.55228 21.5 8 21.0523 8 20.5Z" fill="#110529"></path><path d="M7 17C7 16.4477 6.55228 16 6 16C5.44772 16 5 16.4477 5 17C5 17.5523 5.44772 18 6 18C6.55228 18 7 17.5523 7 17Z" fill="#110529"></path><path d="M8 14C8.55228 14 9 14.4477 9 15C9 15.5523 8.55228 16 8 16C7.44772 16 7 15.5523 7 15C7 14.4477 7.44772 14 8 14Z" fill="#110529"></path><path d="M11 8.5C11 7.94772 10.5523 7.5 10 7.5C9.44772 7.5 9 7.94772 9 8.5C9 9.05228 9.44772 9.5 10 9.5C10.5523 9.5 11 9.05228 11 8.5Z" fill="#110529"></path><path d="M5 10C5.55228 10 6 10.4477 6 11C6 11.5523 5.55228 12 5 12C4.44772 12 4 11.5523 4 11C4 10.4477 4.44772 10 5 10Z" fill="#110529"></path><path d="M8 12.5C8 11.9477 7.55228 11.5 7 11.5C6.44772 11.5 6 11.9477 6 12.5C6 13.0523 6.44772 13.5 7 13.5C7.55228 13.5 8 13.0523 8 12.5Z" fill="#110529"></path><path d="M8 9C8.55228 9 9 9.44772 9 10C9 10.5523 8.55228 11 8 11C7.44772 11 7 10.5523 7 10C7 9.44772 7.44772 9 8 9Z" fill="#110529"></path>',24)]))}const Kne=Wr(Yne,[["render",Xne]]),Zne={},Jne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qne(e,t){return d.openBlock(),d.createElementBlock("svg",Jne,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40827 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M16.1603 11.6035C16.5892 12.0178 17.0904 12.5021 17.5 13.1017C17.9096 12.5021 18.4108 12.0178 18.8397 11.6035C18.8575 11.5863 18.8751 11.5692 18.8927 11.5522C19.7742 10.6998 20.25 10.1824 20.25 9.5C20.25 8.81759 19.7742 8.30021 18.8927 7.4478C18.8751 7.43083 18.8575 7.41374 18.8397 7.39653C18.4108 6.98221 17.9096 6.49792 17.5 5.89827C17.0904 6.49792 16.5892 6.98221 16.1603 7.39653C16.1425 7.41374 16.1249 7.43083 16.1073 7.4478C15.2258 8.30021 14.75 8.81759 14.75 9.5C14.75 10.1824 15.2258 10.6998 16.1073 11.5522C16.1249 11.5692 16.1425 11.5863 16.1603 11.6035Z",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const ere=Wr(Zne,[["render",qne]]),tre={},nre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rre(e,t){return d.openBlock(),d.createElementBlock("svg",nre,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40826 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.25 7C14.25 5.75736 15.2574 4.75 16.5 4.75C17.7426 4.75 18.75 5.75736 18.75 7C18.75 7.08866 18.7449 7.17613 18.7349 7.26211C19.8671 7.37957 20.75 8.33668 20.75 9.5C20.75 10.6633 19.8671 11.6204 18.7349 11.7379C18.7449 11.8239 18.75 11.9113 18.75 12C18.75 13.2426 17.7426 14.25 16.5 14.25C15.2574 14.25 14.25 13.2426 14.25 12C14.25 11.9113 14.2551 11.8239 14.2651 11.7379C13.1329 11.6204 12.25 10.6633 12.25 9.5C12.25 8.33668 13.1329 7.37957 14.2651 7.26211C14.2551 7.17613 14.25 7.08866 14.25 7ZM16.5 6.25C16.0858 6.25 15.75 6.58579 15.75 7C15.75 7.41421 16.0858 7.75 16.5 7.75C16.9142 7.75 17.25 7.41421 17.25 7C17.25 6.58579 16.9142 6.25 16.5 6.25ZM13.75 9.5C13.75 9.08579 14.0858 8.75 14.5 8.75C14.9142 8.75 15.25 9.08579 15.25 9.5C15.25 9.91421 14.9142 10.25 14.5 10.25C14.0858 10.25 13.75 9.91421 13.75 9.5ZM18.5 8.75C18.0858 8.75 17.75 9.08579 17.75 9.5C17.75 9.91421 18.0858 10.25 18.5 10.25C18.9142 10.25 19.25 9.91421 19.25 9.5C19.25 9.08579 18.9142 8.75 18.5 8.75ZM14.25 18.5C14.25 17.2574 15.2574 16.25 16.5 16.25C17.7426 16.25 18.75 17.2574 18.75 18.5C18.75 19.7426 17.7426 20.75 16.5 20.75C15.2574 20.75 14.25 19.7426 14.25 18.5ZM16.5 17.75C16.0858 17.75 15.75 18.0858 15.75 18.5C15.75 18.9142 16.0858 19.25 16.5 19.25C16.9142 19.25 17.25 18.9142 17.25 18.5C17.25 18.0858 16.9142 17.75 16.5 17.75ZM15.75 12C15.75 11.5858 16.0858 11.25 16.5 11.25C16.9142 11.25 17.25 11.5858 17.25 12C17.25 12.4142 16.9142 12.75 16.5 12.75C16.0858 12.75 15.75 12.4142 15.75 12Z",fill:"#07AD3E"},null,-1)]))}const are=Wr(tre,[["render",rre]]),ire={},ore={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lre(e,t){return d.openBlock(),d.createElementBlock("svg",ore,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40827 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M16.1603 11.6035C16.5892 12.0178 17.0904 12.5021 17.5 13.1017C17.9096 12.5021 18.4108 12.0178 18.8397 11.6035C18.8575 11.5863 18.8751 11.5692 18.8927 11.5522C19.7742 10.6998 20.25 10.1824 20.25 9.5C20.25 8.81759 19.7742 8.30021 18.8927 7.4478C18.8751 7.43083 18.8575 7.41374 18.8397 7.39653C18.4108 6.98221 17.9096 6.49792 17.5 5.89827C17.0904 6.49792 16.5892 6.98221 16.1603 7.39653C16.1425 7.41374 16.1249 7.43083 16.1073 7.4478C15.2258 8.30021 14.75 8.81759 14.75 9.5C14.75 10.1824 15.2258 10.6998 16.1073 11.5522C16.1249 11.5692 16.1425 11.5863 16.1603 11.6035Z",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const sre=Wr(ire,[["render",lre]]),ure={},cre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fre(e,t){return d.openBlock(),d.createElementBlock("svg",cre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M7 19L7 10" stroke="#07AD3E" stroke-width="1.5"></path><path d="M11 19L11 14" stroke="#110529" stroke-width="1.5"></path><path d="M15 19L15 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M19 19L19 7" stroke="#110529" stroke-width="1.5"></path>',11)]))}const eL=Wr(ure,[["render",fre]]),dre={},Are={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pre(e,t){return d.openBlock(),d.createElementBlock("svg",Are,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M5.49982 10.5L10.5037 5.49615C10.7829 5.21695 11.2307 5.20204 11.5279 5.46205L14.4718 8.03795C14.7689 8.29796 15.2168 8.28305 15.496 8.00385L20.4998 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M7 14V19" stroke="#110529" stroke-width="1.5"></path><path d="M11 10L11 19" stroke="#110529" stroke-width="1.5"></path><path d="M15 12V19" stroke="#110529" stroke-width="1.5"></path><path d="M19 9L19 19" stroke="#110529" stroke-width="1.5"></path>',12)]))}const tL=Wr(dre,[["render",pre]]),hre={},mre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vre(e,t){return d.openBlock(),d.createElementBlock("svg",mre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M11.25 11V13V16V18C11.25 18.1381 11.1381 18.25 11 18.25H9H7C6.86193 18.25 6.75 18.1381 6.75 18V16V13V11C6.75 10.8619 6.86193 10.75 7 10.75H9H11C11.1381 10.75 11.25 10.8619 11.25 11Z" stroke="#07AD3E" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.75 8V7.25H8.25V8H9.75ZM9.75 14V8H8.25V14H9.75Z" fill="#07AD3E"></path><path d="M19.25 6V9.66667V14.3333V18C19.25 18.1381 19.1381 18.25 19 18.25H17H15C14.8619 18.25 14.75 18.1381 14.75 18V14.3333V9.66667V6C14.75 5.86193 14.8619 5.75 15 5.75H17H19C19.1381 5.75 19.25 5.86193 19.25 6Z" stroke="#110529" stroke-width="1.5" stroke-linecap="round"></path><path d="M17 9V3" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path>',11)]))}const gre=Wr(hre,[["render",vre]]),yre={},wre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cre(e,t){return d.openBlock(),d.createElementBlock("svg",wre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M11 19L11 14" stroke="#110529" stroke-width="1.5"></path><path d="M11 13L11 9" stroke="#07AD3E" stroke-width="1.5"></path><path d="M15 19L15 7" stroke="#110529" stroke-width="1.5"></path><path d="M7 19L7 11" stroke="#110529" stroke-width="1.5"></path><path d="M19 19L19 11" stroke="#110529" stroke-width="1.5"></path><path d="M15 6L15 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M7 10L7 7" stroke="#07AD3E" stroke-width="1.5"></path><path d="M19 10L19 6" stroke="#07AD3E" stroke-width="1.5"></path>',15)]))}const bre=Wr(yre,[["render",Cre]]),Ere={},xre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sre(e,t){return d.openBlock(),d.createElementBlock("svg",xre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M6 17L10.3949 10.1634C10.4567 10.0673 10.5759 10.0253 10.6843 10.0614L16.3157 11.9386C16.4241 11.9747 16.5433 11.9327 16.6051 11.8366L21 5" stroke="#07AD3E" stroke-width="1.5"></path>',8)]))}const nL=Wr(Ere,[["render",Sre]]),Bre={},kre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tre(e,t){return d.openBlock(),d.createElementBlock("svg",kre,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.87166 17.4862C6.72148 18.5589 5.21191 19.25 3 19.25H2.25V20.75H3C5.01 20.75 6.5821 20.2481 7.84779 19.4106C7.78374 19.1173 7.75 18.8126 7.75 18.5C7.75 18.1506 7.79216 17.8111 7.87166 17.4862ZM16.5833 6.12522C17.6721 5.27714 19.0682 4.75 21 4.75H21.75V3.25H21C18.7445 3.25 17.0404 3.882 15.702 4.91089C15.8578 5.18652 15.9838 5.48129 16.0755 5.79079C16.253 5.8903 16.4227 6.00217 16.5833 6.12522ZM3.75 5.5L3.75 4H2.25L2.25 5.5H3.75ZM3.75 8.5V7H2.25L2.25 8.5H3.75ZM3.75 10L3.75 11.5H2.25L2.25 10H3.75ZM3.75 14.5V13H2.25V14.5H3.75ZM3.75 16L3.75 17.5H2.25V16H3.75ZM20.25 6.5V8L21.75 8V6.5H20.25ZM20.25 11V9.5H21.75V11H20.25ZM20.25 12.5V14H21.75V12.5H20.25ZM20.25 17V15.5H21.75V17H20.25ZM20.25 20V18.5H21.75V20H20.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.75 7C9.75 5.75736 10.7574 4.75 12 4.75C13.2426 4.75 14.25 5.75736 14.25 7C14.25 7.08866 14.2449 7.17613 14.2349 7.26211C15.3671 7.37957 16.25 8.33668 16.25 9.5C16.25 10.6633 15.3671 11.6204 14.2349 11.7379C14.2449 11.8239 14.25 11.9113 14.25 12C14.25 13.2426 13.2426 14.25 12 14.25C10.7574 14.25 9.75 13.2426 9.75 12C9.75 11.9113 9.75513 11.8239 9.7651 11.7379C8.63285 11.6204 7.75 10.6633 7.75 9.5C7.75 8.33668 8.63285 7.37957 9.7651 7.26211C9.75513 7.17613 9.75 7.08866 9.75 7ZM12 6.25C11.5858 6.25 11.25 6.58579 11.25 7C11.25 7.41421 11.5858 7.75 12 7.75C12.4142 7.75 12.75 7.41421 12.75 7C12.75 6.58579 12.4142 6.25 12 6.25ZM9.25 9.5C9.25 9.08579 9.58579 8.75 10 8.75C10.4142 8.75 10.75 9.08579 10.75 9.5C10.75 9.91421 10.4142 10.25 10 10.25C9.58579 10.25 9.25 9.91421 9.25 9.5ZM14 8.75C13.5858 8.75 13.25 9.08579 13.25 9.5C13.25 9.91421 13.5858 10.25 14 10.25C14.4142 10.25 14.75 9.91421 14.75 9.5C14.75 9.08579 14.4142 8.75 14 8.75ZM9.75 18.5C9.75 17.2574 10.7574 16.25 12 16.25C13.2426 16.25 14.25 17.2574 14.25 18.5C14.25 19.7426 13.2426 20.75 12 20.75C10.7574 20.75 9.75 19.7426 9.75 18.5ZM12 17.75C11.5858 17.75 11.25 18.0858 11.25 18.5C11.25 18.9142 11.5858 19.25 12 19.25C12.4142 19.25 12.75 18.9142 12.75 18.5C12.75 18.0858 12.4142 17.75 12 17.75ZM11.25 12C11.25 11.5858 11.5858 11.25 12 11.25C12.4142 11.25 12.75 11.5858 12.75 12C12.75 12.4142 12.4142 12.75 12 12.75C11.5858 12.75 11.25 12.4142 11.25 12Z",fill:"#07AD3E"},null,-1)]))}const _re=Wr(Bre,[["render",Tre]]),Pre={},Mre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dre(e,t){return d.openBlock(),d.createElementBlock("svg",Mre,t[0]||(t[0]=[d.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M6.66173 18.3797C5.69642 18.9269 4.51239 19.25 3 19.25H2.25V20.75H3C5.08009 20.75 6.69121 20.2125 7.97909 19.3218C7.45744 19.133 7.00308 18.8038 6.66173 18.3797ZM15.6198 7.03708C15.6306 7.02483 15.6415 7.01261 15.6524 7.00044C16.858 5.65468 18.4693 4.75 21 4.75H21.75V3.25H21C18.0608 3.25 16.0579 4.32325 14.5803 5.94949C15.0122 6.21765 15.3709 6.59244 15.6198 7.03708ZM3.75 5.5L3.75 4H2.25L2.25 5.5H3.75ZM3.75 8.5V7H2.25L2.25 8.5H3.75ZM3.75 10L3.75 11.5H2.25L2.25 10H3.75ZM3.75 14.5V13H2.25V14.5H3.75ZM3.75 16L3.75 17.5H2.25V16H3.75ZM20.25 6.5V8L21.75 8V6.5H20.25ZM20.25 11V9.5H21.75V11H20.25ZM20.25 12.5V14H21.75V12.5H20.25ZM20.25 17V15.5H21.75V17H20.25ZM20.25 20V18.5H21.75V20H20.25Z" fill="#110529"></path><path d="M13 3C13 3.55228 12.5523 4 12 4C11.4477 4 11 3.55228 11 3C11 2.44772 11.4477 2 12 2C12.5523 2 13 2.44772 13 3Z" fill="#07AD3E"></path><path d="M12 15C12 15.5523 11.5523 16 11 16C10.4477 16 10 15.5523 10 15C10 14.4477 10.4477 14 11 14C11.5523 14 12 14.4477 12 15Z" fill="#07AD3E"></path><path d="M13 17.5C13.5523 17.5 14 17.0523 14 16.5C14 15.9477 13.5523 15.5 13 15.5C12.4477 15.5 12 15.9477 12 16.5C12 17.0523 12.4477 17.5 13 17.5Z" fill="#07AD3E"></path><path d="M12 6.5C12 7.05228 11.5523 7.5 11 7.5C10.4477 7.5 10 7.05228 10 6.5C10 5.94772 10.4477 5.5 11 5.5C11.5523 5.5 12 5.94772 12 6.5Z" fill="#07AD3E"></path><path d="M13 9.5C13.5523 9.5 14 9.05228 14 8.5C14 7.94772 13.5523 7.5 13 7.5C12.4477 7.5 12 7.94772 12 8.5C12 9.05228 12.4477 9.5 13 9.5Z" fill="#07AD3E"></path><path d="M16 15C16 15.5523 15.5523 16 15 16C14.4477 16 14 15.5523 14 15C14 14.4477 14.4477 14 15 14C15.5523 14 16 14.4477 16 15Z" fill="#07AD3E"></path><path d="M10 13.5C10.5523 13.5 11 13.0523 11 12.5C11 11.9477 10.5523 11.5 10 11.5C9.44772 11.5 9 11.9477 9 12.5C9 13.0523 9.44772 13.5 10 13.5Z" fill="#07AD3E"></path><path d="M10 16.5C10 17.0523 9.55228 17.5 9 17.5C8.44772 17.5 8 17.0523 8 16.5C8 15.9477 8.44772 15.5 9 15.5C9.55228 15.5 10 15.9477 10 16.5Z" fill="#07AD3E"></path><path d="M11 19C11.5523 19 12 18.5523 12 18C12 17.4477 11.5523 17 11 17C10.4477 17 10 17.4477 10 18C10 18.5523 10.4477 19 11 19Z" fill="#07AD3E"></path><path d="M13 11C13 11.5523 12.5523 12 12 12C11.4477 12 11 11.5523 11 11C11 10.4477 11.4477 10 12 10C12.5523 10 13 10.4477 13 11Z" fill="#07AD3E"></path><path d="M13 14.5C13.5523 14.5 14 14.0523 14 13.5C14 12.9477 13.5523 12.5 13 12.5C12.4477 12.5 12 12.9477 12 13.5C12 14.0523 12.4477 14.5 13 14.5Z" fill="#07AD3E"></path><path d="M13 20.5C13 21.0523 12.5523 21.5 12 21.5C11.4477 21.5 11 21.0523 11 20.5C11 19.9477 11.4477 19.5 12 19.5C12.5523 19.5 13 19.9477 13 20.5Z" fill="#07AD3E"></path>',13)]))}const rL=Wr(Pre,[["render",Dre]]),Hre={},Ire={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lre(e,t){return d.openBlock(),d.createElementBlock("svg",Ire,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5 16.5C13.5556 16.5 10.4444 7.5 19 7.5",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M5 21.25V16.5V11.75M5 21.25H8M5 21.25H2M5 11.75H8M5 11.75H2M5 9.5V8M5 6.5V5M5 3.5V2",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M5 21.25V16.5V11.75M5 21.25H8M5 21.25H2M5 11.75H8M5 11.75H2M5 9.5V8M5 6.5V5M5 3.5V2",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M19 2.75V7.5V12.25M19 2.75H16M19 2.75H22M19 12.25H16M19 12.25H22M19 14.5V16M19 17.5V19M19 20.5V22",stroke:"#110529","stroke-width":"1.5"},null,-1)]))}const Rre=Wr(Hre,[["render",Lre]]),Nre={},$re={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fre(e,t){return d.openBlock(),d.createElementBlock("svg",$re,t[0]||(t[0]=[d.createStaticVNode('<path d="M18 4.5C18 3.94772 17.5523 3.5 17 3.5C16.4477 3.5 16 3.94772 16 4.5C16 5.05228 16.4477 5.5 17 5.5C17.5523 5.5 18 5.05228 18 4.5Z" fill="#07AD3E"></path><path d="M17 18.5C17.5523 18.5 18 18.9477 18 19.5C18 20.0523 17.5523 20.5 17 20.5C16.4477 20.5 16 20.0523 16 19.5C16 18.9477 16.4477 18.5 17 18.5Z" fill="#07AD3E"></path><path d="M16 16.5C16.5523 16.5 17 16.9477 17 17.5C17 18.0523 16.5523 18.5 16 18.5C15.4477 18.5 15 18.0523 15 17.5C15 16.9477 15.4477 16.5 16 16.5Z" fill="#07AD3E"></path><path d="M17 17.5C17 16.9477 17.4477 16.5 18 16.5C18.5523 16.5 19 16.9477 19 17.5C19 18.0523 18.5523 18.5 18 18.5C17.4477 18.5 17 18.0523 17 17.5Z" fill="#07AD3E"></path><path d="M17 14.5C17.5523 14.5 18 14.9477 18 15.5C18 16.0523 17.5523 16.5 17 16.5C16.4477 16.5 16 16.0523 16 15.5C16 14.9477 16.4477 14.5 17 14.5Z" fill="#07AD3E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16 7C16.5523 7 17 7.44772 17 8C17 8.55228 16.5523 9 16 9C15.4477 9 15 8.55228 15 8C15 7.44772 15.4477 7 16 7ZM17 10C17 9.44772 16.5523 9 16 9C15.4477 9 15 9.44772 15 10C15 9.44772 14.5523 9 14 9C13.4477 9 13 9.44772 13 10C13 10.5523 13.4477 11 14 11C14.5523 11 15 10.5523 15 10C15 10.5523 15.4477 11 16 11C15.4477 11 15 11.4477 15 12C15 12.5523 15.4477 13 16 13C16.5523 13 17 12.5523 17 12C17 12.5523 17.4477 13 18 13C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11C18.5523 11 19 10.5523 19 10C19 10.5523 19.4477 11 20 11C20.5523 11 21 10.5523 21 10C21 9.44772 20.5523 9 20 9C19.4477 9 19 9.44772 19 10C19 9.44772 18.5523 9 18 9C18.5523 9 19 8.55228 19 8C19 7.44772 18.5523 7 18 7C17.4477 7 17 7.44772 17 8C17 8.55228 17.4477 9 18 9C17.4477 9 17 9.44772 17 10ZM17 10C17 10.5523 17.4477 11 18 11C17.4477 11 17 11.4477 17 12C17 11.4477 16.5523 11 16 11C16.5523 11 17 10.5523 17 10Z" fill="#07AD3E"></path><path d="M7 5.5C7.55228 5.5 8 5.05228 8 4.5C8 3.94772 7.55228 3.5 7 3.5C6.44772 3.5 6 3.94772 6 4.5C6 5.05228 6.44772 5.5 7 5.5Z" fill="#110529"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8 15C8.55228 15 9 14.5523 9 14C9 14.5523 9.44772 15 10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44772 13 9 13.4477 9 14C9 13.4477 8.55228 13 8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 11.4477 6.55228 11 6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13C5.44772 13 5 13.4477 5 14C5 13.4477 4.55228 13 4 13C3.44772 13 3 13.4477 3 14C3 14.5523 3.44772 15 4 15C4.55228 15 5 14.5523 5 14C5 14.5523 5.44772 15 6 15C5.44772 15 5 15.4477 5 16C5 16.5523 5.44772 17 6 17C6.55228 17 7 16.5523 7 16C7 16.5523 7.44772 17 8 17C8.55228 17 9 16.5523 9 16C9 15.4477 8.55228 15 8 15ZM8 15C7.44772 15 7 15.4477 7 16C7 15.4477 6.55228 15 6 15C6.55228 15 7 14.5523 7 14C7 14.5523 7.44772 15 8 15ZM7 14C7 13.4477 6.55228 13 6 13C6.55228 13 7 12.5523 7 12C7 12.5523 7.44772 13 8 13C7.44772 13 7 13.4477 7 14Z" fill="#110529"></path><path d="M6 7.5C6.55228 7.5 7 7.05228 7 6.5C7 7.05228 7.44772 7.5 8 7.5C8.55228 7.5 9 7.05228 9 6.5C9 5.94772 8.55228 5.5 8 5.5C7.44772 5.5 7 5.94772 7 6.5C7 5.94772 6.55228 5.5 6 5.5C5.44772 5.5 5 5.94772 5 6.5C5 7.05228 5.44772 7.5 6 7.5Z" fill="#110529"></path><path d="M7 9.5C7.55228 9.5 8 9.05228 8 8.5C8 7.94772 7.55228 7.5 7 7.5C6.44772 7.5 6 7.94772 6 8.5C6 9.05228 6.44772 9.5 7 9.5Z" fill="#110529"></path><path d="M8 19.5C8 20.0523 7.55228 20.5 7 20.5C6.44772 20.5 6 20.0523 6 19.5C6 18.9477 6.44772 18.5 7 18.5C7.55228 18.5 8 18.9477 8 19.5Z" fill="#110529"></path>',11)]))}const Vre=Wr(Nre,[["render",Fre]]),Ore={},Qre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zre(e,t){return d.openBlock(),d.createElementBlock("svg",Qre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M20 5C20 5.55228 19.5523 6 19 6C18.4477 6 18 5.55228 18 5C18 4.44772 18.4477 4 19 4C19.5523 4 20 4.44772 20 5Z" fill="#07AD3E"></path><path d="M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z" fill="#07AD3E"></path><path d="M16 17C16.5523 17 17 16.5523 17 16C17 15.4477 16.5523 15 16 15C15.4477 15 15 15.4477 15 16C15 16.5523 15.4477 17 16 17Z" fill="#07AD3E"></path><path d="M13 6C13.5523 6 14 5.55228 14 5C14 4.44772 13.5523 4 13 4C12.4477 4 12 4.44772 12 5C12 5.55228 12.4477 6 13 6Z" fill="#110529"></path><path d="M16 9C16.5523 9 17 8.55228 17 8C17 7.44772 16.5523 7 16 7C15.4477 7 15 7.44772 15 8C15 8.55228 15.4477 9 16 9Z" fill="#110529"></path><path d="M8 17C8.55228 17 9 16.5523 9 16C9 15.4477 8.55228 15 8 15C7.44772 15 7 15.4477 7 16C7 16.5523 7.44772 17 8 17Z" fill="#110529"></path><path d="M20 11C20 11.5523 19.5523 12 19 12C18.4477 12 18 11.5523 18 11C18 10.4477 18.4477 10 19 10C19.5523 10 20 10.4477 20 11Z" fill="#110529"></path><path d="M15 12C15.5523 12 16 11.5523 16 11C16 10.4477 15.5523 10 15 10C14.4477 10 14 10.4477 14 11C14 11.5523 14.4477 12 15 12Z" fill="#110529"></path><path d="M10 13C10 13.5523 9.55228 14 9 14C8.44772 14 8 13.5523 8 13C8 12.4477 8.44772 12 9 12C9.55228 12 10 12.4477 10 13Z" fill="#110529"></path><path d="M11 16C11.5523 16 12 15.5523 12 15C12 14.4477 11.5523 14 11 14C10.4477 14 10 14.4477 10 15C10 15.5523 10.4477 16 11 16Z" fill="#110529"></path><path d="M14 9C14 9.55228 13.5523 10 13 10C12.4477 10 12 9.55228 12 9C12 8.44772 12.4477 8 13 8C13.5523 8 14 8.44772 14 9Z" fill="#110529"></path><path d="M13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z" fill="#110529"></path>',19)]))}const Ure=Wr(Ore,[["render",zre]]),jre={},Gre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yre(e,t){return d.openBlock(),d.createElementBlock("svg",Gre,t[0]||(t[0]=[d.createStaticVNode('<path d="M10 20.5C10 20.7761 10.2239 21 10.5 21H13.5C13.7761 21 14 20.7761 14 20.5V19.3333V18.3333V18V17.5C14 17.2239 13.7761 17 13.5 17H10.5C10.2239 17 10 17.2239 10 17.5V18V18.3333V19.3333V20.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M10 13.5C10 13.7761 10.2239 14 10.5 14H13.5C13.7761 14 14 13.7761 14 13.5V12.3333V11.3333V11V10.5C14 10.2239 13.7761 10 13.5 10H10.5C10.2239 10 10 10.2239 10 10.5V11V11.3333V12.3333V13.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M17 13.5C17 13.7761 17.2239 14 17.5 14H20.5C20.7761 14 21 13.7761 21 13.5V12.3333V11.3333V11V10.5C21 10.2239 20.7761 10 20.5 10H17.5C17.2239 10 17 10.2239 17 10.5V11V11.3333V12.3333V13.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M17 20.5C17 20.7761 17.2239 21 17.5 21H20.5C20.7761 21 21 20.7761 21 20.5V19.3333V18.3333V18V17.5C21 17.2239 20.7761 17 20.5 17H17.5C17.2239 17 17 17.2239 17 17.5V18V18.3333V19.3333V20.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M10 6.5C10 6.77614 10.2239 7 10.5 7H13.5C13.7761 7 14 6.77614 14 6.5V5.33333V4.33333V4V3.5C14 3.22386 13.7761 3 13.5 3H10.5C10.2239 3 10 3.22386 10 3.5V4V4.33333V5.33333V6.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M3 20.5C3 20.7761 3.22386 21 3.5 21H6.5C6.77614 21 7 20.7761 7 20.5V19.3333V18.3333V18V17.5C7 17.2239 6.77614 17 6.5 17H3.5C3.22386 17 3 17.2239 3 17.5V18V18.3333V19.3333V20.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M3 13.5C3 13.7761 3.22386 14 3.5 14H6.5C6.77614 14 7 13.7761 7 13.5V12.3333V11.3333V11V10.5C7 10.2239 6.77614 10 6.5 10H3.5C3.22386 10 3 10.2239 3 10.5V11V11.3333V12.3333V13.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 6.5C17 6.77614 17.2239 7 17.5 7H20.5C20.7761 7 21 6.77614 21 6.5V5.33333V4.33333V4V3.5C21 3.22386 20.7761 3 20.5 3H17.5C17.2239 3 17 3.22386 17 3.5V4V4.33333V5.33333V6.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M3 6.5C3 6.77614 3.22386 7 3.5 7H6.5C6.77614 7 7 6.77614 7 6.5V5.33333V4.33333V4V3.5C7 3.22386 6.77614 3 6.5 3H3.5C3.22386 3 3 3.22386 3 3.5V4V4.33333V5.33333V6.5Z" stroke="#110529" stroke-width="1.5"></path>',9)]))}const aL=Wr(jre,[["render",Yre]]),Wre={},Xre={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Kre(e,t){return d.openBlock(),d.createElementBlock("svg",Xre,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 20.5H21.75V22H2.25V20.5Z",fill:"#110529"},null,-1),d.createElementVNode("path",{d:"M8.91649 19H7.25L10.2842 10H12.2116L15.25 19H13.5835L11.2816 11.8457H11.2142L8.91649 19ZM8.9712 15.4712H13.5162V16.7808H8.9712V15.4712Z",fill:"#07AD3E"},null,-1),d.createElementVNode("path",{d:"M20.4799 8.18631C20.4158 7.77567 20.3273 7.40811 20.2144 7.08365C20.1041 6.75412 19.9707 6.47275 19.8142 6.23954C19.6603 6.00634 19.4832 5.83143 19.2831 5.71483C19.083 5.59316 18.8649 5.53232 18.6289 5.53232C18.2056 5.53232 17.8285 5.74271 17.4975 6.1635C17.1666 6.58428 16.9062 7.20279 16.7163 8.01901C16.529 8.83016 16.4354 9.81876 16.4354 10.9848C16.4354 12.161 16.529 13.1572 16.7163 13.9734C16.9036 14.7896 17.164 15.4106 17.4975 15.8365C17.831 16.2573 18.2184 16.4677 18.6597 16.4677C19.0599 16.4677 19.4063 16.3156 19.6987 16.0114C19.9938 15.7072 20.2208 15.2763 20.3799 14.7186C20.5389 14.1559 20.6185 13.4968 20.6185 12.7414H20.618H18.8021V10.635H22V12.5057C22 13.839 21.8563 14.9924 21.569 15.9658C21.2817 16.9392 20.8866 17.6895 20.3837 18.2167C19.8809 18.7389 19.3036 19 18.652 19C17.926 19 17.2884 18.6781 16.7394 18.0342C16.193 17.3853 15.7658 16.4651 15.4579 15.2738C15.1526 14.0773 15 12.6578 15 11.0152C15 9.75792 15.0898 8.63498 15.2694 7.64639C15.4515 6.6578 15.7055 5.81876 16.0313 5.12928C16.3572 4.43473 16.7394 3.90748 17.1781 3.54753C17.6168 3.18251 18.094 3 18.6097 3C19.0458 3 19.4524 3.12674 19.8296 3.38023C20.2067 3.62864 20.5415 3.98352 20.834 4.44487C21.129 4.90621 21.3714 5.45374 21.5613 6.08745C21.7511 6.72117 21.8756 7.42079 21.9346 8.18631H20.4799Z",fill:"#110529"},null,-1),d.createElementVNode("path",{d:"M2 7V5H9L9 7H6.25V19H4.75V7H2Z",fill:"#110529"},null,-1)]))}const Zre=Wr(Wre,[["render",Kre]]),Py=[{name:"Light green",color:"#99E099"},{name:"Green",color:"#42B842"},{name:"Dark green",color:"#198020"},{name:"Light violet",color:"#C1ADFF"},{name:"Violet",color:"#845CFF"},{name:"Dark violet",color:"#5F31CC"},{name:"Light orange",color:"#FFCB8F"},{name:"Orange",color:"#FF9429"},{name:"Dark orange",color:"#C26A27"},{name:"Light teal",color:"#90E0E0"},{name:"Teal",color:"#27C2C2"},{name:"Dark teal",color:"#068A94"},{name:"Light rose",color:"#FAAAFA"},{name:"Rose",color:"#E553E5"},{name:"Dark rose",color:"#A324B2"},{name:"Light lime",color:"#CBEB67"},{name:"Lime",color:"#95C700"},{name:"Dark lime",color:"#659406"},{name:"Light blue",color:"#99CCFF"},{name:"Blue",color:"#2D93FA"},{name:"Dark blue",color:"#105BCC"},{name:"Light red",color:"#FFADBA"},{name:"Red",color:"#F05670"},{name:"Dark red",color:"#AD3757"},{name:"Light grey",color:"#D3D7E0"},{name:"Grey",color:"#929BAD"},{name:"Dark grey",color:"#5E5E70"},{name:"Black",color:"#110529"},{name:"White",color:"#FFFFFF"},{name:"None",color:"transparent"}],My="#FFFFFF",yo="#110529";Py.reduce((e,t)=>(e[t.color]=t,e),{});const N5=Py.slice(0,-3).map(e=>e.color),Jre=N5.filter((e,t)=>t%3===0),qre=N5.filter((e,t)=>t%3===1),eae=N5.filter((e,t)=>t%3===2),tae=N5.filter((e,t)=>t%3!==2),nae=N5,rae=["#FFF680","#53D788","#36739D","#4A005C"],aae=["#FFF680","#F77E5B","#902B83","#2B125C"],iae=["#DFFADC","#74CFD1","#635AC1","#611347"],oae=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],lae=["#FFEA80","#F07A76","#7535A4","#003752"],sae=["#FFF780","#6CEA90","#6C90F0","#942AAE"],uae=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],cae=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],fae=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],dae=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],Aae=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],iL=["light","bright","dark","paired","triadic"],pae=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],hae=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function tS(e){return iL.includes(e)}const Do={...{light:{title:"Light",colors:Jre},bright:{title:"Bright",colors:qre},dark:{title:"Dark",colors:eae},paired:{title:"Paired",colors:tae},triadic:{title:"Triadic",colors:nae}},...{viridis:{title:"Viridis",colors:rae},magma:{title:"Magma",colors:aae},density:{title:"Density",colors:iae},salinity:{title:"Salinity",colors:oae},sunset:{title:"Sunset",colors:lae},perceptual_rainbow:{title:"Rainbow",colors:sae}},...{spectrum:{title:"Spectrum",colors:uae},teal_red:{title:"Teal-Red",colors:cae},blue_red:{title:"Blue-Red",colors:fae},lime_rose:{title:"Lime-Rose",colors:dae},viridis_magma:{title:"Vir-Mag",colors:Aae}}},oL="light",Z1="salinity",mae="salinity",$5=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],dC="#F0F0F0",P0="21",Dy=["solid","dashed","dotted","dotdash","longdash","twodash"],AC="solid",vae={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}},gae={A:"#cc0100",C:"#0000cc",G:"#ffb300",T:"#027f00",U:"#027f00"},yae={A:"#7fa0f0",R:"#ef1405",N:"#01ff00",D:"#c048bf",C:"#ef8080",Q:"#01ff00",E:"#c048bf",G:"#f09047",H:"#14a4a4",I:"#7fa0f0",L:"#7fa0f0",K:"#ef1405",M:"#7fa0f0",F:"#7fa0f0",P:"#ffff00",S:"#01ff00",T:"#01ff00",W:"#7fa0f0",Y:"#14a4a4",V:"#7fa0f0",B:"#eeeeee",X:"#eeeeee",Z:"#eeeeee"};function Hy(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wae(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nS(e){let t,n,r;e.length!==2?(t=Hy,n=(s,c)=>Hy(e(s),c),r=(s,c)=>e(s)-c):(t=e===Hy||e===wae?e:Cae,n=e,r=e);function a(s,c,f=0,A=s.length){if(f<A){if(t(c,c)!==0)return A;do{const h=f+A>>>1;n(s[h],c)<0?f=h+1:A=h}while(f<A)}return f}function i(s,c,f=0,A=s.length){if(f<A){if(t(c,c)!==0)return A;do{const h=f+A>>>1;n(s[h],c)<=0?f=h+1:A=h}while(f<A)}return f}function o(s,c,f=0,A=s.length){const h=a(s,c,f,A-1);return h>f&&r(s[h-1],c)>-r(s[h],c)?h-1:h}return{left:a,center:o,right:i}}function Cae(){return 0}function lL(e){return e===null?NaN:+e}function*bae(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const sL=nS(Hy).right;nS(lL).center;function Eae(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function xae(e,t){let n=0,r,a=0,i=0;for(let o of e)o!=null&&(o=+o)>=o&&(r=o-a,a+=r/++n,i+=r*(o-a));if(n>1)return i/(n-1)}function uL(e,t){const n=xae(e);return n&&Math.sqrt(n)}function $A(e,t){let n,r;if(t===void 0)for(const a of e)a!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)));else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}class cL extends Map{constructor(t,n=kae){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(fL(this,t))}has(t){return super.has(fL(this,t))}set(t,n){return super.set(Sae(this,t),n)}delete(t){return super.delete(Bae(this,t))}}function fL({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Sae({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Bae({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function kae(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Tae(e){return e}function _ae(e=Hy){if(e===Hy)return dL;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function dL(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Pae=Array.prototype,Mae=Pae.slice;function rS(e){return()=>e}const Dae=Math.sqrt(50),Hae=Math.sqrt(10),Iae=Math.sqrt(2);function pC(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=Dae?10:i>=Hae?5:i>=Iae?2:1;let s,c,f;return a<0?(f=Math.pow(10,-a)/o,s=Math.round(e*f),c=Math.round(t*f),s/f<e&&++s,c/f>t&&--c,f=-f):(f=Math.pow(10,a)*o,s=Math.round(e/f),c=Math.round(t/f),s*f<e&&++s,c*f>t&&--c),c<s&&.5<=n&&n<2?pC(e,t,n*2):[s,c,f]}function hC(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?pC(t,e,n):pC(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let f=0;f<s;++f)c[f]=(i-f)/-o;else for(let f=0;f<s;++f)c[f]=(i-f)*o;else if(o<0)for(let f=0;f<s;++f)c[f]=(a+f)/-o;else for(let f=0;f<s;++f)c[f]=(a+f)*o;return c}function Iy(e,t,n){return t=+t,e=+e,n=+n,pC(e,t,n)[2]}function aS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Iy(t,e,n):Iy(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Lae(e,t,n){let r;for(;;){const a=Iy(e,t,n);if(a===r||a===0||!isFinite(a))return[e,t];a>0?(e=Math.floor(e/a)*a,t=Math.ceil(t/a)*a):a<0&&(e=Math.ceil(e*a)/a,t=Math.floor(t*a)/a),r=a}}function Rae(e){return Math.max(1,Math.ceil(Math.log(Eae(e))/Math.LN2)+1)}function AL(){var e=Tae,t=$A,n=Rae;function r(a){Array.isArray(a)||(a=Array.from(a));var i,o=a.length,s,c,f=new Array(o);for(i=0;i<o;++i)f[i]=e(a[i],i,a);var A=t(f),h=A[0],m=A[1],g=n(f,h,m);if(!Array.isArray(g)){const D=m,O=+g;if(t===$A&&([h,m]=Lae(h,m,O)),g=hC(h,m,O),g[0]<=h&&(c=Iy(h,m,O)),g[g.length-1]>=m)if(D>=m&&t===$A){const I=Iy(h,m,O);isFinite(I)&&(I>0?m=(Math.floor(m/I)+1)*I:I<0&&(m=(Math.ceil(m*-I)+1)/-I))}else g.pop()}for(var b=g.length,C=0,x=b;g[C]<=h;)++C;for(;g[x-1]>m;)--x;(C||x<b)&&(g=g.slice(C,x),b=x-C);var k=new Array(b+1),_;for(i=0;i<=b;++i)_=k[i]=[],_.x0=i>0?g[i-1]:h,_.x1=i<b?g[i]:m;if(isFinite(c)){if(c>0)for(i=0;i<o;++i)(s=f[i])!=null&&h<=s&&s<=m&&k[Math.min(b,Math.floor((s-h)/c))].push(a[i]);else if(c<0){for(i=0;i<o;++i)if((s=f[i])!=null&&h<=s&&s<=m){const D=Math.floor((h-s)*c);k[Math.min(b,D+(g[D]<=s))].push(a[i])}}}else for(i=0;i<o;++i)(s=f[i])!=null&&h<=s&&s<=m&&k[sL(g,s,0,b)].push(a[i]);return k}return r.value=function(a){return arguments.length?(e=typeof a=="function"?a:rS(a),r):e},r.domain=function(a){return arguments.length?(t=typeof a=="function"?a:rS([a[0],a[1]]),r):t},r.thresholds=function(a){return arguments.length?(n=typeof a=="function"?a:rS(Array.isArray(a)?Mae.call(a):a),r):n},r}function Ih(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function mC(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function pL(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?dL:_ae(a);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,A=Math.log(c),h=.5*Math.exp(2*A/3),m=.5*Math.sqrt(A*h*(c-h)/c)*(f-c/2<0?-1:1),g=Math.max(n,Math.floor(t-f*h/c+m)),b=Math.min(r,Math.floor(t+(c-f)*h/c+m));pL(e,t,g,b,a)}const i=e[t];let o=n,s=r;for(F5(e,n,t),a(e[r],i)>0&&F5(e,n,r);o<s;){for(F5(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[n],i)===0?F5(e,n,s):(++s,F5(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function F5(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function hL(e,t,n){if(e=Float64Array.from(bae(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return mC(e);if(t>=1)return Ih(e);var r,a=(r-1)*t,i=Math.floor(a),o=Ih(pL(e,i).subarray(0,i+1)),s=mC(e.subarray(i+1));return o+(s-o)*(a-i)}}function Dp(e,t,n=lL){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function tu(e,t){let n=0,r=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(++n,r+=a);else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function Nae(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function Sc(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function Dv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const mL=Symbol("implicit");function Hl(){var e=new cL,t=[],n=[],r=mL;function a(i){let o=e.get(i);if(o===void 0){if(r!==mL)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new cL;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Hl(t,n).unknown(r)},Dv.apply(a,arguments),a}function V5(){var e=Hl().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,f=0,A=.5;delete e.unknown;function h(){var m=t().length,g=a<r,b=g?a:r,C=g?r:a;i=(C-b)/Math.max(1,m-c+f*2),s&&(i=Math.floor(i)),b+=(C-b-i*(m-c))*A,o=i*(1-c),s&&(b=Math.round(b),o=Math.round(o));var x=Nae(m).map(function(k){return b+i*k});return n(g?x.reverse():x)}return e.domain=function(m){return arguments.length?(t(m),h()):t()},e.range=function(m){return arguments.length?([r,a]=m,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(m){return[r,a]=m,r=+r,a=+a,s=!0,h()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(m){return arguments.length?(s=!!m,h()):s},e.padding=function(m){return arguments.length?(c=Math.min(1,f=+m),h()):c},e.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),h()):c},e.paddingOuter=function(m){return arguments.length?(f=+m,h()):f},e.align=function(m){return arguments.length?(A=Math.max(0,Math.min(1,m)),h()):A},e.copy=function(){return V5(t(),[r,a]).round(s).paddingInner(c).paddingOuter(f).align(A)},Dv.apply(h(),arguments)}function iS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function O5(){}var Q5=.7,vC=1/Q5,Ly="\\s*([+-]?\\d+)\\s*",z5="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",M0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$ae=/^#([0-9a-f]{3,8})$/,Fae=new RegExp(`^rgb\\(${Ly},${Ly},${Ly}\\)$`),Vae=new RegExp(`^rgb\\(${M0},${M0},${M0}\\)$`),Oae=new RegExp(`^rgba\\(${Ly},${Ly},${Ly},${z5}\\)$`),Qae=new RegExp(`^rgba\\(${M0},${M0},${M0},${z5}\\)$`),zae=new RegExp(`^hsl\\(${z5},${M0},${M0}\\)$`),Uae=new RegExp(`^hsla\\(${z5},${M0},${M0},${z5}\\)$`),gL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};iS(O5,Hv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yL,formatHex:yL,formatHex8:jae,formatHsl:Gae,formatRgb:wL,toString:wL});function yL(){return this.rgb().formatHex()}function jae(){return this.rgb().formatHex8()}function Gae(){return SL(this).formatHsl()}function wL(){return this.rgb().formatRgb()}function Hv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?CL(t):n===3?new Md(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gC(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Fae.exec(e))?new Md(t[1],t[2],t[3],1):(t=Vae.exec(e))?new Md(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Oae.exec(e))?gC(t[1],t[2],t[3],t[4]):(t=Qae.exec(e))?gC(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zae.exec(e))?xL(t[1],t[2]/100,t[3]/100,1):(t=Uae.exec(e))?xL(t[1],t[2]/100,t[3]/100,t[4]):gL.hasOwnProperty(e)?CL(gL[e]):e==="transparent"?new Md(NaN,NaN,NaN,0):null}function CL(e){return new Md(e>>16&255,e>>8&255,e&255,1)}function gC(e,t,n,r){return r<=0&&(e=t=n=NaN),new Md(e,t,n,r)}function Yae(e){return e instanceof O5||(e=Hv(e)),e?(e=e.rgb(),new Md(e.r,e.g,e.b,e.opacity)):new Md}function Ry(e,t,n,r){return arguments.length===1?Yae(e):new Md(e,t,n,r??1)}function Md(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}iS(Md,Ry,vL(O5,{brighter(e){return e=e==null?vC:Math.pow(vC,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Q5:Math.pow(Q5,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Md(Iv(this.r),Iv(this.g),Iv(this.b),yC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bL,formatHex:bL,formatHex8:Wae,formatRgb:EL,toString:EL}));function bL(){return`#${Lv(this.r)}${Lv(this.g)}${Lv(this.b)}`}function Wae(){return`#${Lv(this.r)}${Lv(this.g)}${Lv(this.b)}${Lv((isNaN(this.opacity)?1:this.opacity)*255)}`}function EL(){const e=yC(this.opacity);return`${e===1?"rgb(":"rgba("}${Iv(this.r)}, ${Iv(this.g)}, ${Iv(this.b)}${e===1?")":`, ${e})`}`}function yC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Iv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lv(e){return e=Iv(e),(e<16?"0":"")+e.toString(16)}function xL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Hp(e,t,n,r)}function SL(e){if(e instanceof Hp)return new Hp(e.h,e.s,e.l,e.opacity);if(e instanceof O5||(e=Hv(e)),!e)return new Hp;if(e instanceof Hp)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new Hp(o,s,c,e.opacity)}function Xae(e,t,n,r){return arguments.length===1?SL(e):new Hp(e,t,n,r??1)}function Hp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}iS(Hp,Xae,vL(O5,{brighter(e){return e=e==null?vC:Math.pow(vC,e),new Hp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q5:Math.pow(Q5,e),new Hp(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Md(oS(e>=240?e-240:e+120,a,r),oS(e,a,r),oS(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Hp(BL(this.h),wC(this.s),wC(this.l),yC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yC(this.opacity);return`${e===1?"hsl(":"hsla("}${BL(this.h)}, ${wC(this.s)*100}%, ${wC(this.l)*100}%${e===1?")":`, ${e})`}`}}));function BL(e){return e=(e||0)%360,e<0?e+360:e}function wC(e){return Math.max(0,Math.min(1,e||0))}function oS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const lS=e=>()=>e;function Kae(e,t){return function(n){return e+n*t}}function Zae(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Jae(e){return(e=+e)==1?kL:function(t,n){return n-t?Zae(t,n,e):lS(isNaN(t)?n:t)}}function kL(e,t){var n=t-e;return n?Kae(e,n):lS(isNaN(e)?t:e)}const CC=function e(t){var n=Jae(t);function r(a,i){var o=n((a=Ry(a)).r,(i=Ry(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),f=kL(a.opacity,i.opacity);return function(A){return a.r=o(A),a.g=s(A),a.b=c(A),a.opacity=f(A),a+""}}return r.gamma=e,r}(1);function qae(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function eie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function tie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=cS(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function nie(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ip(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function rie(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=cS(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var sS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uS=new RegExp(sS.source,"g");function aie(e){return function(){return e}}function iie(e){return function(t){return e(t)+""}}function TL(e,t){var n=sS.lastIndex=uS.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=sS.exec(e))&&(a=uS.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:Ip(r,a)})),n=uS.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?iie(c[0].x):aie(t):(t=c.length,function(f){for(var A=0,h;A<t;++A)s[(h=c[A]).i]=h.x(f);return s.join("")})}function cS(e,t){var n=typeof t,r;return t==null||n==="boolean"?lS(t):(n==="number"?Ip:n==="string"?(r=Hv(t))?(t=r,CC):TL:t instanceof Hv?CC:t instanceof Date?nie:eie(t)?qae:Array.isArray(t)?tie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?rie:Ip)(e,t)}function oie(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var _L=180/Math.PI,fS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function PL(e,t,n,r,a,i){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*_L,skewX:Math.atan(c)*_L,scaleX:o,scaleY:s}}var bC;function lie(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?fS:PL(t.a,t.b,t.c,t.d,t.e,t.f)}function sie(e){return e==null||(bC||(bC=document.createElementNS("http://www.w3.org/2000/svg","g")),bC.setAttribute("transform",e),!(e=bC.transform.baseVal.consolidate()))?fS:(e=e.matrix,PL(e.a,e.b,e.c,e.d,e.e,e.f))}function ML(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function i(f,A,h,m,g,b){if(f!==h||A!==m){var C=g.push("translate(",null,t,null,n);b.push({i:C-4,x:Ip(f,h)},{i:C-2,x:Ip(A,m)})}else(h||m)&&g.push("translate("+h+t+m+n)}function o(f,A,h,m){f!==A?(f-A>180?A+=360:A-f>180&&(f+=360),m.push({i:h.push(a(h)+"rotate(",null,r)-2,x:Ip(f,A)})):A&&h.push(a(h)+"rotate("+A+r)}function s(f,A,h,m){f!==A?m.push({i:h.push(a(h)+"skewX(",null,r)-2,x:Ip(f,A)}):A&&h.push(a(h)+"skewX("+A+r)}function c(f,A,h,m,g,b){if(f!==h||A!==m){var C=g.push(a(g)+"scale(",null,",",null,")");b.push({i:C-4,x:Ip(f,h)},{i:C-2,x:Ip(A,m)})}else(h!==1||m!==1)&&g.push(a(g)+"scale("+h+","+m+")")}return function(f,A){var h=[],m=[];return f=e(f),A=e(A),i(f.translateX,f.translateY,A.translateX,A.translateY,h,m),o(f.rotate,A.rotate,h,m),s(f.skewX,A.skewX,h,m),c(f.scaleX,f.scaleY,A.scaleX,A.scaleY,h,m),f=A=null,function(g){for(var b=-1,C=m.length,x;++b<C;)h[(x=m[b]).i]=x.x(g);return h.join("")}}}var uie=ML(lie,"px, ","px)","deg)"),cie=ML(sie,", ",")",")"),fie=1e-12;function DL(e){return((e=Math.exp(e))+1/e)/2}function die(e){return((e=Math.exp(e))-1/e)/2}function Aie(e){return((e=Math.exp(2*e))-1)/(e+1)}const pie=function e(t,n,r){function a(i,o){var s=i[0],c=i[1],f=i[2],A=o[0],h=o[1],m=o[2],g=A-s,b=h-c,C=g*g+b*b,x,k;if(C<fie)k=Math.log(m/f)/t,x=function(Q){return[s+Q*g,c+Q*b,f*Math.exp(t*Q*k)]};else{var _=Math.sqrt(C),D=(m*m-f*f+r*C)/(2*f*n*_),O=(m*m-f*f-r*C)/(2*m*n*_),I=Math.log(Math.sqrt(D*D+1)-D),$=Math.log(Math.sqrt(O*O+1)-O);k=($-I)/t,x=function(Q){var ee=Q*k,J=DL(I),ae=f/(n*_)*(J*Aie(t*ee+I)-die(I));return[s+ae*g,c+ae*b,f*J/DL(t*ee+I)]}}return x.duration=k*1e3*t/Math.SQRT2,x}return a.rho=function(i){var o=Math.max(.001,+i),s=o*o,c=s*s;return e(o,s,c)},a}(Math.SQRT2,2,4);function hie(e){return function(){return e}}function dS(e){return+e}var HL=[0,1];function D0(e){return e}function AS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:hie(isNaN(t)?NaN:.5)}function mie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function vie(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=AS(a,r),i=n(o,i)):(r=AS(r,a),i=n(i,o)),function(s){return i(r(s))}}function gie(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=AS(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=sL(e,s,1,r)-1;return i[c](a[c](s))}}function U5(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function EC(){var e=HL,t=HL,n=cS,r,a,i,o=D0,s,c,f;function A(){var m=Math.min(e.length,t.length);return o!==D0&&(o=mie(e[0],e[m-1])),s=m>2?gie:vie,c=f=null,h}function h(m){return m==null||isNaN(m=+m)?i:(c||(c=s(e.map(r),t,n)))(r(o(m)))}return h.invert=function(m){return o(a((f||(f=s(t,e.map(r),Ip)))(m)))},h.domain=function(m){return arguments.length?(e=Array.from(m,dS),A()):e.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),A()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),n=oie,A()},h.clamp=function(m){return arguments.length?(o=m?!0:D0,A()):o!==D0},h.interpolate=function(m){return arguments.length?(n=m,A()):n},h.unknown=function(m){return arguments.length?(i=m,h):i},function(m,g){return r=m,a=g,A()}}function IL(){return EC()(D0,D0)}function yie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xC(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ny(e){return e=xC(Math.abs(e)),e?e[1]:NaN}function wie(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function Cie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var bie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function j5(e){if(!(t=bie.exec(e)))throw new Error("invalid format: "+e);var t;return new pS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}j5.prototype=pS.prototype;function pS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}pS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Eie(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var LL;function xie(e,t){var n=xC(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(LL=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+xC(e,Math.max(0,t+i-1))[0]}function RL(e,t){var n=xC(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const NL={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yie,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>RL(e*100,t),r:RL,s:xie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function $L(e){return e}var FL=Array.prototype.map,VL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Sie(e){var t=e.grouping===void 0||e.thousands===void 0?$L:wie(FL.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?$L:Cie(FL.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(h){h=j5(h);var m=h.fill,g=h.align,b=h.sign,C=h.symbol,x=h.zero,k=h.width,_=h.comma,D=h.precision,O=h.trim,I=h.type;I==="n"?(_=!0,I="g"):NL[I]||(D===void 0&&(D=12),O=!0,I="g"),(x||m==="0"&&g==="=")&&(x=!0,m="0",g="=");var $=C==="$"?n:C==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",Q=C==="$"?r:/[%p]/.test(I)?o:"",ee=NL[I],J=/[defgprs%]/.test(I);D=D===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function ae(U){var G=$,K=Q,Y,X,oe;if(I==="c")K=ee(U)+K,U="";else{U=+U;var me=U<0||1/U<0;if(U=isNaN(U)?c:ee(Math.abs(U),D),O&&(U=Eie(U)),me&&+U==0&&b!=="+"&&(me=!1),G=(me?b==="("?b:s:b==="-"||b==="("?"":b)+G,K=(I==="s"?VL[8+LL/3]:"")+K+(me&&b==="("?")":""),J){for(Y=-1,X=U.length;++Y<X;)if(oe=U.charCodeAt(Y),48>oe||oe>57){K=(oe===46?a+U.slice(Y+1):U.slice(Y))+K,U=U.slice(0,Y);break}}}_&&!x&&(U=t(U,1/0));var re=G.length+U.length+K.length,ge=re<k?new Array(k-re+1).join(m):"";switch(_&&x&&(U=t(ge+U,ge.length?k-K.length:1/0),ge=""),g){case"<":U=G+U+K+ge;break;case"=":U=G+ge+U+K;break;case"^":U=ge.slice(0,re=ge.length>>1)+G+U+K+ge.slice(re);break;default:U=ge+G+U+K;break}return i(U)}return ae.toString=function(){return h+""},ae}function A(h,m){var g=f((h=j5(h),h.type="f",h)),b=Math.max(-8,Math.min(8,Math.floor(Ny(m)/3)))*3,C=Math.pow(10,-b),x=VL[8+b/3];return function(k){return g(C*k)+x}}return{format:f,formatPrefix:A}}var SC,G5,OL;Bie({thousands:",",grouping:[3],currency:["$",""]});function Bie(e){return SC=Sie(e),G5=SC.format,OL=SC.formatPrefix,SC}function kie(e){return Math.max(0,-Ny(Math.abs(e)))}function Tie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ny(t)/3)))*3-Ny(Math.abs(e)))}function _ie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ny(t)-Ny(e))+1}function Pie(e,t,n,r){var a=aS(e,t,n),i;switch(r=j5(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Tie(a,o))&&(r.precision=i),OL(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=_ie(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=kie(a))&&(r.precision=i-(r.type==="%")*2);break}}return G5(r)}function BC(e){var t=e.domain;return e.ticks=function(n){var r=t();return hC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Pie(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],c,f,A=10;for(s<o&&(f=o,o=s,s=f,f=a,a=i,i=f);A-- >0;){if(f=Iy(o,s,n),f===c)return r[a]=o,r[i]=s,t(r);if(f>0)o=Math.floor(o/f)*f,s=Math.ceil(s/f)*f;else if(f<0)o=Math.ceil(o*f)/f,s=Math.floor(s*f)/f;else break;c=f}return e},e}function Da(){var e=IL();return e.copy=function(){return U5(e,Da())},Dv.apply(e,arguments),BC(e)}function J1(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,dS),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return J1(e).unknown(t)},e=arguments.length?Array.from(e,dS):[0,1],BC(n)}function QL(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function zL(e){return Math.log(e)}function UL(e){return Math.exp(e)}function Mie(e){return-Math.log(-e)}function Die(e){return-Math.exp(-e)}function Hie(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Iie(e){return e===10?Hie:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Lie(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function jL(e){return(t,n)=>-e(-t,n)}function Rie(e){const t=e(zL,UL),n=t.domain;let r=10,a,i;function o(){return a=Lie(r),i=Iie(r),n()[0]<0?(a=jL(a),i=jL(i),e(Mie,Die)):e(zL,UL),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let f=c[0],A=c[c.length-1];const h=A<f;h&&([f,A]=[A,f]);let m=a(f),g=a(A),b,C;const x=s==null?10:+s;let k=[];if(!(r%1)&&g-m<x){if(m=Math.floor(m),g=Math.ceil(g),f>0){for(;m<=g;++m)for(b=1;b<r;++b)if(C=m<0?b/i(-m):b*i(m),!(C<f)){if(C>A)break;k.push(C)}}else for(;m<=g;++m)for(b=r-1;b>=1;--b)if(C=m>0?b/i(-m):b*i(m),!(C<f)){if(C>A)break;k.push(C)}k.length*2<x&&(k=hC(f,A,x))}else k=hC(m,g,Math.min(g-m,x)).map(i);return h?k.reverse():k},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=j5(c)).precision==null&&(c.trim=!0),c=G5(c)),s===1/0)return c;const f=Math.max(1,r*s/t.ticks().length);return A=>{let h=A/i(Math.round(a(A)));return h*r<r-.5&&(h*=r),h<=f?c(A):""}},t.nice=()=>n(QL(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Rv(){const e=Rie(EC()).domain([1,10]);return e.copy=()=>U5(e,Rv()).base(e.base()),Dv.apply(e,arguments),e}function GL(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function YL(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Nie(e){var t=1,n=e(GL(t),YL(t));return n.constant=function(r){return arguments.length?e(GL(t=+r),YL(t)):t},BC(n)}function q1(){var e=Nie(EC());return e.copy=function(){return U5(e,q1()).constant(e.constant())},Dv.apply(e,arguments)}function WL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $ie(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Fie(e){return e<0?-e*e:e*e}function Vie(e){var t=e(D0,D0),n=1;function r(){return n===1?e(D0,D0):n===.5?e($ie,Fie):e(WL(n),WL(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},BC(t)}function hS(){var e=Vie(EC());return e.copy=function(){return U5(e,hS()).exponent(e.exponent())},Dv.apply(e,arguments),e}function $y(){return hS.apply(null,arguments).exponent(.5)}const mS=new Date,vS=new Date;function Tu(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let f;do c.push(f=new Date(+i)),t(i,s),e(i);while(f<i&&i<o);return c},a.filter=i=>Tu(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(mS.setTime(+i),vS.setTime(+o),e(mS),e(vS),Math.floor(n(mS,vS))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const kC=Tu(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kC.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Tu(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kC),kC.range;const Lh=1e3,FA=Lh*60,Rh=FA*60,Nh=Rh*24,gS=Nh*7,XL=Nh*30,yS=Nh*365,Fy=Tu(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Lh)},(e,t)=>(t-e)/Lh,e=>e.getUTCSeconds());Fy.range;const wS=Tu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lh)},(e,t)=>{e.setTime(+e+t*FA)},(e,t)=>(t-e)/FA,e=>e.getMinutes());wS.range,Tu(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*FA)},(e,t)=>(t-e)/FA,e=>e.getUTCMinutes()).range;const CS=Tu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lh-e.getMinutes()*FA)},(e,t)=>{e.setTime(+e+t*Rh)},(e,t)=>(t-e)/Rh,e=>e.getHours());CS.range,Tu(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Rh)},(e,t)=>(t-e)/Rh,e=>e.getUTCHours()).range;const Y5=Tu(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*FA)/Nh,e=>e.getDate()-1);Y5.range;const bS=Tu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nh,e=>e.getUTCDate()-1);bS.range,Tu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nh,e=>Math.floor(e/Nh)).range;function Nv(e){return Tu(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*FA)/gS)}const TC=Nv(0),_C=Nv(1),Oie=Nv(2),Qie=Nv(3),Vy=Nv(4),zie=Nv(5),Uie=Nv(6);TC.range,_C.range,Oie.range,Qie.range,Vy.range,zie.range,Uie.range;function $v(e){return Tu(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/gS)}const KL=$v(0),PC=$v(1),jie=$v(2),Gie=$v(3),Oy=$v(4),Yie=$v(5),Wie=$v(6);KL.range,PC.range,jie.range,Gie.range,Oy.range,Yie.range,Wie.range;const ES=Tu(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ES.range,Tu(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()).range;const $h=Tu(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$h.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tu(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),$h.range;const Fv=Tu(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Fv.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tu(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Fv.range;function Xie(e,t,n,r,a,i){const o=[[Fy,1,Lh],[Fy,5,5*Lh],[Fy,15,15*Lh],[Fy,30,30*Lh],[i,1,FA],[i,5,5*FA],[i,15,15*FA],[i,30,30*FA],[a,1,Rh],[a,3,3*Rh],[a,6,6*Rh],[a,12,12*Rh],[r,1,Nh],[r,2,2*Nh],[n,1,gS],[t,1,XL],[t,3,3*XL],[e,1,yS]];function s(f,A,h){const m=A<f;m&&([f,A]=[A,f]);const g=h&&typeof h.range=="function"?h:c(f,A,h),b=g?g.range(f,+A+1):[];return m?b.reverse():b}function c(f,A,h){const m=Math.abs(A-f)/h,g=nS(([,,x])=>x).right(o,m);if(g===o.length)return e.every(aS(f/yS,A/yS,h));if(g===0)return kC.every(Math.max(aS(f,A,h),1));const[b,C]=o[m/o[g-1][2]<o[g][2]/m?g-1:g];return b.every(C)}return[s,c]}const[Kie,Zie]=Xie($h,ES,TC,Y5,CS,wS);function xS(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function SS(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function W5(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Jie(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,f=X5(a),A=K5(a),h=X5(i),m=K5(i),g=X5(o),b=K5(o),C=X5(s),x=K5(s),k=X5(c),_=K5(c),D={a:me,A:re,b:ge,B:Ee,c:null,d:nR,e:nR,f:Coe,g:Moe,G:Hoe,H:goe,I:yoe,j:woe,L:rR,m:boe,M:Eoe,p:ce,q:ye,Q:uR,s:cR,S:xoe,u:Soe,U:Boe,V:koe,w:Toe,W:_oe,x:null,X:null,y:Poe,Y:Doe,Z:Ioe,"%":sR},O={a:Ye,A:Ne,b:je,B:Oe,c:null,d:iR,e:iR,f:$oe,g:Woe,G:Koe,H:Loe,I:Roe,j:Noe,L:oR,m:Foe,M:Voe,p:Xe,q:dt,Q:uR,s:cR,S:Ooe,u:Qoe,U:zoe,V:Uoe,w:joe,W:Goe,x:null,X:null,y:Yoe,Y:Xoe,Z:Zoe,"%":sR},I={a:ae,A:U,b:G,B:K,c:Y,d:eR,e:eR,f:poe,g:qL,G:JL,H:tR,I:tR,j:coe,L:Aoe,m:uoe,M:foe,p:J,q:soe,Q:moe,s:voe,S:doe,u:roe,U:aoe,V:ioe,w:noe,W:ooe,x:X,X:oe,y:qL,Y:JL,Z:loe,"%":hoe};D.x=$(n,D),D.X=$(r,D),D.c=$(t,D),O.x=$(n,O),O.X=$(r,O),O.c=$(t,O);function $(Ge,rt){return function(He){var $e=[],ut=-1,ct=0,Bt=Ge.length,dn,gn,fr;for(He instanceof Date||(He=new Date(+He));++ut<Bt;)Ge.charCodeAt(ut)===37&&($e.push(Ge.slice(ct,ut)),(gn=ZL[dn=Ge.charAt(++ut)])!=null?dn=Ge.charAt(++ut):gn=dn==="e"?" ":"0",(fr=rt[dn])&&(dn=fr(He,gn)),$e.push(dn),ct=ut+1);return $e.push(Ge.slice(ct,ut)),$e.join("")}}function Q(Ge,rt){return function(He){var $e=W5(1900,void 0,1),ut=ee($e,Ge,He+="",0),ct,Bt;if(ut!=He.length)return null;if("Q"in $e)return new Date($e.Q);if("s"in $e)return new Date($e.s*1e3+("L"in $e?$e.L:0));if(rt&&!("Z"in $e)&&($e.Z=0),"p"in $e&&($e.H=$e.H%12+$e.p*12),$e.m===void 0&&($e.m="q"in $e?$e.q:0),"V"in $e){if($e.V<1||$e.V>53)return null;"w"in $e||($e.w=1),"Z"in $e?(ct=SS(W5($e.y,0,1)),Bt=ct.getUTCDay(),ct=Bt>4||Bt===0?PC.ceil(ct):PC(ct),ct=bS.offset(ct,($e.V-1)*7),$e.y=ct.getUTCFullYear(),$e.m=ct.getUTCMonth(),$e.d=ct.getUTCDate()+($e.w+6)%7):(ct=xS(W5($e.y,0,1)),Bt=ct.getDay(),ct=Bt>4||Bt===0?_C.ceil(ct):_C(ct),ct=Y5.offset(ct,($e.V-1)*7),$e.y=ct.getFullYear(),$e.m=ct.getMonth(),$e.d=ct.getDate()+($e.w+6)%7)}else("W"in $e||"U"in $e)&&("w"in $e||($e.w="u"in $e?$e.u%7:"W"in $e?1:0),Bt="Z"in $e?SS(W5($e.y,0,1)).getUTCDay():xS(W5($e.y,0,1)).getDay(),$e.m=0,$e.d="W"in $e?($e.w+6)%7+$e.W*7-(Bt+5)%7:$e.w+$e.U*7-(Bt+6)%7);return"Z"in $e?($e.H+=$e.Z/100|0,$e.M+=$e.Z%100,SS($e)):xS($e)}}function ee(Ge,rt,He,$e){for(var ut=0,ct=rt.length,Bt=He.length,dn,gn;ut<ct;){if($e>=Bt)return-1;if(dn=rt.charCodeAt(ut++),dn===37){if(dn=rt.charAt(ut++),gn=I[dn in ZL?rt.charAt(ut++):dn],!gn||($e=gn(Ge,He,$e))<0)return-1}else if(dn!=He.charCodeAt($e++))return-1}return $e}function J(Ge,rt,He){var $e=f.exec(rt.slice(He));return $e?(Ge.p=A.get($e[0].toLowerCase()),He+$e[0].length):-1}function ae(Ge,rt,He){var $e=g.exec(rt.slice(He));return $e?(Ge.w=b.get($e[0].toLowerCase()),He+$e[0].length):-1}function U(Ge,rt,He){var $e=h.exec(rt.slice(He));return $e?(Ge.w=m.get($e[0].toLowerCase()),He+$e[0].length):-1}function G(Ge,rt,He){var $e=k.exec(rt.slice(He));return $e?(Ge.m=_.get($e[0].toLowerCase()),He+$e[0].length):-1}function K(Ge,rt,He){var $e=C.exec(rt.slice(He));return $e?(Ge.m=x.get($e[0].toLowerCase()),He+$e[0].length):-1}function Y(Ge,rt,He){return ee(Ge,t,rt,He)}function X(Ge,rt,He){return ee(Ge,n,rt,He)}function oe(Ge,rt,He){return ee(Ge,r,rt,He)}function me(Ge){return o[Ge.getDay()]}function re(Ge){return i[Ge.getDay()]}function ge(Ge){return c[Ge.getMonth()]}function Ee(Ge){return s[Ge.getMonth()]}function ce(Ge){return a[+(Ge.getHours()>=12)]}function ye(Ge){return 1+~~(Ge.getMonth()/3)}function Ye(Ge){return o[Ge.getUTCDay()]}function Ne(Ge){return i[Ge.getUTCDay()]}function je(Ge){return c[Ge.getUTCMonth()]}function Oe(Ge){return s[Ge.getUTCMonth()]}function Xe(Ge){return a[+(Ge.getUTCHours()>=12)]}function dt(Ge){return 1+~~(Ge.getUTCMonth()/3)}return{format:function(Ge){var rt=$(Ge+="",D);return rt.toString=function(){return Ge},rt},parse:function(Ge){var rt=Q(Ge+="",!1);return rt.toString=function(){return Ge},rt},utcFormat:function(Ge){var rt=$(Ge+="",O);return rt.toString=function(){return Ge},rt},utcParse:function(Ge){var rt=Q(Ge+="",!0);return rt.toString=function(){return Ge},rt}}}var ZL={"-":"",_:" ",0:"0"},tc=/^\s*\d+/,qie=/^%/,eoe=/[\\^$*+?|[\]().{}]/g;function no(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function toe(e){return e.replace(eoe,"\\$&")}function X5(e){return new RegExp("^(?:"+e.map(toe).join("|")+")","i")}function K5(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function noe(e,t,n){var r=tc.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function roe(e,t,n){var r=tc.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function aoe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ioe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ooe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function JL(e,t,n){var r=tc.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function qL(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function loe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function soe(e,t,n){var r=tc.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function uoe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function eR(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function coe(e,t,n){var r=tc.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function tR(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function foe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function doe(e,t,n){var r=tc.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Aoe(e,t,n){var r=tc.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function poe(e,t,n){var r=tc.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hoe(e,t,n){var r=qie.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function moe(e,t,n){var r=tc.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function voe(e,t,n){var r=tc.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function nR(e,t){return no(e.getDate(),t,2)}function goe(e,t){return no(e.getHours(),t,2)}function yoe(e,t){return no(e.getHours()%12||12,t,2)}function woe(e,t){return no(1+Y5.count($h(e),e),t,3)}function rR(e,t){return no(e.getMilliseconds(),t,3)}function Coe(e,t){return rR(e,t)+"000"}function boe(e,t){return no(e.getMonth()+1,t,2)}function Eoe(e,t){return no(e.getMinutes(),t,2)}function xoe(e,t){return no(e.getSeconds(),t,2)}function Soe(e){var t=e.getDay();return t===0?7:t}function Boe(e,t){return no(TC.count($h(e)-1,e),t,2)}function aR(e){var t=e.getDay();return t>=4||t===0?Vy(e):Vy.ceil(e)}function koe(e,t){return e=aR(e),no(Vy.count($h(e),e)+($h(e).getDay()===4),t,2)}function Toe(e){return e.getDay()}function _oe(e,t){return no(_C.count($h(e)-1,e),t,2)}function Poe(e,t){return no(e.getFullYear()%100,t,2)}function Moe(e,t){return e=aR(e),no(e.getFullYear()%100,t,2)}function Doe(e,t){return no(e.getFullYear()%1e4,t,4)}function Hoe(e,t){var n=e.getDay();return e=n>=4||n===0?Vy(e):Vy.ceil(e),no(e.getFullYear()%1e4,t,4)}function Ioe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+no(t/60|0,"0",2)+no(t%60,"0",2)}function iR(e,t){return no(e.getUTCDate(),t,2)}function Loe(e,t){return no(e.getUTCHours(),t,2)}function Roe(e,t){return no(e.getUTCHours()%12||12,t,2)}function Noe(e,t){return no(1+bS.count(Fv(e),e),t,3)}function oR(e,t){return no(e.getUTCMilliseconds(),t,3)}function $oe(e,t){return oR(e,t)+"000"}function Foe(e,t){return no(e.getUTCMonth()+1,t,2)}function Voe(e,t){return no(e.getUTCMinutes(),t,2)}function Ooe(e,t){return no(e.getUTCSeconds(),t,2)}function Qoe(e){var t=e.getUTCDay();return t===0?7:t}function zoe(e,t){return no(KL.count(Fv(e)-1,e),t,2)}function lR(e){var t=e.getUTCDay();return t>=4||t===0?Oy(e):Oy.ceil(e)}function Uoe(e,t){return e=lR(e),no(Oy.count(Fv(e),e)+(Fv(e).getUTCDay()===4),t,2)}function joe(e){return e.getUTCDay()}function Goe(e,t){return no(PC.count(Fv(e)-1,e),t,2)}function Yoe(e,t){return no(e.getUTCFullYear()%100,t,2)}function Woe(e,t){return e=lR(e),no(e.getUTCFullYear()%100,t,2)}function Xoe(e,t){return no(e.getUTCFullYear()%1e4,t,4)}function Koe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Oy(e):Oy.ceil(e),no(e.getUTCFullYear()%1e4,t,4)}function Zoe(){return"+0000"}function sR(){return"%"}function uR(e){return+e}function cR(e){return Math.floor(+e/1e3)}var Qy,fR;Joe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Joe(e){return Qy=Jie(e),fR=Qy.format,Qy.parse,Qy.utcFormat,Qy.utcParse,Qy}function qoe(e){return new Date(e)}function ele(e){return e instanceof Date?+e:+new Date(+e)}function dR(e,t,n,r,a,i,o,s,c,f){var A=IL(),h=A.invert,m=A.domain,g=f(".%L"),b=f(":%S"),C=f("%I:%M"),x=f("%I %p"),k=f("%a %d"),_=f("%b %d"),D=f("%B"),O=f("%Y");function I($){return(c($)<$?g:s($)<$?b:o($)<$?C:i($)<$?x:r($)<$?a($)<$?k:_:n($)<$?D:O)($)}return A.invert=function($){return new Date(h($))},A.domain=function($){return arguments.length?m(Array.from($,ele)):m().map(qoe)},A.ticks=function($){var Q=m();return e(Q[0],Q[Q.length-1],$??10)},A.tickFormat=function($,Q){return Q==null?I:f(Q)},A.nice=function($){var Q=m();return(!$||typeof $.range!="function")&&($=t(Q[0],Q[Q.length-1],$??10)),$?m(QL(Q,$)):A},A.copy=function(){return U5(A,dR(e,t,n,r,a,i,o,s,c,f))},A}function tle(){return Dv.apply(dR(Kie,Zie,$h,ES,TC,Y5,CS,wS,Fy,fR).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function AR(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="continuous"}function pR(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="categorical"}function hR(e){return pR(e)||AR(e)}const zy="#110529",nle="solid",BS=1,Z5="21",Lp=3,Uy={min:3,max:10},mR={color:"#ccc",lineShape:nle,dotShape:Z5},rle="light";function ale(e){const t=1/(e.length-1);return Da().domain(e.map((n,r)=>r*t)).range(e)}function vR(e,t){const n=Do[e].colors,r=t.length>1?1/(t.length-1):0,a=ale(n),i=tS(e),o=t.reduce((s,c,f)=>(s[c]={colorIdx:i?f:f*r,aes:{color:i?n[f%n.length]:a(f*r),lineShape:Dy[f%Dy.length],dotShape:$5[f%$5.length]}},s),{});return{type:"categorical",palette:e,naAes:mR,order:t,mapping:o}}function Vv(e){return{type:"continuous",palette:e,naAes:mR,range:null,midPoint:null,log:!1}}function jy(e){return vR(rle,e)}function gR(e,t,n,r){var i;if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??jy(n?((i=e[n])==null?void 0:i.list)??[]:[]);return{order:a.order,inheritedAes:a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={},r.fill&&(o[s].fillColor=c.color,o[s].dotFill=c.color),r.stroke&&(o[s].lineColor=c.color),r.dotShape&&(o[s].dotShape=c.dotShape),r.lineType&&(o[s].lineShape=c.lineShape),o},{})}}function yR(e,t,n){var i;const r=n[e];if(r&&!pR(r))return{};const a=r??jy(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={fillColor:c.color,lineColor:c.color,dotFill:c.color,dotShape:c.dotShape,dotSize:Lp,lineWidth:BS},o},{})}function kS(e,t,n,r){var i;const a=n[e]??jy(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]=c[r],o},{})}const ile={},ole={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function lle(e,t){return d.openBlock(),d.createElementBlock("svg",ole,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 2.25H12V3.75H15.25V11.25H13.5C12.8096 11.25 12.25 11.8096 12.25 12.5V21H13.75V12.75H18.25V16.25H17.5C16.8096 16.25 16.25 16.8096 16.25 17.5V21H17.75V17.75H20.25V21H21.75V17.5C21.75 16.8096 21.1904 16.25 20.5 16.25H19.75V12.5C19.75 11.8096 19.1904 11.25 18.5 11.25H16.75V3.5C16.75 2.80964 16.1904 2.25 15.5 2.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5 3.75H7.25V7.25H8.5C9.19036 7.25 9.75 7.80964 9.75 8.5V21H8.25V8.75H4.75V21H3.25V8.5C3.25 7.80965 3.80964 7.25 4.5 7.25H5.75V3.5C5.75 2.80964 6.30964 2.25 7 2.25H10.5V3.75Z",fill:"#07AD3E"},null,-1)]))}const wR=Wr(ile,[["render",lle]]),MC="pl7.app/graph/thresholds",em="pl7.app/graph/axis/lowerLimit",tm="pl7.app/graph/axis/upperLimit",nm="pl7.app/graph/axis/symmetricRange",Gy="pl7.app/graph/palette",DC="pl7.app/axisNature",sle="pl7.app/isSubset";function ule(e,t){return t==="discrete"?e&&Yy[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&Ov[e]?e:"dots":t==="dendro"?"dendro":e??"heatmap"}const Yy={box:["box"],box_binnedDots:["box","binnedDots"],box_jitteredDots:["box","jitteredDots"],violin:["violin"],violin_binnedDots:["violin","binnedDots"],violin_jitteredDots:["violin","jitteredDots"],binnedDots:["binnedDots"],jitteredDots:["jitteredDots"],bar:["bar"],bar_line:["bar","line"],bar_errorbar:["bar","errorbar"],stackedBar:["stackedBar"],line:["line"],line_jitteredDots:["line","jitteredDots"],line_binnedDots:["line","binnedDots"],line_errorbar:["line","errorbar"],errorbar:["errorbar"],sina:["sina"],logo:["logo"]},Ov={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},CR={dots:["dots"],curve_dots:["curve","dots"]},cle={heatmap:["heatmap"],heatmapClustered:["heatmapClustered"]},fle={bins:["bins"]},H0={box:"Boxplot",binnedDots:"Binned Dots",jitteredDots:"Jittered Dots",violin:"Violins",bar:"Bar",stackedBar:"Stacked Bar",line:"Line",errorbar:"Error Bar",sina:"Sina",logo:"Logo Plot",dots:"Scatter Plot",curve:"Curve",heatmap:"Heatmap",heatmapClustered:"Heatmap + Dendro",dendro:"Dendrogram",bins:"Histogram",bubble:"Bubble plot"};function dle(e,t){var r,a,i,o,s,c,f,A,h,m,g,b,C,x,k,_,D,O,I,$,Q,ee,J,ae,U,G,K,Y,X,oe,me;if(e==="discrete"){const re=t;return{overall:{data:{testMethod:((a=(r=re==null?void 0:re.overall)==null?void 0:r.data)==null?void 0:a.testMethod)??null},validity:{testMethod:((o=(i=re==null?void 0:re.overall)==null?void 0:i.validity)==null?void 0:o.testMethod)??!0}},referenceGroup:{data:{testMethod:((c=(s=re==null?void 0:re.referenceGroup)==null?void 0:s.data)==null?void 0:c.testMethod)??null,referenceGroup:((A=(f=re==null?void 0:re.referenceGroup)==null?void 0:f.data)==null?void 0:A.referenceGroup)??null,correctionMethod:((m=(h=re==null?void 0:re.referenceGroup)==null?void 0:h.data)==null?void 0:m.correctionMethod)??"Bonferroni",format:((b=(g=re==null?void 0:re.referenceGroup)==null?void 0:g.data)==null?void 0:b.format)??"significance",ns:((x=(C=re==null?void 0:re.referenceGroup)==null?void 0:C.data)==null?void 0:x.ns)??!1},validity:{testMethod:((_=(k=re==null?void 0:re.referenceGroup)==null?void 0:k.validity)==null?void 0:_.testMethod)??!0,referenceGroup:((O=(D=re==null?void 0:re.referenceGroup)==null?void 0:D.validity)==null?void 0:O.referenceGroup)??!0}},pairwise:{data:{testMethod:(($=(I=re==null?void 0:re.pairwise)==null?void 0:I.data)==null?void 0:$.testMethod)??null,correctionMethod:((ee=(Q=re==null?void 0:re.pairwise)==null?void 0:Q.data)==null?void 0:ee.correctionMethod)??"Bonferroni",format:((ae=(J=re==null?void 0:re.pairwise)==null?void 0:J.data)==null?void 0:ae.format)??"significance",ns:((G=(U=re==null?void 0:re.pairwise)==null?void 0:U.data)==null?void 0:G.ns)??!1},validity:{testMethod:((Y=(K=re==null?void 0:re.pairwise)==null?void 0:K.validity)==null?void 0:Y.testMethod)??!0}}}}const n=t;return{trend:{on:((X=n==null?void 0:n.trend)==null?void 0:X.on)??!1,trim:((oe=n==null?void 0:n.trend)==null?void 0:oe.trim)??!1,showLegend:((me=n==null?void 0:n.trend)==null?void 0:me.showLegend)??!0}}}function TS(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"min"in e&&"max"in e}function Wy(e){return typeof e=="object"&&e!==null&&"type"in e}function Qv(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"range"in e}const Ale=()=>({bubble:{NAValueAs:0,strokeColor:null,minRadius:3,maxRadius:38,normalizationDirection:"row",normalizationMethod:"standardScaling"},bins:{fillColor:null,opacity:1},dendro:{dotFill:yo,dotShape:P0,dotSize:Lp,lineColor:yo,mode:"normal",leavesMode:"normal",showTable:!1,showLegend:!0},heatmap:{NAValueAs:0,normalizationDirection:"row",normalizationMethod:"standardScaling"},heatmapClustered:{NAValueAs:0,normalizationDirection:"row",normalizationMethod:"standardScaling",dendrogramX:!0,dendrogramY:!0,disableClusteringX:!1,disableClusteringY:!1},dots:{dotFill:null,dotShape:null,dotSize:Lp},curve:{lineColor:yo,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:zy,dotShape:P0,lineType:AC,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:zy,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:P0,lineColor:zy,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:zy,lineType:AC,opacity:1,trim:!1,showQuartiles:!1,quartilesLineStyle:"dashed",medianLineStyle:"solid"},bar:{fillColor:null,lineColor:zy,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:zy,opacity:1,normalize:!1},line:{pointsValues:"mean",lineColor:null,dotShape:P0,lineType:AC,dotFill:null,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:P0,dotFill:null,opacity:1},sina:{dotFill:null,dotShape:P0,opacity:1,showOutliers:!0},logo:{normalize:!1,opacity:1}});function ple(e){const t=Ale();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const hle=()=>({title:{value:"Graph 1",position:"center",mode:"auto",facetTitleFrame:"full"},axisX:{labelsPosition:"bottom",labelsRotation:null,axisLabelsAngle:90,titleMode:"auto",customTitle:"",gridlines:!0,linesBetweenCategories:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed",sorting:"asc"},axisY:{titleMode:"auto",customTitle:"",axisLabelsAngle:90,gridlines:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed",sorting:"asc"},legend:{},other:{frame:"full",reverse:!1,facetSharedBy:"xy",facetColumns:3,binsCount:10}});function bR(e){return e==="full"||e==="none"}function mle(e,t){var a;const n=hle();if(!t)return n;function r(i){return!i||e==="heatmap"&&!bR(i)?"full":e!=="heatmap"&&bR(i)&&i==="none"?"empty":i}return{title:{...n.title,...t.title},axisX:{...n.axisX,...t.axisX},axisY:{...n.axisY,...t.axisY},legend:{...n.legend,...t.legend},other:{...n.other,...t.other,frame:r((a=t.other)==null?void 0:a.frame)}}}const Vf={box:Ine,box_binnedDots:$ne,box_jitteredDots:Qne,binnedDots:Gne,jitteredDots:Kne,violin:ere,violin_binnedDots:are,violin_jitteredDots:sre,bar:eL,bar_line:tL,bar_errorbar:gre,stackedBar:bre,line:nL,line_binnedDots:_re,line_jitteredDots:rL,line_errorbar:Rre,errorbar:tL,sina:Vre,logo:Zre,dots:Ure,curve:nL,curve_dots:rL,heatmap:aL,heatmapClustered:wR,dendro:wR,bins:eL,bubble:aL},HC=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],ER=[{value:"BenjaminiHochberg",text:"Benjamini-Hochberg"},{value:"BenjaminiYekutieli",text:"Benjamini-Yekutieli"},{value:"Bonferroni",text:"Bonferroni"},{value:"Hochberg",text:"Hochberg"},{value:"Holm",text:"Holm"},{value:"Hommel",text:"Hommel"},{value:"none",text:"None"}],xR=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}],SR=600,BR=350,vle=400,gle=250;function kR(e,t,n){var a,i,o,s,c,f;if(((i=(a=e.components)==null?void 0:a.y)==null?void 0:i.selectorStates.length)===0)return[];if(!((s=(o=e.components)==null?void 0:o[n])!=null&&s.selectorStates.length))return["single common group"];const r=(c=e.components)==null?void 0:c[n].selectorStates[0].selectedSource;return((f=t[r])==null?void 0:f.list)??[]}function yle(e){const t=[];if(e.overall.data.testMethod&&e.overall.validity.testMethod&&t.push({type:"stat",statType:"overall",testMethod:e.overall.data.testMethod}),e.referenceGroup.data.testMethod&&e.referenceGroup.validity.testMethod&&e.referenceGroup.validity.referenceGroup){const n={type:"stat",statType:"referenceGroup",testMethod:e.referenceGroup.data.testMethod,referenceGroup:e.referenceGroup.data.referenceGroup,format:e.referenceGroup.data.format,ns:e.referenceGroup.data.ns};e.referenceGroup.data.correctionMethod!=="none"&&(n.correctionMethod=e.referenceGroup.data.correctionMethod),t.push(n)}if(e.pairwise.data.testMethod&&e.pairwise.validity.testMethod){const n={type:"stat",statType:"pairwise",testMethod:e.pairwise.data.testMethod,format:e.pairwise.data.format,ns:e.pairwise.data.ns};e.referenceGroup.data.correctionMethod!=="none"&&(n.correctionMethod=e.referenceGroup.data.correctionMethod),t.push(n)}return t}function TR(e,t,n,r,a){const i=[],o=r.components.primaryGrouping.selectorStates.length>0,s=r.components.secondaryGrouping.selectorStates.length>0;function c(f,A=!1){return f===null?s?{type:"secondaryGrouping"}:o&&!A?{type:"primaryGrouping"}:{type:"secondaryGrouping"}:f}return e.forEach(f=>{var A;if(f==="box"){const h=t[f];i.push({type:"box",aes:{showOutliers:h.showOutliers,dotShape:h.dotShape,fillColor:c(h.fillColor),lineColor:c(h.lineColor),lineShape:h.lineType,opacity:h.opacity}})}if(f==="binnedDots"){const h=t[f];i.push({type:"binnedDots",aes:{showOutliers:h.showOutliers,fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="jitteredDots"){const h=t[f];i.push({type:"dot",aes:{showOutliers:h.showOutliers,dotFill:c(h.dotFill),dotShape:h.dotShape,lineColor:h.lineColor,opacity:h.opacity}})}if(f==="violin"){const h=t[f];i.push({type:"violin",stat:{trim:h.trim},aes:{showQuartiles:h.showQuartiles,medianLineStyle:h.medianLineStyle,quartilesLineStyle:h.quartilesLineStyle,fillColor:c(h.fillColor),lineColor:c(h.lineColor),lineShape:h.lineType,opacity:h.opacity}})}if(f==="bar"){const h=t[f];i.push({type:"bar",height:h.height,aes:{fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="stackedBar"){const h=t[f];i.push({type:"stackedBar",normalize:h.normalize,aes:{fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="line"){const h=t[f];i.push({type:"line",pointsValues:h.pointsValues,aes:{lineColor:c(h.lineColor,!0),fillColor:c(h.dotFill,!0),lineShape:h.lineType,dotShape:h.dotShape,opacity:h.opacity}})}if(f==="errorbar"){const h=t[f];i.push({type:"errorbar",pointsValues:h.pointsValues,interval:h.interval,aes:{lineColor:c(h.lineColor,!0),fillColor:c(h.dotFill,!0),dotShape:h.dotShape,opacity:h.opacity}})}if(f==="sina"){const h=t[f];i.push({type:"sina",aes:{showOutliers:h.showOutliers,dotFill:c(h.dotFill),dotShape:h.dotShape}})}if(f==="logo"&&s){const h=t[f],g=((A=a.getSourceInfo(r.components.secondaryGrouping.selectorStates[0].selectedSource).spec.domain)==null?void 0:A["pl7.app/alphabet"])==="aminoacid";i.push({type:"logo",normalize:h.normalize,aes:{opacity:h.opacity,dotFill:g?yae:gae}})}}),o&&!s&&i.push(...yle(n)),i}function wle(e,t,n){if(e){const r=Qv(t)?t:{column:e.value,range:Uy},a=[1/0,-1/0];return n.values[e.value].forEach(i=>{const o=Number(i);o<a[0]&&(a[0]=o),o>a[1]&&(a[1]=o)}),{columnName:e,domain:a,range:[r.range.min,r.range.max]}}return Qv(t)?Lp:t??Lp}function _R(e,t,n,r){const a=n.find(o=>o.value===e);let i=[1/0,-1/0];if(a){const{range:o,palette:s,midPoint:c,log:f}=t,A=(o==null?void 0:o.minValue)===null||(o==null?void 0:o.minValue)===void 0,h=(o==null?void 0:o.maxValue)===null||(o==null?void 0:o.maxValue)===void 0;if((A||h)&&r.values[a.value].forEach(m=>{const g=Number(m);A&&g<i[0]&&(i[0]=g),h&&g>i[1]&&(i[1]=g)}),A||(i[0]=o==null?void 0:o.minValue),h||(i[1]=o==null?void 0:o.maxValue),c!=null){const m=Math.max(Math.abs(c-i[0]),Math.abs(c-i[1]));i[0]=c-m,i[1]=c+m}return{columnName:a,domain:i,range:Do[s].colors,type:f?"log":"linear"}}return yo}function PR(e,t,n,r,a,i,o=[]){var g,b;const s=[];function c(C,x,k,_=!1){var D;if(x.length){const O=x.length?(D=i.getSourceInfo(x[0]))==null?void 0:D.type:void 0,I=O==="String"||!_?{type:"grouping",value:x[0]}:_R(x[0],Vv(Z1),o,n),$=a[x[0]];return C===null||O==="String"||!_||!AR($)?I:_R(x[0],$,o,n)}return typeof C=="object"?k:C}const f=r.components.grouping.selectorStates.map(C=>C.selectedSource),A=((g=r.components.shape)==null?void 0:g.selectorStates.map(C=>C.selectedSource))??[],h=(b=r.components.size)==null?void 0:b.selectorStates.map(C=>C.selectedSource)[0],m=h?o.find(C=>C.value===h):void 0;return e.forEach(C=>{if(C==="dots"){const x=t[C];s.push({type:"dots",aes:{dotFill:c(x.dotFill,f,yo,!0),dotShape:c(x.dotShape,A,P0),dotSize:wle(m,x.dotSize,n)}})}if(C==="curve"){const x=t[C];s.push({type:"curve",smoothing:x.smoothing,aes:{lineColor:c(x.lineColor,f,yo,!0)}})}}),s}const Cle=6,ble=5;function MR(e,t=[]){return e!==null?e:t.length>Cle&&t.some(({label:n})=>n.length>ble)?"45deg":"center"}function Xy(e,t,n=[]){let r={},a={};t==="discrete"&&(r.labelsPosition=MR(e.axisX.labelsRotation,n),r.linesBetweenCategories=e.axisX.linesBetweenCategories,a.scale=e.axisY.scale),(t==="discrete"||t==="scatterplot"||t==="scatterplot-umap")&&(r.showGrid=e.axisX.gridlines,r.showTicks=e.axisX.ticks,a.showGrid=e.axisY.gridlines,a.showTicks=e.axisY.ticks),(t==="scatterplot"||t==="scatterplot-umap")&&(r.scale=e.axisX.scale,a.scale=e.axisY.scale,r.significantLinesStyle=e.axisX.significantLinesStyle,a.significantLinesStyle=e.axisY.significantLinesStyle),t==="histogram"&&(r.scale=e.axisX.scale,a.scale=e.axisY.scale),(t==="heatmap"||t==="bubble")&&(r.axisLabelsAngle=e.axisX.axisLabelsAngle,a.axisLabelsAngle=e.axisY.axisLabelsAngle,r.sorting=e.axisX.sorting,a.sorting=e.axisY.sorting),e.axisY.titleMode!=="auto"&&(a.title=e.axisY.titleMode==="custom"?e.axisY.customTitle:""),e.axisX.titleMode!=="auto"&&(r.title=e.axisX.titleMode==="custom"?e.axisX.customTitle:"");const i={xAxis:r,yAxis:a,frame:{type:e.other.frame},facetSettings:{nCols:e.other.facetColumns}};return(t==="discrete"||t==="scatterplot"||t==="heatmap")&&(i.orientation=e.other.reverse?"horizontal":"vertical",i.facetSettings.sharedX=["x","xy"].includes(e.other.facetSharedBy),i.facetSettings.sharedY=["y","xy"].includes(e.other.facetSharedBy)),i}function I0(e){return JSON.parse(JSON.stringify(e))}function Ele(e,t){if(typeof e>"u")return!0;const n=Object.keys(e);return typeof t>"u"?n.length===0:n.every(r=>t[r])}function DR(e,t,n,r){return(t==null?void 0:t[sle])==="true"?"subset":r!==void 0?"range":n!==void 0||e==="Int"||e==="String"?"equals":"range"}async function _S(e,t,n=!0){const r=[],a=t.filter(({selectedSource:s})=>"kind"in s&&s.kind==="PColumn"),i=t.filter(({selectedSource:s})=>!("kind"in s&&s.kind==="PColumn")),o=[];for(const{inputName:s,filterType:c,selectedSource:f,selectedFilterValue:A,selectedFilterRange:h,fixedAxes:m}of a){const{name:g,valueType:b,annotations:C,domain:x}=f,k=await e.pFrameProvider.findColumnBy(g,b,d.toRaw(C),d.toRaw(x)),_=s==="filters"||s==="tabBy";if(k){const D=await e.pFrameProvider.getColumnSpecById(k),O=D&&m?m.map(I=>({axisIdx:I.axisIdx,axisValue:I.axisValue,axisSource:hi.fromAxisSpec(D==null?void 0:D.axesSpec[I.axisIdx]).toCanonicalString()})):[];if(!_)r.push({inputName:s,selectedSource:k.toCanonicalString(),fixedAxes:O});else{const I=c??DR(b,D==null?void 0:D.annotations,A,h),$=I==="equals"&&typeof A>"u"?(await e.pFrameProvider.getColumnUniqueValues(k))[0]:A,Q={min:void 0,max:void 0,...h};r.push({inputName:s,filterType:I,selectedSource:k.toCanonicalString(),selectedFilterValue:$,selectedFilterRange:Q,fixedAxes:O})}o.push(...(D==null?void 0:D.axesSpec.map(I=>({spec:I,parentColumn:k})))??[])}else console.warn(`Not found column for default option: ${JSON.stringify({inputName:s,selectedSource:f})}`)}for(const{inputName:s,selectedSource:c,filterType:f,selectedFilterValue:A,selectedFilterRange:h}of i){const m=hi.fromAxisSpec(c),g=m.toCanonicalString(),b=s==="filters"||s==="tabBy",C=b?f??DR(m.type,c==null?void 0:c.annotations):void 0,x=o.find(D=>hi.fromAxisSpec(D.spec).toCanonicalString()===g),k=b&&C==="equals"&&typeof A>"u"&&(x!=null&&x.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(m,[x==null?void 0:x.parentColumn]))[0]:A,_={min:void 0,max:void 0,...h};if(n||r.push({inputName:s,filterType:C,selectedSource:g,selectedFilterValue:k,selectedFilterRange:_,fixedAxes:[]}),x)r.push({inputName:s,filterType:C,selectedSource:g,selectedFilterValue:k,selectedFilterRange:_,fixedAxes:[]});else{const{spec:D,parentColumn:O}=o.find(I=>m.name===I.spec.name&&m.type===I.spec.type&&Ele(m.domain,I.spec.domain))??{};if(D){const I=(s==="filters"||s==="tabBy")&&typeof A>"u"?(await e.pFrameProvider.getAxisUniqueValues(hi.fromAxisSpec(D),[O]))[0]:A;r.push({inputName:s,filterType:C,selectedSource:hi.fromAxisSpec(D).toCanonicalString(),selectedFilterValue:I,selectedFilterRange:_,fixedAxes:[]})}}}return r}async function HR(e,t,n){if(!n||n.length===0)return e;const r=await _S(t,n,!1),a=I0(e);return r.forEach(({inputName:i,selectedSource:o,selectedFilterValue:s})=>{e.components[i]&&a.components[i].selectorStates.push({selectedSource:o,type:"equals",selectedFilterValue:s})}),a}function xle(e,t,n,r){var c;const a=TR(Yy[t.template],t.layersSettings,t.statisticsSettings,t.optionsState,r),i=NR(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState,r);e.layers=a;const o=t.optionsState.components;if(o.primaryGrouping.selectorStates.length&&e.primaryGrouping){const f=o.primaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.primaryGrouping,gR(n,t.dataBindAes[f],f,A))}if(o.secondaryGrouping.selectorStates&&e.secondaryGrouping){const f=o.secondaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.secondaryGrouping,gR(n,t.dataBindAes[f],f,A))}const s=e.primaryGrouping?(c=n[e.primaryGrouping.columnName.value])==null?void 0:c.options:[];return Object.assign(e,Xy(t.axesSettings,t.chartType,s)),e}function Sle(e,t,n,r,a){var b,C,x,k,_;e.layers=PR(Ov[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping,o=n.optionsState.components.shape;if(i.selectorStates.length||o.selectorStates.length){const D=[...i.selectorStates,...o.selectorStates],O={};D.forEach(({selectedSource:I})=>{O[I]=yR(I,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:O})}const s=n.statisticsSettings,c=e.layers.find(D=>D.type==="dots");s.trend.on&&c&&(e.trend={color:(b=c.aes)==null?void 0:b.dotFill,bounded:!1}),Object.assign(e,Xy(n.axesSettings,n.chartType));const f=(C=i.selectorStates[0])==null?void 0:C.selectedSource,A=(x=n.optionsState.components.x.selectorStates[0])==null?void 0:x.selectedSource,h=(k=n.optionsState.components.y.selectorStates[0])==null?void 0:k.selectedSource,m=r.getSourceInfo(A),g=r.getSourceInfo(h);if(i.selectorStates.length){const D=r.getSourceInfo(f).annotations;if(D!=null&&D[MC]&&(JSON.parse(D[MC])??[]).forEach(I=>{const{columnId:$,value:Q}=I;$&&m.kind==="column"&&m.type===$.valueType&&m.name===$.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(Q))),$&&g.kind==="column"&&g.type===$.valueType&&g.name===$.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(Q)))}),D!=null&&D[Gy]){const O=JSON.parse(D[Gy]),{mapping:I={},name:$=""}=O;e.layers.forEach(J=>{J.type==="dots"&&(J.aes||(J.aes={}),J.aes.dotFill={type:"grouping",value:f})});const Q=[...Object.entries(I),["null",dC]],ee=((_=Do[$])==null?void 0:_.colors)??[];e.inheritedAes[f]=Q.reduce((J,[ae,U])=>{const G=ee[Number(U)]??yo;return J[ae]={fillColor:G,lineColor:G,dotFill:G,dotShape:Z5,dotSize:Lp,lineWidth:BS},J},{})}}return m.annotations&&(m.annotations[tm]&&(e.xAxis.upperValue=Number(m.annotations[tm])),m.annotations[em]&&(e.xAxis.lowerValue=Number(m.annotations[em])),m.annotations[nm]&&(e.xAxis.symmetricRange=Number(m.annotations[nm]))),g.annotations&&(g.annotations[tm]&&(e.yAxis.upperValue=Number(g.annotations[tm])),g.annotations[em]&&(e.yAxis.lowerValue=Number(g.annotations[em])),g.annotations[nm]&&(e.yAxis.symmetricRange=Number(g.annotations[nm]))),e}const Ble=750,kle=450;function Tle(e,t,n,r,a){var h,m,g,b;e.layers=PR(Ov[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping;if(i.selectorStates.length){const C=[...i.selectorStates],x={};C.forEach(({selectedSource:k})=>{x[k]=yR(k,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:x})}Object.assign(e,Xy(n.axesSettings,n.chartType));const o=(h=i.selectorStates[0])==null?void 0:h.selectedSource,s=(m=n.optionsState.components.x.selectorStates[0])==null?void 0:m.selectedSource,c=(g=n.optionsState.components.y.selectorStates[0])==null?void 0:g.selectedSource,f=r.getSourceInfo(s),A=r.getSourceInfo(c);if(i.selectorStates.length){const C=r.getSourceInfo(o).annotations;if(C!=null&&C[MC]&&(JSON.parse(C[MC])??[]).forEach(k=>{const{columnId:_,value:D}=k;_&&f.kind==="column"&&f.type===_.valueType&&f.name===_.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(D))),_&&A.kind==="column"&&A.type===_.valueType&&A.name===_.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(D)))}),C!=null&&C[Gy]){const x=JSON.parse(C[Gy]),{mapping:k={},name:_=""}=x;e.layers.forEach(I=>{I.type==="dots"&&(I.aes||(I.aes={}),I.aes.dotFill={type:"grouping",value:o})});const D=[...Object.entries(k),["null",dC]],O=((b=Do[_])==null?void 0:b.colors)??[];e.inheritedAes[o]=D.reduce((I,[$,Q])=>{const ee=O[Number(Q)]??yo;return I[$]={fillColor:ee,lineColor:ee,dotFill:ee,dotShape:Z5,dotSize:Lp,lineWidth:BS},I},{})}}return f.annotations&&(f.annotations[tm]&&(e.xAxis.upperValue=Number(f.annotations[tm])),f.annotations[em]&&(e.xAxis.lowerValue=Number(f.annotations[em])),f.annotations[nm]&&(e.xAxis.symmetricRange=Number(f.annotations[nm]))),A.annotations&&(A.annotations[tm]&&(e.yAxis.upperValue=Number(A.annotations[tm])),A.annotations[em]&&(e.yAxis.lowerValue=Number(A.annotations[em])),A.annotations[nm]&&(e.yAxis.symmetricRange=Number(A.annotations[nm]))),e.size={width:Ble,height:kle},e.lassoMode=n.lassoMode,e}function _le(e,t){var o,s;const n={},r=(o=t.dataBindAes[e.valueColumn.value])==null?void 0:o.palette;if((e==null?void 0:e.valueType)!=="discrete"){if(t.template==="heatmapClustered"){const c=t.layersSettings.heatmapClustered;c.disableClusteringX||(e.dendrogramX={fillNA:0,showNodes:!1,hidden:!c.dendrogramX}),c.disableClusteringY||(e.dendrogramY={fillNA:0,position:"right",showNodes:!1,hidden:!c.dendrogramY})}n.colorsList=Do[r??mae].colors}else n.colorsList=Do[r??"bright"].colors;e.aes=n,(s=e.annotations)==null||s.forEach(c=>{var m;const f=c.valueColumn.value,A=(m=t.dataBindAes[f])==null?void 0:m.palette,h=c.type==="discrete"?oL:Z1;c.colors=Do[A??h].colors}),Object.assign(e,Xy(t.axesSettings,t.chartType)),t.template==="heatmapClustered"&&(e==null?void 0:e.valueType)!=="discrete"&&(e.facetSettings.sharedX=!1,e.facetSettings.sharedY=!1);const a=t.template,i=t.layersSettings[a];return e.NAValueAs=i.NAValueAs,e.valueType==="continuous"&&i.normalizationDirection&&(e.normalization={method:i.normalizationMethod,direction:i.normalizationDirection}),e}const Ple=280;async function Mle(e,t,n,r,a,i){var f,A,h,m;n.rootPosition="left",n.size={width:SR,height:BR};const o=r.optionsState.components,s=r.layersSettings.dendro,c=n==null?void 0:n.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const g=(f=o.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,b=kS(g,a,r.dataBindAes,"dotShape");Object.keys(b).length?c.nodeShape.valuesMap=b:c.nodeShape=Z5}else typeof s.dotShape=="string"&&(c.nodeShape=s.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const g=(A=o.nodeColor.selectorStates[0])==null?void 0:A.selectedSource,b=kS(g,a,r.dataBindAes,"color");Object.keys(b).length?c.nodeColor.valuesMap=b:c.nodeColor=yo}else typeof s.dotFill=="string"&&(c.nodeColor=s.dotFill);if(c.nodeSize&&typeof c.nodeSize=="object"){const g=(h=o.nodeSize.selectorStates[0])==null?void 0:h.selectedSource;let[b,C]=[1/0,-1/0];t.values[g].forEach(x=>{const k=Number(x);k<b&&(b=k),k>C&&(C=k)}),c.nodeSize.domain=[b,C],c.nodeSize.range=TS(s.dotSize)?[s.dotSize.min,s.dotSize.max]:[Uy.min,Uy.max]}else typeof s.dotSize=="number"&&(c.nodeSize=s.dotSize);if(c.lineColor&&typeof c.lineColor=="object"){const g=(m=o.lineColor.selectorStates[0])==null?void 0:m.selectedSource;c.lineColor.valuesMap=kS(g,a,r.dataBindAes,"color")}else typeof s.lineColor=="string"&&(c.lineColor=s.lineColor);if(o.heatmapForSequence.selectorStates.length>0&&(n.heatmapSettings={valueType:"stringSource",aes:{colorsList:Do.bright.colors}},n.size.maxCellWidth=8),o.heatmapAnnotation.selectorStates.length>0){const g=Sn(o.heatmapAnnotation.selectorStates[0].selectedSource),b=await e.pFrameProvider.getColumnSpecById(g),C=(b==null?void 0:b.valueType)==="Double"||(b==null?void 0:b.valueType)==="Float"||(b==null?void 0:b.valueType)==="Int"||(b==null?void 0:b.valueType)==="Long"?"continuous":"discrete",x=Do.bright.colors;let k;C==="discrete"&&(k=(await e.pFrameProvider.getColumnUniqueValues(g)).filter(Boolean).reduce((D,O,I)=>(D[O]=x[I%x.length],D),{})),n.heatmapSettings={valueType:C,aes:{colorsList:Do.viridis.colors,colorsMap:k}}}return n.mode=s.mode,n.leavesMode=s.leavesMode,n.showNodesLabels=o.labels.selectorStates.length>0,n.showLeavesLabels=o.labels.selectorStates.length>0,s.showTable&&o.heatmapAnnotation.selectorStates.length===0&&o.heatmapForSequence.selectorStates.length===0&&(n.size.width=Ple),n.size.scale=i/100,n.legend={show:r.layersSettings.dendro.showLegend??!0},n}function Dle(e,t){const n=fle[t.template],r=[];return n.forEach(a=>{if(a==="bins"){const i=t.layersSettings[a];r.push({type:"bins",aes:{opacity:i.opacity,fillColor:i.fillColor??"white"}})}}),e.layers=r,Object.assign(e,Xy(t.axesSettings,t.chartType)),e.binsCount=t.axesSettings.other.binsCount,e}const IR=40,Hle=IR/2-2,Ile=3;function Lle(e,t){var i;const n=t.template,r=t.layersSettings[n],a=(i=t.dataBindAes[e.valueColor.value])==null?void 0:i.palette;return e.aes={cellStrokeColor:r.strokeColor??yo,colorsList:Do[a??Z1].colors,maxRadius:Hle*(t.chartScale/100),minRadius:Ile},e.size={cellSize:IR*(t.chartScale/100)},Object.assign(e,Xy(t.axesSettings,t.chartType)),e.NAValueAs=r.NAValueAs,r.normalizationDirection&&(e.normalization={method:r.normalizationMethod,direction:r.normalizationDirection}),e}function Rle(e,t=0){return{width:(t>0?vle:SR)*(e/100),height:(t>0?gle:BR)*(e/100)}}function Nle(e,t,n,r){var a,i;if(e!=="scatterplot"&&e!=="scatterplot-umap"&&e!=="discrete"&&e!=="heatmap"&&e!=="histogram"&&e!=="bubble")return{name:"",show:!1};if(r.title.mode==="hidden")return{name:"",show:!1};if(r.title.mode==="custom")return{name:r.title.value,show:!0,position:r.title.position};if(r.title.mode==="auto"){const o=[];return[...((a=t.components)==null?void 0:a.filters.selectorStates)??[],...((i=t.components)==null?void 0:i.tabBy.selectorStates)??[]].forEach(({type:f,selectedSource:A,selectedFilterValue:h})=>{if((!f||f==="equals")&&h){const m=n[A];o.push((m==null?void 0:m.labels[h])??String(h))}}),{name:o.join(", "),show:!0,position:r.title.position}}return{name:"",show:!1}}async function $le(e,t,n,r,a){var i;if(!e.ready||r===null)return null;try{const o=fC(n.chartType),s=await HR(n.optionsState,r,a),c=await o.createDataForPlot(r,s);let f=c.settings;return f.title=Nle(n.chartType,n.optionsState,t,n.axesSettings),f.size=Rle(n.chartScale,((i=n.optionsState.components)==null?void 0:i.facetBy.selectorStates.length)||0),n.chartType==="discrete"&&(f=xle(f,n,t,e)),n.chartType==="scatterplot"&&(f=Sle(f,c.dataByColumns,n,e,t)),n.chartType==="scatterplot-umap"&&(f=Tle(f,c.dataByColumns,n,e,t)),n.chartType==="heatmap"&&(f=_le(f,n)),n.chartType==="dendro"&&(f=await Mle(r,c.dataByColumns,f,n,t,n.chartScale)),n.chartType==="histogram"&&(f=Dle(f,n)),n.chartType==="bubble"&&(f=Lle(f,n)),{settings:f,dataByColumns:c.dataByColumns}}catch(o){return console.warn("Cant build chart data"),console.warn(o.message),null}}function LR(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function RR(e){return e.length<2?[]:e.length>2?HC.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):HC}function PS(e){return async()=>{const t=e.value.commonHelpersData.primaryGroups.value;function n(c,f){return f===null||!!c.find(A=>A.value===f)}if(e.value.reactive.chartType!=="discrete")return;const r=e.value.reactive.statisticsSettings,a=RR(t),i=LR(t),o=r.overall.data.testMethod,s=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,o),r.referenceGroup.validity.referenceGroup=n(i,s)}}function Fle(e){e.dispatchEvent(new MouseEvent("click"))}function Vle(e,t){const n=window.URL||window.webkitURL,r=document.createElement("a");r.download=t,r.rel="noopener",r.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(r.href)},4e4),setTimeout(function(){Fle(r)},0)}function J5(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return Wy(a)&&a.type===n})}function NR(e,t,n,r,a,i){var c,f,A;const o={};let s=[];if(e==="discrete"){s=["primaryGrouping","secondaryGrouping"];const h=TR(Yy[t],n,r,a,i);s.forEach(m=>{var b,C;const g=(C=(b=a.components[m])==null?void 0:b.selectorStates[0])==null?void 0:C.selectedSource;g&&(o[g]={fill:J5(h,"fillColor",m)||J5(h,"dotFill",m),stroke:J5(h,"lineColor",m),dotShape:J5(h,"dotShape",m),lineType:J5(h,"lineShape",m),size:!1})})}if(e==="scatterplot"){const h=a.components.grouping.selectorStates.map(g=>g.selectedSource),m=a.components.shape.selectorStates.map(g=>g.selectedSource);s=[...h,...m],s.forEach(g=>{o[g]={fill:g===h[0],stroke:!1,dotShape:g===m[0],lineType:!1,size:!1}})}return e==="scatterplot-umap"&&(s=a.components.grouping.selectorStates.map(h=>h.selectedSource),s.forEach(h=>{o[h]={fill:h===s[0],stroke:!1,dotShape:!1,lineType:!1,size:!1}})),e==="dendro"&&(s=[((c=a.components.nodeColor.selectorStates[0])==null?void 0:c.selectedSource)??null,((f=a.components.nodeShape.selectorStates[0])==null?void 0:f.selectedSource)??null,((A=a.components.lineColor.selectorStates[0])==null?void 0:A.selectedSource)??null].filter(m=>m!==null),s.forEach(m=>{o[m]={fill:Wy(n.dendro.dotFill)&&n.dendro.dotFill.value===m,stroke:Wy(n.dendro.lineColor)&&n.dendro.lineColor.value===m,dotShape:Wy(n.dendro.dotShape)&&n.dendro.dotShape.value===m,lineType:!1,size:!1}})),o}function Ole(e,t){const n=I0(Pne(e));if((t==null?void 0:t.type)!==e)return n;const r=I0(t);return{...n,...r,components:{...n.components,...r.components}}}function $R(e,t){return d.reactive({chartType:t,optionsState:Ole(t,e.optionsState),template:ule(e.template,t),statisticsSettings:dle(t,e.statisticsSettings),layersSettings:ple(e.layersSettings),axesSettings:mle(t,e.axesSettings),dataBindAes:I0(e.dataBindAes??{}),chartScale:e.zoomState??100,lassoMode:!1,currentTab:e.currentTab===void 0?"dataMapping":e.currentTab,dendroInfoByClick:null,dendroSelectedNodeId:null})}function Qle(e,t,n,r,a,i,o){return{reactive:e,loading:d.reactive({initialInputGuide:!0,initialCharts:!0,initialDefaults:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:d.computed(()=>kR(e.optionsState,i.value,"primaryGrouping")),secondaryGroups:d.computed(()=>kR(e.optionsState,i.value,"secondaryGrouping")),usedAesInMapping:d.computed(()=>NR(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState,n.value)),dendroTableData:a},controller:fC(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r,uniqueValuesData:i,readonlyInputs:o}}function zle(e,t,n,r,a,i,o){const s=$R(e,n),c=fC(s.chartType),f=d.ref(fC(s.chartType).getEmptyInputGuide(s.optionsState)),A=d.ref(null),h=d.ref({}),m=d.ref(null),g=d.computed(()=>Qle(s,d.toRaw(t.value),f,A,m,h,o));d.watch([()=>t.value,()=>r.value],async([x,k])=>{if(!k||!x||!g.value.loading.initialDefaults)return;g.value.loading.initialDefaults=!1,g.value.loading.initialInputGuide=!0;const _=I0(s.optionsState.components),D=k.filter(I=>{var $;return(($=s.optionsState.components[I.inputName])==null?void 0:$.selectorStates.length)===0||(o==null?void 0:o.includes(I.inputName))});if(D.length===0)return;D.forEach(I=>{_[I.inputName].selectorStates=[]});const O=await _S(x,D);for(const{inputName:I,selectedSource:$,filterType:Q,selectedFilterValue:ee,selectedFilterRange:J,fixedAxes:ae}of O)_[I].selectorStates.push({selectedSource:$,type:Q,selectedFilterValue:ee,selectedFilterRange:J,fixedAxes:ae});s.optionsState.components={...s.optionsState.components,..._}},{immediate:!0});const b=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>a.value],async([x,k,_])=>{b.value++;const D=b.value;g.value.loading.inputGuide=!0;const O=k&&_?(await _S(k,_,!1)).map(J=>J.selectedSource):[],I=k?await c.calculateOptions(d.toRaw(k),x,O,i):c.getEmptyInputGuide(x),$=["primaryGrouping","secondaryGrouping","grouping","shape","nodeColor","nodeShape","lineColor","filters","tabBy"],Q=[];$.forEach(J=>{const ae=s.optionsState.components[J];if(ae)for(const{selectedSource:U}of ae.selectorStates)Q.push(U)}),[...I.freeOptionsSet].forEach(J=>{var U,G,K;const ae=I.getSourceInfo(J);ae.kind==="axis"&&((U=ae.annotations)!=null&&U[DC])&&((G=ae.annotations)==null?void 0:G[DC])!=="homogeneous"&&((K=ae.annotations)==null?void 0:K[DC])!=="homogenous"&&Q.push(J)}),[...I.axesToBeFixedSet].forEach(J=>{Q.push(J)});const ee={};for(const J of Q)if(k&&!h.value[J]){const ae=await c.getUniqueSourceValuesWithLabels(k,I,J);if(!ae.length)continue;ae.sort((U,G)=>U.label.localeCompare(G.label,"en",{numeric:!0})),ee[J]={list:ae.map(U=>U.value),options:ae,labels:ae.reduce((U,G)=>(U[G.value]=G.label,U),{})}}h.value={...h.value,...ee},D===b.value&&(f.value=I,g.value.loading.inputGuide=!1,g.value.loading.initialInputGuide=!1)},{immediate:!0,deep:!0});const C=d.ref(0);if(d.watch([()=>f.value,()=>s.template,()=>s.layersSettings,()=>s.axesSettings,()=>s.statisticsSettings,()=>s.dataBindAes,()=>s.chartScale,()=>s.lassoMode],async([x])=>{C.value++;const k=C.value;g.value.loading.chartData=!0;const _=await $le(x,h.value,s,d.toRaw(t.value),a.value);k===C.value&&(A.value=_,x.ready&&(g.value.loading.initialCharts=!1),g.value.loading.chartData=!1)},{immediate:!0,deep:!0}),s.chartType==="dendro"){const x=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>f.value.readyData,()=>a.value],async([k,_,D,O])=>{if(D&&_){x.value++;const I=x.value;g.value.loading.dendroTableData=!0;const $=await HR(k,_,O),Q=await c.createTableData(_,$);x.value===I&&(m.value=Q),g.value.loading.dendroTableData=!1}},{immediate:!0})}return d.provide(HI,g),g}function da(){return zee(d.inject(HI),"Empty store")}const Ule={class:"template-list"},jle=["onClick"],Gle=["onClick"],Yle=["onClick"],Wle=["onClick"],Xle=d.defineComponent({__name:"TemplateForm",setup(e){const t=da(),n=Object.entries(Yy).map(([A,h])=>({id:A,text:h.map(m=>H0[m]).join(" + "),icon:Vf[A]})),r=Object.entries(Ov).map(([A,h])=>({id:A,text:h.map(m=>H0[m]).join(" + "),icon:Vf[A]})),a=Object.entries(CR).map(([A,h])=>({id:A,text:h.map(m=>H0[m]).join(" + "),icon:Vf[A]})),i=[{id:"heatmap",text:"Heatmap",icon:Vf.heatmap},{id:"heatmapClustered",text:"Heatmap + Dendro",icon:Vf.heatmapClustered}],o=[{id:"dendro",text:"Dendrogram",icon:Vf.dendro}],s=[{id:"bins",text:"Histogram",icon:Vf.bar}],c=[{id:"bubble",text:"Bubble plot",icon:Vf.bubble}];function f(A){t.value.reactive.template=A}return(A,h)=>(d.openBlock(),d.createElementBlock("div",{class:"template-form",onClick:h[0]||(h[0]=m=>m.stopPropagation())},[h[8]||(h[8]=d.createElementVNode("div",{class:"template-title"},[d.createElementVNode("h3",null," Template ")],-1)),d.createElementVNode("div",Ule,[d.unref(t).reactive.chartType==="discrete"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(d.unref(n),({id:m,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===m}]),onClick:C=>f(m)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[1]||(h[1]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,jle))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="scatterplot"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(d.unref(r),({id:m,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===m}]),onClick:C=>f(m)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[2]||(h[2]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Gle))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="scatterplot-umap"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:2},d.renderList(d.unref(a),({id:m,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===m}]),onClick:C=>f(m)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[3]||(h[3]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Yle))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="heatmap"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:3},d.renderList(i,({id:m,text:g,icon:b})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===m}]),onClick:C=>f(m)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[4]||(h[4]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Wle)),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="dendro"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:4},d.renderList(o,({text:m,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(m)+" ",1),h[5]||(h[5]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="histogram"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:5},d.renderList(s,({text:m,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(m)+" ",1),h[6]||(h[6]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="bubble"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:6},d.renderList(c,({text:m,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(m)+" ",1),h[7]||(h[7]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0)])]))}});function FR(e,t,n,r,a){return d.computed({get(){return e.value.components[t].selectorStates.map(i=>i.selectedSource)},set(i){if(!r)return;const o=i.map(s=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===s);if(c)return c;{const f=a.value.getSourceInfo(s),A=f.kind==="column"?f.axesToBeFixed.map(h=>{var b,C;const m=a.value.axesToBeFixedSet.has(h);let g;if(m)for(const{selectorStates:x}of Object.values(e.value.components)){for(const k of x){const _=(C=(b=k.fixedAxes)==null?void 0:b.find(D=>D.axisSource===h&&D.axisValue!==void 0))==null?void 0:C.axisValue;if(_){g=_;break}}if(g)break}return console.log(g,"axisValue new"),{axisSource:h,axisIdx:f.axesToBeFixedIndexes[h],axisValue:g}}):[];return f.isSubsetFilter?{selectedSource:s,type:"subset",fixedAxes:A}:f.isDiscreteFilter?{selectedSource:s,type:"equals",selectedFilterValue:void 0,fixedAxes:A}:{selectedSource:s,type:"range",selectedFilterRange:{min:void 0,max:void 0},fixedAxes:A}}});e.value=n.changeSelected(t,r,e.value,o)}})}function VR(e,t,n,r,a){return d.computed({get(){return e.value.components[t].selectorStates.map(i=>i.selectedSource)},set(i){if(!r)return;const o=i.map(s=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===s);if(c)return c;{const f=a.value.getSourceInfo(s),A=f.kind==="column"?f.axesToBeFixed.map(h=>{var b,C;const m=a.value.axesToBeFixedSet.has(h);let g;if(m)for(const{selectorStates:x}of Object.values(e.value.components)){for(const k of x){const _=(C=(b=k.fixedAxes)==null?void 0:b.find(D=>D.axisSource===h&&D.axisValue!==void 0))==null?void 0:C.axisValue;if(_){g=_;break}}if(g)break}return console.log(g,"axisValue new"),{axisSource:h,axisIdx:f.axesToBeFixedIndexes[h],axisValue:g}}):[];return{selectedSource:s,fixedAxes:A}}});e.value=n.changeSelected(t,r,e.value,o)}})}function OR(e,t,n,r){return d.computed({get(){var a;return((a=e.value.components[t].selectorStates.map(i=>i.selectedSource))==null?void 0:a[0])??void 0},set(a){r&&(e.value=n.changeSelected(t,r,e.value,typeof a>"u"?[]:[{selectedSource:a}]))}})}function Kle(e,t,n){const r=e.options.map(i=>({text:t(i.value).label,value:i.value}));return n.selectorStates.map(i=>i.selectedSource).forEach(i=>{const o=t(i),s=e.stateConsistency[i]===!1;r.unshift({text:s?"Inconsistent value":o.label,value:i})}),r.sort((i,o)=>i.text>o.text?1:-1)}function QR(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=Kle(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function MS(e,t){if(!e.value.readyData)return[];const n=new Set;return t.forEach(r=>{e.value.components[r].options.forEach(({value:i})=>{n.add(i)})}),[...n].map(r=>({id:r,info:e.value.getSourceInfo(r)})).sort((r,a)=>r.info.label.localeCompare(a.info.label))}function Zle(e,t){return MS(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function Jle(e,t){return MS(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function zR(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function Ky(e,t){return zR(e,t)?" ":""}function qle(e){var n;const t=(n=e==null?void 0:e[DC])==null?void 0:n.toLowerCase();return!!t&&t!=="homogenous"&&t!=="homogeneous"}function UR(e,t,n){return n.reduce((r,a)=>{var A;const i=e.getSourceInfo(a),s=[...Object.keys(e.components).filter(h=>e.components[h].options.find(m=>m.value===a))],c=Object.values(e.components).some(({stateConsistency:h})=>h[a]===!1),f=(((A=t[a])==null?void 0:A.options)??[]).sort((h,m)=>h.label>m.label?1:-1).map(h=>h.label);return r[a]={id:a,title:c?"Inconsistent value":i.label,type:i.type,nonHomogenous:i.kind==="axis"&&qle(i.annotations),isSubsetFilter:i.isSubsetFilter,isDiscreteFilter:i.isDiscreteFilter,availableBasketIds:new Set(s),uniqueValues:f,axesToBeFixed:i.kind==="column"?i.axesToBeFixed:[],axesToBeFixedInfo:i.kind==="column"?i.axesToBeFixed.reduce((h,m)=>{const g=e.getSourceInfo(m);return h[m]={title:g.label,type:g.type,idx:i.axesToBeFixedIndexes[m]},h},{}):{}},r},{})}const DS=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
28
28
  <path fill-rule="evenodd" clip-rule="evenodd" d="M4.00011 2.93933L8.00011 6.93933L12.0001 2.93933L13.0608 3.99999L9.06077 7.99999L13.0608 12L12.0001 13.0607L8.00011 9.06065L4.00011 13.0607L2.93945 12L6.93945 7.99999L2.93945 3.99999L4.00011 2.93933Z" fill="#110529"/>
29
29
  </svg>`;function jR(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value");return e}function ese(e,t){if(e!=null)return t(e)}function tse(e,t,n){let r;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(this,a)},t)}}function nse(e){let t=0n,n;return async function(...r){const a=++t;try{await n}catch{}if(t!==a)return{ok:!1};const i=e(...r);return n=i,{ok:!0,value:await i}}}const q5=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};function IC(e,t,n,r){d.onMounted(()=>{var a;return(a=d.unref(e))==null?void 0:a.addEventListener(t,n,r)}),d.onUnmounted(()=>{var a;return(a=d.unref(e))==null?void 0:a.removeEventListener(t,n,r)})}function*rse(e,t){for(const n of e)yield t(n)}function ase(e){const t=[];for(const n of e)t.push(n);return t}const HS=new Map;function ise(e){return HS.has(e)||HS.set(e,d.ref(localStorage.getItem(e))),jR(HS.get(e),"...")}function ose(e,t){t==null?localStorage.removeItem(e):localStorage.setItem(e,t)}function lse(e){const t=ise(e);return d.watch(t,n=>ose(e,n)),t}const sse=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{ase(rse(sse.values(),t=>t(e.matches?"dark":"light")))});const use=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.ref(use),lse("theme");const cse=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
30
30
  <path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 4.5H4.5L4.5 19.5H19.5V4.5ZM4.5 3C3.67157 3 3 3.67157 3 4.5V19.5C3 20.3284 3.67157 21 4.5 21H19.5C20.3284 21 21 20.3284 21 19.5V4.5C21 3.67157 20.3284 3 19.5 3H4.5Z" fill="#110529"/>