codecharta-visualization 2.3.2 → 2.5.0
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.
- package/conf/jestEnvironment.js +3 -0
- package/conf/setupJestUnit.ts +14 -3
- package/dist/bundler/browser/chunk-6J2WBHT7.js +4192 -0
- package/dist/bundler/browser/{chunk-YCIMHKQ4.js → chunk-G73QOOPI.js} +1 -1
- package/dist/bundler/browser/index.html +7 -3
- package/dist/bundler/browser/main-2QGIUNMN.js +3570 -0
- package/dist/bundler/browser/package.json +1 -2
- package/package.json +1 -2
- package/dist/bundler/browser/chunk-DHAPNXGE.js +0 -4207
- package/dist/bundler/browser/main-I5D4IDD6.js +0 -3534
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as Ke,$g as im,$h as _m,A as Be,Aa as Js,Ag as Wv,Ah as am,Ba as Cv,C as z,Ca as J,Cg as so,Ch as hc,D as Ye,Da as xt,Dg as cc,Dh as sm,E as qe,Ea as br,Eb as Ev,Eg as Uv,Fa as bv,Fg as Hv,Fh as lm,Gg as Vv,Gh as um,Hg as kr,Hh as fm,Ig as zr,Ih as cm,J as ht,Jb as fc,Jg as al,Jh as hm,K as oo,Kg as Ji,La as Tv,Lg as sl,Lh as fo,Ma as el,Me as nl,Mg as ll,Mh as dm,N as xv,Ng as ul,Nh as ha,Oa as uc,Og as Gv,Oh as fl,Pe as ol,Pg as Yv,Ph as pm,Qg as qv,Qh as cl,Rg as Xv,Rh as hl,S as k,Sg as jv,Sh as vm,Ta as Dv,Tg as Zv,U as Se,Ug as Kv,Uh as mm,V as Sv,Va as re,Vd as il,Vg as $v,Vh as dl,Wg as Qv,X as js,Xa as dt,Xg as Jv,Y as Zs,Ya as me,Yg as em,Za as tl,Zf as Av,Zg as tm,Zh as gm,_ as ao,_f as Pv,_g as rm,_h as ym,a as Gs,aa as $e,ag as Lv,ah as nm,ai as xm,b as Ys,ba as Ks,bg as Nv,ca as Lr,ci as Sm,da as Nr,dg as kv,di as wm,e as no,ea as $,ee as Rv,ei as Cm,fa as U,fb as Mv,fh as lo,fi as bm,g as qs,ga as H,gh as uo,gi as Tm,ha as Ae,hi as Dm,i as fa,ia as Xe,ii as Mm,ja as He,ji as Em,ka as ca,kh as _i,ki as Rm,la as sc,lf as Ov,ma as Dt,mi as Om,na as gi,ni as Im,oa as xe,oi as Am,pa as Kr,qa as ge,qi as Pm,ra as wv,ri as Lm,sa as lc,sb as rl,sf as Iv,si as dc,tb as at,tg as zv,ti as Nm,ub as pt,ug as Fv,ui as km,v as Xs,vb as yi,vg as Bv,vi as zm,wa as $s,xa as Qs,ya as Qi,za as $r,zh as om}from"./chunk-DHAPNXGE.js";var st=(()=>{class r{constructor(){this.domainStateReadWindow=z(Vv),this.store=z(pt),this.settings=at(this.domainStateReadWindow.wordCloudSettings$,{initialValue:sl}),this.hasTfidfData=at(this.store.select(um),{initialValue:!1})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var wC=[[["","body",""]],"*"],CC=["[body]","*"],Fm=(()=>{class r{constructor(){this.label=me.required(),this.value=me.required(),this.idPrefix=me.required(),this.minWidthClass=me("min-w-[120px]"),this.popoverId=re(()=>`${this.idPrefix()}-popover`),this.anchorName=re(()=>`${this.idPrefix()}-cog`),this.segmentTestId=re(()=>`${this.idPrefix()}-segment`),this.cogTestId=re(()=>`${this.idPrefix()}-cog`)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-segment"]],hostAttrs:[1,"contents"],inputs:{label:[1,"label"],value:[1,"value"],idPrefix:[1,"idPrefix"],minWidthClass:[1,"minWidthClass"]},ngContentSelectors:CC,decls:3,vars:8,consts:[[3,"label","metricName","hasCog","cogPopoverId","cogAnchorName","testId","cogTestId","minWidthClass"]],template:function(i,n){i&1&&(wv(wC),U(0,"cc-axis-card",0),lc(1,0,["ngProjectAs","[body]",5,["","body",""]]),H(),lc(2,1)),i&2&&$("label",n.label())("metricName",n.value())("hasCog",!0)("cogPopoverId",n.popoverId())("cogAnchorName",n.anchorName())("testId",n.segmentTestId())("cogTestId",n.cogTestId())("minWidthClass",n.minWidthClass())},dependencies:[Av],encapsulation:2,changeDetection:0})}}return r})();var ur=(()=>{class r{constructor(){this.store=z(pt)}setShape(t){this.store.dispatch(Qv({value:t}))}setSizeRange(t){this.store.dispatch(em({value:t}))}setRotationRange(t){this.store.dispatch(Zv({value:t}))}setRotationStep(t){this.store.dispatch(Kv({value:t}))}setGridSize(t){this.store.dispatch(Yv({value:t}))}setSizingMode(t){this.store.dispatch(tm({value:t}))}setTopN(t){this.store.dispatch(nm({value:t}))}setShrinkToFit(t){this.store.dispatch(Jv({value:t}))}setDrawOutOfBound(t){this.store.dispatch(Gv({value:t}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Bm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.popoverId=me.required(),this.anchorName=me.required(),this.settings=this.readStore.settings,this.minRotationBounds={min:-90,max:0},this.maxRotationBounds={min:0,max:90},this.rotationStepBounds={min:15,max:90,step:15},this.resetKeys=["domainState.rotationRange","domainState.rotationStep"]}onRotationStepChange(t){this.writeStore.setRotationStep(t)}onRotationRangeMinChange(t){this.writeStore.setRotationRange(ll(this.settings().rotationRange,t))}onRotationRangeMaxChange(t){this.writeStore.setRotationRange(ul(this.settings().rotationRange,t))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-rotation-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:15,vars:14,consts:[["ariaLabel","Rotation Settings","widthClass","w-80","contentClass","gap-3 py-3 px-4",3,"popoverId","anchorName"],[1,"flex","flex-col","gap-2","rounded-lg","bg-base-200","p-3"],["data-testid","domain-bar-rotation-min"],[1,"text-sm"],["ariaLabel","Min Rotation in degrees",3,"valueChange","min","max","value"],["data-testid","domain-bar-rotation-max"],["ariaLabel","Max Rotation in degrees",3,"valueChange","min","max","value"],["data-testid","domain-bar-rotation-step","title","Words are rotated in multiples of this angle"],["ariaLabel","Rotation Step in degrees",3,"valueChange","min","max","step","value"],["tooltip","Reset the rotation settings to their defaults","label","Reset rotation",3,"settingsKeys","small"]],template:function(i,n){i&1&&(U(0,"cc-settings-popover-shell",0)(1,"div",1)(2,"div",2)(3,"span",3),J(4,"Min Rotation"),H(),U(5,"cc-slider-number-input",4),xe("valueChange",function(a){return n.onRotationRangeMinChange(a)}),H()(),U(6,"div",5)(7,"span",3),J(8,"Max Rotation"),H(),U(9,"cc-slider-number-input",6),xe("valueChange",function(a){return n.onRotationRangeMaxChange(a)}),H()(),U(10,"div",7)(11,"span",3),J(12,"Rotation Step"),H(),U(13,"cc-slider-number-input",8),xe("valueChange",function(a){return n.onRotationStepChange(a)}),H()()(),Ae(14,"cc-reset-settings-button",9),H()),i&2&&($("popoverId",n.popoverId())("anchorName",n.anchorName()),k(5),$("min",n.minRotationBounds.min)("max",n.minRotationBounds.max)("value",n.settings().rotationRange[0]),k(4),$("min",n.maxRotationBounds.min)("max",n.maxRotationBounds.max)("value",n.settings().rotationRange[1]),k(4),$("min",n.rotationStepBounds.min)("max",n.rotationStepBounds.max)("step",n.rotationStepBounds.step)("value",n.settings().rotationStep),k(),$("settingsKeys",n.resetKeys)("small",!0))},dependencies:[lo,uo,_i],encapsulation:2,changeDetection:0})}}return r})();var da=(()=>{class r{constructor(){this.uploaded=ht(null),this.mask=this.uploaded.asReadonly(),this.dataUri=re(()=>this.uploaded()?.dataUri??null)}accept(t){this.uploaded.set(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Wm="image/svg+xml",bC=["script","foreignObject"],TC=["href","xlink:href"];function Um(r){let e=new DOMParser().parseFromString(r,Wm),t=e.documentElement;if(e.querySelector("parsererror")||t.localName!=="svg")return{rejection:"That file is not an SVG."};let i=bC.find(o=>t.getElementsByTagName(o).length>0);if(i)return{rejection:`An SVG carrying a <${i}> cannot be used as a shape.`};if(DC(t))return{rejection:"An SVG that references another file cannot be used as a shape."};let n=MC(t);return n?{dataUri:`data:${Wm},${encodeURIComponent(new XMLSerializer().serializeToString(n))}`}:{rejection:"That SVG states neither a size nor a viewBox, so it has no shape to fill."}}function DC(r){return[r,...r.querySelectorAll("*")].some(e=>TC.some(t=>{let i=e.getAttribute(t);return i!==null&&!i.startsWith("#")}))}function MC(r){if(r.getAttribute("width")&&r.getAttribute("height"))return r;let e=r.getAttribute("viewBox")?.split(/[\s,]+/).filter(Boolean);if(e?.length!==4)return null;let[,,t,i]=e;return r.setAttribute("width",t),r.setAttribute("height",i),r}function EC(r,e){if(r&1&&(U(0,"option",4),J(1),H()),r&2){let t=e.$implicit,i=ge();$("value",t)("selected",t===i.settings().shape),k(),xt(i.shapeLabels[t])}}function RC(r,e){r&1&&(U(0,"p",8),J(1),H()),r&2&&(k(),xt(e))}function OC(r,e){r&1&&(U(0,"p",9),J(1),H()),r&2&&(k(),br(" ",e.fileName," \u2014 words fill the opaque areas of the shape. "))}function IC(r,e){r&1&&(U(0,"p",10),J(1," The cloud stays round until you upload a shape, and an uploaded one is forgotten on reload. "),H())}function AC(r,e){if(r&1){let t=Dt();U(0,"label",6)(1,"span",2),J(2,"SVG file"),H(),U(3,"input",7),xe("change",function(n){Ye(t);let o=ge();return qe(o.onShapeFileChosen(n))}),H()(),Ke(4,RC,2,1,"p",8)(5,OC,2,1,"p",9)(6,IC,2,0,"p",10)}if(r&2){let t,i=ge();k(4),$e((t=i.rejection())?4:(t=i.uploadedMask())?5:6,t)}}var Hm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.customShapeMaskStore=z(da),this.popoverId=me.required(),this.anchorName=me.required(),this.settings=this.readStore.settings,this.shapes=Object.values(zr),this.shapeLabels=al,this.resetKeys=["domainState.shape"],this.isCustomShape=re(()=>this.settings().shape===zr.custom),this.uploadedMask=this.customShapeMaskStore.mask,this.rejection=ht(null)}onShapeChange(t){this.writeStore.setShape(t)}async onShapeFileChosen(t){let i=t.target.files?.[0];if(!i)return;let n=Um(await i.text());if("rejection"in n){this.rejection.set(n.rejection);return}this.rejection.set(null),this.customShapeMaskStore.accept({fileName:i.name,dataUri:n.dataUri})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-shape-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:9,vars:5,consts:[["ariaLabel","Shape Settings",3,"popoverId","anchorName"],["title","The outline the words are laid out in",1,"form-control","w-full","gap-1"],[1,"text-sm"],["data-testid","domain-bar-shape",1,"select","select-bordered","select-sm","w-full",3,"change"],[3,"value","selected"],["tooltip","Reset the shape to its default","label","Reset shape",3,"settingsKeys","small"],[1,"form-control","w-full","gap-1"],["type","file","accept","image/svg+xml,.svg","data-testid","domain-bar-shape-upload",1,"file-input","file-input-bordered","file-input-sm","w-full",3,"change"],["data-testid","domain-bar-shape-rejection",1,"text-xs","text-error"],["data-testid","domain-bar-shape-file",1,"text-xs","opacity-60"],["data-testid","domain-bar-shape-hint",1,"text-xs","opacity-60"]],template:function(i,n){i&1&&(U(0,"cc-settings-popover-shell",0)(1,"label",1)(2,"span",2),J(3,"Shape"),H(),U(4,"select",3),xe("change",function(a){return n.onShapeChange(a.target.value)}),Lr(5,EC,2,3,"option",4,Ks),H()(),Ke(7,AC,7,1),Ae(8,"cc-reset-settings-button",5),H()),i&2&&($("popoverId",n.popoverId())("anchorName",n.anchorName()),k(5),Nr(n.shapes),k(2),$e(n.isCustomShape()?7:-1),k(),$("settingsKeys",n.resetKeys)("small",!0))},dependencies:[lo,uo],encapsulation:2,changeDetection:0})}}return r})();var Vm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.settings=this.readStore.settings,this.wordCountBounds={min:10,max:1e3,step:10}}onTopNChange(t){this.writeStore.setTopN(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-count-control"]],hostAttrs:[1,"contents"],decls:4,vars:4,consts:[["data-testid","domain-bar-top-n","title","How many of the most important words are drawn",1,"rounded-lg","bg-base-200","p-3"],[1,"text-sm"],["ariaLabel","Words",3,"valueChange","min","max","step","value"]],template:function(i,n){i&1&&(U(0,"div",0)(1,"span",1),J(2,"Words"),H(),U(3,"cc-slider-number-input",2),xe("valueChange",function(a){return n.onTopNChange(a)}),H()()),i&2&&(k(3),$("min",n.wordCountBounds.min)("max",n.wordCountBounds.max)("step",n.wordCountBounds.step)("value",n.settings().topN))},dependencies:[_i],encapsulation:2,changeDetection:0})}}return r})();var Gm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.settings=this.readStore.settings,this.smallestWordBounds={min:10,max:40},this.largestWordBounds={min:40,max:120},this.shrinkToFitTitle=re(()=>this.settings().shrinkToFit?"On \u2014 words that do not fit are shrunk until they do, so the full word count is drawn. Tail words can render below Smallest Word.":"Off \u2014 words that do not fit are left out, so Smallest Word is exact but fewer words than requested appear."),this.drawOutOfBoundTitle=re(()=>this.settings().drawOutOfBound?"On \u2014 words may render partially outside the layout area instead of being dropped or shrunk, so more words fit at their true size.":"Off \u2014 every word is kept fully inside the layout area; words that only fit overlapping the edge are shrunk or left out.")}onSizeRangeMinChange(t){this.writeStore.setSizeRange(ll(this.settings().sizeRange,t))}onSizeRangeMaxChange(t){this.writeStore.setSizeRange(ul(this.settings().sizeRange,t))}onShrinkToFitChange(t){this.writeStore.setShrinkToFit(t)}onDrawOutOfBoundChange(t){this.writeStore.setDrawOutOfBound(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-size-range-control"]],hostAttrs:[1,"contents"],decls:17,vars:10,consts:[[1,"flex","flex-col","gap-2","rounded-lg","bg-base-200","p-3"],["data-testid","domain-bar-size-min","title","The least important word in the cloud renders at this size"],[1,"text-sm"],["ariaLabel","Smallest Word in pixels",3,"valueChange","min","max","value"],["data-testid","domain-bar-size-max","title","The most important word in the cloud renders at this size"],["ariaLabel","Largest Word in pixels",3,"valueChange","min","max","value"],["data-testid","domain-bar-shrink-to-fit",1,"flex","cursor-pointer","items-center","gap-2",3,"title"],["type","checkbox",1,"checkbox","checkbox-sm",3,"change","checked"],["data-testid","domain-bar-draw-out-of-bound",1,"flex","cursor-pointer","items-center","gap-2",3,"title"]],template:function(i,n){i&1&&(U(0,"div",0)(1,"div",1)(2,"span",2),J(3,"Smallest Word"),H(),U(4,"cc-slider-number-input",3),xe("valueChange",function(a){return n.onSizeRangeMinChange(a)}),H()(),U(5,"div",4)(6,"span",2),J(7,"Largest Word"),H(),U(8,"cc-slider-number-input",5),xe("valueChange",function(a){return n.onSizeRangeMaxChange(a)}),H()(),U(9,"label",6)(10,"input",7),xe("change",function(a){return n.onShrinkToFitChange(a.target.checked)}),H(),U(11,"span",2),J(12,"Fit All Words"),H()(),U(13,"label",8)(14,"input",7),xe("change",function(a){return n.onDrawOutOfBoundChange(a.target.checked)}),H(),U(15,"span",2),J(16,"Draw Outside Bounds"),H()()()),i&2&&(k(4),$("min",n.smallestWordBounds.min)("max",n.smallestWordBounds.max)("value",n.settings().sizeRange[0]),k(4),$("min",n.largestWordBounds.min)("max",n.largestWordBounds.max)("value",n.settings().sizeRange[1]),k(),$("title",n.shrinkToFitTitle()),k(),$("checked",n.settings().shrinkToFit),k(3),$("title",n.drawOutOfBoundTitle()),k(),$("checked",n.settings().drawOutOfBound))},dependencies:[_i],encapsulation:2,changeDetection:0})}}return r})();function PC(r,e){r&1&&(Xe(0,"span",5),J(1,"TF-IDF is unavailable: the loaded file has no TF-IDF scores."),He())}var Ym=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.settings=this.readStore.settings,this.hasTfidfData=this.readStore.hasTfidfData,this.WordCloudSizingMode=Ji,this.tfidfOptionTitle=re(()=>this.hasTfidfData()?"TF-IDF (relative importance) \u2014 sizes words by how distinctive they are, not by raw count":"TF-IDF (relative importance) \u2014 not available: the loaded file has no TF-IDF scores")}onSizingModeChange(t){this.writeStore.setSizingMode(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-sizing-mode-control"]],hostAttrs:[1,"contents"],decls:9,vars:7,consts:[["title","Which word metric drives a word's rendered size",1,"form-control","w-full","gap-1"],[1,"text-sm"],["data-testid","domain-bar-sizing-mode",1,"select","select-bordered","select-sm","w-full",3,"change"],["title","Frequency \u2014 sizes words by how often they occur",3,"value","selected"],[3,"value","selected","disabled","title"],[1,"text-xs","opacity-70"]],template:function(i,n){i&1&&(Xe(0,"label",0)(1,"span",1),J(2,"Word Sizing"),He(),Xe(3,"select",2),Kr("change",function(a){return n.onSizingModeChange(a.target.value)}),Xe(4,"option",3),J(5," Frequency "),He(),Xe(6,"option",4),J(7," TF-IDF "),He()(),Ke(8,PC,2,0,"span",5),He()),i&2&&(k(4),gi("value",n.WordCloudSizingMode.frequency)("selected",n.settings().sizingMode===n.WordCloudSizingMode.frequency),k(2),gi("value",n.WordCloudSizingMode.tfidf)("selected",n.settings().sizingMode===n.WordCloudSizingMode.tfidf)("disabled",!n.hasTfidfData())("title",n.tfidfOptionTitle()),k(2),$e(n.hasTfidfData()?-1:8))},encapsulation:2,changeDetection:0})}}return r})();var qm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.settings=this.readStore.settings,this.wordSpacingBounds={min:4,max:16,step:4}}onGridSizeChange(t){this.writeStore.setGridSize(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-spacing-control"]],hostAttrs:[1,"contents"],decls:4,vars:4,consts:[["data-testid","domain-bar-grid-size","title","Spacing between words in pixels \u2014 larger means fewer, more spread-out words",1,"rounded-lg","bg-base-200","p-3"],[1,"text-sm"],["ariaLabel","Word Spacing in pixels",3,"valueChange","min","max","step","value"]],template:function(i,n){i&1&&(U(0,"div",0)(1,"span",1),J(2,"Word Spacing"),H(),U(3,"cc-slider-number-input",2),xe("valueChange",function(a){return n.onGridSizeChange(a)}),H()()),i&2&&(k(3),$("min",n.wordSpacingBounds.min)("max",n.wordSpacingBounds.max)("step",n.wordSpacingBounds.step)("value",n.settings().gridSize))},dependencies:[_i],encapsulation:2,changeDetection:0})}}return r})();var Xm=(()=>{class r{constructor(){this.popoverId=me.required(),this.anchorName=me.required(),this.resetKeys=["domainState.sizingMode","domainState.topN","domainState.sizeRange","domainState.gridSize","domainState.shrinkToFit","domainState.drawOutOfBound"]}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-sizing-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:6,vars:4,consts:[["ariaLabel","Word Sizing Settings","widthClass","w-80","contentClass","gap-3 py-3 px-4",3,"popoverId","anchorName"],["tooltip","Reset the word sizing settings to their defaults","label","Reset word sizing",3,"settingsKeys","small"]],template:function(i,n){i&1&&(U(0,"cc-settings-popover-shell",0),Ae(1,"cc-word-sizing-mode-control")(2,"cc-word-count-control")(3,"cc-word-size-range-control")(4,"cc-word-spacing-control")(5,"cc-reset-settings-button",1),H()),i&2&&($("popoverId",n.popoverId())("anchorName",n.anchorName()),k(5),$("settingsKeys",n.resetKeys)("small",!0))},dependencies:[lo,uo,Ym,Vm,Gm,qm],encapsulation:2,changeDetection:0})}}return r})();var pc=(()=>{class r{constructor(){this.barBottom=Pv,this.readStore=z(st),this.settings=this.readStore.settings,this.shapeLabel=re(()=>al[this.settings().shape]),this.sizingModeLabel=re(()=>this.settings().sizingMode===Ji.tfidf?"TF-IDF":"Frequency"),this.rotationRangeLabel=re(()=>{let[t,i]=this.settings().rotationRange;return`${t}\xB0 \u2013 ${i}\xB0`})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-bar"]],hostVars:2,hostBindings:function(i,n){i&2&&$r("bottom",n.barBottom)},features:[js([Lv])],decls:11,vars:10,consts:[["shape",""],["wordSizing",""],["rotation",""],["label","Shape","idPrefix","domain-bar-shape","minWidthClass","min-w-[100px]",3,"value"],[3,"popoverId","anchorName"],["label","Word Sizing","idPrefix","domain-bar-word-sizing",3,"value"],["body","","data-testid","domain-bar-top-n-value",1,"text-xs","opacity-70","text-center"],["label","Rotation","idPrefix","domain-bar-rotation","minWidthClass","min-w-[110px]",3,"value"]],template:function(i,n){if(i&1&&(U(0,"cc-domain-segment",3,0),Ae(2,"cc-shape-settings-popover",4),H(),U(3,"cc-domain-segment",5,1)(5,"div",6),J(6),H(),Ae(7,"cc-word-sizing-settings-popover",4),H(),U(8,"cc-domain-segment",7,2),Ae(10,"cc-rotation-settings-popover",4),H()),i&2){let o=Qi(1),a=Qi(4),s=Qi(9);$("value",n.shapeLabel()),k(2),$("popoverId",o.popoverId())("anchorName",o.anchorName()),k(),$("value",n.sizingModeLabel()),k(3),br("",n.settings().topN," words"),k(),$("popoverId",a.popoverId())("anchorName",a.anchorName()),k(),$("value",n.rotationRangeLabel()),k(2),$("popoverId",s.popoverId())("anchorName",s.anchorName())}},dependencies:[Fm,Hm,Xm,Bm],encapsulation:2,changeDetection:0})}}return r})();var vc=(()=>{class r{static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-toolbox"]],features:[el([{provide:om,useExisting:sm}])],decls:2,vars:0,consts:[[1,"join","shadow-md","bg-base-100","rounded"],["view","domain"]],template:function(i,n){i&1&&(U(0,"div",0),Ae(1,"cc-toolbox-screenshot-button",1),H())},dependencies:[am],encapsulation:2,changeDetection:0})}}return r})();function LC(r,e){if(r&1){let t=Dt();U(0,"cc-floating-menu",1),xe("dismissed",function(){Ye(t);let n=ge();return qe(n.close())}),U(1,"button",2),xe("click",function(){Ye(t);let n=ge();return qe(n.copyWord())}),Ae(2,"i"),U(3,"span",3),J(4),H()(),Ae(5,"div",4),U(6,"cc-context-menu-item",5),xe("itemClick",function(){Ye(t);let n=ge();return qe(n.searchForThisWord())}),J(7," Search word "),H(),U(8,"cc-context-menu-item",6),xe("itemClick",function(){Ye(t);let n=ge();return qe(n.hideThisWord())}),J(9," Hide word "),H()()}if(r&2){let t,i=ge();$("anchor",e),k(2),Cv(Tv("w-4 text-center ",i.wasWordCopied()?"fa-solid fa-check text-success":"fa-regular fa-copy")),k(2),xt((t=i.rightClickedWord())==null?null:t.word)}}var mc=(()=>{class r{constructor(){this.clipboard=z(ha),this.rightClickedWord=me(null),this.searchWord=dt(),this.hideWord=dt(),this.closed=dt(),this.anchor=re(()=>{let t=this.rightClickedWord();return t?{x:t.clientX,y:t.clientY}:null}),this.wasWordCopied=this.clipboard.copied}searchForThisWord(){let t=this.rightClickedWord();t&&this.searchWord.emit(t.word),this.close()}hideThisWord(){let t=this.rightClickedWord();t&&this.hideWord.emit(t.word),this.close()}async copyWord(){let t=this.rightClickedWord();t&&await this.clipboard.copy(t.word)}close(){this.closed.emit()}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-menu"]],inputs:{rightClickedWord:[1,"rightClickedWord"]},outputs:{searchWord:"searchWord",hideWord:"hideWord",closed:"closed"},decls:1,vars:1,consts:[["data-testid","domain-word-menu",1,"w-56",3,"anchor"],["data-testid","domain-word-menu",1,"w-56",3,"dismissed","anchor"],["type","button","title","Copy word to clipboard","data-testid","domain-word-menu-copy",1,"flex","w-full","items-center","gap-3","px-4","py-2.5","text-left","hover:bg-base-200",3,"click"],[1,"truncate","text-sm","font-semibold","tracking-wide"],[1,"my-1","border-t","border-base-300"],["icon","fa-solid fa-magnifying-glass","hoverHint","Put this word into the explorer's word search",3,"itemClick"],["icon","fa-solid fa-eye-slash","hoverHint","Drop this word from the cloud and the word list",3,"itemClick"]],template:function(i,n){if(i&1&&Ke(0,LC,10,5,"cc-floating-menu",0),i&2){let o;$e((o=n.anchor())?0:-1,o)}},dependencies:[Nv,kv],encapsulation:2,changeDetection:0})}}return r})();function pl(r,e){if(e.length===0)return r;let t=new Set(e);return r.filter(i=>!t.has(i.text))}var NC=yi(fm,so,pl),en=(()=>{class r{constructor(){this.store=z(pt),this.projectWords$=this.store.select(NC)}occurrencesOf(t,i){return this.store.select(hm(i,t))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();function pa(r,e){let t=e.trim().toLowerCase();return r.filter(({text:i})=>i.toLowerCase().includes(t))}var Ht=(function(r){return r.OCCURRENCES="Occurrences",r.NAME="Name",r.RELEVANCE="Relevance",r})(Ht||{}),kC={[Ht.OCCURRENCES]:(r,e)=>r.frequency-e.frequency,[Ht.NAME]:(r,e)=>r.text.localeCompare(e.text),[Ht.RELEVANCE]:(r,e)=>kr(r,Ji.tfidf)-kr(e,Ji.tfidf)};function jm(r,{option:e,ascending:t}){let i=kC[e],n=t?1:-1;return[...r].sort((o,a)=>n*i(o,a)||o.text.localeCompare(a.text))}function Km(r){let{rowCount:e,rowHeight:t,scrolledPast:i,viewportHeight:n}=r;if(e===0||t<=0||n<=0)return zC(r);let o=Zm(Math.floor(i/t)-6,0,e-1),a=Zm(Math.floor((i+n)/t)+6,o,e-1);return{firstIndex:o,lastIndex:a,topSpacerHeight:o*t,bottomSpacerHeight:(e-a-1)*t}}function zC({rowCount:r}){return{firstIndex:0,lastIndex:r-1,topSpacerHeight:0,bottomSpacerHeight:0}}function Zm(r,e,t){return Math.min(Math.max(r,e),t)}function vl(r){let e=r*100;return e>0&&e<1?"<1%":`${Math.round(e)}%`}var $m=(()=>{class r{constructor(){this.contextMenu=z(Mm),this.node=me.required(),this.word=me.required(),this.isExpanded=me(!1),this.isSelected=me(!1),this.clicked=dt(),this.isExpandable=re(()=>this.node().children.length>0),this.isMarked=re(()=>this.contextMenu.isMarked(this.node().path)),this.decoration=re(()=>`${vl(this.node().share)} of "${this.word()}" \xB7 ${fl(this.node().count)}`)}openContextMenu(t){this.contextMenu.openFor(this.node().path,t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-occurrence-row"]],hostAttrs:[1,"block"],hostVars:1,hostBindings:function(i,n){i&1&&xe("click",function(){return n.clicked.emit()})("contextmenu",function(a){return n.openContextMenu(a)}),i&2&&ao("aria-expanded",n.isExpandable()?n.isExpanded():null)},inputs:{node:[1,"node"],word:[1,"word"],isExpanded:[1,"isExpanded"],isSelected:[1,"isSelected"]},outputs:{clicked:"clicked"},decls:4,vars:7,consts:[["barTone","neutral",3,"isSelected","isMarked","barShare","decoration"],[3,"isFolder","isOpen"],[1,"node-name","ml-1","flex-1","truncate"]],template:function(i,n){i&1&&(U(0,"cc-explorer-row",0),Ae(1,"cc-explorer-tree-item-icon",1),U(2,"span",2),J(3),H()()),i&2&&($("isSelected",n.isSelected())("isMarked",n.isMarked())("barShare",n.node().share)("decoration",n.decoration()),k(),$("isFolder",n.node().isFolder)("isOpen",n.isExpanded()),k(2),xt(n.node().name))},dependencies:[cl,gm],encapsulation:2,changeDetection:0})}}return r})();var Qm=r=>({$implicit:r}),FC=(r,e)=>e.path;function BC(r,e){if(r&1&&(U(0,"p",1),J(1),H()),r&2){let t=ge();k(),br("",t.word()," does not occur in any file.")}}function WC(r,e){r&1&&sc(0)}function UC(r,e){if(r&1&&(U(0,"div",2),Zs(1,WC,1,0,"ng-container",3),H()),r&2){let t=ge(),i=Qi(3);k(),$("ngTemplateOutlet",i)("ngTemplateOutletContext",uc(2,Qm,t.topLevelOccurrences()))}}function HC(r,e){r&1&&sc(0)}function VC(r,e){if(r&1&&Zs(0,HC,1,0,"ng-container",3),r&2){let t=ge().$implicit;ge(2);let i=Qi(3);$("ngTemplateOutlet",i)("ngTemplateOutletContext",uc(2,Qm,t.children))}}function GC(r,e){if(r&1){let t=Dt();U(0,"cc-domain-word-occurrence-row",4),xe("clicked",function(){let n=Ye(t).$implicit,o=ge(2);return qe(o.clickRow(n))}),H(),U(1,"div",5),Ke(2,VC,1,4,"ng-container"),H()}if(r&2){let t=e.$implicit,i=ge(2);$("node",t)("word",i.word())("isExpanded",i.isExpanded(t.path))("isSelected",t.path===i.selectedNodePath()),k(2),$e(i.isExpanded(t.path)?2:-1)}}function YC(r,e){if(r&1&&Lr(0,GC,3,5,null,null,FC),r&2){let t=e.$implicit;Nr(t)}}var qC=null,Jm=(()=>{class r{constructor(){this.readStore=z(en),this.word=me.required(),this.selectedNodePath=me(null),this.nodeClicked=dt(),this.occurrences=at(rl(this.word).pipe(Xs(t=>this.readStore.occurrencesOf(t,qC))),{initialValue:null}),this.topLevelOccurrences=re(()=>this.occurrences()?.children??[]),this.expandedPaths=ht(new Set)}isExpanded(t){return this.expandedPaths().has(t)}clickRow(t){t.children.length>0&&this.toggle(t.path),this.nodeClicked.emit(t.path)}toggle(t){let i=new Set(this.expandedPaths());i.delete(t)||i.add(t),this.expandedPaths.set(i)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-occurrence-tree"]],hostAttrs:[1,"block"],inputs:{word:[1,"word"],selectedNodePath:[1,"selectedNodePath"]},outputs:{nodeClicked:"nodeClicked"},decls:4,vars:1,consts:[["subtree",""],["data-testid","domain-word-occurrences-empty",1,"px-3","py-2","text-sm","opacity-60"],["data-testid","domain-word-occurrences-tree"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"clicked","node","word","isExpanded","isSelected"],[1,"pl-3"]],template:function(i,n){i&1&&(Ke(0,BC,2,1,"p",1)(1,UC,2,4,"div",2),Zs(2,YC,2,0,"ng-template",null,0,Dv)),i&2&&$e(n.topLevelOccurrences().length===0?0:1)},dependencies:[Mv,$m],encapsulation:2,changeDetection:0})}}return r})();var XC=r=>`domain-word-row-${r}`,eg=(()=>{class r{constructor(){this.word=me.required(),this.share=me(0),this.isExpanded=me(!1),this.toggled=dt(),this.rowId=re(()=>XC(this.word().text)),this.decoration=re(()=>`${vl(this.share())} of all words \xB7 ${fl(this.word().frequency)}`)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-row"]],hostAttrs:[1,"block"],hostVars:3,hostBindings:function(i,n){i&1&&xe("click",function(){return n.toggled.emit()}),i&2&&(gi("id",n.rowId()),ao("data-testid",n.rowId())("aria-expanded",n.isExpanded()))},inputs:{word:[1,"word"],share:[1,"share"],isExpanded:[1,"isExpanded"]},outputs:{toggled:"toggled"},decls:4,vars:5,consts:[[1,"hover:bg-base-200",3,"barShare","decoration"],["aria-hidden","true",1,"fa","fa-font","text-xs","opacity-70"],[1,"node-name","ml-1","flex-1","truncate"]],template:function(i,n){i&1&&(U(0,"cc-explorer-row",0),Ae(1,"span",1),U(2,"span",2),J(3),H()()),i&2&&($("barShare",n.share())("decoration",n.decoration()),k(2),Js("font-semibold",n.isExpanded()),k(),xt(n.word().text))},dependencies:[cl],encapsulation:2,changeDetection:0})}}return r})();var tg=28,jC="cc-domain-word-row",gc={scrolledPast:0,viewportHeight:0,rowHeight:tg},ml=class{constructor(){this.scrollHost=null,this.measured=ht(gc,{equal:(e,t)=>e.scrolledPast===t.scrolledPast&&e.viewportHeight===t.viewportHeight&&e.rowHeight===t.rowHeight}),this.geometry=this.measured.asReadonly(),this.remeasure=()=>this.measure()}attachTo(e,t){if(!(this.host===e&&this.scrollHost===t)){if(this.stopObserving(),this.host=e,this.scrollHost=t,!t){this.measured.set(gc);return}t.addEventListener("scroll",this.remeasure,{passive:!0}),typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(this.remeasure),this.resizeObserver.observe(e),this.resizeObserver.observe(t)),this.measure()}}measure(){let{host:e,scrollHost:t}=this;if(!(!e||!t)){if(!t.contains(e)){this.measured.set(gc);return}this.measured.set({scrolledPast:Math.max(0,t.getBoundingClientRect().top-e.getBoundingClientRect().top),viewportHeight:t.clientHeight,rowHeight:e.querySelector(jC)?.offsetHeight||tg})}}dispose(){this.stopObserving(),this.host=void 0,this.scrollHost=null}stopObserving(){this.scrollHost?.removeEventListener("scroll",this.remeasure),this.resizeObserver?.disconnect(),this.resizeObserver=void 0}};var ZC=(r,e)=>e.text;function KC(r,e){if(r&1){let t=Dt();U(0,"div",0)(1,"div",1)(2,"span",2),J(3,"Pinned"),H(),U(4,"button",3),xe("click",function(){let n=Ye(t),o=ge();return qe(o.wordToggled.emit(n.text))}),Ae(5,"i",4),H()(),U(6,"cc-domain-word-row",5),xe("toggled",function(){let n=Ye(t),o=ge();return qe(o.wordToggled.emit(n.text))}),H(),U(7,"div",6)(8,"cc-domain-word-occurrence-tree",7),xe("nodeClicked",function(n){Ye(t);let o=ge();return qe(o.nodeClicked.emit(n))}),H()()()}if(r&2){let t=e,i=ge();k(6),$("word",t)("share",i.shareOf(t))("isExpanded",!0),k(2),$("word",t.text)("selectedNodePath",i.selectedNodePath())}}function $C(r,e){r&1&&(U(0,"p",8),J(1),H()),r&2&&(k(),xt(e))}function QC(r,e){if(r&1&&Ke(0,$C,2,1,"p",8),r&2){let t,i=ge();$e((t=i.emptyHint())?0:-1,t)}}function JC(r,e){if(r&1){let t=Dt();U(0,"cc-domain-word-row",10),xe("toggled",function(){let n=Ye(t).$implicit,o=ge(2);return qe(o.wordToggled.emit(n.text))}),H()}if(r&2){let t=e.$implicit,i=ge(2);$("word",t)("share",i.shareOf(t))}}function eb(r,e){if(r&1&&(Ae(0,"div"),Lr(1,JC,1,2,"cc-domain-word-row",9,ZC),Ae(3,"div")),r&2){let t=ge();$r("height",t.window().topSpacerHeight,"px"),k(),Nr(t.renderedWords()),k(2),$r("height",t.window().bottomSpacerHeight,"px")}}var yc=(()=>{class r{constructor(){this.readStore=z(en),this.hostElement=z(xv),this.scrollHostService=z(_m),this.viewport=new ml,this.query=me(""),this.sorting=me({option:Ht.OCCURRENCES,ascending:!1}),this.expandedWord=me(null),this.selectedNodePath=me(null),this.wordToggled=dt(),this.nodeClicked=dt(),this.projectWords=at(this.readStore.projectWords$,{requireSync:!0}),this.pinnedWord=re(()=>this.projectWords().find(t=>t.text===this.expandedWord())??null),this.matchedWords=re(()=>pa(this.projectWords(),this.query())),this.visibleWords=re(()=>jm(this.matchedWords().filter(t=>t.text!==this.expandedWord()),this.sorting())),this.emptyHint=re(()=>this.projectWords().length===0?"This project carries no words.":this.matchedWords().length===0?`No word contains "${this.query().trim()}".`:null),this.geometry=re(()=>Ys(Gs({},this.viewport.geometry()),{rowCount:this.visibleWords().length})),this.window=re(()=>Km(this.geometry())),this.renderedWords=re(()=>{let{firstIndex:t,lastIndex:i}=this.window();return this.visibleWords().slice(t,i+1)}),this.totalOccurrences=re(()=>this.projectWords().reduce((t,i)=>t+i.frequency,0)),oo(()=>this.viewport.attachTo(this.hostElement.nativeElement,this.scrollHostService.element()))}ngOnDestroy(){this.viewport.dispose()}shareOf(t){let i=this.totalOccurrences();return i>0?t.frequency/i:0}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-list"]],hostAttrs:[1,"block"],inputs:{query:[1,"query"],sorting:[1,"sorting"],expandedWord:[1,"expandedWord"],selectedNodePath:[1,"selectedNodePath"]},outputs:{wordToggled:"wordToggled",nodeClicked:"nodeClicked"},decls:3,vars:2,consts:[["data-testid","domain-word-pin",1,"sticky","top-0","z-10","mb-1","rounded-md","border","border-base-300","bg-base-100","shadow-sm"],[1,"flex","items-center","gap-1","px-2","pt-1"],[1,"flex-1","text-[10px]","uppercase","tracking-wide","opacity-60"],["type","button","title","Unpin this word","data-testid","domain-word-unpin",1,"btn","btn-ghost","btn-xs","btn-square","shrink-0",3,"click"],[1,"fa","fa-times"],[3,"toggled","word","share","isExpanded"],[1,"max-h-64","overflow-y-auto","pl-3"],[3,"nodeClicked","word","selectedNodePath"],["data-testid","domain-word-list-empty",1,"px-3","py-4","text-sm","opacity-60"],[3,"word","share"],[3,"toggled","word","share"]],template:function(i,n){if(i&1&&(Ke(0,KC,9,5,"div",0),Ke(1,QC,1,1)(2,eb,4,4)),i&2){let o;$e((o=n.pinnedWord())?0:-1,o),k(),$e(n.visibleWords().length===0?1:2)}},dependencies:[eg,Jm],encapsulation:2,changeDetection:0})}}return r})();var va=(()=>{class r{constructor(){this.store=z(pt),this.hiddenWords=at(this.store.select(so),{initialValue:[]})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var ma=(()=>{class r{constructor(){this.store=z(pt)}hide(t){this.store.dispatch(qv({word:t}))}restore(t){this.store.dispatch(Xv({word:t}))}restoreAll(){this.store.dispatch(jv())}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var tb=["popover"];function rb(r,e){r&1&&(Xe(0,"div",6),J(1," Right-click a word in the cloud to drop it from the cloud and the word list. "),He())}function ib(r,e){if(r&1){let t=Dt();Xe(0,"li",8)(1,"span",10),J(2),He(),Xe(3,"button",11),Kr("click",function(){let n=Ye(t).$implicit,o=ge(2);return qe(o.restore(n))}),ca(4,"i",12),He()()}if(r&2){let t=e.$implicit;k(2),xt(t),k(),gi("title","Show "+t+" again"),ao("aria-label","Show "+t+" again")("data-testid","domain-restore-"+t)}}function nb(r,e){if(r&1){let t=Dt();Xe(0,"ul",7),Lr(1,ib,5,4,"li",8,Ks),He(),Xe(3,"button",9),Kr("click",function(){Ye(t);let n=ge();return qe(n.restoreAll())}),J(4," Show all words again "),He()}if(r&2){let t=ge();k(),Nr(t.hiddenWords())}}var _c=(()=>{class r{constructor(){this.readStore=z(va),this.writeStore=z(ma),this.popoverId=me.required(),this.anchorName=me.required(),this.hiddenWords=re(()=>[...this.readStore.hiddenWords()].sort((t,i)=>t.localeCompare(i))),this.popover=tl.required("popover")}closePopover(){this.popover().nativeElement.hidePopover()}restore(t){this.writeStore.restore(t)}restoreAll(){this.writeStore.restoreAll()}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-hidden-words-popover"]],viewQuery:function(i,n){i&1&&$s(n.popover,tb,5),i&2&&Qs()},hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:9,vars:4,consts:[["popover",""],["popover","",1,"dropdown","p-2","rounded-box","bg-base-100","shadow-lg","w-72",3,"id"],[1,"flex","items-center","justify-between","border-b","border-base-300","pb-1","mb-1"],[1,"text-sm","font-semibold","uppercase","tracking-wide"],["type","button","title","Close","data-testid","domain-hidden-words-close-button",1,"btn","btn-ghost","btn-xs","btn-square",3,"click"],[1,"fa","fa-times"],["data-testid","domain-hidden-words-empty",1,"px-2","py-3","text-xs","opacity-60"],["data-testid","domain-hidden-words-list",1,"m-0","flex","max-h-[60vh]","list-none","flex-col","overflow-y-auto","p-0"],[1,"flex","items-center","gap-2","rounded","py-1","pl-2","pr-1","hover:bg-base-200"],["type","button","data-testid","domain-restore-all-words",1,"btn","btn-sm","btn-block","mt-1",3,"click"],[1,"min-w-0","flex-1","truncate","text-sm"],["type","button",1,"btn","btn-ghost","btn-xs","btn-square",3,"click","title"],[1,"fa","fa-eye"]],template:function(i,n){i&1&&(Xe(0,"div",1,0)(2,"div",2)(3,"span",3),J(4,"Hidden Words"),He(),Xe(5,"button",4),Kr("click",function(){return n.closePopover()}),ca(6,"i",5),He()(),Ke(7,rb,2,0,"div",6)(8,nb,5,0),He()),i&2&&($r("position-anchor","--"+n.anchorName()),gi("id",n.popoverId()),k(7),$e(n.hiddenWords().length===0?7:8))},encapsulation:2,changeDetection:0})}}return r})();var rg=(()=>{class r{constructor(){this.store=z(pt)}wordsForSelectedNode(t){return this.store.select(yi(cm(t),so,pl))}selectedNodeName(t){return il(t,Ev.rootName)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();function tn(r,e,t){return[...r].sort((i,n)=>kr(n,e)-kr(i,e)).slice(0,t)}var ob='<svg xmlns="http://www.w3.org/2000/svg" width="640" height="563" viewBox="58.7 0 64 56.3"><path fill="#000" d="M81.9,20.3h0c0-6.9,3.5-13,8.8-16.7C87.4,1.3,83.4,0,79.1,0,67.9,0,58.8,9.1,58.7,20.3h0v36h17.6V20.4h0c0-1.5,1.2-2.8,2.8-2.8s2.8,1.2,2.8,2.8h0Z"/><path fill="#000" d="M122.7,20.3c0-11.2-9.2-20.3-20.4-20.3s-20.3,9.1-20.4,20.3h0v36h17.6V20.4h0c0-1.1.6-2.1,1.6-2.5,2-.9,4,.6,4,2.5h0v35.9h17.6V20.3h0Z"/></svg>',ig=`data:image/svg+xml,${encodeURIComponent(ob)}`;function xc(r){return new Promise((e,t)=>{if(typeof Image>"u"){t(new Error("Image is not available in this environment"));return}let i=new Image;i.onload=()=>e(i),i.onerror=()=>t(new Error("Failed to load the word-cloud mask image")),i.src=r})}var Sc="#e6007e",wc="#0030ff",ab="--wordCloudColorStart",sb="--wordCloudColorEnd",lb=/^#[0-9A-Fa-f]{6}$/;function og(){if(typeof document>"u"||typeof getComputedStyle>"u")return[Sc,wc];let r=getComputedStyle(document.documentElement);return[ng(r,ab,Sc),ng(r,sb,wc)]}function ng(r,e,t){let i=r.getPropertyValue(e).trim();return Cc(i,t)}function Cc(r,e){return lb.test(r)?r:e}function ag(r,e,t){let i=Math.min(1,Math.max(0,t)),n=nl.convertHexToColorObject(Cc(r,Sc)),o=nl.convertHexToColorObject(Cc(e,wc));return nl.convertColorToHex(new Rv().lerpColors(n,o,i))}function sg(r,e,t,i){let[n,o]=r;if(t||!i||e.length===0)return r;let a=Math.max(...e.map(u=>u.text.length)),s=i*.9/(a*.62),l=Math.max(Math.min(o,Math.floor(s)),1);return[Math.min(n,l),l]}function lg(){return({name:r,data:e})=>{let t=[`<b>${r}</b>`,`Frequency: ${e.frequency}`];return e.tfidf!==void 0&&t.push(`TF-IDF: ${e.tfidf.toFixed(3)}`),t.join("<br/>")}}var ub=31,ug=1e3;function fg(r,e,t){return ag(e,t,fb(r))}function fb(r){let e=0;for(let t of r)e=(e*ub+(t.codePointAt(0)??0))%ug;return e/ug}var cb=10,hb="#333",db='Roboto, "Helvetica Neue", sans-serif',pb=.55;function hg(r,e,t={}){let i=tn(r,e.sizingMode,e.topN),n=sg(e.sizeRange,i,e.drawOutOfBound,t.containerWidth),{shape:o,maskImage:a,keepAspect:s}=mb(e.shape,t.maskImage);return{aria:{enabled:!0},tooltip:{show:!0,formatter:lg()},series:[{type:"wordCloud",shape:o,maskImage:a,keepAspect:s,left:"center",top:"center",width:`${.9*100}%`,height:`${.9*100}%`,sizeRange:n,rotationRange:e.rotationRange,rotationStep:e.rotationStep,gridSize:e.gridSize,drawOutOfBound:e.drawOutOfBound,shrinkToFit:e.shrinkToFit,layoutAnimation:t.layoutAnimation??!0,textStyle:{fontFamily:db,fontWeight:"bold"},emphasis:{textStyle:{textShadowBlur:cb,textShadowColor:hb}},blur:{textStyle:{opacity:pb}},data:vb(i,e)}]}}function vb(r,e){let[t,i]=og();return r.map(n=>({name:n.text,value:kr(n,e.sizingMode),frequency:n.frequency,tfidf:n.tfidf,textStyle:{color:fg(n.text,t,i)}}))}function mb(r,e){return r===zr.logoM||r===zr.custom?{shape:zr.circle,maskImage:e,keepAspect:!0}:{shape:r,maskImage:void 0,keepAspect:!1}}var bc=function(r,e){return bc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},bc(r,e)};function Ce(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");bc(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Tc=function(r,e){return Tc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Tc(r,e)};function ee(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Tc(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var gl=12,gb="sans-serif",Tr=gl+"px "+gb,yb=20,_b=100,xb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Sb(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),n=(r.charCodeAt(t)-yb)/_b;e[i]=n}return e}var wb=Sb(xb),tr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,i){if(!r){var n=tr.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==i&&(e=r.font=i||Tr),r.measureText(t);t=t||"",i=i||Tr;var o=/((?:\d+)?\.?\d*)px/.exec(i),a=o&&+o[1]||gl,s=0;if(i.indexOf("mono")>=0)s=a*t.length;else for(var l=0;l<t.length;l++){var u=wb[t[l]];s+=u==null?a:u*a}return{width:s}}})(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i}};var vg=zt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),mg=zt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),ya=Object.prototype.toString,_l=Array.prototype,Cb=_l.forEach,bb=_l.filter,Dc=_l.slice,Tb=_l.map,dg=function(){}.constructor,yl=dg?dg.prototype:null,Mc="__proto__",Db=2311;function xl(){return Db++}function ho(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ne(r){if(r==null||typeof r!="object")return r;var e=r,t=ya.call(r);if(t==="[object Array]"){if(!ga(r)){e=[];for(var i=0,n=r.length;i<n;i++)e[i]=ne(r[i])}}else if(mg[t]){if(!ga(r)){var o=r.constructor;if(o.from)e=o.from(r);else{e=new o(r.length);for(var i=0,n=r.length;i<n;i++)e[i]=r[i]}}}else if(!vg[t]&&!ga(r)&&!co(r)){e={};for(var a in r)r.hasOwnProperty(a)&&a!==Mc&&(e[a]=ne(r[a]))}return e}function Ee(r,e,t){if(!B(e)||!B(r))return t?ne(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==Mc){var n=r[i],o=e[i];B(o)&&B(n)&&!L(o)&&!L(n)&&!co(o)&&!co(n)&&!pg(o)&&!pg(n)&&!ga(o)&&!ga(n)?Ee(n,o,t):(t||!(i in r))&&(r[i]=ne(e[i]))}return r}function P(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Mc&&(r[t]=e[t]);return r}function ce(r,e,t){for(var i=ye(e),n=0,o=i.length;n<o;n++){var a=i[n];(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}return r}var BN=tr.createCanvas;function he(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function Sl(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function kt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var o=i[n];o!=="constructor"&&(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}else ce(r,e,t)}function nt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function S(r,e,t){if(r&&e)if(r.forEach&&r.forEach===Cb)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)e.call(t,r[i],i,r);else for(var o in r)r.hasOwnProperty(o)&&e.call(t,r[o],o,r)}function X(r,e,t){if(!r)return[];if(!e)return wl(r);if(r.map&&r.map===Tb)return r.map(e,t);for(var i=[],n=0,o=r.length;n<o;n++)i.push(e.call(t,r[n],n,r));return i}function zt(r,e,t,i){if(r&&e){for(var n=0,o=r.length;n<o;n++)t=e.call(i,t,r[n],n,r);return t}}function Ue(r,e,t){if(!r)return[];if(!e)return wl(r);if(r.filter&&r.filter===bb)return r.filter(e,t);for(var i=[],n=0,o=r.length;n<o;n++)e.call(t,r[n],n,r)&&i.push(r[n]);return i}function ye(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function Mb(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(Dc.call(arguments)))}}var De=yl&&j(yl.bind)?yl.call.bind(yl.bind):Mb;function Qe(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Dc.call(arguments)))}}function L(r){return Array.isArray?Array.isArray(r):ya.call(r)==="[object Array]"}function j(r){return typeof r=="function"}function N(r){return typeof r=="string"}function _a(r){return ya.call(r)==="[object String]"}function be(r){return typeof r=="number"}function B(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function pg(r){return!!vg[ya.call(r)]}function je(r){return!!mg[ya.call(r)]}function co(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function xi(r){return r.colorStops!=null}function gg(r){return r.image!=null}function po(r){return r!==r}function rn(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function ie(r,e){return r??e}function nn(r,e,t){return r??e??t}function wl(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Dc.apply(r,e)}function Cl(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function St(r,e){if(!r)throw new Error(e)}function wt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var yg="__ec_primitive__";function on(r){r[yg]=!0}function ga(r){return r[yg]}var Eb=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return ye(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r})(),_g=typeof Map=="function";function Rb(){return _g?new Map:new Eb}var Ob=(function(){function r(e){var t=L(e);this.data=Rb();var i=this;e instanceof r?e.each(n):e&&S(e,n);function n(o,a){t?i.set(o,a):i.set(a,o)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,n){e.call(t,i,n)})},r.prototype.keys=function(){var e=this.data.keys();return _g?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function Z(r){return new Ob(r)}function xg(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var n=r.length,i=0;i<e.length;i++)t[i+n]=e[i];return t}function Si(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&P(t,e),t}function bl(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Dr(r,e){return r.hasOwnProperty(e)}function lt(){}var Ec=180/Math.PI;function Qr(){return[1,0,0,1,0,0]}function vo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Sg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Jr(r,e,t){var i=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],o=e[0]*t[2]+e[2]*t[3],a=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=n,r[2]=o,r[3]=a,r[4]=s,r[5]=l,r}function xa(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function mo(r,e,t,i){i===void 0&&(i=[0,0]);var n=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),c=Math.cos(t);return r[0]=n*c+s*f,r[1]=-n*f+s*c,r[2]=o*c+l*f,r[3]=-o*f+c*l,r[4]=c*(a-i[0])+f*(u-i[1])+i[0],r[5]=c*(u-i[1])-f*(a-i[0])+i[1],r}function wg(r,e,t){var i=t[0],n=t[1];return r[0]=e[0]*i,r[1]=e[1]*n,r[2]=e[2]*i,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*n,r}function go(r,e){var t=e[0],i=e[2],n=e[4],o=e[1],a=e[3],s=e[5],l=t*a-o*i;return l?(l=1/l,r[0]=a*l,r[1]=-o*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-a*n)*l,r[5]=(o*n-t*s)*l,r):null}function wi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Cg(r){return[r[0],r[1]]}function Rc(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function bg(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Ib(r){return Math.sqrt(Ab(r))}function Ab(r){return r[0]*r[0]+r[1]*r[1]}function Tl(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Tg(r,e){var t=Ib(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Dl(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var wa=Dl;function Pb(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var an=Pb;function Ml(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function Vt(r,e,t){var i=e[0],n=e[1];return r[0]=t[0]*i+t[2]*n+t[4],r[1]=t[1]*i+t[3]*n+t[5],r}function ei(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ti(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Dg=vo,Mg=5e-5;function ln(r){return r>Mg||r<-Mg}var un=[],yo=[],Oc=Qr(),Ic=Math.abs,Lb=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ln(this.rotation)||ln(this.x)||ln(this.y)||ln(this.scaleX-1)||ln(this.scaleY-1)||ln(this.skewX)||ln(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(Dg(i),this.invTransform=null);return}i=i||Qr(),t?this.getLocalTransform(i):Dg(i),e&&(t?Jr(i,e,i):Sg(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(un);var i=un[0]<0?-1:1,n=un[1]<0?-1:1,o=((un[0]-i)*t+i)/un[0]||0,a=((un[1]-n)*t+n)/un[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||Qr(),go(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),o=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Qr(),Jr(yo,e.invTransform,t),t=yo);var i=this.originX,n=this.originY;(i||n)&&(Oc[4]=i,Oc[5]=n,Jr(yo,t,Oc),yo[4]-=i,yo[5]-=n,t=yo),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&Vt(i,i,n),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&Vt(i,i,n),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&Ic(e[0]-1)>1e-10&&Ic(e[3]-1)>1e-10?Math.sqrt(Ic(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Nb(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,n=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var p=i+s,g=n+l;t[4]=-p*o-d*g*a,t[5]=-g*a-h*p*o}else t[4]=t[5]=0;return t[0]=o,t[3]=a,t[1]=h*o,t[2]=d*a,u&&mo(t,t,u),t[4]+=i+f,t[5]+=n+c,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),fn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nb(r,e){for(var t=0;t<fn.length;t++){var i=fn[t];r[i]=e[i]}}var cn=Lb;var El={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-El.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?El.bounceIn(r*2)*.5:El.bounceOut(r*2-1)*.5+.5}},Rl=El;var Ol=Math.pow,bi=Math.sqrt,Al=1e-8,Rg=1e-4,Eg=bi(3),Il=1/3,Fr=wi(),fr=wi(),_o=wi();function Ci(r){return r>-Al&&r<Al}function Og(r){return r>Al||r<-Al}function Je(r,e,t,i,n){var o=1-n;return o*o*(o*r+3*n*e)+n*n*(n*i+3*o*t)}function Ac(r,e,t,i,n){var o=1-n;return 3*(((e-r)*o+2*(t-e)*n)*o+(i-t)*n*n)}function Pl(r,e,t,i,n,o){var a=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,h=0;if(Ci(f)&&Ci(c))if(Ci(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[h++]=p)}else{var g=c*c-4*f*d;if(Ci(g)){var v=c/f,p=-s/a+v,m=-v/2;p>=0&&p<=1&&(o[h++]=p),m>=0&&m<=1&&(o[h++]=m)}else if(g>0){var y=bi(g),_=f*s+1.5*a*(-c+y),x=f*s+1.5*a*(-c-y);_<0?_=-Ol(-_,Il):_=Ol(_,Il),x<0?x=-Ol(-x,Il):x=Ol(x,Il);var p=(-s-(_+x))/(3*a);p>=0&&p<=1&&(o[h++]=p)}else{var C=(2*f*s-3*a*c)/(2*bi(f*f*f)),w=Math.acos(C)/3,b=bi(f),D=Math.cos(w),p=(-s-2*b*D)/(3*a),m=(-s+b*(D+Eg*Math.sin(w)))/(3*a),T=(-s+b*(D-Eg*Math.sin(w)))/(3*a);p>=0&&p<=1&&(o[h++]=p),m>=0&&m<=1&&(o[h++]=m),T>=0&&T<=1&&(o[h++]=T)}}return h}function Ll(r,e,t,i,n){var o=6*t-12*e+6*r,a=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Ci(a)){if(Og(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Ci(f))n[0]=-o/(2*a);else if(f>0){var c=bi(f),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),d>=0&&d<=1&&(n[l++]=d)}}return l}function xo(r,e,t,i,n,o){var a=(e-r)*n+r,s=(t-e)*n+e,l=(i-t)*n+t,u=(s-a)*n+a,f=(l-s)*n+s,c=(f-u)*n+u;o[0]=r,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=f,o[6]=l,o[7]=i}function Nl(r,e,t,i,n,o,a,s,l,u,f){var c,d=.005,h=1/0,p,g,v,m;Fr[0]=l,Fr[1]=u;for(var y=0;y<1;y+=.05)fr[0]=Je(r,t,n,a,y),fr[1]=Je(e,i,o,s,y),v=an(Fr,fr),v<h&&(c=y,h=v);h=1/0;for(var _=0;_<32&&!(d<Rg);_++)p=c-d,g=c+d,fr[0]=Je(r,t,n,a,p),fr[1]=Je(e,i,o,s,p),v=an(fr,Fr),p>=0&&v<h?(c=p,h=v):(_o[0]=Je(r,t,n,a,g),_o[1]=Je(e,i,o,s,g),m=an(_o,Fr),g<=1&&m<h?(c=g,h=m):d*=.5);return f&&(f[0]=Je(r,t,n,a,c),f[1]=Je(e,i,o,s,c)),bi(h)}function Ig(r,e,t,i,n,o,a,s,l){for(var u=r,f=e,c=0,d=1/l,h=1;h<=l;h++){var p=h*d,g=Je(r,t,n,a,p),v=Je(e,i,o,s,p),m=g-u,y=v-f;c+=Math.sqrt(m*m+y*y),u=g,f=v}return c}function ut(r,e,t,i){var n=1-i;return n*(n*r+2*i*e)+i*i*t}function Pc(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function Ag(r,e,t,i,n){var o=r-2*e+t,a=2*(e-r),s=r-i,l=0;if(Ci(o)){if(Og(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Ci(f)){var u=-a/(2*o);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=bi(f),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),d>=0&&d<=1&&(n[l++]=d)}}return l}function kl(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function So(r,e,t,i,n){var o=(e-r)*i+r,a=(t-e)*i+e,s=(a-o)*i+o;n[0]=r,n[1]=o,n[2]=s,n[3]=s,n[4]=a,n[5]=t}function zl(r,e,t,i,n,o,a,s,l){var u,f=.005,c=1/0;Fr[0]=a,Fr[1]=s;for(var d=0;d<1;d+=.05){fr[0]=ut(r,t,n,d),fr[1]=ut(e,i,o,d);var h=an(Fr,fr);h<c&&(u=d,c=h)}c=1/0;for(var p=0;p<32&&!(f<Rg);p++){var g=u-f,v=u+f;fr[0]=ut(r,t,n,g),fr[1]=ut(e,i,o,g);var h=an(fr,Fr);if(g>=0&&h<c)u=g,c=h;else{_o[0]=ut(r,t,n,v),_o[1]=ut(e,i,o,v);var m=an(_o,Fr);v<=1&&m<c?(u=v,c=m):f*=.5}}return l&&(l[0]=ut(r,t,n,u),l[1]=ut(e,i,o,u)),bi(c)}function Pg(r,e,t,i,n,o,a){for(var s=r,l=e,u=0,f=1/a,c=1;c<=a;c++){var d=c*f,h=ut(r,t,n,d),p=ut(e,i,o,d),g=h-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=h,l=p}return u}var kb=/cubic-bezier\(([0-9,\.e ]+)\)/;function Fl(r){var e=r&&kb.exec(r);if(e){var t=e[1].split(","),i=+wt(t[0]),n=+wt(t[1]),o=+wt(t[2]),a=+wt(t[3]);if(isNaN(i+n+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Pl(0,i,o,1,l,s)&&Je(0,n,a,1,s[0])}}}var zb=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||lt,this.ondestroy=e.ondestroy||lt,this.onrestart=e.onrestart||lt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,n=e-this._startTime-this._pausedTime,o=n/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=j(e)?e:Rl[e]||Fl(e)},r})(),Lg=zb;var Ng=(function(){function r(e){this.value=e}return r})();var Fb=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Ng(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var Bb=(function(){function r(e){this._list=new Fb,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,n=this._map,o=null;if(n[e]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete n[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Ng(t),s.key=e,i.insertEntry(s),n[e]=s}return o},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),ri=Bb;var kg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ca(r){return r=Math.round(r),r<0?0:r>255?255:r}function zg(r){return r<0?0:r>1?1:r}function Nc(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ca(parseFloat(e)/100*255):Ca(parseInt(e,10))}function ba(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?zg(parseFloat(e)/100):zg(parseFloat(e))}function kc(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function cr(r,e,t,i,n){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}function zc(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Ug=new ri(20),Bl=null;function wo(r,e){Bl&&zc(Bl,e),Bl=Ug.put(r,Bl||e.slice())}function Ti(r,e){if(r){e=e||[];var t=Ug.get(r);if(t)return zc(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in kg)return zc(e,kg[i]),wo(r,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var o=parseInt(i.slice(1,4),16);if(!(o>=0&&o<=4095)){cr(e,0,0,0,1);return}return cr(e,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),wo(r,e),e}else if(n===7||n===9){var o=parseInt(i.slice(1,7),16);if(!(o>=0&&o<=16777215)){cr(e,0,0,0,1);return}return cr(e,(o&16711680)>>16,(o&65280)>>8,o&255,n===9?parseInt(i.slice(7),16)/255:1),wo(r,e),e}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===n){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?cr(e,+u[0],+u[1],+u[2],1):cr(e,0,0,0,1);f=ba(u.pop());case"rgb":if(u.length>=3)return cr(e,Nc(u[0]),Nc(u[1]),Nc(u[2]),u.length===3?f:ba(u[3])),wo(r,e),e;cr(e,0,0,0,1);return;case"hsla":if(u.length!==4){cr(e,0,0,0,1);return}return u[3]=ba(u[3]),Fg(u,e),wo(r,e),e;case"hsl":if(u.length!==3){cr(e,0,0,0,1);return}return Fg(u,e),wo(r,e),e;default:return}}cr(e,0,0,0,1)}}function Fg(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=ba(r[1]),n=ba(r[2]),o=n<=.5?n*(i+1):n+i-n*i,a=n*2-o;return e=e||[],cr(e,Ca(kc(a,o,t+1/3)*255),Ca(kc(a,o,t)*255),Ca(kc(a,o,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function Bg(r,e){var t=Ti(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return Fc(t,t.length===4?"rgba":"rgb")}}function Fc(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Co(r,e){var t=Ti(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Wg=new ri(100);function Bc(r){if(N(r)){var e=Wg.get(r);return e||(e=Bg(r,-.1),Wg.put(r,e)),e}else if(xi(r)){var t=P({},r);return t.colorStops=X(r.colorStops,function(i){return{offset:i.offset,color:Bg(i.color,-.1)}}),t}return r}var Ub=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Hb=(function(){function r(){this.browser=new Ub,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Di=new Hb;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Di.wxa=!0,Di.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Di.worker=!0:!Di.hasGlobalWindow||"Deno"in window?(Di.node=!0,Di.svgSupported=!0):Vb(navigator.userAgent,Di);function Vb(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),o=r.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),n&&(t.ie=!0,t.version=n[1]),o&&(t.edge=!0,t.version=o[1],t.newEdge=+o[1].split(".")[0]>18),a&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Q=Di;function Hg(r){return r.type==="linear"}function Vg(r){return r.type==="radial"}var ik=(function(){return Q.hasGlobalWindow&&j(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Uc=Array.prototype.slice;function ii(r,e,t){return(e-r)*t+r}function Wc(r,e,t,i){for(var n=e.length,o=0;o<n;o++)r[o]=ii(e[o],t[o],i);return r}function Gb(r,e,t,i){for(var n=e.length,o=n&&e[0].length,a=0;a<n;a++){r[a]||(r[a]=[]);for(var s=0;s<o;s++)r[a][s]=ii(e[a][s],t[a][s],i)}return r}function Wl(r,e,t,i){for(var n=e.length,o=0;o<n;o++)r[o]=e[o]+t[o]*i;return r}function Gg(r,e,t,i){for(var n=e.length,o=n&&e[0].length,a=0;a<n;a++){r[a]||(r[a]=[]);for(var s=0;s<o;s++)r[a][s]=e[a][s]+t[a][s]*i}return r}function Yb(r,e){for(var t=r.length,i=e.length,n=t>i?e:r,o=Math.min(t,i),a=n[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(t,i);s++)n.push({offset:a.offset,color:a.color.slice()})}function qb(r,e,t){var i=r,n=e;if(!(!i.push||!n.push)){var o=i.length,a=n.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(t===1?n[l]:Uc.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Ma(r){if(nt(r)){var e=r.length;if(nt(r[0])){for(var t=[],i=0;i<e;i++)t.push(Uc.call(r[i]));return t}return Uc.call(r)}return r}function Vl(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Xb(r){return nt(r&&r[0])?2:1}var Ul=0,Gl=1,Xg=2,Da=3,Hc=4,Vc=5,Yg=6;function qg(r){return r===Hc||r===Vc}function Hl(r){return r===Gl||r===Xg}var Ta=[0,0,0,0],jb=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var n=this.keyframes,o=n.length,a=!1,s=Yg,l=t;if(nt(t)){var u=Xb(t);s=u,(u===1&&!be(t[0])||u===2&&!be(t[0][0]))&&(a=!0)}else if(be(t)&&!po(t))s=Ul;else if(N(t))if(!isNaN(+t))s=Ul;else{var f=Ti(t);f&&(l=f,s=Da)}else if(xi(t)){var c=P({},l);c.colorStops=X(t.colorStops,function(h){return{offset:h.offset,color:Ti(h.color)}}),Hg(t)?s=Hc:Vg(t)&&(s=Vc),l=c}o===0?this.valType=s:(s!==this.valType||s===Yg)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:l,rawValue:t,percent:0};return i&&(d.easing=i,d.easingFunc=j(i)?i:Rl[i]||Fl(i)),n.push(d),d},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var n=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Hl(n),u=qg(n),f=0;f<o;f++){var c=i[f],d=c.value,h=a.value;c.percent=c.time/e,s||(l&&f!==o-1?qb(d,h,n):u&&Yb(d.colorStops,h.colorStops))}if(!s&&n!==Vc&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var p=i[0].value,f=0;f<o;f++)n===Ul?i[f].additiveValue=i[f].value-p:n===Da?i[f].additiveValue=Wl([],i[f].value,p,-1):Hl(n)&&(i[f].additiveValue=n===Gl?Wl([],i[f].value,p,-1):Gg([],i[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===Da,f,c=this._lastFr,d=Math.min,h,p;if(s===1)h=p=a[0];else{if(t<0)f=0;else if(t<this._lastFrP){var g=d(c+1,s-1);for(f=g;f>=0&&!(a[f].percent<=t);f--);f=d(f,s-2)}else{for(f=c;f<s&&!(a[f].percent>t);f++);f=d(f-1,s-2)}p=a[f+1],h=a[f]}if(h&&p){this._lastFr=f,this._lastFrP=t;var v=p.percent-h.percent,m=v===0?1:d((t-h.percent)/v,1);p.easingFunc&&(m=p.easingFunc(m));var y=i?this._additiveValue:u?Ta:e[l];if((Hl(o)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:p.rawValue;else if(Hl(o))o===Gl?Wc(y,h[n],p[n],m):Gb(y,h[n],p[n],m);else if(qg(o)){var _=h[n],x=p[n],C=o===Hc;e[l]={type:C?"linear":"radial",x:ii(_.x,x.x,m),y:ii(_.y,x.y,m),colorStops:X(_.colorStops,function(b,D){var T=x.colorStops[D];return{offset:ii(b.offset,T.offset,m),color:Vl(Wc([],b.color,T.color,m))}}),global:x.global},C?(e[l].x2=ii(_.x2,x.x2,m),e[l].y2=ii(_.y2,x.y2,m)):e[l].r=ii(_.r,x.r,m)}else if(u)Wc(y,h[n],p[n],m),i||(e[l]=Vl(y));else{var w=ii(h[n],p[n],m);i?this._additiveValue=w:e[l]=w}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,n=this._additiveValue;t===Ul?e[i]=e[i]+n:t===Da?(Ti(e[i],Ta),Wl(Ta,Ta,n,1),e[i]=Vl(Ta)):t===Gl?Wl(e[i],e[i],n,1):t===Xg&&Gg(e[i],e[i],n,1)},r})(),Zb=(function(){function r(e,t,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){ho("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,ye(t),i)},r.prototype.whenWithKeys=function(e,t,i,n){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new jb(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,d=c[c.length-1];u=d&&d.value,f.valType===Da&&u&&(u=Vl(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ma(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ma(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var o=i[n].getTrack(e);o&&(t=o)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],n=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var d=new Lg({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var p=t._additiveAnimators;if(p){for(var g=!1,v=0;v<p.length;v++)if(p[v]._clip){g=!0;break}g||(t._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(t._target,h);var m=t._onframeCbs;if(m)for(var v=0;v<m.length;v++)m[v](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return X(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,o=0;o<e.length;o++){var a=i[e[o]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<n.length;o++)if(!i[n[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var o=t[n],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(e[o]=Ma(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||ye(e);for(var i=0;i<t.length;i++){var n=t[i],o=this._tracks[n];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,e[n]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},r})(),Ea=Zb;var Kb=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,n){e.x=t.x+i.x*n,e.y=t.y+i.y*n},r.lerp=function(e,t,i,n){var o=1-n;e.x=o*t.x+n*i.x,e.y=o*t.y+n*i.y},r})(),ve=Kb;var Yl=Math.min,ql=Math.max,hn=new ve,dn=new ve,pn=new ve,vn=new ve,Ra=new ve,Oa=new ve,$b=(function(){function r(e,t,i,n){i<0&&(e=e+i,i=-i),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=i,this.height=n}return r.prototype.union=function(e){var t=Yl(e.x,this.x),i=Yl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ql(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ql(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,n=e.height/t.height,o=Qr();return xa(o,o,[-t.x,-t.y]),wg(o,o,[i,n]),xa(o,o,[e.x,e.y]),o},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var i=this,n=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,d=!(o<l||u<n||s<f||c<a);if(t){var h=1/0,p=0,g=Math.abs(o-l),v=Math.abs(u-n),m=Math.abs(s-f),y=Math.abs(c-a),_=Math.min(g,v),x=Math.min(m,y);o<l||u<n?_>p&&(p=_,g<v?ve.set(Oa,-g,0):ve.set(Oa,v,0)):_<h&&(h=_,g<v?ve.set(Ra,g,0):ve.set(Ra,-v,0)),s<f||c<a?x>p&&(p=x,m<y?ve.set(Oa,0,-m):ve.set(Oa,0,y)):_<h&&(h=_,m<y?ve.set(Ra,0,m):ve.set(Ra,0,-y))}return t&&ve.copy(t,d?Ra:Oa),d},r.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,i){if(!i){e!==t&&r.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],o=i[3],a=i[4],s=i[5];e.x=t.x*n+a,e.y=t.y*o+s,e.width=t.width*n,e.height=t.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}hn.x=pn.x=t.x,hn.y=vn.y=t.y,dn.x=vn.x=t.x+t.width,dn.y=pn.y=t.y+t.height,hn.transform(i),vn.transform(i),dn.transform(i),pn.transform(i),e.x=Yl(hn.x,dn.x,pn.x,vn.x),e.y=Yl(hn.y,dn.y,pn.y,vn.y);var l=ql(hn.x,dn.x,pn.x,vn.x),u=ql(hn.y,dn.y,pn.y,vn.y);e.width=l-e.x,e.height=u-e.y},r})(),ue=$b;var Qb=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof t=="function"&&(n=i,i=t,t=null),!i||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===i)return this;var l={h:i,query:t,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=o[e].length-1,f=o[e][u];return f&&f.callAtLast?o[e].splice(u,0,l):o[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],o=0,a=i[e].length;o<a;o++)i[e][o].h!==t&&n.push(i[e][o]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],o=this._$eventProcessor;if(n)for(var a=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(e,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],o=this._$eventProcessor;if(n)for(var a=t.length,s=t[a-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(o&&o.filter&&f.query!=null&&!o.filter(e,f.query)))switch(a){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},r})(),Ct=Qb;var jg={};function Gt(r,e){e=e||Tr;var t=jg[e];t||(t=jg[e]=new ri(500));var i=t.get(r);return i==null&&(i=tr.measureText(r,e).width,t.put(r,i)),i}function Zg(r,e,t,i){var n=Gt(r,e),o=jl(e),a=bo(0,n,t),s=mn(0,o,i),l=new ue(a,s,n,o);return l}function Xl(r,e,t,i){var n=((r||"")+"").split(`
|
|
1
|
+
import{$ as Ke,$f as Pv,$g as Qv,A as Be,Aa as Js,Ag as Bv,Ba as Cv,C as z,Ca as J,Ch as om,D as Ye,Da as xt,Dh as am,E as qe,Ea as br,Eb as Ev,Fa as bv,Fg as Wv,Fh as hc,Gh as sm,Hg as lo,Ig as cc,Ih as lm,J as ht,Jb as fc,Je as nl,Jg as Uv,Jh as um,K as oo,Kg as Hv,Kh as fm,La as Tv,Lg as Vv,Lh as cm,Ma as el,Me as ol,Mg as kr,Mh as hm,N as xv,Ng as zr,Oa as uc,Og as al,Oh as fo,Pg as Ji,Ph as dm,Qg as sl,Qh as ha,Rg as ll,Rh as fl,S as k,Sd as il,Sg as ul,Sh as pm,Ta as Dv,Tg as Gv,Th as cl,U as Se,Ug as Yv,Uh as hl,V as Sv,Va as re,Vg as qv,Vh as vm,Wg as Xv,X as js,Xa as dt,Xg as jv,Xh as mm,Y as Zs,Ya as me,Yg as Zv,Yh as dl,Za as tl,Zg as Kv,_ as ao,_f as Av,_g as $v,a as Gs,aa as $e,ah as Jv,ai as gm,b as Ys,ba as Ks,be as Rv,bg as Lv,bh as em,bi as ym,ca as Lr,cg as Nv,ch as tm,ci as _m,da as Nr,dh as rm,di as xm,e as no,ea as $,eg as kv,eh as im,fa as U,fb as Mv,fh as nm,fi as Sm,g as qs,ga as H,gi as wm,ha as Ae,hi as Cm,i as fa,ia as Xe,if as Ov,ii as bm,ja as He,ji as Tm,ka as ca,kh as uo,ki as Dm,la as sc,li as Mm,ma as Dt,mi as Em,na as gi,ni as Rm,oa as xe,oh as _i,pa as Kr,pf as Iv,pi as Om,qa as ge,qi as Im,ra as wv,ri as Am,sa as lc,sb as rl,tb as at,ti as Pm,ub as pt,ug as zv,ui as Lm,v as Xs,vb as yi,vg as Fv,vi as dc,wa as $s,wg as so,wi as Nm,xa as Qs,xi as km,ya as Qi,yi as zm,za as $r}from"./chunk-6J2WBHT7.js";var st=(()=>{class r{constructor(){this.domainStateReadWindow=z(Vv),this.store=z(pt),this.settings=at(this.domainStateReadWindow.wordCloudSettings$,{initialValue:sl}),this.hasTfidfData=at(this.store.select(um),{initialValue:!1})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var wC=[[["","body",""]],"*"],CC=["[body]","*"],Fm=(()=>{class r{constructor(){this.label=me.required(),this.value=me.required(),this.idPrefix=me.required(),this.minWidthClass=me("min-w-[120px]"),this.popoverId=re(()=>`${this.idPrefix()}-popover`),this.anchorName=re(()=>`${this.idPrefix()}-cog`),this.segmentTestId=re(()=>`${this.idPrefix()}-segment`),this.cogTestId=re(()=>`${this.idPrefix()}-cog`)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-segment"]],hostAttrs:[1,"contents"],inputs:{label:[1,"label"],value:[1,"value"],idPrefix:[1,"idPrefix"],minWidthClass:[1,"minWidthClass"]},ngContentSelectors:CC,decls:3,vars:8,consts:[[3,"label","metricName","hasCog","cogPopoverId","cogAnchorName","testId","cogTestId","minWidthClass"]],template:function(i,n){i&1&&(wv(wC),U(0,"cc-axis-card",0),lc(1,0,["ngProjectAs","[body]",5,["","body",""]]),H(),lc(2,1)),i&2&&$("label",n.label())("metricName",n.value())("hasCog",!0)("cogPopoverId",n.popoverId())("cogAnchorName",n.anchorName())("testId",n.segmentTestId())("cogTestId",n.cogTestId())("minWidthClass",n.minWidthClass())},dependencies:[Av],encapsulation:2,changeDetection:0})}}return r})();var ur=(()=>{class r{constructor(){this.store=z(pt)}setShape(t){this.store.dispatch(Qv({value:t}))}setSizeRange(t){this.store.dispatch(em({value:t}))}setRotationRange(t){this.store.dispatch(Zv({value:t}))}setRotationStep(t){this.store.dispatch(Kv({value:t}))}setGridSize(t){this.store.dispatch(Yv({value:t}))}setSizingMode(t){this.store.dispatch(tm({value:t}))}setTopN(t){this.store.dispatch(nm({value:t}))}setShrinkToFit(t){this.store.dispatch(Jv({value:t}))}setDrawOutOfBound(t){this.store.dispatch(Gv({value:t}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Bm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.popoverId=me.required(),this.anchorName=me.required(),this.settings=this.readStore.settings,this.minRotationBounds={min:-90,max:0},this.maxRotationBounds={min:0,max:90},this.rotationStepBounds={min:15,max:90,step:15},this.resetKeys=["domainState.rotationRange","domainState.rotationStep"]}onRotationStepChange(t){this.writeStore.setRotationStep(t)}onRotationRangeMinChange(t){this.writeStore.setRotationRange(ll(this.settings().rotationRange,t))}onRotationRangeMaxChange(t){this.writeStore.setRotationRange(ul(this.settings().rotationRange,t))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-rotation-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:15,vars:14,consts:[["ariaLabel","Rotation Settings","widthClass","w-80","contentClass","gap-3 py-3 px-4",3,"popoverId","anchorName"],[1,"flex","flex-col","gap-2","rounded-lg","bg-base-200","p-3"],["data-testid","domain-bar-rotation-min"],[1,"text-sm"],["ariaLabel","Min Rotation in degrees",3,"valueChange","min","max","value"],["data-testid","domain-bar-rotation-max"],["ariaLabel","Max Rotation in degrees",3,"valueChange","min","max","value"],["data-testid","domain-bar-rotation-step","title","Words are rotated in multiples of this angle"],["ariaLabel","Rotation Step in degrees",3,"valueChange","min","max","step","value"],["tooltip","Reset the rotation settings to their defaults","label","Reset rotation",3,"settingsKeys","small"]],template:function(i,n){i&1&&(U(0,"cc-settings-popover-shell",0)(1,"div",1)(2,"div",2)(3,"span",3),J(4,"Min Rotation"),H(),U(5,"cc-slider-number-input",4),xe("valueChange",function(a){return n.onRotationRangeMinChange(a)}),H()(),U(6,"div",5)(7,"span",3),J(8,"Max Rotation"),H(),U(9,"cc-slider-number-input",6),xe("valueChange",function(a){return n.onRotationRangeMaxChange(a)}),H()(),U(10,"div",7)(11,"span",3),J(12,"Rotation Step"),H(),U(13,"cc-slider-number-input",8),xe("valueChange",function(a){return n.onRotationStepChange(a)}),H()()(),Ae(14,"cc-reset-settings-button",9),H()),i&2&&($("popoverId",n.popoverId())("anchorName",n.anchorName()),k(5),$("min",n.minRotationBounds.min)("max",n.minRotationBounds.max)("value",n.settings().rotationRange[0]),k(4),$("min",n.maxRotationBounds.min)("max",n.maxRotationBounds.max)("value",n.settings().rotationRange[1]),k(4),$("min",n.rotationStepBounds.min)("max",n.rotationStepBounds.max)("step",n.rotationStepBounds.step)("value",n.settings().rotationStep),k(),$("settingsKeys",n.resetKeys)("small",!0))},dependencies:[uo,so,_i],encapsulation:2,changeDetection:0})}}return r})();var da=(()=>{class r{constructor(){this.uploaded=ht(null),this.mask=this.uploaded.asReadonly(),this.dataUri=re(()=>this.uploaded()?.dataUri??null)}accept(t){this.uploaded.set(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Wm="image/svg+xml",bC=["script","foreignObject"],TC=["href","xlink:href"];function Um(r){let e=new DOMParser().parseFromString(r,Wm),t=e.documentElement;if(e.querySelector("parsererror")||t.localName!=="svg")return{rejection:"That file is not an SVG."};let i=bC.find(o=>t.getElementsByTagName(o).length>0);if(i)return{rejection:`An SVG carrying a <${i}> cannot be used as a shape.`};if(DC(t))return{rejection:"An SVG that references another file cannot be used as a shape."};let n=MC(t);return n?{dataUri:`data:${Wm},${encodeURIComponent(new XMLSerializer().serializeToString(n))}`}:{rejection:"That SVG states neither a size nor a viewBox, so it has no shape to fill."}}function DC(r){return[r,...r.querySelectorAll("*")].some(e=>TC.some(t=>{let i=e.getAttribute(t);return i!==null&&!i.startsWith("#")}))}function MC(r){if(r.getAttribute("width")&&r.getAttribute("height"))return r;let e=r.getAttribute("viewBox")?.split(/[\s,]+/).filter(Boolean);if(e?.length!==4)return null;let[,,t,i]=e;return r.setAttribute("width",t),r.setAttribute("height",i),r}function EC(r,e){if(r&1&&(U(0,"option",4),J(1),H()),r&2){let t=e.$implicit,i=ge();$("value",t)("selected",t===i.settings().shape),k(),xt(i.shapeLabels[t])}}function RC(r,e){r&1&&(U(0,"p",8),J(1),H()),r&2&&(k(),xt(e))}function OC(r,e){r&1&&(U(0,"p",9),J(1),H()),r&2&&(k(),br(" ",e.fileName," \u2014 words fill the opaque areas of the shape. "))}function IC(r,e){r&1&&(U(0,"p",10),J(1," The cloud stays round until you upload a shape, and an uploaded one is forgotten on reload. "),H())}function AC(r,e){if(r&1){let t=Dt();U(0,"label",6)(1,"span",2),J(2,"SVG file"),H(),U(3,"input",7),xe("change",function(n){Ye(t);let o=ge();return qe(o.onShapeFileChosen(n))}),H()(),Ke(4,RC,2,1,"p",8)(5,OC,2,1,"p",9)(6,IC,2,0,"p",10)}if(r&2){let t,i=ge();k(4),$e((t=i.rejection())?4:(t=i.uploadedMask())?5:6,t)}}var Hm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.customShapeMaskStore=z(da),this.popoverId=me.required(),this.anchorName=me.required(),this.settings=this.readStore.settings,this.shapes=Object.values(zr),this.shapeLabels=al,this.resetKeys=["domainState.shape"],this.isCustomShape=re(()=>this.settings().shape===zr.custom),this.uploadedMask=this.customShapeMaskStore.mask,this.rejection=ht(null)}onShapeChange(t){this.writeStore.setShape(t)}async onShapeFileChosen(t){let i=t.target.files?.[0];if(!i)return;let n=Um(await i.text());if("rejection"in n){this.rejection.set(n.rejection);return}this.rejection.set(null),this.customShapeMaskStore.accept({fileName:i.name,dataUri:n.dataUri})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-shape-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:9,vars:5,consts:[["ariaLabel","Shape Settings",3,"popoverId","anchorName"],["title","The outline the words are laid out in",1,"form-control","w-full","gap-1"],[1,"text-sm"],["data-testid","domain-bar-shape",1,"select","select-bordered","select-sm","w-full",3,"change"],[3,"value","selected"],["tooltip","Reset the shape to its default","label","Reset shape",3,"settingsKeys","small"],[1,"form-control","w-full","gap-1"],["type","file","accept","image/svg+xml,.svg","data-testid","domain-bar-shape-upload",1,"file-input","file-input-bordered","file-input-sm","w-full",3,"change"],["data-testid","domain-bar-shape-rejection",1,"text-xs","text-error"],["data-testid","domain-bar-shape-file",1,"text-xs","opacity-60"],["data-testid","domain-bar-shape-hint",1,"text-xs","opacity-60"]],template:function(i,n){i&1&&(U(0,"cc-settings-popover-shell",0)(1,"label",1)(2,"span",2),J(3,"Shape"),H(),U(4,"select",3),xe("change",function(a){return n.onShapeChange(a.target.value)}),Lr(5,EC,2,3,"option",4,Ks),H()(),Ke(7,AC,7,1),Ae(8,"cc-reset-settings-button",5),H()),i&2&&($("popoverId",n.popoverId())("anchorName",n.anchorName()),k(5),Nr(n.shapes),k(2),$e(n.isCustomShape()?7:-1),k(),$("settingsKeys",n.resetKeys)("small",!0))},dependencies:[uo,so],encapsulation:2,changeDetection:0})}}return r})();var Vm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.settings=this.readStore.settings,this.wordCountBounds={min:10,max:1e3,step:10}}onTopNChange(t){this.writeStore.setTopN(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-count-control"]],hostAttrs:[1,"contents"],decls:4,vars:4,consts:[["data-testid","domain-bar-top-n","title","How many of the most important words are drawn",1,"rounded-lg","bg-base-200","p-3"],[1,"text-sm"],["ariaLabel","Words",3,"valueChange","min","max","step","value"]],template:function(i,n){i&1&&(U(0,"div",0)(1,"span",1),J(2,"Words"),H(),U(3,"cc-slider-number-input",2),xe("valueChange",function(a){return n.onTopNChange(a)}),H()()),i&2&&(k(3),$("min",n.wordCountBounds.min)("max",n.wordCountBounds.max)("step",n.wordCountBounds.step)("value",n.settings().topN))},dependencies:[_i],encapsulation:2,changeDetection:0})}}return r})();var Gm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.settings=this.readStore.settings,this.smallestWordBounds={min:10,max:40},this.largestWordBounds={min:40,max:120},this.shrinkToFitTitle=re(()=>this.settings().shrinkToFit?"On \u2014 words that do not fit are shrunk until they do, so the full word count is drawn. Tail words can render below Smallest Word.":"Off \u2014 words that do not fit are left out, so Smallest Word is exact but fewer words than requested appear."),this.drawOutOfBoundTitle=re(()=>this.settings().drawOutOfBound?"On \u2014 words may render partially outside the layout area instead of being dropped or shrunk, so more words fit at their true size.":"Off \u2014 every word is kept fully inside the layout area; words that only fit overlapping the edge are shrunk or left out.")}onSizeRangeMinChange(t){this.writeStore.setSizeRange(ll(this.settings().sizeRange,t))}onSizeRangeMaxChange(t){this.writeStore.setSizeRange(ul(this.settings().sizeRange,t))}onShrinkToFitChange(t){this.writeStore.setShrinkToFit(t)}onDrawOutOfBoundChange(t){this.writeStore.setDrawOutOfBound(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-size-range-control"]],hostAttrs:[1,"contents"],decls:17,vars:10,consts:[[1,"flex","flex-col","gap-2","rounded-lg","bg-base-200","p-3"],["data-testid","domain-bar-size-min","title","The least important word in the cloud renders at this size"],[1,"text-sm"],["ariaLabel","Smallest Word in pixels",3,"valueChange","min","max","value"],["data-testid","domain-bar-size-max","title","The most important word in the cloud renders at this size"],["ariaLabel","Largest Word in pixels",3,"valueChange","min","max","value"],["data-testid","domain-bar-shrink-to-fit",1,"flex","cursor-pointer","items-center","gap-2",3,"title"],["type","checkbox",1,"checkbox","checkbox-sm",3,"change","checked"],["data-testid","domain-bar-draw-out-of-bound",1,"flex","cursor-pointer","items-center","gap-2",3,"title"]],template:function(i,n){i&1&&(U(0,"div",0)(1,"div",1)(2,"span",2),J(3,"Smallest Word"),H(),U(4,"cc-slider-number-input",3),xe("valueChange",function(a){return n.onSizeRangeMinChange(a)}),H()(),U(5,"div",4)(6,"span",2),J(7,"Largest Word"),H(),U(8,"cc-slider-number-input",5),xe("valueChange",function(a){return n.onSizeRangeMaxChange(a)}),H()(),U(9,"label",6)(10,"input",7),xe("change",function(a){return n.onShrinkToFitChange(a.target.checked)}),H(),U(11,"span",2),J(12,"Fit All Words"),H()(),U(13,"label",8)(14,"input",7),xe("change",function(a){return n.onDrawOutOfBoundChange(a.target.checked)}),H(),U(15,"span",2),J(16,"Draw Outside Bounds"),H()()()),i&2&&(k(4),$("min",n.smallestWordBounds.min)("max",n.smallestWordBounds.max)("value",n.settings().sizeRange[0]),k(4),$("min",n.largestWordBounds.min)("max",n.largestWordBounds.max)("value",n.settings().sizeRange[1]),k(),$("title",n.shrinkToFitTitle()),k(),$("checked",n.settings().shrinkToFit),k(3),$("title",n.drawOutOfBoundTitle()),k(),$("checked",n.settings().drawOutOfBound))},dependencies:[_i],encapsulation:2,changeDetection:0})}}return r})();function PC(r,e){r&1&&(Xe(0,"span",5),J(1,"TF-IDF is unavailable: the loaded file has no TF-IDF scores."),He())}var Ym=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.settings=this.readStore.settings,this.hasTfidfData=this.readStore.hasTfidfData,this.WordCloudSizingMode=Ji,this.tfidfOptionTitle=re(()=>this.hasTfidfData()?"TF-IDF (relative importance) \u2014 sizes words by how distinctive they are, not by raw count":"TF-IDF (relative importance) \u2014 not available: the loaded file has no TF-IDF scores")}onSizingModeChange(t){this.writeStore.setSizingMode(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-sizing-mode-control"]],hostAttrs:[1,"contents"],decls:9,vars:7,consts:[["title","Which word metric drives a word's rendered size",1,"form-control","w-full","gap-1"],[1,"text-sm"],["data-testid","domain-bar-sizing-mode",1,"select","select-bordered","select-sm","w-full",3,"change"],["title","Frequency \u2014 sizes words by how often they occur",3,"value","selected"],[3,"value","selected","disabled","title"],[1,"text-xs","opacity-70"]],template:function(i,n){i&1&&(Xe(0,"label",0)(1,"span",1),J(2,"Word Sizing"),He(),Xe(3,"select",2),Kr("change",function(a){return n.onSizingModeChange(a.target.value)}),Xe(4,"option",3),J(5," Frequency "),He(),Xe(6,"option",4),J(7," TF-IDF "),He()(),Ke(8,PC,2,0,"span",5),He()),i&2&&(k(4),gi("value",n.WordCloudSizingMode.frequency)("selected",n.settings().sizingMode===n.WordCloudSizingMode.frequency),k(2),gi("value",n.WordCloudSizingMode.tfidf)("selected",n.settings().sizingMode===n.WordCloudSizingMode.tfidf)("disabled",!n.hasTfidfData())("title",n.tfidfOptionTitle()),k(2),$e(n.hasTfidfData()?-1:8))},encapsulation:2,changeDetection:0})}}return r})();var qm=(()=>{class r{constructor(){this.readStore=z(st),this.writeStore=z(ur),this.settings=this.readStore.settings,this.wordSpacingBounds={min:4,max:16,step:4}}onGridSizeChange(t){this.writeStore.setGridSize(t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-spacing-control"]],hostAttrs:[1,"contents"],decls:4,vars:4,consts:[["data-testid","domain-bar-grid-size","title","Spacing between words in pixels \u2014 larger means fewer, more spread-out words",1,"rounded-lg","bg-base-200","p-3"],[1,"text-sm"],["ariaLabel","Word Spacing in pixels",3,"valueChange","min","max","step","value"]],template:function(i,n){i&1&&(U(0,"div",0)(1,"span",1),J(2,"Word Spacing"),H(),U(3,"cc-slider-number-input",2),xe("valueChange",function(a){return n.onGridSizeChange(a)}),H()()),i&2&&(k(3),$("min",n.wordSpacingBounds.min)("max",n.wordSpacingBounds.max)("step",n.wordSpacingBounds.step)("value",n.settings().gridSize))},dependencies:[_i],encapsulation:2,changeDetection:0})}}return r})();var Xm=(()=>{class r{constructor(){this.popoverId=me.required(),this.anchorName=me.required(),this.resetKeys=["domainState.sizingMode","domainState.topN","domainState.sizeRange","domainState.gridSize","domainState.shrinkToFit","domainState.drawOutOfBound"]}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-word-sizing-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:6,vars:4,consts:[["ariaLabel","Word Sizing Settings","widthClass","w-80","contentClass","gap-3 py-3 px-4",3,"popoverId","anchorName"],["tooltip","Reset the word sizing settings to their defaults","label","Reset word sizing",3,"settingsKeys","small"]],template:function(i,n){i&1&&(U(0,"cc-settings-popover-shell",0),Ae(1,"cc-word-sizing-mode-control")(2,"cc-word-count-control")(3,"cc-word-size-range-control")(4,"cc-word-spacing-control")(5,"cc-reset-settings-button",1),H()),i&2&&($("popoverId",n.popoverId())("anchorName",n.anchorName()),k(5),$("settingsKeys",n.resetKeys)("small",!0))},dependencies:[uo,so,Ym,Vm,Gm,qm],encapsulation:2,changeDetection:0})}}return r})();var pc=(()=>{class r{constructor(){this.barBottom=Pv,this.readStore=z(st),this.settings=this.readStore.settings,this.shapeLabel=re(()=>al[this.settings().shape]),this.sizingModeLabel=re(()=>this.settings().sizingMode===Ji.tfidf?"TF-IDF":"Frequency"),this.rotationRangeLabel=re(()=>{let[t,i]=this.settings().rotationRange;return`${t}\xB0 \u2013 ${i}\xB0`})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-bar"]],hostVars:2,hostBindings:function(i,n){i&2&&$r("bottom",n.barBottom)},features:[js([Lv])],decls:11,vars:10,consts:[["shape",""],["wordSizing",""],["rotation",""],["label","Shape","idPrefix","domain-bar-shape","minWidthClass","min-w-[100px]",3,"value"],[3,"popoverId","anchorName"],["label","Word Sizing","idPrefix","domain-bar-word-sizing",3,"value"],["body","","data-testid","domain-bar-top-n-value",1,"text-xs","opacity-70","text-center"],["label","Rotation","idPrefix","domain-bar-rotation","minWidthClass","min-w-[110px]",3,"value"]],template:function(i,n){if(i&1&&(U(0,"cc-domain-segment",3,0),Ae(2,"cc-shape-settings-popover",4),H(),U(3,"cc-domain-segment",5,1)(5,"div",6),J(6),H(),Ae(7,"cc-word-sizing-settings-popover",4),H(),U(8,"cc-domain-segment",7,2),Ae(10,"cc-rotation-settings-popover",4),H()),i&2){let o=Qi(1),a=Qi(4),s=Qi(9);$("value",n.shapeLabel()),k(2),$("popoverId",o.popoverId())("anchorName",o.anchorName()),k(),$("value",n.sizingModeLabel()),k(3),br("",n.settings().topN," words"),k(),$("popoverId",a.popoverId())("anchorName",a.anchorName()),k(),$("value",n.rotationRangeLabel()),k(2),$("popoverId",s.popoverId())("anchorName",s.anchorName())}},dependencies:[Fm,Hm,Xm,Bm],encapsulation:2,changeDetection:0})}}return r})();var vc=(()=>{class r{static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-toolbox"]],features:[el([{provide:om,useExisting:sm}])],decls:2,vars:0,consts:[[1,"join","shadow-md","bg-base-100","rounded"],["view","domain"]],template:function(i,n){i&1&&(U(0,"div",0),Ae(1,"cc-toolbox-screenshot-button",1),H())},dependencies:[am],encapsulation:2,changeDetection:0})}}return r})();function LC(r,e){if(r&1){let t=Dt();U(0,"cc-floating-menu",1),xe("dismissed",function(){Ye(t);let n=ge();return qe(n.close())}),U(1,"button",2),xe("click",function(){Ye(t);let n=ge();return qe(n.copyWord())}),Ae(2,"i"),U(3,"span",3),J(4),H()(),Ae(5,"div",4),U(6,"cc-context-menu-item",5),xe("itemClick",function(){Ye(t);let n=ge();return qe(n.searchForThisWord())}),J(7," Search word "),H(),U(8,"cc-context-menu-item",6),xe("itemClick",function(){Ye(t);let n=ge();return qe(n.hideThisWord())}),J(9," Hide word "),H()()}if(r&2){let t,i=ge();$("anchor",e),k(2),Cv(Tv("w-4 text-center ",i.wasWordCopied()?"fa-solid fa-check text-success":"fa-regular fa-copy")),k(2),xt((t=i.rightClickedWord())==null?null:t.word)}}var mc=(()=>{class r{constructor(){this.clipboard=z(ha),this.rightClickedWord=me(null),this.searchWord=dt(),this.hideWord=dt(),this.closed=dt(),this.anchor=re(()=>{let t=this.rightClickedWord();return t?{x:t.clientX,y:t.clientY}:null}),this.wasWordCopied=this.clipboard.copied}searchForThisWord(){let t=this.rightClickedWord();t&&this.searchWord.emit(t.word),this.close()}hideThisWord(){let t=this.rightClickedWord();t&&this.hideWord.emit(t.word),this.close()}async copyWord(){let t=this.rightClickedWord();t&&await this.clipboard.copy(t.word)}close(){this.closed.emit()}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-menu"]],inputs:{rightClickedWord:[1,"rightClickedWord"]},outputs:{searchWord:"searchWord",hideWord:"hideWord",closed:"closed"},decls:1,vars:1,consts:[["data-testid","domain-word-menu",1,"w-56",3,"anchor"],["data-testid","domain-word-menu",1,"w-56",3,"dismissed","anchor"],["type","button","title","Copy word to clipboard","data-testid","domain-word-menu-copy",1,"flex","w-full","items-center","gap-3","px-4","py-2.5","text-left","hover:bg-base-200",3,"click"],[1,"truncate","text-sm","font-semibold","tracking-wide"],[1,"my-1","border-t","border-base-300"],["icon","fa-solid fa-magnifying-glass","hoverHint","Put this word into the explorer's word search",3,"itemClick"],["icon","fa-solid fa-eye-slash","hoverHint","Drop this word from the cloud and the word list",3,"itemClick"]],template:function(i,n){if(i&1&&Ke(0,LC,10,5,"cc-floating-menu",0),i&2){let o;$e((o=n.anchor())?0:-1,o)}},dependencies:[Nv,kv],encapsulation:2,changeDetection:0})}}return r})();function pl(r,e){if(e.length===0)return r;let t=new Set(e);return r.filter(i=>!t.has(i.text))}var NC=yi(fm,lo,pl),en=(()=>{class r{constructor(){this.store=z(pt),this.projectWords$=this.store.select(NC)}occurrencesOf(t,i){return this.store.select(hm(i,t))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();function pa(r,e){let t=e.trim().toLowerCase();return r.filter(({text:i})=>i.toLowerCase().includes(t))}var Ht=(function(r){return r.OCCURRENCES="Occurrences",r.NAME="Name",r.RELEVANCE="Relevance",r})(Ht||{}),kC={[Ht.OCCURRENCES]:(r,e)=>r.frequency-e.frequency,[Ht.NAME]:(r,e)=>r.text.localeCompare(e.text),[Ht.RELEVANCE]:(r,e)=>kr(r,Ji.tfidf)-kr(e,Ji.tfidf)};function jm(r,{option:e,ascending:t}){let i=kC[e],n=t?1:-1;return[...r].sort((o,a)=>n*i(o,a)||o.text.localeCompare(a.text))}function Km(r){let{rowCount:e,rowHeight:t,scrolledPast:i,viewportHeight:n}=r;if(e===0||t<=0||n<=0)return zC(r);let o=Zm(Math.floor(i/t)-6,0,e-1),a=Zm(Math.floor((i+n)/t)+6,o,e-1);return{firstIndex:o,lastIndex:a,topSpacerHeight:o*t,bottomSpacerHeight:(e-a-1)*t}}function zC({rowCount:r}){return{firstIndex:0,lastIndex:r-1,topSpacerHeight:0,bottomSpacerHeight:0}}function Zm(r,e,t){return Math.min(Math.max(r,e),t)}function vl(r){let e=r*100;return e>0&&e<1?"<1%":`${Math.round(e)}%`}var $m=(()=>{class r{constructor(){this.contextMenu=z(Mm),this.node=me.required(),this.word=me.required(),this.isExpanded=me(!1),this.isSelected=me(!1),this.clicked=dt(),this.isExpandable=re(()=>this.node().children.length>0),this.isMarked=re(()=>this.contextMenu.isMarked(this.node().path)),this.decoration=re(()=>`${vl(this.node().share)} of "${this.word()}" \xB7 ${fl(this.node().count)}`)}openContextMenu(t){this.contextMenu.openFor(this.node().path,t)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-occurrence-row"]],hostAttrs:[1,"block"],hostVars:1,hostBindings:function(i,n){i&1&&xe("click",function(){return n.clicked.emit()})("contextmenu",function(a){return n.openContextMenu(a)}),i&2&&ao("aria-expanded",n.isExpandable()?n.isExpanded():null)},inputs:{node:[1,"node"],word:[1,"word"],isExpanded:[1,"isExpanded"],isSelected:[1,"isSelected"]},outputs:{clicked:"clicked"},decls:4,vars:7,consts:[["barTone","neutral",3,"isSelected","isMarked","barShare","decoration"],[3,"isFolder","isOpen"],[1,"node-name","ml-1","flex-1","truncate"]],template:function(i,n){i&1&&(U(0,"cc-explorer-row",0),Ae(1,"cc-explorer-tree-item-icon",1),U(2,"span",2),J(3),H()()),i&2&&($("isSelected",n.isSelected())("isMarked",n.isMarked())("barShare",n.node().share)("decoration",n.decoration()),k(),$("isFolder",n.node().isFolder)("isOpen",n.isExpanded()),k(2),xt(n.node().name))},dependencies:[cl,gm],encapsulation:2,changeDetection:0})}}return r})();var Qm=r=>({$implicit:r}),FC=(r,e)=>e.path;function BC(r,e){if(r&1&&(U(0,"p",1),J(1),H()),r&2){let t=ge();k(),br("",t.word()," does not occur in any file.")}}function WC(r,e){r&1&&sc(0)}function UC(r,e){if(r&1&&(U(0,"div",2),Zs(1,WC,1,0,"ng-container",3),H()),r&2){let t=ge(),i=Qi(3);k(),$("ngTemplateOutlet",i)("ngTemplateOutletContext",uc(2,Qm,t.topLevelOccurrences()))}}function HC(r,e){r&1&&sc(0)}function VC(r,e){if(r&1&&Zs(0,HC,1,0,"ng-container",3),r&2){let t=ge().$implicit;ge(2);let i=Qi(3);$("ngTemplateOutlet",i)("ngTemplateOutletContext",uc(2,Qm,t.children))}}function GC(r,e){if(r&1){let t=Dt();U(0,"cc-domain-word-occurrence-row",4),xe("clicked",function(){let n=Ye(t).$implicit,o=ge(2);return qe(o.clickRow(n))}),H(),U(1,"div",5),Ke(2,VC,1,4,"ng-container"),H()}if(r&2){let t=e.$implicit,i=ge(2);$("node",t)("word",i.word())("isExpanded",i.isExpanded(t.path))("isSelected",t.path===i.selectedNodePath()),k(2),$e(i.isExpanded(t.path)?2:-1)}}function YC(r,e){if(r&1&&Lr(0,GC,3,5,null,null,FC),r&2){let t=e.$implicit;Nr(t)}}var qC=null,Jm=(()=>{class r{constructor(){this.readStore=z(en),this.word=me.required(),this.selectedNodePath=me(null),this.nodeClicked=dt(),this.occurrences=at(rl(this.word).pipe(Xs(t=>this.readStore.occurrencesOf(t,qC))),{initialValue:null}),this.topLevelOccurrences=re(()=>this.occurrences()?.children??[]),this.expandedPaths=ht(new Set)}isExpanded(t){return this.expandedPaths().has(t)}clickRow(t){t.children.length>0&&this.toggle(t.path),this.nodeClicked.emit(t.path)}toggle(t){let i=new Set(this.expandedPaths());i.delete(t)||i.add(t),this.expandedPaths.set(i)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-occurrence-tree"]],hostAttrs:[1,"block"],inputs:{word:[1,"word"],selectedNodePath:[1,"selectedNodePath"]},outputs:{nodeClicked:"nodeClicked"},decls:4,vars:1,consts:[["subtree",""],["data-testid","domain-word-occurrences-empty",1,"px-3","py-2","text-sm","opacity-60"],["data-testid","domain-word-occurrences-tree"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"clicked","node","word","isExpanded","isSelected"],[1,"pl-3"]],template:function(i,n){i&1&&(Ke(0,BC,2,1,"p",1)(1,UC,2,4,"div",2),Zs(2,YC,2,0,"ng-template",null,0,Dv)),i&2&&$e(n.topLevelOccurrences().length===0?0:1)},dependencies:[Mv,$m],encapsulation:2,changeDetection:0})}}return r})();var XC=r=>`domain-word-row-${r}`,eg=(()=>{class r{constructor(){this.word=me.required(),this.share=me(0),this.isExpanded=me(!1),this.toggled=dt(),this.rowId=re(()=>XC(this.word().text)),this.decoration=re(()=>`${vl(this.share())} of all words \xB7 ${fl(this.word().frequency)}`)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-row"]],hostAttrs:[1,"block"],hostVars:3,hostBindings:function(i,n){i&1&&xe("click",function(){return n.toggled.emit()}),i&2&&(gi("id",n.rowId()),ao("data-testid",n.rowId())("aria-expanded",n.isExpanded()))},inputs:{word:[1,"word"],share:[1,"share"],isExpanded:[1,"isExpanded"]},outputs:{toggled:"toggled"},decls:4,vars:5,consts:[[1,"hover:bg-base-200",3,"barShare","decoration"],["aria-hidden","true",1,"fa","fa-font","text-xs","opacity-70"],[1,"node-name","ml-1","flex-1","truncate"]],template:function(i,n){i&1&&(U(0,"cc-explorer-row",0),Ae(1,"span",1),U(2,"span",2),J(3),H()()),i&2&&($("barShare",n.share())("decoration",n.decoration()),k(2),Js("font-semibold",n.isExpanded()),k(),xt(n.word().text))},dependencies:[cl],encapsulation:2,changeDetection:0})}}return r})();var tg=28,jC="cc-domain-word-row",gc={scrolledPast:0,viewportHeight:0,rowHeight:tg},ml=class{constructor(){this.scrollHost=null,this.measured=ht(gc,{equal:(e,t)=>e.scrolledPast===t.scrolledPast&&e.viewportHeight===t.viewportHeight&&e.rowHeight===t.rowHeight}),this.geometry=this.measured.asReadonly(),this.remeasure=()=>this.measure()}attachTo(e,t){if(!(this.host===e&&this.scrollHost===t)){if(this.stopObserving(),this.host=e,this.scrollHost=t,!t){this.measured.set(gc);return}t.addEventListener("scroll",this.remeasure,{passive:!0}),typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(this.remeasure),this.resizeObserver.observe(e),this.resizeObserver.observe(t)),this.measure()}}measure(){let{host:e,scrollHost:t}=this;if(!(!e||!t)){if(!t.contains(e)){this.measured.set(gc);return}this.measured.set({scrolledPast:Math.max(0,t.getBoundingClientRect().top-e.getBoundingClientRect().top),viewportHeight:t.clientHeight,rowHeight:e.querySelector(jC)?.offsetHeight||tg})}}dispose(){this.stopObserving(),this.host=void 0,this.scrollHost=null}stopObserving(){this.scrollHost?.removeEventListener("scroll",this.remeasure),this.resizeObserver?.disconnect(),this.resizeObserver=void 0}};var ZC=(r,e)=>e.text;function KC(r,e){if(r&1){let t=Dt();U(0,"div",0)(1,"div",1)(2,"span",2),J(3,"Pinned"),H(),U(4,"button",3),xe("click",function(){let n=Ye(t),o=ge();return qe(o.wordToggled.emit(n.text))}),Ae(5,"i",4),H()(),U(6,"cc-domain-word-row",5),xe("toggled",function(){let n=Ye(t),o=ge();return qe(o.wordToggled.emit(n.text))}),H(),U(7,"div",6)(8,"cc-domain-word-occurrence-tree",7),xe("nodeClicked",function(n){Ye(t);let o=ge();return qe(o.nodeClicked.emit(n))}),H()()()}if(r&2){let t=e,i=ge();k(6),$("word",t)("share",i.shareOf(t))("isExpanded",!0),k(2),$("word",t.text)("selectedNodePath",i.selectedNodePath())}}function $C(r,e){r&1&&(U(0,"p",8),J(1),H()),r&2&&(k(),xt(e))}function QC(r,e){if(r&1&&Ke(0,$C,2,1,"p",8),r&2){let t,i=ge();$e((t=i.emptyHint())?0:-1,t)}}function JC(r,e){if(r&1){let t=Dt();U(0,"cc-domain-word-row",10),xe("toggled",function(){let n=Ye(t).$implicit,o=ge(2);return qe(o.wordToggled.emit(n.text))}),H()}if(r&2){let t=e.$implicit,i=ge(2);$("word",t)("share",i.shareOf(t))}}function eb(r,e){if(r&1&&(Ae(0,"div"),Lr(1,JC,1,2,"cc-domain-word-row",9,ZC),Ae(3,"div")),r&2){let t=ge();$r("height",t.window().topSpacerHeight,"px"),k(),Nr(t.renderedWords()),k(2),$r("height",t.window().bottomSpacerHeight,"px")}}var yc=(()=>{class r{constructor(){this.readStore=z(en),this.hostElement=z(xv),this.scrollHostService=z(_m),this.viewport=new ml,this.query=me(""),this.sorting=me({option:Ht.OCCURRENCES,ascending:!1}),this.expandedWord=me(null),this.selectedNodePath=me(null),this.wordToggled=dt(),this.nodeClicked=dt(),this.projectWords=at(this.readStore.projectWords$,{requireSync:!0}),this.pinnedWord=re(()=>this.projectWords().find(t=>t.text===this.expandedWord())??null),this.matchedWords=re(()=>pa(this.projectWords(),this.query())),this.visibleWords=re(()=>jm(this.matchedWords().filter(t=>t.text!==this.expandedWord()),this.sorting())),this.emptyHint=re(()=>this.projectWords().length===0?"This project carries no words.":this.matchedWords().length===0?`No word contains "${this.query().trim()}".`:null),this.geometry=re(()=>Ys(Gs({},this.viewport.geometry()),{rowCount:this.visibleWords().length})),this.window=re(()=>Km(this.geometry())),this.renderedWords=re(()=>{let{firstIndex:t,lastIndex:i}=this.window();return this.visibleWords().slice(t,i+1)}),this.totalOccurrences=re(()=>this.projectWords().reduce((t,i)=>t+i.frequency,0)),oo(()=>this.viewport.attachTo(this.hostElement.nativeElement,this.scrollHostService.element()))}ngOnDestroy(){this.viewport.dispose()}shareOf(t){let i=this.totalOccurrences();return i>0?t.frequency/i:0}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-domain-word-list"]],hostAttrs:[1,"block"],inputs:{query:[1,"query"],sorting:[1,"sorting"],expandedWord:[1,"expandedWord"],selectedNodePath:[1,"selectedNodePath"]},outputs:{wordToggled:"wordToggled",nodeClicked:"nodeClicked"},decls:3,vars:2,consts:[["data-testid","domain-word-pin",1,"sticky","top-0","z-10","mb-1","rounded-md","border","border-base-300","bg-base-100","shadow-sm"],[1,"flex","items-center","gap-1","px-2","pt-1"],[1,"flex-1","text-[10px]","uppercase","tracking-wide","opacity-60"],["type","button","title","Unpin this word","data-testid","domain-word-unpin",1,"btn","btn-ghost","btn-xs","btn-square","shrink-0",3,"click"],[1,"fa","fa-times"],[3,"toggled","word","share","isExpanded"],[1,"max-h-64","overflow-y-auto","pl-3"],[3,"nodeClicked","word","selectedNodePath"],["data-testid","domain-word-list-empty",1,"px-3","py-4","text-sm","opacity-60"],[3,"word","share"],[3,"toggled","word","share"]],template:function(i,n){if(i&1&&(Ke(0,KC,9,5,"div",0),Ke(1,QC,1,1)(2,eb,4,4)),i&2){let o;$e((o=n.pinnedWord())?0:-1,o),k(),$e(n.visibleWords().length===0?1:2)}},dependencies:[eg,Jm],encapsulation:2,changeDetection:0})}}return r})();var va=(()=>{class r{constructor(){this.store=z(pt),this.hiddenWords=at(this.store.select(lo),{initialValue:[]})}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var ma=(()=>{class r{constructor(){this.store=z(pt)}hide(t){this.store.dispatch(qv({word:t}))}restore(t){this.store.dispatch(Xv({word:t}))}restoreAll(){this.store.dispatch(jv())}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var tb=["popover"];function rb(r,e){r&1&&(Xe(0,"div",6),J(1," Right-click a word in the cloud to drop it from the cloud and the word list. "),He())}function ib(r,e){if(r&1){let t=Dt();Xe(0,"li",8)(1,"span",10),J(2),He(),Xe(3,"button",11),Kr("click",function(){let n=Ye(t).$implicit,o=ge(2);return qe(o.restore(n))}),ca(4,"i",12),He()()}if(r&2){let t=e.$implicit;k(2),xt(t),k(),gi("title","Show "+t+" again"),ao("aria-label","Show "+t+" again")("data-testid","domain-restore-"+t)}}function nb(r,e){if(r&1){let t=Dt();Xe(0,"ul",7),Lr(1,ib,5,4,"li",8,Ks),He(),Xe(3,"button",9),Kr("click",function(){Ye(t);let n=ge();return qe(n.restoreAll())}),J(4," Show all words again "),He()}if(r&2){let t=ge();k(),Nr(t.hiddenWords())}}var _c=(()=>{class r{constructor(){this.readStore=z(va),this.writeStore=z(ma),this.popoverId=me.required(),this.anchorName=me.required(),this.hiddenWords=re(()=>[...this.readStore.hiddenWords()].sort((t,i)=>t.localeCompare(i))),this.popover=tl.required("popover")}closePopover(){this.popover().nativeElement.hidePopover()}restore(t){this.writeStore.restore(t)}restoreAll(){this.writeStore.restoreAll()}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Se({type:r,selectors:[["cc-hidden-words-popover"]],viewQuery:function(i,n){i&1&&$s(n.popover,tb,5),i&2&&Qs()},hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:9,vars:4,consts:[["popover",""],["popover","",1,"dropdown","p-2","rounded-box","bg-base-100","shadow-lg","w-72",3,"id"],[1,"flex","items-center","justify-between","border-b","border-base-300","pb-1","mb-1"],[1,"text-sm","font-semibold","uppercase","tracking-wide"],["type","button","title","Close","data-testid","domain-hidden-words-close-button",1,"btn","btn-ghost","btn-xs","btn-square",3,"click"],[1,"fa","fa-times"],["data-testid","domain-hidden-words-empty",1,"px-2","py-3","text-xs","opacity-60"],["data-testid","domain-hidden-words-list",1,"m-0","flex","max-h-[60vh]","list-none","flex-col","overflow-y-auto","p-0"],[1,"flex","items-center","gap-2","rounded","py-1","pl-2","pr-1","hover:bg-base-200"],["type","button","data-testid","domain-restore-all-words",1,"btn","btn-sm","btn-block","mt-1",3,"click"],[1,"min-w-0","flex-1","truncate","text-sm"],["type","button",1,"btn","btn-ghost","btn-xs","btn-square",3,"click","title"],[1,"fa","fa-eye"]],template:function(i,n){i&1&&(Xe(0,"div",1,0)(2,"div",2)(3,"span",3),J(4,"Hidden Words"),He(),Xe(5,"button",4),Kr("click",function(){return n.closePopover()}),ca(6,"i",5),He()(),Ke(7,rb,2,0,"div",6)(8,nb,5,0),He()),i&2&&($r("position-anchor","--"+n.anchorName()),gi("id",n.popoverId()),k(7),$e(n.hiddenWords().length===0?7:8))},encapsulation:2,changeDetection:0})}}return r})();var rg=(()=>{class r{constructor(){this.store=z(pt)}wordsForSelectedNode(t){return this.store.select(yi(cm(t),lo,pl))}selectedNodeName(t){return il(t,Ev.rootName)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=Be({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();function tn(r,e,t){return[...r].sort((i,n)=>kr(n,e)-kr(i,e)).slice(0,t)}var ob='<svg xmlns="http://www.w3.org/2000/svg" width="640" height="563" viewBox="58.7 0 64 56.3"><path fill="#000" d="M81.9,20.3h0c0-6.9,3.5-13,8.8-16.7C87.4,1.3,83.4,0,79.1,0,67.9,0,58.8,9.1,58.7,20.3h0v36h17.6V20.4h0c0-1.5,1.2-2.8,2.8-2.8s2.8,1.2,2.8,2.8h0Z"/><path fill="#000" d="M122.7,20.3c0-11.2-9.2-20.3-20.4-20.3s-20.3,9.1-20.4,20.3h0v36h17.6V20.4h0c0-1.1.6-2.1,1.6-2.5,2-.9,4,.6,4,2.5h0v35.9h17.6V20.3h0Z"/></svg>',ig=`data:image/svg+xml,${encodeURIComponent(ob)}`;function xc(r){return new Promise((e,t)=>{if(typeof Image>"u"){t(new Error("Image is not available in this environment"));return}let i=new Image;i.onload=()=>e(i),i.onerror=()=>t(new Error("Failed to load the word-cloud mask image")),i.src=r})}var Sc="#e6007e",wc="#0030ff",ab="--wordCloudColorStart",sb="--wordCloudColorEnd",lb=/^#[0-9A-Fa-f]{6}$/;function og(){if(typeof document>"u"||typeof getComputedStyle>"u")return[Sc,wc];let r=getComputedStyle(document.documentElement);return[ng(r,ab,Sc),ng(r,sb,wc)]}function ng(r,e,t){let i=r.getPropertyValue(e).trim();return Cc(i,t)}function Cc(r,e){return lb.test(r)?r:e}function ag(r,e,t){let i=Math.min(1,Math.max(0,t)),n=nl.convertHexToColorObject(Cc(r,Sc)),o=nl.convertHexToColorObject(Cc(e,wc));return nl.convertColorToHex(new Rv().lerpColors(n,o,i))}function sg(r,e,t,i){let[n,o]=r;if(t||!i||e.length===0)return r;let a=Math.max(...e.map(u=>u.text.length)),s=i*.9/(a*.62),l=Math.max(Math.min(o,Math.floor(s)),1);return[Math.min(n,l),l]}function lg(){return({name:r,data:e})=>{let t=[`<b>${r}</b>`,`Frequency: ${e.frequency}`];return e.tfidf!==void 0&&t.push(`TF-IDF: ${e.tfidf.toFixed(3)}`),t.join("<br/>")}}var ub=31,ug=1e3;function fg(r,e,t){return ag(e,t,fb(r))}function fb(r){let e=0;for(let t of r)e=(e*ub+(t.codePointAt(0)??0))%ug;return e/ug}var cb=10,hb="#333",db='Roboto, "Helvetica Neue", sans-serif',pb=.55;function hg(r,e,t={}){let i=tn(r,e.sizingMode,e.topN),n=sg(e.sizeRange,i,e.drawOutOfBound,t.containerWidth),{shape:o,maskImage:a,keepAspect:s}=mb(e.shape,t.maskImage);return{aria:{enabled:!0},tooltip:{show:!0,formatter:lg()},series:[{type:"wordCloud",shape:o,maskImage:a,keepAspect:s,left:"center",top:"center",width:`${.9*100}%`,height:`${.9*100}%`,sizeRange:n,rotationRange:e.rotationRange,rotationStep:e.rotationStep,gridSize:e.gridSize,drawOutOfBound:e.drawOutOfBound,shrinkToFit:e.shrinkToFit,layoutAnimation:t.layoutAnimation??!0,textStyle:{fontFamily:db,fontWeight:"bold"},emphasis:{textStyle:{textShadowBlur:cb,textShadowColor:hb}},blur:{textStyle:{opacity:pb}},data:vb(i,e)}]}}function vb(r,e){let[t,i]=og();return r.map(n=>({name:n.text,value:kr(n,e.sizingMode),frequency:n.frequency,tfidf:n.tfidf,textStyle:{color:fg(n.text,t,i)}}))}function mb(r,e){return r===zr.logoM||r===zr.custom?{shape:zr.circle,maskImage:e,keepAspect:!0}:{shape:r,maskImage:void 0,keepAspect:!1}}var bc=function(r,e){return bc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},bc(r,e)};function Ce(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");bc(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Tc=function(r,e){return Tc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Tc(r,e)};function ee(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Tc(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var gl=12,gb="sans-serif",Tr=gl+"px "+gb,yb=20,_b=100,xb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Sb(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),n=(r.charCodeAt(t)-yb)/_b;e[i]=n}return e}var wb=Sb(xb),tr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,i){if(!r){var n=tr.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==i&&(e=r.font=i||Tr),r.measureText(t);t=t||"",i=i||Tr;var o=/((?:\d+)?\.?\d*)px/.exec(i),a=o&&+o[1]||gl,s=0;if(i.indexOf("mono")>=0)s=a*t.length;else for(var l=0;l<t.length;l++){var u=wb[t[l]];s+=u==null?a:u*a}return{width:s}}})(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i}};var vg=zt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),mg=zt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),ya=Object.prototype.toString,_l=Array.prototype,Cb=_l.forEach,bb=_l.filter,Dc=_l.slice,Tb=_l.map,dg=function(){}.constructor,yl=dg?dg.prototype:null,Mc="__proto__",Db=2311;function xl(){return Db++}function ho(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ne(r){if(r==null||typeof r!="object")return r;var e=r,t=ya.call(r);if(t==="[object Array]"){if(!ga(r)){e=[];for(var i=0,n=r.length;i<n;i++)e[i]=ne(r[i])}}else if(mg[t]){if(!ga(r)){var o=r.constructor;if(o.from)e=o.from(r);else{e=new o(r.length);for(var i=0,n=r.length;i<n;i++)e[i]=r[i]}}}else if(!vg[t]&&!ga(r)&&!co(r)){e={};for(var a in r)r.hasOwnProperty(a)&&a!==Mc&&(e[a]=ne(r[a]))}return e}function Ee(r,e,t){if(!B(e)||!B(r))return t?ne(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==Mc){var n=r[i],o=e[i];B(o)&&B(n)&&!L(o)&&!L(n)&&!co(o)&&!co(n)&&!pg(o)&&!pg(n)&&!ga(o)&&!ga(n)?Ee(n,o,t):(t||!(i in r))&&(r[i]=ne(e[i]))}return r}function P(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Mc&&(r[t]=e[t]);return r}function ce(r,e,t){for(var i=ye(e),n=0,o=i.length;n<o;n++){var a=i[n];(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}return r}var BN=tr.createCanvas;function he(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function Sl(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function kt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var o=i[n];o!=="constructor"&&(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}else ce(r,e,t)}function nt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function S(r,e,t){if(r&&e)if(r.forEach&&r.forEach===Cb)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)e.call(t,r[i],i,r);else for(var o in r)r.hasOwnProperty(o)&&e.call(t,r[o],o,r)}function X(r,e,t){if(!r)return[];if(!e)return wl(r);if(r.map&&r.map===Tb)return r.map(e,t);for(var i=[],n=0,o=r.length;n<o;n++)i.push(e.call(t,r[n],n,r));return i}function zt(r,e,t,i){if(r&&e){for(var n=0,o=r.length;n<o;n++)t=e.call(i,t,r[n],n,r);return t}}function Ue(r,e,t){if(!r)return[];if(!e)return wl(r);if(r.filter&&r.filter===bb)return r.filter(e,t);for(var i=[],n=0,o=r.length;n<o;n++)e.call(t,r[n],n,r)&&i.push(r[n]);return i}function ye(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function Mb(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(Dc.call(arguments)))}}var De=yl&&j(yl.bind)?yl.call.bind(yl.bind):Mb;function Qe(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Dc.call(arguments)))}}function L(r){return Array.isArray?Array.isArray(r):ya.call(r)==="[object Array]"}function j(r){return typeof r=="function"}function N(r){return typeof r=="string"}function _a(r){return ya.call(r)==="[object String]"}function be(r){return typeof r=="number"}function B(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function pg(r){return!!vg[ya.call(r)]}function je(r){return!!mg[ya.call(r)]}function co(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function xi(r){return r.colorStops!=null}function gg(r){return r.image!=null}function po(r){return r!==r}function rn(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function ie(r,e){return r??e}function nn(r,e,t){return r??e??t}function wl(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Dc.apply(r,e)}function Cl(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function St(r,e){if(!r)throw new Error(e)}function wt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var yg="__ec_primitive__";function on(r){r[yg]=!0}function ga(r){return r[yg]}var Eb=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return ye(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r})(),_g=typeof Map=="function";function Rb(){return _g?new Map:new Eb}var Ob=(function(){function r(e){var t=L(e);this.data=Rb();var i=this;e instanceof r?e.each(n):e&&S(e,n);function n(o,a){t?i.set(o,a):i.set(a,o)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,n){e.call(t,i,n)})},r.prototype.keys=function(){var e=this.data.keys();return _g?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function Z(r){return new Ob(r)}function xg(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var n=r.length,i=0;i<e.length;i++)t[i+n]=e[i];return t}function Si(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&P(t,e),t}function bl(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Dr(r,e){return r.hasOwnProperty(e)}function lt(){}var Ec=180/Math.PI;function Qr(){return[1,0,0,1,0,0]}function vo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Sg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Jr(r,e,t){var i=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],o=e[0]*t[2]+e[2]*t[3],a=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=n,r[2]=o,r[3]=a,r[4]=s,r[5]=l,r}function xa(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function mo(r,e,t,i){i===void 0&&(i=[0,0]);var n=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),c=Math.cos(t);return r[0]=n*c+s*f,r[1]=-n*f+s*c,r[2]=o*c+l*f,r[3]=-o*f+c*l,r[4]=c*(a-i[0])+f*(u-i[1])+i[0],r[5]=c*(u-i[1])-f*(a-i[0])+i[1],r}function wg(r,e,t){var i=t[0],n=t[1];return r[0]=e[0]*i,r[1]=e[1]*n,r[2]=e[2]*i,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*n,r}function go(r,e){var t=e[0],i=e[2],n=e[4],o=e[1],a=e[3],s=e[5],l=t*a-o*i;return l?(l=1/l,r[0]=a*l,r[1]=-o*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-a*n)*l,r[5]=(o*n-t*s)*l,r):null}function wi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Cg(r){return[r[0],r[1]]}function Rc(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function bg(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Ib(r){return Math.sqrt(Ab(r))}function Ab(r){return r[0]*r[0]+r[1]*r[1]}function Tl(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Tg(r,e){var t=Ib(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Dl(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var wa=Dl;function Pb(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var an=Pb;function Ml(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function Vt(r,e,t){var i=e[0],n=e[1];return r[0]=t[0]*i+t[2]*n+t[4],r[1]=t[1]*i+t[3]*n+t[5],r}function ei(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ti(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Dg=vo,Mg=5e-5;function ln(r){return r>Mg||r<-Mg}var un=[],yo=[],Oc=Qr(),Ic=Math.abs,Lb=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ln(this.rotation)||ln(this.x)||ln(this.y)||ln(this.scaleX-1)||ln(this.scaleY-1)||ln(this.skewX)||ln(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(Dg(i),this.invTransform=null);return}i=i||Qr(),t?this.getLocalTransform(i):Dg(i),e&&(t?Jr(i,e,i):Sg(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(un);var i=un[0]<0?-1:1,n=un[1]<0?-1:1,o=((un[0]-i)*t+i)/un[0]||0,a=((un[1]-n)*t+n)/un[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||Qr(),go(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),o=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Qr(),Jr(yo,e.invTransform,t),t=yo);var i=this.originX,n=this.originY;(i||n)&&(Oc[4]=i,Oc[5]=n,Jr(yo,t,Oc),yo[4]-=i,yo[5]-=n,t=yo),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&Vt(i,i,n),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&Vt(i,i,n),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&Ic(e[0]-1)>1e-10&&Ic(e[3]-1)>1e-10?Math.sqrt(Ic(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Nb(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,n=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var p=i+s,g=n+l;t[4]=-p*o-d*g*a,t[5]=-g*a-h*p*o}else t[4]=t[5]=0;return t[0]=o,t[3]=a,t[1]=h*o,t[2]=d*a,u&&mo(t,t,u),t[4]+=i+f,t[5]+=n+c,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),fn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nb(r,e){for(var t=0;t<fn.length;t++){var i=fn[t];r[i]=e[i]}}var cn=Lb;var El={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-El.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?El.bounceIn(r*2)*.5:El.bounceOut(r*2-1)*.5+.5}},Rl=El;var Ol=Math.pow,bi=Math.sqrt,Al=1e-8,Rg=1e-4,Eg=bi(3),Il=1/3,Fr=wi(),fr=wi(),_o=wi();function Ci(r){return r>-Al&&r<Al}function Og(r){return r>Al||r<-Al}function Je(r,e,t,i,n){var o=1-n;return o*o*(o*r+3*n*e)+n*n*(n*i+3*o*t)}function Ac(r,e,t,i,n){var o=1-n;return 3*(((e-r)*o+2*(t-e)*n)*o+(i-t)*n*n)}function Pl(r,e,t,i,n,o){var a=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,h=0;if(Ci(f)&&Ci(c))if(Ci(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[h++]=p)}else{var g=c*c-4*f*d;if(Ci(g)){var v=c/f,p=-s/a+v,m=-v/2;p>=0&&p<=1&&(o[h++]=p),m>=0&&m<=1&&(o[h++]=m)}else if(g>0){var y=bi(g),_=f*s+1.5*a*(-c+y),x=f*s+1.5*a*(-c-y);_<0?_=-Ol(-_,Il):_=Ol(_,Il),x<0?x=-Ol(-x,Il):x=Ol(x,Il);var p=(-s-(_+x))/(3*a);p>=0&&p<=1&&(o[h++]=p)}else{var C=(2*f*s-3*a*c)/(2*bi(f*f*f)),w=Math.acos(C)/3,b=bi(f),D=Math.cos(w),p=(-s-2*b*D)/(3*a),m=(-s+b*(D+Eg*Math.sin(w)))/(3*a),T=(-s+b*(D-Eg*Math.sin(w)))/(3*a);p>=0&&p<=1&&(o[h++]=p),m>=0&&m<=1&&(o[h++]=m),T>=0&&T<=1&&(o[h++]=T)}}return h}function Ll(r,e,t,i,n){var o=6*t-12*e+6*r,a=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Ci(a)){if(Og(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Ci(f))n[0]=-o/(2*a);else if(f>0){var c=bi(f),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),d>=0&&d<=1&&(n[l++]=d)}}return l}function xo(r,e,t,i,n,o){var a=(e-r)*n+r,s=(t-e)*n+e,l=(i-t)*n+t,u=(s-a)*n+a,f=(l-s)*n+s,c=(f-u)*n+u;o[0]=r,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=f,o[6]=l,o[7]=i}function Nl(r,e,t,i,n,o,a,s,l,u,f){var c,d=.005,h=1/0,p,g,v,m;Fr[0]=l,Fr[1]=u;for(var y=0;y<1;y+=.05)fr[0]=Je(r,t,n,a,y),fr[1]=Je(e,i,o,s,y),v=an(Fr,fr),v<h&&(c=y,h=v);h=1/0;for(var _=0;_<32&&!(d<Rg);_++)p=c-d,g=c+d,fr[0]=Je(r,t,n,a,p),fr[1]=Je(e,i,o,s,p),v=an(fr,Fr),p>=0&&v<h?(c=p,h=v):(_o[0]=Je(r,t,n,a,g),_o[1]=Je(e,i,o,s,g),m=an(_o,Fr),g<=1&&m<h?(c=g,h=m):d*=.5);return f&&(f[0]=Je(r,t,n,a,c),f[1]=Je(e,i,o,s,c)),bi(h)}function Ig(r,e,t,i,n,o,a,s,l){for(var u=r,f=e,c=0,d=1/l,h=1;h<=l;h++){var p=h*d,g=Je(r,t,n,a,p),v=Je(e,i,o,s,p),m=g-u,y=v-f;c+=Math.sqrt(m*m+y*y),u=g,f=v}return c}function ut(r,e,t,i){var n=1-i;return n*(n*r+2*i*e)+i*i*t}function Pc(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function Ag(r,e,t,i,n){var o=r-2*e+t,a=2*(e-r),s=r-i,l=0;if(Ci(o)){if(Og(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Ci(f)){var u=-a/(2*o);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=bi(f),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),d>=0&&d<=1&&(n[l++]=d)}}return l}function kl(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function So(r,e,t,i,n){var o=(e-r)*i+r,a=(t-e)*i+e,s=(a-o)*i+o;n[0]=r,n[1]=o,n[2]=s,n[3]=s,n[4]=a,n[5]=t}function zl(r,e,t,i,n,o,a,s,l){var u,f=.005,c=1/0;Fr[0]=a,Fr[1]=s;for(var d=0;d<1;d+=.05){fr[0]=ut(r,t,n,d),fr[1]=ut(e,i,o,d);var h=an(Fr,fr);h<c&&(u=d,c=h)}c=1/0;for(var p=0;p<32&&!(f<Rg);p++){var g=u-f,v=u+f;fr[0]=ut(r,t,n,g),fr[1]=ut(e,i,o,g);var h=an(fr,Fr);if(g>=0&&h<c)u=g,c=h;else{_o[0]=ut(r,t,n,v),_o[1]=ut(e,i,o,v);var m=an(_o,Fr);v<=1&&m<c?(u=v,c=m):f*=.5}}return l&&(l[0]=ut(r,t,n,u),l[1]=ut(e,i,o,u)),bi(c)}function Pg(r,e,t,i,n,o,a){for(var s=r,l=e,u=0,f=1/a,c=1;c<=a;c++){var d=c*f,h=ut(r,t,n,d),p=ut(e,i,o,d),g=h-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=h,l=p}return u}var kb=/cubic-bezier\(([0-9,\.e ]+)\)/;function Fl(r){var e=r&&kb.exec(r);if(e){var t=e[1].split(","),i=+wt(t[0]),n=+wt(t[1]),o=+wt(t[2]),a=+wt(t[3]);if(isNaN(i+n+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Pl(0,i,o,1,l,s)&&Je(0,n,a,1,s[0])}}}var zb=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||lt,this.ondestroy=e.ondestroy||lt,this.onrestart=e.onrestart||lt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,n=e-this._startTime-this._pausedTime,o=n/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=j(e)?e:Rl[e]||Fl(e)},r})(),Lg=zb;var Ng=(function(){function r(e){this.value=e}return r})();var Fb=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Ng(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var Bb=(function(){function r(e){this._list=new Fb,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,n=this._map,o=null;if(n[e]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete n[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Ng(t),s.key=e,i.insertEntry(s),n[e]=s}return o},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),ri=Bb;var kg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ca(r){return r=Math.round(r),r<0?0:r>255?255:r}function zg(r){return r<0?0:r>1?1:r}function Nc(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ca(parseFloat(e)/100*255):Ca(parseInt(e,10))}function ba(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?zg(parseFloat(e)/100):zg(parseFloat(e))}function kc(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function cr(r,e,t,i,n){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}function zc(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Ug=new ri(20),Bl=null;function wo(r,e){Bl&&zc(Bl,e),Bl=Ug.put(r,Bl||e.slice())}function Ti(r,e){if(r){e=e||[];var t=Ug.get(r);if(t)return zc(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in kg)return zc(e,kg[i]),wo(r,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var o=parseInt(i.slice(1,4),16);if(!(o>=0&&o<=4095)){cr(e,0,0,0,1);return}return cr(e,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),wo(r,e),e}else if(n===7||n===9){var o=parseInt(i.slice(1,7),16);if(!(o>=0&&o<=16777215)){cr(e,0,0,0,1);return}return cr(e,(o&16711680)>>16,(o&65280)>>8,o&255,n===9?parseInt(i.slice(7),16)/255:1),wo(r,e),e}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===n){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?cr(e,+u[0],+u[1],+u[2],1):cr(e,0,0,0,1);f=ba(u.pop());case"rgb":if(u.length>=3)return cr(e,Nc(u[0]),Nc(u[1]),Nc(u[2]),u.length===3?f:ba(u[3])),wo(r,e),e;cr(e,0,0,0,1);return;case"hsla":if(u.length!==4){cr(e,0,0,0,1);return}return u[3]=ba(u[3]),Fg(u,e),wo(r,e),e;case"hsl":if(u.length!==3){cr(e,0,0,0,1);return}return Fg(u,e),wo(r,e),e;default:return}}cr(e,0,0,0,1)}}function Fg(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=ba(r[1]),n=ba(r[2]),o=n<=.5?n*(i+1):n+i-n*i,a=n*2-o;return e=e||[],cr(e,Ca(kc(a,o,t+1/3)*255),Ca(kc(a,o,t)*255),Ca(kc(a,o,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function Bg(r,e){var t=Ti(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return Fc(t,t.length===4?"rgba":"rgb")}}function Fc(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Co(r,e){var t=Ti(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Wg=new ri(100);function Bc(r){if(N(r)){var e=Wg.get(r);return e||(e=Bg(r,-.1),Wg.put(r,e)),e}else if(xi(r)){var t=P({},r);return t.colorStops=X(r.colorStops,function(i){return{offset:i.offset,color:Bg(i.color,-.1)}}),t}return r}var Ub=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Hb=(function(){function r(){this.browser=new Ub,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Di=new Hb;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Di.wxa=!0,Di.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Di.worker=!0:!Di.hasGlobalWindow||"Deno"in window?(Di.node=!0,Di.svgSupported=!0):Vb(navigator.userAgent,Di);function Vb(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),o=r.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),n&&(t.ie=!0,t.version=n[1]),o&&(t.edge=!0,t.version=o[1],t.newEdge=+o[1].split(".")[0]>18),a&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Q=Di;function Hg(r){return r.type==="linear"}function Vg(r){return r.type==="radial"}var ik=(function(){return Q.hasGlobalWindow&&j(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Uc=Array.prototype.slice;function ii(r,e,t){return(e-r)*t+r}function Wc(r,e,t,i){for(var n=e.length,o=0;o<n;o++)r[o]=ii(e[o],t[o],i);return r}function Gb(r,e,t,i){for(var n=e.length,o=n&&e[0].length,a=0;a<n;a++){r[a]||(r[a]=[]);for(var s=0;s<o;s++)r[a][s]=ii(e[a][s],t[a][s],i)}return r}function Wl(r,e,t,i){for(var n=e.length,o=0;o<n;o++)r[o]=e[o]+t[o]*i;return r}function Gg(r,e,t,i){for(var n=e.length,o=n&&e[0].length,a=0;a<n;a++){r[a]||(r[a]=[]);for(var s=0;s<o;s++)r[a][s]=e[a][s]+t[a][s]*i}return r}function Yb(r,e){for(var t=r.length,i=e.length,n=t>i?e:r,o=Math.min(t,i),a=n[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(t,i);s++)n.push({offset:a.offset,color:a.color.slice()})}function qb(r,e,t){var i=r,n=e;if(!(!i.push||!n.push)){var o=i.length,a=n.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(t===1?n[l]:Uc.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Ma(r){if(nt(r)){var e=r.length;if(nt(r[0])){for(var t=[],i=0;i<e;i++)t.push(Uc.call(r[i]));return t}return Uc.call(r)}return r}function Vl(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Xb(r){return nt(r&&r[0])?2:1}var Ul=0,Gl=1,Xg=2,Da=3,Hc=4,Vc=5,Yg=6;function qg(r){return r===Hc||r===Vc}function Hl(r){return r===Gl||r===Xg}var Ta=[0,0,0,0],jb=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var n=this.keyframes,o=n.length,a=!1,s=Yg,l=t;if(nt(t)){var u=Xb(t);s=u,(u===1&&!be(t[0])||u===2&&!be(t[0][0]))&&(a=!0)}else if(be(t)&&!po(t))s=Ul;else if(N(t))if(!isNaN(+t))s=Ul;else{var f=Ti(t);f&&(l=f,s=Da)}else if(xi(t)){var c=P({},l);c.colorStops=X(t.colorStops,function(h){return{offset:h.offset,color:Ti(h.color)}}),Hg(t)?s=Hc:Vg(t)&&(s=Vc),l=c}o===0?this.valType=s:(s!==this.valType||s===Yg)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:l,rawValue:t,percent:0};return i&&(d.easing=i,d.easingFunc=j(i)?i:Rl[i]||Fl(i)),n.push(d),d},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var n=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Hl(n),u=qg(n),f=0;f<o;f++){var c=i[f],d=c.value,h=a.value;c.percent=c.time/e,s||(l&&f!==o-1?qb(d,h,n):u&&Yb(d.colorStops,h.colorStops))}if(!s&&n!==Vc&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var p=i[0].value,f=0;f<o;f++)n===Ul?i[f].additiveValue=i[f].value-p:n===Da?i[f].additiveValue=Wl([],i[f].value,p,-1):Hl(n)&&(i[f].additiveValue=n===Gl?Wl([],i[f].value,p,-1):Gg([],i[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===Da,f,c=this._lastFr,d=Math.min,h,p;if(s===1)h=p=a[0];else{if(t<0)f=0;else if(t<this._lastFrP){var g=d(c+1,s-1);for(f=g;f>=0&&!(a[f].percent<=t);f--);f=d(f,s-2)}else{for(f=c;f<s&&!(a[f].percent>t);f++);f=d(f-1,s-2)}p=a[f+1],h=a[f]}if(h&&p){this._lastFr=f,this._lastFrP=t;var v=p.percent-h.percent,m=v===0?1:d((t-h.percent)/v,1);p.easingFunc&&(m=p.easingFunc(m));var y=i?this._additiveValue:u?Ta:e[l];if((Hl(o)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:p.rawValue;else if(Hl(o))o===Gl?Wc(y,h[n],p[n],m):Gb(y,h[n],p[n],m);else if(qg(o)){var _=h[n],x=p[n],C=o===Hc;e[l]={type:C?"linear":"radial",x:ii(_.x,x.x,m),y:ii(_.y,x.y,m),colorStops:X(_.colorStops,function(b,D){var T=x.colorStops[D];return{offset:ii(b.offset,T.offset,m),color:Vl(Wc([],b.color,T.color,m))}}),global:x.global},C?(e[l].x2=ii(_.x2,x.x2,m),e[l].y2=ii(_.y2,x.y2,m)):e[l].r=ii(_.r,x.r,m)}else if(u)Wc(y,h[n],p[n],m),i||(e[l]=Vl(y));else{var w=ii(h[n],p[n],m);i?this._additiveValue=w:e[l]=w}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,n=this._additiveValue;t===Ul?e[i]=e[i]+n:t===Da?(Ti(e[i],Ta),Wl(Ta,Ta,n,1),e[i]=Vl(Ta)):t===Gl?Wl(e[i],e[i],n,1):t===Xg&&Gg(e[i],e[i],n,1)},r})(),Zb=(function(){function r(e,t,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){ho("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,ye(t),i)},r.prototype.whenWithKeys=function(e,t,i,n){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new jb(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,d=c[c.length-1];u=d&&d.value,f.valType===Da&&u&&(u=Vl(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ma(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ma(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var o=i[n].getTrack(e);o&&(t=o)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],n=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var d=new Lg({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var p=t._additiveAnimators;if(p){for(var g=!1,v=0;v<p.length;v++)if(p[v]._clip){g=!0;break}g||(t._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(t._target,h);var m=t._onframeCbs;if(m)for(var v=0;v<m.length;v++)m[v](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return X(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,o=0;o<e.length;o++){var a=i[e[o]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<n.length;o++)if(!i[n[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var o=t[n],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(e[o]=Ma(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||ye(e);for(var i=0;i<t.length;i++){var n=t[i],o=this._tracks[n];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,e[n]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},r})(),Ea=Zb;var Kb=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,n){e.x=t.x+i.x*n,e.y=t.y+i.y*n},r.lerp=function(e,t,i,n){var o=1-n;e.x=o*t.x+n*i.x,e.y=o*t.y+n*i.y},r})(),ve=Kb;var Yl=Math.min,ql=Math.max,hn=new ve,dn=new ve,pn=new ve,vn=new ve,Ra=new ve,Oa=new ve,$b=(function(){function r(e,t,i,n){i<0&&(e=e+i,i=-i),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=i,this.height=n}return r.prototype.union=function(e){var t=Yl(e.x,this.x),i=Yl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ql(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ql(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,n=e.height/t.height,o=Qr();return xa(o,o,[-t.x,-t.y]),wg(o,o,[i,n]),xa(o,o,[e.x,e.y]),o},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var i=this,n=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,d=!(o<l||u<n||s<f||c<a);if(t){var h=1/0,p=0,g=Math.abs(o-l),v=Math.abs(u-n),m=Math.abs(s-f),y=Math.abs(c-a),_=Math.min(g,v),x=Math.min(m,y);o<l||u<n?_>p&&(p=_,g<v?ve.set(Oa,-g,0):ve.set(Oa,v,0)):_<h&&(h=_,g<v?ve.set(Ra,g,0):ve.set(Ra,-v,0)),s<f||c<a?x>p&&(p=x,m<y?ve.set(Oa,0,-m):ve.set(Oa,0,y)):_<h&&(h=_,m<y?ve.set(Ra,0,m):ve.set(Ra,0,-y))}return t&&ve.copy(t,d?Ra:Oa),d},r.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,i){if(!i){e!==t&&r.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],o=i[3],a=i[4],s=i[5];e.x=t.x*n+a,e.y=t.y*o+s,e.width=t.width*n,e.height=t.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}hn.x=pn.x=t.x,hn.y=vn.y=t.y,dn.x=vn.x=t.x+t.width,dn.y=pn.y=t.y+t.height,hn.transform(i),vn.transform(i),dn.transform(i),pn.transform(i),e.x=Yl(hn.x,dn.x,pn.x,vn.x),e.y=Yl(hn.y,dn.y,pn.y,vn.y);var l=ql(hn.x,dn.x,pn.x,vn.x),u=ql(hn.y,dn.y,pn.y,vn.y);e.width=l-e.x,e.height=u-e.y},r})(),ue=$b;var Qb=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof t=="function"&&(n=i,i=t,t=null),!i||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===i)return this;var l={h:i,query:t,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=o[e].length-1,f=o[e][u];return f&&f.callAtLast?o[e].splice(u,0,l):o[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],o=0,a=i[e].length;o<a;o++)i[e][o].h!==t&&n.push(i[e][o]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],o=this._$eventProcessor;if(n)for(var a=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(e,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],o=this._$eventProcessor;if(n)for(var a=t.length,s=t[a-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(o&&o.filter&&f.query!=null&&!o.filter(e,f.query)))switch(a){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},r})(),Ct=Qb;var jg={};function Gt(r,e){e=e||Tr;var t=jg[e];t||(t=jg[e]=new ri(500));var i=t.get(r);return i==null&&(i=tr.measureText(r,e).width,t.put(r,i)),i}function Zg(r,e,t,i){var n=Gt(r,e),o=jl(e),a=bo(0,n,t),s=mn(0,o,i),l=new ue(a,s,n,o);return l}function Xl(r,e,t,i){var n=((r||"")+"").split(`
|
|
2
2
|
`),o=n.length;if(o===1)return Zg(n[0],e,t,i);for(var a=new ue(0,0,0,0),s=0;s<n.length;s++){var l=Zg(n[s],e,t,i);s===0?a.copy(l):a.union(l)}return a}function bo(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function mn(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function jl(r){return Gt("\u56FD",r)}function Br(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Zl(r,e,t){var i=e.position||"inside",n=e.distance!=null?e.distance:5,o=t.height,a=t.width,s=o/2,l=t.x,u=t.y,f="left",c="top";if(i instanceof Array)l+=Br(i[0],t.width),u+=Br(i[1],t.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+a,u+=s,c="middle";break;case"top":l+=a/2,u-=n,f="center",c="bottom";break;case"bottom":l+=a/2,u+=o+n,f="center";break;case"inside":l+=a/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=a-n,u+=s,f="right",c="middle";break;case"insideTop":l+=a/2,u+=n,f="center";break;case"insideBottom":l+=a/2,u+=o-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=a-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=o-n,c="bottom";break;case"insideBottomRight":l+=a-n,u+=o-n,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Kg=1;Q.hasGlobalWindow&&(Kg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var gn=Kg,Ia=.4,Aa="#333",Pa="#ccc",$g="#eee";var ot=1,yn=2,Mi=4;var Gc="__zr_normal__",Yc=fn.concat(["ignore"]),eT=zt(fn,function(r,e){return r[e]=!0,r},{ignore:!1}),To={},tT=new ue(0,0,0,0),jc=(function(){function r(e){this.id=xl(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,o=t.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=n?this:null;var u=!1;if(o.copyTransform(t),i.position!=null){var f=tT;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(To,i,f):Zl(To,i,f),o.x=To.x,o.y=To.y,a=To.align,s=To.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var d=void 0,h=void 0;c==="center"?(d=f.width*.5,h=f.height*.5):(d=Br(c[0],f.width),h=Br(c[1],f.height)),u=!0,o.originX=-o.x+d+(n?0:f.x),o.originY=-o.y+h+(n?0:f.y)}}i.rotation!=null&&(o.rotation=i.rotation);var p=i.offset;p&&(o.x+=p[0],o.y+=p[1],u||(o.originX=-p[0],o.originY=-p[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=i.insideFill,y=i.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=i.outsideFill,y=i.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==v.fill||y!==v.stroke||_!==v.autoStroke||a!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=m,v.stroke=y,v.autoStroke=_,v.align=a,v.verticalAlign=s,t.setDefaultTextStyle(v)),t.__dirty|=ot,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Pa:Aa},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&Ti(t);i||(i=[255,255,255,1]);for(var n=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*n+(o?0:255)*(1-n);return i[3]=1,Fc(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},P(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(B(e))for(var i=e,n=ye(i),o=0;o<n.length;o++){var a=n[o];this.attrKV(a,e[a])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],o=n.__fromStateTransition;if(!(n.getLoop()||o&&o!==Gc)){var a=n.targetName,s=a?t[a]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Yc)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var n=0;n<i.length;n++){var o=i[n];e[o]!=null&&!(o in t)&&(t[o]=this[o])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Gc,!1,e)},r.prototype.useState=function(e,t,i,n){var o=e===Gc,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(he(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!o){ho("State "+e+" not exists.");return}o||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,t,i,f),d&&d.useState(e,t,i,f),o?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var n=[],o=this.currentStates,a=e.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(e[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[a-1],d=!!(c&&c.hoverLayer||i);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(e,t,d),v&&v.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=he(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var n=this.currentStates.slice(),o=he(n,e),a=he(n,t)>=0;o>=0?a?n.splice(o,1):n[o]=t:i&&!a&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,n=0;n<e.length;n++){var o=e[n];P(t,o),o.textConfig&&(i=i||{},P(i,o.textConfig))}return i&&(t.textConfig=i),t},r.prototype._applyStateObj=function(e,t,i,n,o,a){var s=!(t&&n);t&&t.textConfig?(this.textConfig=P({},n?this.textConfig:i.textConfig),P(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Yc.length;f++){var c=Yc[f],d=o&&eT[c];t&&t[c]!=null?d?(u=!0,l[c]=t[c]):this[c]=t[c]:s&&i[c]!=null&&(d?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!o)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||i)[p]:t||i)}u&&this._transitionState(e,l,a)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new cn,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),P(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ot;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=e),i&&(i.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,i){var n=e?this[e]:this,o=new Ea(n,t,i);return e&&(o.targetName=e),this.addAnimator(o,e),o},r.prototype.addAnimator=function(e,t){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var o=n.animators,a=he(o,e);a>=0&&o.splice(a,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,n=i.length,o=[],a=0;a<n;a++){var s=i[a];!e||e===s.scope?s.stop(t):o.push(s)}return this.animators=o,this},r.prototype.animateTo=function(e,t,i){qc(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){qc(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,n){for(var o=qc(this,t,i,n),a=0;a<o.length;a++)o[a].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=ot;var t={};function i(o,a,s){t[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),t[o+a+s]=!0)}function n(o,a,s,l){Object.defineProperty(e,o,{get:function(){if(!this[a]){var f=this[a]=[];u(this,f)}return this[a]},set:function(f){this[s]=f[0],this[l]=f[1],this[a]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(d){f[s]=d}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(d){f[l]=d}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();kt(jc,Ct);kt(jc,cn);function qc(r,e,t,i,n){t=t||{};var o=[];Qg(r,"",r,e,t,i,o,n);var a=o.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},c=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&t.during&&o[0].during(function(p,g){t.during(g)});for(var d=0;d<o.length;d++){var h=o[d];f&&h.done(f),c&&h.aborted(c),t.force&&h.duration(t.duration),h.start(t.easing)}return o}function Xc(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function rT(r){return nt(r[0])}function iT(r,e,t){if(nt(e[t]))if(nt(r[t])||(r[t]=[]),je(e[t])){var i=e[t].length;r[t].length!==i&&(r[t]=new e[t].constructor(i),Xc(r[t],e[t],i))}else{var n=e[t],o=r[t],a=n.length;if(rT(n))for(var s=n[0].length,l=0;l<a;l++)o[l]?Xc(o[l],n[l],s):o[l]=Array.prototype.slice.call(n[l]);else Xc(o,n,a);o.length=n.length}else r[t]=e[t]}function nT(r,e){return r===e||nt(r)&&nt(e)&&oT(r,e)}function oT(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(r[i]!==e[i])return!1;return!0}function Qg(r,e,t,i,n,o,a,s){for(var l=ye(i),u=n.duration,f=n.delay,c=n.additive,d=n.setToFinal,h=!B(o),p=r.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=i[m];if(y!=null&&t[m]!=null&&(h||o[m]))if(B(y)&&!nt(y)&&!xi(y)){if(e){s||(t[m]=y,r.updateDuringAnimation(e));continue}Qg(r,m,t[m],y,n,o&&o[m],a,s)}else g.push(m);else s||(t[m]=y,r.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!c&&_)for(var x=0;x<p.length;x++){var C=p[x];if(C.targetName===e){var w=C.stopTracks(g);if(w){var b=he(p,C);p.splice(b,1)}}}if(n.force||(g=Ue(g,function(M){return!nT(i[M],t[M])}),_=g.length),_>0||n.force&&!a.length){var D=void 0,T=void 0,E=void 0;if(s){T={},d&&(D={});for(var x=0;x<_;x++){var m=g[x];T[m]=t[m],d?D[m]=i[m]:t[m]=i[m]}}else if(d){E={};for(var x=0;x<_;x++){var m=g[x];E[m]=Ma(t[m]),iT(t,i,m)}}var C=new Ea(t,!1,!1,c?Ue(p,function(R){return R.targetName===e}):null);C.targetName=e,n.scope&&(C.scope=n.scope),d&&D&&C.whenWithKeys(0,D,g),E&&C.whenWithKeys(0,E,g),C.whenWithKeys(u??500,s?T:i,g).delay(f||0),r.addAnimator(C,e),a.push(C)}}var Kl=jc;var Jg=(function(r){ee(e,r);function e(t){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===t)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var n=this._children,o=n.indexOf(i);o>=0&&(n.splice(o,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var n=he(this._children,t);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(t,i){var n=this._children,o=n[i];if(t&&t!==this&&t.parent!==this&&t!==o){n[i]=t,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,n=this._children,o=he(n,t);return o<0?this:(n.splice(o,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,n=0;n<t.length;n++){var o=t[n];i&&o.removeSelfFromZr(i),o.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var n=this._children,o=0;o<n.length;o++){var a=n[o];t.call(i,a,o)}return this},e.prototype.traverse=function(t,i){for(var n=0;n<this._children.length;n++){var o=this._children[n],a=t.call(i,o);o.isGroup&&!a&&o.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new ue(0,0,0,0),n=t||this._children,o=[],a=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(o);f?(ue.applyTransform(i,u,f),a=a||i.clone(),a.union(i)):(a=a||u.clone(),a.union(u))}}return a||i},e})(Kl);Jg.prototype.type="group";var bt=Jg;var aT=".",_n="___EC__COMPONENT__CONTAINER___",e0="___EC__EXTENDED_CLASS___";function Yt(r){var e={main:"",sub:""};if(r){var t=r.split(aT);e.main=t[0]||"",e.sub=t[1]||""}return e}function sT(r){St(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function t0(r){return!!(r&&r[e0])}function Do(r,e){r.$constructor=r,r.extend=function(t){var i=this,n;return lT(i)?n=(function(o){Ce(a,o);function a(){return o.apply(this,arguments)||this}return a})(i):(n=function(){(t.$constructor||i).apply(this,arguments)},Sl(n,this)),P(n.prototype,t),n[e0]=!0,n.extend=this.extend,n.superCall=fT,n.superApply=cT,n.superClass=i,n}}function lT(r){return j(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function $l(r,e){r.extend=e.extend}var uT=Math.round(Math.random()*10);function r0(r){var e=["__\0is_clz",uT++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function fT(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(r,t)}function cT(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Ei(r){var e={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){sT(n),i.prototype.type=n;var o=Yt(n);if(!o.sub)e[o.main]=i;else if(o.sub!==_n){var a=t(o);a[o.sub]=i}}return i},r.getClass=function(i,n,o){var a=e[i];if(a&&a[_n]&&(a=n?a[n]:null),o&&!a)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return a},r.getClassesByMainType=function(i){var n=Yt(i),o=[],a=e[n.main];return a&&a[_n]?S(a,function(s,l){l!==_n&&o.push(s)}):o.push(a),o},r.hasClass=function(i){var n=Yt(i);return!!e[n.main]},r.getAllClassMainTypes=function(){var i=[];return S(e,function(n,o){i.push(o)}),i},r.hasSubTypes=function(i){var n=Yt(i),o=e[n.main];return o&&o[_n]};function t(i){var n=e[i.main];return(!n||!n[_n])&&(n=e[i.main]={},n[_n]=!0),n}}function vt(r){throw new Error(r)}var hT=Math.round(Math.random()*10);function Ri(r){return[r||"",hT++].join("_")}function i0(r){var e={};r.registerSubTypeDefaulter=function(t,i){var n=Yt(t);e[n.main]=i},r.determineSubType=function(t,i){var n=i.type;if(!n){var o=Yt(t).main;r.hasSubTypes(t)&&e[o]&&(n=e[o](i))}return n}}function n0(r,e){r.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=t(a),f=u.graph,c=u.noEntryList,d={};for(S(o,function(y){d[y]=!0});c.length;){var h=c.pop(),p=f[h],g=!!d[h];g&&(s.call(l,h,p.originalDeps.slice()),delete d[h]),S(p.successor,g?m:v)}S(d,function(){var y="";throw new Error(y)});function v(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){d[y]=!0,v(y)}};function t(o){var a={},s=[];return S(o,function(l){var u=i(a,l),f=u.originalDeps=e(l),c=n(f,o);u.entryCount=c.length,u.entryCount===0&&s.push(l),S(c,function(d){he(u.predecessor,d)<0&&u.predecessor.push(d);var h=i(a,d);he(h.successor,d)<0&&h.successor.push(l)})}),{graph:a,noEntryList:s}}function i(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function n(o,a){var s=[];return S(o,function(l){he(a,l)>=0&&s.push(l)}),s}}var $c=(function(){function r(){this.group=new bt,this.uid=Ri("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){},r.prototype.updateLayout=function(e,t,i,n){},r.prototype.updateVisual=function(e,t,i,n){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Do($c);Ei($c);var rr=$c;function Wr(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(i,n,o){for(var a={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&he(n,l)>=0||o&&he(o,l)<0)){var u=i.getShallow(l,e);u!=null&&(a[r[s][0]]=u)}}return a}}var dT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],pT=Wr(dT),o0=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return pT(this,e,t)},r})();var Qc=new ri(50);function s0(r){if(typeof r=="string"){var e=Qc.get(r);return e&&e.image}else return r}function Jc(r,e,t,i,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var o=Qc.get(r),a={hostEl:t,cb:i,cbPayload:n};return o?(e=o.image,!Mo(e)&&o.pending.push(a)):(e=tr.loadImage(r,a0,a0),e.__zrImageSrc=r,Qc.put(r,e.__cachedImgObj={image:e,pending:[a]})),e}else return r;else return e}function a0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Mo(r){return r&&r.width&&r.height}var eh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function rh(r,e,t,i,n){var o={};return u0(o,r,e,t,i,n),o.text}function u0(r,e,t,i,n,o){if(!t){r.text="",r.isTruncated=!1;return}var a=(e+"").split(`
|
|
3
3
|
`);o=f0(t,i,n,o);for(var s=!1,l={},u=0,f=a.length;u<f;u++)c0(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;r.text=a.join(`
|
|
4
4
|
`),r.isTruncated=s}function f0(r,e,t,i){i=i||{};var n=P({},i);n.font=e,t=ie(t,"..."),n.maxIterations=ie(i.maxIterations,2);var o=n.minChar=ie(i.minChar,0);n.cnCharWidth=Gt("\u56FD",e);var a=n.ascCharWidth=Gt("a",e);n.placeholder=ie(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<o&&s>=a;l++)s-=a;var u=Gt(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function c0(r,e,t){var i=t.containerWidth,n=t.font,o=t.contentWidth;if(!i){r.textLine="",r.isTruncated=!1;return}var a=Gt(e,n);if(a<=i){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?mT(e,o,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*o/a):0;e=e.substr(0,l),a=Gt(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function mT(r,e,t,i){for(var n=0,o=0,a=r.length;o<a&&n<e;o++){var s=r.charCodeAt(o);n+=0<=s&&s<=127?t:i}return o}function h0(r,e){r!=null&&(r+="");var t=e.overflow,i=e.padding,n=e.font,o=t==="truncate",a=jl(n),s=ie(e.lineHeight,a),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,c=e.width,d;c!=null&&(t==="break"||t==="breakAll")?d=r?p0(r,e.font,c,t==="breakAll",0).lines:[]:d=r?r.split(`
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
<html lang="en" data-theme="codecharta" data-beasties-container>
|
|
3
3
|
<head>
|
|
4
4
|
<title>CodeCharta</title>
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
<!-- The sha256 allows Angular's critical-CSS handler onload="this.media='all'"; if the build changes it,
|
|
6
|
+
regenerate with: printf "%s" "<handler>" | openssl dgst -sha256 -binary | base64 -->
|
|
7
|
+
<meta charset="utf-8" http-equiv="Content-Security-Policy" content="default-src 'self';
|
|
8
|
+
script-src 'self' 'unsafe-eval' 'unsafe-hashes' 'sha256-MhtPZXr7+LpJUY5qtMutB+qWfQtMaPccfe7QXtCcEYc=';
|
|
9
|
+
style-src 'self' 'unsafe-inline';
|
|
10
|
+
img-src 'self' data: https://github.com https://user-images.githubusercontent.com https://github-production-user-asset-6210df.s3.amazonaws.com;">
|
|
7
11
|
<base href="./">
|
|
8
12
|
<link rel="icon" type="image/x-icon" href="codeCharta/assets/favicon.ico">
|
|
9
13
|
<style>@layer properties;@layer theme,base,components,utilities;@layer theme{:root{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-neutral-500:oklch(55.6% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary:#1b9cfc;--color-primary-content:#ffffff;--color-secondary:#0374c9;--color-secondary-content:#ffffff;--color-accent:#fc801b;--color-accent-content:#ffffff;--color-neutral:#3d4451;--color-neutral-content:#ffffff;--color-base-100:#ffffff;--color-base-200:#f9fafb;--color-base-300:#d1d5db;--color-base-content:#1f2937;--color-info:#3abff8;--color-info-content:#002b3d;--color-success:#36d399;--color-success-content:#003320;--color-warning:#fbbd23;--color-warning-content:#382800;--color-error:#f87272;--color-error-content:#470000;--animate-fade-in-delayed:fade-in .15s ease-out .2s both}}@layer base{*,:after,:before{box-sizing:border-box;margin:0;padding:0;border:0 solid}html{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings, normal);font-variation-settings:var(--default-font-variation-settings, normal);-webkit-tap-highlight-color:transparent}}@layer utilities{}:root{--cc-inspector-width:20rem;--wordCloudColorStart:#e6007e;--wordCloudColorEnd:#0030ff}@layer base{}@layer base{}@layer base{}@layer base{}@layer base{:root{--fx-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.34' numOctaves='4' stitchTiles='stitch'%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23a)' opacity='0.2'%3E%3C/rect%3E%3C/svg%3E")}}@layer base{:root{@supports (color: color-mix(in lab,red,red)){scrollbar-color:color-mix(in oklch,currentColor 35%,#0000) #0000}}}@layer base{@property --radialprogress{syntax:"<percentage>";inherits:true;initial-value:0%;}}@layer base{}@layer base{:root{@supports (color: color-mix(in lab,red,red)){--page-scroll-bg-on:linear-gradient(var(--root-bg, #0000), var(--root-bg, #0000)) color-mix(in srgb, var(--root-bg, #0000), oklch(0% 0 0) calc(var(--page-has-backdrop, 0) * 40%))}}}@layer base{:root{background:var(--page-scroll-bg, var(--root-bg));color:var(--color-base-content)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0;}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0;}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0;}@property --tw-rotate-x{syntax:"*";inherits:false;}@property --tw-rotate-y{syntax:"*";inherits:false;}@property --tw-rotate-z{syntax:"*";inherits:false;}@property --tw-skew-x{syntax:"*";inherits:false;}@property --tw-skew-y{syntax:"*";inherits:false;}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0;}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid;}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0;}@property --tw-gradient-position{syntax:"*";inherits:false;}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000;}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000;}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000;}@property --tw-gradient-stops{syntax:"*";inherits:false;}@property --tw-gradient-via-stops{syntax:"*";inherits:false;}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%;}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%;}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%;}@property --tw-leading{syntax:"*";inherits:false;}@property --tw-font-weight{syntax:"*";inherits:false;}@property --tw-tracking{syntax:"*";inherits:false;}@property --tw-ordinal{syntax:"*";inherits:false;}@property --tw-slashed-zero{syntax:"*";inherits:false;}@property --tw-numeric-figure{syntax:"*";inherits:false;}@property --tw-numeric-spacing{syntax:"*";inherits:false;}@property --tw-numeric-fraction{syntax:"*";inherits:false;}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-shadow-color{syntax:"*";inherits:false;}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-inset-shadow-color{syntax:"*";inherits:false;}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --tw-ring-color{syntax:"*";inherits:false;}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-inset-ring-color{syntax:"*";inherits:false;}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-ring-inset{syntax:"*";inherits:false;}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0px;}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff;}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid;}@property --tw-blur{syntax:"*";inherits:false;}@property --tw-brightness{syntax:"*";inherits:false;}@property --tw-contrast{syntax:"*";inherits:false;}@property --tw-grayscale{syntax:"*";inherits:false;}@property --tw-hue-rotate{syntax:"*";inherits:false;}@property --tw-invert{syntax:"*";inherits:false;}@property --tw-opacity{syntax:"*";inherits:false;}@property --tw-saturate{syntax:"*";inherits:false;}@property --tw-sepia{syntax:"*";inherits:false;}@property --tw-drop-shadow{syntax:"*";inherits:false;}@property --tw-drop-shadow-color{syntax:"*";inherits:false;}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --tw-drop-shadow-size{syntax:"*";inherits:false;}@property --tw-backdrop-blur{syntax:"*";inherits:false;}@property --tw-backdrop-brightness{syntax:"*";inherits:false;}@property --tw-backdrop-contrast{syntax:"*";inherits:false;}@property --tw-backdrop-grayscale{syntax:"*";inherits:false;}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false;}@property --tw-backdrop-invert{syntax:"*";inherits:false;}@property --tw-backdrop-opacity{syntax:"*";inherits:false;}@property --tw-backdrop-saturate{syntax:"*";inherits:false;}@property --tw-backdrop-sepia{syntax:"*";inherits:false;}@property --tw-duration{syntax:"*";inherits:false;}@property --tw-ease{syntax:"*";inherits:false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}:root{--fa-family-brands:"Font Awesome 7 Brands";--fa-font-brands:normal 400 1em/1 var(--fa-family-brands)}:root{--fa-family-classic:"Font Awesome 7 Free";--fa-font-regular:normal 400 1em/1 var(--fa-family-classic);--fa-style-family-classic:var(--fa-family-classic)}:root{--fa-family-classic:"Font Awesome 7 Free";--fa-font-solid:normal 900 1em/1 var(--fa-family-classic);--fa-style-family-classic:var(--fa-family-classic)}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}html,body{overflow-y:hidden;overflow-x:hidden;font-family:Roboto,Helvetica Neue,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;width:100%;height:100%;margin:0;padding:0}</style><link rel="stylesheet" href="styles-UC5AWXPD.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-UC5AWXPD.css"></noscript></head>
|
|
10
14
|
|
|
11
15
|
<body>
|
|
12
16
|
<cc-code-charta></cc-code-charta>
|
|
13
|
-
<link rel="modulepreload" href="chunk-
|
|
17
|
+
<link rel="modulepreload" href="chunk-6J2WBHT7.js"><script src="main-2QGIUNMN.js" type="module"></script></body>
|
|
14
18
|
</html>
|