@antv/infographic 0.1.1 → 0.1.2

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.
@@ -1,22 +1,22 @@
1
- (function(N,Vt){typeof exports=="object"&&typeof module!="undefined"?Vt(exports):typeof define=="function"&&define.amd?define(["exports"],Vt):(N=typeof globalThis!="undefined"?globalThis:N||self,Vt(N.AntVInfographic={}))})(this,(function(N){"use strict";var YS=Object.defineProperty,VS=Object.defineProperties;var qS=Object.getOwnPropertyDescriptors;var a1=Object.getOwnPropertySymbols;var GS=Object.prototype.hasOwnProperty,US=Object.prototype.propertyIsEnumerable;var Or=Math.pow,l1=(N,Vt,ae)=>Vt in N?YS(N,Vt,{enumerable:!0,configurable:!0,writable:!0,value:ae}):N[Vt]=ae,te=(N,Vt)=>{for(var ae in Vt||(Vt={}))GS.call(Vt,ae)&&l1(N,ae,Vt[ae]);if(a1)for(var ae of a1(Vt))US.call(Vt,ae)&&l1(N,ae,Vt[ae]);return N},se=(N,Vt)=>VS(N,qS(Vt));const ae={version:"0.1.1"},Po=new Map;function ol(t,e){Po.set(t,e)}function sl(t){return Po.get(t)}function c1(){return Array.from(Po.keys())}var h1=Object.defineProperty,al=Object.getOwnPropertySymbols,f1=Object.prototype.hasOwnProperty,u1=Object.prototype.propertyIsEnumerable,ll=(t,e,n)=>e in t?h1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d1=(t,e)=>{for(var n in e||(e={}))f1.call(e,n)&&ll(t,n,e[n]);if(al)for(var n of al(e))u1.call(e,n)&&ll(t,n,e[n]);return t};const p1={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},g1=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],cl={},m1="hierarchy-tree";for(const t of g1)for(const[e,n]of Object.entries(p1)){const r=`${m1}-${e}-${t}`;cl[r]={design:{structure:d1({type:"hierarchy-tree"},n),item:{type:t}}}}var y1=Object.defineProperty,hl=Object.getOwnPropertySymbols,_1=Object.prototype.hasOwnProperty,x1=Object.prototype.propertyIsEnumerable,fl=(t,e,n)=>e in t?y1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v1=(t,e)=>{for(var n in e||(e={}))_1.call(e,n)&&fl(t,n,e[n]);if(hl)for(var n of hl(e))x1.call(e,n)&&fl(t,n,e[n]);return t};const b1=v1({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20},items:[{type:"simple"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:t=>`● ${t}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}}},cl);Object.entries(b1).forEach(([t,e])=>{ol(t,e)});const yt=Symbol.for("@antv/infographic/Fragment");function f(t,e={}){return{type:t,props:e}}const S=f,Mo=Symbol.for("@antv/infographic/Defs");function _t(t){return{type:Mo,props:t}}function xt(t){var e,n,r,i;const{x:o=0,y:s=0,width:a=0,height:l=0}=t;return(e=t.cx)!=null||(t.cx=o+a/2),(n=t.cy)!=null||(t.cy=s+l/2),(r=t.rx)!=null||(t.rx=a/2),(i=t.ry)!=null||(t.ry=l/2),{type:"ellipse",props:t}}function W(t){const{x:e=0,y:n=0}=t;return(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`)),{type:"g",props:t}}var w1=Object.defineProperty,ul=Object.getOwnPropertySymbols,$1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable,dl=(t,e,n)=>e in t?w1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,M1=(t,e)=>{for(var n in e||(e={}))$1.call(e,n)&&dl(t,n,e[n]);if(ul)for(var n of ul(e))P1.call(e,n)&&dl(t,n,e[n]);return t};function ot(t){const{x:e,y:n}=t,r=M1({},t);return(e!==void 0||n!==void 0)&&(r.transform=`translate(${e!=null?e:0}, ${n!=null?n:0})`),{type:"path",props:r}}var O1=Object.defineProperty,C1=Object.defineProperties,S1=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,pl=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable,ml=(t,e,n)=>e in t?O1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I1=(t,e)=>{for(var n in e||(e={}))pl.call(e,n)&&ml(t,n,e[n]);if(Cr)for(var n of Cr(e))gl.call(e,n)&&ml(t,n,e[n]);return t},A1=(t,e)=>C1(t,S1(e)),E1=(t,e)=>{var n={};for(var r in t)pl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Cr)for(var r of Cr(t))e.indexOf(r)<0&&gl.call(t,r)&&(n[r]=t[r]);return n};function be(t){var e=t,{points:n=[]}=e,r=E1(e,["points"]);const{x:i,y:o}=r,s=n.map(({x:c,y:h})=>`${c},${h}`).join(" "),a=A1(I1({},r),{points:s});return(i!==void 0||o!==void 0)&&(a.transform=`translate(${i!=null?i:0}, ${o!=null?o:0})`),{type:"polygon",props:a}}function pt(t){return{type:"rect",props:t}}var k1=Object.defineProperty,T1=Object.defineProperties,z1=Object.getOwnPropertyDescriptors,Sr=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,_l=Object.prototype.propertyIsEnumerable,xl=(t,e,n)=>e in t?k1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ot=(t,e)=>{for(var n in e||(e={}))yl.call(e,n)&&xl(t,n,e[n]);if(Sr)for(var n of Sr(e))_l.call(e,n)&&xl(t,n,e[n]);return t},Ir=(t,e)=>T1(t,z1(e)),H1=(t,e)=>{var n={};for(var r in t)yl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Sr)for(var r of Sr(t))e.indexOf(r)<0&&_l.call(t,r)&&(n[r]=t[r]);return n};const R1={center:"middle",right:"end",left:"start"};function zt(t){const e=t,{id:n,x:r=0,y:i=0,width:o=0,height:s=0,alignHorizontal:a="left",alignVertical:l="top",children:c,fontSize:h=14,fontFamily:u,fontStyle:d,fontWeight:p,textDecoration:g,letterSpacing:y,wordSpacing:m,opacity:x,fill:_="black",lineHeight:v,wordWrap:b,backgroundColor:P="none",backgroundOpacity:w=1,backgroundRadius:$=0}=e,M=H1(e,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]),A=Object.entries(Ot(Ot(Ot(Ot({},v!==void 0&&{"line-height":v}),b!==void 0&&{"data-word-wrap":b}),o!==void 0&&{width:o}),s!==void 0&&{height:s})).reduce((H,[D,B])=>Ir(Ot({},H),{[D]:B}),{}),I=a==="center"?r+o/2:a==="right"?r+o:r,k=(()=>{if(l==="middle")return i+s/2;if(l==="bottom")return i+s;const H=+h,D=.88;if(v&&v>1){const T=H*v-H;return i+T/2+H*D}return i+H*D})(),E=()=>l==="middle"?"central":"baseline",L=Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ir(Ot(Ot(Ot(Ot(Ot(Ot({"data-element-type":"text"},I&&{x:I}),k&&{y:k}),o&&{width:o}),s&&{height:s}),r&&{"data-x":r}),i&&{"data-y":i}),{fill:_,fontSize:h,textAnchor:R1[a],dominantBaseline:E(),"data-text-alignment":`${a.toUpperCase()} ${l.toUpperCase()}`,children:c}),A),M),u&&{fontFamily:u}),d&&{fontStyle:d}),p&&{fontWeight:p}),g&&g!=="none"&&{textDecoration:g}),y&&{letterSpacing:y}),m&&{wordSpacing:m}),x!==void 0&&x!==1&&{opacity:x}),F=Ot(Ot(Ot(Ot({},r&&{x:r}),i&&{y:i}),o&&{width:o}),s&&{height:s}),z=Ot(Ot({},F),n&&{id:n});if(!(P&&P!=="none"))return{type:"text",props:Ot(Ot({},z),L)};const R=Ir(Ot({"data-element-type":"shape"},F),{fill:P,fillOpacity:w,rx:$,ry:$});return{type:"g",props:Ir(Ot({},z),{children:[{type:"rect",props:R},{type:"text",props:L}]})}}const Ln=Symbol.for("@antv/infographic/Fragment");function Ar(t,e={}){return{type:t,props:e}}function L1(t={}){return Ar(Ln,t)}const N1=Ar,D1=Ar;function j1(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.type===Ln}function vl(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&"type"in t}function Nn(t){return Dn(t).filter(vl)}function Dn(t,e=[]){var n;if(!t||typeof t=="boolean")return e;if(Array.isArray(t))t.forEach(r=>Dn(r,e));else if(j1(t)){const r=(n=t.props)==null?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(i=>{Dn(i,e)})}else e.push(t);return e}function Ct(t){return typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t)}const Er=()=>({x:0,y:0,width:0,height:0});function bl(t){if(!t||t.length===0)return Er();let e=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of t){const{x:s,y:a,width:l,height:c}=o,h=s+l,u=a+c;s<e&&(e=s),a<n&&(n=a),h>r&&(r=h),u>i&&(i=u)}return e===1/0||n===1/0||r===-1/0||i===-1/0?{x:0,y:0,width:0,height:0}:{x:e,y:n,width:Math.max(0,r-e),height:Math.max(0,i-n)}}function Z(t){var e,n,r,i;if(!t)return Er();if(Array.isArray(t)){const p=Nn(t);return Ye(p)}if(typeof t!="object")return Er();const{type:o,props:s={}}=t;if(Eo(t)){const p=Sl(t);return Z(p)}if(typeof o=="function"){const p=(e=s.x)!=null?e:0,g=(n=s.y)!=null?n:0,y=s.width,m=s.height;if(Ct(y)&&Ct(m))return{x:p,y:g,width:y,height:m};const x=o(s);if(!x)return{x:p,y:g,width:y!=null?y:0,height:m!=null?m:0};if(Array.isArray(x)){const _=Nn(x),v=Ye(_);if(Ct(y)&&Ct(m))return{x:p,y:g,width:y,height:m};const b=v.width!==0?v.width:y!=null?y:0,P=v.height!==0?v.height:m!=null?m:0;return{x:p+v.x,y:g+v.y,width:b,height:P}}if(vl(x)){const _=x,v=Z(_);if(F1(_,s))return v;const b=_.props&&Ct(_.props.width)&&Ct(_.props.height),$=wl(_).flatMap(C=>Nn(C)).length>0,M=_.props&&_.props.x===s.x&&_.props.y===s.y;if(b)return{x:M?v.x:p+v.x,y:M?v.y:g+v.y,width:v.width,height:v.height};if(Ct(y)&&Ct(m))return $?{x:M?v.x:p,y:M?v.y:g,width:y,height:m}:{x:M?v.x:p+v.x,y:M?v.y:g+v.y,width:y,height:m};const A=v.width!==0?v.width:y!=null?y:0,I=v.height!==0?v.height:m!=null?m:0;return{x:M?v.x:p+v.x,y:M?v.y:g+v.y,width:A,height:I}}return{x:p,y:g,width:y!=null?y:0,height:m!=null?m:0}}const a=(r=s.x)!=null?r:0,l=(i=s.y)!=null?i:0,c=Ct(s.width)?s.width:void 0,h=Ct(s.height)?s.height:void 0;if(Ct(c)&&Ct(h))return{x:a,y:l,width:c,height:h};const d=wl(t).flatMap(p=>Nn(p));if(d.length>0){const p=Ye(d);return{x:a+p.x,y:l+p.y,width:Ct(c)?c:p.width,height:Ct(h)?h:p.height}}return{x:a,y:l,width:c!=null?c:0,height:h!=null?h:0}}function Ye(t){if(!t||!Array.isArray(t)||t.length===0)return Er();const e=[];for(const n of t){const r=Nn(n);for(const i of r){const o=Z(i);o&&e.push(o)}}return bl(e)}function F1(t,e){if(!(t!=null&&t.props)||!e)return!1;const n=t.props;if(Ct(n.x)&&Ct(n.y)&&Ct(e.x)&&Ct(e.y)&&n.x===e.x&&n.y===e.y){const r=Ct(n.width)&&Ct(n.height),i=Ct(e.width)&&Ct(e.height);if(!r&&!i)return!0}return Ct(n.x)&&Ct(n.y)&&Ct(n.width)&&Ct(n.height)&&Ct(e.x)&&Ct(e.y)&&Ct(e.width)&&Ct(e.height)?n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height:!1}function wl(t){var e;const n=(e=t.props)==null?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function Oo(t){var e;return t==null||typeof t=="boolean"?[]:Array.isArray(t)?Dn(t):typeof t=="object"?Dn((e=t.props)==null?void 0:e.children):[t]}var B1=Object.defineProperty,kr=Object.getOwnPropertySymbols,$l=Object.prototype.hasOwnProperty,Pl=Object.prototype.propertyIsEnumerable,Ml=(t,e,n)=>e in t?B1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Co=(t,e)=>{for(var n in e||(e={}))$l.call(e,n)&&Ml(t,n,e[n]);if(kr)for(var n of kr(e))Pl.call(e,n)&&Ml(t,n,e[n]);return t},W1=(t,e)=>{var n={};for(var r in t)$l.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&kr)for(var r of kr(t))e.indexOf(r)<0&&Pl.call(t,r)&&(n[r]=t[r]);return n};const ze=(t,e)=>{const n=t,{type:r,props:i}=n,o=W1(n,["type","props"]);return Co({type:r,props:Co(Co({},i),e)},o)},Ol=()=>({defs:new Map});function So(t){const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(t).replace(/[&<>"']/g,n=>e[n])}const Cl={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};function X1(t){return Cl[t]?Cl[t]:t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const Io=new Map;function Ao(t){const e=Symbol("layout");return Io.set(e,t),r=>({type:e,props:r})}function Eo(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&typeof t.type=="symbol"&&Io.has(t.type)}function Sl(t,e=Ol()){const n=Io.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;const r=Oo(t).filter(i=>typeof i=="object");return n(r,t.props,e)}var Y1=Object.defineProperty,V1=Object.defineProperties,q1=Object.getOwnPropertyDescriptors,Tr=Object.getOwnPropertySymbols,Il=Object.prototype.hasOwnProperty,Al=Object.prototype.propertyIsEnumerable,El=(t,e,n)=>e in t?Y1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G1=(t,e)=>{for(var n in e||(e={}))Il.call(e,n)&&El(t,n,e[n]);if(Tr)for(var n of Tr(e))Al.call(e,n)&&El(t,n,e[n]);return t},U1=(t,e)=>V1(t,q1(e)),kl=(t,e)=>{var n={};for(var r in t)Il.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Tr)for(var r of Tr(t))e.indexOf(r)<0&&Al.call(t,r)&&(n[r]=t[r]);return n};function jn(t,e){if(t==null||typeof t=="boolean")return null;if(typeof t=="string"||typeof t=="number")return t;if(Array.isArray(t))return t.map(r=>jn(r,e)).filter(Boolean);if(Eo(t)){const r=Sl(t,e);return jn(r,e)}if(typeof t.type=="function"){const r=t.type(t.props);return jn(r,e)}const n=Oo(t).map(r=>jn(r,e)).filter(Boolean);return t.type===Ln?n:t.type===Mo?(n.forEach(r=>{typeof r=="object"&&r.props.id&&e.defs.set(r.props.id,r)}),null):n.length?ze(t,{children:n}):t}function Fn(t,e){if(t==null)return"";if(typeof t=="string")return So(t);if(typeof t=="number")return String(t);const{type:n,props:r}=t;if(!n)return"";const i=Oo(t);if(n===Ln)return i.map(l=>Fn(l)).filter(Boolean).join("");if(n===Mo)return"";if(typeof n=="function"||Eo(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=zl(r),s=i.map(l=>Fn(l)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function Tl(t,e={}){const n=Ol(),r=jn(t,n);if(!r)return"";const i=Array.isArray(r)?r.map(m=>Fn(m)).join(""):Fn(r),o=e,{x:s,y:a,width:l,height:c,style:h}=o,u=kl(o,["x","y","width","height","style"]),d=U1(G1({},u),{xmlns:"http://www.w3.org/2000/svg"});if(!d.viewBox)if(l&&c)d.viewBox=`${s!=null?s:0} ${a!=null?a:0} ${l!=null?l:0} ${c!=null?c:0}`;else{const m=Z(r);if(m){const{x,y:_,width:v,height:b}=m;d.viewBox=`${x} ${_} ${v} ${b}`}}const p=zl(d),g=Z1(h),y=n.defs.size?`<defs>${Array.from(n.defs.values()).map(m=>Fn(m)).join("")}</defs>`:"";return`<svg${p}${g}>${y}${i}</svg>`}function zl(t){if(!t)return"";const e=t,{children:n}=e,r=kl(e,["children"]);return Object.entries(r).filter(([,i])=>i!=null).map(([i,o])=>{const s=X1(i),a=typeof o=="string"?So(String(o)):String(o);return` ${s}="${a}"`}).join("")}function Z1(t){if(!t||Object.keys(t).length===0)return"";const e=Object.entries(t).map(([n,r])=>`${n.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}: ${r};`).join("");return` style="${So(e)}"`}var Q1=Object.defineProperty,zr=Object.getOwnPropertySymbols,Hl=Object.prototype.hasOwnProperty,Rl=Object.prototype.propertyIsEnumerable,Ll=(t,e,n)=>e in t?Q1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hr=(t,e)=>{for(var n in e||(e={}))Hl.call(e,n)&&Ll(t,n,e[n]);if(zr)for(var n of zr(e))Rl.call(e,n)&&Ll(t,n,e[n]);return t},Nl=(t,e)=>{var n={};for(var r in t)Hl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&zr)for(var r of zr(t))e.indexOf(r)<0&&Rl.call(t,r)&&(n[r]=t[r]);return n};const Y=t=>{const e=t,{indexes:n}=e,r=Nl(e,["indexes"]);return f(pt,Hr(Hr({},{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":"btn-add"}),r))},At=t=>{const e=t,{indexes:n}=e,r=Nl(e,["indexes"]);return f(pt,Hr(Hr({},{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":"btn-remove"}),r))};var K1=Object.defineProperty,Dl=Object.getOwnPropertySymbols,J1=Object.prototype.hasOwnProperty,tm=Object.prototype.propertyIsEnumerable,jl=(t,e,n)=>e in t?K1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,em=(t,e)=>{for(var n in e||(e={}))J1.call(e,n)&&jl(t,n,e[n]);if(Dl)for(var n of Dl(e))tm.call(e,n)&&jl(t,n,e[n]);return t};const gt=t=>f(W,em({"data-element-type":"btns-group",width:0,height:0},t)),Ht=()=>f(yt,{});var nm=Object.defineProperty,Rr=Object.getOwnPropertySymbols,Fl=Object.prototype.hasOwnProperty,Bl=Object.prototype.propertyIsEnumerable,Wl=(t,e,n)=>e in t?nm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ko=(t,e)=>{for(var n in e||(e={}))Fl.call(e,n)&&Wl(t,n,e[n]);if(Rr)for(var n of Rr(e))Bl.call(e,n)&&Wl(t,n,e[n]);return t},rm=(t,e)=>{var n={};for(var r in t)Fl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Rr)for(var r of Rr(t))e.indexOf(r)<0&&Bl.call(t,r)&&(n[r]=t[r]);return n};const Xl=t=>{var e=t,{indexes:n}=e,r=rm(e,["indexes"]);const o=ko(ko({},{fill:"lightgray"}),r);return n?(o["data-indexes"]=n,o["data-element-type"]="item-illus"):o["data-element-type"]="illus",f(pt,ko({},o))};var im=Object.defineProperty,om=Object.defineProperties,sm=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable,ql=(t,e,n)=>e in t?im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gl=(t,e)=>{for(var n in e||(e={}))Yl.call(e,n)&&ql(t,n,e[n]);if(Lr)for(var n of Lr(e))Vl.call(e,n)&&ql(t,n,e[n]);return t},am=(t,e)=>om(t,sm(e)),lm=(t,e)=>{var n={};for(var r in t)Yl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Lr)for(var r of Lr(t))e.indexOf(r)<0&&Vl.call(t,r)&&(n[r]=t[r]);return n};const Et=t=>{var e=t,{indexes:n,lineNumber:r=2,children:i}=e,o=lm(e,["indexes","lineNumber","children"]),s;if(!i)return null;const a=Gl({width:100,fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i},o);return(s=a.height)!=null||(a.height=Math.ceil(r*+a.lineHeight*+a.fontSize)),f(zt,am(Gl({},a),{"data-indexes":n,"data-element-type":"item-desc"}))};var cm=Object.defineProperty,hm=Object.defineProperties,fm=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,Ul=Object.prototype.hasOwnProperty,Zl=Object.prototype.propertyIsEnumerable,Ql=(t,e,n)=>e in t?cm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bn=(t,e)=>{for(var n in e||(e={}))Ul.call(e,n)&&Ql(t,n,e[n]);if(Nr)for(var n of Nr(e))Zl.call(e,n)&&Ql(t,n,e[n]);return t},Dr=(t,e)=>hm(t,fm(e)),Kl=(t,e)=>{var n={};for(var r in t)Ul.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Nr)for(var r of Nr(t))e.indexOf(r)<0&&Zl.call(t,r)&&(n[r]=t[r]);return n};const Gt=t=>{const e=t,{indexes:n,size:r=32}=e,i=Kl(e,["indexes","size"]),o=Bn({fill:"lightgray",width:r,height:r},i);return f(pt,Dr(Bn({},o),{"data-indexes":n,"data-element-type":"item-icon"}))},Ve=t=>{const e=t,{indexes:n,size:r=50,fill:i,colorBg:o="white"}=e,s=Kl(e,["indexes","size","fill","colorBg"]),a=r/Math.SQRT2*.9,l=(r-a)/2,c=Dr(Bn({fill:o},s),{x:l,y:l,width:a,height:a});return S(W,Dr(Bn({},s),{width:r,height:r,"data-element-type":"item-icon-group",children:[f(xt,{width:r,height:r,fill:i,"data-element-type":"shape"}),f(pt,Dr(Bn({},c),{"data-indexes":n,"data-element-type":"item-icon"}))]}))};var um=Object.defineProperty,dm=Object.defineProperties,pm=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,Jl=Object.prototype.hasOwnProperty,tc=Object.prototype.propertyIsEnumerable,ec=(t,e,n)=>e in t?um(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nc=(t,e)=>{for(var n in e||(e={}))Jl.call(e,n)&&ec(t,n,e[n]);if(jr)for(var n of jr(e))tc.call(e,n)&&ec(t,n,e[n]);return t},gm=(t,e)=>dm(t,pm(e)),mm=(t,e)=>{var n={};for(var r in t)Jl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&jr)for(var r of jr(t))e.indexOf(r)<0&&tc.call(t,r)&&(n[r]=t[r]);return n};const ft=t=>{var e=t,{indexes:n,children:r}=e,i=mm(e,["indexes","children"]),o;const s=nc({fontSize:18,fontWeight:"bold",fill:"#252525",width:100,lineHeight:1.4,children:r},i);return(o=s.height)!=null||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),f(zt,gm(nc({},s),{"data-indexes":n,"data-element-type":"item-label"}))};var ym=Object.defineProperty,rc=Object.getOwnPropertySymbols,_m=Object.prototype.hasOwnProperty,xm=Object.prototype.propertyIsEnumerable,ic=(t,e,n)=>e in t?ym(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vm=(t,e)=>{for(var n in e||(e={}))_m.call(e,n)&&ic(t,n,e[n]);if(rc)for(var n of rc(e))xm.call(e,n)&&ic(t,n,e[n]);return t};const vt=t=>f(W,vm({"data-element-type":"items-group"},t));var bm=Object.defineProperty,wm=Object.defineProperties,$m=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,ac=(t,e,n)=>e in t?bm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lc=(t,e)=>{for(var n in e||(e={}))oc.call(e,n)&&ac(t,n,e[n]);if(Fr)for(var n of Fr(e))sc.call(e,n)&&ac(t,n,e[n]);return t},Pm=(t,e)=>wm(t,$m(e)),Mm=(t,e)=>{var n={};for(var r in t)oc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Fr)for(var r of Fr(t))e.indexOf(r)<0&&sc.call(t,r)&&(n[r]=t[r]);return n};const Wn=t=>{var e=t,{indexes:n,value:r,formatter:i=l=>String(l)}=e,o=Mm(e,["indexes","value","formatter"]),s;const a=lc({width:100,fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i(r),"data-value":r},o);return(s=a.height)!=null||(a.height=Math.ceil(+a.lineHeight*+a.fontSize)),f(zt,Pm(lc({},a),{"data-indexes":n,"data-element-type":"item-value"}))};var Om=Object.defineProperty,cc=Object.getOwnPropertySymbols,Cm=Object.prototype.hasOwnProperty,Sm=Object.prototype.propertyIsEnumerable,hc=(t,e,n)=>e in t?Om(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Im=(t,e)=>{for(var n in e||(e={}))Cm.call(e,n)&&hc(t,n,e[n]);if(cc)for(var n of cc(e))Sm.call(e,n)&&hc(t,n,e[n]);return t};const Dt=t=>f(W,Im({"data-element-type":"shapes-group"},t));var Am=Object.defineProperty,Em=Object.defineProperties,km=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,uc=Object.prototype.propertyIsEnumerable,dc=(t,e,n)=>e in t?Am(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,To=(t,e)=>{for(var n in e||(e={}))fc.call(e,n)&&dc(t,n,e[n]);if(Br)for(var n of Br(e))uc.call(e,n)&&dc(t,n,e[n]);return t},Tm=(t,e)=>Em(t,km(e)),zm=(t,e)=>{var n={};for(var r in t)fc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Br)for(var r of Br(t))e.indexOf(r)<0&&uc.call(t,r)&&(n[r]=t[r]);return n};const hn=Ao((t,e)=>{var n=e,{horizontal:r,vertical:i}=n,o=zm(n,["horizontal","vertical"]),s,a;if(!t||t.length===0)return f(W,To({},o));const l=t.map(x=>Z(x)),c=o.width!==void 0,h=o.height!==void 0;let u=[...t];const d=Ye(t),p=c?o.width:d.width,g=h?o.height:d.height,y=c?o.x||0:d.x,m=h?o.y||0:d.y;if(u=t.map((x,_)=>{const v=l[_],b=To({},x.props);if(r)switch(r){case"left":b.x=y;break;case"center":b.x=y+(p-v.width)/2;break;case"right":b.x=y+p-v.width;break}else b.x=x.props.x||v.x;if(i)switch(i){case"top":b.y=m;break;case"middle":b.y=m+(g-v.height)/2;break;case"bottom":b.y=m+g-v.height;break}else b.y=x.props.y||v.y;return ze(x,b)}),!c||!h){const x=Ye(u);c||(s=o.width)!=null||(o.width=x.width),h||(a=o.height)!=null||(o.height=x.height)}return f(W,Tm(To({},o),{children:u}))});var Hm=Object.defineProperty,Rm=Object.defineProperties,Lm=Object.getOwnPropertyDescriptors,Wr=Object.getOwnPropertySymbols,pc=Object.prototype.hasOwnProperty,gc=Object.prototype.propertyIsEnumerable,mc=(t,e,n)=>e in t?Hm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fn=(t,e)=>{for(var n in e||(e={}))pc.call(e,n)&&mc(t,n,e[n]);if(Wr)for(var n of Wr(e))gc.call(e,n)&&mc(t,n,e[n]);return t},Nm=(t,e)=>Rm(t,Lm(e)),Dm=(t,e)=>{var n={};for(var r in t)pc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wr)for(var r of Wr(t))e.indexOf(r)<0&&gc.call(t,r)&&(n[r]=t[r]);return n};const it=Ao((t,e)=>{var n=e,{flexDirection:r="row",justifyContent:i="flex-start",alignItems:o="flex-start",alignContent:s="flex-start",flexWrap:a="nowrap",gap:l=0}=n,c=Dm(n,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]),h,u;if(!t||t.length===0)return f(W,fn({},c));const d=r==="row"||r==="row-reverse",p=r==="row-reverse"||r==="column-reverse",g=t.map(w=>Z(w)),y=c.width!==void 0&&c.height!==void 0,m=c.width||0,x=c.height||0,_=[];if(a==="wrap"&&y){let w=[],$=[],M=0;for(let A=0;A<t.length;A++){const I=t[A],C=g[A],k=d?C.width:C.height,E=d?m:x;w.length===0||M+l+k<=E?(w.push(I),$.push(C),M+=(w.length>1?l:0)+k):(_.push({children:w,bounds:$}),w=[I],$=[C],M=k)}w.length>0&&_.push({children:w,bounds:$})}else _.push({children:t,bounds:g});const v=[];let b=0;const P=[];if(_.forEach(w=>{const{children:$,bounds:M}=w,A=M.reduce((F,z,j)=>{const R=d?z.width:z.height;return F+R+(j>0?l:0)},0),I=Math.max(...M.map(F=>d?F.height:F.width));P.push(I);let C=0;const k=(d?m:x)-A;if(y)switch(i){case"flex-end":C=k;break;case"center":C=k/2;break;case"space-between":C=0;break;default:C=0;break}let E=l;y&&i==="space-between"&&$.length>1&&(E=k/($.length-1)+l);let L=C;$.forEach((F,z)=>{const j=M[z],R=d?j.width:j.height,H=d?j.height:j.width;let D=b;if(y)switch(o){case"flex-end":D=b+I-H;break;case"center":D=b+(I-H)/2;break;default:D=b;break}let B,T;d?(B=p?m-L-R:L,T=D):(B=D,T=p?x-L-R:L);const O=ze(F,{x:B,y:T});v.push(O),L+=R+E}),b+=I+l}),_.length>1&&y){const w=P.reduce((A,I)=>A+I,0)+(_.length-1)*l,$=(d?x:m)-w;let M=0;switch(s){case"flex-end":M=$;break;case"center":M=$/2;break;case"space-between":if(_.length>1){const A=$/(_.length-1);let I=0;_.forEach((C,k)=>{const E=_.slice(0,k).reduce((F,z)=>F+z.children.length,0),L=E+C.children.length;for(let F=E;F<L;F++){const z=v[F],j=fn({},z.props);d?j.y=(j.y||0)+I:j.x=(j.x||0)+I,v[F]=ze(z,j)}I+=P[k]+l+(k<_.length-1?A:0)});break}break;default:M=0;break}M!==0&&s!=="space-between"&&v.forEach((A,I)=>{const C=fn({},A.props);d?C.y=(C.y||0)+M:C.x=(C.x||0)+M,v[I]=ze(A,C)})}if(!y){if(o==="center"&&!d){const $=Math.max(...g.map(M=>M.width));v.forEach((M,A)=>{const I=g[A],C=($-I.width)/2,k=fn({},M.props);k.x=(k.x||0)+C,v[A]=ze(M,k)})}else if(o==="center"&&d){const $=Math.max(...g.map(M=>M.height));v.forEach((M,A)=>{const I=g[A],C=($-I.height)/2,k=fn({},M.props);k.y=(k.y||0)+C,v[A]=ze(M,k)})}const w=Ye(v);(h=c.width)!=null||(c.width=w.width),(u=c.height)!=null||(c.height=w.height)}return f(W,Nm(fn({},c),{children:v}))});var jm=Object.defineProperty,Fm=Object.defineProperties,Bm=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,Wm=Object.prototype.hasOwnProperty,Xm=Object.prototype.propertyIsEnumerable,_c=(t,e,n)=>e in t?jm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xr=(t,e)=>{for(var n in e||(e={}))Wm.call(e,n)&&_c(t,n,e[n]);if(yc)for(var n of yc(e))Xm.call(e,n)&&_c(t,n,e[n]);return t},xc=(t,e)=>Fm(t,Bm(e));const vc=t=>{const{x:e=0,y:n=0,width:r=720,alignHorizontal:i="center",title:o,desc:s,descLineNumber:a=2,themeColors:l}=t,c=u=>{const d={fontSize:24,fill:l.colorPrimaryText,width:r,height:32,lineHeight:1.4,alignHorizontal:i};return f(zt,xc(Xr(Xr({},d),u),{"data-element-type":"title",children:o}))},h=u=>{const d={fontSize:16,fill:l.colorTextSecondary,width:r,alignHorizontal:i,lineHeight:1.4,height:a*24};return f(zt,xc(Xr(Xr({},d),u),{"data-element-type":"desc",children:s}))};return!o&&!s?null:S(it,{flexDirection:"column",x:e,y:n,width:r,gap:8,children:[o&&f(c,{}),s&&f(h,{})]})};function Yr(t){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(t)}var Ym=/^\s+/,Vm=/\s+$/;function tt(t,e){if(t=t||"",e=e||{},t instanceof tt)return t;if(!(this instanceof tt))return new tt(t,e);var n=qm(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,r,i,o,s,a;return n=e.r/255,r=e.g/255,i=e.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*a},setAlpha:function(e){return this._a=Oc(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=wc(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=wc(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=bc(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=bc(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return $c(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return Qm(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Nt(this._r,255)*100)+"%",g:Math.round(Nt(this._g,255)*100)+"%",b:Math.round(Nt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Nt(this._r,255)*100)+"%, "+Math.round(Nt(this._g,255)*100)+"%, "+Math.round(Nt(this._b,255)*100)+"%)":"rgba("+Math.round(Nt(this._r,255)*100)+"%, "+Math.round(Nt(this._g,255)*100)+"%, "+Math.round(Nt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:c2[$c(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+Pc(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(e){var o=tt(e);r="#"+Pc(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return o?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return tt(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(e2,arguments)},brighten:function(){return this._applyModification(n2,arguments)},darken:function(){return this._applyModification(r2,arguments)},desaturate:function(){return this._applyModification(Km,arguments)},saturate:function(){return this._applyModification(Jm,arguments)},greyscale:function(){return this._applyModification(t2,arguments)},spin:function(){return this._applyModification(i2,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(a2,arguments)},complement:function(){return this._applyCombination(o2,arguments)},monochromatic:function(){return this._applyCombination(l2,arguments)},splitcomplement:function(){return this._applyCombination(s2,arguments)},triad:function(){return this._applyCombination(Mc,[3])},tetrad:function(){return this._applyCombination(Mc,[4])}},tt.fromRatio=function(t,e){if(Yr(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Xn(t[r]));t=n}return tt(t,e)};function qm(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof t=="string"&&(t=d2(t)),Yr(t)=="object"&&(Ce(t.r)&&Ce(t.g)&&Ce(t.b)?(e=Gm(t.r,t.g,t.b),s=!0,a=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ce(t.h)&&Ce(t.s)&&Ce(t.v)?(r=Xn(t.s),i=Xn(t.v),e=Zm(t.h,r,i),s=!0,a="hsv"):Ce(t.h)&&Ce(t.s)&&Ce(t.l)&&(r=Xn(t.s),o=Xn(t.l),e=Um(t.h,r,o),s=!0,a="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=Oc(n),{ok:s,format:t.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function Gm(t,e,n){return{r:Nt(t,255)*255,g:Nt(e,255)*255,b:Nt(n,255)*255}}function bc(t,e,n){t=Nt(t,255),e=Nt(e,255),n=Nt(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o,s,a=(r+i)/2;if(r==i)o=s=0;else{var l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,l:a}}function Um(t,e,n){var r,i,o;t=Nt(t,360),e=Nt(e,100),n=Nt(n,100);function s(c,h,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?c+(h-c)*6*u:u<1/2?h:u<2/3?c+(h-c)*(2/3-u)*6:c}if(e===0)r=i=o=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=s(l,a,t+1/3),i=s(l,a,t),o=s(l,a,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function wc(t,e,n){t=Nt(t,255),e=Nt(e,255),n=Nt(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o,s,a=r,l=r-i;if(s=r===0?0:l/r,r==i)o=0;else{switch(r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,v:a}}function Zm(t,e,n){t=Nt(t,360)*6,e=Nt(e,100),n=Nt(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),s=n*(1-i*e),a=n*(1-(1-i)*e),l=r%6,c=[n,s,o,o,a,n][l],h=[a,n,n,s,o,o][l],u=[o,o,a,n,n,s][l];return{r:c*255,g:h*255,b:u*255}}function $c(t,e,n,r){var i=[ue(Math.round(t).toString(16)),ue(Math.round(e).toString(16)),ue(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Qm(t,e,n,r,i){var o=[ue(Math.round(t).toString(16)),ue(Math.round(e).toString(16)),ue(Math.round(n).toString(16)),ue(Cc(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Pc(t,e,n,r){var i=[ue(Cc(r)),ue(Math.round(t).toString(16)),ue(Math.round(e).toString(16)),ue(Math.round(n).toString(16))];return i.join("")}tt.equals=function(t,e){return!t||!e?!1:tt(t).toRgbString()==tt(e).toRgbString()},tt.random=function(){return tt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Km(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.s-=e/100,n.s=Vr(n.s),tt(n)}function Jm(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.s+=e/100,n.s=Vr(n.s),tt(n)}function t2(t){return tt(t).desaturate(100)}function e2(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.l+=e/100,n.l=Vr(n.l),tt(n)}function n2(t,e){e=e===0?0:e||10;var n=tt(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),tt(n)}function r2(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.l-=e/100,n.l=Vr(n.l),tt(n)}function i2(t,e){var n=tt(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,tt(n)}function o2(t){var e=tt(t).toHsl();return e.h=(e.h+180)%360,tt(e)}function Mc(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=tt(t).toHsl(),r=[tt(t)],i=360/e,o=1;o<e;o++)r.push(tt({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function s2(t){var e=tt(t).toHsl(),n=e.h;return[tt(t),tt({h:(n+72)%360,s:e.s,l:e.l}),tt({h:(n+216)%360,s:e.s,l:e.l})]}function a2(t,e,n){e=e||6,n=n||30;var r=tt(t).toHsl(),i=360/n,o=[tt(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(tt(r));return o}function l2(t,e){e=e||6;for(var n=tt(t).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/e;e--;)s.push(tt({h:r,s:i,v:o})),o=(o+a)%1;return s}tt.mix=function(t,e,n){n=n===0?0:n||50;var r=tt(t).toRgb(),i=tt(e).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return tt(s)},tt.readability=function(t,e){var n=tt(t),r=tt(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},tt.isReadable=function(t,e,n){var r=tt.readability(t,e),i,o;switch(o=!1,i=p2(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},tt.mostReadable=function(t,e,n){var r=null,i=0,o,s,a,l;n=n||{},s=n.includeFallbackColors,a=n.level,l=n.size;for(var c=0;c<e.length;c++)o=tt.readability(t,e[c]),o>i&&(i=o,r=tt(e[c]));return tt.isReadable(t,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,tt.mostReadable(t,["#fff","#000"],n))};var zo=tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},c2=tt.hexNames=h2(zo);function h2(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function Oc(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Nt(t,e){f2(t)&&(t="100%");var n=u2(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Vr(t){return Math.min(1,Math.max(0,t))}function re(t){return parseInt(t,16)}function f2(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function u2(t){return typeof t=="string"&&t.indexOf("%")!=-1}function ue(t){return t.length==1?"0"+t:""+t}function Xn(t){return t<=1&&(t=t*100+"%"),t}function Cc(t){return Math.round(parseFloat(t)*255).toString(16)}function Sc(t){return re(t)/255}var de=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Ce(t){return!!de.CSS_UNIT.exec(t)}function d2(t){t=t.replace(Ym,"").replace(Vm,"").toLowerCase();var e=!1;if(zo[t])t=zo[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=de.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=de.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=de.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=de.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=de.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=de.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=de.hex8.exec(t))?{r:re(n[1]),g:re(n[2]),b:re(n[3]),a:Sc(n[4]),format:e?"name":"hex8"}:(n=de.hex6.exec(t))?{r:re(n[1]),g:re(n[2]),b:re(n[3]),format:e?"name":"hex"}:(n=de.hex4.exec(t))?{r:re(n[1]+""+n[1]),g:re(n[2]+""+n[2]),b:re(n[3]+""+n[3]),a:Sc(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=de.hex3.exec(t))?{r:re(n[1]+""+n[1]),g:re(n[2]+""+n[2]),b:re(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function p2(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}const Ic=(t,e)=>{if(typeof t=="number"){if(e===3)return{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|t&240)/255,b:(t&15|t<<4&240)/255};if(e===4)return{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|t&240)/255,alpha:(t&15|t<<4&240)/255};if(e===6)return{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(t&255)/255};if(e===8)return{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(t&255)/255}}},g2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},m2=t=>Ic(g2[t.toLowerCase()],6),y2=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,_2=t=>{let e;return(e=t.match(y2))?Ic(parseInt(e[1],16),e[1].length):void 0},He="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Yn=`${He}%`,Ho=`(?:${He}%|${He})`,x2=`(?:${He}(deg|grad|rad|turn)|${He})`,un="\\s*,\\s*",v2=new RegExp(`^rgba?\\(\\s*${He}${un}${He}${un}${He}\\s*(?:,\\s*${Ho}\\s*)?\\)$`),b2=new RegExp(`^rgba?\\(\\s*${Yn}${un}${Yn}${un}${Yn}\\s*(?:,\\s*${Ho}\\s*)?\\)$`),w2=t=>{let e={mode:"rgb"},n;if(n=t.match(v2))n[1]!==void 0&&(e.r=n[1]/255),n[2]!==void 0&&(e.g=n[2]/255),n[3]!==void 0&&(e.b=n[3]/255);else if(n=t.match(b2))n[1]!==void 0&&(e.r=n[1]/100),n[2]!==void 0&&(e.g=n[2]/100),n[3]!==void 0&&(e.b=n[3]/100);else return;return n[4]!==void 0?e.alpha=Math.max(0,Math.min(1,n[4]/100)):n[5]!==void 0&&(e.alpha=Math.max(0,Math.min(1,+n[5]))),e},$2=(t,e)=>t===void 0?void 0:typeof t!="object"?Se(t):t.mode!==void 0?t:e?se(te({},t),{mode:e}):void 0,Ro=(t="rgb")=>e=>(e=$2(e,t))!==void 0?e.mode===t?e:we[e.mode][t]?we[e.mode][t](e):t==="rgb"?we[e.mode].rgb(e):we.rgb[t](we[e.mode].rgb(e)):void 0,we={},Ac={},qr=[],Ec={},P2=t=>t,bt=t=>(we[t.mode]=te(te({},we[t.mode]),t.toMode),Object.keys(t.fromMode||{}).forEach(e=>{we[e]||(we[e]={}),we[e][t.mode]=t.fromMode[e]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(e=>{if(t.ranges[e]===void 0&&(t.ranges[e]=[0,1]),!t.interpolate[e])throw new Error(`Missing interpolator for: ${e}`);typeof t.interpolate[e]=="function"&&(t.interpolate[e]={use:t.interpolate[e]}),t.interpolate[e].fixup||(t.interpolate[e].fixup=P2)}),Ac[t.mode]=t,(t.parse||[]).forEach(e=>{O2(e,t.mode)}),Ro(t.mode)),M2=t=>Ac[t],O2=(t,e)=>{if(typeof t=="string"){if(!e)throw new Error("'mode' required when 'parser' is a string");Ec[t]=e}else typeof t=="function"&&qr.indexOf(t)<0&&qr.push(t)},Lo=/[^\x00-\x7F]|[a-zA-Z_]/,C2=/[^\x00-\x7F]|[-\w]/,G={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let st=0;function Gr(t){let e=t[st],n=t[st+1];return e==="-"||e==="+"?/\d/.test(n)||n==="."&&/\d/.test(t[st+2]):e==="."?/\d/.test(n):/\d/.test(e)}function No(t){if(st>=t.length)return!1;let e=t[st];if(Lo.test(e))return!0;if(e==="-"){if(t.length-st<2)return!1;let n=t[st+1];return!!(n==="-"||Lo.test(n))}return!1}const S2={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Vn(t){let e="";if((t[st]==="-"||t[st]==="+")&&(e+=t[st++]),e+=Ur(t),t[st]==="."&&/\d/.test(t[st+1])&&(e+=t[st++]+Ur(t)),(t[st]==="e"||t[st]==="E")&&((t[st+1]==="-"||t[st+1]==="+")&&/\d/.test(t[st+2])?e+=t[st++]+t[st++]+Ur(t):/\d/.test(t[st+1])&&(e+=t[st++]+Ur(t))),No(t)){let n=Zr(t);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:G.Hue,value:e*S2[n]}:void 0}return t[st]==="%"?(st++,{type:G.Percentage,value:+e}):{type:G.Number,value:+e}}function Ur(t){let e="";for(;/\d/.test(t[st]);)e+=t[st++];return e}function Zr(t){let e="";for(;st<t.length&&C2.test(t[st]);)e+=t[st++];return e}function I2(t){let e=Zr(t);return t[st]==="("?(st++,{type:G.Function,value:e}):e==="none"?{type:G.None,value:void 0}:{type:G.Ident,value:e}}function A2(t=""){let e=t.trim(),n=[],r;for(st=0;st<e.length;){if(r=e[st++],r===`
1
+ (function(N,Vt){typeof exports=="object"&&typeof module!="undefined"?Vt(exports):typeof define=="function"&&define.amd?define(["exports"],Vt):(N=typeof globalThis!="undefined"?globalThis:N||self,Vt(N.AntVInfographic={}))})(this,(function(N){"use strict";var GS=Object.defineProperty,US=Object.defineProperties;var ZS=Object.getOwnPropertyDescriptors;var a1=Object.getOwnPropertySymbols;var QS=Object.prototype.hasOwnProperty,KS=Object.prototype.propertyIsEnumerable;var Or=Math.pow,l1=(N,Vt,ae)=>Vt in N?GS(N,Vt,{enumerable:!0,configurable:!0,writable:!0,value:ae}):N[Vt]=ae,te=(N,Vt)=>{for(var ae in Vt||(Vt={}))QS.call(Vt,ae)&&l1(N,ae,Vt[ae]);if(a1)for(var ae of a1(Vt))KS.call(Vt,ae)&&l1(N,ae,Vt[ae]);return N},se=(N,Vt)=>US(N,ZS(Vt));const ae={version:"0.1.2"},Po=new Map;function ol(t,e){Po.set(t,e)}function sl(t){return Po.get(t)}function c1(){return Array.from(Po.keys())}var h1=Object.defineProperty,al=Object.getOwnPropertySymbols,f1=Object.prototype.hasOwnProperty,u1=Object.prototype.propertyIsEnumerable,ll=(t,e,n)=>e in t?h1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d1=(t,e)=>{for(var n in e||(e={}))f1.call(e,n)&&ll(t,n,e[n]);if(al)for(var n of al(e))u1.call(e,n)&&ll(t,n,e[n]);return t};const p1={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},g1=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],cl={},m1="hierarchy-tree";for(const t of g1)for(const[e,n]of Object.entries(p1)){const r=`${m1}-${e}-${t}`;cl[r]={design:{structure:d1({type:"hierarchy-tree"},n),item:{type:t}}}}var y1=Object.defineProperty,hl=Object.getOwnPropertySymbols,_1=Object.prototype.hasOwnProperty,x1=Object.prototype.propertyIsEnumerable,fl=(t,e,n)=>e in t?y1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v1=(t,e)=>{for(var n in e||(e={}))_1.call(e,n)&&fl(t,n,e[n]);if(hl)for(var n of hl(e))x1.call(e,n)&&fl(t,n,e[n]);return t};const b1=v1({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20},items:[{type:"simple"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:t=>`● ${t}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}}},cl);Object.entries(b1).forEach(([t,e])=>{ol(t,e)});const yt=Symbol.for("@antv/infographic/Fragment");function f(t,e={}){return{type:t,props:e}}const S=f,Mo=Symbol.for("@antv/infographic/Defs");function _t(t){return{type:Mo,props:t}}function xt(t){var e,n,r,i;const{x:o=0,y:s=0,width:a=0,height:l=0}=t;return(e=t.cx)!=null||(t.cx=o+a/2),(n=t.cy)!=null||(t.cy=s+l/2),(r=t.rx)!=null||(t.rx=a/2),(i=t.ry)!=null||(t.ry=l/2),{type:"ellipse",props:t}}function W(t){const{x:e=0,y:n=0}=t;return(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`)),{type:"g",props:t}}var w1=Object.defineProperty,ul=Object.getOwnPropertySymbols,$1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable,dl=(t,e,n)=>e in t?w1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,M1=(t,e)=>{for(var n in e||(e={}))$1.call(e,n)&&dl(t,n,e[n]);if(ul)for(var n of ul(e))P1.call(e,n)&&dl(t,n,e[n]);return t};function ot(t){const{x:e,y:n}=t,r=M1({},t);return(e!==void 0||n!==void 0)&&(r.transform=`translate(${e!=null?e:0}, ${n!=null?n:0})`),{type:"path",props:r}}var O1=Object.defineProperty,C1=Object.defineProperties,S1=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,pl=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable,ml=(t,e,n)=>e in t?O1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I1=(t,e)=>{for(var n in e||(e={}))pl.call(e,n)&&ml(t,n,e[n]);if(Cr)for(var n of Cr(e))gl.call(e,n)&&ml(t,n,e[n]);return t},A1=(t,e)=>C1(t,S1(e)),E1=(t,e)=>{var n={};for(var r in t)pl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Cr)for(var r of Cr(t))e.indexOf(r)<0&&gl.call(t,r)&&(n[r]=t[r]);return n};function be(t){var e=t,{points:n=[]}=e,r=E1(e,["points"]);const{x:i,y:o}=r,s=n.map(({x:c,y:h})=>`${c},${h}`).join(" "),a=A1(I1({},r),{points:s});return(i!==void 0||o!==void 0)&&(a.transform=`translate(${i!=null?i:0}, ${o!=null?o:0})`),{type:"polygon",props:a}}function pt(t){return{type:"rect",props:t}}var k1=Object.defineProperty,T1=Object.defineProperties,z1=Object.getOwnPropertyDescriptors,Sr=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,_l=Object.prototype.propertyIsEnumerable,xl=(t,e,n)=>e in t?k1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ot=(t,e)=>{for(var n in e||(e={}))yl.call(e,n)&&xl(t,n,e[n]);if(Sr)for(var n of Sr(e))_l.call(e,n)&&xl(t,n,e[n]);return t},Ir=(t,e)=>T1(t,z1(e)),H1=(t,e)=>{var n={};for(var r in t)yl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Sr)for(var r of Sr(t))e.indexOf(r)<0&&_l.call(t,r)&&(n[r]=t[r]);return n};const R1={center:"middle",right:"end",left:"start"};function zt(t){const e=t,{id:n,x:r=0,y:i=0,width:o=0,height:s=0,alignHorizontal:a="left",alignVertical:l="top",children:c,fontSize:h=14,fontFamily:u,fontStyle:d,fontWeight:p,textDecoration:g,letterSpacing:y,wordSpacing:m,opacity:x,fill:_="black",lineHeight:v,wordWrap:b,backgroundColor:P="none",backgroundOpacity:w=1,backgroundRadius:$=0}=e,M=H1(e,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]),A=Object.entries(Ot(Ot(Ot(Ot({},v!==void 0&&{"line-height":v}),b!==void 0&&{"data-word-wrap":b}),o!==void 0&&{width:o}),s!==void 0&&{height:s})).reduce((H,[D,B])=>Ir(Ot({},H),{[D]:B}),{}),I=a==="center"?r+o/2:a==="right"?r+o:r,k=(()=>{if(l==="middle")return i+s/2;if(l==="bottom")return i+s;const H=+h,D=.88;if(v&&v>1){const T=H*v-H;return i+T/2+H*D}return i+H*D})(),E=()=>l==="middle"?"central":"baseline",L=Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ir(Ot(Ot(Ot(Ot(Ot(Ot({"data-element-type":"text"},I&&{x:I}),k&&{y:k}),o&&{width:o}),s&&{height:s}),r&&{"data-x":r}),i&&{"data-y":i}),{fill:_,fontSize:h,textAnchor:R1[a],dominantBaseline:E(),"data-text-alignment":`${a.toUpperCase()} ${l.toUpperCase()}`,children:c}),A),M),u&&{fontFamily:u}),d&&{fontStyle:d}),p&&{fontWeight:p}),g&&g!=="none"&&{textDecoration:g}),y&&{letterSpacing:y}),m&&{wordSpacing:m}),x!==void 0&&x!==1&&{opacity:x}),F=Ot(Ot(Ot(Ot({},r&&{x:r}),i&&{y:i}),o&&{width:o}),s&&{height:s}),z=Ot(Ot({},F),n&&{id:n});if(!(P&&P!=="none"))return{type:"text",props:Ot(Ot({},z),L)};const R=Ir(Ot({"data-element-type":"shape"},F),{fill:P,fillOpacity:w,rx:$,ry:$});return{type:"g",props:Ir(Ot({},z),{children:[{type:"rect",props:R},{type:"text",props:L}]})}}const Ln=Symbol.for("@antv/infographic/Fragment");function Ar(t,e={}){return{type:t,props:e}}function L1(t={}){return Ar(Ln,t)}const N1=Ar,D1=Ar;function j1(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.type===Ln}function vl(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&"type"in t}function Nn(t){return Dn(t).filter(vl)}function Dn(t,e=[]){var n;if(!t||typeof t=="boolean")return e;if(Array.isArray(t))t.forEach(r=>Dn(r,e));else if(j1(t)){const r=(n=t.props)==null?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(i=>{Dn(i,e)})}else e.push(t);return e}function Ct(t){return typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t)}const Er=()=>({x:0,y:0,width:0,height:0});function bl(t){if(!t||t.length===0)return Er();let e=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of t){const{x:s,y:a,width:l,height:c}=o,h=s+l,u=a+c;s<e&&(e=s),a<n&&(n=a),h>r&&(r=h),u>i&&(i=u)}return e===1/0||n===1/0||r===-1/0||i===-1/0?{x:0,y:0,width:0,height:0}:{x:e,y:n,width:Math.max(0,r-e),height:Math.max(0,i-n)}}function Z(t){var e,n,r,i;if(!t)return Er();if(Array.isArray(t)){const p=Nn(t);return Ye(p)}if(typeof t!="object")return Er();const{type:o,props:s={}}=t;if(Eo(t)){const p=Sl(t);return Z(p)}if(typeof o=="function"){const p=(e=s.x)!=null?e:0,g=(n=s.y)!=null?n:0,y=s.width,m=s.height;if(Ct(y)&&Ct(m))return{x:p,y:g,width:y,height:m};const x=o(s);if(!x)return{x:p,y:g,width:y!=null?y:0,height:m!=null?m:0};if(Array.isArray(x)){const _=Nn(x),v=Ye(_);if(Ct(y)&&Ct(m))return{x:p,y:g,width:y,height:m};const b=v.width!==0?v.width:y!=null?y:0,P=v.height!==0?v.height:m!=null?m:0;return{x:p+v.x,y:g+v.y,width:b,height:P}}if(vl(x)){const _=x,v=Z(_);if(F1(_,s))return v;const b=_.props&&Ct(_.props.width)&&Ct(_.props.height),$=wl(_).flatMap(C=>Nn(C)).length>0,M=_.props&&_.props.x===s.x&&_.props.y===s.y;if(b)return{x:M?v.x:p+v.x,y:M?v.y:g+v.y,width:v.width,height:v.height};if(Ct(y)&&Ct(m))return $?{x:M?v.x:p,y:M?v.y:g,width:y,height:m}:{x:M?v.x:p+v.x,y:M?v.y:g+v.y,width:y,height:m};const A=v.width!==0?v.width:y!=null?y:0,I=v.height!==0?v.height:m!=null?m:0;return{x:M?v.x:p+v.x,y:M?v.y:g+v.y,width:A,height:I}}return{x:p,y:g,width:y!=null?y:0,height:m!=null?m:0}}const a=(r=s.x)!=null?r:0,l=(i=s.y)!=null?i:0,c=Ct(s.width)?s.width:void 0,h=Ct(s.height)?s.height:void 0;if(Ct(c)&&Ct(h))return{x:a,y:l,width:c,height:h};const d=wl(t).flatMap(p=>Nn(p));if(d.length>0){const p=Ye(d);return{x:a+p.x,y:l+p.y,width:Ct(c)?c:p.width,height:Ct(h)?h:p.height}}return{x:a,y:l,width:c!=null?c:0,height:h!=null?h:0}}function Ye(t){if(!t||!Array.isArray(t)||t.length===0)return Er();const e=[];for(const n of t){const r=Nn(n);for(const i of r){const o=Z(i);o&&e.push(o)}}return bl(e)}function F1(t,e){if(!(t!=null&&t.props)||!e)return!1;const n=t.props;if(Ct(n.x)&&Ct(n.y)&&Ct(e.x)&&Ct(e.y)&&n.x===e.x&&n.y===e.y){const r=Ct(n.width)&&Ct(n.height),i=Ct(e.width)&&Ct(e.height);if(!r&&!i)return!0}return Ct(n.x)&&Ct(n.y)&&Ct(n.width)&&Ct(n.height)&&Ct(e.x)&&Ct(e.y)&&Ct(e.width)&&Ct(e.height)?n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height:!1}function wl(t){var e;const n=(e=t.props)==null?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function Oo(t){var e;return t==null||typeof t=="boolean"?[]:Array.isArray(t)?Dn(t):typeof t=="object"?Dn((e=t.props)==null?void 0:e.children):[t]}var B1=Object.defineProperty,kr=Object.getOwnPropertySymbols,$l=Object.prototype.hasOwnProperty,Pl=Object.prototype.propertyIsEnumerable,Ml=(t,e,n)=>e in t?B1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Co=(t,e)=>{for(var n in e||(e={}))$l.call(e,n)&&Ml(t,n,e[n]);if(kr)for(var n of kr(e))Pl.call(e,n)&&Ml(t,n,e[n]);return t},W1=(t,e)=>{var n={};for(var r in t)$l.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&kr)for(var r of kr(t))e.indexOf(r)<0&&Pl.call(t,r)&&(n[r]=t[r]);return n};const ze=(t,e)=>{const n=t,{type:r,props:i}=n,o=W1(n,["type","props"]);return Co({type:r,props:Co(Co({},i),e)},o)},Ol=()=>({defs:new Map});function So(t){const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(t).replace(/[&<>"']/g,n=>e[n])}const Cl={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};function X1(t){return Cl[t]?Cl[t]:t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const Io=new Map;function Ao(t){const e=Symbol("layout");return Io.set(e,t),r=>({type:e,props:r})}function Eo(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&typeof t.type=="symbol"&&Io.has(t.type)}function Sl(t,e=Ol()){const n=Io.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;const r=Oo(t).filter(i=>typeof i=="object");return n(r,t.props,e)}var Y1=Object.defineProperty,V1=Object.defineProperties,q1=Object.getOwnPropertyDescriptors,Tr=Object.getOwnPropertySymbols,Il=Object.prototype.hasOwnProperty,Al=Object.prototype.propertyIsEnumerable,El=(t,e,n)=>e in t?Y1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G1=(t,e)=>{for(var n in e||(e={}))Il.call(e,n)&&El(t,n,e[n]);if(Tr)for(var n of Tr(e))Al.call(e,n)&&El(t,n,e[n]);return t},U1=(t,e)=>V1(t,q1(e)),kl=(t,e)=>{var n={};for(var r in t)Il.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Tr)for(var r of Tr(t))e.indexOf(r)<0&&Al.call(t,r)&&(n[r]=t[r]);return n};function jn(t,e){if(t==null||typeof t=="boolean")return null;if(typeof t=="string"||typeof t=="number")return t;if(Array.isArray(t))return t.map(r=>jn(r,e)).filter(Boolean);if(Eo(t)){const r=Sl(t,e);return jn(r,e)}if(typeof t.type=="function"){const r=t.type(t.props);return jn(r,e)}const n=Oo(t).map(r=>jn(r,e)).filter(Boolean);return t.type===Ln?n:t.type===Mo?(n.forEach(r=>{typeof r=="object"&&r.props.id&&e.defs.set(r.props.id,r)}),null):n.length?ze(t,{children:n}):t}function Fn(t,e){if(t==null)return"";if(typeof t=="string")return So(t);if(typeof t=="number")return String(t);const{type:n,props:r}=t;if(!n)return"";const i=Oo(t);if(n===Ln)return i.map(l=>Fn(l)).filter(Boolean).join("");if(n===Mo)return"";if(typeof n=="function"||Eo(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=zl(r),s=i.map(l=>Fn(l)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function Tl(t,e={}){const n=Ol(),r=jn(t,n);if(!r)return"";const i=Array.isArray(r)?r.map(m=>Fn(m)).join(""):Fn(r),o=e,{x:s,y:a,width:l,height:c,style:h}=o,u=kl(o,["x","y","width","height","style"]),d=U1(G1({},u),{xmlns:"http://www.w3.org/2000/svg"});if(!d.viewBox)if(l&&c)d.viewBox=`${s!=null?s:0} ${a!=null?a:0} ${l!=null?l:0} ${c!=null?c:0}`;else{const m=Z(r);if(m){const{x,y:_,width:v,height:b}=m;d.viewBox=`${x} ${_} ${v} ${b}`}}const p=zl(d),g=Z1(h),y=n.defs.size?`<defs>${Array.from(n.defs.values()).map(m=>Fn(m)).join("")}</defs>`:"";return`<svg${p}${g}>${y}${i}</svg>`}function zl(t){if(!t)return"";const e=t,{children:n}=e,r=kl(e,["children"]);return Object.entries(r).filter(([,i])=>i!=null).map(([i,o])=>{const s=X1(i),a=typeof o=="string"?So(String(o)):String(o);return` ${s}="${a}"`}).join("")}function Z1(t){if(!t||Object.keys(t).length===0)return"";const e=Object.entries(t).map(([n,r])=>`${n.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}: ${r};`).join("");return` style="${So(e)}"`}var Q1=Object.defineProperty,zr=Object.getOwnPropertySymbols,Hl=Object.prototype.hasOwnProperty,Rl=Object.prototype.propertyIsEnumerable,Ll=(t,e,n)=>e in t?Q1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hr=(t,e)=>{for(var n in e||(e={}))Hl.call(e,n)&&Ll(t,n,e[n]);if(zr)for(var n of zr(e))Rl.call(e,n)&&Ll(t,n,e[n]);return t},Nl=(t,e)=>{var n={};for(var r in t)Hl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&zr)for(var r of zr(t))e.indexOf(r)<0&&Rl.call(t,r)&&(n[r]=t[r]);return n};const Y=t=>{const e=t,{indexes:n}=e,r=Nl(e,["indexes"]);return f(pt,Hr(Hr({},{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":"btn-add"}),r))},At=t=>{const e=t,{indexes:n}=e,r=Nl(e,["indexes"]);return f(pt,Hr(Hr({},{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":"btn-remove"}),r))};var K1=Object.defineProperty,J1=Object.defineProperties,tm=Object.getOwnPropertyDescriptors,Dl=Object.getOwnPropertySymbols,em=Object.prototype.hasOwnProperty,nm=Object.prototype.propertyIsEnumerable,jl=(t,e,n)=>e in t?K1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rm=(t,e)=>{for(var n in e||(e={}))em.call(e,n)&&jl(t,n,e[n]);if(Dl)for(var n of Dl(e))nm.call(e,n)&&jl(t,n,e[n]);return t},im=(t,e)=>J1(t,tm(e));const gt=t=>f(W,im(rm({"data-element-type":"btns-group",width:0,height:0},t),{display:"none"})),Ht=()=>f(yt,{});var om=Object.defineProperty,Rr=Object.getOwnPropertySymbols,Fl=Object.prototype.hasOwnProperty,Bl=Object.prototype.propertyIsEnumerable,Wl=(t,e,n)=>e in t?om(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ko=(t,e)=>{for(var n in e||(e={}))Fl.call(e,n)&&Wl(t,n,e[n]);if(Rr)for(var n of Rr(e))Bl.call(e,n)&&Wl(t,n,e[n]);return t},sm=(t,e)=>{var n={};for(var r in t)Fl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Rr)for(var r of Rr(t))e.indexOf(r)<0&&Bl.call(t,r)&&(n[r]=t[r]);return n};const Xl=t=>{var e=t,{indexes:n}=e,r=sm(e,["indexes"]);const o=ko(ko({},{fill:"lightgray"}),r);return n?(o["data-indexes"]=n,o["data-element-type"]="item-illus"):o["data-element-type"]="illus",f(pt,ko({},o))};var am=Object.defineProperty,lm=Object.defineProperties,cm=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable,ql=(t,e,n)=>e in t?am(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gl=(t,e)=>{for(var n in e||(e={}))Yl.call(e,n)&&ql(t,n,e[n]);if(Lr)for(var n of Lr(e))Vl.call(e,n)&&ql(t,n,e[n]);return t},hm=(t,e)=>lm(t,cm(e)),fm=(t,e)=>{var n={};for(var r in t)Yl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Lr)for(var r of Lr(t))e.indexOf(r)<0&&Vl.call(t,r)&&(n[r]=t[r]);return n};const Et=t=>{var e=t,{indexes:n,lineNumber:r=2,children:i}=e,o=fm(e,["indexes","lineNumber","children"]),s;if(!i)return null;const a=Gl({width:100,fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i},o);return(s=a.height)!=null||(a.height=Math.ceil(r*+a.lineHeight*+a.fontSize)),f(zt,hm(Gl({},a),{"data-indexes":n,"data-element-type":"item-desc"}))};var um=Object.defineProperty,dm=Object.defineProperties,pm=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,Ul=Object.prototype.hasOwnProperty,Zl=Object.prototype.propertyIsEnumerable,Ql=(t,e,n)=>e in t?um(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bn=(t,e)=>{for(var n in e||(e={}))Ul.call(e,n)&&Ql(t,n,e[n]);if(Nr)for(var n of Nr(e))Zl.call(e,n)&&Ql(t,n,e[n]);return t},Dr=(t,e)=>dm(t,pm(e)),Kl=(t,e)=>{var n={};for(var r in t)Ul.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Nr)for(var r of Nr(t))e.indexOf(r)<0&&Zl.call(t,r)&&(n[r]=t[r]);return n};const Gt=t=>{const e=t,{indexes:n,size:r=32}=e,i=Kl(e,["indexes","size"]),o=Bn({fill:"lightgray",width:r,height:r},i);return f(pt,Dr(Bn({},o),{"data-indexes":n,"data-element-type":"item-icon"}))},Ve=t=>{const e=t,{indexes:n,size:r=50,fill:i,colorBg:o="white"}=e,s=Kl(e,["indexes","size","fill","colorBg"]),a=r/Math.SQRT2*.9,l=(r-a)/2,c=Dr(Bn({fill:o},s),{x:l,y:l,width:a,height:a});return S(W,Dr(Bn({},s),{width:r,height:r,"data-element-type":"item-icon-group",children:[f(xt,{width:r,height:r,fill:i,"data-element-type":"shape"}),f(pt,Dr(Bn({},c),{"data-indexes":n,"data-element-type":"item-icon"}))]}))};var gm=Object.defineProperty,mm=Object.defineProperties,ym=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,Jl=Object.prototype.hasOwnProperty,tc=Object.prototype.propertyIsEnumerable,ec=(t,e,n)=>e in t?gm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nc=(t,e)=>{for(var n in e||(e={}))Jl.call(e,n)&&ec(t,n,e[n]);if(jr)for(var n of jr(e))tc.call(e,n)&&ec(t,n,e[n]);return t},_m=(t,e)=>mm(t,ym(e)),xm=(t,e)=>{var n={};for(var r in t)Jl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&jr)for(var r of jr(t))e.indexOf(r)<0&&tc.call(t,r)&&(n[r]=t[r]);return n};const ft=t=>{var e=t,{indexes:n,children:r}=e,i=xm(e,["indexes","children"]),o;const s=nc({fontSize:18,fontWeight:"bold",fill:"#252525",width:100,lineHeight:1.4,children:r},i);return(o=s.height)!=null||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),f(zt,_m(nc({},s),{"data-indexes":n,"data-element-type":"item-label"}))};var vm=Object.defineProperty,rc=Object.getOwnPropertySymbols,bm=Object.prototype.hasOwnProperty,wm=Object.prototype.propertyIsEnumerable,ic=(t,e,n)=>e in t?vm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$m=(t,e)=>{for(var n in e||(e={}))bm.call(e,n)&&ic(t,n,e[n]);if(rc)for(var n of rc(e))wm.call(e,n)&&ic(t,n,e[n]);return t};const vt=t=>f(W,$m({"data-element-type":"items-group"},t));var Pm=Object.defineProperty,Mm=Object.defineProperties,Om=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,ac=(t,e,n)=>e in t?Pm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lc=(t,e)=>{for(var n in e||(e={}))oc.call(e,n)&&ac(t,n,e[n]);if(Fr)for(var n of Fr(e))sc.call(e,n)&&ac(t,n,e[n]);return t},Cm=(t,e)=>Mm(t,Om(e)),Sm=(t,e)=>{var n={};for(var r in t)oc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Fr)for(var r of Fr(t))e.indexOf(r)<0&&sc.call(t,r)&&(n[r]=t[r]);return n};const Wn=t=>{var e=t,{indexes:n,value:r,formatter:i=l=>String(l)}=e,o=Sm(e,["indexes","value","formatter"]),s;const a=lc({width:100,fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i(r),"data-value":r},o);return(s=a.height)!=null||(a.height=Math.ceil(+a.lineHeight*+a.fontSize)),f(zt,Cm(lc({},a),{"data-indexes":n,"data-element-type":"item-value"}))};var Im=Object.defineProperty,cc=Object.getOwnPropertySymbols,Am=Object.prototype.hasOwnProperty,Em=Object.prototype.propertyIsEnumerable,hc=(t,e,n)=>e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,km=(t,e)=>{for(var n in e||(e={}))Am.call(e,n)&&hc(t,n,e[n]);if(cc)for(var n of cc(e))Em.call(e,n)&&hc(t,n,e[n]);return t};const Dt=t=>f(W,km({"data-element-type":"shapes-group"},t));var Tm=Object.defineProperty,zm=Object.defineProperties,Hm=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,uc=Object.prototype.propertyIsEnumerable,dc=(t,e,n)=>e in t?Tm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,To=(t,e)=>{for(var n in e||(e={}))fc.call(e,n)&&dc(t,n,e[n]);if(Br)for(var n of Br(e))uc.call(e,n)&&dc(t,n,e[n]);return t},Rm=(t,e)=>zm(t,Hm(e)),Lm=(t,e)=>{var n={};for(var r in t)fc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Br)for(var r of Br(t))e.indexOf(r)<0&&uc.call(t,r)&&(n[r]=t[r]);return n};const hn=Ao((t,e)=>{var n=e,{horizontal:r,vertical:i}=n,o=Lm(n,["horizontal","vertical"]),s,a;if(!t||t.length===0)return f(W,To({},o));const l=t.map(x=>Z(x)),c=o.width!==void 0,h=o.height!==void 0;let u=[...t];const d=Ye(t),p=c?o.width:d.width,g=h?o.height:d.height,y=c?o.x||0:d.x,m=h?o.y||0:d.y;if(u=t.map((x,_)=>{const v=l[_],b=To({},x.props);if(r)switch(r){case"left":b.x=y;break;case"center":b.x=y+(p-v.width)/2;break;case"right":b.x=y+p-v.width;break}else b.x=x.props.x||v.x;if(i)switch(i){case"top":b.y=m;break;case"middle":b.y=m+(g-v.height)/2;break;case"bottom":b.y=m+g-v.height;break}else b.y=x.props.y||v.y;return ze(x,b)}),!c||!h){const x=Ye(u);c||(s=o.width)!=null||(o.width=x.width),h||(a=o.height)!=null||(o.height=x.height)}return f(W,Rm(To({},o),{children:u}))});var Nm=Object.defineProperty,Dm=Object.defineProperties,jm=Object.getOwnPropertyDescriptors,Wr=Object.getOwnPropertySymbols,pc=Object.prototype.hasOwnProperty,gc=Object.prototype.propertyIsEnumerable,mc=(t,e,n)=>e in t?Nm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fn=(t,e)=>{for(var n in e||(e={}))pc.call(e,n)&&mc(t,n,e[n]);if(Wr)for(var n of Wr(e))gc.call(e,n)&&mc(t,n,e[n]);return t},Fm=(t,e)=>Dm(t,jm(e)),Bm=(t,e)=>{var n={};for(var r in t)pc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wr)for(var r of Wr(t))e.indexOf(r)<0&&gc.call(t,r)&&(n[r]=t[r]);return n};const it=Ao((t,e)=>{var n=e,{flexDirection:r="row",justifyContent:i="flex-start",alignItems:o="flex-start",alignContent:s="flex-start",flexWrap:a="nowrap",gap:l=0}=n,c=Bm(n,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]),h,u;if(!t||t.length===0)return f(W,fn({},c));const d=r==="row"||r==="row-reverse",p=r==="row-reverse"||r==="column-reverse",g=t.map(w=>Z(w)),y=c.width!==void 0&&c.height!==void 0,m=c.width||0,x=c.height||0,_=[];if(a==="wrap"&&y){let w=[],$=[],M=0;for(let A=0;A<t.length;A++){const I=t[A],C=g[A],k=d?C.width:C.height,E=d?m:x;w.length===0||M+l+k<=E?(w.push(I),$.push(C),M+=(w.length>1?l:0)+k):(_.push({children:w,bounds:$}),w=[I],$=[C],M=k)}w.length>0&&_.push({children:w,bounds:$})}else _.push({children:t,bounds:g});const v=[];let b=0;const P=[];if(_.forEach(w=>{const{children:$,bounds:M}=w,A=M.reduce((F,z,j)=>{const R=d?z.width:z.height;return F+R+(j>0?l:0)},0),I=Math.max(...M.map(F=>d?F.height:F.width));P.push(I);let C=0;const k=(d?m:x)-A;if(y)switch(i){case"flex-end":C=k;break;case"center":C=k/2;break;case"space-between":C=0;break;default:C=0;break}let E=l;y&&i==="space-between"&&$.length>1&&(E=k/($.length-1)+l);let L=C;$.forEach((F,z)=>{const j=M[z],R=d?j.width:j.height,H=d?j.height:j.width;let D=b;if(y)switch(o){case"flex-end":D=b+I-H;break;case"center":D=b+(I-H)/2;break;default:D=b;break}let B,T;d?(B=p?m-L-R:L,T=D):(B=D,T=p?x-L-R:L);const O=ze(F,{x:B,y:T});v.push(O),L+=R+E}),b+=I+l}),_.length>1&&y){const w=P.reduce((A,I)=>A+I,0)+(_.length-1)*l,$=(d?x:m)-w;let M=0;switch(s){case"flex-end":M=$;break;case"center":M=$/2;break;case"space-between":if(_.length>1){const A=$/(_.length-1);let I=0;_.forEach((C,k)=>{const E=_.slice(0,k).reduce((F,z)=>F+z.children.length,0),L=E+C.children.length;for(let F=E;F<L;F++){const z=v[F],j=fn({},z.props);d?j.y=(j.y||0)+I:j.x=(j.x||0)+I,v[F]=ze(z,j)}I+=P[k]+l+(k<_.length-1?A:0)});break}break;default:M=0;break}M!==0&&s!=="space-between"&&v.forEach((A,I)=>{const C=fn({},A.props);d?C.y=(C.y||0)+M:C.x=(C.x||0)+M,v[I]=ze(A,C)})}if(!y){if(o==="center"&&!d){const $=Math.max(...g.map(M=>M.width));v.forEach((M,A)=>{const I=g[A],C=($-I.width)/2,k=fn({},M.props);k.x=(k.x||0)+C,v[A]=ze(M,k)})}else if(o==="center"&&d){const $=Math.max(...g.map(M=>M.height));v.forEach((M,A)=>{const I=g[A],C=($-I.height)/2,k=fn({},M.props);k.y=(k.y||0)+C,v[A]=ze(M,k)})}const w=Ye(v);(h=c.width)!=null||(c.width=w.width),(u=c.height)!=null||(c.height=w.height)}return f(W,Fm(fn({},c),{children:v}))});var Wm=Object.defineProperty,Xm=Object.defineProperties,Ym=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,Vm=Object.prototype.hasOwnProperty,qm=Object.prototype.propertyIsEnumerable,_c=(t,e,n)=>e in t?Wm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xr=(t,e)=>{for(var n in e||(e={}))Vm.call(e,n)&&_c(t,n,e[n]);if(yc)for(var n of yc(e))qm.call(e,n)&&_c(t,n,e[n]);return t},xc=(t,e)=>Xm(t,Ym(e));const vc=t=>{const{x:e=0,y:n=0,width:r=720,alignHorizontal:i="center",title:o,desc:s,descLineNumber:a=2,themeColors:l}=t,c=u=>{const d={fontSize:24,fill:l.colorPrimaryText,width:r,height:32,lineHeight:1.4,alignHorizontal:i};return f(zt,xc(Xr(Xr({},d),u),{"data-element-type":"title",children:o}))},h=u=>{const d={fontSize:16,fill:l.colorTextSecondary,width:r,alignHorizontal:i,lineHeight:1.4,height:a*24};return f(zt,xc(Xr(Xr({},d),u),{"data-element-type":"desc",children:s}))};return!o&&!s?null:S(it,{flexDirection:"column",x:e,y:n,width:r,gap:8,children:[o&&f(c,{}),s&&f(h,{})]})};function Yr(t){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(t)}var Gm=/^\s+/,Um=/\s+$/;function tt(t,e){if(t=t||"",e=e||{},t instanceof tt)return t;if(!(this instanceof tt))return new tt(t,e);var n=Zm(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,r,i,o,s,a;return n=e.r/255,r=e.g/255,i=e.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*a},setAlpha:function(e){return this._a=Oc(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=wc(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=wc(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=bc(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=bc(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return $c(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return t2(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Nt(this._r,255)*100)+"%",g:Math.round(Nt(this._g,255)*100)+"%",b:Math.round(Nt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Nt(this._r,255)*100)+"%, "+Math.round(Nt(this._g,255)*100)+"%, "+Math.round(Nt(this._b,255)*100)+"%)":"rgba("+Math.round(Nt(this._r,255)*100)+"%, "+Math.round(Nt(this._g,255)*100)+"%, "+Math.round(Nt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:u2[$c(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+Pc(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(e){var o=tt(e);r="#"+Pc(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return o?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return tt(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(i2,arguments)},brighten:function(){return this._applyModification(o2,arguments)},darken:function(){return this._applyModification(s2,arguments)},desaturate:function(){return this._applyModification(e2,arguments)},saturate:function(){return this._applyModification(n2,arguments)},greyscale:function(){return this._applyModification(r2,arguments)},spin:function(){return this._applyModification(a2,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(h2,arguments)},complement:function(){return this._applyCombination(l2,arguments)},monochromatic:function(){return this._applyCombination(f2,arguments)},splitcomplement:function(){return this._applyCombination(c2,arguments)},triad:function(){return this._applyCombination(Mc,[3])},tetrad:function(){return this._applyCombination(Mc,[4])}},tt.fromRatio=function(t,e){if(Yr(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Xn(t[r]));t=n}return tt(t,e)};function Zm(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof t=="string"&&(t=m2(t)),Yr(t)=="object"&&(Ce(t.r)&&Ce(t.g)&&Ce(t.b)?(e=Qm(t.r,t.g,t.b),s=!0,a=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ce(t.h)&&Ce(t.s)&&Ce(t.v)?(r=Xn(t.s),i=Xn(t.v),e=Jm(t.h,r,i),s=!0,a="hsv"):Ce(t.h)&&Ce(t.s)&&Ce(t.l)&&(r=Xn(t.s),o=Xn(t.l),e=Km(t.h,r,o),s=!0,a="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=Oc(n),{ok:s,format:t.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function Qm(t,e,n){return{r:Nt(t,255)*255,g:Nt(e,255)*255,b:Nt(n,255)*255}}function bc(t,e,n){t=Nt(t,255),e=Nt(e,255),n=Nt(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o,s,a=(r+i)/2;if(r==i)o=s=0;else{var l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,l:a}}function Km(t,e,n){var r,i,o;t=Nt(t,360),e=Nt(e,100),n=Nt(n,100);function s(c,h,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?c+(h-c)*6*u:u<1/2?h:u<2/3?c+(h-c)*(2/3-u)*6:c}if(e===0)r=i=o=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=s(l,a,t+1/3),i=s(l,a,t),o=s(l,a,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function wc(t,e,n){t=Nt(t,255),e=Nt(e,255),n=Nt(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o,s,a=r,l=r-i;if(s=r===0?0:l/r,r==i)o=0;else{switch(r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,v:a}}function Jm(t,e,n){t=Nt(t,360)*6,e=Nt(e,100),n=Nt(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),s=n*(1-i*e),a=n*(1-(1-i)*e),l=r%6,c=[n,s,o,o,a,n][l],h=[a,n,n,s,o,o][l],u=[o,o,a,n,n,s][l];return{r:c*255,g:h*255,b:u*255}}function $c(t,e,n,r){var i=[ue(Math.round(t).toString(16)),ue(Math.round(e).toString(16)),ue(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function t2(t,e,n,r,i){var o=[ue(Math.round(t).toString(16)),ue(Math.round(e).toString(16)),ue(Math.round(n).toString(16)),ue(Cc(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Pc(t,e,n,r){var i=[ue(Cc(r)),ue(Math.round(t).toString(16)),ue(Math.round(e).toString(16)),ue(Math.round(n).toString(16))];return i.join("")}tt.equals=function(t,e){return!t||!e?!1:tt(t).toRgbString()==tt(e).toRgbString()},tt.random=function(){return tt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function e2(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.s-=e/100,n.s=Vr(n.s),tt(n)}function n2(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.s+=e/100,n.s=Vr(n.s),tt(n)}function r2(t){return tt(t).desaturate(100)}function i2(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.l+=e/100,n.l=Vr(n.l),tt(n)}function o2(t,e){e=e===0?0:e||10;var n=tt(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),tt(n)}function s2(t,e){e=e===0?0:e||10;var n=tt(t).toHsl();return n.l-=e/100,n.l=Vr(n.l),tt(n)}function a2(t,e){var n=tt(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,tt(n)}function l2(t){var e=tt(t).toHsl();return e.h=(e.h+180)%360,tt(e)}function Mc(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=tt(t).toHsl(),r=[tt(t)],i=360/e,o=1;o<e;o++)r.push(tt({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function c2(t){var e=tt(t).toHsl(),n=e.h;return[tt(t),tt({h:(n+72)%360,s:e.s,l:e.l}),tt({h:(n+216)%360,s:e.s,l:e.l})]}function h2(t,e,n){e=e||6,n=n||30;var r=tt(t).toHsl(),i=360/n,o=[tt(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(tt(r));return o}function f2(t,e){e=e||6;for(var n=tt(t).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/e;e--;)s.push(tt({h:r,s:i,v:o})),o=(o+a)%1;return s}tt.mix=function(t,e,n){n=n===0?0:n||50;var r=tt(t).toRgb(),i=tt(e).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return tt(s)},tt.readability=function(t,e){var n=tt(t),r=tt(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},tt.isReadable=function(t,e,n){var r=tt.readability(t,e),i,o;switch(o=!1,i=y2(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},tt.mostReadable=function(t,e,n){var r=null,i=0,o,s,a,l;n=n||{},s=n.includeFallbackColors,a=n.level,l=n.size;for(var c=0;c<e.length;c++)o=tt.readability(t,e[c]),o>i&&(i=o,r=tt(e[c]));return tt.isReadable(t,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,tt.mostReadable(t,["#fff","#000"],n))};var zo=tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},u2=tt.hexNames=d2(zo);function d2(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function Oc(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Nt(t,e){p2(t)&&(t="100%");var n=g2(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Vr(t){return Math.min(1,Math.max(0,t))}function re(t){return parseInt(t,16)}function p2(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function g2(t){return typeof t=="string"&&t.indexOf("%")!=-1}function ue(t){return t.length==1?"0"+t:""+t}function Xn(t){return t<=1&&(t=t*100+"%"),t}function Cc(t){return Math.round(parseFloat(t)*255).toString(16)}function Sc(t){return re(t)/255}var de=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Ce(t){return!!de.CSS_UNIT.exec(t)}function m2(t){t=t.replace(Gm,"").replace(Um,"").toLowerCase();var e=!1;if(zo[t])t=zo[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=de.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=de.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=de.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=de.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=de.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=de.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=de.hex8.exec(t))?{r:re(n[1]),g:re(n[2]),b:re(n[3]),a:Sc(n[4]),format:e?"name":"hex8"}:(n=de.hex6.exec(t))?{r:re(n[1]),g:re(n[2]),b:re(n[3]),format:e?"name":"hex"}:(n=de.hex4.exec(t))?{r:re(n[1]+""+n[1]),g:re(n[2]+""+n[2]),b:re(n[3]+""+n[3]),a:Sc(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=de.hex3.exec(t))?{r:re(n[1]+""+n[1]),g:re(n[2]+""+n[2]),b:re(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function y2(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}const Ic=(t,e)=>{if(typeof t=="number"){if(e===3)return{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|t&240)/255,b:(t&15|t<<4&240)/255};if(e===4)return{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|t&240)/255,alpha:(t&15|t<<4&240)/255};if(e===6)return{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(t&255)/255};if(e===8)return{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(t&255)/255}}},_2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},x2=t=>Ic(_2[t.toLowerCase()],6),v2=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,b2=t=>{let e;return(e=t.match(v2))?Ic(parseInt(e[1],16),e[1].length):void 0},He="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Yn=`${He}%`,Ho=`(?:${He}%|${He})`,w2=`(?:${He}(deg|grad|rad|turn)|${He})`,un="\\s*,\\s*",$2=new RegExp(`^rgba?\\(\\s*${He}${un}${He}${un}${He}\\s*(?:,\\s*${Ho}\\s*)?\\)$`),P2=new RegExp(`^rgba?\\(\\s*${Yn}${un}${Yn}${un}${Yn}\\s*(?:,\\s*${Ho}\\s*)?\\)$`),M2=t=>{let e={mode:"rgb"},n;if(n=t.match($2))n[1]!==void 0&&(e.r=n[1]/255),n[2]!==void 0&&(e.g=n[2]/255),n[3]!==void 0&&(e.b=n[3]/255);else if(n=t.match(P2))n[1]!==void 0&&(e.r=n[1]/100),n[2]!==void 0&&(e.g=n[2]/100),n[3]!==void 0&&(e.b=n[3]/100);else return;return n[4]!==void 0?e.alpha=Math.max(0,Math.min(1,n[4]/100)):n[5]!==void 0&&(e.alpha=Math.max(0,Math.min(1,+n[5]))),e},O2=(t,e)=>t===void 0?void 0:typeof t!="object"?Se(t):t.mode!==void 0?t:e?se(te({},t),{mode:e}):void 0,Ro=(t="rgb")=>e=>(e=O2(e,t))!==void 0?e.mode===t?e:we[e.mode][t]?we[e.mode][t](e):t==="rgb"?we[e.mode].rgb(e):we.rgb[t](we[e.mode].rgb(e)):void 0,we={},Ac={},qr=[],Ec={},C2=t=>t,bt=t=>(we[t.mode]=te(te({},we[t.mode]),t.toMode),Object.keys(t.fromMode||{}).forEach(e=>{we[e]||(we[e]={}),we[e][t.mode]=t.fromMode[e]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(e=>{if(t.ranges[e]===void 0&&(t.ranges[e]=[0,1]),!t.interpolate[e])throw new Error(`Missing interpolator for: ${e}`);typeof t.interpolate[e]=="function"&&(t.interpolate[e]={use:t.interpolate[e]}),t.interpolate[e].fixup||(t.interpolate[e].fixup=C2)}),Ac[t.mode]=t,(t.parse||[]).forEach(e=>{I2(e,t.mode)}),Ro(t.mode)),S2=t=>Ac[t],I2=(t,e)=>{if(typeof t=="string"){if(!e)throw new Error("'mode' required when 'parser' is a string");Ec[t]=e}else typeof t=="function"&&qr.indexOf(t)<0&&qr.push(t)},Lo=/[^\x00-\x7F]|[a-zA-Z_]/,A2=/[^\x00-\x7F]|[-\w]/,G={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let st=0;function Gr(t){let e=t[st],n=t[st+1];return e==="-"||e==="+"?/\d/.test(n)||n==="."&&/\d/.test(t[st+2]):e==="."?/\d/.test(n):/\d/.test(e)}function No(t){if(st>=t.length)return!1;let e=t[st];if(Lo.test(e))return!0;if(e==="-"){if(t.length-st<2)return!1;let n=t[st+1];return!!(n==="-"||Lo.test(n))}return!1}const E2={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Vn(t){let e="";if((t[st]==="-"||t[st]==="+")&&(e+=t[st++]),e+=Ur(t),t[st]==="."&&/\d/.test(t[st+1])&&(e+=t[st++]+Ur(t)),(t[st]==="e"||t[st]==="E")&&((t[st+1]==="-"||t[st+1]==="+")&&/\d/.test(t[st+2])?e+=t[st++]+t[st++]+Ur(t):/\d/.test(t[st+1])&&(e+=t[st++]+Ur(t))),No(t)){let n=Zr(t);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:G.Hue,value:e*E2[n]}:void 0}return t[st]==="%"?(st++,{type:G.Percentage,value:+e}):{type:G.Number,value:+e}}function Ur(t){let e="";for(;/\d/.test(t[st]);)e+=t[st++];return e}function Zr(t){let e="";for(;st<t.length&&A2.test(t[st]);)e+=t[st++];return e}function k2(t){let e=Zr(t);return t[st]==="("?(st++,{type:G.Function,value:e}):e==="none"?{type:G.None,value:void 0}:{type:G.Ident,value:e}}function T2(t=""){let e=t.trim(),n=[],r;for(st=0;st<e.length;){if(r=e[st++],r===`
2
2
  `||r===" "||r===" "){for(;st<e.length&&(e[st]===`
3
3
  `||e[st]===" "||e[st]===" ");)st++;continue}if(r===",")return;if(r===")"){n.push({type:G.ParenClose});continue}if(r==="+"){if(st--,Gr(e)){n.push(Vn(e));continue}return}if(r==="-"){if(st--,Gr(e)){n.push(Vn(e));continue}if(No(e)){n.push({type:G.Ident,value:Zr(e)});continue}return}if(r==="."){if(st--,Gr(e)){n.push(Vn(e));continue}return}if(r==="/"){for(;st<e.length&&(e[st]===`
4
- `||e[st]===" "||e[st]===" ");)st++;let i;if(Gr(e)&&(i=Vn(e),i.type!==G.Hue)){n.push({type:G.Alpha,value:i});continue}if(No(e)&&Zr(e)==="none"){n.push({type:G.Alpha,value:{type:G.None,value:void 0}});continue}return}if(/\d/.test(r)){st--,n.push(Vn(e));continue}if(Lo.test(r)){st--,n.push(I2(e));continue}return}return n}function E2(t){t._i=0;let e=t[t._i++];if(!e||e.type!==G.Function||e.value!=="color"||(e=t[t._i++],e.type!==G.Ident))return;const n=Ec[e.value];if(!n)return;const r={mode:n},i=kc(t,!1);if(!i)return;const o=M2(n).channels;for(let s=0,a,l;s<o.length;s++)a=i[s],l=o[s],a.type!==G.None&&(r[l]=a.type===G.Number?a.value:a.value/100,l==="alpha"&&(r[l]=Math.max(0,Math.min(1,r[l]))));return r}function kc(t,e){const n=[];let r;for(;t._i<t.length;){if(r=t[t._i++],r.type===G.None||r.type===G.Number||r.type===G.Alpha||r.type===G.Percentage||e&&r.type===G.Hue){n.push(r);continue}if(r.type===G.ParenClose){if(t._i<t.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==G.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:G.None,value:void 0}),n.every(i=>i.type!==G.Alpha)?n:void 0}}function k2(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==G.Function)return;let r=kc(t,e);if(r)return r.unshift(n.value),r}const Se=t=>{if(typeof t!="string")return;const e=A2(t),n=e?k2(e,!0):void 0;let r,i=0,o=qr.length;for(;i<o;)if((r=qr[i++](t,n))!==void 0)return r;return e?E2(e):void 0};function T2(t,e){if(!e||e[0]!=="rgb"&&e[0]!=="rgba")return;const n={mode:"rgb"},[,r,i,o,s]=e;if(!(r.type===G.Hue||i.type===G.Hue||o.type===G.Hue))return r.type!==G.None&&(n.r=r.type===G.Number?r.value/255:r.value/100),i.type!==G.None&&(n.g=i.type===G.Number?i.value/255:i.value/100),o.type!==G.None&&(n.b=o.type===G.Number?o.value/255:o.value/100),s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const z2=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,H2=(t,e,n)=>t+n*(e-t),R2=t=>{let e=[];for(let n=0;n<t.length-1;n++){let r=t[n],i=t[n+1];r===void 0&&i===void 0?e.push(void 0):r!==void 0&&i!==void 0?e.push([r,i]):e.push(r!==void 0?[r,r]:[i,i])}return e},J=(t=>e=>{let n=R2(e);return r=>{let i=r*n.length,o=r>=1?n.length-1:Math.max(Math.floor(i),0),s=n[o];return s===void 0?void 0:t(s[0],s[1],i-o)}})(H2),Ft=t=>{let e=!1,n=t.map(r=>r!==void 0?(e=!0,r):1);return e?n:t},dn={mode:"rgb",channels:["r","g","b","alpha"],parse:[T2,_2,w2,m2,z2,"srgb"],serialize:"srgb",interpolate:{r:J,g:J,b:J,alpha:{use:J,fixup:Ft}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Do=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Tc=t=>{let e=Do(t.r),n=Do(t.g),r=Do(t.b),i={mode:"xyz65",x:.5766690429101305*e+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*e+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*e+.0706888525358272*n+.9913375368376386*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},jo=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),zc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"a98",r:jo(t*2.0415879038107465-e*.5650069742788597-.3447313507783297*n),g:jo(t*-.9692436362808798+e*1.8759675015077206+.0415550574071756*n),b:jo(t*.0134442806320312-e*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},Fo=(t=0)=>{const e=Math.abs(t);return e<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((e+.055)/1.055,2.4)},pn=({r:t,g:e,b:n,alpha:r})=>{let i={mode:"lrgb",r:Fo(t),g:Fo(e),b:Fo(n)};return r!==void 0&&(i.alpha=r),i},qe=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz65",x:.4123907992659593*e+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*e+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*e+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(o.alpha=i),o},Bo=(t=0)=>{const e=Math.abs(t);return e>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(e,1/2.4)-.055):t*12.92},gn=({r:t,g:e,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:Bo(t),g:Bo(e),b:Bo(n)};return r!==void 0&&(o.alpha=r),o},Ge=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*3.2409699419045226-e*1.537383177570094-.4986107602930034*n,g:t*-.9692436362808796+e*1.8759675015077204+.0415550574071756*n,b:t*.0556300796969936-e*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},L2=se(te({},dn),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>zc(qe(t)),xyz65:zc},toMode:{rgb:t=>Ge(Tc(t)),xyz65:Tc}}),qt=t=>(t=t%360)<0?t+360:t,N2=(t,e)=>t.map((n,r,i)=>{if(n===void 0)return n;let o=qt(n);return r===0||t[r-1]===void 0?o:e(o-qt(i[r-1]))}).reduce((n,r)=>!n.length||r===void 0||n[n.length-1]===void 0?(n.push(r),n):(n.push(r+n[n.length-1]),n),[]),Ie=t=>N2(t,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Wt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],D2=Math.PI/180,j2=180/Math.PI;let Hc=Wt[3]*Wt[4],Rc=Wt[1]*Wt[4],Lc=Wt[1]*Wt[2]-Wt[0]*Wt[3];const F2=({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(Lc*n+t*Hc-e*Rc)/(Lc+Hc-Rc),o=n-i,s=(Wt[4]*(e-i)-Wt[2]*o)/Wt[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(Wt[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*j2-120),r!==void 0&&(a.alpha=r),a},B2=({h:t,s:e,l:n,alpha:r})=>{let i={mode:"rgb"};t=(t===void 0?0:t+120)*D2,n===void 0&&(n=0);let o=e===void 0?0:e*n*(1-n),s=Math.cos(t),a=Math.sin(t);return i.r=n+o*(Wt[0]*s+Wt[1]*a),i.g=n+o*(Wt[2]*s+Wt[3]*a),i.b=n+o*(Wt[4]*s+Wt[5]*a),r!==void 0&&(i.alpha=r),i},Qr=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.s||!e.s)return 0;let n=qt(t.h),r=qt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*i},W2=(t,e)=>{if(t.h===void 0||e.h===void 0)return 0;let n=qt(t.h),r=qt(e.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Kr=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.c||!e.c)return 0;let n=qt(t.h),r=qt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*i},Ae=t=>{let e=t.reduce((r,i)=>{if(i!==void 0){let o=i*Math.PI/180;r.sin+=Math.sin(o),r.cos+=Math.cos(o)}return r},{sin:0,cos:0}),n=Math.atan2(e.sin,e.cos)*180/Math.PI;return n<0?360+n:n},X2={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:F2},toMode:{rgb:B2},interpolate:{h:{use:J,fixup:Ie},s:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Qr},average:{h:Ae}},Re=({l:t,a:e,b:n,alpha:r},i="lch")=>{e===void 0&&(e=0),n===void 0&&(n=0);let o=Math.sqrt(e*e+n*n),s={mode:i,l:t,c:o};return o&&(s.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},Le=({l:t,c:e,h:n,alpha:r},i="lab")=>{n===void 0&&(n=0);let o={mode:i,l:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(o.alpha=r),o},Nc=Math.pow(29,3)/Math.pow(3,3),Dc=Math.pow(6,3)/Math.pow(29,3),jt={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},mn={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let Wo=t=>Math.pow(t,3)>Dc?Math.pow(t,3):(116*t-16)/Nc;const jc=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+16)/116,o=e/500+i,s=i-n/200,a={mode:"xyz65",x:Wo(o)*mn.X,y:Wo(i)*mn.Y,z:Wo(s)*mn.Z};return r!==void 0&&(a.alpha=r),a},Jr=t=>Ge(jc(t)),Xo=t=>t>Dc?Math.cbrt(t):(Nc*t+16)/116,Fc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Xo(t/mn.X),o=Xo(e/mn.Y),s=Xo(n/mn.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},ti=t=>{let e=Fc(qe(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},ei=1,Bc=1,qn=26/180*Math.PI,ni=Math.cos(qn),ri=Math.sin(qn),Wc=100/Math.log(139/100),Yo=({l:t,c:e,h:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"lab65",l:(Math.exp(t*ei/Wc)-1)/.0039},o=(Math.exp(.0435*e*Bc*ei)-1)/.075,s=o*Math.cos(n/180*Math.PI-qn),a=o*Math.sin(n/180*Math.PI-qn);return i.a=s*ni-a/.83*ri,i.b=s*ri+a/.83*ni,r!==void 0&&(i.alpha=r),i},Vo=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=e*ni+n*ri,o=.83*(n*ni-e*ri),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:Wc/ei*Math.log(1+.0039*t),c:Math.log(1+.075*s)/(.0435*Bc*ei)};return a.c&&(a.h=qt((Math.atan2(o,i)+qn)/Math.PI*180)),r!==void 0&&(a.alpha=r),a},Xc=t=>Yo(Re(t,"dlch")),Yc=t=>Le(Vo(t),"dlab"),Y2={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Xc,rgb:t=>Jr(Xc(t))},fromMode:{lab65:Yc,rgb:t=>Yc(ti(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},V2={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Yo,dlab:t=>Le(t,"dlab"),rgb:t=>Jr(Yo(t))},fromMode:{lab65:Vo,dlab:t=>Re(t,"dlch"),rgb:t=>Vo(ti(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:J,c:J,h:{use:J,fixup:Ie},alpha:{use:J,fixup:Ft}},difference:{h:Kr},average:{h:Ae}};function q2({h:t,s:e,i:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.abs(t/60%2-1),o;switch(Math.floor(t/60)){case 0:o={r:n*(1+e*(3/(2-i)-1)),g:n*(1+e*(3*(1-i)/(2-i)-1)),b:n*(1-e)};break;case 1:o={r:n*(1+e*(3*(1-i)/(2-i)-1)),g:n*(1+e*(3/(2-i)-1)),b:n*(1-e)};break;case 2:o={r:n*(1-e),g:n*(1+e*(3/(2-i)-1)),b:n*(1+e*(3*(1-i)/(2-i)-1))};break;case 3:o={r:n*(1-e),g:n*(1+e*(3*(1-i)/(2-i)-1)),b:n*(1+e*(3/(2-i)-1))};break;case 4:o={r:n*(1+e*(3*(1-i)/(2-i)-1)),g:n*(1-e),b:n*(1+e*(3/(2-i)-1))};break;case 5:o={r:n*(1+e*(3/(2-i)-1)),g:n*(1-e),b:n*(1+e*(3*(1-i)/(2-i)-1))};break;default:o={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function G2({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsi",s:t+e+n===0?0:1-3*o/(t+e+n),i:(t+e+n)/3};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const U2={mode:"hsi",toMode:{rgb:q2},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:G2},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:J,fixup:Ie},s:J,i:J,alpha:{use:J,fixup:Ft}},difference:{h:Qr},average:{h:Ae}};function Z2({h:t,s:e,l:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=n+e*(n<.5?n:1-n),o=i-(i-n)*2*Math.abs(t/60%2-1),s;switch(Math.floor(t/60)){case 0:s={r:i,g:o,b:2*n-i};break;case 1:s={r:o,g:i,b:2*n-i};break;case 2:s={r:2*n-i,g:i,b:o};break;case 3:s={r:2*n-i,g:o,b:i};break;case 4:s={r:o,g:2*n-i,b:i};break;case 5:s={r:i,g:2*n-i,b:o};break;default:s={r:2*n-i,g:2*n-i,b:2*n-i}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function Q2({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsl",s:i===o?0:(i-o)/(1-Math.abs(i+o-1)),l:.5*(i+o)};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const K2=(t,e)=>{switch(e){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return t*360}},J2=new RegExp(`^hsla?\\(\\s*${x2}${un}${Yn}${un}${Yn}\\s*(?:,\\s*${Ho}\\s*)?\\)$`),ty=t=>{let e=t.match(J2);if(!e)return;let n={mode:"hsl"};return e[3]!==void 0?n.h=+e[3]:e[1]!==void 0&&e[2]!==void 0&&(n.h=K2(e[1],e[2])),e[4]!==void 0&&(n.s=Math.min(Math.max(0,e[4]/100),1)),e[5]!==void 0&&(n.l=Math.min(Math.max(0,e[5]/100),1)),e[6]!==void 0?n.alpha=Math.max(0,Math.min(1,e[6]/100)):e[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+e[7]))),n};function ey(t,e){if(!e||e[0]!=="hsl"&&e[0]!=="hsla")return;const n={mode:"hsl"},[,r,i,o,s]=e;if(r.type!==G.None){if(r.type===G.Percentage)return;n.h=r.value}if(i.type!==G.None){if(i.type===G.Hue)return;n.s=i.value/100}if(o.type!==G.None){if(o.type===G.Hue)return;n.l=o.value/100}return s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const Vc={mode:"hsl",toMode:{rgb:Z2},fromMode:{rgb:Q2},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[ey,ty],serialize:t=>`hsl(${t.h!==void 0?t.h:"none"} ${t.s!==void 0?t.s*100+"%":"none"} ${t.l!==void 0?t.l*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ie},s:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Qr},average:{h:Ae}};function qc({h:t,s:e,v:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.abs(t/60%2-1),o;switch(Math.floor(t/60)){case 0:o={r:n,g:n*(1-e*i),b:n*(1-e)};break;case 1:o={r:n*(1-e*i),g:n,b:n*(1-e)};break;case 2:o={r:n*(1-e),g:n,b:n*(1-e*i)};break;case 3:o={r:n*(1-e),g:n*(1-e*i),b:n};break;case 4:o={r:n*(1-e*i),g:n*(1-e),b:n};break;case 5:o={r:n,g:n*(1-e),b:n*(1-e*i)};break;default:o={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function Gc({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsv",s:i===0?0:1-o/i,v:i};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const Uc={mode:"hsv",toMode:{rgb:qc},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Gc},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:J,fixup:Ie},s:J,v:J,alpha:{use:J,fixup:Ft}},difference:{h:Qr},average:{h:Ae}};function ny({h:t,w:e,b:n,alpha:r}){if(e===void 0&&(e=0),n===void 0&&(n=0),e+n>1){let i=e+n;e/=i,n/=i}return qc({h:t,s:n===1?1:1-e/(1-n),v:1-n,alpha:r})}function ry(t){let e=Gc(t);if(e===void 0)return;let n=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,i={mode:"hwb",w:(1-n)*r,b:1-r};return e.h!==void 0&&(i.h=e.h),e.alpha!==void 0&&(i.alpha=e.alpha),i}function iy(t,e){if(!e||e[0]!=="hwb")return;const n={mode:"hwb"},[,r,i,o,s]=e;if(r.type!==G.None){if(r.type===G.Percentage)return;n.h=r.value}if(i.type!==G.None){if(i.type===G.Hue)return;n.w=i.value/100}if(o.type!==G.None){if(o.type===G.Hue)return;n.b=o.value/100}return s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const oy={mode:"hwb",toMode:{rgb:ny},fromMode:{rgb:ry},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[iy],serialize:t=>`hwb(${t.h!==void 0?t.h:"none"} ${t.w!==void 0?t.w*100+"%":"none"} ${t.b!==void 0?t.b*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ie},w:J,b:J,alpha:{use:J,fixup:Ft}},difference:{h:W2},average:{h:Ae}},Zc=203,ii=.1593017578125,Qc=78.84375,oi=.8359375,si=18.8515625,ai=18.6875;function qo(t){if(t<0)return 0;const e=Math.pow(t,1/Qc);return 1e4*Math.pow(Math.max(0,e-oi)/(si-ai*e),1/ii)}function Go(t){if(t<0)return 0;const e=Math.pow(t/1e4,ii);return Math.pow((oi+si*e)/(1+ai*e),Qc)}const Uo=t=>Math.max(t/Zc,0),Kc=({i:t,t:e,p:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i=qo(t+.008609037037932761*e+.11102962500302593*n),o=qo(t-.00860903703793275*e-.11102962500302599*n),s=qo(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:Uo(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:Uo(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:Uo(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return r!==void 0&&(a.alpha=r),a},Zo=(t=0)=>Math.max(t*Zc,0),Jc=({x:t,y:e,z:n,alpha:r})=>{const i=Zo(t),o=Zo(e),s=Zo(n),a=Go(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=Go(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=Go(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),h=.5*a+.5*l,u=1.61376953125*a-3.323486328125*l+1.709716796875*c,d=4.378173828125*a-4.24560546875*l-.132568359375*c,p={mode:"itp",i:h,t:u,p:d};return r!==void 0&&(p.alpha=r),p},sy={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Kc,rgb:t=>Ge(Kc(t))},fromMode:{xyz65:Jc,rgb:t=>Jc(qe(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:J,t:J,p:J,alpha:{use:J,fixup:Ft}}},ay=134.03437499999998,ly=16295499532821565e-27,Qo=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,ii);return Math.pow((oi+si*e)/(1+ai*e),ay)},Ko=(t=0)=>Math.max(t*203,0),th=({x:t,y:e,z:n,alpha:r})=>{t=Ko(t),e=Ko(e),n=Ko(n);let i=1.15*t-.15*n,o=.66*e+.34*t,s=Qo(.41478972*i+.579999*o+.014648*n),a=Qo(-.20151*i+1.120649*o+.0531008*n),l=Qo(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,h={mode:"jab",j:.44*c/(1-.56*c)-ly,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return r!==void 0&&(h.alpha=r),h},cy=134.03437499999998,eh=16295499532821565e-27,Jo=t=>{if(t<0)return 0;let e=Math.pow(t,1/cy);return 1e4*Math.pow((oi-e)/(ai*e-si),1/ii)},ts=t=>t/203,nh=({j:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+eh)/(.44+.56*(t+eh)),o=Jo(i+.13860504*e+.058047316*n),s=Jo(i-.13860504*e-.058047316*n),a=Jo(i-.096019242*e-.8118919*n),l={mode:"xyz65",x:ts(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:ts(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:ts(-.090982811*o-.31272829*s+1.5227666*a)};return r!==void 0&&(l.alpha=r),l},rh=t=>{let e=th(qe(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},ih=t=>Ge(nh(t)),hy={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:rh,xyz65:th},toMode:{rgb:ih,xyz65:nh},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},oh=({j:t,a:e,b:n,alpha:r})=>{e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"jch",j:t,c:i};return i&&(o.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},sh=({j:t,c:e,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"jab",j:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},fy={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:sh,rgb:t=>ih(sh(t))},fromMode:{rgb:t=>oh(rh(t)),jab:oh},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:J,fixup:Ie},c:J,j:J,alpha:{use:J,fixup:Ft}},difference:{h:Kr},average:{h:Ae}},li=Math.pow(29,3)/Math.pow(3,3),es=Math.pow(6,3)/Math.pow(29,3);let ns=t=>Math.pow(t,3)>es?Math.pow(t,3):(116*t-16)/li;const rs=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+16)/116,o=e/500+i,s=i-n/200,a={mode:"xyz50",x:ns(o)*jt.X,y:ns(i)*jt.Y,z:ns(s)*jt.Z};return r!==void 0&&(a.alpha=r),a},Gn=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*3.1341359569958707-e*1.6173863321612538-.4906619460083532*n,g:t*-.978795502912089+e*1.916254567259524+.03344273116131949*n,b:t*.07195537988411677-e*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},ah=t=>Gn(rs(t)),Un=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz50",x:.436065742824811*e+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*e+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*e+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(o.alpha=i),o},is=t=>t>es?Math.cbrt(t):(li*t+16)/116,os=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=is(t/jt.X),o=is(e/jt.Y),s=is(n/jt.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},lh=t=>{let e=os(Un(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};function uy(t,e){if(!e||e[0]!=="lab")return;const n={mode:"lab"},[,r,i,o,s]=e;if(!(r.type===G.Hue||i.type===G.Hue||o.type===G.Hue))return r.type!==G.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==G.None&&(n.a=i.type===G.Number?i.value:i.value*125/100),o.type!==G.None&&(n.b=o.type===G.Number?o.value:o.value*125/100),s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const ss={mode:"lab",toMode:{xyz50:rs,rgb:ah},fromMode:{xyz50:os,rgb:lh},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[uy],serialize:t=>`lab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},dy=se(te({},ss),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:jc,rgb:Jr},fromMode:{xyz65:Fc,rgb:ti},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});function py(t,e){if(!e||e[0]!=="lch")return;const n={mode:"lch"},[,r,i,o,s]=e;if(r.type!==G.None){if(r.type===G.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==G.None&&(n.c=Math.max(0,i.type===G.Number?i.value:i.value*150/100)),o.type!==G.None){if(o.type===G.Percentage)return;n.h=o.value}return s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const as={mode:"lch",toMode:{lab:Le,rgb:t=>ah(Le(t))},fromMode:{rgb:t=>Re(lh(t)),lab:Re},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[py],serialize:t=>`lch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ie},c:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Kr},average:{h:Ae}},gy=se(te({},as),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Le(t,"lab65"),rgb:t=>Jr(Le(t,"lab65"))},fromMode:{rgb:t=>Re(ti(t),"lch65"),lab65:t=>Re(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),ch=({l:t,u:e,v:n,alpha:r})=>{e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"lchuv",l:t,c:i};return i&&(o.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},hh=({l:t,c:e,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"luv",l:t,u:e?e*Math.cos(n/180*Math.PI):0,v:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},fh=(t,e,n)=>4*t/(t+15*e+3*n),uh=(t,e,n)=>9*e/(t+15*e+3*n),my=fh(jt.X,jt.Y,jt.Z),yy=uh(jt.X,jt.Y,jt.Z),_y=t=>t<=es?li*t:116*Math.cbrt(t)-16,ls=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=_y(e/jt.Y),o=fh(t,e,n),s=uh(t,e,n);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-my),s=13*i*(s-yy));let a={mode:"luv",l:i,u:o,v:s};return r!==void 0&&(a.alpha=r),a},xy=(t,e,n)=>4*t/(t+15*e+3*n),vy=(t,e,n)=>9*e/(t+15*e+3*n),by=xy(jt.X,jt.Y,jt.Z),wy=vy(jt.X,jt.Y,jt.Z),cs=({l:t,u:e,v:n,alpha:r})=>{if(t===void 0&&(t=0),t===0)return{mode:"xyz50",x:0,y:0,z:0};e===void 0&&(e=0),n===void 0&&(n=0);let i=e/(13*t)+by,o=n/(13*t)+wy,s=jt.Y*(t<=8?t/li:Math.pow((t+16)/116,3)),a=s*(9*i)/(4*o),l=s*(12-3*i-20*o)/(4*o),c={mode:"xyz50",x:a,y:s,z:l};return r!==void 0&&(c.alpha=r),c},$y={mode:"lchuv",toMode:{luv:hh,rgb:t=>Gn(cs(hh(t)))},fromMode:{rgb:t=>ch(ls(Un(t))),luv:ch},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:J,fixup:Ie},c:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Kr},average:{h:Ae}},Py=se(te({},dn),{mode:"lrgb",toMode:{rgb:gn},fromMode:{rgb:pn},parse:["srgb-linear"],serialize:"srgb-linear"}),My={mode:"luv",toMode:{xyz50:cs,rgb:t=>Gn(cs(t))},fromMode:{xyz50:ls,rgb:t=>ls(Un(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:J,u:J,v:J,alpha:{use:J,fixup:Ft}}},dh=({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*t+.5363325372617348*e+.0514459932675022*n),o=Math.cbrt(.2119034958178252*t+.6806995506452344*e+.1073969535369406*n),s=Math.cbrt(.0883024591900564*t+.2817188391361215*e+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*i+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*i-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*i+.7827717124575296*o-.8086757549230774*s};return r!==void 0&&(a.alpha=r),a},ci=t=>{let e=dh(pn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Zn=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.pow(t+.3963377773761749*e+.2158037573099136*n,3),o=Math.pow(t-.1055613458156586*e-.0638541728258133*n,3),s=Math.pow(t-.0894841775298119*e-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*i-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*i+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*i-.7034186179359362*o+1.7076146940746117*s};return r!==void 0&&(a.alpha=r),a},hi=t=>gn(Zn(t));function hs(t){const r=1.170873786407767;return .5*(r*t-.206+Math.sqrt((r*t-.206)*(r*t-.206)+4*.03*r*t))}function fi(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function Oy(t,e){let n,r,i,o,s,a,l,c;-1.88170328*t-.80936493*e>1?(n=1.19086277,r=1.76576728,i=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*t-1.19445276*e>1?(n=.73956515,r=-.45954404,i=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let h=n+r*t+i*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,d=-.1055613458*t-.0638541728*e,p=-.0894841775*t-1.291485548*e;{let g=1+h*u,y=1+h*d,m=1+h*p,x=g*g*g,_=y*y*y,v=m*m*m,b=3*u*g*g,P=3*d*y*y,w=3*p*m*m,$=6*u*u*g,M=6*d*d*y,A=6*p*p*m,I=a*x+l*_+c*v,C=a*b+l*P+c*w,k=a*$+l*M+c*A;h=h-I*C/(C*C-.5*I*k)}return h}function fs(t,e){let n=Oy(t,e),r=Zn({l:1,a:n*t,b:n*e}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b)),o=i*n;return[i,o]}function Cy(t,e,n,r,i,o=null){o||(o=fs(t,e));let s;if((n-i)*o[1]-(o[0]-i)*r<=0)s=o[1]*i/(r*o[0]+o[1]*(i-n));else{s=o[1]*(i-1)/(r*(o[0]-1)+o[1]*(i-n));{let a=n-i,l=r,c=.3963377774*t+.2158037573*e,h=-.1055613458*t-.0638541728*e,u=-.0894841775*t-1.291485548*e,d=a+l*c,p=a+l*h,g=a+l*u;{let y=i*(1-s)+s*n,m=s*r,x=y+m*c,_=y+m*h,v=y+m*u,b=x*x*x,P=_*_*_,w=v*v*v,$=3*d*x*x,M=3*p*_*_,A=3*g*v*v,I=6*d*d*x,C=6*p*p*_,k=6*g*g*v,E=4.0767416621*b-3.3077115913*P+.2309699292*w-1,L=4.0767416621*$-3.3077115913*M+.2309699292*A,F=4.0767416621*I-3.3077115913*C+.2309699292*k,z=L/(L*L-.5*E*F),j=-E*z,R=-1.2684380046*b+2.6097574011*P-.3413193965*w-1,H=-1.2684380046*$+2.6097574011*M-.3413193965*A,D=-1.2684380046*I+2.6097574011*C-.3413193965*k,B=H/(H*H-.5*R*D),T=-R*B,O=-.0041960863*b-.7034186147*P+1.707614701*w-1,X=-.0041960863*$-.7034186147*M+1.707614701*A,V=-.0041960863*I-.7034186147*C+1.707614701*k,et=X/(X*X-.5*O*V),q=-O*et;j=z>=0?j:1e6,T=B>=0?T:1e6,q=et>=0?q:1e6,s+=Math.min(j,Math.min(T,q))}}}return s}function us(t,e,n=null){n||(n=fs(t,e));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function ph(t,e,n){let r=fs(e,n),i=Cy(e,n,t,1,t,r),o=us(e,n,r),s=.11516993+1/(7.4477897+4.1590124*n+e*(-2.19557347+1.75198401*n+e*(-2.13704948-10.02301043*n+e*(-4.24894561+5.38770819*n+4.69891013*e)))),a=.11239642+1/(1.6132032-.68124379*n+e*(.40370612+.90148123*n+e*(-.27087943+.6122399*n+e*(.00299215-.45399568*n-.14661872*e)))),l=i/Math.min(t*o[0],(1-t)*o[1]),c=t*s,h=(1-t)*a,u=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(h*h*h*h))));return c=t*.4,h=(1-t)*.8,[Math.sqrt(1/(1/(c*c)+1/(h*h))),u,i]}function gh(t){const e=t.l!==void 0?t.l:0,n=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,i={mode:"okhsl",l:hs(e)};t.alpha!==void 0&&(i.alpha=t.alpha);let o=Math.sqrt(n*n+r*r);if(!o)return i.s=0,i;let[s,a,l]=ph(e,n/o,r/o),c;if(o<a){let h=0,u=.8*s,d=1-u/a;c=(o-h)/(u+d*(o-h))*.8}else{let h=a,u=.2*a*a*1.25*1.25/s,d=1-u/(l-a);c=.8+.2*((o-h)/(u+d*(o-h)))}return c&&(i.s=c,i.h=qt(Math.atan2(r,n)*180/Math.PI)),i}function mh(t){let e=t.h!==void 0?t.h:0,n=t.s!==void 0?t.s:0,r=t.l!==void 0?t.l:0;const i={mode:"oklab",l:fi(r)};if(t.alpha!==void 0&&(i.alpha=t.alpha),!n||r===1)return i.a=i.b=0,i;let o=Math.cos(e/180*Math.PI),s=Math.sin(e/180*Math.PI),[a,l,c]=ph(i.l,o,s),h,u,d,p;n<.8?(h=1.25*n,u=0,d=.8*a,p=1-d/l):(h=5*(n-.8),u=l,d=.2*l*l*1.25*1.25/a,p=1-d/(c-l));let g=u+h*d/(1-p*h);return i.a=g*o,i.b=g*s,i}const Sy=se(te({},Vc),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:gh,rgb:t=>gh(ci(t))},toMode:{oklab:mh,rgb:t=>hi(mh(t))}});function yh(t){let e=t.l!==void 0?t.l:0,n=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,i=Math.sqrt(n*n+r*r),o=i?n/i:1,s=i?r/i:1,[a,l]=us(o,s),c=.5,h=1-c/a,u=l/(i+e*l),d=u*e,p=u*i,g=fi(d),y=p*g/d,m=Zn({l:g,a:o*y,b:s*y}),x=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));e=e/x,i=i/x*hs(e)/e,e=hs(e);const _={mode:"okhsv",s:i?(c+l)*p/(l*c+l*h*p):0,v:e?e/d:0};return _.s&&(_.h=qt(Math.atan2(r,n)*180/Math.PI)),t.alpha!==void 0&&(_.alpha=t.alpha),_}function _h(t){const e={mode:"oklab"};t.alpha!==void 0&&(e.alpha=t.alpha);const n=t.h!==void 0?t.h:0,r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=us(o,s),c=.5,h=1-c/a,u=1-r*c/(c+l-l*h*r),d=r*l*c/(c+l-l*h*r),p=fi(u),g=d*p/u,y=Zn({l:p,a:o*g,b:s*g}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),x=fi(i*u),_=d*x/u;return e.l=x*m,e.a=_*o*m,e.b=_*s*m,e}const Iy=se(te({},Uc),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:yh,rgb:t=>yh(ci(t))},toMode:{oklab:_h,rgb:t=>hi(_h(t))}});function Ay(t,e){if(!e||e[0]!=="oklab")return;const n={mode:"oklab"},[,r,i,o,s]=e;if(!(r.type===G.Hue||i.type===G.Hue||o.type===G.Hue))return r.type!==G.None&&(n.l=Math.min(Math.max(0,r.type===G.Number?r.value:r.value/100),1)),i.type!==G.None&&(n.a=i.type===G.Number?i.value:i.value*.4/100),o.type!==G.None&&(n.b=o.type===G.Number?o.value:o.value*.4/100),s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const Ey=se(te({},ss),{mode:"oklab",toMode:{lrgb:Zn,rgb:hi},fromMode:{lrgb:dh,rgb:ci},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ay],serialize:t=>`oklab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`});function ky(t,e){if(!e||e[0]!=="oklch")return;const n={mode:"oklch"},[,r,i,o,s]=e;if(r.type!==G.None){if(r.type===G.Hue)return;n.l=Math.min(Math.max(0,r.type===G.Number?r.value:r.value/100),1)}if(i.type!==G.None&&(n.c=Math.max(0,i.type===G.Number?i.value:i.value*.4/100)),o.type!==G.None){if(o.type===G.Percentage)return;n.h=o.value}return s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const xh=se(te({},as),{mode:"oklch",toMode:{oklab:t=>Le(t,"oklab"),rgb:t=>hi(Le(t,"oklab"))},fromMode:{rgb:t=>Re(ci(t),"oklch"),oklab:t=>Re(t,"oklch")},parse:[ky],serialize:t=>`oklch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),vh=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz65",x:.486570948648216*e+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*e+.6917385218365062*n+.079286914093745*r,z:0*e+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(o.alpha=i),o},bh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*2.4934969119414263-e*.9313836179191242-.402710784450717*n,g:t*-.8294889695615749+e*1.7626640603183465+.0236246858419436*n,b:t*.0358458302437845-e*.0761723892680418+.9568845240076871*n},"p3");return r!==void 0&&(i.alpha=r),i},Ty=se(te({},dn),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>bh(qe(t)),xyz65:bh},toMode:{rgb:t=>Ge(vh(t)),xyz65:vh}}),ds=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},wh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"prophoto",r:ds(t*1.3457868816471585-e*.2555720873797946-.0511018649755453*n),g:ds(t*-.5446307051249019+e*1.5082477428451466+.0205274474364214*n),b:ds(t*0+e*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},ps=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},$h=t=>{let e=ps(t.r),n=ps(t.g),r=ps(t.b),i={mode:"xyz50",x:.7977666449006423*e+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*e+.7118352342418731*n+899369387256e-16*r,z:0*e+0*n+.8251046025104602*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},zy=se(te({},dn),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:wh,rgb:t=>wh(Un(t))},toMode:{xyz50:$h,rgb:t=>Gn($h(t))}}),Ph=1.09929682680944,Hy=.018053968510807,gs=t=>{const e=Math.abs(t);return e>Hy?(Math.sign(t)||1)*(Ph*Math.pow(e,.45)-(Ph-1)):4.5*t},Mh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"rec2020",r:gs(t*1.7166511879712683-e*.3556707837763925-.2533662813736599*n),g:gs(t*-.6666843518324893+e*1.6164812366349395+.0157685458139111*n),b:gs(t*.0176398574453108-e*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Oh=1.09929682680944,Ry=.018053968510807,ms=(t=0)=>{let e=Math.abs(t);return e<Ry*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((e+Oh-1)/Oh,1/.45)},Ch=t=>{let e=ms(t.r),n=ms(t.g),r=ms(t.b),i={mode:"xyz65",x:.6369580483012911*e+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*e+.6779980715188708*n+.059301716469862*r,z:0*e+.0280726930490874*n+1.0609850577107909*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},Ly=se(te({},dn),{mode:"rec2020",fromMode:{xyz65:Mh,rgb:t=>Mh(qe(t))},toMode:{xyz65:Ch,rgb:t=>Ge(Ch(t))},parse:["rec2020"],serialize:"rec2020"}),Ue=.0037930732552754493,Sh=Math.cbrt(Ue),ys=t=>Math.cbrt(t)-Sh,Ny=t=>{const{r:e,g:n,b:r,alpha:i}=pn(t),o=ys(.3*e+.622*n+.078*r+Ue),s=ys(.23*e+.692*n+.078*r+Ue),a=ys(.2434226892454782*e+.2047674442449682*n+.5518098665095535*r+Ue),l={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(l.alpha=i),l},_s=t=>Math.pow(t+Sh,3),Dy={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:t,y:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i=_s(t+e)-Ue,o=_s(e-t)-Ue,s=_s(n+e)-Ue,a=gn({r:11.031566904639861*i-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*i+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*i+2.7129230459360922*o+1.9459282407775895*s});return r!==void 0&&(a.alpha=r),a}},fromMode:{rgb:Ny},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:J,y:J,b:J,alpha:{use:J,fixup:Ft}}},jy={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Gn,lab:os},fromMode:{rgb:Un,lab:rs},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:J,y:J,z:J,alpha:{use:J,fixup:Ft}}},Fy={mode:"xyz65",toMode:{rgb:Ge,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;e===void 0&&(e=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz50",x:1.0479298208405488*e+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*e+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*e+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(o.alpha=i),o}},fromMode:{rgb:qe,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;e===void 0&&(e=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz65",x:.9554734527042182*e-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*e+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*e-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(o.alpha=i),o}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:J,y:J,z:J,alpha:{use:J,fixup:Ft}}},By={mode:"yiq",toMode:{rgb:({y:t,i:e,q:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i={mode:"rgb",r:t+.95608445*e+.6208885*n,g:t-.27137664*e-.6486059*n,b:t-1.10561724*e+1.70250126*n};return r!==void 0&&(i.alpha=r),i}},fromMode:{rgb:({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i={mode:"yiq",y:.29889531*t+.58662247*e+.11448223*n,i:.59597799*t-.2741761*e-.32180189*n,q:.21147017*t-.52261711*e+.31114694*n};return r!==void 0&&(i.alpha=r),i}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:J,i:J,q:J,alpha:{use:J,fixup:Ft}}},Wy=t=>Math.max(0,Math.min(1,t||0)),ui=t=>Math.round(Wy(t)*255),Ih=Ro("rgb"),Ah=t=>{if(t===void 0)return;let e=ui(t.r),n=ui(t.g),r=ui(t.b);return"#"+(1<<24|e<<16|n<<8|r).toString(16).slice(1)},Xy=t=>{if(t===void 0)return;let e=ui(t.alpha!==void 0?t.alpha:1);return Ah(t)+(256|e).toString(16).slice(1)},Qn=t=>Ah(Ih(t)),Yy=t=>Xy(Ih(t));function xs(t){let e=Ro("lrgb")(t);return .2126*e.r+.7152*e.g+.0722*e.b}function vs(t,e){let n=xs(t),r=xs(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}bt(L2),bt(X2),bt(Y2),bt(V2),bt(U2),bt(Vc),bt(Uc),bt(oy),bt(sy),bt(hy),bt(fy),bt(ss),bt(dy),bt(as),bt(gy),bt($y),bt(Py),bt(My),bt(Sy),bt(Iy),bt(Ey);const Eh=bt(xh);bt(Ty),bt(zy),bt(Ly),bt(dn),bt(Dy),bt(jy),bt(Fy),bt(By);function Kn(t){if(!t)return!1;const e=t.trim().toLowerCase();return!(e==="none"||e==="transparent"||e==="")}function kh(t){const e=Se(t);return e?xs(e)<.5:!1}var yn=Array.isArray,Th=typeof global=="object"&&global&&global.Object===Object&&global,Vy=typeof self=="object"&&self&&self.Object===Object&&self,_n=Th||Vy||Function("return this")(),xn=_n.Symbol,zh=Object.prototype,qy=zh.hasOwnProperty,Gy=zh.toString,Jn=xn?xn.toStringTag:void 0;function Uy(t){var e=qy.call(t,Jn),n=t[Jn];try{t[Jn]=void 0;var r=!0}catch(o){}var i=Gy.call(t);return r&&(e?t[Jn]=n:delete t[Jn]),i}var Zy=Object.prototype,Qy=Zy.toString;function Ky(t){return Qy.call(t)}var Jy="[object Null]",t_="[object Undefined]",Hh=xn?xn.toStringTag:void 0;function tr(t){return t==null?t===void 0?t_:Jy:Hh&&Hh in Object(t)?Uy(t):Ky(t)}function vn(t){return t!=null&&typeof t=="object"}var e_="[object Symbol]";function bs(t){return typeof t=="symbol"||vn(t)&&tr(t)==e_}var n_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r_=/^\w*$/;function i_(t,e){if(yn(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||bs(t)?!0:r_.test(t)||!n_.test(t)||e!=null&&t in Object(e)}function Ze(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var o_="[object AsyncFunction]",s_="[object Function]",a_="[object GeneratorFunction]",l_="[object Proxy]";function ws(t){if(!Ze(t))return!1;var e=tr(t);return e==s_||e==a_||e==o_||e==l_}var $s=_n["__core-js_shared__"],Rh=(function(){var t=/[^.]+$/.exec($s&&$s.keys&&$s.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function c_(t){return!!Rh&&Rh in t}var h_=Function.prototype,f_=h_.toString;function u_(t){if(t!=null){try{return f_.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var d_=/[\\^$.*+?()[\]{}|]/g,p_=/^\[object .+?Constructor\]$/,g_=Function.prototype,m_=Object.prototype,y_=g_.toString,__=m_.hasOwnProperty,x_=RegExp("^"+y_.call(__).replace(d_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v_(t){if(!Ze(t)||c_(t))return!1;var e=ws(t)?x_:p_;return e.test(u_(t))}function b_(t,e){return t==null?void 0:t[e]}function Ps(t,e){var n=b_(t,e);return v_(n)?n:void 0}var er=Ps(Object,"create");function w_(){this.__data__=er?er(null):{},this.size=0}function $_(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var P_="__lodash_hash_undefined__",M_=Object.prototype,O_=M_.hasOwnProperty;function C_(t){var e=this.__data__;if(er){var n=e[t];return n===P_?void 0:n}return O_.call(e,t)?e[t]:void 0}var S_=Object.prototype,I_=S_.hasOwnProperty;function A_(t){var e=this.__data__;return er?e[t]!==void 0:I_.call(e,t)}var E_="__lodash_hash_undefined__";function k_(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=er&&e===void 0?E_:e,this}function Qe(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Qe.prototype.clear=w_,Qe.prototype.delete=$_,Qe.prototype.get=C_,Qe.prototype.has=A_,Qe.prototype.set=k_;function T_(){this.__data__=[],this.size=0}function di(t,e){return t===e||t!==t&&e!==e}function pi(t,e){for(var n=t.length;n--;)if(di(t[n][0],e))return n;return-1}var z_=Array.prototype,H_=z_.splice;function R_(t){var e=this.__data__,n=pi(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():H_.call(e,n,1),--this.size,!0}function L_(t){var e=this.__data__,n=pi(e,t);return n<0?void 0:e[n][1]}function N_(t){return pi(this.__data__,t)>-1}function D_(t,e){var n=this.__data__,r=pi(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Ee(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ee.prototype.clear=T_,Ee.prototype.delete=R_,Ee.prototype.get=L_,Ee.prototype.has=N_,Ee.prototype.set=D_;var Lh=Ps(_n,"Map");function j_(){this.size=0,this.__data__={hash:new Qe,map:new(Lh||Ee),string:new Qe}}function F_(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function gi(t,e){var n=t.__data__;return F_(e)?n[typeof e=="string"?"string":"hash"]:n.map}function B_(t){var e=gi(this,t).delete(t);return this.size-=e?1:0,e}function W_(t){return gi(this,t).get(t)}function X_(t){return gi(this,t).has(t)}function Y_(t,e){var n=gi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ne(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ne.prototype.clear=j_,Ne.prototype.delete=B_,Ne.prototype.get=W_,Ne.prototype.has=X_,Ne.prototype.set=Y_;var V_="Expected a function";function Ms(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(V_);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ms.Cache||Ne),n}Ms.Cache=Ne;var q_=500;function G_(t){var e=Ms(t,function(r){return n.size===q_&&n.clear(),r}),n=e.cache;return e}var U_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z_=/\\(\\)?/g,Q_=G_(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(U_,function(n,r,i,o){e.push(i?o.replace(Z_,"$1"):r||n)}),e});function K_(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Nh=xn?xn.prototype:void 0,Dh=Nh?Nh.toString:void 0;function jh(t){if(typeof t=="string")return t;if(yn(t))return K_(t,jh)+"";if(bs(t))return Dh?Dh.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function nr(t){return t==null?"":jh(t)}function J_(t,e){return yn(t)?t:i_(t,e)?[t]:Q_(nr(t))}function tx(t){if(typeof t=="string"||bs(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function ex(t,e){e=J_(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[tx(e[n++])];return n&&n==r?t:void 0}function Fh(t,e,n){var r=t==null?void 0:ex(t,e);return r===void 0?n:r}function Os(t,e){if(e.length===0)return{};const n=Array.isArray(t)?t[e[0]]:t.items[e[0]];if(e.length===1)return n;const r=e.slice(1).map(i=>`children[${i}]`).join(".");return Fh(n,r)}function rr(t){return t.trim().replace(/["']/g,"")}function mi(t){return t.startsWith('"')?t:/^\d/.test(t)?`"${t}"`:t.includes(" ")?`"${t}"`:t}const nx={100:"thin",hairline:"thin",200:"extralight",ultralight:"extralight",300:"light",400:"regular",normal:"regular",500:"medium",600:"semibold",demibold:"semibold",700:"bold",800:"extrabold",ultrabold:"bold",900:"black",heavy:"black",950:"extrablack",ultrablack:"extrablack"};function Bh(t){const e=String(t).toLowerCase();return nx[e]||"regular"}function rx(t,e={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:r}=t,i=[],o=l=>" ".repeat(l);function s(l,c,h){const u=e[l];return u?`${o(h)}/** ${u} */
4
+ `||e[st]===" "||e[st]===" ");)st++;let i;if(Gr(e)&&(i=Vn(e),i.type!==G.Hue)){n.push({type:G.Alpha,value:i});continue}if(No(e)&&Zr(e)==="none"){n.push({type:G.Alpha,value:{type:G.None,value:void 0}});continue}return}if(/\d/.test(r)){st--,n.push(Vn(e));continue}if(Lo.test(r)){st--,n.push(k2(e));continue}return}return n}function z2(t){t._i=0;let e=t[t._i++];if(!e||e.type!==G.Function||e.value!=="color"||(e=t[t._i++],e.type!==G.Ident))return;const n=Ec[e.value];if(!n)return;const r={mode:n},i=kc(t,!1);if(!i)return;const o=S2(n).channels;for(let s=0,a,l;s<o.length;s++)a=i[s],l=o[s],a.type!==G.None&&(r[l]=a.type===G.Number?a.value:a.value/100,l==="alpha"&&(r[l]=Math.max(0,Math.min(1,r[l]))));return r}function kc(t,e){const n=[];let r;for(;t._i<t.length;){if(r=t[t._i++],r.type===G.None||r.type===G.Number||r.type===G.Alpha||r.type===G.Percentage||e&&r.type===G.Hue){n.push(r);continue}if(r.type===G.ParenClose){if(t._i<t.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==G.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:G.None,value:void 0}),n.every(i=>i.type!==G.Alpha)?n:void 0}}function H2(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==G.Function)return;let r=kc(t,e);if(r)return r.unshift(n.value),r}const Se=t=>{if(typeof t!="string")return;const e=T2(t),n=e?H2(e,!0):void 0;let r,i=0,o=qr.length;for(;i<o;)if((r=qr[i++](t,n))!==void 0)return r;return e?z2(e):void 0};function R2(t,e){if(!e||e[0]!=="rgb"&&e[0]!=="rgba")return;const n={mode:"rgb"},[,r,i,o,s]=e;if(!(r.type===G.Hue||i.type===G.Hue||o.type===G.Hue))return r.type!==G.None&&(n.r=r.type===G.Number?r.value/255:r.value/100),i.type!==G.None&&(n.g=i.type===G.Number?i.value/255:i.value/100),o.type!==G.None&&(n.b=o.type===G.Number?o.value/255:o.value/100),s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const L2=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,N2=(t,e,n)=>t+n*(e-t),D2=t=>{let e=[];for(let n=0;n<t.length-1;n++){let r=t[n],i=t[n+1];r===void 0&&i===void 0?e.push(void 0):r!==void 0&&i!==void 0?e.push([r,i]):e.push(r!==void 0?[r,r]:[i,i])}return e},J=(t=>e=>{let n=D2(e);return r=>{let i=r*n.length,o=r>=1?n.length-1:Math.max(Math.floor(i),0),s=n[o];return s===void 0?void 0:t(s[0],s[1],i-o)}})(N2),Ft=t=>{let e=!1,n=t.map(r=>r!==void 0?(e=!0,r):1);return e?n:t},dn={mode:"rgb",channels:["r","g","b","alpha"],parse:[R2,b2,M2,x2,L2,"srgb"],serialize:"srgb",interpolate:{r:J,g:J,b:J,alpha:{use:J,fixup:Ft}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Do=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Tc=t=>{let e=Do(t.r),n=Do(t.g),r=Do(t.b),i={mode:"xyz65",x:.5766690429101305*e+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*e+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*e+.0706888525358272*n+.9913375368376386*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},jo=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),zc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"a98",r:jo(t*2.0415879038107465-e*.5650069742788597-.3447313507783297*n),g:jo(t*-.9692436362808798+e*1.8759675015077206+.0415550574071756*n),b:jo(t*.0134442806320312-e*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},Fo=(t=0)=>{const e=Math.abs(t);return e<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((e+.055)/1.055,2.4)},pn=({r:t,g:e,b:n,alpha:r})=>{let i={mode:"lrgb",r:Fo(t),g:Fo(e),b:Fo(n)};return r!==void 0&&(i.alpha=r),i},qe=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz65",x:.4123907992659593*e+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*e+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*e+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(o.alpha=i),o},Bo=(t=0)=>{const e=Math.abs(t);return e>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(e,1/2.4)-.055):t*12.92},gn=({r:t,g:e,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:Bo(t),g:Bo(e),b:Bo(n)};return r!==void 0&&(o.alpha=r),o},Ge=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*3.2409699419045226-e*1.537383177570094-.4986107602930034*n,g:t*-.9692436362808796+e*1.8759675015077204+.0415550574071756*n,b:t*.0556300796969936-e*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},j2=se(te({},dn),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>zc(qe(t)),xyz65:zc},toMode:{rgb:t=>Ge(Tc(t)),xyz65:Tc}}),qt=t=>(t=t%360)<0?t+360:t,F2=(t,e)=>t.map((n,r,i)=>{if(n===void 0)return n;let o=qt(n);return r===0||t[r-1]===void 0?o:e(o-qt(i[r-1]))}).reduce((n,r)=>!n.length||r===void 0||n[n.length-1]===void 0?(n.push(r),n):(n.push(r+n[n.length-1]),n),[]),Ie=t=>F2(t,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Wt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],B2=Math.PI/180,W2=180/Math.PI;let Hc=Wt[3]*Wt[4],Rc=Wt[1]*Wt[4],Lc=Wt[1]*Wt[2]-Wt[0]*Wt[3];const X2=({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(Lc*n+t*Hc-e*Rc)/(Lc+Hc-Rc),o=n-i,s=(Wt[4]*(e-i)-Wt[2]*o)/Wt[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(Wt[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*W2-120),r!==void 0&&(a.alpha=r),a},Y2=({h:t,s:e,l:n,alpha:r})=>{let i={mode:"rgb"};t=(t===void 0?0:t+120)*B2,n===void 0&&(n=0);let o=e===void 0?0:e*n*(1-n),s=Math.cos(t),a=Math.sin(t);return i.r=n+o*(Wt[0]*s+Wt[1]*a),i.g=n+o*(Wt[2]*s+Wt[3]*a),i.b=n+o*(Wt[4]*s+Wt[5]*a),r!==void 0&&(i.alpha=r),i},Qr=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.s||!e.s)return 0;let n=qt(t.h),r=qt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*i},V2=(t,e)=>{if(t.h===void 0||e.h===void 0)return 0;let n=qt(t.h),r=qt(e.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Kr=(t,e)=>{if(t.h===void 0||e.h===void 0||!t.c||!e.c)return 0;let n=qt(t.h),r=qt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*i},Ae=t=>{let e=t.reduce((r,i)=>{if(i!==void 0){let o=i*Math.PI/180;r.sin+=Math.sin(o),r.cos+=Math.cos(o)}return r},{sin:0,cos:0}),n=Math.atan2(e.sin,e.cos)*180/Math.PI;return n<0?360+n:n},q2={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:X2},toMode:{rgb:Y2},interpolate:{h:{use:J,fixup:Ie},s:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Qr},average:{h:Ae}},Re=({l:t,a:e,b:n,alpha:r},i="lch")=>{e===void 0&&(e=0),n===void 0&&(n=0);let o=Math.sqrt(e*e+n*n),s={mode:i,l:t,c:o};return o&&(s.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},Le=({l:t,c:e,h:n,alpha:r},i="lab")=>{n===void 0&&(n=0);let o={mode:i,l:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(o.alpha=r),o},Nc=Math.pow(29,3)/Math.pow(3,3),Dc=Math.pow(6,3)/Math.pow(29,3),jt={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},mn={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let Wo=t=>Math.pow(t,3)>Dc?Math.pow(t,3):(116*t-16)/Nc;const jc=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+16)/116,o=e/500+i,s=i-n/200,a={mode:"xyz65",x:Wo(o)*mn.X,y:Wo(i)*mn.Y,z:Wo(s)*mn.Z};return r!==void 0&&(a.alpha=r),a},Jr=t=>Ge(jc(t)),Xo=t=>t>Dc?Math.cbrt(t):(Nc*t+16)/116,Fc=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Xo(t/mn.X),o=Xo(e/mn.Y),s=Xo(n/mn.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},ti=t=>{let e=Fc(qe(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},ei=1,Bc=1,qn=26/180*Math.PI,ni=Math.cos(qn),ri=Math.sin(qn),Wc=100/Math.log(139/100),Yo=({l:t,c:e,h:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"lab65",l:(Math.exp(t*ei/Wc)-1)/.0039},o=(Math.exp(.0435*e*Bc*ei)-1)/.075,s=o*Math.cos(n/180*Math.PI-qn),a=o*Math.sin(n/180*Math.PI-qn);return i.a=s*ni-a/.83*ri,i.b=s*ri+a/.83*ni,r!==void 0&&(i.alpha=r),i},Vo=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=e*ni+n*ri,o=.83*(n*ni-e*ri),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:Wc/ei*Math.log(1+.0039*t),c:Math.log(1+.075*s)/(.0435*Bc*ei)};return a.c&&(a.h=qt((Math.atan2(o,i)+qn)/Math.PI*180)),r!==void 0&&(a.alpha=r),a},Xc=t=>Yo(Re(t,"dlch")),Yc=t=>Le(Vo(t),"dlab"),G2={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Xc,rgb:t=>Jr(Xc(t))},fromMode:{lab65:Yc,rgb:t=>Yc(ti(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},U2={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Yo,dlab:t=>Le(t,"dlab"),rgb:t=>Jr(Yo(t))},fromMode:{lab65:Vo,dlab:t=>Re(t,"dlch"),rgb:t=>Vo(ti(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:J,c:J,h:{use:J,fixup:Ie},alpha:{use:J,fixup:Ft}},difference:{h:Kr},average:{h:Ae}};function Z2({h:t,s:e,i:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.abs(t/60%2-1),o;switch(Math.floor(t/60)){case 0:o={r:n*(1+e*(3/(2-i)-1)),g:n*(1+e*(3*(1-i)/(2-i)-1)),b:n*(1-e)};break;case 1:o={r:n*(1+e*(3*(1-i)/(2-i)-1)),g:n*(1+e*(3/(2-i)-1)),b:n*(1-e)};break;case 2:o={r:n*(1-e),g:n*(1+e*(3/(2-i)-1)),b:n*(1+e*(3*(1-i)/(2-i)-1))};break;case 3:o={r:n*(1-e),g:n*(1+e*(3*(1-i)/(2-i)-1)),b:n*(1+e*(3/(2-i)-1))};break;case 4:o={r:n*(1+e*(3*(1-i)/(2-i)-1)),g:n*(1-e),b:n*(1+e*(3/(2-i)-1))};break;case 5:o={r:n*(1+e*(3/(2-i)-1)),g:n*(1-e),b:n*(1+e*(3*(1-i)/(2-i)-1))};break;default:o={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function Q2({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsi",s:t+e+n===0?0:1-3*o/(t+e+n),i:(t+e+n)/3};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const K2={mode:"hsi",toMode:{rgb:Z2},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Q2},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:J,fixup:Ie},s:J,i:J,alpha:{use:J,fixup:Ft}},difference:{h:Qr},average:{h:Ae}};function J2({h:t,s:e,l:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=n+e*(n<.5?n:1-n),o=i-(i-n)*2*Math.abs(t/60%2-1),s;switch(Math.floor(t/60)){case 0:s={r:i,g:o,b:2*n-i};break;case 1:s={r:o,g:i,b:2*n-i};break;case 2:s={r:2*n-i,g:i,b:o};break;case 3:s={r:2*n-i,g:o,b:i};break;case 4:s={r:o,g:2*n-i,b:i};break;case 5:s={r:i,g:2*n-i,b:o};break;default:s={r:2*n-i,g:2*n-i,b:2*n-i}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function ty({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsl",s:i===o?0:(i-o)/(1-Math.abs(i+o-1)),l:.5*(i+o)};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const ey=(t,e)=>{switch(e){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return t*360}},ny=new RegExp(`^hsla?\\(\\s*${w2}${un}${Yn}${un}${Yn}\\s*(?:,\\s*${Ho}\\s*)?\\)$`),ry=t=>{let e=t.match(ny);if(!e)return;let n={mode:"hsl"};return e[3]!==void 0?n.h=+e[3]:e[1]!==void 0&&e[2]!==void 0&&(n.h=ey(e[1],e[2])),e[4]!==void 0&&(n.s=Math.min(Math.max(0,e[4]/100),1)),e[5]!==void 0&&(n.l=Math.min(Math.max(0,e[5]/100),1)),e[6]!==void 0?n.alpha=Math.max(0,Math.min(1,e[6]/100)):e[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+e[7]))),n};function iy(t,e){if(!e||e[0]!=="hsl"&&e[0]!=="hsla")return;const n={mode:"hsl"},[,r,i,o,s]=e;if(r.type!==G.None){if(r.type===G.Percentage)return;n.h=r.value}if(i.type!==G.None){if(i.type===G.Hue)return;n.s=i.value/100}if(o.type!==G.None){if(o.type===G.Hue)return;n.l=o.value/100}return s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const Vc={mode:"hsl",toMode:{rgb:J2},fromMode:{rgb:ty},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[iy,ry],serialize:t=>`hsl(${t.h!==void 0?t.h:"none"} ${t.s!==void 0?t.s*100+"%":"none"} ${t.l!==void 0?t.l*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ie},s:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Qr},average:{h:Ae}};function qc({h:t,s:e,v:n,alpha:r}){t=qt(t!==void 0?t:0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.abs(t/60%2-1),o;switch(Math.floor(t/60)){case 0:o={r:n,g:n*(1-e*i),b:n*(1-e)};break;case 1:o={r:n*(1-e*i),g:n,b:n*(1-e)};break;case 2:o={r:n*(1-e),g:n,b:n*(1-e*i)};break;case 3:o={r:n*(1-e),g:n*(1-e*i),b:n};break;case 4:o={r:n*(1-e*i),g:n*(1-e),b:n};break;case 5:o={r:n,g:n*(1-e),b:n*(1-e*i)};break;default:o={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function Gc({r:t,g:e,b:n,alpha:r}){t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsv",s:i===0?0:1-o/i,v:i};return i-o!==0&&(s.h=(i===t?(e-n)/(i-o)+(e<n)*6:i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const Uc={mode:"hsv",toMode:{rgb:qc},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Gc},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:J,fixup:Ie},s:J,v:J,alpha:{use:J,fixup:Ft}},difference:{h:Qr},average:{h:Ae}};function oy({h:t,w:e,b:n,alpha:r}){if(e===void 0&&(e=0),n===void 0&&(n=0),e+n>1){let i=e+n;e/=i,n/=i}return qc({h:t,s:n===1?1:1-e/(1-n),v:1-n,alpha:r})}function sy(t){let e=Gc(t);if(e===void 0)return;let n=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,i={mode:"hwb",w:(1-n)*r,b:1-r};return e.h!==void 0&&(i.h=e.h),e.alpha!==void 0&&(i.alpha=e.alpha),i}function ay(t,e){if(!e||e[0]!=="hwb")return;const n={mode:"hwb"},[,r,i,o,s]=e;if(r.type!==G.None){if(r.type===G.Percentage)return;n.h=r.value}if(i.type!==G.None){if(i.type===G.Hue)return;n.w=i.value/100}if(o.type!==G.None){if(o.type===G.Hue)return;n.b=o.value/100}return s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const ly={mode:"hwb",toMode:{rgb:oy},fromMode:{rgb:sy},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[ay],serialize:t=>`hwb(${t.h!==void 0?t.h:"none"} ${t.w!==void 0?t.w*100+"%":"none"} ${t.b!==void 0?t.b*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ie},w:J,b:J,alpha:{use:J,fixup:Ft}},difference:{h:V2},average:{h:Ae}},Zc=203,ii=.1593017578125,Qc=78.84375,oi=.8359375,si=18.8515625,ai=18.6875;function qo(t){if(t<0)return 0;const e=Math.pow(t,1/Qc);return 1e4*Math.pow(Math.max(0,e-oi)/(si-ai*e),1/ii)}function Go(t){if(t<0)return 0;const e=Math.pow(t/1e4,ii);return Math.pow((oi+si*e)/(1+ai*e),Qc)}const Uo=t=>Math.max(t/Zc,0),Kc=({i:t,t:e,p:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i=qo(t+.008609037037932761*e+.11102962500302593*n),o=qo(t-.00860903703793275*e-.11102962500302599*n),s=qo(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:Uo(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:Uo(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:Uo(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return r!==void 0&&(a.alpha=r),a},Zo=(t=0)=>Math.max(t*Zc,0),Jc=({x:t,y:e,z:n,alpha:r})=>{const i=Zo(t),o=Zo(e),s=Zo(n),a=Go(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=Go(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=Go(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),h=.5*a+.5*l,u=1.61376953125*a-3.323486328125*l+1.709716796875*c,d=4.378173828125*a-4.24560546875*l-.132568359375*c,p={mode:"itp",i:h,t:u,p:d};return r!==void 0&&(p.alpha=r),p},cy={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Kc,rgb:t=>Ge(Kc(t))},fromMode:{xyz65:Jc,rgb:t=>Jc(qe(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:J,t:J,p:J,alpha:{use:J,fixup:Ft}}},hy=134.03437499999998,fy=16295499532821565e-27,Qo=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,ii);return Math.pow((oi+si*e)/(1+ai*e),hy)},Ko=(t=0)=>Math.max(t*203,0),th=({x:t,y:e,z:n,alpha:r})=>{t=Ko(t),e=Ko(e),n=Ko(n);let i=1.15*t-.15*n,o=.66*e+.34*t,s=Qo(.41478972*i+.579999*o+.014648*n),a=Qo(-.20151*i+1.120649*o+.0531008*n),l=Qo(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,h={mode:"jab",j:.44*c/(1-.56*c)-fy,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return r!==void 0&&(h.alpha=r),h},uy=134.03437499999998,eh=16295499532821565e-27,Jo=t=>{if(t<0)return 0;let e=Math.pow(t,1/uy);return 1e4*Math.pow((oi-e)/(ai*e-si),1/ii)},ts=t=>t/203,nh=({j:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+eh)/(.44+.56*(t+eh)),o=Jo(i+.13860504*e+.058047316*n),s=Jo(i-.13860504*e-.058047316*n),a=Jo(i-.096019242*e-.8118919*n),l={mode:"xyz65",x:ts(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:ts(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:ts(-.090982811*o-.31272829*s+1.5227666*a)};return r!==void 0&&(l.alpha=r),l},rh=t=>{let e=th(qe(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},ih=t=>Ge(nh(t)),dy={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:rh,xyz65:th},toMode:{rgb:ih,xyz65:nh},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},oh=({j:t,a:e,b:n,alpha:r})=>{e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"jch",j:t,c:i};return i&&(o.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},sh=({j:t,c:e,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"jab",j:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},py={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:sh,rgb:t=>ih(sh(t))},fromMode:{rgb:t=>oh(rh(t)),jab:oh},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:J,fixup:Ie},c:J,j:J,alpha:{use:J,fixup:Ft}},difference:{h:Kr},average:{h:Ae}},li=Math.pow(29,3)/Math.pow(3,3),es=Math.pow(6,3)/Math.pow(29,3);let ns=t=>Math.pow(t,3)>es?Math.pow(t,3):(116*t-16)/li;const rs=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=(t+16)/116,o=e/500+i,s=i-n/200,a={mode:"xyz50",x:ns(o)*jt.X,y:ns(i)*jt.Y,z:ns(s)*jt.Z};return r!==void 0&&(a.alpha=r),a},Gn=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*3.1341359569958707-e*1.6173863321612538-.4906619460083532*n,g:t*-.978795502912089+e*1.916254567259524+.03344273116131949*n,b:t*.07195537988411677-e*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},ah=t=>Gn(rs(t)),Un=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz50",x:.436065742824811*e+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*e+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*e+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(o.alpha=i),o},is=t=>t>es?Math.cbrt(t):(li*t+16)/116,os=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=is(t/jt.X),o=is(e/jt.Y),s=is(n/jt.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},lh=t=>{let e=os(Un(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};function gy(t,e){if(!e||e[0]!=="lab")return;const n={mode:"lab"},[,r,i,o,s]=e;if(!(r.type===G.Hue||i.type===G.Hue||o.type===G.Hue))return r.type!==G.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==G.None&&(n.a=i.type===G.Number?i.value:i.value*125/100),o.type!==G.None&&(n.b=o.type===G.Number?o.value:o.value*125/100),s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const ss={mode:"lab",toMode:{xyz50:rs,rgb:ah},fromMode:{xyz50:os,rgb:lh},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[gy],serialize:t=>`lab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:J,a:J,b:J,alpha:{use:J,fixup:Ft}}},my=se(te({},ss),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:jc,rgb:Jr},fromMode:{xyz65:Fc,rgb:ti},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});function yy(t,e){if(!e||e[0]!=="lch")return;const n={mode:"lch"},[,r,i,o,s]=e;if(r.type!==G.None){if(r.type===G.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==G.None&&(n.c=Math.max(0,i.type===G.Number?i.value:i.value*150/100)),o.type!==G.None){if(o.type===G.Percentage)return;n.h=o.value}return s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const as={mode:"lch",toMode:{lab:Le,rgb:t=>ah(Le(t))},fromMode:{rgb:t=>Re(lh(t)),lab:Re},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[yy],serialize:t=>`lch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:J,fixup:Ie},c:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Kr},average:{h:Ae}},_y=se(te({},as),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Le(t,"lab65"),rgb:t=>Jr(Le(t,"lab65"))},fromMode:{rgb:t=>Re(ti(t),"lch65"),lab65:t=>Re(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),ch=({l:t,u:e,v:n,alpha:r})=>{e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"lchuv",l:t,c:i};return i&&(o.h=qt(Math.atan2(n,e)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},hh=({l:t,c:e,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"luv",l:t,u:e?e*Math.cos(n/180*Math.PI):0,v:e?e*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},fh=(t,e,n)=>4*t/(t+15*e+3*n),uh=(t,e,n)=>9*e/(t+15*e+3*n),xy=fh(jt.X,jt.Y,jt.Z),vy=uh(jt.X,jt.Y,jt.Z),by=t=>t<=es?li*t:116*Math.cbrt(t)-16,ls=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=by(e/jt.Y),o=fh(t,e,n),s=uh(t,e,n);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-xy),s=13*i*(s-vy));let a={mode:"luv",l:i,u:o,v:s};return r!==void 0&&(a.alpha=r),a},wy=(t,e,n)=>4*t/(t+15*e+3*n),$y=(t,e,n)=>9*e/(t+15*e+3*n),Py=wy(jt.X,jt.Y,jt.Z),My=$y(jt.X,jt.Y,jt.Z),cs=({l:t,u:e,v:n,alpha:r})=>{if(t===void 0&&(t=0),t===0)return{mode:"xyz50",x:0,y:0,z:0};e===void 0&&(e=0),n===void 0&&(n=0);let i=e/(13*t)+Py,o=n/(13*t)+My,s=jt.Y*(t<=8?t/li:Math.pow((t+16)/116,3)),a=s*(9*i)/(4*o),l=s*(12-3*i-20*o)/(4*o),c={mode:"xyz50",x:a,y:s,z:l};return r!==void 0&&(c.alpha=r),c},Oy={mode:"lchuv",toMode:{luv:hh,rgb:t=>Gn(cs(hh(t)))},fromMode:{rgb:t=>ch(ls(Un(t))),luv:ch},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:J,fixup:Ie},c:J,l:J,alpha:{use:J,fixup:Ft}},difference:{h:Kr},average:{h:Ae}},Cy=se(te({},dn),{mode:"lrgb",toMode:{rgb:gn},fromMode:{rgb:pn},parse:["srgb-linear"],serialize:"srgb-linear"}),Sy={mode:"luv",toMode:{xyz50:cs,rgb:t=>Gn(cs(t))},fromMode:{xyz50:ls,rgb:t=>ls(Un(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:J,u:J,v:J,alpha:{use:J,fixup:Ft}}},dh=({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*t+.5363325372617348*e+.0514459932675022*n),o=Math.cbrt(.2119034958178252*t+.6806995506452344*e+.1073969535369406*n),s=Math.cbrt(.0883024591900564*t+.2817188391361215*e+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*i+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*i-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*i+.7827717124575296*o-.8086757549230774*s};return r!==void 0&&(a.alpha=r),a},ci=t=>{let e=dh(pn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Zn=({l:t,a:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=Math.pow(t+.3963377773761749*e+.2158037573099136*n,3),o=Math.pow(t-.1055613458156586*e-.0638541728258133*n,3),s=Math.pow(t-.0894841775298119*e-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*i-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*i+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*i-.7034186179359362*o+1.7076146940746117*s};return r!==void 0&&(a.alpha=r),a},hi=t=>gn(Zn(t));function hs(t){const r=1.170873786407767;return .5*(r*t-.206+Math.sqrt((r*t-.206)*(r*t-.206)+4*.03*r*t))}function fi(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function Iy(t,e){let n,r,i,o,s,a,l,c;-1.88170328*t-.80936493*e>1?(n=1.19086277,r=1.76576728,i=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*t-1.19445276*e>1?(n=.73956515,r=-.45954404,i=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let h=n+r*t+i*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,d=-.1055613458*t-.0638541728*e,p=-.0894841775*t-1.291485548*e;{let g=1+h*u,y=1+h*d,m=1+h*p,x=g*g*g,_=y*y*y,v=m*m*m,b=3*u*g*g,P=3*d*y*y,w=3*p*m*m,$=6*u*u*g,M=6*d*d*y,A=6*p*p*m,I=a*x+l*_+c*v,C=a*b+l*P+c*w,k=a*$+l*M+c*A;h=h-I*C/(C*C-.5*I*k)}return h}function fs(t,e){let n=Iy(t,e),r=Zn({l:1,a:n*t,b:n*e}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b)),o=i*n;return[i,o]}function Ay(t,e,n,r,i,o=null){o||(o=fs(t,e));let s;if((n-i)*o[1]-(o[0]-i)*r<=0)s=o[1]*i/(r*o[0]+o[1]*(i-n));else{s=o[1]*(i-1)/(r*(o[0]-1)+o[1]*(i-n));{let a=n-i,l=r,c=.3963377774*t+.2158037573*e,h=-.1055613458*t-.0638541728*e,u=-.0894841775*t-1.291485548*e,d=a+l*c,p=a+l*h,g=a+l*u;{let y=i*(1-s)+s*n,m=s*r,x=y+m*c,_=y+m*h,v=y+m*u,b=x*x*x,P=_*_*_,w=v*v*v,$=3*d*x*x,M=3*p*_*_,A=3*g*v*v,I=6*d*d*x,C=6*p*p*_,k=6*g*g*v,E=4.0767416621*b-3.3077115913*P+.2309699292*w-1,L=4.0767416621*$-3.3077115913*M+.2309699292*A,F=4.0767416621*I-3.3077115913*C+.2309699292*k,z=L/(L*L-.5*E*F),j=-E*z,R=-1.2684380046*b+2.6097574011*P-.3413193965*w-1,H=-1.2684380046*$+2.6097574011*M-.3413193965*A,D=-1.2684380046*I+2.6097574011*C-.3413193965*k,B=H/(H*H-.5*R*D),T=-R*B,O=-.0041960863*b-.7034186147*P+1.707614701*w-1,X=-.0041960863*$-.7034186147*M+1.707614701*A,V=-.0041960863*I-.7034186147*C+1.707614701*k,et=X/(X*X-.5*O*V),q=-O*et;j=z>=0?j:1e6,T=B>=0?T:1e6,q=et>=0?q:1e6,s+=Math.min(j,Math.min(T,q))}}}return s}function us(t,e,n=null){n||(n=fs(t,e));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function ph(t,e,n){let r=fs(e,n),i=Ay(e,n,t,1,t,r),o=us(e,n,r),s=.11516993+1/(7.4477897+4.1590124*n+e*(-2.19557347+1.75198401*n+e*(-2.13704948-10.02301043*n+e*(-4.24894561+5.38770819*n+4.69891013*e)))),a=.11239642+1/(1.6132032-.68124379*n+e*(.40370612+.90148123*n+e*(-.27087943+.6122399*n+e*(.00299215-.45399568*n-.14661872*e)))),l=i/Math.min(t*o[0],(1-t)*o[1]),c=t*s,h=(1-t)*a,u=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(h*h*h*h))));return c=t*.4,h=(1-t)*.8,[Math.sqrt(1/(1/(c*c)+1/(h*h))),u,i]}function gh(t){const e=t.l!==void 0?t.l:0,n=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,i={mode:"okhsl",l:hs(e)};t.alpha!==void 0&&(i.alpha=t.alpha);let o=Math.sqrt(n*n+r*r);if(!o)return i.s=0,i;let[s,a,l]=ph(e,n/o,r/o),c;if(o<a){let h=0,u=.8*s,d=1-u/a;c=(o-h)/(u+d*(o-h))*.8}else{let h=a,u=.2*a*a*1.25*1.25/s,d=1-u/(l-a);c=.8+.2*((o-h)/(u+d*(o-h)))}return c&&(i.s=c,i.h=qt(Math.atan2(r,n)*180/Math.PI)),i}function mh(t){let e=t.h!==void 0?t.h:0,n=t.s!==void 0?t.s:0,r=t.l!==void 0?t.l:0;const i={mode:"oklab",l:fi(r)};if(t.alpha!==void 0&&(i.alpha=t.alpha),!n||r===1)return i.a=i.b=0,i;let o=Math.cos(e/180*Math.PI),s=Math.sin(e/180*Math.PI),[a,l,c]=ph(i.l,o,s),h,u,d,p;n<.8?(h=1.25*n,u=0,d=.8*a,p=1-d/l):(h=5*(n-.8),u=l,d=.2*l*l*1.25*1.25/a,p=1-d/(c-l));let g=u+h*d/(1-p*h);return i.a=g*o,i.b=g*s,i}const Ey=se(te({},Vc),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:gh,rgb:t=>gh(ci(t))},toMode:{oklab:mh,rgb:t=>hi(mh(t))}});function yh(t){let e=t.l!==void 0?t.l:0,n=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,i=Math.sqrt(n*n+r*r),o=i?n/i:1,s=i?r/i:1,[a,l]=us(o,s),c=.5,h=1-c/a,u=l/(i+e*l),d=u*e,p=u*i,g=fi(d),y=p*g/d,m=Zn({l:g,a:o*y,b:s*y}),x=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));e=e/x,i=i/x*hs(e)/e,e=hs(e);const _={mode:"okhsv",s:i?(c+l)*p/(l*c+l*h*p):0,v:e?e/d:0};return _.s&&(_.h=qt(Math.atan2(r,n)*180/Math.PI)),t.alpha!==void 0&&(_.alpha=t.alpha),_}function _h(t){const e={mode:"oklab"};t.alpha!==void 0&&(e.alpha=t.alpha);const n=t.h!==void 0?t.h:0,r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=us(o,s),c=.5,h=1-c/a,u=1-r*c/(c+l-l*h*r),d=r*l*c/(c+l-l*h*r),p=fi(u),g=d*p/u,y=Zn({l:p,a:o*g,b:s*g}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),x=fi(i*u),_=d*x/u;return e.l=x*m,e.a=_*o*m,e.b=_*s*m,e}const ky=se(te({},Uc),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:yh,rgb:t=>yh(ci(t))},toMode:{oklab:_h,rgb:t=>hi(_h(t))}});function Ty(t,e){if(!e||e[0]!=="oklab")return;const n={mode:"oklab"},[,r,i,o,s]=e;if(!(r.type===G.Hue||i.type===G.Hue||o.type===G.Hue))return r.type!==G.None&&(n.l=Math.min(Math.max(0,r.type===G.Number?r.value:r.value/100),1)),i.type!==G.None&&(n.a=i.type===G.Number?i.value:i.value*.4/100),o.type!==G.None&&(n.b=o.type===G.Number?o.value:o.value*.4/100),s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const zy=se(te({},ss),{mode:"oklab",toMode:{lrgb:Zn,rgb:hi},fromMode:{lrgb:dh,rgb:ci},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ty],serialize:t=>`oklab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`});function Hy(t,e){if(!e||e[0]!=="oklch")return;const n={mode:"oklch"},[,r,i,o,s]=e;if(r.type!==G.None){if(r.type===G.Hue)return;n.l=Math.min(Math.max(0,r.type===G.Number?r.value:r.value/100),1)}if(i.type!==G.None&&(n.c=Math.max(0,i.type===G.Number?i.value:i.value*.4/100)),o.type!==G.None){if(o.type===G.Percentage)return;n.h=o.value}return s.type!==G.None&&(n.alpha=Math.min(1,Math.max(0,s.type===G.Number?s.value:s.value/100))),n}const xh=se(te({},as),{mode:"oklch",toMode:{oklab:t=>Le(t,"oklab"),rgb:t=>hi(Le(t,"oklab"))},fromMode:{rgb:t=>Re(ci(t),"oklch"),oklab:t=>Re(t,"oklch")},parse:[Hy],serialize:t=>`oklch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),vh=t=>{let{r:e,g:n,b:r,alpha:i}=pn(t),o={mode:"xyz65",x:.486570948648216*e+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*e+.6917385218365062*n+.079286914093745*r,z:0*e+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(o.alpha=i),o},bh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i=gn({r:t*2.4934969119414263-e*.9313836179191242-.402710784450717*n,g:t*-.8294889695615749+e*1.7626640603183465+.0236246858419436*n,b:t*.0358458302437845-e*.0761723892680418+.9568845240076871*n},"p3");return r!==void 0&&(i.alpha=r),i},Ry=se(te({},dn),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>bh(qe(t)),xyz65:bh},toMode:{rgb:t=>Ge(vh(t)),xyz65:vh}}),ds=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},wh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"prophoto",r:ds(t*1.3457868816471585-e*.2555720873797946-.0511018649755453*n),g:ds(t*-.5446307051249019+e*1.5082477428451466+.0205274474364214*n),b:ds(t*0+e*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},ps=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},$h=t=>{let e=ps(t.r),n=ps(t.g),r=ps(t.b),i={mode:"xyz50",x:.7977666449006423*e+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*e+.7118352342418731*n+899369387256e-16*r,z:0*e+0*n+.8251046025104602*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},Ly=se(te({},dn),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:wh,rgb:t=>wh(Un(t))},toMode:{xyz50:$h,rgb:t=>Gn($h(t))}}),Ph=1.09929682680944,Ny=.018053968510807,gs=t=>{const e=Math.abs(t);return e>Ny?(Math.sign(t)||1)*(Ph*Math.pow(e,.45)-(Ph-1)):4.5*t},Mh=({x:t,y:e,z:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);let i={mode:"rec2020",r:gs(t*1.7166511879712683-e*.3556707837763925-.2533662813736599*n),g:gs(t*-.6666843518324893+e*1.6164812366349395+.0157685458139111*n),b:gs(t*.0176398574453108-e*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Oh=1.09929682680944,Dy=.018053968510807,ms=(t=0)=>{let e=Math.abs(t);return e<Dy*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((e+Oh-1)/Oh,1/.45)},Ch=t=>{let e=ms(t.r),n=ms(t.g),r=ms(t.b),i={mode:"xyz65",x:.6369580483012911*e+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*e+.6779980715188708*n+.059301716469862*r,z:0*e+.0280726930490874*n+1.0609850577107909*r};return t.alpha!==void 0&&(i.alpha=t.alpha),i},jy=se(te({},dn),{mode:"rec2020",fromMode:{xyz65:Mh,rgb:t=>Mh(qe(t))},toMode:{xyz65:Ch,rgb:t=>Ge(Ch(t))},parse:["rec2020"],serialize:"rec2020"}),Ue=.0037930732552754493,Sh=Math.cbrt(Ue),ys=t=>Math.cbrt(t)-Sh,Fy=t=>{const{r:e,g:n,b:r,alpha:i}=pn(t),o=ys(.3*e+.622*n+.078*r+Ue),s=ys(.23*e+.692*n+.078*r+Ue),a=ys(.2434226892454782*e+.2047674442449682*n+.5518098665095535*r+Ue),l={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(l.alpha=i),l},_s=t=>Math.pow(t+Sh,3),By={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:t,y:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i=_s(t+e)-Ue,o=_s(e-t)-Ue,s=_s(n+e)-Ue,a=gn({r:11.031566904639861*i-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*i+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*i+2.7129230459360922*o+1.9459282407775895*s});return r!==void 0&&(a.alpha=r),a}},fromMode:{rgb:Fy},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:J,y:J,b:J,alpha:{use:J,fixup:Ft}}},Wy={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Gn,lab:os},fromMode:{rgb:Un,lab:rs},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:J,y:J,z:J,alpha:{use:J,fixup:Ft}}},Xy={mode:"xyz65",toMode:{rgb:Ge,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;e===void 0&&(e=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz50",x:1.0479298208405488*e+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*e+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*e+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(o.alpha=i),o}},fromMode:{rgb:qe,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;e===void 0&&(e=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz65",x:.9554734527042182*e-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*e+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*e-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(o.alpha=i),o}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:J,y:J,z:J,alpha:{use:J,fixup:Ft}}},Yy={mode:"yiq",toMode:{rgb:({y:t,i:e,q:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i={mode:"rgb",r:t+.95608445*e+.6208885*n,g:t-.27137664*e-.6486059*n,b:t-1.10561724*e+1.70250126*n};return r!==void 0&&(i.alpha=r),i}},fromMode:{rgb:({r:t,g:e,b:n,alpha:r})=>{t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0);const i={mode:"yiq",y:.29889531*t+.58662247*e+.11448223*n,i:.59597799*t-.2741761*e-.32180189*n,q:.21147017*t-.52261711*e+.31114694*n};return r!==void 0&&(i.alpha=r),i}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:J,i:J,q:J,alpha:{use:J,fixup:Ft}}},Vy=t=>Math.max(0,Math.min(1,t||0)),ui=t=>Math.round(Vy(t)*255),Ih=Ro("rgb"),Ah=t=>{if(t===void 0)return;let e=ui(t.r),n=ui(t.g),r=ui(t.b);return"#"+(1<<24|e<<16|n<<8|r).toString(16).slice(1)},qy=t=>{if(t===void 0)return;let e=ui(t.alpha!==void 0?t.alpha:1);return Ah(t)+(256|e).toString(16).slice(1)},Qn=t=>Ah(Ih(t)),Gy=t=>qy(Ih(t));function xs(t){let e=Ro("lrgb")(t);return .2126*e.r+.7152*e.g+.0722*e.b}function vs(t,e){let n=xs(t),r=xs(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}bt(j2),bt(q2),bt(G2),bt(U2),bt(K2),bt(Vc),bt(Uc),bt(ly),bt(cy),bt(dy),bt(py),bt(ss),bt(my),bt(as),bt(_y),bt(Oy),bt(Cy),bt(Sy),bt(Ey),bt(ky),bt(zy);const Eh=bt(xh);bt(Ry),bt(Ly),bt(jy),bt(dn),bt(By),bt(Wy),bt(Xy),bt(Yy);function Kn(t){if(!t)return!1;const e=t.trim().toLowerCase();return!(e==="none"||e==="transparent"||e==="")}function kh(t){const e=Se(t);return e?xs(e)<.5:!1}var yn=Array.isArray,Th=typeof global=="object"&&global&&global.Object===Object&&global,Uy=typeof self=="object"&&self&&self.Object===Object&&self,_n=Th||Uy||Function("return this")(),xn=_n.Symbol,zh=Object.prototype,Zy=zh.hasOwnProperty,Qy=zh.toString,Jn=xn?xn.toStringTag:void 0;function Ky(t){var e=Zy.call(t,Jn),n=t[Jn];try{t[Jn]=void 0;var r=!0}catch(o){}var i=Qy.call(t);return r&&(e?t[Jn]=n:delete t[Jn]),i}var Jy=Object.prototype,t_=Jy.toString;function e_(t){return t_.call(t)}var n_="[object Null]",r_="[object Undefined]",Hh=xn?xn.toStringTag:void 0;function tr(t){return t==null?t===void 0?r_:n_:Hh&&Hh in Object(t)?Ky(t):e_(t)}function vn(t){return t!=null&&typeof t=="object"}var i_="[object Symbol]";function bs(t){return typeof t=="symbol"||vn(t)&&tr(t)==i_}var o_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s_=/^\w*$/;function a_(t,e){if(yn(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||bs(t)?!0:s_.test(t)||!o_.test(t)||e!=null&&t in Object(e)}function Ze(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var l_="[object AsyncFunction]",c_="[object Function]",h_="[object GeneratorFunction]",f_="[object Proxy]";function ws(t){if(!Ze(t))return!1;var e=tr(t);return e==c_||e==h_||e==l_||e==f_}var $s=_n["__core-js_shared__"],Rh=(function(){var t=/[^.]+$/.exec($s&&$s.keys&&$s.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function u_(t){return!!Rh&&Rh in t}var d_=Function.prototype,p_=d_.toString;function g_(t){if(t!=null){try{return p_.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var m_=/[\\^$.*+?()[\]{}|]/g,y_=/^\[object .+?Constructor\]$/,__=Function.prototype,x_=Object.prototype,v_=__.toString,b_=x_.hasOwnProperty,w_=RegExp("^"+v_.call(b_).replace(m_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $_(t){if(!Ze(t)||u_(t))return!1;var e=ws(t)?w_:y_;return e.test(g_(t))}function P_(t,e){return t==null?void 0:t[e]}function Ps(t,e){var n=P_(t,e);return $_(n)?n:void 0}var er=Ps(Object,"create");function M_(){this.__data__=er?er(null):{},this.size=0}function O_(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var C_="__lodash_hash_undefined__",S_=Object.prototype,I_=S_.hasOwnProperty;function A_(t){var e=this.__data__;if(er){var n=e[t];return n===C_?void 0:n}return I_.call(e,t)?e[t]:void 0}var E_=Object.prototype,k_=E_.hasOwnProperty;function T_(t){var e=this.__data__;return er?e[t]!==void 0:k_.call(e,t)}var z_="__lodash_hash_undefined__";function H_(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=er&&e===void 0?z_:e,this}function Qe(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Qe.prototype.clear=M_,Qe.prototype.delete=O_,Qe.prototype.get=A_,Qe.prototype.has=T_,Qe.prototype.set=H_;function R_(){this.__data__=[],this.size=0}function di(t,e){return t===e||t!==t&&e!==e}function pi(t,e){for(var n=t.length;n--;)if(di(t[n][0],e))return n;return-1}var L_=Array.prototype,N_=L_.splice;function D_(t){var e=this.__data__,n=pi(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():N_.call(e,n,1),--this.size,!0}function j_(t){var e=this.__data__,n=pi(e,t);return n<0?void 0:e[n][1]}function F_(t){return pi(this.__data__,t)>-1}function B_(t,e){var n=this.__data__,r=pi(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Ee(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ee.prototype.clear=R_,Ee.prototype.delete=D_,Ee.prototype.get=j_,Ee.prototype.has=F_,Ee.prototype.set=B_;var Lh=Ps(_n,"Map");function W_(){this.size=0,this.__data__={hash:new Qe,map:new(Lh||Ee),string:new Qe}}function X_(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function gi(t,e){var n=t.__data__;return X_(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Y_(t){var e=gi(this,t).delete(t);return this.size-=e?1:0,e}function V_(t){return gi(this,t).get(t)}function q_(t){return gi(this,t).has(t)}function G_(t,e){var n=gi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ne(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ne.prototype.clear=W_,Ne.prototype.delete=Y_,Ne.prototype.get=V_,Ne.prototype.has=q_,Ne.prototype.set=G_;var U_="Expected a function";function Ms(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(U_);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ms.Cache||Ne),n}Ms.Cache=Ne;var Z_=500;function Q_(t){var e=Ms(t,function(r){return n.size===Z_&&n.clear(),r}),n=e.cache;return e}var K_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J_=/\\(\\)?/g,tx=Q_(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(K_,function(n,r,i,o){e.push(i?o.replace(J_,"$1"):r||n)}),e});function ex(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Nh=xn?xn.prototype:void 0,Dh=Nh?Nh.toString:void 0;function jh(t){if(typeof t=="string")return t;if(yn(t))return ex(t,jh)+"";if(bs(t))return Dh?Dh.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function nr(t){return t==null?"":jh(t)}function nx(t,e){return yn(t)?t:a_(t,e)?[t]:tx(nr(t))}function rx(t){if(typeof t=="string"||bs(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function ix(t,e){e=nx(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[rx(e[n++])];return n&&n==r?t:void 0}function Fh(t,e,n){var r=t==null?void 0:ix(t,e);return r===void 0?n:r}function Os(t,e){if(e.length===0)return{};const n=Array.isArray(t)?t[e[0]]:t.items[e[0]];if(e.length===1)return n;const r=e.slice(1).map(i=>`children[${i}]`).join(".");return Fh(n,r)}function rr(t){return t.trim().replace(/["']/g,"")}function mi(t){return t.startsWith('"')?t:/^\d/.test(t)?`"${t}"`:t.includes(" ")?`"${t}"`:t}const ox={100:"thin",hairline:"thin",200:"extralight",ultralight:"extralight",300:"light",400:"regular",normal:"regular",500:"medium",600:"semibold",demibold:"semibold",700:"bold",800:"extrabold",ultrabold:"bold",900:"black",heavy:"black",950:"extrablack",ultrablack:"extrablack"};function Bh(t){const e=String(t).toLowerCase();return ox[e]||"regular"}function sx(t,e={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:r}=t,i=[],o=l=>" ".repeat(l);function s(l,c,h){const u=e[l];return u?`${o(h)}/** ${u} */
5
5
  ${o(h)}${l}: ${c};`:`${o(h)}${l}: ${c};`}function a(l,c){const h=r[l],u=[];for(const d of h){const p=d==="value"?"number":"string";u.push(s(d,p,c+1))}return r[l+1]&&u.push(s("children",`Array<${a(l+1,c+1)}>`,c+1)),`{
6
6
  ${u.join(`
7
7
  `)}
8
8
  ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push(s("title","string",1)),i.push(s("desc","string",1))),n.includes("item")&&r.length>0&&i.push(s("items",`Array<${a(0,1)}>`,1)),i.push("}"),i.join(`
9
- `)}var De=(t=>(t.Background="background",t.Text="text",t.IconGroup="icon-group",t.Icon="icon",t.Geometry="geometry",t.Button="button",t.IllusGroup="illus-group",t.IllusVolume="illus-volume",t.Illus="illus",t))(De||{}),ix=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function ox(t){return t.startsWith("data:")}function Wh(t){return ix(this,null,function*(){var e;if(!t||!ox(t))return null;const n=(e=t.match(/^data:([^;]+)/))==null?void 0:e[1];if(!n)return null;const r=()=>new Promise((c,h)=>{const u=new Image;u.onload=()=>{const d=u.naturalWidth,p=u.naturalHeight,g=document.createElement("canvas"),y=g.getContext("2d");if(!y)return c({width:d,height:p,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return c({width:d,height:p,hasAlpha:!1});g.width=d,g.height=p,y.drawImage(u,0,0);let m=!1;const x=10;for(let _=0;_<d&&!m;_+=x)for(let v=0;v<p;v+=x)if(y.getImageData(_,v,1,1).data[3]<255){m=!0;break}c({width:d,height:p,hasAlpha:m})},u.onerror=()=>h(new Error("Failed to analysis image")),u.src=t}),{width:i,height:o,hasAlpha:s}=yield r(),l=(()=>{if(s||n!=null&&n.includes("image/gif")||n!=null&&n.includes("image/svg")||Math.min(i,o)<=200)return"xMidYMid meet";const h=i/o;return h>=.6&&h<=1.67||h<.3||h>3.33?"xMidYMid meet":"xMidYMid slice"})();return bn(`
9
+ `)}var De=(t=>(t.Background="background",t.Text="text",t.IconGroup="icon-group",t.Icon="icon",t.Geometry="geometry",t.Button="button",t.IllusGroup="illus-group",t.IllusVolume="illus-volume",t.Illus="illus",t))(De||{}),ax=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function lx(t){return t.startsWith("data:")}function Wh(t){return ax(this,null,function*(){var e;if(!t||!lx(t))return null;const n=(e=t.match(/^data:([^;]+)/))==null?void 0:e[1];if(!n)return null;const r=()=>new Promise((c,h)=>{const u=new Image;u.onload=()=>{const d=u.naturalWidth,p=u.naturalHeight,g=document.createElement("canvas"),y=g.getContext("2d");if(!y)return c({width:d,height:p,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return c({width:d,height:p,hasAlpha:!1});g.width=d,g.height=p,y.drawImage(u,0,0);let m=!1;const x=10;for(let _=0;_<d&&!m;_+=x)for(let v=0;v<p;v+=x)if(y.getImageData(_,v,1,1).data[3]<255){m=!0;break}c({width:d,height:p,hasAlpha:m})},u.onerror=()=>h(new Error("Failed to analysis image")),u.src=t}),{width:i,height:o,hasAlpha:s}=yield r(),l=(()=>{if(s||n!=null&&n.includes("image/gif")||n!=null&&n.includes("image/svg")||Math.min(i,o)<=200)return"xMidYMid meet";const h=i/o;return h>=.6&&h<=1.67||h<.3||h>3.33?"xMidYMid meet":"xMidYMid slice"})();return bn(`
10
10
  <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${i} ${o}" preserveAspectRatio="${l}">
11
11
  <image href="${t}" width="${i}" height="${o}" />
12
- </symbol>`)})}function sx(t){return t.startsWith("<svg")||t.startsWith("<symbol")}function Cs(t){if(!t||!sx(t))return null;const e=t.startsWith("<svg")?t.replace(/<svg/,"<symbol").replace(/svg>/,"symbol>"):t;return bn(e)}var ax=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function lx(t){try{return!!new URL(t)}catch(e){return!1}}function cx(t){return ax(this,null,function*(){if(!t||!lx(t))return null;const e=yield fetch(t);if(!e.ok)throw new Error("Failed to load resource");if((e.headers.get("Content-Type")||"").includes("image/svg+xml")){const o=yield e.text();return Cs(o)}const r=yield e.blob(),i=yield hx(r);return Wh(i)})}function hx(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>{e(r.result)},r.onerror=n,r.readAsDataURL(t)})}let Xh=null;function fx(t){Xh=t}function ux(){return Xh}var yi=(t=>(t.Image="image",t.SVG="svg",t.Remote="remote",t))(yi||{});function Yh(t){if(!t.startsWith("data:"))return{type:"custom",data:t};const e=t.indexOf(",");if(e===-1)return null;const n=t.slice(5,e),r=t.slice(e+1),i=n.split(";"),o=i[0];if(i.includes("base64"))return{type:yi.Image,data:t};const a={"text/url":yi.Remote,"image/svg+xml":yi.SVG}[o];return a?{type:a,data:r}:{type:"custom",data:t}}function dx(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return Math.abs(e).toString()}function Ss(t){return t?typeof t=="string"?Yh(t):t:null}function Is(t){const e=typeof t=="string"?Yh(t):t;return e?"rsc-"+dx(JSON.stringify(e)):null}function Vh(t){const e=Is(t);return e?`#${e}`:null}var qh=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function px(t){return qh(this,null,function*(){const e=Ss(t);if(!e)return null;const{type:n,data:r}=e;if(n==="image")return yield Wh(r);if(n==="svg")return Cs(r);if(n==="remote")return yield cx(r);{const i=ux();if(i)return yield i(e)}return null})}const Gh=new Map,As=new WeakMap;function Uh(t,e){return qh(this,null,function*(){if(!t)return null;const n=Ss(e);if(!n)return null;const r=Is(n),i=Gh.has(r)?Gh.get(r)||null:yield px(n);if(!i)return null;As.has(t)||As.set(t,new Map);const o=As.get(t);if(o.has(r))return r;const s=_i(t);return i.id=r,s.appendChild(i),o.set(r,i),r})}function ut(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return le(n,e),n}function bn(t){const n=new DOMParser().parseFromString(t,"image/svg+xml");if(n.querySelector("parsererror"))throw new Error("Invalid SVG string");return n.documentElement}function le(t,e){Object.entries(e).forEach(([n,r])=>{r==null?t.removeAttribute(n):t.setAttribute(n,r)})}function je(t,e,n=!0){return e.reduce((r,i)=>{const o=t.getAttribute(i);return(!n||o!==null&&o!==""&&o!==void 0)&&(r[i]=o),r},{})}function gx(t,e){e.forEach(n=>{t.removeAttribute(n)})}function Es(t,e){if(e(t)===!1)return;Array.from(t.children).forEach(r=>{Es(r,e)})}function _i(t,e="infographic-defs"){const n=e?`defs#${e}`:"defs",r=t.querySelector(n);if(r)return r;const i=ut("defs");return e&&(i.id=e),t.prepend(i),i}var mx=Object.defineProperty,yx=Object.defineProperties,_x=Object.getOwnPropertyDescriptors,Zh=Object.getOwnPropertySymbols,xx=Object.prototype.hasOwnProperty,vx=Object.prototype.propertyIsEnumerable,Qh=(t,e,n)=>e in t?mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bx=(t,e)=>{for(var n in e||(e={}))xx.call(e,n)&&Qh(t,n,e[n]);if(Zh)for(var n of Zh(e))vx.call(e,n)&&Qh(t,n,e[n]);return t},wx=(t,e)=>yx(t,_x(e));function $x(t,e={}){const n=ut("use",wx(bx({"data-element-type":De.Icon},e),{href:Vh(t)}));return Px(n),n}function Px(t){const{stroke:e,fill:n}=je(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}const Mx=",",Ox=(t,e=Mx)=>t.split(e).map(n=>parseInt(n,10)),Kh=t=>Ox(t);function ks(...t){return t.map(e=>e.replace(/^\/+|\/+$/g,"")).filter(e=>e.trim().length>0).join("/")}const Cx=!!(typeof process!="undefined"&&process.versions&&process.versions.node);function Ts(t){const e=t.getAttribute("viewBox");if(e){const[s,a,l,c]=e.split(" ").map(Number);return{x:s,y:a,width:l,height:c}}const n=t.getAttribute("width"),r=t.getAttribute("height"),i=Number(n)||0,o=Number(r)||0;return{x:0,y:0,width:i,height:o}}function zs(t){return t?typeof t=="number"?[t,t,t,t]:t.length===1?[t[0],t[0],t[0],t[0]]:t.length===2?[t[0],t[1],t[0],t[1]]:t.length===3?[t[0],t[1],t[2],t[1]]:t.length===4?[t[0],t[1],t[2],t[3]]:[0,0,0,0]:[0,0,0,0]}function Sx(t,e){if(Cx)Ix(t,e);else if(document.contains(t))Jh(t,e);else{const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===t||o.contains(t))&&(Ax(t,()=>{Jh(t,e)}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}}function Ix(t,e){const n=Ts(t),[r,i,o,s]=e;le(t,{viewBox:`${n.x-s} ${n.y-r} ${n.width+s+i} ${n.height+r+o}`})}function Jh(t,e){const n=t.getBBox(),r=t.getBoundingClientRect(),i=r.width>0?n.width/r.width:1,o=r.height>0?n.height/r.height:1,[s,a,l,c]=e,h=s*o,u=a*i,d=l*o,p=c*i,g=n.x-p,y=n.y-h,m=n.width+p+u,x=n.height+h+d;le(t,{viewBox:`${g} ${y} ${m} ${x}`})}function Ax(t,e){requestAnimationFrame(()=>{const n=()=>{const r=t.getBoundingClientRect();r.width>0&&r.height>0?e():requestAnimationFrame(n)};n()})}const pe=(t,e)=>t.dataset.elementType===e,Ex=t=>pe(t,"title"),kx=t=>pe(t,"desc"),Tx=t=>pe(t,"shape"),zx=t=>pe(t,"shapes-group"),Hx=t=>pe(t,"illus"),Rx=t=>t instanceof SVGElement&&t.tagName==="text",Lx=t=>t instanceof SVGElement&&t.tagName==="g",Nx=t=>pe(t,"item-icon"),Dx=t=>pe(t,"item-label"),jx=t=>pe(t,"item-desc"),Fx=t=>pe(t,"item-value"),Bx=t=>pe(t,"item-illus"),Wx=t=>pe(t,"btns-group");function Xx(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function Yx(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:Xx(t,e,n)}var Vx="\\ud800-\\udfff",qx="\\u0300-\\u036f",Gx="\\ufe20-\\ufe2f",Ux="\\u20d0-\\u20ff",Zx=qx+Gx+Ux,Qx="\\ufe0e\\ufe0f",Kx="\\u200d",Jx=RegExp("["+Kx+Vx+Zx+Qx+"]");function tf(t){return Jx.test(t)}function tv(t){return t.split("")}var ef="\\ud800-\\udfff",ev="\\u0300-\\u036f",nv="\\ufe20-\\ufe2f",rv="\\u20d0-\\u20ff",iv=ev+nv+rv,ov="\\ufe0e\\ufe0f",sv="["+ef+"]",Hs="["+iv+"]",Rs="\\ud83c[\\udffb-\\udfff]",av="(?:"+Hs+"|"+Rs+")",nf="[^"+ef+"]",rf="(?:\\ud83c[\\udde6-\\uddff]){2}",of="[\\ud800-\\udbff][\\udc00-\\udfff]",lv="\\u200d",sf=av+"?",af="["+ov+"]?",cv="(?:"+lv+"(?:"+[nf,rf,of].join("|")+")"+af+sf+")*",hv=af+sf+cv,fv="(?:"+[nf+Hs+"?",Hs,rf,of,sv].join("|")+")",uv=RegExp(Rs+"(?="+Rs+")|"+fv+hv,"g");function dv(t){return t.match(uv)||[]}function pv(t){return tf(t)?dv(t):tv(t)}function gv(t){return function(e){e=nr(e);var n=tf(e)?pv(e):void 0,r=n?n[0]:e.charAt(0),i=n?Yx(n,1).join(""):e.slice(1);return r[t]()+i}}var mv=gv("toUpperCase");function yv(t){return mv(nr(t).toLowerCase())}function _v(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)n=e(n,t[i],i,t);return n}function xv(t){return function(e){return t==null?void 0:t[e]}}var vv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bv=xv(vv),wv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$v="\\u0300-\\u036f",Pv="\\ufe20-\\ufe2f",Mv="\\u20d0-\\u20ff",Ov=$v+Pv+Mv,Cv="["+Ov+"]",Sv=RegExp(Cv,"g");function Iv(t){return t=nr(t),t&&t.replace(wv,bv).replace(Sv,"")}var Av=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ev(t){return t.match(Av)||[]}var kv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Tv(t){return kv.test(t)}var lf="\\ud800-\\udfff",zv="\\u0300-\\u036f",Hv="\\ufe20-\\ufe2f",Rv="\\u20d0-\\u20ff",Lv=zv+Hv+Rv,cf="\\u2700-\\u27bf",hf="a-z\\xdf-\\xf6\\xf8-\\xff",Nv="\\xac\\xb1\\xd7\\xf7",Dv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jv="\\u2000-\\u206f",Fv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ff="A-Z\\xc0-\\xd6\\xd8-\\xde",Bv="\\ufe0e\\ufe0f",uf=Nv+Dv+jv+Fv,df="['’]",pf="["+uf+"]",Wv="["+Lv+"]",gf="\\d+",Xv="["+cf+"]",mf="["+hf+"]",yf="[^"+lf+uf+gf+cf+hf+ff+"]",Yv="\\ud83c[\\udffb-\\udfff]",Vv="(?:"+Wv+"|"+Yv+")",qv="[^"+lf+"]",_f="(?:\\ud83c[\\udde6-\\uddff]){2}",xf="[\\ud800-\\udbff][\\udc00-\\udfff]",wn="["+ff+"]",Gv="\\u200d",vf="(?:"+mf+"|"+yf+")",Uv="(?:"+wn+"|"+yf+")",bf="(?:"+df+"(?:d|ll|m|re|s|t|ve))?",wf="(?:"+df+"(?:D|LL|M|RE|S|T|VE))?",$f=Vv+"?",Pf="["+Bv+"]?",Zv="(?:"+Gv+"(?:"+[qv,_f,xf].join("|")+")"+Pf+$f+")*",Qv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Kv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jv=Pf+$f+Zv,tb="(?:"+[Xv,_f,xf].join("|")+")"+Jv,eb=RegExp([wn+"?"+mf+"+"+bf+"(?="+[pf,wn,"$"].join("|")+")",Uv+"+"+wf+"(?="+[pf,wn+vf,"$"].join("|")+")",wn+"?"+vf+"+"+bf,wn+"+"+wf,Kv,Qv,gf,tb].join("|"),"g");function nb(t){return t.match(eb)||[]}function rb(t,e,n){return t=nr(t),e=e,e===void 0?Tv(t)?nb(t):Ev(t):t.match(e)||[]}var ib="['’]",ob=RegExp(ib,"g");function Mf(t){return function(e){return _v(rb(Iv(e).replace(ob,"")),t,"")}}var sb=Mf(function(t,e,n){return e=e.toLowerCase(),t+(n?yv(e):e)}),Of=Object.getOwnPropertySymbols,ab=Object.prototype.hasOwnProperty,lb=Object.prototype.propertyIsEnumerable,cb=(t,e)=>{var n={};for(var r in t)ab.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Of)for(var r of Of(t))e.indexOf(r)<0&&lb.call(t,r)&&(n[r]=t[r]);return n};function hb(t,e){const n=document.createElement("span");n.textContent=t,Object.assign(n.style,ub(e));let{width:r,height:i}=e;if(!r||!i){const d=db(n);r||(r=String(d.width)),i||(i=String(d.height))}const{id:o,x:s,y:a,"text-alignment":l="LEFT TOP"}=e,[c,h]=pb(l);Object.assign(n.style,fb(c,h));const u=ut("foreignObject",{id:o,x:s,y:a,width:r,height:i,overflow:"visible","data-element-type":De.Text});return u.appendChild(n),u}function fb(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word"};switch(t){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end";break}switch(e){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end";break}return n}function ub(t){const e=t,{x:n,y:r,width:i,height:o,["text-alignment"]:s,["font-size"]:a,["letter-spacing"]:l,["line-height"]:c,fill:h,["stroke-width"]:u,["text-anchor"]:d,["dominant-baseline"]:p,["font-family"]:g}=e,y=cb(e,["x","y","width","height","text-alignment","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),m={color:h,overflow:"visible"};return Object.entries(y).forEach(([x,_])=>{m[sb(x)]=_}),a&&(m.fontSize=`${a}px`),c&&(m.lineHeight=typeof c=="string"&&c.endsWith("px")?c:+c),l&&(m.letterSpacing=`${l}px`),u&&(m.strokeWidth=`${u}px`),g&&(m.fontFamily=mi(g)),m}function db(t){const e=t.parentNode;t.style.visibility="hidden",document.body.appendChild(t);const n=t.getBoundingClientRect();return e?e.appendChild(t):document.body.removeChild(t),t.style.visibility="visible",n}function pb(t){if(!t)return["LEFT","TOP"];const[e="CENTER",n="MIDDLE"]=t.split(" ");return[e,n]}function gb(){return crypto&&crypto.randomUUID?crypto.randomUUID():"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var mb=Object.defineProperty,Cf=Object.getOwnPropertySymbols,yb=Object.prototype.hasOwnProperty,_b=Object.prototype.propertyIsEnumerable,Sf=(t,e,n)=>e in t?mb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xb=(t,e)=>{for(var n in e||(e={}))yb.call(e,n)&&Sf(t,n,e[n]);if(Cf)for(var n of Cf(e))_b.call(e,n)&&Sf(t,n,e[n]);return t};const Ls=new Map;function Ns(t){const e=Ls.get(rr(t));return e||null}function If(){return Array.from(Ls.values())}function vb(t){mi(t)}function Af(t){const e=xb({},t);return Ls.set(e.fontFamily,e),e.fontFamily=mi(e.fontFamily),e}function Ef(t){const e=Ns(t);if(!e)return[];const{baseUrl:n,fontWeight:r}=e;return Object.values(r).filter(Boolean).map(i=>ks(n,i))}function bb(t,e){const n=Ns(t);if(!n)return null;const r=Bh(e),i=n.fontWeight[r];return i?ks(n.baseUrl,i.replace(/\/result.css$/,"")):null}const Ds=new WeakMap;function wb(t,e){const n=t.ownerDocument,r=(n==null?void 0:n.head)||document.head;if(!r)return;Ds.has(r)||Ds.set(r,new Map);const i=Ds.get(r),o=[];Ef(e).forEach(a=>{const l=`${e}-${a}`;if(i.has(l))return;const c=n.createElement("link");c.id=l,c.rel="stylesheet",c.href=a,o.push(c),i.set(l,c)}),o.length&&r.tagName==="HEAD"&&o.forEach(a=>r.appendChild(a))}function $b(t){If().forEach(n=>wb(t,n.fontFamily))}const ir="https://assets.antv.antgroup.com",$n=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:ir,fontWeight:{regular:$n("AlibabaPuHuiTi-Regular"),bold:$n("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:ir,fontWeight:{regular:$n("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:ir,fontWeight:{regular:$n("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:ir,fontWeight:{regular:$n("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:ir,fontWeight:{regular:$n("851tegakizatsu-Regular")}}].forEach(Af);const kf=new Map;function js(t,e){kf.set(t,e)}function Tf(t){return kf.get(t)}js("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),js("spectral",(t,e,n)=>{const r=[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]],i=Math.min(Math.max(n,3),11);return r[i-3][e%i]});const xi=(t=[],e,n)=>{var r;const i=typeof t=="string"?Tf(t)||[]:t,o=(r=e[0])!=null?r:0;if(typeof i=="function"){const s=n?o/n:0;return i(s,o,n!=null?n:0)}if(Array.isArray(i))return i.length===0?void 0:i[o%i.length]};function Pb(t,e){var n;const r=t.parentElement;r&&(r.style.backgroundColor=e||"none");const i=t.querySelector("#background");if(!e)return i==null?void 0:i.remove();if(t.style.backgroundColor=e,i)i.setAttribute("fill",e);else if((n=t.viewBox)!=null&&n.baseVal){const{x:o,y:s,width:a,height:l}=t.viewBox.baseVal,c=ut("rect",{x:o,y:s,width:a,height:l,fill:e,"data-element-type":De.Background});t.prepend(c)}}function or(t,e){return Object.entries(e).reduce((r,[i,o])=>{if(typeof o=="function"){const s=o(t.getAttribute(i),t);s!=null&&(r[i]=s)}else Object.assign(r,{[i]:o});return r},{})}function zf(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function Mb(t,e){e&&Object.keys(e).length>0&&Es(t,n=>{const r=or(n,e);le(n,r)})}const Hf="btn-add-icon",Rf="btn-remove-icon";function Ob(t,e){le(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),r=e.querySelectorAll('[id^="btn-remove-"]');Cb(t),n.forEach(Sb),r.forEach(Ib)}function Cb(t){const e=ut("defs",{id:"btn-icon-defs"}),n=bn(`<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
12
+ </symbol>`)})}function cx(t){return t.startsWith("<svg")||t.startsWith("<symbol")}function Cs(t){if(!t||!cx(t))return null;const e=t.startsWith("<svg")?t.replace(/<svg/,"<symbol").replace(/svg>/,"symbol>"):t;return bn(e)}var hx=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function fx(t){try{return!!new URL(t)}catch(e){return!1}}function ux(t){return hx(this,null,function*(){if(!t||!fx(t))return null;const e=yield fetch(t);if(!e.ok)throw new Error("Failed to load resource");if((e.headers.get("Content-Type")||"").includes("image/svg+xml")){const o=yield e.text();return Cs(o)}const r=yield e.blob(),i=yield dx(r);return Wh(i)})}function dx(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>{e(r.result)},r.onerror=n,r.readAsDataURL(t)})}let Xh=null;function px(t){Xh=t}function gx(){return Xh}var yi=(t=>(t.Image="image",t.SVG="svg",t.Remote="remote",t))(yi||{});function Yh(t){if(!t.startsWith("data:"))return{type:"custom",data:t};const e=t.indexOf(",");if(e===-1)return null;const n=t.slice(5,e),r=t.slice(e+1),i=n.split(";"),o=i[0];if(i.includes("base64"))return{type:yi.Image,data:t};const a={"text/url":yi.Remote,"image/svg+xml":yi.SVG}[o];return a?{type:a,data:r}:{type:"custom",data:t}}function mx(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return Math.abs(e).toString()}function Ss(t){return t?typeof t=="string"?Yh(t):t:null}function Is(t){const e=typeof t=="string"?Yh(t):t;return e?"rsc-"+mx(JSON.stringify(e)):null}function Vh(t){const e=Is(t);return e?`#${e}`:null}var qh=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function yx(t){return qh(this,null,function*(){const e=Ss(t);if(!e)return null;const{type:n,data:r}=e;if(n==="image")return yield Wh(r);if(n==="svg")return Cs(r);if(n==="remote")return yield ux(r);{const i=gx();if(i)return yield i(e)}return null})}const Gh=new Map,As=new WeakMap;function Uh(t,e){return qh(this,null,function*(){if(!t)return null;const n=Ss(e);if(!n)return null;const r=Is(n),i=Gh.has(r)?Gh.get(r)||null:yield yx(n);if(!i)return null;As.has(t)||As.set(t,new Map);const o=As.get(t);if(o.has(r))return r;const s=_i(t);return i.id=r,s.appendChild(i),o.set(r,i),r})}function ut(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return le(n,e),n}function bn(t){const n=new DOMParser().parseFromString(t,"image/svg+xml");if(n.querySelector("parsererror"))throw new Error("Invalid SVG string");return n.documentElement}function le(t,e){Object.entries(e).forEach(([n,r])=>{r==null?t.removeAttribute(n):t.setAttribute(n,r)})}function je(t,e,n=!0){return e.reduce((r,i)=>{const o=t.getAttribute(i);return(!n||o!==null&&o!==""&&o!==void 0)&&(r[i]=o),r},{})}function _x(t,e){e.forEach(n=>{t.removeAttribute(n)})}function Es(t,e){if(e(t)===!1)return;Array.from(t.children).forEach(r=>{Es(r,e)})}function _i(t,e="infographic-defs"){const n=e?`defs#${e}`:"defs",r=t.querySelector(n);if(r)return r;const i=ut("defs");return e&&(i.id=e),t.prepend(i),i}var xx=Object.defineProperty,vx=Object.defineProperties,bx=Object.getOwnPropertyDescriptors,Zh=Object.getOwnPropertySymbols,wx=Object.prototype.hasOwnProperty,$x=Object.prototype.propertyIsEnumerable,Qh=(t,e,n)=>e in t?xx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Px=(t,e)=>{for(var n in e||(e={}))wx.call(e,n)&&Qh(t,n,e[n]);if(Zh)for(var n of Zh(e))$x.call(e,n)&&Qh(t,n,e[n]);return t},Mx=(t,e)=>vx(t,bx(e));function Ox(t,e={}){const n=ut("use",Mx(Px({"data-element-type":De.Icon},e),{href:Vh(t)}));return Cx(n),n}function Cx(t){const{stroke:e,fill:n}=je(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}const Sx=",",Ix=(t,e=Sx)=>t.split(e).map(n=>parseInt(n,10)),Kh=t=>Ix(t);function ks(...t){return t.map(e=>e.replace(/^\/+|\/+$/g,"")).filter(e=>e.trim().length>0).join("/")}const Ax=!!(typeof process!="undefined"&&process.versions&&process.versions.node);function Ts(t){const e=t.getAttribute("viewBox");if(e){const[s,a,l,c]=e.split(" ").map(Number);return{x:s,y:a,width:l,height:c}}const n=t.getAttribute("width"),r=t.getAttribute("height"),i=Number(n)||0,o=Number(r)||0;return{x:0,y:0,width:i,height:o}}function zs(t){return t?typeof t=="number"?[t,t,t,t]:t.length===1?[t[0],t[0],t[0],t[0]]:t.length===2?[t[0],t[1],t[0],t[1]]:t.length===3?[t[0],t[1],t[2],t[1]]:t.length===4?[t[0],t[1],t[2],t[3]]:[0,0,0,0]:[0,0,0,0]}function Ex(t,e){if(Ax)kx(t,e);else if(document.contains(t))Jh(t,e);else{const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===t||o.contains(t))&&(Tx(t,()=>{Jh(t,e)}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}}function kx(t,e){const n=Ts(t),[r,i,o,s]=e;le(t,{viewBox:`${n.x-s} ${n.y-r} ${n.width+s+i} ${n.height+r+o}`})}function Jh(t,e){const n=t.getBBox(),r=t.getBoundingClientRect(),i=r.width>0?n.width/r.width:1,o=r.height>0?n.height/r.height:1,[s,a,l,c]=e,h=s*o,u=a*i,d=l*o,p=c*i,g=n.x-p,y=n.y-h,m=n.width+p+u,x=n.height+h+d;le(t,{viewBox:`${g} ${y} ${m} ${x}`})}function Tx(t,e){requestAnimationFrame(()=>{const n=()=>{const r=t.getBoundingClientRect();r.width>0&&r.height>0?e():requestAnimationFrame(n)};n()})}const pe=(t,e)=>t.dataset.elementType===e,zx=t=>pe(t,"title"),Hx=t=>pe(t,"desc"),Rx=t=>pe(t,"shape"),Lx=t=>pe(t,"shapes-group"),Nx=t=>pe(t,"illus"),Dx=t=>t instanceof SVGElement&&t.tagName==="text",jx=t=>t instanceof SVGElement&&t.tagName==="g",Fx=t=>pe(t,"item-icon"),Bx=t=>pe(t,"item-label"),Wx=t=>pe(t,"item-desc"),Xx=t=>pe(t,"item-value"),Yx=t=>pe(t,"item-illus"),Vx=t=>pe(t,"btns-group");function qx(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function Gx(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:qx(t,e,n)}var Ux="\\ud800-\\udfff",Zx="\\u0300-\\u036f",Qx="\\ufe20-\\ufe2f",Kx="\\u20d0-\\u20ff",Jx=Zx+Qx+Kx,tv="\\ufe0e\\ufe0f",ev="\\u200d",nv=RegExp("["+ev+Ux+Jx+tv+"]");function tf(t){return nv.test(t)}function rv(t){return t.split("")}var ef="\\ud800-\\udfff",iv="\\u0300-\\u036f",ov="\\ufe20-\\ufe2f",sv="\\u20d0-\\u20ff",av=iv+ov+sv,lv="\\ufe0e\\ufe0f",cv="["+ef+"]",Hs="["+av+"]",Rs="\\ud83c[\\udffb-\\udfff]",hv="(?:"+Hs+"|"+Rs+")",nf="[^"+ef+"]",rf="(?:\\ud83c[\\udde6-\\uddff]){2}",of="[\\ud800-\\udbff][\\udc00-\\udfff]",fv="\\u200d",sf=hv+"?",af="["+lv+"]?",uv="(?:"+fv+"(?:"+[nf,rf,of].join("|")+")"+af+sf+")*",dv=af+sf+uv,pv="(?:"+[nf+Hs+"?",Hs,rf,of,cv].join("|")+")",gv=RegExp(Rs+"(?="+Rs+")|"+pv+dv,"g");function mv(t){return t.match(gv)||[]}function yv(t){return tf(t)?mv(t):rv(t)}function _v(t){return function(e){e=nr(e);var n=tf(e)?yv(e):void 0,r=n?n[0]:e.charAt(0),i=n?Gx(n,1).join(""):e.slice(1);return r[t]()+i}}var xv=_v("toUpperCase");function vv(t){return xv(nr(t).toLowerCase())}function bv(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)n=e(n,t[i],i,t);return n}function wv(t){return function(e){return t==null?void 0:t[e]}}var $v={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Pv=wv($v),Mv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ov="\\u0300-\\u036f",Cv="\\ufe20-\\ufe2f",Sv="\\u20d0-\\u20ff",Iv=Ov+Cv+Sv,Av="["+Iv+"]",Ev=RegExp(Av,"g");function kv(t){return t=nr(t),t&&t.replace(Mv,Pv).replace(Ev,"")}var Tv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function zv(t){return t.match(Tv)||[]}var Hv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Rv(t){return Hv.test(t)}var lf="\\ud800-\\udfff",Lv="\\u0300-\\u036f",Nv="\\ufe20-\\ufe2f",Dv="\\u20d0-\\u20ff",jv=Lv+Nv+Dv,cf="\\u2700-\\u27bf",hf="a-z\\xdf-\\xf6\\xf8-\\xff",Fv="\\xac\\xb1\\xd7\\xf7",Bv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wv="\\u2000-\\u206f",Xv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ff="A-Z\\xc0-\\xd6\\xd8-\\xde",Yv="\\ufe0e\\ufe0f",uf=Fv+Bv+Wv+Xv,df="['’]",pf="["+uf+"]",Vv="["+jv+"]",gf="\\d+",qv="["+cf+"]",mf="["+hf+"]",yf="[^"+lf+uf+gf+cf+hf+ff+"]",Gv="\\ud83c[\\udffb-\\udfff]",Uv="(?:"+Vv+"|"+Gv+")",Zv="[^"+lf+"]",_f="(?:\\ud83c[\\udde6-\\uddff]){2}",xf="[\\ud800-\\udbff][\\udc00-\\udfff]",wn="["+ff+"]",Qv="\\u200d",vf="(?:"+mf+"|"+yf+")",Kv="(?:"+wn+"|"+yf+")",bf="(?:"+df+"(?:d|ll|m|re|s|t|ve))?",wf="(?:"+df+"(?:D|LL|M|RE|S|T|VE))?",$f=Uv+"?",Pf="["+Yv+"]?",Jv="(?:"+Qv+"(?:"+[Zv,_f,xf].join("|")+")"+Pf+$f+")*",tb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nb=Pf+$f+Jv,rb="(?:"+[qv,_f,xf].join("|")+")"+nb,ib=RegExp([wn+"?"+mf+"+"+bf+"(?="+[pf,wn,"$"].join("|")+")",Kv+"+"+wf+"(?="+[pf,wn+vf,"$"].join("|")+")",wn+"?"+vf+"+"+bf,wn+"+"+wf,eb,tb,gf,rb].join("|"),"g");function ob(t){return t.match(ib)||[]}function sb(t,e,n){return t=nr(t),e=e,e===void 0?Rv(t)?ob(t):zv(t):t.match(e)||[]}var ab="['’]",lb=RegExp(ab,"g");function Mf(t){return function(e){return bv(sb(kv(e).replace(lb,"")),t,"")}}var cb=Mf(function(t,e,n){return e=e.toLowerCase(),t+(n?vv(e):e)}),Of=Object.getOwnPropertySymbols,hb=Object.prototype.hasOwnProperty,fb=Object.prototype.propertyIsEnumerable,ub=(t,e)=>{var n={};for(var r in t)hb.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Of)for(var r of Of(t))e.indexOf(r)<0&&fb.call(t,r)&&(n[r]=t[r]);return n};function db(t,e){const n=document.createElement("span");n.textContent=t,Object.assign(n.style,gb(e));let{width:r,height:i}=e;if(!r||!i){const d=mb(n);r||(r=String(d.width)),i||(i=String(d.height))}const{id:o,x:s,y:a,"text-alignment":l="LEFT TOP"}=e,[c,h]=yb(l);Object.assign(n.style,pb(c,h));const u=ut("foreignObject",{id:o,x:s,y:a,width:r,height:i,overflow:"visible","data-element-type":De.Text});return u.appendChild(n),u}function pb(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word"};switch(t){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end";break}switch(e){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end";break}return n}function gb(t){const e=t,{x:n,y:r,width:i,height:o,["text-alignment"]:s,["font-size"]:a,["letter-spacing"]:l,["line-height"]:c,fill:h,["stroke-width"]:u,["text-anchor"]:d,["dominant-baseline"]:p,["font-family"]:g}=e,y=ub(e,["x","y","width","height","text-alignment","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),m={color:h,overflow:"visible"};return Object.entries(y).forEach(([x,_])=>{m[cb(x)]=_}),a&&(m.fontSize=`${a}px`),c&&(m.lineHeight=typeof c=="string"&&c.endsWith("px")?c:+c),l&&(m.letterSpacing=`${l}px`),u&&(m.strokeWidth=`${u}px`),g&&(m.fontFamily=mi(g)),m}function mb(t){const e=t.parentNode;t.style.visibility="hidden",document.body.appendChild(t);const n=t.getBoundingClientRect();return e?e.appendChild(t):document.body.removeChild(t),t.style.visibility="visible",n}function yb(t){if(!t)return["LEFT","TOP"];const[e="CENTER",n="MIDDLE"]=t.split(" ");return[e,n]}function _b(){return crypto&&crypto.randomUUID?crypto.randomUUID():"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var xb=Object.defineProperty,Cf=Object.getOwnPropertySymbols,vb=Object.prototype.hasOwnProperty,bb=Object.prototype.propertyIsEnumerable,Sf=(t,e,n)=>e in t?xb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wb=(t,e)=>{for(var n in e||(e={}))vb.call(e,n)&&Sf(t,n,e[n]);if(Cf)for(var n of Cf(e))bb.call(e,n)&&Sf(t,n,e[n]);return t};const Ls=new Map;function Ns(t){const e=Ls.get(rr(t));return e||null}function If(){return Array.from(Ls.values())}function $b(t){mi(t)}function Af(t){const e=wb({},t);return Ls.set(e.fontFamily,e),e.fontFamily=mi(e.fontFamily),e}function Ef(t){const e=Ns(t);if(!e)return[];const{baseUrl:n,fontWeight:r}=e;return Object.values(r).filter(Boolean).map(i=>ks(n,i))}function Pb(t,e){const n=Ns(t);if(!n)return null;const r=Bh(e),i=n.fontWeight[r];return i?ks(n.baseUrl,i.replace(/\/result.css$/,"")):null}const Ds=new WeakMap;function Mb(t,e){const n=t.ownerDocument,r=(n==null?void 0:n.head)||document.head;if(!r)return;Ds.has(r)||Ds.set(r,new Map);const i=Ds.get(r),o=[];Ef(e).forEach(a=>{const l=`${e}-${a}`;if(i.has(l))return;const c=n.createElement("link");c.id=l,c.rel="stylesheet",c.href=a,o.push(c),i.set(l,c)}),o.length&&r.tagName==="HEAD"&&o.forEach(a=>r.appendChild(a))}function Ob(t){If().forEach(n=>Mb(t,n.fontFamily))}const ir="https://assets.antv.antgroup.com",$n=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:ir,fontWeight:{regular:$n("AlibabaPuHuiTi-Regular"),bold:$n("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:ir,fontWeight:{regular:$n("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:ir,fontWeight:{regular:$n("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:ir,fontWeight:{regular:$n("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:ir,fontWeight:{regular:$n("851tegakizatsu-Regular")}}].forEach(Af);const kf=new Map;function js(t,e){kf.set(t,e)}function Tf(t){return kf.get(t)}js("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),js("spectral",(t,e,n)=>{const r=[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]],i=Math.min(Math.max(n,3),11);return r[i-3][e%i]});const xi=(t=[],e,n)=>{var r;const i=typeof t=="string"?Tf(t)||[]:t,o=(r=e[0])!=null?r:0;if(typeof i=="function"){const s=n?o/n:0;return i(s,o,n!=null?n:0)}if(Array.isArray(i))return i.length===0?void 0:i[o%i.length]};function Cb(t,e){var n;const r=t.parentElement;r&&(r.style.backgroundColor=e||"none");const i=t.querySelector("#background");if(!e)return i==null?void 0:i.remove();if(t.style.backgroundColor=e,i)i.setAttribute("fill",e);else if((n=t.viewBox)!=null&&n.baseVal){const{x:o,y:s,width:a,height:l}=t.viewBox.baseVal,c=ut("rect",{x:o,y:s,width:a,height:l,fill:e,"data-element-type":De.Background});t.prepend(c)}}function or(t,e){return Object.entries(e).reduce((r,[i,o])=>{if(typeof o=="function"){const s=o(t.getAttribute(i),t);s!=null&&(r[i]=s)}else Object.assign(r,{[i]:o});return r},{})}function zf(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function Sb(t,e){e&&Object.keys(e).length>0&&Es(t,n=>{const r=or(n,e);le(n,r)})}const Hf="btn-add-icon",Rf="btn-remove-icon";function Ib(t,e){le(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),r=e.querySelectorAll('[id^="btn-remove-"]');Ab(t),n.forEach(Eb),r.forEach(kb)}function Ab(t){const e=ut("defs",{id:"btn-icon-defs"}),n=bn(`<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
13
13
  <path
14
14
  d="M512 1024C229.216 1024 0 794.784 0 512S229.216 0 512 0s512 229.216 512 512-229.216 512-512 512z m0-960C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z m192 480h-160v160a32 32 0 0 1-64 0v-160h-160a32 32 0 0 1 0-64h160v-160a32 32 0 0 1 64 0v160h160a32 32 0 0 1 0 64z"
15
15
  fill="#339900"></path>
16
16
  </symbol>`);n&&(n.setAttribute("id",Hf),e.appendChild(n));const r=bn(`<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
17
17
  <path d="M874.971429 149.942857C776.228571 54.857143 648.228571 0 512.914286 0S245.942857 54.857143 150.857143 149.942857c-201.142857 201.142857-201.142857 522.971429 0 724.114286C245.942857 969.142857 377.6 1024 512.914286 1024s266.971429-54.857143 362.057143-149.942857c201.142857-201.142857 201.142857-522.971429 0-724.114286m-51.2 672.914286C739.657143 906.971429 629.942857 950.857143 512.914286 950.857143s-226.742857-43.885714-310.857143-128c-171.885714-171.885714-171.885714-449.828571 0-621.714286C286.171429 117.028571 395.885714 73.142857 512.914286 73.142857s226.742857 43.885714 310.857143 128c171.885714 171.885714 171.885714 449.828571 0 621.714286" fill="#E63C33"></path>
18
18
  <path d="M772.571429 475.428571H253.257143c-21.942857 0-36.571429 14.628571-36.571429 36.571429 0 10.971429 3.657143 18.285714 10.971429 25.6s14.628571 10.971429 25.6 10.971429H768.914286c21.942857 0 36.571429-14.628571 36.571428-36.571429s-14.628571-36.571429-32.914285-36.571429" fill="#E63C33"></path>
19
- </symbol>`);r&&(r.setAttribute("id",Rf),e.appendChild(r)),t.prepend(e)}function Lf(t,e){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=je(t,["id","x","y","width","height"]),a=ut("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`,"data-element-type":De.Button}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,h=ut("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(h);const u=ut("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function Sb(t){Lf(t,Hf)}function Ib(t){Lf(t,Rf)}var Ab=Object.defineProperty,Nf=Object.getOwnPropertySymbols,Eb=Object.prototype.hasOwnProperty,kb=Object.prototype.propertyIsEnumerable,Df=(t,e,n)=>e in t?Ab(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fs=(t,e)=>{for(var n in e||(e={}))Eb.call(e,n)&&Df(t,n,e[n]);if(Nf)for(var n of Nf(e))kb.call(e,n)&&Df(t,n,e[n]);return t};function Tb(t,e,n,r){var i;if(!n)return null;const{themeConfig:o}=r,s=Fs({},(i=o.item)==null?void 0:i.icon),a=or(e,s);return zb(t,e,n,a)}function zb(t,e,n,r){return Uh(t,n),$x(n,Fs(Fs({},je(e,["id","x","y","width","height","fill","stroke"])),r))}var Hb=Object.defineProperty,Rb=Object.defineProperties,Lb=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,jf=Object.prototype.hasOwnProperty,Ff=Object.prototype.propertyIsEnumerable,Bf=(t,e,n)=>e in t?Hb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bi=(t,e)=>{for(var n in e||(e={}))jf.call(e,n)&&Bf(t,n,e[n]);if(vi)for(var n of vi(e))Ff.call(e,n)&&Bf(t,n,e[n]);return t},Wf=(t,e)=>Rb(t,Lb(e)),Nb=(t,e)=>{var n={};for(var r in t)jf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vi)for(var r of vi(t))e.indexOf(r)<0&&Ff.call(t,r)&&(n[r]=t[r]);return n};function Xf(t,e,n){if(!n)return null;const r=Ss(n);if(!r)return null;const i=Is(r),o=Db(t,e,i);Uh(t,r);const{data:s,color:a}=r;return jb(i,bi(Wf(bi({},Fb(e)),{"clip-path":`url(#${o})`}),a?{color:a}:{}),s)}function Db(t,e,n){const r=`clip-${n}-${gb()}`;if(t.querySelector(`#${r}`))return r;const i=_i(t),o=ut("clipPath",{id:r}),s=e.cloneNode();return gx(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),r}function jb(t,e,n){const r=e,{"clip-path":i}=r,o=Nb(r,["clip-path"]),{x:s="0",y:a="0",width:l="0",height:c="0"}=o,h=ut("rect",{id:`${t}-volume`,"data-element-type":De.IllusVolume,x:s,y:a,width:l,height:c,fill:"transparent"}),u=ut("g",{"data-element-type":De.IllusGroup,"clip-path":i,id:`${t}-group`});u.appendChild(h);const d=ut("use",Wf(bi({id:t,fill:"lightgray"},o),{href:Vh(n),"data-element-type":De.Illus}));return u.appendChild(d),u}function Fb(t){const e=t.getAttribute("data-illus-bounds");if(!e)return bi({x:"0",y:"0",width:"0",height:"0"},je(t,["x","y","width","height"]));const[n,r,i,o]=e.split(" ");return{x:n,y:r,width:i,height:o}}var Bb=Object.defineProperty,Yf=Object.getOwnPropertySymbols,Wb=Object.prototype.hasOwnProperty,Xb=Object.prototype.propertyIsEnumerable,Vf=(t,e,n)=>e in t?Bb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Yb=(t,e)=>{for(var n in e||(e={}))Wb.call(e,n)&&Vf(t,n,e[n]);if(Yf)for(var n of Yf(e))Xb.call(e,n)&&Vf(t,n,e[n]);return t};function qf(t,e,n,r){const i=t.getAttribute(r),o=Vb(i,n),{type:s,colors:a=[]}=o,l=a.length-1,c=a.map((p,g)=>typeof p=="string"?ut("stop",{offset:`${g/l}`,"stop-color":p}):ut("stop",{offset:`${p.offset}`,"stop-color":p.color})),h=qb(n);if(s==="linear-gradient"){const{angle:p=0}=o,[[g,y],[m,x]]=Gb(p),_=ut("linearGradient",{id:h,x1:g,y1:y,x2:m,y2:x});c.forEach(v=>_.appendChild(v)),Gf(e,h,_)}else if(s==="radial-gradient"){const p=ut("radialGradient",{id:h});c.forEach(g=>p.appendChild(g)),Gf(e,h,p)}const u=t.getAttribute("fill"),d=t.getAttribute("stroke");Kn(u)&&t.setAttribute("fill",`url(#${h})`),Kn(d)&&t.setAttribute("stroke",`url(#${h})`)}function Gf(t,e,n){const r=_i(t);n.setAttribute("id",e);const i=r.querySelector(`#${e}`);i?i.replaceWith(n):r.appendChild(n)}function Vb(t,e){var n;if((n=e.colors)!=null&&n.length||!t)return e;const r=tt(t),i=Yb({},e);return i.colors=r.isDark()?[t,r.lighten(20).toHexString()]:[r.darken(20).toHexString(),t],!("angle"in e)&&i.type==="linear-gradient"&&(i.angle=225),i}function qb(t){const{type:e,colors:n=[]}=t,r=zf(n.map(i=>typeof i=="string"?i:`${i.color}_${i.offset}`).join("-"));if(e==="linear-gradient"){const{angle:i=0}=t;return`${e}-${r}-${i}`}return`${e}-${r}`}function Gb(t){const e=Math.PI/180*t,n=Math.cos(e),r=Math.sin(e);return[[.5-n/2,.5-r/2],[.5+n/2,.5+r/2]]}const Ub=Object.freeze(Object.defineProperty({__proto__:null,diamond:({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return r.appendChild(i),r.appendChild(o),r},dot:({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=ut("circle",{cx:"15",cy:"15",r:"3",fill:n});return r.appendChild(i),r.appendChild(o),r.appendChild(s),r},hex:({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return r.appendChild(i),r.appendChild(o),r},line:({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const o=ut("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),s=ut("rect",{width:"100%",height:"100%",fill:e}),a=ut("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),l=ut("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return o.appendChild(s),o.appendChild(a),o.appendChild(l),o},mosaic:({scale:t=1,backgroundColor:e="#ffffff",foregroundColor:n="#000000"})=>{const a=ut("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),l=ut("rect",{width:"100%",height:"100%",fill:e});a.appendChild(l);for(let c=0;c<4;c++)for(let h=0;h<4;h++)if((h+c)%2===0){const u=ut("rect",{x:h*5,y:c*5,width:5,height:5,fill:n});a.appendChild(u)}return a},square:({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return r.appendChild(i),r.appendChild(o),r}},Symbol.toStringTag,{value:"Module"}));var Zb=Object.defineProperty,wi=Object.getOwnPropertySymbols,Uf=Object.prototype.hasOwnProperty,Zf=Object.prototype.propertyIsEnumerable,Qf=(t,e,n)=>e in t?Zb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bs=(t,e)=>{for(var n in e||(e={}))Uf.call(e,n)&&Qf(t,n,e[n]);if(wi)for(var n of wi(e))Zf.call(e,n)&&Qf(t,n,e[n]);return t},Qb=(t,e)=>{var n={};for(var r in t)Uf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wi)for(var r of wi(t))e.indexOf(r)<0&&Zf.call(t,r)&&(n[r]=t[r]);return n};const Ws=new Map;function Kf(t,e){Ws.has(t)&&console.warn(`Pattern ${t} will be overwritten`),Ws.set(t,e)}for(const[t,e]of Object.entries(Ub))Kf(t,e);function Kb(t,e,n){const r=n.themeConfig.stylize;if(!r||r.type!=="pattern")return;const i=r,{pattern:o}=i,s=Qb(i,["pattern"]),a=Ws.get(o);if(!a)return console.warn(`Pattern ${o} not found`);const{fill:l}=je(t,["fill","stroke"]),c=l,h=Bs({backgroundColor:c&&tt(c).setAlpha(.5).toRgbString(),foregroundColor:c},s),u=tw(Bs(Bs({},r),h));Jb(e,u,a(h)),Kn(l)&&(t.setAttribute("fill",`url(#${u})`),!t.getAttribute("stroke")&&l&&t.setAttribute("stroke",l))}function Jb(t,e,n){const r=_i(t);n.setAttribute("id",e);const i=r.querySelector(`pattern#${e}`);i?i.replaceWith(n):r.appendChild(n)}function tw(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=t;return zf(`pattern-${e}-${n}-${r}-${i}`)}function Xs(t,e,n){if(t&&t.length){const[r,i]=e,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const l of t){const[c,h]=l;l[0]=(c-r)*s-(h-i)*a+r,l[1]=(c-r)*a+(h-i)*s+i}}}function ew(t,e){return t[0]===e[0]&&t[1]===e[1]}function nw(t,e,n,r=1){const i=n,o=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(i)for(const c of s)Xs(c,a,i);const l=(function(c,h,u){const d=[];for(const _ of c){const v=[..._];ew(v[0],v[v.length-1])||v.push([v[0][0],v[0][1]]),v.length>2&&d.push(v)}const p=[];h=Math.max(h,.1);const g=[];for(const _ of d)for(let v=0;v<_.length-1;v++){const b=_[v],P=_[v+1];if(b[1]!==P[1]){const w=Math.min(b[1],P[1]);g.push({ymin:w,ymax:Math.max(b[1],P[1]),x:w===b[1]?b[0]:P[0],islope:(P[0]-b[0])/(P[1]-b[1])})}}if(g.sort(((_,v)=>_.ymin<v.ymin?-1:_.ymin>v.ymin?1:_.x<v.x?-1:_.x>v.x?1:_.ymax===v.ymax?0:(_.ymax-v.ymax)/Math.abs(_.ymax-v.ymax))),!g.length)return p;let y=[],m=g[0].ymin,x=0;for(;y.length||g.length;){if(g.length){let _=-1;for(let v=0;v<g.length&&!(g[v].ymin>m);v++)_=v;g.splice(0,_+1).forEach((v=>{y.push({s:m,edge:v})}))}if(y=y.filter((_=>!(_.edge.ymax<=m))),y.sort(((_,v)=>_.edge.x===v.edge.x?0:(_.edge.x-v.edge.x)/Math.abs(_.edge.x-v.edge.x))),(u!==1||x%h==0)&&y.length>1)for(let _=0;_<y.length;_+=2){const v=_+1;if(v>=y.length)break;const b=y[_].edge,P=y[v].edge;p.push([[Math.round(b.x),m],[Math.round(P.x),m]])}m+=u,y.forEach((_=>{_.edge.x=_.edge.x+u*_.edge.islope})),x++}return p})(s,o,r);if(i){for(const c of s)Xs(c,a,-i);(function(c,h,u){const d=[];c.forEach((p=>d.push(...p))),Xs(d,h,u)})(l,a,-i)}return l}function sr(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=i),nw(t,i,r,o||1)}class Ys{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const r=sr(e,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(e,n){const r=[];for(const i of e)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],n));return r}}function $i(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class rw extends Ys{fillPolygons(e,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=sr(e,Object.assign({},n,{hachureGap:r})),o=Math.PI/180*n.hachureAngle,s=[],a=.5*r*Math.cos(o),l=.5*r*Math.sin(o);for(const[c,h]of i)$i([c,h])&&s.push([[c[0]-a,c[1]+l],[...h]],[[c[0]+a,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}}class iw extends Ys{fillPolygons(e,n){const r=this._fillPolygons(e,n),i=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(e,i);return r.ops=r.ops.concat(o.ops),r}}class ow{constructor(e){this.helper=e}fillPolygons(e,n){const r=sr(e,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(r,n)}dotsOnLines(e,n){const r=[];let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const s=i/4;for(const a of e){const l=$i(a),c=l/i,h=Math.ceil(c)-1,u=l-h*i,d=(a[0][0]+a[1][0])/2-i/4,p=Math.min(a[0][1],a[1][1]);for(let g=0;g<h;g++){const y=p+u+g*i,m=d-s+2*Math.random()*s,x=y-s+2*Math.random()*s,_=this.helper.ellipse(m,x,o,o,n);r.push(..._.ops)}}return{type:"fillSketch",ops:r}}}let sw=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=sr(e,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(e,n){const r=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,i=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,o=[];return e.forEach((s=>{const a=$i(s),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let p=0;p<l;p++){const g=p*(r+i),y=g+r,m=[h[0]+g*Math.cos(d)+c*Math.cos(d),h[1]+g*Math.sin(d)+c*Math.sin(d)],x=[h[0]+y*Math.cos(d)+c*Math.cos(d),h[1]+y*Math.sin(d)+c*Math.sin(d)];o.push(...this.helper.doubleLineOps(m[0],m[1],x[0],x[1],n))}})),o}};class aw{constructor(e){this.helper=e}fillPolygons(e,n){const r=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,i=n.zigzagOffset<0?r:n.zigzagOffset,o=sr(e,n=Object.assign({},n,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,n)}}zigzagLines(e,n,r){const i=[];return e.forEach((o=>{const s=$i(o),a=Math.round(s/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<a;u++){const d=2*u*n,p=2*(u+1)*n,g=Math.sqrt(2*Math.pow(n,2)),y=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],m=[l[0]+p*Math.cos(h),l[1]+p*Math.sin(h)],x=[y[0]+g*Math.cos(h+Math.PI/4),y[1]+g*Math.sin(h+Math.PI/4)];i.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],r),...this.helper.doubleLineOps(x[0],x[1],m[0],m[1],r))}})),i}}const ee={};class lw{constructor(e){this.seed=e}next(){return this.seed?(Or(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/Or(2,31):Math.random()}}const cw=0,Vs=1,Jf=2,Pi={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function qs(t,e){return t.type===e}function Gs(t){const e=[],n=(function(s){const a=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:cw,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:Vs,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:Jf,text:""},a})(t);let r="BOD",i=0,o=n[i];for(;!qs(o,Jf);){let s=0;const a=[];if(r==="BOD"){if(o.text!=="M"&&o.text!=="m")return Gs("M0,0"+t);i++,s=Pi[o.text],r=o.text}else qs(o,Vs)?s=Pi[r]:(i++,s=Pi[o.text],r=o.text);if(!(i+s<n.length))throw new Error("Path data ended short");for(let l=i;l<i+s;l++){const c=n[l];if(!qs(c,Vs))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof Pi[r]!="number")throw new Error("Bad segment: "+r);{const l={key:r,data:a};e.push(l),i+=s,o=n[i],r==="M"&&(r="L"),r==="m"&&(r="l")}}return e}function tu(t){let e=0,n=0,r=0,i=0;const o=[];for(const{key:s,data:a}of t)switch(s){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[r,i]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const l=a.map(((c,h)=>h%2?c+n:c+e));o.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const l=a.map(((c,h)=>h%2?c+n:c+e));o.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const l=a.map(((c,h)=>h%2?c+n:c+e));o.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=r,n=i}return o}function eu(t){const e=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[r,i]=h,[o,s]=h;break;case"C":e.push({key:"C",data:[...h]}),r=h[4],i=h[5],a=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[r,i]=h;break;case"H":r=h[0],e.push({key:"L",data:[r,i]});break;case"V":i=h[0],e.push({key:"L",data:[r,i]});break;case"S":{let u=0,d=0;n==="C"||n==="S"?(u=r+(r-a),d=i+(i-l)):(u=r,d=i),e.push({key:"C",data:[u,d,...h]}),a=h[0],l=h[1],r=h[2],i=h[3];break}case"T":{const[u,d]=h;let p=0,g=0;n==="Q"||n==="T"?(p=r+(r-a),g=i+(i-l)):(p=r,g=i);const y=r+2*(p-r)/3,m=i+2*(g-i)/3,x=u+2*(p-u)/3,_=d+2*(g-d)/3;e.push({key:"C",data:[y,m,x,_,u,d]}),a=p,l=g,r=u,i=d;break}case"Q":{const[u,d,p,g]=h,y=r+2*(u-r)/3,m=i+2*(d-i)/3,x=p+2*(u-p)/3,_=g+2*(d-g)/3;e.push({key:"C",data:[y,m,x,_,p,g]}),a=u,l=d,r=p,i=g;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),p=h[2],g=h[3],y=h[4],m=h[5],x=h[6];u===0||d===0?(e.push({key:"C",data:[r,i,m,x,m,x]}),r=m,i=x):(r!==m||i!==x)&&(nu(r,i,m,x,u,d,p,g,y).forEach((function(_){e.push({key:"C",data:_})})),r=m,i=x);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=s}n=c}return e}function ar(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function nu(t,e,n,r,i,o,s,a,l,c){const h=(u=s,Math.PI*u/180);var u;let d=[],p=0,g=0,y=0,m=0;if(c)[p,g,y,m]=c;else{[t,e]=ar(t,e,-h),[n,r]=ar(n,r,-h);const E=(t-n)/2,L=(e-r)/2;let F=E*E/(i*i)+L*L/(o*o);F>1&&(F=Math.sqrt(F),i*=F,o*=F);const z=i*i,j=o*o,R=z*j-z*L*L-j*E*E,H=z*L*L+j*E*E,D=(a===l?-1:1)*Math.sqrt(Math.abs(R/H));y=D*i*L/o+(t+n)/2,m=D*-o*E/i+(e+r)/2,p=Math.asin(parseFloat(((e-m)/o).toFixed(9))),g=Math.asin(parseFloat(((r-m)/o).toFixed(9))),t<y&&(p=Math.PI-p),n<y&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let x=g-p;if(Math.abs(x)>120*Math.PI/180){const E=g,L=n,F=r;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=nu(n=y+i*Math.cos(g),r=m+o*Math.sin(g),L,F,i,o,s,0,l,[g,E,y,m])}x=g-p;const _=Math.cos(p),v=Math.sin(p),b=Math.cos(g),P=Math.sin(g),w=Math.tan(x/4),$=4/3*i*w,M=4/3*o*w,A=[t,e],I=[t+$*v,e-M*_],C=[n+$*P,r-M*b],k=[n,r];if(I[0]=2*A[0]-I[0],I[1]=2*A[1]-I[1],c)return[I,C,k].concat(d);{d=[I,C,k].concat(d);const E=[];for(let L=0;L<d.length;L+=3){const F=ar(d[L][0],d[L][1],h),z=ar(d[L+1][0],d[L+1][1],h),j=ar(d[L+2][0],d[L+2][1],h);E.push([F[0],F[1],z[0],z[1],j[0],j[1]])}return E}}const hw={randOffset:function(t,e){return at(t,e)},randOffsetWithRange:function(t,e,n){return Oi(t,e,n)},ellipse:function(t,e,n,r,i){const o=ou(n,r,i);return Us(t,e,i,o).opset},doubleLineOps:function(t,e,n,r,i){return Fe(t,e,n,r,i,!0)}};function ru(t,e,n,r,i){return{type:"path",ops:Fe(t,e,n,r,i)}}function Mi(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let o=0;o<r-1;o++)i.push(...Fe(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&i.push(...Fe(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return r===2?ru(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function fw(t,e,n,r,i){return(function(o,s){return Mi(o,!0,s)})([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}function iu(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=Ci(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:Ci(n[0],1.5*(1+.22*e.roughness),lu(e));for(let o=1;o<n.length;o++){const s=n[o];if(s.length){const a=Ci(s,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:Ci(s,1.5*(1+.22*e.roughness),lu(e));for(const c of a)c.op!=="move"&&r.push(c);for(const c of l)c.op!=="move"&&i.push(c)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function ou(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let s=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return s+=at(s*l,n),a+=at(a*l,n),{increment:o,rx:s,ry:a}}function Us(t,e,n,r){const[i,o]=hu(r.increment,t,e,r.rx,r.ry,1,r.increment*Oi(.1,Oi(.4,1,n),n),n);let s=Si(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=hu(r.increment,t,e,r.rx,r.ry,1.5,0,n),l=Si(a,null,n);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function su(t,e,n,r,i,o,s,a,l){const c=t,h=e;let u=Math.abs(n/2),d=Math.abs(r/2);u+=at(.01*u,l),d+=at(.01*d,l);let p=i,g=o;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const y=2*Math.PI/l.curveStepCount,m=Math.min(y/2,(g-p)/2),x=fu(m,c,h,u,d,p,g,1,l);if(!l.disableMultiStroke){const _=fu(m,c,h,u,d,p,g,1.5,l);x.push(..._)}return s&&(a?x.push(...Fe(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l),...Fe(c,h,c+u*Math.cos(g),h+d*Math.sin(g),l)):x.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(p),h+d*Math.sin(p)]})),{type:"path",ops:x}}function au(t,e){const n=eu(tu(Gs(t))),r=[];let i=[0,0],o=[0,0];for(const{key:s,data:a}of n)switch(s){case"M":o=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...Fe(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,h,u,d,p]=a;r.push(...uw(l,c,h,u,d,p,o,e)),o=[d,p];break}case"Z":r.push(...Fe(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function Zs(t,e){const n=[];for(const r of t)if(r.length){const i=e.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+at(i,e),r[0][1]+at(i,e)]});for(let s=1;s<o;s++)n.push({op:"lineTo",data:[r[s][0]+at(i,e),r[s][1]+at(i,e)]})}}return{type:"fillPath",ops:n}}function Pn(t,e){return(function(n,r){let i=n.fillStyle||"hachure";if(!ee[i])switch(i){case"zigzag":ee[i]||(ee[i]=new rw(r));break;case"cross-hatch":ee[i]||(ee[i]=new iw(r));break;case"dots":ee[i]||(ee[i]=new ow(r));break;case"dashed":ee[i]||(ee[i]=new sw(r));break;case"zigzag-line":ee[i]||(ee[i]=new aw(r));break;default:i="hachure",ee[i]||(ee[i]=new Ys(r))}return ee[i]})(e,hw).fillPolygons(t,e)}function lu(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function cu(t){return t.randomizer||(t.randomizer=new lw(t.seed||0)),t.randomizer.next()}function Oi(t,e,n,r=1){return n.roughness*r*(cu(n)*(e-t)+t)}function at(t,e,n=1){return Oi(-t,t,e,n)}function Fe(t,e,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=Qs(t,e,n,r,i,!0,!1);if(s)return a;const l=Qs(t,e,n,r,i,!0,!0);return a.concat(l)}function Qs(t,e,n,r,i,o,s){const a=Math.pow(t-n,2)+Math.pow(e-r,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=i.maxRandomnessOffset||0;h*h*100>a&&(h=l/10);const u=h/2,d=.2+.2*cu(i);let p=i.bowing*i.maxRandomnessOffset*(r-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-n)/200;p=at(p,i,c),g=at(g,i,c);const y=[],m=()=>at(u,i,c),x=()=>at(h,i,c),_=i.preserveVertices;return s?y.push({op:"move",data:[t+(_?0:m()),e+(_?0:m())]}):y.push({op:"move",data:[t+(_?0:at(h,i,c)),e+(_?0:at(h,i,c))]}),s?y.push({op:"bcurveTo",data:[p+t+(n-t)*d+m(),g+e+(r-e)*d+m(),p+t+2*(n-t)*d+m(),g+e+2*(r-e)*d+m(),n+(_?0:m()),r+(_?0:m())]}):y.push({op:"bcurveTo",data:[p+t+(n-t)*d+x(),g+e+(r-e)*d+x(),p+t+2*(n-t)*d+x(),g+e+2*(r-e)*d+x(),n+(_?0:x()),r+(_?0:x())]}),y}function Ci(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+at(e,n),t[0][1]+at(e,n)]),r.push([t[0][0]+at(e,n),t[0][1]+at(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+at(e,n),t[i][1]+at(e,n)]),i===t.length-1&&r.push([t[i][0]+at(e,n),t[i][1]+at(e,n)]);return Si(r,null,n)}function Si(t,e,n){const r=t.length,i=[];if(r>3){const o=[],s=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<r;a++){const l=t[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*t[a+1][0]-s*t[a-1][0])/6,l[1]+(s*t[a+1][1]-s*t[a-1][1])/6],o[2]=[t[a+1][0]+(s*t[a][0]-s*t[a+2][0])/6,t[a+1][1]+(s*t[a][1]-s*t[a+2][1])/6],o[3]=[t[a+1][0],t[a+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else r===3?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):r===2&&i.push(...Qs(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function hu(t,e,n,r,i,o,s,a){const l=[],c=[];if(a.roughness===0){t/=4,c.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let h=0;h<=2*Math.PI;h+=t){const u=[e+r*Math.cos(h),n+i*Math.sin(h)];l.push(u),c.push(u)}c.push([e+r*Math.cos(0),n+i*Math.sin(0)]),c.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const h=at(.5,a)-Math.PI/2;c.push([at(o,a)+e+.9*r*Math.cos(h-t),at(o,a)+n+.9*i*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let d=h;d<u;d+=t){const p=[at(o,a)+e+r*Math.cos(d),at(o,a)+n+i*Math.sin(d)];l.push(p),c.push(p)}c.push([at(o,a)+e+r*Math.cos(h+2*Math.PI+.5*s),at(o,a)+n+i*Math.sin(h+2*Math.PI+.5*s)]),c.push([at(o,a)+e+.98*r*Math.cos(h+s),at(o,a)+n+.98*i*Math.sin(h+s)]),c.push([at(o,a)+e+.9*r*Math.cos(h+.5*s),at(o,a)+n+.9*i*Math.sin(h+.5*s)])}return[c,l]}function fu(t,e,n,r,i,o,s,a,l){const c=o+at(.1,l),h=[];h.push([at(a,l)+e+.9*r*Math.cos(c-t),at(a,l)+n+.9*i*Math.sin(c-t)]);for(let u=c;u<=s;u+=t)h.push([at(a,l)+e+r*Math.cos(u),at(a,l)+n+i*Math.sin(u)]);return h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),Si(h,null,l)}function uw(t,e,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let h=[0,0];const u=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let p=0;p<u;p++)p===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(d?0:at(c[0],a)),s[1]+(d?0:at(c[0],a))]}),h=d?[i,o]:[i+at(c[p],a),o+at(c[p],a)],l.push({op:"bcurveTo",data:[t+at(c[p],a),e+at(c[p],a),n+at(c[p],a),r+at(c[p],a),h[0],h[1]]});return l}function lr(t){return[...t]}function uu(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(lr(t[0]),lr(t[1]),lr(t[2]),lr(t[2]));else{const i=[];i.push(t[0],t[0]);for(let a=1;a<t.length;a++)i.push(t[a]),a===t.length-1&&i.push(t[a]);const o=[],s=1-e;r.push(lr(i[0]));for(let a=1;a+2<i.length;a++){const l=i[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*i[a+1][0]-s*i[a-1][0])/6,l[1]+(s*i[a+1][1]-s*i[a-1][1])/6],o[2]=[i[a+1][0]+(s*i[a][0]-s*i[a+2][0])/6,i[a+1][1]+(s*i[a][1]-s*i[a+2][1])/6],o[3]=[i[a+1][0],i[a+1][1]],r.push(o[1],o[2],o[3])}}return r}function Ii(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function dw(t,e,n){const r=Ii(e,n);if(r===0)return Ii(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),Ii(t,Ke(e,n,i))}function Ke(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ks(t,e,n,r){const i=r||[];if((function(a,l){const c=a[l+0],h=a[l+1],u=a[l+2],d=a[l+3];let p=3*h[0]-2*c[0]-d[0];p*=p;let g=3*h[1]-2*c[1]-d[1];g*=g;let y=3*u[0]-2*d[0]-c[0];y*=y;let m=3*u[1]-2*d[1]-c[1];return m*=m,p<y&&(p=y),g<m&&(g=m),p+g})(t,e)<n){const a=t[e+0];i.length?(o=i[i.length-1],s=a,Math.sqrt(Ii(o,s))>1&&i.push(a)):i.push(a),i.push(t[e+3])}else{const l=t[e+0],c=t[e+1],h=t[e+2],u=t[e+3],d=Ke(l,c,.5),p=Ke(c,h,.5),g=Ke(h,u,.5),y=Ke(d,p,.5),m=Ke(p,g,.5),x=Ke(y,m,.5);Ks([l,d,y,x],0,n,i),Ks([x,m,g,u],0,n,i)}var o,s;return i}function pw(t,e){return Ai(t,0,t.length,e)}function Ai(t,e,n,r,i){const o=i||[],s=t[e],a=t[n-1];let l=0,c=1;for(let h=e+1;h<n-1;++h){const u=dw(t[h],s,a);u>l&&(l=u,c=h)}return Math.sqrt(l)>r?(Ai(t,e,c+1,r,o),Ai(t,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function Js(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let o=0;o<i;o++)Ks(t,3*o,e,r);return n&&n>0?Ai(r,0,r.length,n):r}const ie="none";class Ei{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*Or(2,31))}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,r){return{shape:e,sets:n||[],options:r||this.defaultOptions}}line(e,n,r,i,o){const s=this._o(o);return this._d("line",[ru(e,n,r,i,s)],s)}rectangle(e,n,r,i,o){const s=this._o(o),a=[],l=fw(e,n,r,i,s);if(s.fill){const c=[[e,n],[e+r,n],[e+r,n+i],[e,n+i]];s.fillStyle==="solid"?a.push(Zs([c],s)):a.push(Pn([c],s))}return s.stroke!==ie&&a.push(l),this._d("rectangle",a,s)}ellipse(e,n,r,i,o){const s=this._o(o),a=[],l=ou(r,i,s),c=Us(e,n,s,l);if(s.fill)if(s.fillStyle==="solid"){const h=Us(e,n,s,l).opset;h.type="fillPath",a.push(h)}else a.push(Pn([c.estimatedPoints],s));return s.stroke!==ie&&a.push(c.opset),this._d("ellipse",a,s)}circle(e,n,r,i){const o=this.ellipse(e,n,r,r,i);return o.shape="circle",o}linearPath(e,n){const r=this._o(n);return this._d("linearPath",[Mi(e,!1,r)],r)}arc(e,n,r,i,o,s,a=!1,l){const c=this._o(l),h=[],u=su(e,n,r,i,o,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const p=su(e,n,r,i,o,s,!0,!1,d);p.type="fillPath",h.push(p)}else h.push((function(d,p,g,y,m,x,_){const v=d,b=p;let P=Math.abs(g/2),w=Math.abs(y/2);P+=at(.01*P,_),w+=at(.01*w,_);let $=m,M=x;for(;$<0;)$+=2*Math.PI,M+=2*Math.PI;M-$>2*Math.PI&&($=0,M=2*Math.PI);const A=(M-$)/_.curveStepCount,I=[];for(let C=$;C<=M;C+=A)I.push([v+P*Math.cos(C),b+w*Math.sin(C)]);return I.push([v+P*Math.cos(M),b+w*Math.sin(M)]),I.push([v,b]),Pn([I],_)})(e,n,r,i,o,s,c));return c.stroke!==ie&&h.push(u),this._d("arc",h,c)}curve(e,n){const r=this._o(n),i=[],o=iu(e,r);if(r.fill&&r.fill!==ie)if(r.fillStyle==="solid"){const s=iu(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],a=e;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...Js(uu([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):s.push(...Js(uu(c),10,(1+r.roughness)/2))}s.length&&i.push(Pn([s],r))}return r.stroke!==ie&&i.push(o),this._d("curve",i,r)}polygon(e,n){const r=this._o(n),i=[],o=Mi(e,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(Zs([e],r)):i.push(Pn([e],r))),r.stroke!==ie&&i.push(o),this._d("polygon",i,r)}path(e,n){const r=this._o(n),i=[];if(!e)return this._d("path",i,r);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&r.fill!=="transparent"&&r.fill!==ie,s=r.stroke!==ie,a=!!(r.simplification&&r.simplification<1),l=(function(h,u,d){const p=eu(tu(Gs(h))),g=[];let y=[],m=[0,0],x=[];const _=()=>{x.length>=4&&y.push(...Js(x,u)),x=[]},v=()=>{_(),y.length&&(g.push(y),y=[])};for(const{key:P,data:w}of p)switch(P){case"M":v(),m=[w[0],w[1]],y.push(m);break;case"L":_(),y.push([w[0],w[1]]);break;case"C":if(!x.length){const $=y.length?y[y.length-1]:m;x.push([$[0],$[1]])}x.push([w[0],w[1]]),x.push([w[2],w[3]]),x.push([w[4],w[5]]);break;case"Z":_(),y.push([m[0],m[1]])}if(v(),!d)return g;const b=[];for(const P of g){const w=pw(P,d);w.length&&b.push(w)}return b})(e,1,a?4-4*(r.simplification||1):(1+r.roughness)/2),c=au(e,r);if(o)if(r.fillStyle==="solid")if(l.length===1){const h=au(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else i.push(Zs(l,r));else i.push(Pn(l,r));return s&&(a?l.forEach((h=>{i.push(Mi(h,!1,r))})):i.push(c)),this._d("path",i,r)}opsToPath(e,n){let r="";for(const i of e.ops){const o=typeof n=="number"&&n>=0?i.data.map((s=>+s.toFixed(n))):i.data;switch(i.op){case"move":r+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":r+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":r+=`L${o[0]} ${o[1]} `}}return r.trim()}toPaths(e){const n=e.sets||[],r=e.options||this.defaultOptions,i=[];for(const o of n){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:ie};break;case"fillPath":s={d:this.opsToPath(o),stroke:ie,strokeWidth:0,fill:r.fill||ie};break;case"fillSketch":s=this.fillSketch(o,r)}s&&i.push(s)}return i}fillSketch(e,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||ie,strokeWidth:r,fill:ie}}_mergedShape(e){return e.filter(((n,r)=>r===0||n.op!=="move"))}}class gw{constructor(e,n){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new Ei(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(const s of n)switch(s.type){case"path":i.save(),i.strokeStyle=r.stroke==="none"?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,s,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const a=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,o,a),i.restore();break}case"fillSketch":this.fillSketch(i,s,r)}}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),e.save(),r.fillLineDash&&e.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(e.lineDashOffset=r.fillLineDashOffset),e.strokeStyle=r.fill||"",e.lineWidth=i,this._drawToContext(e,n,r.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,n,r,i="nonzero"){e.beginPath();for(const o of n.ops){const s=typeof r=="number"&&r>=0?o.data.map((a=>+a.toFixed(r))):o.data;switch(o.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}n.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,n,r,i,o){const s=this.gen.line(e,n,r,i,o);return this.draw(s),s}rectangle(e,n,r,i,o){const s=this.gen.rectangle(e,n,r,i,o);return this.draw(s),s}ellipse(e,n,r,i,o){const s=this.gen.ellipse(e,n,r,i,o);return this.draw(s),s}circle(e,n,r,i){const o=this.gen.circle(e,n,r,i);return this.draw(o),o}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r),r}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r),r}arc(e,n,r,i,o,s,a=!1,l){const c=this.gen.arc(e,n,r,i,o,s,a,l);return this.draw(c),c}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r),r}path(e,n){const r=this.gen.path(e,n);return this.draw(r),r}}const ki="http://www.w3.org/2000/svg";class mw{constructor(e,n){this.svg=e,this.gen=new Ei(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(ki,"g"),s=e.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(ki,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke",r.stroke),l.setAttribute("stroke-width",r.strokeWidth+""),l.setAttribute("fill","none"),r.strokeLineDash&&l.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(ki,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",r.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,a,r)}l&&o.appendChild(l)}return o}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const o=e.createElementNS(ki,"path");return o.setAttribute("d",this.opsToPath(n,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,n){return this.gen.opsToPath(e,n)}line(e,n,r,i,o){const s=this.gen.line(e,n,r,i,o);return this.draw(s)}rectangle(e,n,r,i,o){const s=this.gen.rectangle(e,n,r,i,o);return this.draw(s)}ellipse(e,n,r,i,o){const s=this.gen.ellipse(e,n,r,i,o);return this.draw(s)}circle(e,n,r,i){const o=this.gen.circle(e,n,r,i);return this.draw(o)}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r)}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r)}arc(e,n,r,i,o,s,a=!1,l){const c=this.gen.arc(e,n,r,i,o,s,a,l);return this.draw(c)}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r)}path(e,n){const r=this.gen.path(e,n);return this.draw(r)}}var yw={canvas:(t,e)=>new gw(t,e),svg:(t,e)=>new mw(t,e),generator:t=>new Ei(t),newSeed:()=>Ei.newSeed()},_w=Object.defineProperty,du=Object.getOwnPropertySymbols,xw=Object.prototype.hasOwnProperty,vw=Object.prototype.propertyIsEnumerable,pu=(t,e,n)=>e in t?_w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bw=(t,e)=>{for(var n in e||(e={}))xw.call(e,n)&&pu(t,n,e[n]);if(du)for(var n of du(e))vw.call(e,n)&&pu(t,n,e[n]);return t};function ww(t,e,n){if(!t||!e){console.warn("Invalid node or svg element");return}const r=yw.svg(e,{options:{seed:1e3}}),i=ut("g");t.hasAttribute("transform")&&i.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();le(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.classList.add("rough-volume"),i.appendChild(o);const s=Pw(r,t,n);if(s){const{element:l,svgAttributes:c}=s;l.classList.add("rough-element"),l.style.pointerEvents="none",$w(l,c),i.appendChild(l)}t.id&&(i.id=t.id,o.setAttribute("id",`${t.id}-volume`),s!=null&&s.element&&s.element.setAttribute("id",`${t.id}-rough`)),Array.from(t.classList).forEach(l=>{i.classList.contains(l)||i.classList.add(l)}),Array.from(t.attributes).forEach(l=>{l.name.startsWith("data-")&&i.setAttribute(l.name,l.value)}),i.childElementCount>0?t.replaceWith(i):t.remove()}function $w(t,e){e.opacity!==void 0&&t.setAttribute("opacity",String(e.opacity)),e.fillOpacity!==void 0&&t.setAttribute("fill-opacity",String(e.fillOpacity)),e.strokeOpacity!==void 0&&t.setAttribute("stroke-opacity",String(e.strokeOpacity)),e.strokeLinecap&&t.setAttribute("stroke-linecap",e.strokeLinecap),e.strokeLinejoin&&t.setAttribute("stroke-linejoin",e.strokeLinejoin),e.strokeDasharray&&t.setAttribute("stroke-dasharray",e.strokeDasharray),e.filter&&t.setAttribute("filter",e.filter),e.clipPath&&t.setAttribute("clip-path",e.clipPath),e.mask&&t.setAttribute("mask",e.mask)}function Pw(t,e,n){const r=e.nodeName.toLowerCase(),i=(o,s)=>{const a=je(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),l={},c=bw({},n),h={};s.forEach($=>{a[$]!==void 0&&(l[$]=a[$])});const{fill:u,"fill-opacity":d,stroke:p,"stroke-opacity":g,"stroke-width":y,"stroke-dasharray":m,"stroke-linecap":x,"stroke-linejoin":_,opacity:v,filter:b,"clip-path":P,mask:w}=a;if(c.fill=u||"none",c.stroke=p||(u&&u!=="none"?u:"currentColor"),y&&(c.strokeWidth=parseFloat(y)),m&&m!=="none"){const $=m.split(/[\s,]+/).map(M=>parseFloat(M)).filter(M=>!isNaN(M));$.length>0&&(c.strokeLineDash=$)}return d&&(h.fillOpacity=parseFloat(d)),g&&(h.strokeOpacity=parseFloat(g)),v&&(h.opacity=parseFloat(v)),x&&(h.strokeLinecap=x),_&&(h.strokeLinejoin=_),m&&m!=="none"&&(h.strokeDasharray=m),b&&(h.filter=b),P&&(h.clipPath=P),w&&(h.mask=w),[l,c,h]};try{let o=null,s={};switch(r){case"circle":{const[a,l,c]=i(e,["cx","cy","r"]),h=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,d=parseFloat(a.r)||0;o=t.circle(h,u,d*2,l),s=c;break}case"ellipse":{const[a,l,c]=i(e,["cx","cy","rx","ry"]),h=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,d=parseFloat(a.rx)||0,p=parseFloat(a.ry)||0;o=t.ellipse(h,u,d*2,p*2,l),s=c;break}case"line":{const[a,l,c]=i(e,["x1","y1","x2","y2"]),h=parseFloat(a.x1)||0,u=parseFloat(a.y1)||0,d=parseFloat(a.x2)||0,p=parseFloat(a.y2)||0;o=t.line(h,u,d,p,l),s=c;break}case"rect":{const[a,l,c]=i(e,["x","y","width","height","rx","ry"]),h=parseFloat(a.x)||0,u=parseFloat(a.y)||0,d=parseFloat(a.width)||0,p=parseFloat(a.height)||0,g=parseFloat(a.rx)||0,y=parseFloat(a.ry)||0;if(g>0||y>0){const _=Mw(h,u,d,p,g||y,y||g);o=t.path(_,l)}else o=t.rectangle(h,u,d,p,l);s=c;break}case"path":{const[a,l,c]=i(e,["d"]),h=a.d||"";if(!h)return console.warn("Path element has no d attribute"),null;o=t.path(h,l),s=c;break}case"polygon":{const[a,l,c]=i(e,["points"]),h=gu(a.points||"");if(h.length<3)return console.warn("Polygon needs at least 3 points"),null;o=t.polygon(h,l),s=c;break}case"polyline":{const[a,l,c]=i(e,["points"]),h=gu(a.points||"");if(h.length<2)return console.warn("Polyline needs at least 2 points"),null;o=t.linearPath(h,l),s=c;break}default:return console.warn(`Unsupported shape type: ${r}`),null}return o?{element:o,svgAttributes:s}:null}catch(o){return console.error(`Error creating rough shape for ${r}:`,o),null}}function Mw(t,e,n,r,i,o){return i=Math.min(i,n/2),o=Math.min(o,r/2),`
19
+ </symbol>`);r&&(r.setAttribute("id",Rf),e.appendChild(r)),t.prepend(e)}function Lf(t,e){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=je(t,["id","x","y","width","height"]),a=ut("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`,"data-element-type":De.Button}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,h=ut("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(h);const u=ut("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function Eb(t){Lf(t,Hf)}function kb(t){Lf(t,Rf)}var Tb=Object.defineProperty,Nf=Object.getOwnPropertySymbols,zb=Object.prototype.hasOwnProperty,Hb=Object.prototype.propertyIsEnumerable,Df=(t,e,n)=>e in t?Tb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fs=(t,e)=>{for(var n in e||(e={}))zb.call(e,n)&&Df(t,n,e[n]);if(Nf)for(var n of Nf(e))Hb.call(e,n)&&Df(t,n,e[n]);return t};function Rb(t,e,n,r){var i;if(!n)return null;const{themeConfig:o}=r,s=Fs({},(i=o.item)==null?void 0:i.icon),a=or(e,s);return Lb(t,e,n,a)}function Lb(t,e,n,r){return Uh(t,n),Ox(n,Fs(Fs({},je(e,["id","x","y","width","height","fill","stroke"])),r))}var Nb=Object.defineProperty,Db=Object.defineProperties,jb=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,jf=Object.prototype.hasOwnProperty,Ff=Object.prototype.propertyIsEnumerable,Bf=(t,e,n)=>e in t?Nb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bi=(t,e)=>{for(var n in e||(e={}))jf.call(e,n)&&Bf(t,n,e[n]);if(vi)for(var n of vi(e))Ff.call(e,n)&&Bf(t,n,e[n]);return t},Wf=(t,e)=>Db(t,jb(e)),Fb=(t,e)=>{var n={};for(var r in t)jf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vi)for(var r of vi(t))e.indexOf(r)<0&&Ff.call(t,r)&&(n[r]=t[r]);return n};function Xf(t,e,n){if(!n)return null;const r=Ss(n);if(!r)return null;const i=Is(r),o=Bb(t,e,i);Uh(t,r);const{data:s,color:a}=r;return Wb(i,bi(Wf(bi({},Xb(e)),{"clip-path":`url(#${o})`}),a?{color:a}:{}),s)}function Bb(t,e,n){const r=`clip-${n}-${_b()}`;if(t.querySelector(`#${r}`))return r;const i=_i(t),o=ut("clipPath",{id:r}),s=e.cloneNode();return _x(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),r}function Wb(t,e,n){const r=e,{"clip-path":i}=r,o=Fb(r,["clip-path"]),{x:s="0",y:a="0",width:l="0",height:c="0"}=o,h=ut("rect",{id:`${t}-volume`,"data-element-type":De.IllusVolume,x:s,y:a,width:l,height:c,fill:"transparent"}),u=ut("g",{"data-element-type":De.IllusGroup,"clip-path":i,id:`${t}-group`});u.appendChild(h);const d=ut("use",Wf(bi({id:t,fill:"lightgray"},o),{href:Vh(n),"data-element-type":De.Illus}));return u.appendChild(d),u}function Xb(t){const e=t.getAttribute("data-illus-bounds");if(!e)return bi({x:"0",y:"0",width:"0",height:"0"},je(t,["x","y","width","height"]));const[n,r,i,o]=e.split(" ");return{x:n,y:r,width:i,height:o}}var Yb=Object.defineProperty,Yf=Object.getOwnPropertySymbols,Vb=Object.prototype.hasOwnProperty,qb=Object.prototype.propertyIsEnumerable,Vf=(t,e,n)=>e in t?Yb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gb=(t,e)=>{for(var n in e||(e={}))Vb.call(e,n)&&Vf(t,n,e[n]);if(Yf)for(var n of Yf(e))qb.call(e,n)&&Vf(t,n,e[n]);return t};function qf(t,e,n,r){const i=t.getAttribute(r),o=Ub(i,n),{type:s,colors:a=[]}=o,l=a.length-1,c=a.map((p,g)=>typeof p=="string"?ut("stop",{offset:`${g/l}`,"stop-color":p}):ut("stop",{offset:`${p.offset}`,"stop-color":p.color})),h=Zb(n);if(s==="linear-gradient"){const{angle:p=0}=o,[[g,y],[m,x]]=Qb(p),_=ut("linearGradient",{id:h,x1:g,y1:y,x2:m,y2:x});c.forEach(v=>_.appendChild(v)),Gf(e,h,_)}else if(s==="radial-gradient"){const p=ut("radialGradient",{id:h});c.forEach(g=>p.appendChild(g)),Gf(e,h,p)}const u=t.getAttribute("fill"),d=t.getAttribute("stroke");Kn(u)&&t.setAttribute("fill",`url(#${h})`),Kn(d)&&t.setAttribute("stroke",`url(#${h})`)}function Gf(t,e,n){const r=_i(t);n.setAttribute("id",e);const i=r.querySelector(`#${e}`);i?i.replaceWith(n):r.appendChild(n)}function Ub(t,e){var n;if((n=e.colors)!=null&&n.length||!t)return e;const r=tt(t),i=Gb({},e);return i.colors=r.isDark()?[t,r.lighten(20).toHexString()]:[r.darken(20).toHexString(),t],!("angle"in e)&&i.type==="linear-gradient"&&(i.angle=225),i}function Zb(t){const{type:e,colors:n=[]}=t,r=zf(n.map(i=>typeof i=="string"?i:`${i.color}_${i.offset}`).join("-"));if(e==="linear-gradient"){const{angle:i=0}=t;return`${e}-${r}-${i}`}return`${e}-${r}`}function Qb(t){const e=Math.PI/180*t,n=Math.cos(e),r=Math.sin(e);return[[.5-n/2,.5-r/2],[.5+n/2,.5+r/2]]}const Kb=Object.freeze(Object.defineProperty({__proto__:null,diamond:({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return r.appendChild(i),r.appendChild(o),r},dot:({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=ut("circle",{cx:"15",cy:"15",r:"3",fill:n});return r.appendChild(i),r.appendChild(o),r.appendChild(s),r},hex:({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return r.appendChild(i),r.appendChild(o),r},line:({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const o=ut("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),s=ut("rect",{width:"100%",height:"100%",fill:e}),a=ut("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),l=ut("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return o.appendChild(s),o.appendChild(a),o.appendChild(l),o},mosaic:({scale:t=1,backgroundColor:e="#ffffff",foregroundColor:n="#000000"})=>{const a=ut("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),l=ut("rect",{width:"100%",height:"100%",fill:e});a.appendChild(l);for(let c=0;c<4;c++)for(let h=0;h<4;h++)if((h+c)%2===0){const u=ut("rect",{x:h*5,y:c*5,width:5,height:5,fill:n});a.appendChild(u)}return a},square:({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=ut("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=ut("rect",{width:"100%",height:"100%",fill:e}),o=ut("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return r.appendChild(i),r.appendChild(o),r}},Symbol.toStringTag,{value:"Module"}));var Jb=Object.defineProperty,wi=Object.getOwnPropertySymbols,Uf=Object.prototype.hasOwnProperty,Zf=Object.prototype.propertyIsEnumerable,Qf=(t,e,n)=>e in t?Jb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bs=(t,e)=>{for(var n in e||(e={}))Uf.call(e,n)&&Qf(t,n,e[n]);if(wi)for(var n of wi(e))Zf.call(e,n)&&Qf(t,n,e[n]);return t},tw=(t,e)=>{var n={};for(var r in t)Uf.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wi)for(var r of wi(t))e.indexOf(r)<0&&Zf.call(t,r)&&(n[r]=t[r]);return n};const Ws=new Map;function Kf(t,e){Ws.has(t)&&console.warn(`Pattern ${t} will be overwritten`),Ws.set(t,e)}for(const[t,e]of Object.entries(Kb))Kf(t,e);function ew(t,e,n){const r=n.themeConfig.stylize;if(!r||r.type!=="pattern")return;const i=r,{pattern:o}=i,s=tw(i,["pattern"]),a=Ws.get(o);if(!a)return console.warn(`Pattern ${o} not found`);const{fill:l}=je(t,["fill","stroke"]),c=l,h=Bs({backgroundColor:c&&tt(c).setAlpha(.5).toRgbString(),foregroundColor:c},s),u=rw(Bs(Bs({},r),h));nw(e,u,a(h)),Kn(l)&&(t.setAttribute("fill",`url(#${u})`),!t.getAttribute("stroke")&&l&&t.setAttribute("stroke",l))}function nw(t,e,n){const r=_i(t);n.setAttribute("id",e);const i=r.querySelector(`pattern#${e}`);i?i.replaceWith(n):r.appendChild(n)}function rw(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=t;return zf(`pattern-${e}-${n}-${r}-${i}`)}function Xs(t,e,n){if(t&&t.length){const[r,i]=e,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const l of t){const[c,h]=l;l[0]=(c-r)*s-(h-i)*a+r,l[1]=(c-r)*a+(h-i)*s+i}}}function iw(t,e){return t[0]===e[0]&&t[1]===e[1]}function ow(t,e,n,r=1){const i=n,o=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(i)for(const c of s)Xs(c,a,i);const l=(function(c,h,u){const d=[];for(const _ of c){const v=[..._];iw(v[0],v[v.length-1])||v.push([v[0][0],v[0][1]]),v.length>2&&d.push(v)}const p=[];h=Math.max(h,.1);const g=[];for(const _ of d)for(let v=0;v<_.length-1;v++){const b=_[v],P=_[v+1];if(b[1]!==P[1]){const w=Math.min(b[1],P[1]);g.push({ymin:w,ymax:Math.max(b[1],P[1]),x:w===b[1]?b[0]:P[0],islope:(P[0]-b[0])/(P[1]-b[1])})}}if(g.sort(((_,v)=>_.ymin<v.ymin?-1:_.ymin>v.ymin?1:_.x<v.x?-1:_.x>v.x?1:_.ymax===v.ymax?0:(_.ymax-v.ymax)/Math.abs(_.ymax-v.ymax))),!g.length)return p;let y=[],m=g[0].ymin,x=0;for(;y.length||g.length;){if(g.length){let _=-1;for(let v=0;v<g.length&&!(g[v].ymin>m);v++)_=v;g.splice(0,_+1).forEach((v=>{y.push({s:m,edge:v})}))}if(y=y.filter((_=>!(_.edge.ymax<=m))),y.sort(((_,v)=>_.edge.x===v.edge.x?0:(_.edge.x-v.edge.x)/Math.abs(_.edge.x-v.edge.x))),(u!==1||x%h==0)&&y.length>1)for(let _=0;_<y.length;_+=2){const v=_+1;if(v>=y.length)break;const b=y[_].edge,P=y[v].edge;p.push([[Math.round(b.x),m],[Math.round(P.x),m]])}m+=u,y.forEach((_=>{_.edge.x=_.edge.x+u*_.edge.islope})),x++}return p})(s,o,r);if(i){for(const c of s)Xs(c,a,-i);(function(c,h,u){const d=[];c.forEach((p=>d.push(...p))),Xs(d,h,u)})(l,a,-i)}return l}function sr(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=i),ow(t,i,r,o||1)}class Ys{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const r=sr(e,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(e,n){const r=[];for(const i of e)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],n));return r}}function $i(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class sw extends Ys{fillPolygons(e,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=sr(e,Object.assign({},n,{hachureGap:r})),o=Math.PI/180*n.hachureAngle,s=[],a=.5*r*Math.cos(o),l=.5*r*Math.sin(o);for(const[c,h]of i)$i([c,h])&&s.push([[c[0]-a,c[1]+l],[...h]],[[c[0]+a,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}}class aw extends Ys{fillPolygons(e,n){const r=this._fillPolygons(e,n),i=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(e,i);return r.ops=r.ops.concat(o.ops),r}}class lw{constructor(e){this.helper=e}fillPolygons(e,n){const r=sr(e,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(r,n)}dotsOnLines(e,n){const r=[];let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const s=i/4;for(const a of e){const l=$i(a),c=l/i,h=Math.ceil(c)-1,u=l-h*i,d=(a[0][0]+a[1][0])/2-i/4,p=Math.min(a[0][1],a[1][1]);for(let g=0;g<h;g++){const y=p+u+g*i,m=d-s+2*Math.random()*s,x=y-s+2*Math.random()*s,_=this.helper.ellipse(m,x,o,o,n);r.push(..._.ops)}}return{type:"fillSketch",ops:r}}}let cw=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=sr(e,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(e,n){const r=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,i=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,o=[];return e.forEach((s=>{const a=$i(s),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let p=0;p<l;p++){const g=p*(r+i),y=g+r,m=[h[0]+g*Math.cos(d)+c*Math.cos(d),h[1]+g*Math.sin(d)+c*Math.sin(d)],x=[h[0]+y*Math.cos(d)+c*Math.cos(d),h[1]+y*Math.sin(d)+c*Math.sin(d)];o.push(...this.helper.doubleLineOps(m[0],m[1],x[0],x[1],n))}})),o}};class hw{constructor(e){this.helper=e}fillPolygons(e,n){const r=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,i=n.zigzagOffset<0?r:n.zigzagOffset,o=sr(e,n=Object.assign({},n,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,n)}}zigzagLines(e,n,r){const i=[];return e.forEach((o=>{const s=$i(o),a=Math.round(s/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<a;u++){const d=2*u*n,p=2*(u+1)*n,g=Math.sqrt(2*Math.pow(n,2)),y=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],m=[l[0]+p*Math.cos(h),l[1]+p*Math.sin(h)],x=[y[0]+g*Math.cos(h+Math.PI/4),y[1]+g*Math.sin(h+Math.PI/4)];i.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],r),...this.helper.doubleLineOps(x[0],x[1],m[0],m[1],r))}})),i}}const ee={};class fw{constructor(e){this.seed=e}next(){return this.seed?(Or(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/Or(2,31):Math.random()}}const uw=0,Vs=1,Jf=2,Pi={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function qs(t,e){return t.type===e}function Gs(t){const e=[],n=(function(s){const a=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:uw,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:Vs,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:Jf,text:""},a})(t);let r="BOD",i=0,o=n[i];for(;!qs(o,Jf);){let s=0;const a=[];if(r==="BOD"){if(o.text!=="M"&&o.text!=="m")return Gs("M0,0"+t);i++,s=Pi[o.text],r=o.text}else qs(o,Vs)?s=Pi[r]:(i++,s=Pi[o.text],r=o.text);if(!(i+s<n.length))throw new Error("Path data ended short");for(let l=i;l<i+s;l++){const c=n[l];if(!qs(c,Vs))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof Pi[r]!="number")throw new Error("Bad segment: "+r);{const l={key:r,data:a};e.push(l),i+=s,o=n[i],r==="M"&&(r="L"),r==="m"&&(r="l")}}return e}function tu(t){let e=0,n=0,r=0,i=0;const o=[];for(const{key:s,data:a}of t)switch(s){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[r,i]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const l=a.map(((c,h)=>h%2?c+n:c+e));o.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const l=a.map(((c,h)=>h%2?c+n:c+e));o.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const l=a.map(((c,h)=>h%2?c+n:c+e));o.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=r,n=i}return o}function eu(t){const e=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[r,i]=h,[o,s]=h;break;case"C":e.push({key:"C",data:[...h]}),r=h[4],i=h[5],a=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[r,i]=h;break;case"H":r=h[0],e.push({key:"L",data:[r,i]});break;case"V":i=h[0],e.push({key:"L",data:[r,i]});break;case"S":{let u=0,d=0;n==="C"||n==="S"?(u=r+(r-a),d=i+(i-l)):(u=r,d=i),e.push({key:"C",data:[u,d,...h]}),a=h[0],l=h[1],r=h[2],i=h[3];break}case"T":{const[u,d]=h;let p=0,g=0;n==="Q"||n==="T"?(p=r+(r-a),g=i+(i-l)):(p=r,g=i);const y=r+2*(p-r)/3,m=i+2*(g-i)/3,x=u+2*(p-u)/3,_=d+2*(g-d)/3;e.push({key:"C",data:[y,m,x,_,u,d]}),a=p,l=g,r=u,i=d;break}case"Q":{const[u,d,p,g]=h,y=r+2*(u-r)/3,m=i+2*(d-i)/3,x=p+2*(u-p)/3,_=g+2*(d-g)/3;e.push({key:"C",data:[y,m,x,_,p,g]}),a=u,l=d,r=p,i=g;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),p=h[2],g=h[3],y=h[4],m=h[5],x=h[6];u===0||d===0?(e.push({key:"C",data:[r,i,m,x,m,x]}),r=m,i=x):(r!==m||i!==x)&&(nu(r,i,m,x,u,d,p,g,y).forEach((function(_){e.push({key:"C",data:_})})),r=m,i=x);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=s}n=c}return e}function ar(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function nu(t,e,n,r,i,o,s,a,l,c){const h=(u=s,Math.PI*u/180);var u;let d=[],p=0,g=0,y=0,m=0;if(c)[p,g,y,m]=c;else{[t,e]=ar(t,e,-h),[n,r]=ar(n,r,-h);const E=(t-n)/2,L=(e-r)/2;let F=E*E/(i*i)+L*L/(o*o);F>1&&(F=Math.sqrt(F),i*=F,o*=F);const z=i*i,j=o*o,R=z*j-z*L*L-j*E*E,H=z*L*L+j*E*E,D=(a===l?-1:1)*Math.sqrt(Math.abs(R/H));y=D*i*L/o+(t+n)/2,m=D*-o*E/i+(e+r)/2,p=Math.asin(parseFloat(((e-m)/o).toFixed(9))),g=Math.asin(parseFloat(((r-m)/o).toFixed(9))),t<y&&(p=Math.PI-p),n<y&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let x=g-p;if(Math.abs(x)>120*Math.PI/180){const E=g,L=n,F=r;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=nu(n=y+i*Math.cos(g),r=m+o*Math.sin(g),L,F,i,o,s,0,l,[g,E,y,m])}x=g-p;const _=Math.cos(p),v=Math.sin(p),b=Math.cos(g),P=Math.sin(g),w=Math.tan(x/4),$=4/3*i*w,M=4/3*o*w,A=[t,e],I=[t+$*v,e-M*_],C=[n+$*P,r-M*b],k=[n,r];if(I[0]=2*A[0]-I[0],I[1]=2*A[1]-I[1],c)return[I,C,k].concat(d);{d=[I,C,k].concat(d);const E=[];for(let L=0;L<d.length;L+=3){const F=ar(d[L][0],d[L][1],h),z=ar(d[L+1][0],d[L+1][1],h),j=ar(d[L+2][0],d[L+2][1],h);E.push([F[0],F[1],z[0],z[1],j[0],j[1]])}return E}}const dw={randOffset:function(t,e){return at(t,e)},randOffsetWithRange:function(t,e,n){return Oi(t,e,n)},ellipse:function(t,e,n,r,i){const o=ou(n,r,i);return Us(t,e,i,o).opset},doubleLineOps:function(t,e,n,r,i){return Fe(t,e,n,r,i,!0)}};function ru(t,e,n,r,i){return{type:"path",ops:Fe(t,e,n,r,i)}}function Mi(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let o=0;o<r-1;o++)i.push(...Fe(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&i.push(...Fe(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return r===2?ru(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function pw(t,e,n,r,i){return(function(o,s){return Mi(o,!0,s)})([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}function iu(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=Ci(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:Ci(n[0],1.5*(1+.22*e.roughness),lu(e));for(let o=1;o<n.length;o++){const s=n[o];if(s.length){const a=Ci(s,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:Ci(s,1.5*(1+.22*e.roughness),lu(e));for(const c of a)c.op!=="move"&&r.push(c);for(const c of l)c.op!=="move"&&i.push(c)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function ou(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let s=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return s+=at(s*l,n),a+=at(a*l,n),{increment:o,rx:s,ry:a}}function Us(t,e,n,r){const[i,o]=hu(r.increment,t,e,r.rx,r.ry,1,r.increment*Oi(.1,Oi(.4,1,n),n),n);let s=Si(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=hu(r.increment,t,e,r.rx,r.ry,1.5,0,n),l=Si(a,null,n);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function su(t,e,n,r,i,o,s,a,l){const c=t,h=e;let u=Math.abs(n/2),d=Math.abs(r/2);u+=at(.01*u,l),d+=at(.01*d,l);let p=i,g=o;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const y=2*Math.PI/l.curveStepCount,m=Math.min(y/2,(g-p)/2),x=fu(m,c,h,u,d,p,g,1,l);if(!l.disableMultiStroke){const _=fu(m,c,h,u,d,p,g,1.5,l);x.push(..._)}return s&&(a?x.push(...Fe(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l),...Fe(c,h,c+u*Math.cos(g),h+d*Math.sin(g),l)):x.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(p),h+d*Math.sin(p)]})),{type:"path",ops:x}}function au(t,e){const n=eu(tu(Gs(t))),r=[];let i=[0,0],o=[0,0];for(const{key:s,data:a}of n)switch(s){case"M":o=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...Fe(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,h,u,d,p]=a;r.push(...gw(l,c,h,u,d,p,o,e)),o=[d,p];break}case"Z":r.push(...Fe(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function Zs(t,e){const n=[];for(const r of t)if(r.length){const i=e.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+at(i,e),r[0][1]+at(i,e)]});for(let s=1;s<o;s++)n.push({op:"lineTo",data:[r[s][0]+at(i,e),r[s][1]+at(i,e)]})}}return{type:"fillPath",ops:n}}function Pn(t,e){return(function(n,r){let i=n.fillStyle||"hachure";if(!ee[i])switch(i){case"zigzag":ee[i]||(ee[i]=new sw(r));break;case"cross-hatch":ee[i]||(ee[i]=new aw(r));break;case"dots":ee[i]||(ee[i]=new lw(r));break;case"dashed":ee[i]||(ee[i]=new cw(r));break;case"zigzag-line":ee[i]||(ee[i]=new hw(r));break;default:i="hachure",ee[i]||(ee[i]=new Ys(r))}return ee[i]})(e,dw).fillPolygons(t,e)}function lu(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function cu(t){return t.randomizer||(t.randomizer=new fw(t.seed||0)),t.randomizer.next()}function Oi(t,e,n,r=1){return n.roughness*r*(cu(n)*(e-t)+t)}function at(t,e,n=1){return Oi(-t,t,e,n)}function Fe(t,e,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=Qs(t,e,n,r,i,!0,!1);if(s)return a;const l=Qs(t,e,n,r,i,!0,!0);return a.concat(l)}function Qs(t,e,n,r,i,o,s){const a=Math.pow(t-n,2)+Math.pow(e-r,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=i.maxRandomnessOffset||0;h*h*100>a&&(h=l/10);const u=h/2,d=.2+.2*cu(i);let p=i.bowing*i.maxRandomnessOffset*(r-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-n)/200;p=at(p,i,c),g=at(g,i,c);const y=[],m=()=>at(u,i,c),x=()=>at(h,i,c),_=i.preserveVertices;return s?y.push({op:"move",data:[t+(_?0:m()),e+(_?0:m())]}):y.push({op:"move",data:[t+(_?0:at(h,i,c)),e+(_?0:at(h,i,c))]}),s?y.push({op:"bcurveTo",data:[p+t+(n-t)*d+m(),g+e+(r-e)*d+m(),p+t+2*(n-t)*d+m(),g+e+2*(r-e)*d+m(),n+(_?0:m()),r+(_?0:m())]}):y.push({op:"bcurveTo",data:[p+t+(n-t)*d+x(),g+e+(r-e)*d+x(),p+t+2*(n-t)*d+x(),g+e+2*(r-e)*d+x(),n+(_?0:x()),r+(_?0:x())]}),y}function Ci(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+at(e,n),t[0][1]+at(e,n)]),r.push([t[0][0]+at(e,n),t[0][1]+at(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+at(e,n),t[i][1]+at(e,n)]),i===t.length-1&&r.push([t[i][0]+at(e,n),t[i][1]+at(e,n)]);return Si(r,null,n)}function Si(t,e,n){const r=t.length,i=[];if(r>3){const o=[],s=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<r;a++){const l=t[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*t[a+1][0]-s*t[a-1][0])/6,l[1]+(s*t[a+1][1]-s*t[a-1][1])/6],o[2]=[t[a+1][0]+(s*t[a][0]-s*t[a+2][0])/6,t[a+1][1]+(s*t[a][1]-s*t[a+2][1])/6],o[3]=[t[a+1][0],t[a+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else r===3?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):r===2&&i.push(...Qs(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function hu(t,e,n,r,i,o,s,a){const l=[],c=[];if(a.roughness===0){t/=4,c.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let h=0;h<=2*Math.PI;h+=t){const u=[e+r*Math.cos(h),n+i*Math.sin(h)];l.push(u),c.push(u)}c.push([e+r*Math.cos(0),n+i*Math.sin(0)]),c.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const h=at(.5,a)-Math.PI/2;c.push([at(o,a)+e+.9*r*Math.cos(h-t),at(o,a)+n+.9*i*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let d=h;d<u;d+=t){const p=[at(o,a)+e+r*Math.cos(d),at(o,a)+n+i*Math.sin(d)];l.push(p),c.push(p)}c.push([at(o,a)+e+r*Math.cos(h+2*Math.PI+.5*s),at(o,a)+n+i*Math.sin(h+2*Math.PI+.5*s)]),c.push([at(o,a)+e+.98*r*Math.cos(h+s),at(o,a)+n+.98*i*Math.sin(h+s)]),c.push([at(o,a)+e+.9*r*Math.cos(h+.5*s),at(o,a)+n+.9*i*Math.sin(h+.5*s)])}return[c,l]}function fu(t,e,n,r,i,o,s,a,l){const c=o+at(.1,l),h=[];h.push([at(a,l)+e+.9*r*Math.cos(c-t),at(a,l)+n+.9*i*Math.sin(c-t)]);for(let u=c;u<=s;u+=t)h.push([at(a,l)+e+r*Math.cos(u),at(a,l)+n+i*Math.sin(u)]);return h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),Si(h,null,l)}function gw(t,e,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let h=[0,0];const u=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let p=0;p<u;p++)p===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(d?0:at(c[0],a)),s[1]+(d?0:at(c[0],a))]}),h=d?[i,o]:[i+at(c[p],a),o+at(c[p],a)],l.push({op:"bcurveTo",data:[t+at(c[p],a),e+at(c[p],a),n+at(c[p],a),r+at(c[p],a),h[0],h[1]]});return l}function lr(t){return[...t]}function uu(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(lr(t[0]),lr(t[1]),lr(t[2]),lr(t[2]));else{const i=[];i.push(t[0],t[0]);for(let a=1;a<t.length;a++)i.push(t[a]),a===t.length-1&&i.push(t[a]);const o=[],s=1-e;r.push(lr(i[0]));for(let a=1;a+2<i.length;a++){const l=i[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*i[a+1][0]-s*i[a-1][0])/6,l[1]+(s*i[a+1][1]-s*i[a-1][1])/6],o[2]=[i[a+1][0]+(s*i[a][0]-s*i[a+2][0])/6,i[a+1][1]+(s*i[a][1]-s*i[a+2][1])/6],o[3]=[i[a+1][0],i[a+1][1]],r.push(o[1],o[2],o[3])}}return r}function Ii(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function mw(t,e,n){const r=Ii(e,n);if(r===0)return Ii(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),Ii(t,Ke(e,n,i))}function Ke(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ks(t,e,n,r){const i=r||[];if((function(a,l){const c=a[l+0],h=a[l+1],u=a[l+2],d=a[l+3];let p=3*h[0]-2*c[0]-d[0];p*=p;let g=3*h[1]-2*c[1]-d[1];g*=g;let y=3*u[0]-2*d[0]-c[0];y*=y;let m=3*u[1]-2*d[1]-c[1];return m*=m,p<y&&(p=y),g<m&&(g=m),p+g})(t,e)<n){const a=t[e+0];i.length?(o=i[i.length-1],s=a,Math.sqrt(Ii(o,s))>1&&i.push(a)):i.push(a),i.push(t[e+3])}else{const l=t[e+0],c=t[e+1],h=t[e+2],u=t[e+3],d=Ke(l,c,.5),p=Ke(c,h,.5),g=Ke(h,u,.5),y=Ke(d,p,.5),m=Ke(p,g,.5),x=Ke(y,m,.5);Ks([l,d,y,x],0,n,i),Ks([x,m,g,u],0,n,i)}var o,s;return i}function yw(t,e){return Ai(t,0,t.length,e)}function Ai(t,e,n,r,i){const o=i||[],s=t[e],a=t[n-1];let l=0,c=1;for(let h=e+1;h<n-1;++h){const u=mw(t[h],s,a);u>l&&(l=u,c=h)}return Math.sqrt(l)>r?(Ai(t,e,c+1,r,o),Ai(t,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function Js(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let o=0;o<i;o++)Ks(t,3*o,e,r);return n&&n>0?Ai(r,0,r.length,n):r}const ie="none";class Ei{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*Or(2,31))}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,r){return{shape:e,sets:n||[],options:r||this.defaultOptions}}line(e,n,r,i,o){const s=this._o(o);return this._d("line",[ru(e,n,r,i,s)],s)}rectangle(e,n,r,i,o){const s=this._o(o),a=[],l=pw(e,n,r,i,s);if(s.fill){const c=[[e,n],[e+r,n],[e+r,n+i],[e,n+i]];s.fillStyle==="solid"?a.push(Zs([c],s)):a.push(Pn([c],s))}return s.stroke!==ie&&a.push(l),this._d("rectangle",a,s)}ellipse(e,n,r,i,o){const s=this._o(o),a=[],l=ou(r,i,s),c=Us(e,n,s,l);if(s.fill)if(s.fillStyle==="solid"){const h=Us(e,n,s,l).opset;h.type="fillPath",a.push(h)}else a.push(Pn([c.estimatedPoints],s));return s.stroke!==ie&&a.push(c.opset),this._d("ellipse",a,s)}circle(e,n,r,i){const o=this.ellipse(e,n,r,r,i);return o.shape="circle",o}linearPath(e,n){const r=this._o(n);return this._d("linearPath",[Mi(e,!1,r)],r)}arc(e,n,r,i,o,s,a=!1,l){const c=this._o(l),h=[],u=su(e,n,r,i,o,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const p=su(e,n,r,i,o,s,!0,!1,d);p.type="fillPath",h.push(p)}else h.push((function(d,p,g,y,m,x,_){const v=d,b=p;let P=Math.abs(g/2),w=Math.abs(y/2);P+=at(.01*P,_),w+=at(.01*w,_);let $=m,M=x;for(;$<0;)$+=2*Math.PI,M+=2*Math.PI;M-$>2*Math.PI&&($=0,M=2*Math.PI);const A=(M-$)/_.curveStepCount,I=[];for(let C=$;C<=M;C+=A)I.push([v+P*Math.cos(C),b+w*Math.sin(C)]);return I.push([v+P*Math.cos(M),b+w*Math.sin(M)]),I.push([v,b]),Pn([I],_)})(e,n,r,i,o,s,c));return c.stroke!==ie&&h.push(u),this._d("arc",h,c)}curve(e,n){const r=this._o(n),i=[],o=iu(e,r);if(r.fill&&r.fill!==ie)if(r.fillStyle==="solid"){const s=iu(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],a=e;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...Js(uu([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):s.push(...Js(uu(c),10,(1+r.roughness)/2))}s.length&&i.push(Pn([s],r))}return r.stroke!==ie&&i.push(o),this._d("curve",i,r)}polygon(e,n){const r=this._o(n),i=[],o=Mi(e,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(Zs([e],r)):i.push(Pn([e],r))),r.stroke!==ie&&i.push(o),this._d("polygon",i,r)}path(e,n){const r=this._o(n),i=[];if(!e)return this._d("path",i,r);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&r.fill!=="transparent"&&r.fill!==ie,s=r.stroke!==ie,a=!!(r.simplification&&r.simplification<1),l=(function(h,u,d){const p=eu(tu(Gs(h))),g=[];let y=[],m=[0,0],x=[];const _=()=>{x.length>=4&&y.push(...Js(x,u)),x=[]},v=()=>{_(),y.length&&(g.push(y),y=[])};for(const{key:P,data:w}of p)switch(P){case"M":v(),m=[w[0],w[1]],y.push(m);break;case"L":_(),y.push([w[0],w[1]]);break;case"C":if(!x.length){const $=y.length?y[y.length-1]:m;x.push([$[0],$[1]])}x.push([w[0],w[1]]),x.push([w[2],w[3]]),x.push([w[4],w[5]]);break;case"Z":_(),y.push([m[0],m[1]])}if(v(),!d)return g;const b=[];for(const P of g){const w=yw(P,d);w.length&&b.push(w)}return b})(e,1,a?4-4*(r.simplification||1):(1+r.roughness)/2),c=au(e,r);if(o)if(r.fillStyle==="solid")if(l.length===1){const h=au(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else i.push(Zs(l,r));else i.push(Pn(l,r));return s&&(a?l.forEach((h=>{i.push(Mi(h,!1,r))})):i.push(c)),this._d("path",i,r)}opsToPath(e,n){let r="";for(const i of e.ops){const o=typeof n=="number"&&n>=0?i.data.map((s=>+s.toFixed(n))):i.data;switch(i.op){case"move":r+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":r+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":r+=`L${o[0]} ${o[1]} `}}return r.trim()}toPaths(e){const n=e.sets||[],r=e.options||this.defaultOptions,i=[];for(const o of n){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:ie};break;case"fillPath":s={d:this.opsToPath(o),stroke:ie,strokeWidth:0,fill:r.fill||ie};break;case"fillSketch":s=this.fillSketch(o,r)}s&&i.push(s)}return i}fillSketch(e,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||ie,strokeWidth:r,fill:ie}}_mergedShape(e){return e.filter(((n,r)=>r===0||n.op!=="move"))}}class _w{constructor(e,n){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new Ei(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(const s of n)switch(s.type){case"path":i.save(),i.strokeStyle=r.stroke==="none"?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,s,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const a=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,o,a),i.restore();break}case"fillSketch":this.fillSketch(i,s,r)}}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),e.save(),r.fillLineDash&&e.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(e.lineDashOffset=r.fillLineDashOffset),e.strokeStyle=r.fill||"",e.lineWidth=i,this._drawToContext(e,n,r.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,n,r,i="nonzero"){e.beginPath();for(const o of n.ops){const s=typeof r=="number"&&r>=0?o.data.map((a=>+a.toFixed(r))):o.data;switch(o.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}n.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,n,r,i,o){const s=this.gen.line(e,n,r,i,o);return this.draw(s),s}rectangle(e,n,r,i,o){const s=this.gen.rectangle(e,n,r,i,o);return this.draw(s),s}ellipse(e,n,r,i,o){const s=this.gen.ellipse(e,n,r,i,o);return this.draw(s),s}circle(e,n,r,i){const o=this.gen.circle(e,n,r,i);return this.draw(o),o}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r),r}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r),r}arc(e,n,r,i,o,s,a=!1,l){const c=this.gen.arc(e,n,r,i,o,s,a,l);return this.draw(c),c}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r),r}path(e,n){const r=this.gen.path(e,n);return this.draw(r),r}}const ki="http://www.w3.org/2000/svg";class xw{constructor(e,n){this.svg=e,this.gen=new Ei(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(ki,"g"),s=e.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(ki,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke",r.stroke),l.setAttribute("stroke-width",r.strokeWidth+""),l.setAttribute("fill","none"),r.strokeLineDash&&l.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(ki,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",r.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,a,r)}l&&o.appendChild(l)}return o}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const o=e.createElementNS(ki,"path");return o.setAttribute("d",this.opsToPath(n,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,n){return this.gen.opsToPath(e,n)}line(e,n,r,i,o){const s=this.gen.line(e,n,r,i,o);return this.draw(s)}rectangle(e,n,r,i,o){const s=this.gen.rectangle(e,n,r,i,o);return this.draw(s)}ellipse(e,n,r,i,o){const s=this.gen.ellipse(e,n,r,i,o);return this.draw(s)}circle(e,n,r,i){const o=this.gen.circle(e,n,r,i);return this.draw(o)}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r)}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r)}arc(e,n,r,i,o,s,a=!1,l){const c=this.gen.arc(e,n,r,i,o,s,a,l);return this.draw(c)}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r)}path(e,n){const r=this.gen.path(e,n);return this.draw(r)}}var vw={canvas:(t,e)=>new _w(t,e),svg:(t,e)=>new xw(t,e),generator:t=>new Ei(t),newSeed:()=>Ei.newSeed()},bw=Object.defineProperty,du=Object.getOwnPropertySymbols,ww=Object.prototype.hasOwnProperty,$w=Object.prototype.propertyIsEnumerable,pu=(t,e,n)=>e in t?bw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pw=(t,e)=>{for(var n in e||(e={}))ww.call(e,n)&&pu(t,n,e[n]);if(du)for(var n of du(e))$w.call(e,n)&&pu(t,n,e[n]);return t};function Mw(t,e,n){if(!t||!e){console.warn("Invalid node or svg element");return}const r=vw.svg(e,{options:{seed:1e3}}),i=ut("g");t.hasAttribute("transform")&&i.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();le(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.classList.add("rough-volume"),i.appendChild(o);const s=Cw(r,t,n);if(s){const{element:l,svgAttributes:c}=s;l.classList.add("rough-element"),l.style.pointerEvents="none",Ow(l,c),i.appendChild(l)}t.id&&(i.id=t.id,o.setAttribute("id",`${t.id}-volume`),s!=null&&s.element&&s.element.setAttribute("id",`${t.id}-rough`)),Array.from(t.classList).forEach(l=>{i.classList.contains(l)||i.classList.add(l)}),Array.from(t.attributes).forEach(l=>{l.name.startsWith("data-")&&i.setAttribute(l.name,l.value)}),i.childElementCount>0?t.replaceWith(i):t.remove()}function Ow(t,e){e.opacity!==void 0&&t.setAttribute("opacity",String(e.opacity)),e.fillOpacity!==void 0&&t.setAttribute("fill-opacity",String(e.fillOpacity)),e.strokeOpacity!==void 0&&t.setAttribute("stroke-opacity",String(e.strokeOpacity)),e.strokeLinecap&&t.setAttribute("stroke-linecap",e.strokeLinecap),e.strokeLinejoin&&t.setAttribute("stroke-linejoin",e.strokeLinejoin),e.strokeDasharray&&t.setAttribute("stroke-dasharray",e.strokeDasharray),e.filter&&t.setAttribute("filter",e.filter),e.clipPath&&t.setAttribute("clip-path",e.clipPath),e.mask&&t.setAttribute("mask",e.mask)}function Cw(t,e,n){const r=e.nodeName.toLowerCase(),i=(o,s)=>{const a=je(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),l={},c=Pw({},n),h={};s.forEach($=>{a[$]!==void 0&&(l[$]=a[$])});const{fill:u,"fill-opacity":d,stroke:p,"stroke-opacity":g,"stroke-width":y,"stroke-dasharray":m,"stroke-linecap":x,"stroke-linejoin":_,opacity:v,filter:b,"clip-path":P,mask:w}=a;if(c.fill=u||"none",c.stroke=p||(u&&u!=="none"?u:"currentColor"),y&&(c.strokeWidth=parseFloat(y)),m&&m!=="none"){const $=m.split(/[\s,]+/).map(M=>parseFloat(M)).filter(M=>!isNaN(M));$.length>0&&(c.strokeLineDash=$)}return d&&(h.fillOpacity=parseFloat(d)),g&&(h.strokeOpacity=parseFloat(g)),v&&(h.opacity=parseFloat(v)),x&&(h.strokeLinecap=x),_&&(h.strokeLinejoin=_),m&&m!=="none"&&(h.strokeDasharray=m),b&&(h.filter=b),P&&(h.clipPath=P),w&&(h.mask=w),[l,c,h]};try{let o=null,s={};switch(r){case"circle":{const[a,l,c]=i(e,["cx","cy","r"]),h=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,d=parseFloat(a.r)||0;o=t.circle(h,u,d*2,l),s=c;break}case"ellipse":{const[a,l,c]=i(e,["cx","cy","rx","ry"]),h=parseFloat(a.cx)||0,u=parseFloat(a.cy)||0,d=parseFloat(a.rx)||0,p=parseFloat(a.ry)||0;o=t.ellipse(h,u,d*2,p*2,l),s=c;break}case"line":{const[a,l,c]=i(e,["x1","y1","x2","y2"]),h=parseFloat(a.x1)||0,u=parseFloat(a.y1)||0,d=parseFloat(a.x2)||0,p=parseFloat(a.y2)||0;o=t.line(h,u,d,p,l),s=c;break}case"rect":{const[a,l,c]=i(e,["x","y","width","height","rx","ry"]),h=parseFloat(a.x)||0,u=parseFloat(a.y)||0,d=parseFloat(a.width)||0,p=parseFloat(a.height)||0,g=parseFloat(a.rx)||0,y=parseFloat(a.ry)||0;if(g>0||y>0){const _=Sw(h,u,d,p,g||y,y||g);o=t.path(_,l)}else o=t.rectangle(h,u,d,p,l);s=c;break}case"path":{const[a,l,c]=i(e,["d"]),h=a.d||"";if(!h)return console.warn("Path element has no d attribute"),null;o=t.path(h,l),s=c;break}case"polygon":{const[a,l,c]=i(e,["points"]),h=gu(a.points||"");if(h.length<3)return console.warn("Polygon needs at least 3 points"),null;o=t.polygon(h,l),s=c;break}case"polyline":{const[a,l,c]=i(e,["points"]),h=gu(a.points||"");if(h.length<2)return console.warn("Polyline needs at least 2 points"),null;o=t.linearPath(h,l),s=c;break}default:return console.warn(`Unsupported shape type: ${r}`),null}return o?{element:o,svgAttributes:s}:null}catch(o){return console.error(`Error creating rough shape for ${r}:`,o),null}}function Sw(t,e,n,r,i,o){return i=Math.min(i,n/2),o=Math.min(o,r/2),`
20
20
  M ${t+i} ${e}
21
21
  L ${t+n-i} ${e}
22
22
  A ${i} ${o} 0 0 1 ${t+n} ${e+o}
@@ -27,7 +27,7 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
27
27
  L ${t} ${e+o}
28
28
  A ${i} ${o} 0 0 1 ${t+i} ${e}
29
29
  Z
30
- `.replace(/\s+/g," ").trim()}function gu(t){if(!t||typeof t!="string")return[];try{const n=t.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),r=[];for(let i=0;i<n.length-1;i+=2){const o=parseFloat(n[i]),s=parseFloat(n[i+1]);if(isNaN(o)||isNaN(s)){console.warn(`Invalid coordinate pair at index ${i}: "${n[i]}", "${n[i+1]}"`);continue}r.push([o,s])}return n.length%2!==0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${n[n.length-1]}"`),r}catch(e){return console.error("Failed to parse polygon points:",t,e),[]}}function mu(t,e,n){var r;const{themeConfig:i}=n,o=Object.assign({},(r=i.base)==null?void 0:r.shape,i.shape),s=or(e,o);return le(e,s),Cw(e,t,n),e}function Ow(t,e){var n;le(t,((n=e.themeConfig.base)==null?void 0:n.shape)||{})}function Cw(t,e,n){const r=n.themeConfig.stylize;if(!r)return t;const{type:i}=r;if(!i)return t;if(i==="rough")return ww(t,e,r);if(i==="pattern")return Kb(t,e,n);if(i==="linear-gradient"||i==="radial-gradient"){const{fill:o,stroke:s}=je(t,["fill","stroke"]);Kn(o)&&qf(t,e,r,"fill"),Kn(s)&&qf(t,e,r,"stroke");return}}function yu(t){return t}var _u=Object.create,Sw=(function(){function t(){}return function(e){if(!Ze(e))return{};if(_u)return _u(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function Iw(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Aw(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Ew=800,kw=16,Tw=Date.now;function zw(t){var e=0,n=0;return function(){var r=Tw(),i=kw-(r-n);if(n=r,i>0){if(++e>=Ew)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Hw(t){return function(){return t}}var Ti=(function(){try{var t=Ps(Object,"defineProperty");return t({},"",{}),t}catch(e){}})(),Rw=Ti?function(t,e){return Ti(t,"toString",{configurable:!0,enumerable:!1,value:Hw(e),writable:!0})}:yu,Lw=zw(Rw),Nw=9007199254740991,Dw=/^(?:0|[1-9]\d*)$/;function xu(t,e){var n=typeof t;return e=e==null?Nw:e,!!e&&(n=="number"||n!="symbol"&&Dw.test(t))&&t>-1&&t%1==0&&t<e}function ta(t,e,n){e=="__proto__"&&Ti?Ti(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var jw=Object.prototype,Fw=jw.hasOwnProperty;function Bw(t,e,n){var r=t[e];(!(Fw.call(t,e)&&di(r,n))||n===void 0&&!(e in t))&&ta(t,e,n)}function Ww(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=void 0;l===void 0&&(l=t[a]),i?ta(n,a,l):Bw(n,a,l)}return n}var vu=Math.max;function Xw(t,e,n){return e=vu(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=vu(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(s),Iw(t,this,a)}}function Yw(t,e){return Lw(Xw(t,e,yu),t+"")}var Vw=9007199254740991;function bu(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Vw}function ea(t){return t!=null&&bu(t.length)&&!ws(t)}function qw(t,e,n){if(!Ze(n))return!1;var r=typeof e;return(r=="number"?ea(n)&&xu(e,n.length):r=="string"&&e in n)?di(n[e],t):!1}function Gw(t){return Yw(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,s&&qw(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e})}var Uw=Object.prototype;function wu(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Uw;return t===n}function Zw(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Qw="[object Arguments]";function $u(t){return vn(t)&&tr(t)==Qw}var Pu=Object.prototype,Kw=Pu.hasOwnProperty,Jw=Pu.propertyIsEnumerable,na=$u((function(){return arguments})())?$u:function(t){return vn(t)&&Kw.call(t,"callee")&&!Jw.call(t,"callee")};function t5(){return!1}var Mu=typeof N=="object"&&N&&!N.nodeType&&N,Ou=Mu&&typeof module=="object"&&module&&!module.nodeType&&module,e5=Ou&&Ou.exports===Mu,Cu=e5?_n.Buffer:void 0,n5=Cu?Cu.isBuffer:void 0,Su=n5||t5,r5="[object Arguments]",i5="[object Array]",o5="[object Boolean]",s5="[object Date]",a5="[object Error]",l5="[object Function]",c5="[object Map]",h5="[object Number]",f5="[object Object]",u5="[object RegExp]",d5="[object Set]",p5="[object String]",g5="[object WeakMap]",m5="[object ArrayBuffer]",y5="[object DataView]",_5="[object Float32Array]",x5="[object Float64Array]",v5="[object Int8Array]",b5="[object Int16Array]",w5="[object Int32Array]",$5="[object Uint8Array]",P5="[object Uint8ClampedArray]",M5="[object Uint16Array]",O5="[object Uint32Array]",Rt={};Rt[_5]=Rt[x5]=Rt[v5]=Rt[b5]=Rt[w5]=Rt[$5]=Rt[P5]=Rt[M5]=Rt[O5]=!0,Rt[r5]=Rt[i5]=Rt[m5]=Rt[o5]=Rt[y5]=Rt[s5]=Rt[a5]=Rt[l5]=Rt[c5]=Rt[h5]=Rt[f5]=Rt[u5]=Rt[d5]=Rt[p5]=Rt[g5]=!1;function C5(t){return vn(t)&&bu(t.length)&&!!Rt[tr(t)]}function S5(t){return function(e){return t(e)}}var Iu=typeof N=="object"&&N&&!N.nodeType&&N,cr=Iu&&typeof module=="object"&&module&&!module.nodeType&&module,I5=cr&&cr.exports===Iu,ra=I5&&Th.process,Au=(function(){try{var t=cr&&cr.require&&cr.require("util").types;return t||ra&&ra.binding&&ra.binding("util")}catch(e){}})(),Eu=Au&&Au.isTypedArray,ku=Eu?S5(Eu):C5;function A5(t,e){var n=yn(t),r=!n&&na(t),i=!n&&!r&&Su(t),o=!n&&!r&&!i&&ku(t),s=n||r||i||o,a=s?Zw(t.length,String):[],l=a.length;for(var c in t)s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||xu(c,l))||a.push(c);return a}function E5(t,e){return function(n){return t(e(n))}}function k5(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var T5=Object.prototype,z5=T5.hasOwnProperty;function H5(t){if(!Ze(t))return k5(t);var e=wu(t),n=[];for(var r in t)r=="constructor"&&(e||!z5.call(t,r))||n.push(r);return n}function Tu(t){return ea(t)?A5(t):H5(t)}var zu=E5(Object.getPrototypeOf,Object),R5="[object Object]",L5=Function.prototype,N5=Object.prototype,Hu=L5.toString,D5=N5.hasOwnProperty,j5=Hu.call(Object);function F5(t){if(!vn(t)||tr(t)!=R5)return!1;var e=zu(t);if(e===null)return!0;var n=D5.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Hu.call(n)==j5}function B5(){this.__data__=new Ee,this.size=0}function W5(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function X5(t){return this.__data__.get(t)}function Y5(t){return this.__data__.has(t)}var V5=200;function q5(t,e){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!Lh||r.length<V5-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ne(r)}return n.set(t,e),this.size=n.size,this}function Mn(t){var e=this.__data__=new Ee(t);this.size=e.size}Mn.prototype.clear=B5,Mn.prototype.delete=W5,Mn.prototype.get=X5,Mn.prototype.has=Y5,Mn.prototype.set=q5;var Ru=typeof N=="object"&&N&&!N.nodeType&&N,Lu=Ru&&typeof module=="object"&&module&&!module.nodeType&&module,G5=Lu&&Lu.exports===Ru,Nu=G5?_n.Buffer:void 0;Nu&&Nu.allocUnsafe;function U5(t,e){return t.slice()}var Du=_n.Uint8Array;function Z5(t){var e=new t.constructor(t.byteLength);return new Du(e).set(new Du(t)),e}function Q5(t,e){var n=Z5(t.buffer);return new t.constructor(n,t.byteOffset,t.length)}function K5(t){return typeof t.constructor=="function"&&!wu(t)?Sw(zu(t)):{}}function J5(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[++i];if(n(o[l],l,o)===!1)break}return e}}var t3=J5();function ia(t,e,n){(n!==void 0&&!di(t[e],n)||n===void 0&&!(e in t))&&ta(t,e,n)}function e3(t){return vn(t)&&ea(t)}function oa(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function n3(t){return Ww(t,Tu(t))}function r3(t,e,n,r,i,o,s){var a=oa(t,n),l=oa(e,n),c=s.get(l);if(c){ia(t,n,c);return}var h=o?o(a,l,n+"",t,e,s):void 0,u=h===void 0;if(u){var d=yn(l),p=!d&&Su(l),g=!d&&!p&&ku(l);h=l,d||p||g?yn(a)?h=a:e3(a)?h=Aw(a):p?(u=!1,h=U5(l)):g?(u=!1,h=Q5(l)):h=[]:F5(l)||na(l)?(h=a,na(a)?h=n3(a):(!Ze(a)||ws(a))&&(h=K5(l))):u=!1}u&&(s.set(l,h),i(h,l,r,o,s),s.delete(l)),ia(t,n,h)}function ju(t,e,n,r,i){t!==e&&t3(e,function(o,s){if(i||(i=new Mn),Ze(o))r3(t,e,s,n,ju,r,i);else{var a=r?r(oa(t,s),o,s+"",t,e,i):void 0;a===void 0&&(a=o),ia(t,s,a)}},Tu)}var i3=Mf(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Fu=Gw(function(t,e,n){ju(t,e,n)});function sa(t,e,n={}){if(!e)return null;const r=t,i=or(r,n);le(r,i);const o=a3(e,r);for(const s in r.dataset)o.setAttribute(`data-${i3(s)}`,r.dataset[s]);return o}function o3(t,e,n){var r,i;const o=e.nodeName==="text"?e:null;if(!o)return null;const{data:s,themeConfig:a}=n,l=Kh(e.dataset.indexes||"0"),c=String(Fh(Os(s,l),t,"")),h=Object.assign({},(r=a.base)==null?void 0:r.text,(i=a.item)==null?void 0:i[t]),u=or(o,h);return sa(e,e.textContent||c,u)}function s3(t,e){var n;const r=((n=e.themeConfig.base)==null?void 0:n.text)||{};le(t,r),r["font-family"]&&t.setAttribute("font-family",mi(r["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}const zi=(t,e)=>t?parseFloat(t):e;function a3(t,e){const n=zi(e.dataset.x,0),r=zi(e.dataset.y,0),i=zi(e.getAttribute("width")),o=zi(e.getAttribute("height")),s=l3(e);return Object.assign(s,{x:n,y:r,width:i,height:o,"text-alignment":e.dataset.textAlignment||"LEFT TOP"}),hb(t,s)}function l3(t){return je(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}const Je=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class c3{constructor(e,n){this.options=e,this.template=n,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const e=this.getSVG();if(this.rendered)return e;h3(e,this.options),e.style.visibility="hidden";const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(d3(this.template,this.options),$b(this.template),n.disconnect(),e.style.visibility="")})})});return n.observe(document,{childList:!0,subtree:!0}),this.rendered=!0,e}}function h3(t,e){f3(t,e),u3(t,e);const{themeConfig:n}=e;Pb(t,n==null?void 0:n.colorBg)}function f3(t,e){var n;const{themeConfig:r,data:i}=e;Mb(t,(n=r.base)==null?void 0:n.global),t.querySelectorAll("[data-element-type]").forEach(s=>{var a,l,c,h,u,d;const p=s.id||"";if(Ex(s)){const g=sa(s,i.title||"",Object.assign({},(a=r.base)==null?void 0:a.text,r.title));return Je(s,g)}if(kx(s)){const g=sa(s,i.desc||"",Object.assign({},(l=r.base)==null?void 0:l.text,r.desc));return Je(s,g)}if(Hx(s)){const g=Xf(t,s,(c=i.illus)==null?void 0:c[p]);return Je(s,g)}if(zx(s))return Array.from(s.children).forEach(g=>{mu(t,g,e)});if(Tx(s)){const g=mu(t,s,e);return Je(s,g)}if(Wx(s))return Ob(t,s);if((h=s.dataset.elementType)!=null&&h.startsWith("item-")){const g=Kh(s.dataset.indexes||"0"),y=s.dataset.elementType.replace("item-","");if(Dx(s)||jx(s)||Fx(s)){const m=o3(y,s,e);return Je(s,m)}if(Bx(s)){const m=Xf(t,s,(u=Os(i,g))==null?void 0:u.illus);return Je(s,m)}if(Nx(s)){const m=Tb(t,s,(d=Os(i,g))==null?void 0:d.icon,e);return Je(s,m)}}if(Rx(s))return s3(s,e);if(!Lx(s))return Ow(s,e)})}function u3(t,e){const{width:n,height:r}=e,{style:i={},attributes:o={},id:s,className:a}=e.svg||{};s&&(t.id=s),a&&t.classList.add(a),n!==void 0&&t.setAttribute("width",typeof n=="number"?`${n}px`:n),r!==void 0&&t.setAttribute("height",typeof r=="number"?`${r}px`:r),Object.assign(t.style,i),le(t,o)}function d3(t,e){const{padding:n=20,viewBox:r}=e;r?t.setAttribute("viewBox",r):n!==void 0&&Sx(t,zs(n))}const aa=new Map;function la(t,e){aa.set(t,e)}function Bu(t){return aa.get(t)}function p3(){return Array.from(aa.keys())}la("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),la("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});var g3=Object.defineProperty,m3=Object.defineProperties,y3=Object.getOwnPropertyDescriptors,Wu=Object.getOwnPropertySymbols,_3=Object.prototype.hasOwnProperty,x3=Object.prototype.propertyIsEnumerable,Xu=(t,e,n)=>e in t?g3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hr=(t,e)=>{for(var n in e||(e={}))_3.call(e,n)&&Xu(t,n,e[n]);if(Wu)for(var n of Wu(e))x3.call(e,n)&&Xu(t,n,e[n]);return t},fr=(t,e)=>m3(t,y3(e));bt(xh);const Yu=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const r=Se(t),i=Se(e),o=M3({primaryColor:r,bgColor:i});return O3(o,{primaryColor:r,bgColor:i,isDarkMode:n})},v3=(t,e)=>Yy(fr(hr({},t),{alpha:e?.2:.1}))||"#ffffff",b3=(t,e)=>{if(e)return"#ffffff";const n=Se("#262626");return vs(n,t)>=7?Qn(n):"#000000"},w3=t=>{const e=Eh(Se(t)),n=fr(hr({},e),{l:Math.min(1,e.l+.2)});return Qn(n)},$3=(t,e)=>{const n=Se(t),r=Se("#262626"),i=Se("#ffffff"),o=vs(r,n);return vs(i,n)>=3?Qn(i):o>=4.5?Qn(r):"#ffffff"},P3=(t,e)=>{const n=Eh(t);if(e){const r=fr(hr({},n),{l:Math.min(1,n.l+.1)});return Hi(r,"#1f1f1f")}else{if(n.l>.95)return"#ffffff";{const r=fr(hr({},n),{l:Math.min(1,n.l+.05)});return Hi(r,"#ffffff")}}},M3=({primaryColor:t,bgColor:e})=>({colorPrimary:Hi(t,"#FF356A"),colorBg:Hi(e,"#ffffff"),colorWhite:"#ffffff"}),O3=(t,{primaryColor:e,bgColor:n,isDarkMode:r})=>{const i=b3(n,r),o=v3(e,r);return fr(hr({},t),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:w3(i),colorPrimaryText:$3(o,r),colorBgElevated:P3(n,r)})};function Hi(t,e="#000000"){var n;return(n=Qn(t))!=null?n:e}const ca="#FF356A";function Zt(t){var e;return((e=t==null?void 0:t.themeConfig)==null?void 0:e.colorPrimary)||ca}function Vu(t){var e;const{themeConfig:n={},data:r}=t,{colorPrimary:i,palette:o}=n;return!o||o.length===0?Array(((e=r==null?void 0:r.items)==null?void 0:e.length)||1).fill(i||ca):r.items.map((s,a)=>xi(o,[a],r.items.length)||ca)}function wt(t,e){var n,r,i;return xi((n=t==null?void 0:t.themeConfig)==null?void 0:n.palette,e,(i=(r=t.data)==null?void 0:r.items)==null?void 0:i.length)}function ge(t,e){var n;const{colorBg:r=((n=e==null?void 0:e.themeConfig)==null?void 0:n.colorBg)||"white",colorPrimary:i=e?Zt(e):"black"}=t;return Yu({colorPrimary:i,isDarkMode:kh(r),colorBg:r})}function Ri(t,e){const{depth:n,originalIndexes:r,flatIndex:i}=t;switch(e){case"level":return[n];case"branch":return n===0?[0]:n===1?[r[1]+1]:[r[1]+1];case"node":return r;case"node-flat":return i!==void 0?[i]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),r);default:return[0]}}var C3=Object.defineProperty,qu=Object.getOwnPropertySymbols,S3=Object.prototype.hasOwnProperty,I3=Object.prototype.propertyIsEnumerable,Gu=(t,e,n)=>e in t?C3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,A3=(t,e)=>{for(var n in e||(e={}))S3.call(e,n)&&Gu(t,n,e[n]);if(qu)for(var n of qu(e))I3.call(e,n)&&Gu(t,n,e[n]);return t};function kt(t,e=[]){const n=A3({},t),r={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...e].forEach(o=>{o in n&&(r[o]=n[o],delete n[o])}),["x","y","width","height"].forEach(o=>{o in t&&(n[o]=t[o])}),[r,n]}function Uu(t,e){var n;return t.length===0?()=>null:e===void 0?t[0]:(n=t[e])!=null?n:t[0]}const ha=new Map;function Tt(t,e){ha.set(t,e)}function Zu(t){return ha.get(t)}function E3(){return Array.from(ha.keys())}var k3=Object.defineProperty,T3=Object.defineProperties,z3=Object.getOwnPropertyDescriptors,Qu=Object.getOwnPropertySymbols,H3=Object.prototype.hasOwnProperty,R3=Object.prototype.propertyIsEnumerable,Ku=(t,e,n)=>e in t?k3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,L3=(t,e)=>{for(var n in e||(e={}))H3.call(e,n)&&Ku(t,n,e[n]);if(Qu)for(var n of Qu(e))R3.call(e,n)&&Ku(t,n,e[n]);return t},N3=(t,e)=>T3(t,z3(e));const Ju=t=>{const[{datum:e,indexes:n,width:r=200,height:i=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:h},u]=kt(t,["width","height","iconSize","badgeSize","gap"]),d=e.value,p=d!==void 0,g=!!e.desc,y=!!e.icon,m=`${c.colorPrimary}-badge`,x=l==="flipped"?r-a-s:a,_=y?l==="flipped"?a:s+2*a:a,v=r-a*2,b=y?r-s-3*a:v,P=a+14+18+8,w=P-a,$=g?a:(i-s)/2,M=!p&&!g?(i-14)/2:a;return S(W,N3(L3({},u),{width:r,height:i,children:[f(_t,{children:S("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[f("stop",{offset:"0%",stopColor:c.colorPrimary}),f("stop",{offset:"100%",stopColor:tt(c.colorPrimary).darken(20).toHexString()})]})}),f(pt,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),y&&S(yt,{children:[f(xt,{x,y:$,width:s,height:s,fill:`url(#${m})`}),f(Gt,{indexes:n,x:x+(s-o)/2,y:$+(s-o)/2,size:o,fill:c.colorWhite})]}),S(it,{flexDirection:"column",x:_,y:M,width:b,height:!p&&!g?void 0:w,alignItems:"center",justifyContent:"center",children:[f(ft,{indexes:n,width:b,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),p&&f(Wn,{indexes:n,width:b,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:d,formatter:h})]}),g&&f(Et,{indexes:n,x:a,y:P,width:v,alignHorizontal:l==="flipped"?"right":"left",fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))};Tt("badge-card",{component:Ju,composites:["icon","label","value","desc"]});var D3=Object.defineProperty,j3=Object.defineProperties,F3=Object.getOwnPropertyDescriptors,td=Object.getOwnPropertySymbols,B3=Object.prototype.hasOwnProperty,W3=Object.prototype.propertyIsEnumerable,ed=(t,e,n)=>e in t?D3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X3=(t,e)=>{for(var n in e||(e={}))B3.call(e,n)&&ed(t,n,e[n]);if(td)for(var n of td(e))W3.call(e,n)&&ed(t,n,e[n]);return t},Y3=(t,e)=>j3(t,F3(e));const nd=t=>{const[{indexes:e,datum:n,width:r=280,height:i=140,themeColors:o},s]=kt(t,["width","height"]);return S(W,Y3(X3({},s),{children:[f("rect",{x:0,y:0,width:r,height:i,rx:18,ry:18,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),f(ot,{x:r-85,y:.5,width:85,height:65,d:"M0.496704 0H61.7558C74.0725 0 84.0571 9.99394 84.0571 22.3221V60.1302L78.4401 62.9458C64.9296 68.1198 49.0492 65.0802 38.3968 53.9843L10.7444 25.1801C5.41799 19.6306 2.15489 12.855 0.935998 5.80383L0.496704 0Z",fill:o.colorBg,"data-element-type":"shape"}),f(ft,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),f(Et,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),f(Gt,{indexes:e,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))};Tt("candy-card-lite",{component:nd,composites:["icon","label","desc"]});var V3=Object.defineProperty,q3=Object.defineProperties,G3=Object.getOwnPropertyDescriptors,Li=Object.getOwnPropertySymbols,rd=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,od=(t,e,n)=>e in t?V3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U3=(t,e)=>{for(var n in e||(e={}))rd.call(e,n)&&od(t,n,e[n]);if(Li)for(var n of Li(e))id.call(e,n)&&od(t,n,e[n]);return t},Z3=(t,e)=>q3(t,G3(e)),Q3=(t,e)=>{var n={};for(var r in t)rd.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Li)for(var r of Li(t))e.indexOf(r)<0&&id.call(t,r)&&(n[r]=t[r]);return n};const fa=t=>{const e=t,{color:n="black",opacity:r=.8}=e,i=Q3(e,["color","opacity"]);return f("filter",Z3(U3({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i),{children:f("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":n,"flood-opacity":r})}))};var K3=Object.defineProperty,J3=Object.defineProperties,t4=Object.getOwnPropertyDescriptors,sd=Object.getOwnPropertySymbols,e4=Object.prototype.hasOwnProperty,n4=Object.prototype.propertyIsEnumerable,ad=(t,e,n)=>e in t?K3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,r4=(t,e)=>{for(var n in e||(e={}))e4.call(e,n)&&ad(t,n,e[n]);if(sd)for(var n of sd(e))n4.call(e,n)&&ad(t,n,e[n]);return t},i4=(t,e)=>J3(t,t4(e));const ua=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=t;return S("linearGradient",i4(r4({id:e},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[i]),{children:[f("stop",{offset:"0%",stopColor:n}),f("stop",{offset:"100%",stopColor:r})]}))};var o4=Object.defineProperty,s4=Object.defineProperties,a4=Object.getOwnPropertyDescriptors,ld=Object.getOwnPropertySymbols,l4=Object.prototype.hasOwnProperty,c4=Object.prototype.propertyIsEnumerable,cd=(t,e,n)=>e in t?o4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ur=(t,e)=>{for(var n in e||(e={}))l4.call(e,n)&&cd(t,n,e[n]);if(ld)for(var n of ld(e))c4.call(e,n)&&cd(t,n,e[n]);return t},dr=(t,e)=>s4(t,a4(e));const hd=t=>{const[{datum:e,indexes:n,width:r=300,height:i=80,gap:o=12,positionH:s="normal",iconPadding:a=i/10,themeColors:l},c]=kt(t,["width","height","gap","iconPadding"]),h=i/2,u=i-a*2,d=s==="flipped",p=!!e.icon,g=p?r-i-o:r-o*2,y=p?d?o:i:o,m=p?d?"right":"left":"center",x={indexes:n,width:g,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},_=Z(f(ft,dr(ur({},x),{children:e.label}))),v={indexes:n,width:g,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},b=Z(e.desc?f(Et,dr(ur({},v),{children:e.desc})):null),P=4,w=_.height+P+b.height,M=(i-w)/2,A=M+_.height+P,I=d?r-i+a:a,C=a;return S(W,dr(ur({},c),{children:[f(_t,{children:f(fa,{})}),f(pt,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:h,ry:h,"data-element-type":"shape"}),e.icon&&S(yt,{children:[f(xt,{x:I,y:C,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),f(Ve,{indexes:n,x:I,y:C,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&f(ft,dr(ur({x:y,y:M},x),{children:e.label})),e.desc&&f(Et,dr(ur({x:y,y:A},v),{children:e.desc}))]}))};Tt("capsule-item",{component:hd,composites:["icon","label","desc"]});var h4=Object.defineProperty,f4=Object.defineProperties,u4=Object.getOwnPropertyDescriptors,fd=Object.getOwnPropertySymbols,d4=Object.prototype.hasOwnProperty,p4=Object.prototype.propertyIsEnumerable,ud=(t,e,n)=>e in t?h4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,da=(t,e)=>{for(var n in e||(e={}))d4.call(e,n)&&ud(t,n,e[n]);if(fd)for(var n of fd(e))p4.call(e,n)&&ud(t,n,e[n]);return t},pa=(t,e)=>f4(t,u4(e));const dd=t=>{const[{indexes:e,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=kt(t,["width","height"]),l=Math.min(o,s),c=l*.7,h=(l-c)/2,u=c*Math.sqrt(2)/2,d=(l-u)/2,p=tt(r.colorPrimary),g=Ni(p,80,.2),y=Ni(p,20,.8),m=Ni(p,75,.32),x=Ni(p,45,.4),_=p.clone().darken(5).toRgbString(),v=`${r.colorPrimary}-${i}-outer`,b=`${r.colorPrimary}-${i}-inner`,P=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return S(W,pa(da({},a),{children:[S(_t,{children:[S("linearGradient",pa(da({id:v},P),{children:[f("stop",{offset:"0%",stopColor:g}),f("stop",{offset:"100%",stopColor:y})]})),S("linearGradient",pa(da({id:b},P),{children:[f("stop",{offset:"0%",stopColor:m}),f("stop",{offset:"100%",stopColor:x})]}))]}),f(xt,{width:l,height:l,fill:`url(#${v})`,"data-element-type":"shape"}),f(xt,{x:h,y:h,width:c,height:c,fill:`url(#${b})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),f(ft,{indexes:e,x:d,y:d,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:_,fontWeight:"500",children:n.label})]}))};Tt("circle-node",{component:dd,composites:["label"]});function Ni(t,e,n){return tt.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}var g4=Object.defineProperty,m4=Object.defineProperties,y4=Object.getOwnPropertyDescriptors,pd=Object.getOwnPropertySymbols,_4=Object.prototype.hasOwnProperty,x4=Object.prototype.propertyIsEnumerable,gd=(t,e,n)=>e in t?g4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,md=(t,e)=>{for(var n in e||(e={}))_4.call(e,n)&&gd(t,n,e[n]);if(pd)for(var n of pd(e))x4.call(e,n)&&gd(t,n,e[n]);return t},yd=(t,e)=>m4(t,y4(e));const _d=t=>{var e;const[{datum:n,indexes:r,size:i=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=b=>`${Math.round(b)}%`},c]=kt(t,["size","strokeWidth","gap"]),h=(e=n.value)!=null?e:0,d=Math.min(Math.max(h/100,0),1),p=(i-o)/2,g=i/2,y=o/2,m=i-o,x=d*360,_=v4(g,g,p,0,x),v={x:y,y,width:m,height:m};return S(W,yd(md({},c),{width:i,height:i+s+20,children:[f(pt,{width:i,height:i,fill:"none"}),f(xt,yd(md({},v),{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),f(ot,{d:_,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),f(Wn,{indexes:r,x:o,y:o,width:m-o,height:m-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:h,formatter:l}),f(ft,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))};function v4(t,e,n,r,i){const o=xd(t,e,n,i),s=xd(t,e,n,r),a=i-r<=180?"0":"1";return`M ${o.x} ${o.y} A ${n} ${n} 0 ${a} 0 ${s.x} ${s.y}`}function xd(t,e,n,r){const i=(r-90)*Math.PI/180;return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}Tt("circular-progress",{component:_d,composites:["label","value"]});var b4=Object.defineProperty,w4=Object.defineProperties,$4=Object.getOwnPropertyDescriptors,vd=Object.getOwnPropertySymbols,P4=Object.prototype.hasOwnProperty,M4=Object.prototype.propertyIsEnumerable,bd=(t,e,n)=>e in t?b4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,O4=(t,e)=>{for(var n in e||(e={}))P4.call(e,n)&&bd(t,n,e[n]);if(vd)for(var n of vd(e))M4.call(e,n)&&bd(t,n,e[n]);return t},C4=(t,e)=>w4(t,$4(e));const wd=t=>{const[{datum:e,indexes:n,width:r=200,height:i=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},h]=kt(t,["width","height","iconSize","gap"]),u=e.value,d=u!=null,p="compact-shadow",g=a==="flipped"?r-s-o:s,y=a==="flipped"?s:o+2*s,m=r-o-3*s,x=d?m*.8:m,_=d?m*.2:0;return S(W,C4(O4({},h),{children:[f(_t,{children:f("filter",{id:p,children:f("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),f(pt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${p})`,"data-element-type":"shape"}),f(pt,{x:a==="flipped"?r-3:0,y:0,width:3,height:i,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),f(Gt,{indexes:n,x:g,y:(i-o)/2,size:o,fill:l.colorPrimary}),S(it,{x:y,y:s,width:m,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[S(it,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[f(ft,{indexes:n,width:x,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),d&&f(Wn,{indexes:n,width:_,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),f(Et,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))};Tt("compact-card",{component:wd,composites:["icon","label","value","desc"]});var S4=Object.defineProperty,I4=Object.defineProperties,A4=Object.getOwnPropertyDescriptors,$d=Object.getOwnPropertySymbols,E4=Object.prototype.hasOwnProperty,k4=Object.prototype.propertyIsEnumerable,Pd=(t,e,n)=>e in t?S4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T4=(t,e)=>{for(var n in e||(e={}))E4.call(e,n)&&Pd(t,n,e[n]);if($d)for(var n of $d(e))k4.call(e,n)&&Pd(t,n,e[n]);return t},z4=(t,e)=>I4(t,A4(e));const Md=t=>{const[{datum:e,indexes:n,width:r=300,height:i=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},h]=kt(t,["width","height","iconSize","gap"]),u=r-o-s,d=l==="middle"?(i-o)/2:l==="flipped"?i-o:0;return S(W,z4(T4({},h),{children:[f(ot,{"data-element-type":"shape",x:a==="flipped"?u+s:0,y:d,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),f(ft,{indexes:n,x:a==="flipped"?0:o+s,width:u,height:i,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:e.label||e.desc})]}))};Tt("done-list",{component:Md,composites:["label"]});var H4=Object.defineProperty,R4=Object.defineProperties,L4=Object.getOwnPropertyDescriptors,Od=Object.getOwnPropertySymbols,N4=Object.prototype.hasOwnProperty,D4=Object.prototype.propertyIsEnumerable,Cd=(t,e,n)=>e in t?H4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j4=(t,e)=>{for(var n in e||(e={}))N4.call(e,n)&&Cd(t,n,e[n]);if(Od)for(var n of Od(e))D4.call(e,n)&&Cd(t,n,e[n]);return t},F4=(t,e)=>R4(t,L4(e));const Sd=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=kt(t,["width"]),a=o!=="flipped",l=o==="normal"?"bottom":"top",c=f(ft,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=f(Et,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=f(Ve,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),d=f(W4,{width:8,height:30,fill:i.colorPrimary,positionV:o}),p=5,g=25,y=30,m=Z(c),x=Z(h),_=Z(u),v=Z(d),b=m.height+x.height+p+v.height-_.height-g,P=_.height+g+y+v.height+p+m.height+x.height;return f(W,F4(j4({width:r,height:P},s),{children:S(it,{flexDirection:"column",alignItems:"center",children:[a?S(yt,{children:[h,c,f(Ht,{height:p}),d]}):S(yt,{children:[f(Ht,{height:b}),u,f(Ht,{height:g})]}),S(hn,{horizontal:"center",vertical:"middle",children:[f(B4,{width:r,height:y,fill:i.colorPrimary}),f(zt,{width:r,height:y,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?S(yt,{children:[f(Ht,{height:g}),u]}):S(yt,{children:[d,f(Ht,{height:p}),c,h]})]})}))},B4=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return f(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})},W4=t=>{const{x:e=0,y:n=0,width:r=10,height:i=50,fill:o,positionV:s="top"}=t,a=r/2,l=i-a,c=2,h=a;return S(Dt,{x:e,y:n,width:r,height:i,children:[f(xt,{width:r,height:r,fill:o,y:s==="top"?0:l-a}),f(ot,{d:s==="top"?`M${h},${a} L${h},${a+l}`:`M${h},0 L${h},${l-a}`,strokeWidth:c,stroke:o})]})};Tt("horizontal-icon-arrow",{component:Sd,composites:["icon","label","desc","time"]});var X4=Object.defineProperty,Y4=Object.defineProperties,V4=Object.getOwnPropertyDescriptors,Id=Object.getOwnPropertySymbols,q4=Object.prototype.hasOwnProperty,G4=Object.prototype.propertyIsEnumerable,Ad=(t,e,n)=>e in t?X4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ed=(t,e)=>{for(var n in e||(e={}))q4.call(e,n)&&Ad(t,n,e[n]);if(Id)for(var n of Id(e))G4.call(e,n)&&Ad(t,n,e[n]);return t},kd=(t,e)=>Y4(t,V4(e));const Td=t=>{const[{indexes:e,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=kt(t,["width"]),l=o==="normal"?"left":o==="flipped"?"right":"center",c=f(ft,{indexes:e,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),h=Z(c),u=n.desc?f(Et,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:s==="flipped"?"top":"bottom",children:n.desc}):null,d=Z(u),g=n.icon?f(Ve,{size:45,indexes:e,colorBg:i.colorBg,fill:i.colorPrimary}):null,y=Z(g),m=n.time?f(zt,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,x=Z(m),_=18,v=S(hn,{horizontal:"center",width:r,height:_,children:[f(pt,{width:r,height:_,fill:i.colorPrimary,"data-element-type":"shape"}),f(xt,{y:-3,width:_+6,height:_+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),f(xt,{y:(_-12)/2,width:12,height:12,fill:"white","data-element-type":"shape"})]}),b=h.height+d.height,P=y.height+x.height+5,w=Math.abs(P-b),$=P>b?w:0,M=b>P?w:0;return s==="flipped"?S(it,kd(Ed({},a),{flexDirection:"column",alignItems:"center",children:[f(Ht,{height:M}),m,g,f(Ht,{height:5}),v,c,u,f(Ht,{height:$})]})):S(it,kd(Ed({},a),{flexDirection:"column",alignItems:"center",children:[f(Ht,{height:$}),c,u,v,f(Ht,{height:5}),g,m,f(Ht,{height:M})]}))};Tt("horizontal-icon-line",{component:Td,composites:["icon","label","desc"]});var U4=Object.defineProperty,Z4=Object.defineProperties,Q4=Object.getOwnPropertyDescriptors,zd=Object.getOwnPropertySymbols,K4=Object.prototype.hasOwnProperty,J4=Object.prototype.propertyIsEnumerable,Hd=(t,e,n)=>e in t?U4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,t6=(t,e)=>{for(var n in e||(e={}))K4.call(e,n)&&Hd(t,n,e[n]);if(zd)for(var n of zd(e))J4.call(e,n)&&Hd(t,n,e[n]);return t},e6=(t,e)=>Z4(t,Q4(e));const Rd=t=>{var e;const[{datum:n,indexes:r,size:i=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:h=105},u]=kt(t,["size","iconSize","badgeSize","gap"]),d=(e=n.value)!=null?e:0,p=`${l.colorPrimary}-icon`,g="#ff6b6b-badge";return S(W,e6(t6({},u),{width:c,height:h,children:[S(_t,{children:[S("radialGradient",{id:p,cx:"50%",cy:"30%",r:"70%",children:[f("stop",{offset:"0%",stopColor:tt(l.colorPrimary).lighten(30).toHexString()}),f("stop",{offset:"100%",stopColor:l.colorPrimary})]}),S("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"#ff6b6b"}),f("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),f(xt,{x:0,y:0,width:i,height:i,fill:`url(#${p})`,"data-element-type":"shape"}),f(Gt,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),f(xt,{x:i-s+4,y:0,width:s,height:s,fill:`url(#${g})`}),f(zt,{x:i-s/2+4,y:s/2,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:d>99?"99+":Math.round(d)}),f(ft,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))};Tt("icon-badge",{component:Rd,composites:["icon","label"]});var n6=Object.defineProperty,r6=Object.defineProperties,i6=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,o6=Object.prototype.hasOwnProperty,s6=Object.prototype.propertyIsEnumerable,Nd=(t,e,n)=>e in t?n6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,a6=(t,e)=>{for(var n in e||(e={}))o6.call(e,n)&&Nd(t,n,e[n]);if(Ld)for(var n of Ld(e))s6.call(e,n)&&Nd(t,n,e[n]);return t},l6=(t,e)=>r6(t,i6(e));const Dd=t=>{const[{datum:e,indexes:n,width:r=200,borderRadius:i=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:h},u]=kt(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),d=n[0]+1,p=String(d).padStart(2,"0"),g=e.label!==void 0,y=e.desc!==void 0,m=tt.mix(h.colorPrimary,h.colorWhite,40).toHexString(),x=h.colorBgElevated||h.colorWhite,_=r-2*o,v=Z(f(zt,{fontSize:a,fontWeight:"bold",children:p})),b=_-v.width-c,P=g?Z(f(ft,{indexes:n,width:b,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{height:0},w=y?Z(f(Et,{indexes:n,width:_,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{height:0},$=Math.max(v.height,P.height),M=o*2+$+(g||y?c:0)+s+(y?c:0)+w.height;return S(W,l6(a6({},u),{width:r,height:M,children:[f(pt,{x:0,y:0,width:r,height:M,rx:i,ry:i,fill:x,stroke:tt(x).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),S(W,{x:o,y:o,children:[S(W,{x:0,y:0,children:[f(zt,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:h.colorPrimary,alignVertical:"top",children:p}),g&&f(ft,{indexes:n,x:a+c,y:0,width:b,fontSize:l,fontWeight:"bold",fill:h.colorTextSecondary,alignVertical:"top",children:e.label})]}),f(pt,{x:0,y:$+c,width:_,height:s,fill:m,"data-element-type":"shape"}),y&&f(Et,{indexes:n,x:0,y:$+c+s+c,width:_,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:h.colorTextSecondary,children:e.desc})]})]}))};Tt("indexed-card",{component:Dd,composites:["label","desc"]});var c6=Object.defineProperty,h6=Object.defineProperties,f6=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,u6=Object.prototype.hasOwnProperty,d6=Object.prototype.propertyIsEnumerable,Fd=(t,e,n)=>e in t?c6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,p6=(t,e)=>{for(var n in e||(e={}))u6.call(e,n)&&Fd(t,n,e[n]);if(jd)for(var n of jd(e))d6.call(e,n)&&Fd(t,n,e[n]);return t},g6=(t,e)=>h6(t,f6(e));const Bd=t=>{const[{indexes:e,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=kt(t,["width","iconSize"]),{label:a,desc:l}=n,c=8,h=16,u=12,d=h+u,p=r-d,g=60,y=i+44,m=h,x=g+u,_=g+h+u,v=[{x:0,y:_},{x:m,y:x},{x:m,y:_}],b=r-m-u,P=m+u,w=P+b,$=x+c/2,M=$+y,A=`M ${P} ${M} L ${P} ${$} L ${w} ${$}`,I=c/2,C=P+I,k=$+I,E=8;return S(W,g6(p6({},s),{children:[f(Et,{indexes:e,x:d,width:p,height:g,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),f(be,{points:v,fill:o.colorPrimary,opacity:.9,width:h,height:h,"data-element-type":"shape"}),f(ot,{d:A,stroke:o.colorPrimary,strokeWidth:c,fill:"none","data-element-type":"shape"}),f(Gt,{indexes:e,x:C+b/2-i/2,y:k+E,size:i,fill:o.colorPrimary}),f(ft,{indexes:e,x:C,y:k+i+E*2,width:b,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))};Tt("l-corner-card",{component:Bd,composites:["icon","label","desc"]});var m6=Object.defineProperty,y6=Object.defineProperties,_6=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,x6=Object.prototype.hasOwnProperty,v6=Object.prototype.propertyIsEnumerable,Xd=(t,e,n)=>e in t?m6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,b6=(t,e)=>{for(var n in e||(e={}))x6.call(e,n)&&Xd(t,n,e[n]);if(Wd)for(var n of Wd(e))v6.call(e,n)&&Xd(t,n,e[n]);return t},w6=(t,e)=>y6(t,_6(e));const Yd=t=>{var e,n;const[{datum:r,indexes:i,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:h},u]=kt(t,["width","height","showStripe","showGradient","showBottomShade"]),d=(e=r.label)==null?void 0:e[0].toUpperCase(),p=(n=r.label)==null?void 0:n.toUpperCase(),g=h.colorPrimary,y=tt(g),m=4,x=6,_=45,v=40,b=12,w=y.clone().darken(4).toHexString(),$=y.clone().lighten(b).toHexString(),M="rgba(255, 255, 255, 0)",A="rgba(0, 0, 0, 0.03)",I=`letter-card-${i.join("-")}`,C=`${I}-gradient`,k=`${I}-pattern`,E=`${I}-shade`,L=m+x,F=1,z=96,j=z*F,R=16,H=R*F,D=s/16,B=j+D+H,T=(s-B)/2,O=T+j+D;return S(W,w6(b6({},u),{width:o,height:s,children:[S(_t,{children:[l&&S("linearGradient",{id:C,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:w}),f("stop",{offset:"100%",stopColor:$})]}),a&&S("pattern",{id:k,patternUnits:"userSpaceOnUse",width:L,height:L,patternTransform:`rotate(${_})`,children:[f("rect",{x:"0",y:"0",width:L,height:L,fill:M}),f("rect",{x:"0",y:"0",width:m,height:L,fill:A})]}),c&&S("linearGradient",{id:E,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),f("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),f(pt,{x:0,y:0,width:o,height:s,fill:l?`url(#${C})`:g,rx:0,ry:0,"data-element-type":"shape"}),a&&f(pt,{x:0,y:0,width:o,height:s,fill:`url(#${k})`,rx:0,ry:0}),c&&f(pt,{x:0,y:s-v,width:o,height:v,fill:`url(#${E})`,rx:0,ry:0}),d&&f(ft,{indexes:i,x:0,y:T,width:o,fontSize:z,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:d}),f(ft,{indexes:i,x:0,y:O,width:o,fontSize:R,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:p})]}))};Tt("letter-card",{component:Yd,composites:["label"]});var $6=Object.defineProperty,P6=Object.defineProperties,M6=Object.getOwnPropertyDescriptors,Vd=Object.getOwnPropertySymbols,O6=Object.prototype.hasOwnProperty,C6=Object.prototype.propertyIsEnumerable,qd=(t,e,n)=>e in t?$6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,S6=(t,e)=>{for(var n in e||(e={}))O6.call(e,n)&&qd(t,n,e[n]);if(Vd)for(var n of Vd(e))C6.call(e,n)&&qd(t,n,e[n]);return t},I6=(t,e)=>P6(t,M6(e));const Gd=t=>{const[{datum:e,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=kt(t,["width","pillWidth","pillHeight","gap"]),h=!!e.desc,u=h?r:i,d=h?a==="center"?(u-i)/2:a==="flipped"?u-i:0:0,p=0,g=0,y=o+s,m=u,x=`drop-shadow-${l.colorPrimary}`,_="linear-gradient-white-top-bottom";return S(W,I6(S6({},c),{children:[S(_t,{children:[f(fa,{id:x,color:l.colorPrimary}),f(ua,{id:_,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),f(pt,{x:d,y:p,width:i,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${x})`,"data-element-type":"shape"}),f(pt,{x:d,y:p,width:i,height:o,fill:`url(#${_})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),f(ft,{indexes:n,x:d,y:p,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&f(Et,{indexes:n,x:g,y,width:m,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))};Tt("pill-badge",{component:Gd,composites:["label","desc"]});var A6=Object.defineProperty,E6=Object.defineProperties,k6=Object.getOwnPropertyDescriptors,Ud=Object.getOwnPropertySymbols,T6=Object.prototype.hasOwnProperty,z6=Object.prototype.propertyIsEnumerable,Zd=(t,e,n)=>e in t?A6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H6=(t,e)=>{for(var n in e||(e={}))T6.call(e,n)&&Zd(t,n,e[n]);if(Ud)for(var n of Ud(e))z6.call(e,n)&&Zd(t,n,e[n]);return t},R6=(t,e)=>E6(t,k6(e));const Qd=t=>{const[{indexes:e,datum:n,width:r=120,themeColors:i,positionH:o="normal",formatter:s=c=>c||"",usePaletteColor:a=!1},l]=kt(t,["width","formatter","usePaletteColor"]);return f(ft,R6(H6({},l),{indexes:e,width:r,fill:a?i.colorPrimary:i.colorText,fontSize:14,fontWeight:"regular",alignHorizontal:o==="flipped"?"right":o==="center"?"center":"left",alignVertical:"middle",children:s(n.label||n.desc)}))};Tt("plain-text",{component:Qd,composites:["label"]});function Di(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function L6(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Kd(t){let e,n,r;t.length!==2?(e=Di,n=(a,l)=>Di(t(a),l),r=(a,l)=>t(a)-l):(e=t===Di||t===L6?t:N6,n=t,r=t);function i(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<0?c=u+1:h=u}while(c<h)}return c}function o(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<=0?c=u+1:h=u}while(c<h)}return c}function s(a,l,c=0,h=a.length){const u=i(a,l,c,h-1);return u>c&&r(a[u-1],l)>-r(a[u],l)?u-1:u}return{left:i,center:s,right:o}}function N6(){return 0}function D6(t){return t===null?NaN:+t}const j6=Kd(Di).right;Kd(D6).center;const F6=Math.sqrt(50),B6=Math.sqrt(10),W6=Math.sqrt(2);function ji(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=F6?10:o>=B6?5:o>=W6?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?ji(t,e,n*2):[a,l,c]}function X6(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,s]=r?ji(e,t,n):ji(t,e,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function ga(t,e,n){return e=+e,t=+t,n=+n,ji(t,e,n)[2]}function Y6(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?ga(e,t,n):ga(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}var V6={value:()=>{}};function ma(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Fi(n)}function Fi(t){this._=t}function q6(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Fi.prototype=ma.prototype={constructor:Fi,on:function(t,e){var n=this._,r=q6(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=G6(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=Jd(n[i],t.name,e);else if(e==null)for(i in n)n[i]=Jd(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Fi(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function G6(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function Jd(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=V6,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ya="http://www.w3.org/1999/xhtml";const t0={svg:"http://www.w3.org/2000/svg",xhtml:ya,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bi(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),t0.hasOwnProperty(e)?{space:t0[e],local:t}:t}function U6(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ya&&e.documentElement.namespaceURI===ya?e.createElement(t):e.createElementNS(n,t)}}function Z6(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function e0(t){var e=Bi(t);return(e.local?Z6:U6)(e)}function Q6(){}function _a(t){return t==null?Q6:function(){return this.querySelector(t)}}function K6(t){typeof t!="function"&&(t=_a(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,c,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new me(r,this._parents)}function J6(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function t8(){return[]}function n0(t){return t==null?t8:function(){return this.querySelectorAll(t)}}function e8(t){return function(){return J6(t.apply(this,arguments))}}function n8(t){typeof t=="function"?t=e8(t):t=n0(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),i.push(l));return new me(r,i)}function r0(t){return function(){return this.matches(t)}}function i0(t){return function(e){return e.matches(t)}}var r8=Array.prototype.find;function i8(t){return function(){return r8.call(this.children,t)}}function o8(){return this.firstElementChild}function s8(t){return this.select(t==null?o8:i8(typeof t=="function"?t:i0(t)))}var a8=Array.prototype.filter;function l8(){return Array.from(this.children)}function c8(t){return function(){return a8.call(this.children,t)}}function h8(t){return this.selectAll(t==null?l8:c8(typeof t=="function"?t:i0(t)))}function f8(t){typeof t!="function"&&(t=r0(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new me(r,this._parents)}function o0(t){return new Array(t.length)}function u8(){return new me(this._enter||this._groups.map(o0),this._parents)}function Wi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Wi.prototype={constructor:Wi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function d8(t){return function(){return t}}function p8(t,e,n,r,i,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Wi(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function g8(t,e,n,r,i,o,s){var a,l,c=new Map,h=e.length,u=o.length,d=new Array(h),p;for(a=0;a<h;++a)(l=e[a])&&(d[a]=p=s.call(l,l.__data__,a,e)+"",c.has(p)?i[a]=l:c.set(p,l));for(a=0;a<u;++a)p=s.call(t,o[a],a,o)+"",(l=c.get(p))?(r[a]=l,l.__data__=o[a],c.delete(p)):n[a]=new Wi(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(d[a])===l&&(i[a]=l)}function m8(t){return t.__data__}function y8(t,e){if(!arguments.length)return Array.from(this,m8);var n=e?g8:p8,r=this._parents,i=this._groups;typeof t!="function"&&(t=d8(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=r[c],u=i[c],d=u.length,p=_8(t.call(h,h&&h.__data__,c,r)),g=p.length,y=a[c]=new Array(g),m=s[c]=new Array(g),x=l[c]=new Array(d);n(h,u,y,m,x,p,e);for(var _=0,v=0,b,P;_<g;++_)if(b=y[_]){for(_>=v&&(v=_+1);!(P=m[v])&&++v<g;);b._next=P||null}}return s=new me(s,r),s._enter=a,s._exit=l,s}function _8(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function x8(){return new me(this._exit||this._groups.map(o0),this._parents)}function v8(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function b8(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],h=r[l],u=c.length,d=a[l]=new Array(u),p,g=0;g<u;++g)(p=c[g]||h[g])&&(d[g]=p);for(;l<i;++l)a[l]=n[l];return new me(a,this._parents)}function w8(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function $8(t){t||(t=P8);function e(u,d){return u&&d?t(u.__data__,d.__data__):!u-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new me(i,this._parents).order()}function P8(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function M8(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function O8(){return Array.from(this)}function C8(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function S8(){let t=0;for(const e of this)++t;return t}function I8(){return!this.node()}function A8(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function E8(t){return function(){this.removeAttribute(t)}}function k8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T8(t,e){return function(){this.setAttribute(t,e)}}function z8(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function H8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function R8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function L8(t,e){var n=Bi(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?k8:E8:typeof e=="function"?n.local?R8:H8:n.local?z8:T8)(n,e))}function s0(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function N8(t){return function(){this.style.removeProperty(t)}}function D8(t,e,n){return function(){this.style.setProperty(t,e,n)}}function j8(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function F8(t,e,n){return arguments.length>1?this.each((e==null?N8:typeof e=="function"?j8:D8)(t,e,n==null?"":n)):On(this.node(),t)}function On(t,e){return t.style.getPropertyValue(e)||s0(t).getComputedStyle(t,null).getPropertyValue(e)}function B8(t){return function(){delete this[t]}}function W8(t,e){return function(){this[t]=e}}function X8(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Y8(t,e){return arguments.length>1?this.each((e==null?B8:typeof e=="function"?X8:W8)(t,e)):this.node()[t]}function a0(t){return t.trim().split(/^|\s+/)}function xa(t){return t.classList||new l0(t)}function l0(t){this._node=t,this._names=a0(t.getAttribute("class")||"")}l0.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function c0(t,e){for(var n=xa(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function h0(t,e){for(var n=xa(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function V8(t){return function(){c0(this,t)}}function q8(t){return function(){h0(this,t)}}function G8(t,e){return function(){(e.apply(this,arguments)?c0:h0)(this,t)}}function U8(t,e){var n=a0(t+"");if(arguments.length<2){for(var r=xa(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?G8:e?V8:q8)(n,e))}function Z8(){this.textContent=""}function Q8(t){return function(){this.textContent=t}}function K8(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function J8(t){return arguments.length?this.each(t==null?Z8:(typeof t=="function"?K8:Q8)(t)):this.node().textContent}function t9(){this.innerHTML=""}function e9(t){return function(){this.innerHTML=t}}function n9(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function r9(t){return arguments.length?this.each(t==null?t9:(typeof t=="function"?n9:e9)(t)):this.node().innerHTML}function i9(){this.nextSibling&&this.parentNode.appendChild(this)}function o9(){return this.each(i9)}function s9(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function a9(){return this.each(s9)}function l9(t){var e=typeof t=="function"?t:e0(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function c9(){return null}function h9(t,e){var n=typeof t=="function"?t:e0(t),r=e==null?c9:typeof e=="function"?e:_a(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function f9(){var t=this.parentNode;t&&t.removeChild(this)}function u9(){return this.each(f9)}function d9(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function p9(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function g9(t){return this.select(t?p9:d9)}function m9(t){return arguments.length?this.property("__data__",t):this.node().__data__}function y9(t){return function(e){t.call(this,e,this.__data__)}}function _9(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function x9(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function v9(t,e,n){return function(){var r=this.__on,i,o=y9(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function b9(t,e,n){var r=_9(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(i=0,h=a[l];i<o;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?v9:x9,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function f0(t,e,n){var r=s0(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function w9(t,e){return function(){return f0(this,t,e)}}function $9(t,e){return function(){return f0(this,t,e.apply(this,arguments))}}function P9(t,e){return this.each((typeof e=="function"?$9:w9)(t,e))}function*M9(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var O9=[null];function me(t,e){this._groups=t,this._parents=e}function pr(){return new me([[document.documentElement]],O9)}function C9(){return this}me.prototype=pr.prototype={constructor:me,select:K6,selectAll:n8,selectChild:s8,selectChildren:h8,filter:f8,data:y8,enter:u8,exit:x8,join:v8,merge:b8,selection:C9,order:w8,sort:$8,call:M8,nodes:O8,node:C8,size:S8,empty:I8,each:A8,attr:L8,style:F8,property:Y8,classed:U8,text:J8,html:r9,raise:o9,lower:a9,append:l9,insert:h9,remove:u9,clone:g9,datum:m9,on:b9,dispatch:P9,[Symbol.iterator]:M9};function va(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function u0(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function gr(){}var mr=.7,Xi=1/mr,Cn="\\s*([+-]?\\d+)\\s*",yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$e="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",S9=/^#([0-9a-f]{3,8})$/,I9=new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`),A9=new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`),E9=new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${yr}\\)$`),k9=new RegExp(`^rgba\\(${$e},${$e},${$e},${yr}\\)$`),T9=new RegExp(`^hsl\\(${yr},${$e},${$e}\\)$`),z9=new RegExp(`^hsla\\(${yr},${$e},${$e},${yr}\\)$`),d0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};va(gr,tn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:p0,formatHex:p0,formatHex8:H9,formatHsl:R9,formatRgb:g0,toString:g0});function p0(){return this.rgb().formatHex()}function H9(){return this.rgb().formatHex8()}function R9(){return v0(this).formatHsl()}function g0(){return this.rgb().formatRgb()}function tn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=S9.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?m0(e):n===3?new ne(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Yi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Yi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=I9.exec(t))?new ne(e[1],e[2],e[3],1):(e=A9.exec(t))?new ne(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=E9.exec(t))?Yi(e[1],e[2],e[3],e[4]):(e=k9.exec(t))?Yi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=T9.exec(t))?x0(e[1],e[2]/100,e[3]/100,1):(e=z9.exec(t))?x0(e[1],e[2]/100,e[3]/100,e[4]):d0.hasOwnProperty(t)?m0(d0[t]):t==="transparent"?new ne(NaN,NaN,NaN,0):null}function m0(t){return new ne(t>>16&255,t>>8&255,t&255,1)}function Yi(t,e,n,r){return r<=0&&(t=e=n=NaN),new ne(t,e,n,r)}function L9(t){return t instanceof gr||(t=tn(t)),t?(t=t.rgb(),new ne(t.r,t.g,t.b,t.opacity)):new ne}function ba(t,e,n,r){return arguments.length===1?L9(t):new ne(t,e,n,r==null?1:r)}function ne(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}va(ne,ba,u0(gr,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?mr:Math.pow(mr,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ne(en(this.r),en(this.g),en(this.b),Vi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:y0,formatHex:y0,formatHex8:N9,formatRgb:_0,toString:_0}));function y0(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}`}function N9(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}${nn((isNaN(this.opacity)?1:this.opacity)*255)}`}function _0(){const t=Vi(this.opacity);return`${t===1?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${t===1?")":`, ${t})`}`}function Vi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function en(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function nn(t){return t=en(t),(t<16?"0":"")+t.toString(16)}function x0(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ye(t,e,n,r)}function v0(t){if(t instanceof ye)return new ye(t.h,t.s,t.l,t.opacity);if(t instanceof gr||(t=tn(t)),!t)return new ye;if(t instanceof ye)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new ye(s,a,l,t.opacity)}function D9(t,e,n,r){return arguments.length===1?v0(t):new ye(t,e,n,r==null?1:r)}function ye(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}va(ye,D9,u0(gr,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new ye(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?mr:Math.pow(mr,t),new ye(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ne(wa(t>=240?t-240:t+120,i,r),wa(t,i,r),wa(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new ye(b0(this.h),qi(this.s),qi(this.l),Vi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Vi(this.opacity);return`${t===1?"hsl(":"hsla("}${b0(this.h)}, ${qi(this.s)*100}%, ${qi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function b0(t){return t=(t||0)%360,t<0?t+360:t}function qi(t){return Math.max(0,Math.min(1,t||0))}function wa(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const $a=t=>()=>t;function j9(t,e){return function(n){return t+n*e}}function F9(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function B9(t){return(t=+t)==1?w0:function(e,n){return n-e?F9(e,n,t):$a(isNaN(e)?n:e)}}function w0(t,e){var n=e-t;return n?j9(t,n):$a(isNaN(t)?e:t)}const Gi=(function t(e){var n=B9(e);function r(i,o){var s=n((i=ba(i)).r,(o=ba(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=w0(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=a(h),i.b=l(h),i.opacity=c(h),i+""}}return r.gamma=t,r})(1);function W9(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function X9(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Y9(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Oa(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function V9(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function _e(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function q9(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Oa(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Pa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ma=new RegExp(Pa.source,"g");function G9(t){return function(){return t}}function U9(t){return function(e){return t(e)+""}}function $0(t,e){var n=Pa.lastIndex=Ma.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Pa.exec(t))&&(i=Ma.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:_e(r,i)})),n=Ma.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?U9(l[0].x):G9(e):(e=l.length,function(c){for(var h=0,u;h<e;++h)a[(u=l[h]).i]=u.x(c);return a.join("")})}function Oa(t,e){var n=typeof e,r;return e==null||n==="boolean"?$a(e):(n==="number"?_e:n==="string"?(r=tn(e))?(e=r,Gi):$0:e instanceof tn?Gi:e instanceof Date?V9:X9(e)?W9:Array.isArray(e)?Y9:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?q9:_e)(t,e)}function Z9(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var P0=180/Math.PI,Ca={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function M0(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*P0,skewX:Math.atan(l)*P0,scaleX:s,scaleY:a}}var Ui;function Q9(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ca:M0(e.a,e.b,e.c,e.d,e.e,e.f)}function K9(t){return t==null||(Ui||(Ui=document.createElementNS("http://www.w3.org/2000/svg","g")),Ui.setAttribute("transform",t),!(t=Ui.transform.baseVal.consolidate()))?Ca:(t=t.matrix,M0(t.a,t.b,t.c,t.d,t.e,t.f))}function O0(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,h,u,d,p,g){if(c!==u||h!==d){var y=p.push("translate(",null,e,null,n);g.push({i:y-4,x:_e(c,u)},{i:y-2,x:_e(h,d)})}else(u||d)&&p.push("translate("+u+e+d+n)}function s(c,h,u,d){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),d.push({i:u.push(i(u)+"rotate(",null,r)-2,x:_e(c,h)})):h&&u.push(i(u)+"rotate("+h+r)}function a(c,h,u,d){c!==h?d.push({i:u.push(i(u)+"skewX(",null,r)-2,x:_e(c,h)}):h&&u.push(i(u)+"skewX("+h+r)}function l(c,h,u,d,p,g){if(c!==u||h!==d){var y=p.push(i(p)+"scale(",null,",",null,")");g.push({i:y-4,x:_e(c,u)},{i:y-2,x:_e(h,d)})}else(u!==1||d!==1)&&p.push(i(p)+"scale("+u+","+d+")")}return function(c,h){var u=[],d=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,d),s(c.rotate,h.rotate,u,d),a(c.skewX,h.skewX,u,d),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,d),c=h=null,function(p){for(var g=-1,y=d.length,m;++g<y;)u[(m=d[g]).i]=m.x(p);return u.join("")}}}var J9=O0(Q9,"px, ","px)","deg)"),t$=O0(K9,", ",")",")"),Sn=0,_r=0,xr=0,C0=1e3,Zi,vr,Qi=0,rn=0,Ki=0,br=typeof performance=="object"&&performance.now?performance:Date,S0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Sa(){return rn||(S0(e$),rn=br.now()+Ki)}function e$(){rn=0}function Ji(){this._call=this._time=this._next=null}Ji.prototype=Ia.prototype={constructor:Ji,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Sa():+n)+(e==null?0:+e),!this._next&&vr!==this&&(vr?vr._next=this:Zi=this,vr=this),this._call=t,this._time=n,Aa()},stop:function(){this._call&&(this._call=null,this._time=1/0,Aa())}};function Ia(t,e,n){var r=new Ji;return r.restart(t,e,n),r}function n$(){Sa(),++Sn;for(var t=Zi,e;t;)(e=rn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Sn}function I0(){rn=(Qi=br.now())+Ki,Sn=_r=0;try{n$()}finally{Sn=0,i$(),rn=0}}function r$(){var t=br.now(),e=t-Qi;e>C0&&(Ki-=e,Qi=t)}function i$(){for(var t,e=Zi,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Zi=n);vr=t,Aa(r)}function Aa(t){if(!Sn){_r&&(_r=clearTimeout(_r));var e=t-rn;e>24?(t<1/0&&(_r=setTimeout(I0,t-br.now()-Ki)),xr&&(xr=clearInterval(xr))):(xr||(Qi=br.now(),xr=setInterval(r$,C0)),Sn=1,S0(I0))}}function A0(t,e,n){var r=new Ji;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var o$=ma("start","end","cancel","interrupt"),s$=[],E0=0,k0=1,Ea=2,to=3,T0=4,ka=5,eo=6;function no(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;a$(t,n,{name:e,index:r,group:i,on:o$,tween:s$,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:E0})}function Ta(t,e){var n=xe(t,e);if(n.state>E0)throw new Error("too late; already scheduled");return n}function Pe(t,e){var n=xe(t,e);if(n.state>to)throw new Error("too late; already running");return n}function xe(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function a$(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Ia(o,0,n.time);function o(c){n.state=k0,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var h,u,d,p;if(n.state!==k0)return l();for(h in r)if(p=r[h],p.name===n.name){if(p.state===to)return A0(s);p.state===T0?(p.state=eo,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[h]):+h<e&&(p.state=eo,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[h])}if(A0(function(){n.state===to&&(n.state=T0,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Ea,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ea){for(n.state=to,i=new Array(d=n.tween.length),h=0,u=-1;h<d;++h)(p=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=p);i.length=u+1}}function a(c){for(var h=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=ka,1),u=-1,d=i.length;++u<d;)i[u].call(t,h);n.state===ka&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=eo,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function l$(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>Ea&&r.state<ka,r.state=eo,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function c$(t){return this.each(function(){l$(this,t)})}function h$(t,e){var n,r;return function(){var i=Pe(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function f$(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Pe(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function u$(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=xe(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?h$:f$)(n,t,e))}function za(t,e,n){var r=t._id;return t.each(function(){var i=Pe(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return xe(i,r).value[e]}}function z0(t,e){var n;return(typeof e=="number"?_e:e instanceof tn?Gi:(n=tn(e))?(e=n,Gi):$0)(t,e)}function d$(t){return function(){this.removeAttribute(t)}}function p$(t){return function(){this.removeAttributeNS(t.space,t.local)}}function g$(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function m$(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function y$(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function _$(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function x$(t,e){var n=Bi(t),r=n==="transform"?t$:z0;return this.attrTween(t,typeof e=="function"?(n.local?_$:y$)(n,r,za(this,"attr."+t,e)):e==null?(n.local?p$:d$)(n):(n.local?m$:g$)(n,r,e))}function v$(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function b$(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function w$(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&b$(t,o)),n}return i._value=e,i}function $$(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&v$(t,o)),n}return i._value=e,i}function P$(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Bi(t);return this.tween(n,(r.local?w$:$$)(r,e))}function M$(t,e){return function(){Ta(this,t).delay=+e.apply(this,arguments)}}function O$(t,e){return e=+e,function(){Ta(this,t).delay=e}}function C$(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?M$:O$)(e,t)):xe(this.node(),e).delay}function S$(t,e){return function(){Pe(this,t).duration=+e.apply(this,arguments)}}function I$(t,e){return e=+e,function(){Pe(this,t).duration=e}}function A$(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?S$:I$)(e,t)):xe(this.node(),e).duration}function E$(t,e){if(typeof e!="function")throw new Error;return function(){Pe(this,t).ease=e}}function k$(t){var e=this._id;return arguments.length?this.each(E$(e,t)):xe(this.node(),e).ease}function T$(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Pe(this,t).ease=n}}function z$(t){if(typeof t!="function")throw new Error;return this.each(T$(this._id,t))}function H$(t){typeof t!="function"&&(t=r0(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new ke(r,this._parents,this._name,this._id)}function R$(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=n[a],h=l.length,u=s[a]=new Array(h),d,p=0;p<h;++p)(d=l[p]||c[p])&&(u[p]=d);for(;a<r;++a)s[a]=e[a];return new ke(s,this._parents,this._name,this._id)}function L$(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function N$(t,e,n){var r,i,o=L$(e)?Ta:Pe;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function D$(t,e){var n=this._id;return arguments.length<2?xe(this.node(),n).on.on(t):this.each(N$(n,t,e))}function j$(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function F$(){return this.on("end.remove",j$(this._id))}function B$(t){var e=this._name,n=this._id;typeof t!="function"&&(t=_a(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),h,u,d=0;d<l;++d)(h=a[d])&&(u=t.call(h,h.__data__,d,a))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u,no(c[d],e,n,d,c,xe(h,n)));return new ke(o,this._parents,e,n)}function W$(t){var e=this._name,n=this._id;typeof t!="function"&&(t=n0(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var d=t.call(h,h.__data__,u,l),p,g=xe(h,n),y=0,m=d.length;y<m;++y)(p=d[y])&&no(p,e,n,y,d,g);o.push(d),s.push(h)}return new ke(o,s,e,n)}var X$=pr.prototype.constructor;function Y$(){return new X$(this._groups,this._parents)}function V$(t,e){var n,r,i;return function(){var o=On(this,t),s=(this.style.removeProperty(t),On(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function H0(t){return function(){this.style.removeProperty(t)}}function q$(t,e,n){var r,i=n+"",o;return function(){var s=On(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function G$(t,e,n){var r,i,o;return function(){var s=On(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),On(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function U$(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=Pe(this,t),c=l.on,h=l.value[o]==null?a||(a=H0(e)):void 0;(c!==n||i!==h)&&(r=(n=c).copy()).on(s,i=h),l.on=r}}function Z$(t,e,n){var r=(t+="")=="transform"?J9:z0;return e==null?this.styleTween(t,V$(t,r)).on("end.style."+t,H0(t)):typeof e=="function"?this.styleTween(t,G$(t,r,za(this,"style."+t,e))).each(U$(this._id,t)):this.styleTween(t,q$(t,r,e),n).on("end.style."+t,null)}function Q$(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function K$(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&Q$(t,s,n)),r}return o._value=e,o}function J$(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,K$(t,e,n==null?"":n))}function t7(t){return function(){this.textContent=t}}function e7(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function n7(t){return this.tween("text",typeof t=="function"?e7(za(this,"text",t)):t7(t==null?"":t+""))}function r7(t){return function(e){this.textContent=t.call(this,e)}}function i7(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&r7(i)),e}return r._value=t,r}function o7(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,i7(t))}function s7(){for(var t=this._name,e=this._id,n=R0(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var h=xe(l,e);no(l,t,n,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ke(r,this._parents,t,n)}function a7(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=Pe(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var l7=0;function ke(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function R0(){return++l7}var Te=pr.prototype;ke.prototype={constructor:ke,select:B$,selectAll:W$,selectChild:Te.selectChild,selectChildren:Te.selectChildren,filter:H$,merge:R$,selection:Y$,transition:s7,call:Te.call,nodes:Te.nodes,node:Te.node,size:Te.size,empty:Te.empty,each:Te.each,on:D$,attr:x$,attrTween:P$,style:Z$,styleTween:J$,text:n7,textTween:o7,remove:F$,tween:u$,delay:C$,duration:A$,ease:k$,easeVarying:z$,end:a7,[Symbol.iterator]:Te[Symbol.iterator]};function c7(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var h7={time:null,delay:0,duration:250,ease:c7};function f7(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function u7(t){var e,n;t instanceof ke?(e=t._id,t=t._name):(e=R0(),(n=h7).time=Sa(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&no(l,t,e,c,s,n||f7(l,e));return new ke(r,this._parents,t,e)}pr.prototype.interrupt=c$,pr.prototype.transition=u7;const Ha=Math.PI,Ra=2*Ha,on=1e-6,d7=Ra-on;function L0(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function p7(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return L0;const n=Or(10,e);return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class g7{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?L0:p7(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,s){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-e,c=i-n,h=s-e,u=a-n,d=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(d>on)if(!(Math.abs(u*l-c*h)>on)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-s,g=i-a,y=l*l+c*c,m=p*p+g*g,x=Math.sqrt(y),_=Math.sqrt(d),v=o*Math.tan((Ha-Math.acos((y+d-m)/(2*x*_)))/2),b=v/_,P=v/x;Math.abs(b-1)>on&&this._append`L${e+b*h},${n+b*u}`,this._append`A${o},${o},0,0,${+(u*p>h*g)},${this._x1=e+P*l},${this._y1=n+P*c}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=e+a,h=n+l,u=1^s,d=s?i-o:o-i;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>on||Math.abs(this._y1-h)>on)&&this._append`L${c},${h}`,r&&(d<0&&(d=d%Ra+Ra),d>d7?this._append`A${r},${r},0,1,${u},${e-a},${n-l}A${r},${r},0,1,${u},${this._x1=c},${this._y1=h}`:d>on&&this._append`A${r},${r},0,${+(d>=Ha)},${u},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function m7(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function i(){var o,s=n.length,a,l=0,c=0;for(o=0;o<s;++o)a=n[o],l+=a.x,c+=a.y;for(l=(l/s-t)*r,c=(c/s-e)*r,o=0;o<s;++o)a=n[o],a.x-=l,a.y-=c}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(t=+o,i):t},i.y=function(o){return arguments.length?(e=+o,i):e},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function y7(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return N0(this.cover(e,n),e,n,t)}function N0(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o=t._root,s={data:r},a=t._x0,l=t._y0,c=t._x1,h=t._y1,u,d,p,g,y,m,x,_;if(!o)return t._root=s,t;for(;o.length;)if((y=e>=(u=(a+c)/2))?a=u:c=u,(m=n>=(d=(l+h)/2))?l=d:h=d,i=o,!(o=o[x=m<<1|y]))return i[x]=s,t;if(p=+t._x.call(null,o.data),g=+t._y.call(null,o.data),e===p&&n===g)return s.next=o,i?i[x]=s:t._root=s,t;do i=i?i[x]=new Array(4):t._root=new Array(4),(y=e>=(u=(a+c)/2))?a=u:c=u,(m=n>=(d=(l+h)/2))?l=d:h=d;while((x=m<<1|y)===(_=(g>=d)<<1|p>=u));return i[_]=o,i[x]=s,t}function _7(t){var e,n,r=t.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,h=-1/0,u=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(s[n]=i,a[n]=o,i<l&&(l=i),i>h&&(h=i),o<c&&(c=o),o>u&&(u=o));if(l>h||c>u)return this;for(this.cover(l,c).cover(h,u),n=0;n<r;++n)N0(this,s[n],a[n],t[n]);return this}function x7(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s=i-n||1,a=this._root,l,c;n>t||t>=i||r>e||e>=o;)switch(c=(e<r)<<1|t<n,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:i=n+s,o=r+s;break;case 1:n=i-s,o=r+s;break;case 2:i=n+s,r=o-s;break;case 3:n=i-s,r=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function v7(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function b7(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Qt(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function w7(t,e,n){var r,i=this._x0,o=this._y0,s,a,l,c,h=this._x1,u=this._y1,d=[],p=this._root,g,y;for(p&&d.push(new Qt(p,i,o,h,u)),n==null?n=1/0:(i=t-n,o=e-n,h=t+n,u=e+n,n*=n);g=d.pop();)if(!(!(p=g.node)||(s=g.x0)>h||(a=g.y0)>u||(l=g.x1)<i||(c=g.y1)<o))if(p.length){var m=(s+l)/2,x=(a+c)/2;d.push(new Qt(p[3],m,x,l,c),new Qt(p[2],s,x,m,c),new Qt(p[1],m,a,l,x),new Qt(p[0],s,a,m,x)),(y=(e>=x)<<1|t>=m)&&(g=d[d.length-1],d[d.length-1]=d[d.length-1-y],d[d.length-1-y]=g)}else{var _=t-+this._x.call(null,p.data),v=e-+this._y.call(null,p.data),b=_*_+v*v;if(b<n){var P=Math.sqrt(n=b);i=t-P,o=e-P,h=t+P,u=e+P,r=p.data}}return r}function $7(t){if(isNaN(h=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var e,n=this._root,r,i,o,s=this._x0,a=this._y0,l=this._x1,c=this._y1,h,u,d,p,g,y,m,x;if(!n)return this;if(n.length)for(;;){if((g=h>=(d=(s+l)/2))?s=d:l=d,(y=u>=(p=(a+c)/2))?a=p:c=p,e=n,!(n=n[m=y<<1|g]))return this;if(!n.length)break;(e[m+1&3]||e[m+2&3]||e[m+3&3])&&(r=e,x=m)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):e?(o?e[m]=o:delete e[m],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[x]=n:this._root=n),this):(this._root=o,this)}function P7(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function M7(){return this._root}function O7(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function C7(t){var e=[],n,r=this._root,i,o,s,a,l;for(r&&e.push(new Qt(r,this._x0,this._y0,this._x1,this._y1));n=e.pop();)if(!t(r=n.node,o=n.x0,s=n.y0,a=n.x1,l=n.y1)&&r.length){var c=(o+a)/2,h=(s+l)/2;(i=r[3])&&e.push(new Qt(i,c,h,a,l)),(i=r[2])&&e.push(new Qt(i,o,h,c,l)),(i=r[1])&&e.push(new Qt(i,c,s,a,h)),(i=r[0])&&e.push(new Qt(i,o,s,c,h))}return this}function S7(t){var e=[],n=[],r;for(this._root&&e.push(new Qt(this._root,this._x0,this._y0,this._x1,this._y1));r=e.pop();){var i=r.node;if(i.length){var o,s=r.x0,a=r.y0,l=r.x1,c=r.y1,h=(s+l)/2,u=(a+c)/2;(o=i[0])&&e.push(new Qt(o,s,a,h,u)),(o=i[1])&&e.push(new Qt(o,h,a,l,u)),(o=i[2])&&e.push(new Qt(o,s,u,h,c)),(o=i[3])&&e.push(new Qt(o,h,u,l,c))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function I7(t){return t[0]}function A7(t){return arguments.length?(this._x=t,this):this._x}function E7(t){return t[1]}function k7(t){return arguments.length?(this._y=t,this):this._y}function La(t,e,n){var r=new Na(e==null?I7:e,n==null?E7:n,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function Na(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function D0(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Kt=La.prototype=Na.prototype;Kt.copy=function(){var t=new Na(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=D0(e),t;for(n=[{source:e,target:t._root=new Array(4)}];e=n.pop();)for(var i=0;i<4;++i)(r=e.source[i])&&(r.length?n.push({source:r,target:e.target[i]=new Array(4)}):e.target[i]=D0(r));return t},Kt.add=y7,Kt.addAll=_7,Kt.cover=x7,Kt.data=v7,Kt.extent=b7,Kt.find=w7,Kt.remove=$7,Kt.removeAll=P7,Kt.root=M7,Kt.size=O7,Kt.visit=C7,Kt.visitAfter=S7,Kt.x=A7,Kt.y=k7;function sn(t){return function(){return t}}function Be(t){return(t()-.5)*1e-6}function T7(t){return t.x+t.vx}function z7(t){return t.y+t.vy}function H7(t){var e,n,r,i=1,o=1;typeof t!="function"&&(t=sn(t==null?1:+t));function s(){for(var c,h=e.length,u,d,p,g,y,m,x=0;x<o;++x)for(u=La(e,T7,z7).visitAfter(a),c=0;c<h;++c)d=e[c],y=n[d.index],m=y*y,p=d.x+d.vx,g=d.y+d.vy,u.visit(_);function _(v,b,P,w,$){var M=v.data,A=v.r,I=y+A;if(M){if(M.index>d.index){var C=p-M.x-M.vx,k=g-M.y-M.vy,E=C*C+k*k;E<I*I&&(C===0&&(C=Be(r),E+=C*C),k===0&&(k=Be(r),E+=k*k),E=(I-(E=Math.sqrt(E)))/E*i,d.vx+=(C*=E)*(I=(A*=A)/(m+A)),d.vy+=(k*=E)*I,M.vx-=C*(I=1-I),M.vy-=k*I)}return}return b>p+I||w<p-I||P>g+I||$<g-I}}function a(c){if(c.data)return c.r=n[c.data.index];for(var h=c.r=0;h<4;++h)c[h]&&c[h].r>c.r&&(c.r=c[h].r)}function l(){if(e){var c,h=e.length,u;for(n=new Array(h),c=0;c<h;++c)u=e[c],n[u.index]=+t(u,c,e)}}return s.initialize=function(c,h){e=c,r=h,l()},s.iterations=function(c){return arguments.length?(o=+c,s):o},s.strength=function(c){return arguments.length?(i=+c,s):i},s.radius=function(c){return arguments.length?(t=typeof c=="function"?c:sn(+c),l(),s):t},s}function R7(t){return t.index}function j0(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function L7(t){var e=R7,n=u,r,i=sn(30),o,s,a,l,c,h=1;t==null&&(t=[]);function u(m){return 1/Math.min(a[m.source.index],a[m.target.index])}function d(m){for(var x=0,_=t.length;x<h;++x)for(var v=0,b,P,w,$,M,A,I;v<_;++v)b=t[v],P=b.source,w=b.target,$=w.x+w.vx-P.x-P.vx||Be(c),M=w.y+w.vy-P.y-P.vy||Be(c),A=Math.sqrt($*$+M*M),A=(A-o[v])/A*m*r[v],$*=A,M*=A,w.vx-=$*(I=l[v]),w.vy-=M*I,P.vx+=$*(I=1-I),P.vy+=M*I}function p(){if(s){var m,x=s.length,_=t.length,v=new Map(s.map((P,w)=>[e(P,w,s),P])),b;for(m=0,a=new Array(x);m<_;++m)b=t[m],b.index=m,typeof b.source!="object"&&(b.source=j0(v,b.source)),typeof b.target!="object"&&(b.target=j0(v,b.target)),a[b.source.index]=(a[b.source.index]||0)+1,a[b.target.index]=(a[b.target.index]||0)+1;for(m=0,l=new Array(_);m<_;++m)b=t[m],l[m]=a[b.source.index]/(a[b.source.index]+a[b.target.index]);r=new Array(_),g(),o=new Array(_),y()}}function g(){if(s)for(var m=0,x=t.length;m<x;++m)r[m]=+n(t[m],m,t)}function y(){if(s)for(var m=0,x=t.length;m<x;++m)o[m]=+i(t[m],m,t)}return d.initialize=function(m,x){s=m,c=x,p()},d.links=function(m){return arguments.length?(t=m,p(),d):t},d.id=function(m){return arguments.length?(e=m,d):e},d.iterations=function(m){return arguments.length?(h=+m,d):h},d.strength=function(m){return arguments.length?(n=typeof m=="function"?m:sn(+m),g(),d):n},d.distance=function(m){return arguments.length?(i=typeof m=="function"?m:sn(+m),y(),d):i},d}const N7=1664525,D7=1013904223,F0=4294967296;function j7(){let t=1;return()=>(t=(N7*t+D7)%F0)/F0}function F7(t){return t.x}function B7(t){return t.y}var W7=10,X7=Math.PI*(3-Math.sqrt(5));function Y7(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=Ia(u),c=ma("tick","end"),h=j7();t==null&&(t=[]);function u(){d(),c.call("tick",e),n<r&&(l.stop(),c.call("end",e))}function d(y){var m,x=t.length,_;y===void 0&&(y=1);for(var v=0;v<y;++v)for(n+=(o-n)*i,a.forEach(function(b){b(n)}),m=0;m<x;++m)_=t[m],_.fx==null?_.x+=_.vx*=s:(_.x=_.fx,_.vx=0),_.fy==null?_.y+=_.vy*=s:(_.y=_.fy,_.vy=0);return e}function p(){for(var y=0,m=t.length,x;y<m;++y){if(x=t[y],x.index=y,x.fx!=null&&(x.x=x.fx),x.fy!=null&&(x.y=x.fy),isNaN(x.x)||isNaN(x.y)){var _=W7*Math.sqrt(.5+y),v=y*X7;x.x=_*Math.cos(v),x.y=_*Math.sin(v)}(isNaN(x.vx)||isNaN(x.vy))&&(x.vx=x.vy=0)}}function g(y){return y.initialize&&y.initialize(t,h),y}return p(),e={tick:d,restart:function(){return l.restart(u),e},stop:function(){return l.stop(),e},nodes:function(y){return arguments.length?(t=y,p(),a.forEach(g),e):t},alpha:function(y){return arguments.length?(n=+y,e):n},alphaMin:function(y){return arguments.length?(r=+y,e):r},alphaDecay:function(y){return arguments.length?(i=+y,e):+i},alphaTarget:function(y){return arguments.length?(o=+y,e):o},velocityDecay:function(y){return arguments.length?(s=1-y,e):1-s},randomSource:function(y){return arguments.length?(h=y,a.forEach(g),e):h},force:function(y,m){return arguments.length>1?(m==null?a.delete(y):a.set(y,g(m)),e):a.get(y)},find:function(y,m,x){var _=0,v=t.length,b,P,w,$,M;for(x==null?x=1/0:x*=x,_=0;_<v;++_)$=t[_],b=y-$.x,P=m-$.y,w=b*b+P*P,w<x&&(M=$,x=w);return M},on:function(y,m){return arguments.length>1?(c.on(y,m),e):c.on(y)}}}function V7(){var t,e,n,r,i=sn(-30),o,s=1,a=1/0,l=.81;function c(p){var g,y=t.length,m=La(t,F7,B7).visitAfter(u);for(r=p,g=0;g<y;++g)e=t[g],m.visit(d)}function h(){if(t){var p,g=t.length,y;for(o=new Array(g),p=0;p<g;++p)y=t[p],o[y.index]=+i(y,p,t)}}function u(p){var g=0,y,m,x=0,_,v,b;if(p.length){for(_=v=b=0;b<4;++b)(y=p[b])&&(m=Math.abs(y.value))&&(g+=y.value,x+=m,_+=m*y.x,v+=m*y.y);p.x=_/x,p.y=v/x}else{y=p,y.x=y.data.x,y.y=y.data.y;do g+=o[y.data.index];while(y=y.next)}p.value=g}function d(p,g,y,m){if(!p.value)return!0;var x=p.x-e.x,_=p.y-e.y,v=m-g,b=x*x+_*_;if(v*v/l<b)return b<a&&(x===0&&(x=Be(n),b+=x*x),_===0&&(_=Be(n),b+=_*_),b<s&&(b=Math.sqrt(s*b)),e.vx+=x*p.value*r/b,e.vy+=_*p.value*r/b),!0;if(p.length||b>=a)return;(p.data!==e||p.next)&&(x===0&&(x=Be(n),b+=x*x),_===0&&(_=Be(n),b+=_*_),b<s&&(b=Math.sqrt(s*b)));do p.data!==e&&(v=o[p.data.index]*r/b,e.vx+=x*v,e.vy+=_*v);while(p=p.next)}return c.initialize=function(p,g){t=p,n=g,h()},c.strength=function(p){return arguments.length?(i=typeof p=="function"?p:sn(+p),h(),c):i},c.distanceMin=function(p){return arguments.length?(s=p*p,c):Math.sqrt(s)},c.distanceMax=function(p){return arguments.length?(a=p*p,c):Math.sqrt(a)},c.theta=function(p){return arguments.length?(l=p*p,c):Math.sqrt(l)},c}function q7(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ro(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function In(t){return t=ro(Math.abs(t)),t?t[1]:NaN}function G7(t,e){return function(n,r){for(var i=n.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function U7(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Z7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function io(t){if(!(e=Z7.exec(t)))throw new Error("invalid format: "+t);var e;return new Da({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}io.prototype=Da.prototype;function Da(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Da.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Q7(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var B0;function K7(t,e){var n=ro(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(B0=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ro(t,Math.max(0,e+o-1))[0]}function W0(t,e){var n=ro(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const X0={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:q7,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>W0(t*100,e),r:W0,s:K7,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Y0(t){return t}var V0=Array.prototype.map,q0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function J7(t){var e=t.grouping===void 0||t.thousands===void 0?Y0:G7(V0.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Y0:U7(V0.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(u){u=io(u);var d=u.fill,p=u.align,g=u.sign,y=u.symbol,m=u.zero,x=u.width,_=u.comma,v=u.precision,b=u.trim,P=u.type;P==="n"?(_=!0,P="g"):X0[P]||(v===void 0&&(v=12),b=!0,P="g"),(m||d==="0"&&p==="=")&&(m=!0,d="0",p="=");var w=y==="$"?n:y==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",$=y==="$"?r:/[%p]/.test(P)?s:"",M=X0[P],A=/[defgprs%]/.test(P);v=v===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function I(C){var k=w,E=$,L,F,z;if(P==="c")E=M(C)+E,C="";else{C=+C;var j=C<0||1/C<0;if(C=isNaN(C)?l:M(Math.abs(C),v),b&&(C=Q7(C)),j&&+C==0&&g!=="+"&&(j=!1),k=(j?g==="("?g:a:g==="-"||g==="("?"":g)+k,E=(P==="s"?q0[8+B0/3]:"")+E+(j&&g==="("?")":""),A){for(L=-1,F=C.length;++L<F;)if(z=C.charCodeAt(L),48>z||z>57){E=(z===46?i+C.slice(L+1):C.slice(L))+E,C=C.slice(0,L);break}}}_&&!m&&(C=e(C,1/0));var R=k.length+C.length+E.length,H=R<x?new Array(x-R+1).join(d):"";switch(_&&m&&(C=e(H+C,H.length?x-E.length:1/0),H=""),p){case"<":C=k+C+E+H;break;case"=":C=k+H+C+E;break;case"^":C=H.slice(0,R=H.length>>1)+k+C+E+H.slice(R);break;default:C=H+k+C+E;break}return o(C)}return I.toString=function(){return u+""},I}function h(u,d){var p=c((u=io(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(In(d)/3)))*3,y=Math.pow(10,-g),m=q0[8+g/3];return function(x){return p(y*x)+m}}return{format:c,formatPrefix:h}}var oo,G0,U0;tP({thousands:",",grouping:[3],currency:["$",""]});function tP(t){return oo=J7(t),G0=oo.format,U0=oo.formatPrefix,oo}function eP(t){return Math.max(0,-In(Math.abs(t)))}function nP(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(In(e)/3)))*3-In(Math.abs(t)))}function rP(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,In(e)-In(t))+1}function iP(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function oP(){return this.eachAfter(iP)}function sP(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function aP(t,e){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(t.call(e,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function lP(t,e){for(var n=this,r=[n],i=[],o,s,a,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,a=o.length;s<a;++s)r.push(o[s]);for(;n=i.pop();)t.call(e,n,++l,this);return this}function cP(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function hP(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function fP(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function uP(t){for(var e=this,n=dP(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function dP(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function pP(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function gP(){return Array.from(this)}function mP(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function yP(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*_P(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function ja(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=bP)):e===void 0&&(e=vP);for(var n=new wr(t),r,i=[n],o,s,a,l;r=i.pop();)if((s=e(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,a=l-1;a>=0;--a)i.push(o=s[a]=new wr(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore($P)}function xP(){return ja(this).eachBefore(wP)}function vP(t){return t.children}function bP(t){return Array.isArray(t)?t[1]:null}function wP(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function $P(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function wr(t){this.data=t,this.depth=this.height=0,this.parent=null}wr.prototype=ja.prototype={constructor:wr,count:oP,each:sP,eachAfter:lP,eachBefore:aP,find:cP,sum:hP,sort:fP,path:uP,ancestors:pP,descendants:gP,leaves:mP,links:yP,copy:xP,[Symbol.iterator]:_P};function PP(t,e){return t.parent===e.parent?1:2}function Fa(t){var e=t.children;return e?e[0]:t.t}function Ba(t){var e=t.children;return e?e[e.length-1]:t.t}function MP(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function OP(t){for(var e=0,n=0,r=t.children,i=r.length,o;--i>=0;)o=r[i],o.z+=e,o.m+=e,e+=o.s+(n+=o.c)}function CP(t,e,n){return t.a.parent===e.parent?t.a:n}function so(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}so.prototype=Object.create(wr.prototype);function SP(t){for(var e=new so(t,0),n,r=[e],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new so(o[s],s)),i.parent=n;return(e.parent=new so(null,0)).children=[e],e}function IP(){var t=PP,e=1,n=1,r=null;function i(c){var h=SP(c);if(h.eachAfter(o),h.parent.m=-h.z,h.eachBefore(s),r)c.eachBefore(l);else{var u=c,d=c,p=c;c.eachBefore(function(_){_.x<u.x&&(u=_),_.x>d.x&&(d=_),_.depth>p.depth&&(p=_)});var g=u===d?1:t(u,d)/2,y=g-u.x,m=e/(d.x+g+y),x=n/(p.depth||1);c.eachBefore(function(_){_.x=(_.x+y)*m,_.y=_.depth*x})}return c}function o(c){var h=c.children,u=c.parent.children,d=c.i?u[c.i-1]:null;if(h){OP(c);var p=(h[0].z+h[h.length-1].z)/2;d?(c.z=d.z+t(c._,d._),c.m=c.z-p):c.z=p}else d&&(c.z=d.z+t(c._,d._));c.parent.A=a(c,d,c.parent.A||u[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function a(c,h,u){if(h){for(var d=c,p=c,g=h,y=d.parent.children[0],m=d.m,x=p.m,_=g.m,v=y.m,b;g=Ba(g),d=Fa(d),g&&d;)y=Fa(y),p=Ba(p),p.a=c,b=g.z+_-d.z-m+t(g._,d._),b>0&&(MP(CP(g,c,u),c,b),m+=b,x+=b),_+=g.m,m+=d.m,v+=y.m,x+=p.m;g&&!Ba(p)&&(p.t=g,p.m+=_-x),d&&!Fa(y)&&(y.t=d,y.m+=m-v,u=c)}return u}function l(c){c.x*=e,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(t=c,i):t},i.size=function(c){return arguments.length?(r=!1,e=+c[0],n=+c[1],i):r?null:[e,n]},i.nodeSize=function(c){return arguments.length?(r=!0,e=+c[0],n=+c[1],i):r?[e,n]:null},i}function AP(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function EP(t){return function(){return t}}function kP(t){return+t}var Z0=[0,1];function An(t){return t}function Wa(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:EP(isNaN(e)?NaN:.5)}function TP(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function zP(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=Wa(i,r),o=n(s,o)):(r=Wa(r,i),o=n(o,s)),function(a){return o(r(a))}}function HP(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=Wa(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=j6(t,a,1,r)-1;return o[l](i[l](a))}}function RP(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function LP(){var t=Z0,e=Z0,n=Oa,r,i,o,s=An,a,l,c;function h(){var d=Math.min(t.length,e.length);return s!==An&&(s=TP(t[0],t[d-1])),a=d>2?HP:zP,l=c=null,u}function u(d){return d==null||isNaN(d=+d)?o:(l||(l=a(t.map(r),e,n)))(r(s(d)))}return u.invert=function(d){return s(i((c||(c=a(e,t.map(r),_e)))(d)))},u.domain=function(d){return arguments.length?(t=Array.from(d,kP),h()):t.slice()},u.range=function(d){return arguments.length?(e=Array.from(d),h()):e.slice()},u.rangeRound=function(d){return e=Array.from(d),n=Z9,h()},u.clamp=function(d){return arguments.length?(s=d?!0:An,h()):s!==An},u.interpolate=function(d){return arguments.length?(n=d,h()):n},u.unknown=function(d){return arguments.length?(o=d,u):o},function(d,p){return r=d,i=p,h()}}function NP(){return LP()(An,An)}function DP(t,e,n,r){var i=Y6(t,e,n),o;switch(r=io(r==null?",f":r),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=nP(i,s))&&(r.precision=o),U0(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=rP(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=eP(i))&&(r.precision=o-(r.type==="%")*2);break}}return G0(r)}function jP(t){var e=t.domain;return t.ticks=function(n){var r=e();return X6(r[0],r[r.length-1],n==null?10:n)},t.tickFormat=function(n,r){var i=e();return DP(i[0],i[i.length-1],n==null?10:n,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,s=r[i],a=r[o],l,c,h=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);h-- >0;){if(c=ga(s,a,n),c===l)return r[i]=s,r[o]=a,e(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function Xa(){var t=NP();return t.copy=function(){return RP(t,Xa())},AP.apply(t,arguments),jP(t)}function En(t){return function(){return t}}function FP(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new g7(e)}function BP(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Q0(t){this._context=t}Q0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function K0(t){return new Q0(t)}function WP(t){return t[0]}function XP(t){return t[1]}function YP(t,e){var n=En(!0),r=null,i=K0,o=null,s=FP(a);t=typeof t=="function"?t:t===void 0?WP:En(t),e=typeof e=="function"?e:e===void 0?XP:En(e);function a(l){var c,h=(l=BP(l)).length,u,d=!1,p;for(r==null&&(o=i(p=s())),c=0;c<=h;++c)!(c<h&&n(u=l[c],c,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+t(u,c,l),+e(u,c,l));if(p)return o=null,p+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:En(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:En(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:En(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function $r(t,e,n){this.k=t,this.x=e,this.y=n}$r.prototype={constructor:$r,scale:function(t){return t===1?this:new $r(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new $r(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},$r.prototype;var VP=Object.defineProperty,qP=Object.defineProperties,GP=Object.getOwnPropertyDescriptors,J0=Object.getOwnPropertySymbols,UP=Object.prototype.hasOwnProperty,ZP=Object.prototype.propertyIsEnumerable,tp=(t,e,n)=>e in t?VP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,QP=(t,e)=>{for(var n in e||(e={}))UP.call(e,n)&&tp(t,n,e[n]);if(J0)for(var n of J0(e))ZP.call(e,n)&&tp(t,n,e[n]);return t},KP=(t,e)=>qP(t,GP(e));const ep=t=>{const[{datum:e,data:n,indexes:r,width:i=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:h="normal",themeColors:u,valueFormatter:d=F=>`${F}%`},p]=kt(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),g=e.value,y=g!=null?g:0,m=Math.max(...n.items.map(F=>{var z;return(z=F.value)!=null?z:0}),100),x=i-2*a,v=Xa().domain([0,m]).range([0,x])(y),b=`${u.colorPrimary}-progress`,P=`${u.colorPrimaryBg}-progress-bg`,w=Z(f(ft,{indexes:r})),$=a,M=h==="flipped"?i-a-s:a,A=$,I=h==="flipped"?a:s+2*a,C=i-s-3*a,k=A,E=o-a-l,L=g!==void 0;return S(W,KP(QP({},p),{children:[S(_t,{children:[S("linearGradient",{id:b,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[f("stop",{offset:"0%",stopColor:u.colorPrimary}),f("stop",{offset:"100%",stopColor:tt.mix(u.colorPrimary,"#fff",20).toHexString()})]}),S("linearGradient",{id:P,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[f("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),f("stop",{offset:"100%",stopColor:u.colorBg})]})]}),f(pt,{x:0,y:0,width:i,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),f(Gt,{indexes:r,x:M,y:A,size:s,fill:u.colorPrimary}),f(ft,{indexes:r,x:I,y:k,width:C,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),L&&f(Wn,{indexes:r,x:I,y:k+w.height,width:C,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:y,formatter:d}),f(Et,{indexes:r,x:I,y:k+w.height+(L?27:4),width:C,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:L?2:3,wordWrap:!0,children:e.desc}),f(pt,{x:a,y:E,width:x,height:l,fill:`url(#${P})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),f(pt,{x:a,y:E,width:v,height:l,fill:`url(#${b})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))};Tt("progress-card",{component:ep,composites:["icon","label","value","desc"]});var JP=Object.defineProperty,tM=Object.defineProperties,eM=Object.getOwnPropertyDescriptors,np=Object.getOwnPropertySymbols,nM=Object.prototype.hasOwnProperty,rM=Object.prototype.propertyIsEnumerable,rp=(t,e,n)=>e in t?JP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,iM=(t,e)=>{for(var n in e||(e={}))nM.call(e,n)&&rp(t,n,e[n]);if(np)for(var n of np(e))rM.call(e,n)&&rp(t,n,e[n]);return t},oM=(t,e)=>tM(t,eM(e));const ip=t=>{const[{datum:e,indexes:n,width:r=280,height:i=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},h]=kt(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),d=2,p=4,g=28,y=20,m=y+20,x=y,_=8,v=35,b=40,P=30,w=String(n[0]+1).padStart(2,"0"),$=a==="flipped",M=a==="center",A=l==="flipped",I=()=>{if($)return{diagonalStartX:r-p,diagonalStartY:A?i-v:v,diagonalEndX:r-b,diagonalEndY:A?i-p:p,topLineStartX:r-b,topLineEndX:u,topLineY:A?i-p:p};if(M){const R=r-s-b,H=(r-R)/2;return{diagonalStartX:H+p,diagonalStartY:A?i-v:v,diagonalEndX:H+b,diagonalEndY:A?i-p:p,topLineStartX:H+b,topLineEndX:H+R-u,topLineY:A?i-p:p}}else return{diagonalStartX:p,diagonalStartY:A?i-v:v,diagonalEndX:b,diagonalEndY:A?i-p:p,topLineStartX:b,topLineEndX:r-u,topLineY:A?i-p:p}},C=()=>{if($){const R=s+10,H=r-R-b;return{valueX:r-P,contentX:R,contentWidth:H,circleX:0,circleY:A?0:i,iconX:u-o/2}}else if(M){const R=r-s-b,H=(r-R)/2;return{valueX:H,contentX:H+b,contentWidth:R-s-10,circleX:H+R,circleY:A?0:i,iconX:H+R-u-o/2}}else return{valueX:0,contentX:b,contentWidth:r-b-s-10,circleX:r,circleY:A?0:i,iconX:r-u-o/2}},k=I(),E=C(),L=A?u-o/2:i-u-o/2,F=Z(f(ft,{indexes:n,width:E.contentWidth,children:e.label})),z=x+F.height+_,j=()=>{const{circleX:R,circleY:H}=E;return $?A?`M ${R} ${H} L ${R} ${H+s} A ${s} ${s} 0 0 0 ${R+s} ${H} Z`:`M ${R} ${H} L ${R} ${H-s} A ${s} ${s} 0 0 1 ${R+s} ${H} Z`:A?`M ${R} ${H} L ${R} ${H+s} A ${s} ${s} 0 0 1 ${R-s} ${H} Z`:`M ${R} ${H} L ${R} ${H-s} A ${s} ${s} 0 0 0 ${R-s} ${H} Z`};return S(W,oM(iM({},h),{width:r,height:i,children:[S(Dt,{children:[f(ot,{d:`M ${k.diagonalStartX} ${k.diagonalStartY} L ${k.diagonalEndX} ${k.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:d,fill:"none"}),f(ot,{d:`M ${k.topLineStartX} ${k.topLineY} L ${k.topLineEndX} ${k.topLineY}`,stroke:c.colorPrimary,strokeWidth:d,fill:"none"}),f(xt,{x:k.diagonalStartX-p,y:k.diagonalStartY-p,width:p*2,height:p*2,fill:c.colorPrimary}),f(xt,{x:k.topLineEndX-p,y:k.topLineY-p,width:p*2,height:p*2,fill:c.colorPrimary})]}),S(W,{children:[f(zt,{x:E.valueX,y:m,fontSize:g,fontWeight:"bold",fill:c.colorPrimary,width:40,children:w}),f(ot,{d:j(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&f(Gt,{indexes:n,x:E.iconX,y:L,size:o,fill:c.colorWhite}),e.label&&f(ft,{indexes:n,x:E.contentX,y:x,width:E.contentWidth,fontWeight:"bold",fill:c.colorText,children:e.label}),e.desc&&f(Et,{indexes:n,x:E.contentX,y:z,width:E.contentWidth,fill:c.colorTextSecondary,children:e.desc})]})]}))};Tt("quarter-circular",{component:ip,composites:["icon","label","desc"]});var sM=Object.defineProperty,aM=Object.defineProperties,lM=Object.getOwnPropertyDescriptors,op=Object.getOwnPropertySymbols,cM=Object.prototype.hasOwnProperty,hM=Object.prototype.propertyIsEnumerable,sp=(t,e,n)=>e in t?sM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fM=(t,e)=>{for(var n in e||(e={}))cM.call(e,n)&&sp(t,n,e[n]);if(op)for(var n of op(e))hM.call(e,n)&&sp(t,n,e[n]);return t},uM=(t,e)=>aM(t,lM(e));const ap=t=>{const[{datum:e,indexes:n,width:r=150,height:i=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:h},u]=kt(t,["width","height","iconSize","padding","borderRadius"]),d=r-s*2,p=s,g=s,y=l==="flipped"?r-s-o:l==="center"?(r-o)/2:p,m=g,x=m+o+8,_=Z(f(ft,{indexes:n,width:d,children:e.label})),v=l==="flipped"?r-s-d:l==="center"?s:p,b=x+_.height+4,P=v,w=a;let $="";return l==="center"&&c==="middle"?$=`
30
+ `.replace(/\s+/g," ").trim()}function gu(t){if(!t||typeof t!="string")return[];try{const n=t.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),r=[];for(let i=0;i<n.length-1;i+=2){const o=parseFloat(n[i]),s=parseFloat(n[i+1]);if(isNaN(o)||isNaN(s)){console.warn(`Invalid coordinate pair at index ${i}: "${n[i]}", "${n[i+1]}"`);continue}r.push([o,s])}return n.length%2!==0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${n[n.length-1]}"`),r}catch(e){return console.error("Failed to parse polygon points:",t,e),[]}}function mu(t,e,n){var r;const{themeConfig:i}=n,o=Object.assign({},(r=i.base)==null?void 0:r.shape,i.shape),s=or(e,o);return le(e,s),Aw(e,t,n),e}function Iw(t,e){var n;le(t,((n=e.themeConfig.base)==null?void 0:n.shape)||{})}function Aw(t,e,n){const r=n.themeConfig.stylize;if(!r)return t;const{type:i}=r;if(!i)return t;if(i==="rough")return Mw(t,e,r);if(i==="pattern")return ew(t,e,n);if(i==="linear-gradient"||i==="radial-gradient"){const{fill:o,stroke:s}=je(t,["fill","stroke"]);Kn(o)&&qf(t,e,r,"fill"),Kn(s)&&qf(t,e,r,"stroke");return}}function yu(t){return t}var _u=Object.create,Ew=(function(){function t(){}return function(e){if(!Ze(e))return{};if(_u)return _u(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function kw(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Tw(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var zw=800,Hw=16,Rw=Date.now;function Lw(t){var e=0,n=0;return function(){var r=Rw(),i=Hw-(r-n);if(n=r,i>0){if(++e>=zw)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Nw(t){return function(){return t}}var Ti=(function(){try{var t=Ps(Object,"defineProperty");return t({},"",{}),t}catch(e){}})(),Dw=Ti?function(t,e){return Ti(t,"toString",{configurable:!0,enumerable:!1,value:Nw(e),writable:!0})}:yu,jw=Lw(Dw),Fw=9007199254740991,Bw=/^(?:0|[1-9]\d*)$/;function xu(t,e){var n=typeof t;return e=e==null?Fw:e,!!e&&(n=="number"||n!="symbol"&&Bw.test(t))&&t>-1&&t%1==0&&t<e}function ta(t,e,n){e=="__proto__"&&Ti?Ti(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Ww=Object.prototype,Xw=Ww.hasOwnProperty;function Yw(t,e,n){var r=t[e];(!(Xw.call(t,e)&&di(r,n))||n===void 0&&!(e in t))&&ta(t,e,n)}function Vw(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=void 0;l===void 0&&(l=t[a]),i?ta(n,a,l):Yw(n,a,l)}return n}var vu=Math.max;function qw(t,e,n){return e=vu(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=vu(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(s),kw(t,this,a)}}function Gw(t,e){return jw(qw(t,e,yu),t+"")}var Uw=9007199254740991;function bu(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Uw}function ea(t){return t!=null&&bu(t.length)&&!ws(t)}function Zw(t,e,n){if(!Ze(n))return!1;var r=typeof e;return(r=="number"?ea(n)&&xu(e,n.length):r=="string"&&e in n)?di(n[e],t):!1}function Qw(t){return Gw(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,s&&Zw(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e})}var Kw=Object.prototype;function wu(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Kw;return t===n}function Jw(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var t5="[object Arguments]";function $u(t){return vn(t)&&tr(t)==t5}var Pu=Object.prototype,e5=Pu.hasOwnProperty,n5=Pu.propertyIsEnumerable,na=$u((function(){return arguments})())?$u:function(t){return vn(t)&&e5.call(t,"callee")&&!n5.call(t,"callee")};function r5(){return!1}var Mu=typeof N=="object"&&N&&!N.nodeType&&N,Ou=Mu&&typeof module=="object"&&module&&!module.nodeType&&module,i5=Ou&&Ou.exports===Mu,Cu=i5?_n.Buffer:void 0,o5=Cu?Cu.isBuffer:void 0,Su=o5||r5,s5="[object Arguments]",a5="[object Array]",l5="[object Boolean]",c5="[object Date]",h5="[object Error]",f5="[object Function]",u5="[object Map]",d5="[object Number]",p5="[object Object]",g5="[object RegExp]",m5="[object Set]",y5="[object String]",_5="[object WeakMap]",x5="[object ArrayBuffer]",v5="[object DataView]",b5="[object Float32Array]",w5="[object Float64Array]",$5="[object Int8Array]",P5="[object Int16Array]",M5="[object Int32Array]",O5="[object Uint8Array]",C5="[object Uint8ClampedArray]",S5="[object Uint16Array]",I5="[object Uint32Array]",Rt={};Rt[b5]=Rt[w5]=Rt[$5]=Rt[P5]=Rt[M5]=Rt[O5]=Rt[C5]=Rt[S5]=Rt[I5]=!0,Rt[s5]=Rt[a5]=Rt[x5]=Rt[l5]=Rt[v5]=Rt[c5]=Rt[h5]=Rt[f5]=Rt[u5]=Rt[d5]=Rt[p5]=Rt[g5]=Rt[m5]=Rt[y5]=Rt[_5]=!1;function A5(t){return vn(t)&&bu(t.length)&&!!Rt[tr(t)]}function E5(t){return function(e){return t(e)}}var Iu=typeof N=="object"&&N&&!N.nodeType&&N,cr=Iu&&typeof module=="object"&&module&&!module.nodeType&&module,k5=cr&&cr.exports===Iu,ra=k5&&Th.process,Au=(function(){try{var t=cr&&cr.require&&cr.require("util").types;return t||ra&&ra.binding&&ra.binding("util")}catch(e){}})(),Eu=Au&&Au.isTypedArray,ku=Eu?E5(Eu):A5;function T5(t,e){var n=yn(t),r=!n&&na(t),i=!n&&!r&&Su(t),o=!n&&!r&&!i&&ku(t),s=n||r||i||o,a=s?Jw(t.length,String):[],l=a.length;for(var c in t)s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||xu(c,l))||a.push(c);return a}function z5(t,e){return function(n){return t(e(n))}}function H5(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var R5=Object.prototype,L5=R5.hasOwnProperty;function N5(t){if(!Ze(t))return H5(t);var e=wu(t),n=[];for(var r in t)r=="constructor"&&(e||!L5.call(t,r))||n.push(r);return n}function Tu(t){return ea(t)?T5(t):N5(t)}var zu=z5(Object.getPrototypeOf,Object),D5="[object Object]",j5=Function.prototype,F5=Object.prototype,Hu=j5.toString,B5=F5.hasOwnProperty,W5=Hu.call(Object);function X5(t){if(!vn(t)||tr(t)!=D5)return!1;var e=zu(t);if(e===null)return!0;var n=B5.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Hu.call(n)==W5}function Y5(){this.__data__=new Ee,this.size=0}function V5(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function q5(t){return this.__data__.get(t)}function G5(t){return this.__data__.has(t)}var U5=200;function Z5(t,e){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!Lh||r.length<U5-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ne(r)}return n.set(t,e),this.size=n.size,this}function Mn(t){var e=this.__data__=new Ee(t);this.size=e.size}Mn.prototype.clear=Y5,Mn.prototype.delete=V5,Mn.prototype.get=q5,Mn.prototype.has=G5,Mn.prototype.set=Z5;var Ru=typeof N=="object"&&N&&!N.nodeType&&N,Lu=Ru&&typeof module=="object"&&module&&!module.nodeType&&module,Q5=Lu&&Lu.exports===Ru,Nu=Q5?_n.Buffer:void 0;Nu&&Nu.allocUnsafe;function K5(t,e){return t.slice()}var Du=_n.Uint8Array;function J5(t){var e=new t.constructor(t.byteLength);return new Du(e).set(new Du(t)),e}function t3(t,e){var n=J5(t.buffer);return new t.constructor(n,t.byteOffset,t.length)}function e3(t){return typeof t.constructor=="function"&&!wu(t)?Ew(zu(t)):{}}function n3(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[++i];if(n(o[l],l,o)===!1)break}return e}}var r3=n3();function ia(t,e,n){(n!==void 0&&!di(t[e],n)||n===void 0&&!(e in t))&&ta(t,e,n)}function i3(t){return vn(t)&&ea(t)}function oa(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function o3(t){return Vw(t,Tu(t))}function s3(t,e,n,r,i,o,s){var a=oa(t,n),l=oa(e,n),c=s.get(l);if(c){ia(t,n,c);return}var h=o?o(a,l,n+"",t,e,s):void 0,u=h===void 0;if(u){var d=yn(l),p=!d&&Su(l),g=!d&&!p&&ku(l);h=l,d||p||g?yn(a)?h=a:i3(a)?h=Tw(a):p?(u=!1,h=K5(l)):g?(u=!1,h=t3(l)):h=[]:X5(l)||na(l)?(h=a,na(a)?h=o3(a):(!Ze(a)||ws(a))&&(h=e3(l))):u=!1}u&&(s.set(l,h),i(h,l,r,o,s),s.delete(l)),ia(t,n,h)}function ju(t,e,n,r,i){t!==e&&r3(e,function(o,s){if(i||(i=new Mn),Ze(o))s3(t,e,s,n,ju,r,i);else{var a=r?r(oa(t,s),o,s+"",t,e,i):void 0;a===void 0&&(a=o),ia(t,s,a)}},Tu)}var a3=Mf(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Fu=Qw(function(t,e,n){ju(t,e,n)});function sa(t,e,n={}){if(!e)return null;const r=t,i=or(r,n);le(r,i);const o=h3(e,r);for(const s in r.dataset)o.setAttribute(`data-${a3(s)}`,r.dataset[s]);return o}function l3(t,e,n){var r,i;const o=e.nodeName==="text"?e:null;if(!o)return null;const{data:s,themeConfig:a}=n,l=Kh(e.dataset.indexes||"0"),c=String(Fh(Os(s,l),t,"")),h=Object.assign({},(r=a.base)==null?void 0:r.text,(i=a.item)==null?void 0:i[t]),u=or(o,h);return sa(e,e.textContent||c,u)}function c3(t,e){var n;const r=((n=e.themeConfig.base)==null?void 0:n.text)||{};le(t,r),r["font-family"]&&t.setAttribute("font-family",mi(r["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}const zi=(t,e)=>t?parseFloat(t):e;function h3(t,e){const n=zi(e.dataset.x,0),r=zi(e.dataset.y,0),i=zi(e.getAttribute("width")),o=zi(e.getAttribute("height")),s=f3(e);return Object.assign(s,{x:n,y:r,width:i,height:o,"text-alignment":e.dataset.textAlignment||"LEFT TOP"}),db(t,s)}function f3(t){return je(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}const Je=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class u3{constructor(e,n){this.options=e,this.template=n,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const e=this.getSVG();if(this.rendered)return e;d3(e,this.options),e.style.visibility="hidden";const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(m3(this.template,this.options),Ob(this.template),n.disconnect(),e.style.visibility="")})})});return n.observe(document,{childList:!0,subtree:!0}),this.rendered=!0,e}}function d3(t,e){p3(t,e),g3(t,e);const{themeConfig:n}=e;Cb(t,n==null?void 0:n.colorBg)}function p3(t,e){var n;const{themeConfig:r,data:i}=e;Sb(t,(n=r.base)==null?void 0:n.global),t.querySelectorAll("[data-element-type]").forEach(s=>{var a,l,c,h,u,d;const p=s.id||"";if(zx(s)){const g=sa(s,i.title||"",Object.assign({},(a=r.base)==null?void 0:a.text,r.title));return Je(s,g)}if(Hx(s)){const g=sa(s,i.desc||"",Object.assign({},(l=r.base)==null?void 0:l.text,r.desc));return Je(s,g)}if(Nx(s)){const g=Xf(t,s,(c=i.illus)==null?void 0:c[p]);return Je(s,g)}if(Lx(s))return Array.from(s.children).forEach(g=>{mu(t,g,e)});if(Rx(s)){const g=mu(t,s,e);return Je(s,g)}if(Vx(s))return Ib(t,s);if((h=s.dataset.elementType)!=null&&h.startsWith("item-")){const g=Kh(s.dataset.indexes||"0"),y=s.dataset.elementType.replace("item-","");if(Bx(s)||Wx(s)||Xx(s)){const m=l3(y,s,e);return Je(s,m)}if(Yx(s)){const m=Xf(t,s,(u=Os(i,g))==null?void 0:u.illus);return Je(s,m)}if(Fx(s)){const m=Rb(t,s,(d=Os(i,g))==null?void 0:d.icon,e);return Je(s,m)}}if(Dx(s))return c3(s,e);if(!jx(s))return Iw(s,e)})}function g3(t,e){const{width:n,height:r}=e,{style:i={},attributes:o={},id:s,className:a}=e.svg||{};s&&(t.id=s),a&&t.classList.add(a),n!==void 0&&t.setAttribute("width",typeof n=="number"?`${n}px`:n),r!==void 0&&t.setAttribute("height",typeof r=="number"?`${r}px`:r),Object.assign(t.style,i),le(t,o)}function m3(t,e){const{padding:n=20,viewBox:r}=e;r?t.setAttribute("viewBox",r):n!==void 0&&Ex(t,zs(n))}const aa=new Map;function la(t,e){aa.set(t,e)}function Bu(t){return aa.get(t)}function y3(){return Array.from(aa.keys())}la("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),la("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});var _3=Object.defineProperty,x3=Object.defineProperties,v3=Object.getOwnPropertyDescriptors,Wu=Object.getOwnPropertySymbols,b3=Object.prototype.hasOwnProperty,w3=Object.prototype.propertyIsEnumerable,Xu=(t,e,n)=>e in t?_3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hr=(t,e)=>{for(var n in e||(e={}))b3.call(e,n)&&Xu(t,n,e[n]);if(Wu)for(var n of Wu(e))w3.call(e,n)&&Xu(t,n,e[n]);return t},fr=(t,e)=>x3(t,v3(e));bt(xh);const Yu=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const r=Se(t),i=Se(e),o=S3({primaryColor:r,bgColor:i});return I3(o,{primaryColor:r,bgColor:i,isDarkMode:n})},$3=(t,e)=>Gy(fr(hr({},t),{alpha:e?.2:.1}))||"#ffffff",P3=(t,e)=>{if(e)return"#ffffff";const n=Se("#262626");return vs(n,t)>=7?Qn(n):"#000000"},M3=t=>{const e=Eh(Se(t)),n=fr(hr({},e),{l:Math.min(1,e.l+.2)});return Qn(n)},O3=(t,e)=>{const n=Se(t),r=Se("#262626"),i=Se("#ffffff"),o=vs(r,n);return vs(i,n)>=3?Qn(i):o>=4.5?Qn(r):"#ffffff"},C3=(t,e)=>{const n=Eh(t);if(e){const r=fr(hr({},n),{l:Math.min(1,n.l+.1)});return Hi(r,"#1f1f1f")}else{if(n.l>.95)return"#ffffff";{const r=fr(hr({},n),{l:Math.min(1,n.l+.05)});return Hi(r,"#ffffff")}}},S3=({primaryColor:t,bgColor:e})=>({colorPrimary:Hi(t,"#FF356A"),colorBg:Hi(e,"#ffffff"),colorWhite:"#ffffff"}),I3=(t,{primaryColor:e,bgColor:n,isDarkMode:r})=>{const i=P3(n,r),o=$3(e,r);return fr(hr({},t),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:M3(i),colorPrimaryText:O3(o,r),colorBgElevated:C3(n,r)})};function Hi(t,e="#000000"){var n;return(n=Qn(t))!=null?n:e}const ca="#FF356A";function Zt(t){var e;return((e=t==null?void 0:t.themeConfig)==null?void 0:e.colorPrimary)||ca}function Vu(t){var e;const{themeConfig:n={},data:r}=t,{colorPrimary:i,palette:o}=n;return!o||o.length===0?Array(((e=r==null?void 0:r.items)==null?void 0:e.length)||1).fill(i||ca):r.items.map((s,a)=>xi(o,[a],r.items.length)||ca)}function wt(t,e){var n,r,i;return xi((n=t==null?void 0:t.themeConfig)==null?void 0:n.palette,e,(i=(r=t.data)==null?void 0:r.items)==null?void 0:i.length)}function ge(t,e){var n;const{colorBg:r=((n=e==null?void 0:e.themeConfig)==null?void 0:n.colorBg)||"white",colorPrimary:i=e?Zt(e):"black"}=t;return Yu({colorPrimary:i,isDarkMode:kh(r),colorBg:r})}function Ri(t,e){const{depth:n,originalIndexes:r,flatIndex:i}=t;switch(e){case"level":return[n];case"branch":return n===0?[0]:n===1?[r[1]+1]:[r[1]+1];case"node":return r;case"node-flat":return i!==void 0?[i]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),r);default:return[0]}}var A3=Object.defineProperty,qu=Object.getOwnPropertySymbols,E3=Object.prototype.hasOwnProperty,k3=Object.prototype.propertyIsEnumerable,Gu=(t,e,n)=>e in t?A3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T3=(t,e)=>{for(var n in e||(e={}))E3.call(e,n)&&Gu(t,n,e[n]);if(qu)for(var n of qu(e))k3.call(e,n)&&Gu(t,n,e[n]);return t};function kt(t,e=[]){const n=T3({},t),r={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...e].forEach(o=>{o in n&&(r[o]=n[o],delete n[o])}),["x","y","width","height"].forEach(o=>{o in t&&(n[o]=t[o])}),[r,n]}function Uu(t,e){var n;return t.length===0?()=>null:e===void 0?t[0]:(n=t[e])!=null?n:t[0]}const ha=new Map;function Tt(t,e){ha.set(t,e)}function Zu(t){return ha.get(t)}function z3(){return Array.from(ha.keys())}var H3=Object.defineProperty,R3=Object.defineProperties,L3=Object.getOwnPropertyDescriptors,Qu=Object.getOwnPropertySymbols,N3=Object.prototype.hasOwnProperty,D3=Object.prototype.propertyIsEnumerable,Ku=(t,e,n)=>e in t?H3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j3=(t,e)=>{for(var n in e||(e={}))N3.call(e,n)&&Ku(t,n,e[n]);if(Qu)for(var n of Qu(e))D3.call(e,n)&&Ku(t,n,e[n]);return t},F3=(t,e)=>R3(t,L3(e));const Ju=t=>{const[{datum:e,indexes:n,width:r=200,height:i=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:h},u]=kt(t,["width","height","iconSize","badgeSize","gap"]),d=e.value,p=d!==void 0,g=!!e.desc,y=!!e.icon,m=`${c.colorPrimary}-badge`,x=l==="flipped"?r-a-s:a,_=y?l==="flipped"?a:s+2*a:a,v=r-a*2,b=y?r-s-3*a:v,P=a+14+18+8,w=P-a,$=g?a:(i-s)/2,M=!p&&!g?(i-14)/2:a;return S(W,F3(j3({},u),{width:r,height:i,children:[f(_t,{children:S("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[f("stop",{offset:"0%",stopColor:c.colorPrimary}),f("stop",{offset:"100%",stopColor:tt(c.colorPrimary).darken(20).toHexString()})]})}),f(pt,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),y&&S(yt,{children:[f(xt,{x,y:$,width:s,height:s,fill:`url(#${m})`}),f(Gt,{indexes:n,x:x+(s-o)/2,y:$+(s-o)/2,size:o,fill:c.colorWhite})]}),S(it,{flexDirection:"column",x:_,y:M,width:b,height:!p&&!g?void 0:w,alignItems:"center",justifyContent:"center",children:[f(ft,{indexes:n,width:b,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),p&&f(Wn,{indexes:n,width:b,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:d,formatter:h})]}),g&&f(Et,{indexes:n,x:a,y:P,width:v,alignHorizontal:l==="flipped"?"right":"left",fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))};Tt("badge-card",{component:Ju,composites:["icon","label","value","desc"]});var B3=Object.defineProperty,W3=Object.defineProperties,X3=Object.getOwnPropertyDescriptors,td=Object.getOwnPropertySymbols,Y3=Object.prototype.hasOwnProperty,V3=Object.prototype.propertyIsEnumerable,ed=(t,e,n)=>e in t?B3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q3=(t,e)=>{for(var n in e||(e={}))Y3.call(e,n)&&ed(t,n,e[n]);if(td)for(var n of td(e))V3.call(e,n)&&ed(t,n,e[n]);return t},G3=(t,e)=>W3(t,X3(e));const nd=t=>{const[{indexes:e,datum:n,width:r=280,height:i=140,themeColors:o},s]=kt(t,["width","height"]);return S(W,G3(q3({},s),{children:[f("rect",{x:0,y:0,width:r,height:i,rx:18,ry:18,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),f(ot,{x:r-85,y:.5,width:85,height:65,d:"M0.496704 0H61.7558C74.0725 0 84.0571 9.99394 84.0571 22.3221V60.1302L78.4401 62.9458C64.9296 68.1198 49.0492 65.0802 38.3968 53.9843L10.7444 25.1801C5.41799 19.6306 2.15489 12.855 0.935998 5.80383L0.496704 0Z",fill:o.colorBg,"data-element-type":"shape"}),f(ft,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),f(Et,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),f(Gt,{indexes:e,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))};Tt("candy-card-lite",{component:nd,composites:["icon","label","desc"]});var U3=Object.defineProperty,Z3=Object.defineProperties,Q3=Object.getOwnPropertyDescriptors,Li=Object.getOwnPropertySymbols,rd=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,od=(t,e,n)=>e in t?U3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,K3=(t,e)=>{for(var n in e||(e={}))rd.call(e,n)&&od(t,n,e[n]);if(Li)for(var n of Li(e))id.call(e,n)&&od(t,n,e[n]);return t},J3=(t,e)=>Z3(t,Q3(e)),t4=(t,e)=>{var n={};for(var r in t)rd.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Li)for(var r of Li(t))e.indexOf(r)<0&&id.call(t,r)&&(n[r]=t[r]);return n};const fa=t=>{const e=t,{color:n="black",opacity:r=.8}=e,i=t4(e,["color","opacity"]);return f("filter",J3(K3({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i),{children:f("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":n,"flood-opacity":r})}))};var e4=Object.defineProperty,n4=Object.defineProperties,r4=Object.getOwnPropertyDescriptors,sd=Object.getOwnPropertySymbols,i4=Object.prototype.hasOwnProperty,o4=Object.prototype.propertyIsEnumerable,ad=(t,e,n)=>e in t?e4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,s4=(t,e)=>{for(var n in e||(e={}))i4.call(e,n)&&ad(t,n,e[n]);if(sd)for(var n of sd(e))o4.call(e,n)&&ad(t,n,e[n]);return t},a4=(t,e)=>n4(t,r4(e));const ua=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=t;return S("linearGradient",a4(s4({id:e},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[i]),{children:[f("stop",{offset:"0%",stopColor:n}),f("stop",{offset:"100%",stopColor:r})]}))};var l4=Object.defineProperty,c4=Object.defineProperties,h4=Object.getOwnPropertyDescriptors,ld=Object.getOwnPropertySymbols,f4=Object.prototype.hasOwnProperty,u4=Object.prototype.propertyIsEnumerable,cd=(t,e,n)=>e in t?l4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ur=(t,e)=>{for(var n in e||(e={}))f4.call(e,n)&&cd(t,n,e[n]);if(ld)for(var n of ld(e))u4.call(e,n)&&cd(t,n,e[n]);return t},dr=(t,e)=>c4(t,h4(e));const hd=t=>{const[{datum:e,indexes:n,width:r=300,height:i=80,gap:o=12,positionH:s="normal",iconPadding:a=i/10,themeColors:l},c]=kt(t,["width","height","gap","iconPadding"]),h=i/2,u=i-a*2,d=s==="flipped",p=!!e.icon,g=p?r-i-o:r-o*2,y=p?d?o:i:o,m=p?d?"right":"left":"center",x={indexes:n,width:g,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},_=Z(f(ft,dr(ur({},x),{children:e.label}))),v={indexes:n,width:g,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},b=Z(e.desc?f(Et,dr(ur({},v),{children:e.desc})):null),P=4,w=_.height+P+b.height,M=(i-w)/2,A=M+_.height+P,I=d?r-i+a:a,C=a;return S(W,dr(ur({},c),{children:[f(_t,{children:f(fa,{})}),f(pt,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:h,ry:h,"data-element-type":"shape"}),e.icon&&S(yt,{children:[f(xt,{x:I,y:C,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),f(Ve,{indexes:n,x:I,y:C,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&f(ft,dr(ur({x:y,y:M},x),{children:e.label})),e.desc&&f(Et,dr(ur({x:y,y:A},v),{children:e.desc}))]}))};Tt("capsule-item",{component:hd,composites:["icon","label","desc"]});var d4=Object.defineProperty,p4=Object.defineProperties,g4=Object.getOwnPropertyDescriptors,fd=Object.getOwnPropertySymbols,m4=Object.prototype.hasOwnProperty,y4=Object.prototype.propertyIsEnumerable,ud=(t,e,n)=>e in t?d4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,da=(t,e)=>{for(var n in e||(e={}))m4.call(e,n)&&ud(t,n,e[n]);if(fd)for(var n of fd(e))y4.call(e,n)&&ud(t,n,e[n]);return t},pa=(t,e)=>p4(t,g4(e));const dd=t=>{const[{indexes:e,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=kt(t,["width","height"]),l=Math.min(o,s),c=l*.7,h=(l-c)/2,u=c*Math.sqrt(2)/2,d=(l-u)/2,p=tt(r.colorPrimary),g=Ni(p,80,.2),y=Ni(p,20,.8),m=Ni(p,75,.32),x=Ni(p,45,.4),_=p.clone().darken(5).toRgbString(),v=`${r.colorPrimary}-${i}-outer`,b=`${r.colorPrimary}-${i}-inner`,P=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return S(W,pa(da({},a),{children:[S(_t,{children:[S("linearGradient",pa(da({id:v},P),{children:[f("stop",{offset:"0%",stopColor:g}),f("stop",{offset:"100%",stopColor:y})]})),S("linearGradient",pa(da({id:b},P),{children:[f("stop",{offset:"0%",stopColor:m}),f("stop",{offset:"100%",stopColor:x})]}))]}),f(xt,{width:l,height:l,fill:`url(#${v})`,"data-element-type":"shape"}),f(xt,{x:h,y:h,width:c,height:c,fill:`url(#${b})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),f(ft,{indexes:e,x:d,y:d,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:_,fontWeight:"500",children:n.label})]}))};Tt("circle-node",{component:dd,composites:["label"]});function Ni(t,e,n){return tt.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}var _4=Object.defineProperty,x4=Object.defineProperties,v4=Object.getOwnPropertyDescriptors,pd=Object.getOwnPropertySymbols,b4=Object.prototype.hasOwnProperty,w4=Object.prototype.propertyIsEnumerable,gd=(t,e,n)=>e in t?_4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,md=(t,e)=>{for(var n in e||(e={}))b4.call(e,n)&&gd(t,n,e[n]);if(pd)for(var n of pd(e))w4.call(e,n)&&gd(t,n,e[n]);return t},yd=(t,e)=>x4(t,v4(e));const _d=t=>{var e;const[{datum:n,indexes:r,size:i=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=b=>`${Math.round(b)}%`},c]=kt(t,["size","strokeWidth","gap"]),h=(e=n.value)!=null?e:0,d=Math.min(Math.max(h/100,0),1),p=(i-o)/2,g=i/2,y=o/2,m=i-o,x=d*360,_=$4(g,g,p,0,x),v={x:y,y,width:m,height:m};return S(W,yd(md({},c),{width:i,height:i+s+20,children:[f(pt,{width:i,height:i,fill:"none"}),f(xt,yd(md({},v),{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),f(ot,{d:_,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),f(Wn,{indexes:r,x:o,y:o,width:m-o,height:m-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:h,formatter:l}),f(ft,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))};function $4(t,e,n,r,i){const o=xd(t,e,n,i),s=xd(t,e,n,r),a=i-r<=180?"0":"1";return`M ${o.x} ${o.y} A ${n} ${n} 0 ${a} 0 ${s.x} ${s.y}`}function xd(t,e,n,r){const i=(r-90)*Math.PI/180;return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}Tt("circular-progress",{component:_d,composites:["label","value"]});var P4=Object.defineProperty,M4=Object.defineProperties,O4=Object.getOwnPropertyDescriptors,vd=Object.getOwnPropertySymbols,C4=Object.prototype.hasOwnProperty,S4=Object.prototype.propertyIsEnumerable,bd=(t,e,n)=>e in t?P4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I4=(t,e)=>{for(var n in e||(e={}))C4.call(e,n)&&bd(t,n,e[n]);if(vd)for(var n of vd(e))S4.call(e,n)&&bd(t,n,e[n]);return t},A4=(t,e)=>M4(t,O4(e));const wd=t=>{const[{datum:e,indexes:n,width:r=200,height:i=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},h]=kt(t,["width","height","iconSize","gap"]),u=e.value,d=u!=null,p="compact-shadow",g=a==="flipped"?r-s-o:s,y=a==="flipped"?s:o+2*s,m=r-o-3*s,x=d?m*.8:m,_=d?m*.2:0;return S(W,A4(I4({},h),{children:[f(_t,{children:f("filter",{id:p,children:f("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),f(pt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${p})`,"data-element-type":"shape"}),f(pt,{x:a==="flipped"?r-3:0,y:0,width:3,height:i,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),f(Gt,{indexes:n,x:g,y:(i-o)/2,size:o,fill:l.colorPrimary}),S(it,{x:y,y:s,width:m,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[S(it,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[f(ft,{indexes:n,width:x,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),d&&f(Wn,{indexes:n,width:_,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),f(Et,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))};Tt("compact-card",{component:wd,composites:["icon","label","value","desc"]});var E4=Object.defineProperty,k4=Object.defineProperties,T4=Object.getOwnPropertyDescriptors,$d=Object.getOwnPropertySymbols,z4=Object.prototype.hasOwnProperty,H4=Object.prototype.propertyIsEnumerable,Pd=(t,e,n)=>e in t?E4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R4=(t,e)=>{for(var n in e||(e={}))z4.call(e,n)&&Pd(t,n,e[n]);if($d)for(var n of $d(e))H4.call(e,n)&&Pd(t,n,e[n]);return t},L4=(t,e)=>k4(t,T4(e));const Md=t=>{const[{datum:e,indexes:n,width:r=300,height:i=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},h]=kt(t,["width","height","iconSize","gap"]),u=r-o-s,d=l==="middle"?(i-o)/2:l==="flipped"?i-o:0;return S(W,L4(R4({},h),{children:[f(ot,{"data-element-type":"shape",x:a==="flipped"?u+s:0,y:d,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),f(ft,{indexes:n,x:a==="flipped"?0:o+s,width:u,height:i,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:e.label||e.desc})]}))};Tt("done-list",{component:Md,composites:["label"]});var N4=Object.defineProperty,D4=Object.defineProperties,j4=Object.getOwnPropertyDescriptors,Od=Object.getOwnPropertySymbols,F4=Object.prototype.hasOwnProperty,B4=Object.prototype.propertyIsEnumerable,Cd=(t,e,n)=>e in t?N4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W4=(t,e)=>{for(var n in e||(e={}))F4.call(e,n)&&Cd(t,n,e[n]);if(Od)for(var n of Od(e))B4.call(e,n)&&Cd(t,n,e[n]);return t},X4=(t,e)=>D4(t,j4(e));const Sd=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=kt(t,["width"]),a=o!=="flipped",l=o==="normal"?"bottom":"top",c=f(ft,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=f(Et,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=f(Ve,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),d=f(V4,{width:8,height:30,fill:i.colorPrimary,positionV:o}),p=5,g=25,y=30,m=Z(c),x=Z(h),_=Z(u),v=Z(d),b=m.height+x.height+p+v.height-_.height-g,P=_.height+g+y+v.height+p+m.height+x.height;return f(W,X4(W4({width:r,height:P},s),{children:S(it,{flexDirection:"column",alignItems:"center",children:[a?S(yt,{children:[h,c,f(Ht,{height:p}),d]}):S(yt,{children:[f(Ht,{height:b}),u,f(Ht,{height:g})]}),S(hn,{horizontal:"center",vertical:"middle",children:[f(Y4,{width:r,height:y,fill:i.colorPrimary}),f(zt,{width:r,height:y,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?S(yt,{children:[f(Ht,{height:g}),u]}):S(yt,{children:[d,f(Ht,{height:p}),c,h]})]})}))},Y4=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return f(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})},V4=t=>{const{x:e=0,y:n=0,width:r=10,height:i=50,fill:o,positionV:s="top"}=t,a=r/2,l=i-a,c=2,h=a;return S(Dt,{x:e,y:n,width:r,height:i,children:[f(xt,{width:r,height:r,fill:o,y:s==="top"?0:l-a}),f(ot,{d:s==="top"?`M${h},${a} L${h},${a+l}`:`M${h},0 L${h},${l-a}`,strokeWidth:c,stroke:o})]})};Tt("horizontal-icon-arrow",{component:Sd,composites:["icon","label","desc","time"]});var q4=Object.defineProperty,G4=Object.defineProperties,U4=Object.getOwnPropertyDescriptors,Id=Object.getOwnPropertySymbols,Z4=Object.prototype.hasOwnProperty,Q4=Object.prototype.propertyIsEnumerable,Ad=(t,e,n)=>e in t?q4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ed=(t,e)=>{for(var n in e||(e={}))Z4.call(e,n)&&Ad(t,n,e[n]);if(Id)for(var n of Id(e))Q4.call(e,n)&&Ad(t,n,e[n]);return t},kd=(t,e)=>G4(t,U4(e));const Td=t=>{const[{indexes:e,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=kt(t,["width"]),l=o==="normal"?"left":o==="flipped"?"right":"center",c=f(ft,{indexes:e,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),h=Z(c),u=n.desc?f(Et,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:s==="flipped"?"top":"bottom",children:n.desc}):null,d=Z(u),g=n.icon?f(Ve,{size:45,indexes:e,colorBg:i.colorBg,fill:i.colorPrimary}):null,y=Z(g),m=n.time?f(zt,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,x=Z(m),_=18,v=S(hn,{horizontal:"center",width:r,height:_,children:[f(pt,{width:r,height:_,fill:i.colorPrimary,"data-element-type":"shape"}),f(xt,{y:-3,width:_+6,height:_+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),f(xt,{y:(_-12)/2,width:12,height:12,fill:"white","data-element-type":"shape"})]}),b=h.height+d.height,P=y.height+x.height+5,w=Math.abs(P-b),$=P>b?w:0,M=b>P?w:0;return s==="flipped"?S(it,kd(Ed({},a),{flexDirection:"column",alignItems:"center",children:[f(Ht,{height:M}),m,g,f(Ht,{height:5}),v,c,u,f(Ht,{height:$})]})):S(it,kd(Ed({},a),{flexDirection:"column",alignItems:"center",children:[f(Ht,{height:$}),c,u,v,f(Ht,{height:5}),g,m,f(Ht,{height:M})]}))};Tt("horizontal-icon-line",{component:Td,composites:["icon","label","desc"]});var K4=Object.defineProperty,J4=Object.defineProperties,t6=Object.getOwnPropertyDescriptors,zd=Object.getOwnPropertySymbols,e6=Object.prototype.hasOwnProperty,n6=Object.prototype.propertyIsEnumerable,Hd=(t,e,n)=>e in t?K4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,r6=(t,e)=>{for(var n in e||(e={}))e6.call(e,n)&&Hd(t,n,e[n]);if(zd)for(var n of zd(e))n6.call(e,n)&&Hd(t,n,e[n]);return t},i6=(t,e)=>J4(t,t6(e));const Rd=t=>{var e;const[{datum:n,indexes:r,size:i=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:h=105},u]=kt(t,["size","iconSize","badgeSize","gap"]),d=(e=n.value)!=null?e:0,p=`${l.colorPrimary}-icon`,g="#ff6b6b-badge";return S(W,i6(r6({},u),{width:c,height:h,children:[S(_t,{children:[S("radialGradient",{id:p,cx:"50%",cy:"30%",r:"70%",children:[f("stop",{offset:"0%",stopColor:tt(l.colorPrimary).lighten(30).toHexString()}),f("stop",{offset:"100%",stopColor:l.colorPrimary})]}),S("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"#ff6b6b"}),f("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),f(xt,{x:0,y:0,width:i,height:i,fill:`url(#${p})`,"data-element-type":"shape"}),f(Gt,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),f(xt,{x:i-s+4,y:0,width:s,height:s,fill:`url(#${g})`}),f(zt,{x:i-s/2+4,y:s/2,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:d>99?"99+":Math.round(d)}),f(ft,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))};Tt("icon-badge",{component:Rd,composites:["icon","label"]});var o6=Object.defineProperty,s6=Object.defineProperties,a6=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,l6=Object.prototype.hasOwnProperty,c6=Object.prototype.propertyIsEnumerable,Nd=(t,e,n)=>e in t?o6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,h6=(t,e)=>{for(var n in e||(e={}))l6.call(e,n)&&Nd(t,n,e[n]);if(Ld)for(var n of Ld(e))c6.call(e,n)&&Nd(t,n,e[n]);return t},f6=(t,e)=>s6(t,a6(e));const Dd=t=>{const[{datum:e,indexes:n,width:r=200,borderRadius:i=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:h},u]=kt(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),d=n[0]+1,p=String(d).padStart(2,"0"),g=e.label!==void 0,y=e.desc!==void 0,m=tt.mix(h.colorPrimary,h.colorWhite,40).toHexString(),x=h.colorBgElevated||h.colorWhite,_=r-2*o,v=Z(f(zt,{fontSize:a,fontWeight:"bold",children:p})),b=_-v.width-c,P=g?Z(f(ft,{indexes:n,width:b,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{height:0},w=y?Z(f(Et,{indexes:n,width:_,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{height:0},$=Math.max(v.height,P.height),M=o*2+$+(g||y?c:0)+s+(y?c:0)+w.height;return S(W,f6(h6({},u),{width:r,height:M,children:[f(pt,{x:0,y:0,width:r,height:M,rx:i,ry:i,fill:x,stroke:tt(x).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),S(W,{x:o,y:o,children:[S(W,{x:0,y:0,children:[f(zt,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:h.colorPrimary,alignVertical:"top",children:p}),g&&f(ft,{indexes:n,x:a+c,y:0,width:b,fontSize:l,fontWeight:"bold",fill:h.colorTextSecondary,alignVertical:"top",children:e.label})]}),f(pt,{x:0,y:$+c,width:_,height:s,fill:m,"data-element-type":"shape"}),y&&f(Et,{indexes:n,x:0,y:$+c+s+c,width:_,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:h.colorTextSecondary,children:e.desc})]})]}))};Tt("indexed-card",{component:Dd,composites:["label","desc"]});var u6=Object.defineProperty,d6=Object.defineProperties,p6=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,g6=Object.prototype.hasOwnProperty,m6=Object.prototype.propertyIsEnumerable,Fd=(t,e,n)=>e in t?u6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,y6=(t,e)=>{for(var n in e||(e={}))g6.call(e,n)&&Fd(t,n,e[n]);if(jd)for(var n of jd(e))m6.call(e,n)&&Fd(t,n,e[n]);return t},_6=(t,e)=>d6(t,p6(e));const Bd=t=>{const[{indexes:e,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=kt(t,["width","iconSize"]),{label:a,desc:l}=n,c=8,h=16,u=12,d=h+u,p=r-d,g=60,y=i+44,m=h,x=g+u,_=g+h+u,v=[{x:0,y:_},{x:m,y:x},{x:m,y:_}],b=r-m-u,P=m+u,w=P+b,$=x+c/2,M=$+y,A=`M ${P} ${M} L ${P} ${$} L ${w} ${$}`,I=c/2,C=P+I,k=$+I,E=8;return S(W,_6(y6({},s),{children:[f(Et,{indexes:e,x:d,width:p,height:g,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),f(be,{points:v,fill:o.colorPrimary,opacity:.9,width:h,height:h,"data-element-type":"shape"}),f(ot,{d:A,stroke:o.colorPrimary,strokeWidth:c,fill:"none","data-element-type":"shape"}),f(Gt,{indexes:e,x:C+b/2-i/2,y:k+E,size:i,fill:o.colorPrimary}),f(ft,{indexes:e,x:C,y:k+i+E*2,width:b,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))};Tt("l-corner-card",{component:Bd,composites:["icon","label","desc"]});var x6=Object.defineProperty,v6=Object.defineProperties,b6=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,w6=Object.prototype.hasOwnProperty,$6=Object.prototype.propertyIsEnumerable,Xd=(t,e,n)=>e in t?x6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,P6=(t,e)=>{for(var n in e||(e={}))w6.call(e,n)&&Xd(t,n,e[n]);if(Wd)for(var n of Wd(e))$6.call(e,n)&&Xd(t,n,e[n]);return t},M6=(t,e)=>v6(t,b6(e));const Yd=t=>{var e,n;const[{datum:r,indexes:i,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:h},u]=kt(t,["width","height","showStripe","showGradient","showBottomShade"]),d=(e=r.label)==null?void 0:e[0].toUpperCase(),p=(n=r.label)==null?void 0:n.toUpperCase(),g=h.colorPrimary,y=tt(g),m=4,x=6,_=45,v=40,b=12,w=y.clone().darken(4).toHexString(),$=y.clone().lighten(b).toHexString(),M="rgba(255, 255, 255, 0)",A="rgba(0, 0, 0, 0.03)",I=`letter-card-${i.join("-")}`,C=`${I}-gradient`,k=`${I}-pattern`,E=`${I}-shade`,L=m+x,F=1,z=96,j=z*F,R=16,H=R*F,D=s/16,B=j+D+H,T=(s-B)/2,O=T+j+D;return S(W,M6(P6({},u),{width:o,height:s,children:[S(_t,{children:[l&&S("linearGradient",{id:C,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:w}),f("stop",{offset:"100%",stopColor:$})]}),a&&S("pattern",{id:k,patternUnits:"userSpaceOnUse",width:L,height:L,patternTransform:`rotate(${_})`,children:[f("rect",{x:"0",y:"0",width:L,height:L,fill:M}),f("rect",{x:"0",y:"0",width:m,height:L,fill:A})]}),c&&S("linearGradient",{id:E,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),f("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),f(pt,{x:0,y:0,width:o,height:s,fill:l?`url(#${C})`:g,rx:0,ry:0,"data-element-type":"shape"}),a&&f(pt,{x:0,y:0,width:o,height:s,fill:`url(#${k})`,rx:0,ry:0}),c&&f(pt,{x:0,y:s-v,width:o,height:v,fill:`url(#${E})`,rx:0,ry:0}),d&&f(ft,{indexes:i,x:0,y:T,width:o,fontSize:z,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:d}),f(ft,{indexes:i,x:0,y:O,width:o,fontSize:R,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:p})]}))};Tt("letter-card",{component:Yd,composites:["label"]});var O6=Object.defineProperty,C6=Object.defineProperties,S6=Object.getOwnPropertyDescriptors,Vd=Object.getOwnPropertySymbols,I6=Object.prototype.hasOwnProperty,A6=Object.prototype.propertyIsEnumerable,qd=(t,e,n)=>e in t?O6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,E6=(t,e)=>{for(var n in e||(e={}))I6.call(e,n)&&qd(t,n,e[n]);if(Vd)for(var n of Vd(e))A6.call(e,n)&&qd(t,n,e[n]);return t},k6=(t,e)=>C6(t,S6(e));const Gd=t=>{const[{datum:e,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=kt(t,["width","pillWidth","pillHeight","gap"]),h=!!e.desc,u=h?r:i,d=h?a==="center"?(u-i)/2:a==="flipped"?u-i:0:0,p=0,g=0,y=o+s,m=u,x=`drop-shadow-${l.colorPrimary}`,_="linear-gradient-white-top-bottom";return S(W,k6(E6({},c),{children:[S(_t,{children:[f(fa,{id:x,color:l.colorPrimary}),f(ua,{id:_,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),f(pt,{x:d,y:p,width:i,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${x})`,"data-element-type":"shape"}),f(pt,{x:d,y:p,width:i,height:o,fill:`url(#${_})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),f(ft,{indexes:n,x:d,y:p,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&f(Et,{indexes:n,x:g,y,width:m,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))};Tt("pill-badge",{component:Gd,composites:["label","desc"]});var T6=Object.defineProperty,z6=Object.defineProperties,H6=Object.getOwnPropertyDescriptors,Ud=Object.getOwnPropertySymbols,R6=Object.prototype.hasOwnProperty,L6=Object.prototype.propertyIsEnumerable,Zd=(t,e,n)=>e in t?T6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N6=(t,e)=>{for(var n in e||(e={}))R6.call(e,n)&&Zd(t,n,e[n]);if(Ud)for(var n of Ud(e))L6.call(e,n)&&Zd(t,n,e[n]);return t},D6=(t,e)=>z6(t,H6(e));const Qd=t=>{const[{indexes:e,datum:n,width:r=120,themeColors:i,positionH:o="normal",formatter:s=c=>c||"",usePaletteColor:a=!1},l]=kt(t,["width","formatter","usePaletteColor"]);return f(ft,D6(N6({},l),{indexes:e,width:r,fill:a?i.colorPrimary:i.colorText,fontSize:14,fontWeight:"regular",alignHorizontal:o==="flipped"?"right":o==="center"?"center":"left",alignVertical:"middle",children:s(n.label||n.desc)}))};Tt("plain-text",{component:Qd,composites:["label"]});function Di(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function j6(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Kd(t){let e,n,r;t.length!==2?(e=Di,n=(a,l)=>Di(t(a),l),r=(a,l)=>t(a)-l):(e=t===Di||t===j6?t:F6,n=t,r=t);function i(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<0?c=u+1:h=u}while(c<h)}return c}function o(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<=0?c=u+1:h=u}while(c<h)}return c}function s(a,l,c=0,h=a.length){const u=i(a,l,c,h-1);return u>c&&r(a[u-1],l)>-r(a[u],l)?u-1:u}return{left:i,center:s,right:o}}function F6(){return 0}function B6(t){return t===null?NaN:+t}const W6=Kd(Di).right;Kd(B6).center;const X6=Math.sqrt(50),Y6=Math.sqrt(10),V6=Math.sqrt(2);function ji(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=X6?10:o>=Y6?5:o>=V6?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?ji(t,e,n*2):[a,l,c]}function q6(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,s]=r?ji(e,t,n):ji(t,e,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function ga(t,e,n){return e=+e,t=+t,n=+n,ji(t,e,n)[2]}function G6(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?ga(e,t,n):ga(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}var U6={value:()=>{}};function ma(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Fi(n)}function Fi(t){this._=t}function Z6(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Fi.prototype=ma.prototype={constructor:Fi,on:function(t,e){var n=this._,r=Z6(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=Q6(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=Jd(n[i],t.name,e);else if(e==null)for(i in n)n[i]=Jd(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Fi(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function Q6(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function Jd(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=U6,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ya="http://www.w3.org/1999/xhtml";const t0={svg:"http://www.w3.org/2000/svg",xhtml:ya,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bi(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),t0.hasOwnProperty(e)?{space:t0[e],local:t}:t}function K6(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ya&&e.documentElement.namespaceURI===ya?e.createElement(t):e.createElementNS(n,t)}}function J6(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function e0(t){var e=Bi(t);return(e.local?J6:K6)(e)}function t8(){}function _a(t){return t==null?t8:function(){return this.querySelector(t)}}function e8(t){typeof t!="function"&&(t=_a(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,c,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new me(r,this._parents)}function n8(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function r8(){return[]}function n0(t){return t==null?r8:function(){return this.querySelectorAll(t)}}function i8(t){return function(){return n8(t.apply(this,arguments))}}function o8(t){typeof t=="function"?t=i8(t):t=n0(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),i.push(l));return new me(r,i)}function r0(t){return function(){return this.matches(t)}}function i0(t){return function(e){return e.matches(t)}}var s8=Array.prototype.find;function a8(t){return function(){return s8.call(this.children,t)}}function l8(){return this.firstElementChild}function c8(t){return this.select(t==null?l8:a8(typeof t=="function"?t:i0(t)))}var h8=Array.prototype.filter;function f8(){return Array.from(this.children)}function u8(t){return function(){return h8.call(this.children,t)}}function d8(t){return this.selectAll(t==null?f8:u8(typeof t=="function"?t:i0(t)))}function p8(t){typeof t!="function"&&(t=r0(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new me(r,this._parents)}function o0(t){return new Array(t.length)}function g8(){return new me(this._enter||this._groups.map(o0),this._parents)}function Wi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Wi.prototype={constructor:Wi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function m8(t){return function(){return t}}function y8(t,e,n,r,i,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Wi(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function _8(t,e,n,r,i,o,s){var a,l,c=new Map,h=e.length,u=o.length,d=new Array(h),p;for(a=0;a<h;++a)(l=e[a])&&(d[a]=p=s.call(l,l.__data__,a,e)+"",c.has(p)?i[a]=l:c.set(p,l));for(a=0;a<u;++a)p=s.call(t,o[a],a,o)+"",(l=c.get(p))?(r[a]=l,l.__data__=o[a],c.delete(p)):n[a]=new Wi(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(d[a])===l&&(i[a]=l)}function x8(t){return t.__data__}function v8(t,e){if(!arguments.length)return Array.from(this,x8);var n=e?_8:y8,r=this._parents,i=this._groups;typeof t!="function"&&(t=m8(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=r[c],u=i[c],d=u.length,p=b8(t.call(h,h&&h.__data__,c,r)),g=p.length,y=a[c]=new Array(g),m=s[c]=new Array(g),x=l[c]=new Array(d);n(h,u,y,m,x,p,e);for(var _=0,v=0,b,P;_<g;++_)if(b=y[_]){for(_>=v&&(v=_+1);!(P=m[v])&&++v<g;);b._next=P||null}}return s=new me(s,r),s._enter=a,s._exit=l,s}function b8(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function w8(){return new me(this._exit||this._groups.map(o0),this._parents)}function $8(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function P8(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],h=r[l],u=c.length,d=a[l]=new Array(u),p,g=0;g<u;++g)(p=c[g]||h[g])&&(d[g]=p);for(;l<i;++l)a[l]=n[l];return new me(a,this._parents)}function M8(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function O8(t){t||(t=C8);function e(u,d){return u&&d?t(u.__data__,d.__data__):!u-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new me(i,this._parents).order()}function C8(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function S8(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function I8(){return Array.from(this)}function A8(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function E8(){let t=0;for(const e of this)++t;return t}function k8(){return!this.node()}function T8(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function z8(t){return function(){this.removeAttribute(t)}}function H8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function R8(t,e){return function(){this.setAttribute(t,e)}}function L8(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function N8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function D8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function j8(t,e){var n=Bi(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?H8:z8:typeof e=="function"?n.local?D8:N8:n.local?L8:R8)(n,e))}function s0(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function F8(t){return function(){this.style.removeProperty(t)}}function B8(t,e,n){return function(){this.style.setProperty(t,e,n)}}function W8(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function X8(t,e,n){return arguments.length>1?this.each((e==null?F8:typeof e=="function"?W8:B8)(t,e,n==null?"":n)):On(this.node(),t)}function On(t,e){return t.style.getPropertyValue(e)||s0(t).getComputedStyle(t,null).getPropertyValue(e)}function Y8(t){return function(){delete this[t]}}function V8(t,e){return function(){this[t]=e}}function q8(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function G8(t,e){return arguments.length>1?this.each((e==null?Y8:typeof e=="function"?q8:V8)(t,e)):this.node()[t]}function a0(t){return t.trim().split(/^|\s+/)}function xa(t){return t.classList||new l0(t)}function l0(t){this._node=t,this._names=a0(t.getAttribute("class")||"")}l0.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function c0(t,e){for(var n=xa(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function h0(t,e){for(var n=xa(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function U8(t){return function(){c0(this,t)}}function Z8(t){return function(){h0(this,t)}}function Q8(t,e){return function(){(e.apply(this,arguments)?c0:h0)(this,t)}}function K8(t,e){var n=a0(t+"");if(arguments.length<2){for(var r=xa(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Q8:e?U8:Z8)(n,e))}function J8(){this.textContent=""}function t9(t){return function(){this.textContent=t}}function e9(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function n9(t){return arguments.length?this.each(t==null?J8:(typeof t=="function"?e9:t9)(t)):this.node().textContent}function r9(){this.innerHTML=""}function i9(t){return function(){this.innerHTML=t}}function o9(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function s9(t){return arguments.length?this.each(t==null?r9:(typeof t=="function"?o9:i9)(t)):this.node().innerHTML}function a9(){this.nextSibling&&this.parentNode.appendChild(this)}function l9(){return this.each(a9)}function c9(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function h9(){return this.each(c9)}function f9(t){var e=typeof t=="function"?t:e0(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function u9(){return null}function d9(t,e){var n=typeof t=="function"?t:e0(t),r=e==null?u9:typeof e=="function"?e:_a(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function p9(){var t=this.parentNode;t&&t.removeChild(this)}function g9(){return this.each(p9)}function m9(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function y9(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _9(t){return this.select(t?y9:m9)}function x9(t){return arguments.length?this.property("__data__",t):this.node().__data__}function v9(t){return function(e){t.call(this,e,this.__data__)}}function b9(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function w9(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function $9(t,e,n){return function(){var r=this.__on,i,o=v9(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function P9(t,e,n){var r=b9(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(i=0,h=a[l];i<o;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?$9:w9,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function f0(t,e,n){var r=s0(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function M9(t,e){return function(){return f0(this,t,e)}}function O9(t,e){return function(){return f0(this,t,e.apply(this,arguments))}}function C9(t,e){return this.each((typeof e=="function"?O9:M9)(t,e))}function*S9(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var I9=[null];function me(t,e){this._groups=t,this._parents=e}function pr(){return new me([[document.documentElement]],I9)}function A9(){return this}me.prototype=pr.prototype={constructor:me,select:e8,selectAll:o8,selectChild:c8,selectChildren:d8,filter:p8,data:v8,enter:g8,exit:w8,join:$8,merge:P8,selection:A9,order:M8,sort:O8,call:S8,nodes:I8,node:A8,size:E8,empty:k8,each:T8,attr:j8,style:X8,property:G8,classed:K8,text:n9,html:s9,raise:l9,lower:h9,append:f9,insert:d9,remove:g9,clone:_9,datum:x9,on:P9,dispatch:C9,[Symbol.iterator]:S9};function va(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function u0(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function gr(){}var mr=.7,Xi=1/mr,Cn="\\s*([+-]?\\d+)\\s*",yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$e="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",E9=/^#([0-9a-f]{3,8})$/,k9=new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`),T9=new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`),z9=new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${yr}\\)$`),H9=new RegExp(`^rgba\\(${$e},${$e},${$e},${yr}\\)$`),R9=new RegExp(`^hsl\\(${yr},${$e},${$e}\\)$`),L9=new RegExp(`^hsla\\(${yr},${$e},${$e},${yr}\\)$`),d0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};va(gr,tn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:p0,formatHex:p0,formatHex8:N9,formatHsl:D9,formatRgb:g0,toString:g0});function p0(){return this.rgb().formatHex()}function N9(){return this.rgb().formatHex8()}function D9(){return v0(this).formatHsl()}function g0(){return this.rgb().formatRgb()}function tn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=E9.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?m0(e):n===3?new ne(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Yi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Yi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=k9.exec(t))?new ne(e[1],e[2],e[3],1):(e=T9.exec(t))?new ne(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=z9.exec(t))?Yi(e[1],e[2],e[3],e[4]):(e=H9.exec(t))?Yi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=R9.exec(t))?x0(e[1],e[2]/100,e[3]/100,1):(e=L9.exec(t))?x0(e[1],e[2]/100,e[3]/100,e[4]):d0.hasOwnProperty(t)?m0(d0[t]):t==="transparent"?new ne(NaN,NaN,NaN,0):null}function m0(t){return new ne(t>>16&255,t>>8&255,t&255,1)}function Yi(t,e,n,r){return r<=0&&(t=e=n=NaN),new ne(t,e,n,r)}function j9(t){return t instanceof gr||(t=tn(t)),t?(t=t.rgb(),new ne(t.r,t.g,t.b,t.opacity)):new ne}function ba(t,e,n,r){return arguments.length===1?j9(t):new ne(t,e,n,r==null?1:r)}function ne(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}va(ne,ba,u0(gr,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?mr:Math.pow(mr,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ne(en(this.r),en(this.g),en(this.b),Vi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:y0,formatHex:y0,formatHex8:F9,formatRgb:_0,toString:_0}));function y0(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}`}function F9(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}${nn((isNaN(this.opacity)?1:this.opacity)*255)}`}function _0(){const t=Vi(this.opacity);return`${t===1?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${t===1?")":`, ${t})`}`}function Vi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function en(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function nn(t){return t=en(t),(t<16?"0":"")+t.toString(16)}function x0(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ye(t,e,n,r)}function v0(t){if(t instanceof ye)return new ye(t.h,t.s,t.l,t.opacity);if(t instanceof gr||(t=tn(t)),!t)return new ye;if(t instanceof ye)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new ye(s,a,l,t.opacity)}function B9(t,e,n,r){return arguments.length===1?v0(t):new ye(t,e,n,r==null?1:r)}function ye(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}va(ye,B9,u0(gr,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new ye(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?mr:Math.pow(mr,t),new ye(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ne(wa(t>=240?t-240:t+120,i,r),wa(t,i,r),wa(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new ye(b0(this.h),qi(this.s),qi(this.l),Vi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Vi(this.opacity);return`${t===1?"hsl(":"hsla("}${b0(this.h)}, ${qi(this.s)*100}%, ${qi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function b0(t){return t=(t||0)%360,t<0?t+360:t}function qi(t){return Math.max(0,Math.min(1,t||0))}function wa(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const $a=t=>()=>t;function W9(t,e){return function(n){return t+n*e}}function X9(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Y9(t){return(t=+t)==1?w0:function(e,n){return n-e?X9(e,n,t):$a(isNaN(e)?n:e)}}function w0(t,e){var n=e-t;return n?W9(t,n):$a(isNaN(t)?e:t)}const Gi=(function t(e){var n=Y9(e);function r(i,o){var s=n((i=ba(i)).r,(o=ba(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=w0(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=a(h),i.b=l(h),i.opacity=c(h),i+""}}return r.gamma=t,r})(1);function V9(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function q9(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function G9(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Oa(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function U9(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function _e(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Z9(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Oa(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Pa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ma=new RegExp(Pa.source,"g");function Q9(t){return function(){return t}}function K9(t){return function(e){return t(e)+""}}function $0(t,e){var n=Pa.lastIndex=Ma.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Pa.exec(t))&&(i=Ma.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:_e(r,i)})),n=Ma.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?K9(l[0].x):Q9(e):(e=l.length,function(c){for(var h=0,u;h<e;++h)a[(u=l[h]).i]=u.x(c);return a.join("")})}function Oa(t,e){var n=typeof e,r;return e==null||n==="boolean"?$a(e):(n==="number"?_e:n==="string"?(r=tn(e))?(e=r,Gi):$0:e instanceof tn?Gi:e instanceof Date?U9:q9(e)?V9:Array.isArray(e)?G9:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Z9:_e)(t,e)}function J9(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var P0=180/Math.PI,Ca={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function M0(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*P0,skewX:Math.atan(l)*P0,scaleX:s,scaleY:a}}var Ui;function t$(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ca:M0(e.a,e.b,e.c,e.d,e.e,e.f)}function e$(t){return t==null||(Ui||(Ui=document.createElementNS("http://www.w3.org/2000/svg","g")),Ui.setAttribute("transform",t),!(t=Ui.transform.baseVal.consolidate()))?Ca:(t=t.matrix,M0(t.a,t.b,t.c,t.d,t.e,t.f))}function O0(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,h,u,d,p,g){if(c!==u||h!==d){var y=p.push("translate(",null,e,null,n);g.push({i:y-4,x:_e(c,u)},{i:y-2,x:_e(h,d)})}else(u||d)&&p.push("translate("+u+e+d+n)}function s(c,h,u,d){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),d.push({i:u.push(i(u)+"rotate(",null,r)-2,x:_e(c,h)})):h&&u.push(i(u)+"rotate("+h+r)}function a(c,h,u,d){c!==h?d.push({i:u.push(i(u)+"skewX(",null,r)-2,x:_e(c,h)}):h&&u.push(i(u)+"skewX("+h+r)}function l(c,h,u,d,p,g){if(c!==u||h!==d){var y=p.push(i(p)+"scale(",null,",",null,")");g.push({i:y-4,x:_e(c,u)},{i:y-2,x:_e(h,d)})}else(u!==1||d!==1)&&p.push(i(p)+"scale("+u+","+d+")")}return function(c,h){var u=[],d=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,d),s(c.rotate,h.rotate,u,d),a(c.skewX,h.skewX,u,d),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,d),c=h=null,function(p){for(var g=-1,y=d.length,m;++g<y;)u[(m=d[g]).i]=m.x(p);return u.join("")}}}var n$=O0(t$,"px, ","px)","deg)"),r$=O0(e$,", ",")",")"),Sn=0,_r=0,xr=0,C0=1e3,Zi,vr,Qi=0,rn=0,Ki=0,br=typeof performance=="object"&&performance.now?performance:Date,S0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Sa(){return rn||(S0(i$),rn=br.now()+Ki)}function i$(){rn=0}function Ji(){this._call=this._time=this._next=null}Ji.prototype=Ia.prototype={constructor:Ji,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Sa():+n)+(e==null?0:+e),!this._next&&vr!==this&&(vr?vr._next=this:Zi=this,vr=this),this._call=t,this._time=n,Aa()},stop:function(){this._call&&(this._call=null,this._time=1/0,Aa())}};function Ia(t,e,n){var r=new Ji;return r.restart(t,e,n),r}function o$(){Sa(),++Sn;for(var t=Zi,e;t;)(e=rn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Sn}function I0(){rn=(Qi=br.now())+Ki,Sn=_r=0;try{o$()}finally{Sn=0,a$(),rn=0}}function s$(){var t=br.now(),e=t-Qi;e>C0&&(Ki-=e,Qi=t)}function a$(){for(var t,e=Zi,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Zi=n);vr=t,Aa(r)}function Aa(t){if(!Sn){_r&&(_r=clearTimeout(_r));var e=t-rn;e>24?(t<1/0&&(_r=setTimeout(I0,t-br.now()-Ki)),xr&&(xr=clearInterval(xr))):(xr||(Qi=br.now(),xr=setInterval(s$,C0)),Sn=1,S0(I0))}}function A0(t,e,n){var r=new Ji;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var l$=ma("start","end","cancel","interrupt"),c$=[],E0=0,k0=1,Ea=2,to=3,T0=4,ka=5,eo=6;function no(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;h$(t,n,{name:e,index:r,group:i,on:l$,tween:c$,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:E0})}function Ta(t,e){var n=xe(t,e);if(n.state>E0)throw new Error("too late; already scheduled");return n}function Pe(t,e){var n=xe(t,e);if(n.state>to)throw new Error("too late; already running");return n}function xe(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function h$(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Ia(o,0,n.time);function o(c){n.state=k0,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var h,u,d,p;if(n.state!==k0)return l();for(h in r)if(p=r[h],p.name===n.name){if(p.state===to)return A0(s);p.state===T0?(p.state=eo,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[h]):+h<e&&(p.state=eo,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[h])}if(A0(function(){n.state===to&&(n.state=T0,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Ea,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ea){for(n.state=to,i=new Array(d=n.tween.length),h=0,u=-1;h<d;++h)(p=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=p);i.length=u+1}}function a(c){for(var h=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=ka,1),u=-1,d=i.length;++u<d;)i[u].call(t,h);n.state===ka&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=eo,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function f$(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>Ea&&r.state<ka,r.state=eo,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function u$(t){return this.each(function(){f$(this,t)})}function d$(t,e){var n,r;return function(){var i=Pe(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function p$(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Pe(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function g$(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=xe(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?d$:p$)(n,t,e))}function za(t,e,n){var r=t._id;return t.each(function(){var i=Pe(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return xe(i,r).value[e]}}function z0(t,e){var n;return(typeof e=="number"?_e:e instanceof tn?Gi:(n=tn(e))?(e=n,Gi):$0)(t,e)}function m$(t){return function(){this.removeAttribute(t)}}function y$(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _$(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function x$(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function v$(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function b$(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function w$(t,e){var n=Bi(t),r=n==="transform"?r$:z0;return this.attrTween(t,typeof e=="function"?(n.local?b$:v$)(n,r,za(this,"attr."+t,e)):e==null?(n.local?y$:m$)(n):(n.local?x$:_$)(n,r,e))}function $$(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function P$(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function M$(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&P$(t,o)),n}return i._value=e,i}function O$(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&$$(t,o)),n}return i._value=e,i}function C$(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Bi(t);return this.tween(n,(r.local?M$:O$)(r,e))}function S$(t,e){return function(){Ta(this,t).delay=+e.apply(this,arguments)}}function I$(t,e){return e=+e,function(){Ta(this,t).delay=e}}function A$(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?S$:I$)(e,t)):xe(this.node(),e).delay}function E$(t,e){return function(){Pe(this,t).duration=+e.apply(this,arguments)}}function k$(t,e){return e=+e,function(){Pe(this,t).duration=e}}function T$(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?E$:k$)(e,t)):xe(this.node(),e).duration}function z$(t,e){if(typeof e!="function")throw new Error;return function(){Pe(this,t).ease=e}}function H$(t){var e=this._id;return arguments.length?this.each(z$(e,t)):xe(this.node(),e).ease}function R$(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Pe(this,t).ease=n}}function L$(t){if(typeof t!="function")throw new Error;return this.each(R$(this._id,t))}function N$(t){typeof t!="function"&&(t=r0(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new ke(r,this._parents,this._name,this._id)}function D$(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=n[a],h=l.length,u=s[a]=new Array(h),d,p=0;p<h;++p)(d=l[p]||c[p])&&(u[p]=d);for(;a<r;++a)s[a]=e[a];return new ke(s,this._parents,this._name,this._id)}function j$(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function F$(t,e,n){var r,i,o=j$(e)?Ta:Pe;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function B$(t,e){var n=this._id;return arguments.length<2?xe(this.node(),n).on.on(t):this.each(F$(n,t,e))}function W$(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function X$(){return this.on("end.remove",W$(this._id))}function Y$(t){var e=this._name,n=this._id;typeof t!="function"&&(t=_a(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),h,u,d=0;d<l;++d)(h=a[d])&&(u=t.call(h,h.__data__,d,a))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u,no(c[d],e,n,d,c,xe(h,n)));return new ke(o,this._parents,e,n)}function V$(t){var e=this._name,n=this._id;typeof t!="function"&&(t=n0(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var d=t.call(h,h.__data__,u,l),p,g=xe(h,n),y=0,m=d.length;y<m;++y)(p=d[y])&&no(p,e,n,y,d,g);o.push(d),s.push(h)}return new ke(o,s,e,n)}var q$=pr.prototype.constructor;function G$(){return new q$(this._groups,this._parents)}function U$(t,e){var n,r,i;return function(){var o=On(this,t),s=(this.style.removeProperty(t),On(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function H0(t){return function(){this.style.removeProperty(t)}}function Z$(t,e,n){var r,i=n+"",o;return function(){var s=On(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function Q$(t,e,n){var r,i,o;return function(){var s=On(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),On(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function K$(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=Pe(this,t),c=l.on,h=l.value[o]==null?a||(a=H0(e)):void 0;(c!==n||i!==h)&&(r=(n=c).copy()).on(s,i=h),l.on=r}}function J$(t,e,n){var r=(t+="")=="transform"?n$:z0;return e==null?this.styleTween(t,U$(t,r)).on("end.style."+t,H0(t)):typeof e=="function"?this.styleTween(t,Q$(t,r,za(this,"style."+t,e))).each(K$(this._id,t)):this.styleTween(t,Z$(t,r,e),n).on("end.style."+t,null)}function t7(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function e7(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&t7(t,s,n)),r}return o._value=e,o}function n7(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,e7(t,e,n==null?"":n))}function r7(t){return function(){this.textContent=t}}function i7(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function o7(t){return this.tween("text",typeof t=="function"?i7(za(this,"text",t)):r7(t==null?"":t+""))}function s7(t){return function(e){this.textContent=t.call(this,e)}}function a7(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&s7(i)),e}return r._value=t,r}function l7(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,a7(t))}function c7(){for(var t=this._name,e=this._id,n=R0(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var h=xe(l,e);no(l,t,n,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ke(r,this._parents,t,n)}function h7(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=Pe(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var f7=0;function ke(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function R0(){return++f7}var Te=pr.prototype;ke.prototype={constructor:ke,select:Y$,selectAll:V$,selectChild:Te.selectChild,selectChildren:Te.selectChildren,filter:N$,merge:D$,selection:G$,transition:c7,call:Te.call,nodes:Te.nodes,node:Te.node,size:Te.size,empty:Te.empty,each:Te.each,on:B$,attr:w$,attrTween:C$,style:J$,styleTween:n7,text:o7,textTween:l7,remove:X$,tween:g$,delay:A$,duration:T$,ease:H$,easeVarying:L$,end:h7,[Symbol.iterator]:Te[Symbol.iterator]};function u7(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var d7={time:null,delay:0,duration:250,ease:u7};function p7(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function g7(t){var e,n;t instanceof ke?(e=t._id,t=t._name):(e=R0(),(n=d7).time=Sa(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&no(l,t,e,c,s,n||p7(l,e));return new ke(r,this._parents,t,e)}pr.prototype.interrupt=u$,pr.prototype.transition=g7;const Ha=Math.PI,Ra=2*Ha,on=1e-6,m7=Ra-on;function L0(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function y7(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return L0;const n=Or(10,e);return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class _7{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?L0:y7(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,s){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-e,c=i-n,h=s-e,u=a-n,d=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(d>on)if(!(Math.abs(u*l-c*h)>on)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-s,g=i-a,y=l*l+c*c,m=p*p+g*g,x=Math.sqrt(y),_=Math.sqrt(d),v=o*Math.tan((Ha-Math.acos((y+d-m)/(2*x*_)))/2),b=v/_,P=v/x;Math.abs(b-1)>on&&this._append`L${e+b*h},${n+b*u}`,this._append`A${o},${o},0,0,${+(u*p>h*g)},${this._x1=e+P*l},${this._y1=n+P*c}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=e+a,h=n+l,u=1^s,d=s?i-o:o-i;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>on||Math.abs(this._y1-h)>on)&&this._append`L${c},${h}`,r&&(d<0&&(d=d%Ra+Ra),d>m7?this._append`A${r},${r},0,1,${u},${e-a},${n-l}A${r},${r},0,1,${u},${this._x1=c},${this._y1=h}`:d>on&&this._append`A${r},${r},0,${+(d>=Ha)},${u},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function x7(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function i(){var o,s=n.length,a,l=0,c=0;for(o=0;o<s;++o)a=n[o],l+=a.x,c+=a.y;for(l=(l/s-t)*r,c=(c/s-e)*r,o=0;o<s;++o)a=n[o],a.x-=l,a.y-=c}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(t=+o,i):t},i.y=function(o){return arguments.length?(e=+o,i):e},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function v7(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return N0(this.cover(e,n),e,n,t)}function N0(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o=t._root,s={data:r},a=t._x0,l=t._y0,c=t._x1,h=t._y1,u,d,p,g,y,m,x,_;if(!o)return t._root=s,t;for(;o.length;)if((y=e>=(u=(a+c)/2))?a=u:c=u,(m=n>=(d=(l+h)/2))?l=d:h=d,i=o,!(o=o[x=m<<1|y]))return i[x]=s,t;if(p=+t._x.call(null,o.data),g=+t._y.call(null,o.data),e===p&&n===g)return s.next=o,i?i[x]=s:t._root=s,t;do i=i?i[x]=new Array(4):t._root=new Array(4),(y=e>=(u=(a+c)/2))?a=u:c=u,(m=n>=(d=(l+h)/2))?l=d:h=d;while((x=m<<1|y)===(_=(g>=d)<<1|p>=u));return i[_]=o,i[x]=s,t}function b7(t){var e,n,r=t.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,h=-1/0,u=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(s[n]=i,a[n]=o,i<l&&(l=i),i>h&&(h=i),o<c&&(c=o),o>u&&(u=o));if(l>h||c>u)return this;for(this.cover(l,c).cover(h,u),n=0;n<r;++n)N0(this,s[n],a[n],t[n]);return this}function w7(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s=i-n||1,a=this._root,l,c;n>t||t>=i||r>e||e>=o;)switch(c=(e<r)<<1|t<n,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:i=n+s,o=r+s;break;case 1:n=i-s,o=r+s;break;case 2:i=n+s,r=o-s;break;case 3:n=i-s,r=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function $7(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function P7(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Qt(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function M7(t,e,n){var r,i=this._x0,o=this._y0,s,a,l,c,h=this._x1,u=this._y1,d=[],p=this._root,g,y;for(p&&d.push(new Qt(p,i,o,h,u)),n==null?n=1/0:(i=t-n,o=e-n,h=t+n,u=e+n,n*=n);g=d.pop();)if(!(!(p=g.node)||(s=g.x0)>h||(a=g.y0)>u||(l=g.x1)<i||(c=g.y1)<o))if(p.length){var m=(s+l)/2,x=(a+c)/2;d.push(new Qt(p[3],m,x,l,c),new Qt(p[2],s,x,m,c),new Qt(p[1],m,a,l,x),new Qt(p[0],s,a,m,x)),(y=(e>=x)<<1|t>=m)&&(g=d[d.length-1],d[d.length-1]=d[d.length-1-y],d[d.length-1-y]=g)}else{var _=t-+this._x.call(null,p.data),v=e-+this._y.call(null,p.data),b=_*_+v*v;if(b<n){var P=Math.sqrt(n=b);i=t-P,o=e-P,h=t+P,u=e+P,r=p.data}}return r}function O7(t){if(isNaN(h=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var e,n=this._root,r,i,o,s=this._x0,a=this._y0,l=this._x1,c=this._y1,h,u,d,p,g,y,m,x;if(!n)return this;if(n.length)for(;;){if((g=h>=(d=(s+l)/2))?s=d:l=d,(y=u>=(p=(a+c)/2))?a=p:c=p,e=n,!(n=n[m=y<<1|g]))return this;if(!n.length)break;(e[m+1&3]||e[m+2&3]||e[m+3&3])&&(r=e,x=m)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):e?(o?e[m]=o:delete e[m],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[x]=n:this._root=n),this):(this._root=o,this)}function C7(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function S7(){return this._root}function I7(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function A7(t){var e=[],n,r=this._root,i,o,s,a,l;for(r&&e.push(new Qt(r,this._x0,this._y0,this._x1,this._y1));n=e.pop();)if(!t(r=n.node,o=n.x0,s=n.y0,a=n.x1,l=n.y1)&&r.length){var c=(o+a)/2,h=(s+l)/2;(i=r[3])&&e.push(new Qt(i,c,h,a,l)),(i=r[2])&&e.push(new Qt(i,o,h,c,l)),(i=r[1])&&e.push(new Qt(i,c,s,a,h)),(i=r[0])&&e.push(new Qt(i,o,s,c,h))}return this}function E7(t){var e=[],n=[],r;for(this._root&&e.push(new Qt(this._root,this._x0,this._y0,this._x1,this._y1));r=e.pop();){var i=r.node;if(i.length){var o,s=r.x0,a=r.y0,l=r.x1,c=r.y1,h=(s+l)/2,u=(a+c)/2;(o=i[0])&&e.push(new Qt(o,s,a,h,u)),(o=i[1])&&e.push(new Qt(o,h,a,l,u)),(o=i[2])&&e.push(new Qt(o,s,u,h,c)),(o=i[3])&&e.push(new Qt(o,h,u,l,c))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function k7(t){return t[0]}function T7(t){return arguments.length?(this._x=t,this):this._x}function z7(t){return t[1]}function H7(t){return arguments.length?(this._y=t,this):this._y}function La(t,e,n){var r=new Na(e==null?k7:e,n==null?z7:n,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function Na(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function D0(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Kt=La.prototype=Na.prototype;Kt.copy=function(){var t=new Na(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=D0(e),t;for(n=[{source:e,target:t._root=new Array(4)}];e=n.pop();)for(var i=0;i<4;++i)(r=e.source[i])&&(r.length?n.push({source:r,target:e.target[i]=new Array(4)}):e.target[i]=D0(r));return t},Kt.add=v7,Kt.addAll=b7,Kt.cover=w7,Kt.data=$7,Kt.extent=P7,Kt.find=M7,Kt.remove=O7,Kt.removeAll=C7,Kt.root=S7,Kt.size=I7,Kt.visit=A7,Kt.visitAfter=E7,Kt.x=T7,Kt.y=H7;function sn(t){return function(){return t}}function Be(t){return(t()-.5)*1e-6}function R7(t){return t.x+t.vx}function L7(t){return t.y+t.vy}function N7(t){var e,n,r,i=1,o=1;typeof t!="function"&&(t=sn(t==null?1:+t));function s(){for(var c,h=e.length,u,d,p,g,y,m,x=0;x<o;++x)for(u=La(e,R7,L7).visitAfter(a),c=0;c<h;++c)d=e[c],y=n[d.index],m=y*y,p=d.x+d.vx,g=d.y+d.vy,u.visit(_);function _(v,b,P,w,$){var M=v.data,A=v.r,I=y+A;if(M){if(M.index>d.index){var C=p-M.x-M.vx,k=g-M.y-M.vy,E=C*C+k*k;E<I*I&&(C===0&&(C=Be(r),E+=C*C),k===0&&(k=Be(r),E+=k*k),E=(I-(E=Math.sqrt(E)))/E*i,d.vx+=(C*=E)*(I=(A*=A)/(m+A)),d.vy+=(k*=E)*I,M.vx-=C*(I=1-I),M.vy-=k*I)}return}return b>p+I||w<p-I||P>g+I||$<g-I}}function a(c){if(c.data)return c.r=n[c.data.index];for(var h=c.r=0;h<4;++h)c[h]&&c[h].r>c.r&&(c.r=c[h].r)}function l(){if(e){var c,h=e.length,u;for(n=new Array(h),c=0;c<h;++c)u=e[c],n[u.index]=+t(u,c,e)}}return s.initialize=function(c,h){e=c,r=h,l()},s.iterations=function(c){return arguments.length?(o=+c,s):o},s.strength=function(c){return arguments.length?(i=+c,s):i},s.radius=function(c){return arguments.length?(t=typeof c=="function"?c:sn(+c),l(),s):t},s}function D7(t){return t.index}function j0(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function j7(t){var e=D7,n=u,r,i=sn(30),o,s,a,l,c,h=1;t==null&&(t=[]);function u(m){return 1/Math.min(a[m.source.index],a[m.target.index])}function d(m){for(var x=0,_=t.length;x<h;++x)for(var v=0,b,P,w,$,M,A,I;v<_;++v)b=t[v],P=b.source,w=b.target,$=w.x+w.vx-P.x-P.vx||Be(c),M=w.y+w.vy-P.y-P.vy||Be(c),A=Math.sqrt($*$+M*M),A=(A-o[v])/A*m*r[v],$*=A,M*=A,w.vx-=$*(I=l[v]),w.vy-=M*I,P.vx+=$*(I=1-I),P.vy+=M*I}function p(){if(s){var m,x=s.length,_=t.length,v=new Map(s.map((P,w)=>[e(P,w,s),P])),b;for(m=0,a=new Array(x);m<_;++m)b=t[m],b.index=m,typeof b.source!="object"&&(b.source=j0(v,b.source)),typeof b.target!="object"&&(b.target=j0(v,b.target)),a[b.source.index]=(a[b.source.index]||0)+1,a[b.target.index]=(a[b.target.index]||0)+1;for(m=0,l=new Array(_);m<_;++m)b=t[m],l[m]=a[b.source.index]/(a[b.source.index]+a[b.target.index]);r=new Array(_),g(),o=new Array(_),y()}}function g(){if(s)for(var m=0,x=t.length;m<x;++m)r[m]=+n(t[m],m,t)}function y(){if(s)for(var m=0,x=t.length;m<x;++m)o[m]=+i(t[m],m,t)}return d.initialize=function(m,x){s=m,c=x,p()},d.links=function(m){return arguments.length?(t=m,p(),d):t},d.id=function(m){return arguments.length?(e=m,d):e},d.iterations=function(m){return arguments.length?(h=+m,d):h},d.strength=function(m){return arguments.length?(n=typeof m=="function"?m:sn(+m),g(),d):n},d.distance=function(m){return arguments.length?(i=typeof m=="function"?m:sn(+m),y(),d):i},d}const F7=1664525,B7=1013904223,F0=4294967296;function W7(){let t=1;return()=>(t=(F7*t+B7)%F0)/F0}function X7(t){return t.x}function Y7(t){return t.y}var V7=10,q7=Math.PI*(3-Math.sqrt(5));function G7(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=Ia(u),c=ma("tick","end"),h=W7();t==null&&(t=[]);function u(){d(),c.call("tick",e),n<r&&(l.stop(),c.call("end",e))}function d(y){var m,x=t.length,_;y===void 0&&(y=1);for(var v=0;v<y;++v)for(n+=(o-n)*i,a.forEach(function(b){b(n)}),m=0;m<x;++m)_=t[m],_.fx==null?_.x+=_.vx*=s:(_.x=_.fx,_.vx=0),_.fy==null?_.y+=_.vy*=s:(_.y=_.fy,_.vy=0);return e}function p(){for(var y=0,m=t.length,x;y<m;++y){if(x=t[y],x.index=y,x.fx!=null&&(x.x=x.fx),x.fy!=null&&(x.y=x.fy),isNaN(x.x)||isNaN(x.y)){var _=V7*Math.sqrt(.5+y),v=y*q7;x.x=_*Math.cos(v),x.y=_*Math.sin(v)}(isNaN(x.vx)||isNaN(x.vy))&&(x.vx=x.vy=0)}}function g(y){return y.initialize&&y.initialize(t,h),y}return p(),e={tick:d,restart:function(){return l.restart(u),e},stop:function(){return l.stop(),e},nodes:function(y){return arguments.length?(t=y,p(),a.forEach(g),e):t},alpha:function(y){return arguments.length?(n=+y,e):n},alphaMin:function(y){return arguments.length?(r=+y,e):r},alphaDecay:function(y){return arguments.length?(i=+y,e):+i},alphaTarget:function(y){return arguments.length?(o=+y,e):o},velocityDecay:function(y){return arguments.length?(s=1-y,e):1-s},randomSource:function(y){return arguments.length?(h=y,a.forEach(g),e):h},force:function(y,m){return arguments.length>1?(m==null?a.delete(y):a.set(y,g(m)),e):a.get(y)},find:function(y,m,x){var _=0,v=t.length,b,P,w,$,M;for(x==null?x=1/0:x*=x,_=0;_<v;++_)$=t[_],b=y-$.x,P=m-$.y,w=b*b+P*P,w<x&&(M=$,x=w);return M},on:function(y,m){return arguments.length>1?(c.on(y,m),e):c.on(y)}}}function U7(){var t,e,n,r,i=sn(-30),o,s=1,a=1/0,l=.81;function c(p){var g,y=t.length,m=La(t,X7,Y7).visitAfter(u);for(r=p,g=0;g<y;++g)e=t[g],m.visit(d)}function h(){if(t){var p,g=t.length,y;for(o=new Array(g),p=0;p<g;++p)y=t[p],o[y.index]=+i(y,p,t)}}function u(p){var g=0,y,m,x=0,_,v,b;if(p.length){for(_=v=b=0;b<4;++b)(y=p[b])&&(m=Math.abs(y.value))&&(g+=y.value,x+=m,_+=m*y.x,v+=m*y.y);p.x=_/x,p.y=v/x}else{y=p,y.x=y.data.x,y.y=y.data.y;do g+=o[y.data.index];while(y=y.next)}p.value=g}function d(p,g,y,m){if(!p.value)return!0;var x=p.x-e.x,_=p.y-e.y,v=m-g,b=x*x+_*_;if(v*v/l<b)return b<a&&(x===0&&(x=Be(n),b+=x*x),_===0&&(_=Be(n),b+=_*_),b<s&&(b=Math.sqrt(s*b)),e.vx+=x*p.value*r/b,e.vy+=_*p.value*r/b),!0;if(p.length||b>=a)return;(p.data!==e||p.next)&&(x===0&&(x=Be(n),b+=x*x),_===0&&(_=Be(n),b+=_*_),b<s&&(b=Math.sqrt(s*b)));do p.data!==e&&(v=o[p.data.index]*r/b,e.vx+=x*v,e.vy+=_*v);while(p=p.next)}return c.initialize=function(p,g){t=p,n=g,h()},c.strength=function(p){return arguments.length?(i=typeof p=="function"?p:sn(+p),h(),c):i},c.distanceMin=function(p){return arguments.length?(s=p*p,c):Math.sqrt(s)},c.distanceMax=function(p){return arguments.length?(a=p*p,c):Math.sqrt(a)},c.theta=function(p){return arguments.length?(l=p*p,c):Math.sqrt(l)},c}function Z7(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ro(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function In(t){return t=ro(Math.abs(t)),t?t[1]:NaN}function Q7(t,e){return function(n,r){for(var i=n.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function K7(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var J7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function io(t){if(!(e=J7.exec(t)))throw new Error("invalid format: "+t);var e;return new Da({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}io.prototype=Da.prototype;function Da(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Da.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tP(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var B0;function eP(t,e){var n=ro(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(B0=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ro(t,Math.max(0,e+o-1))[0]}function W0(t,e){var n=ro(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const X0={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Z7,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>W0(t*100,e),r:W0,s:eP,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Y0(t){return t}var V0=Array.prototype.map,q0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nP(t){var e=t.grouping===void 0||t.thousands===void 0?Y0:Q7(V0.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Y0:K7(V0.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(u){u=io(u);var d=u.fill,p=u.align,g=u.sign,y=u.symbol,m=u.zero,x=u.width,_=u.comma,v=u.precision,b=u.trim,P=u.type;P==="n"?(_=!0,P="g"):X0[P]||(v===void 0&&(v=12),b=!0,P="g"),(m||d==="0"&&p==="=")&&(m=!0,d="0",p="=");var w=y==="$"?n:y==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",$=y==="$"?r:/[%p]/.test(P)?s:"",M=X0[P],A=/[defgprs%]/.test(P);v=v===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function I(C){var k=w,E=$,L,F,z;if(P==="c")E=M(C)+E,C="";else{C=+C;var j=C<0||1/C<0;if(C=isNaN(C)?l:M(Math.abs(C),v),b&&(C=tP(C)),j&&+C==0&&g!=="+"&&(j=!1),k=(j?g==="("?g:a:g==="-"||g==="("?"":g)+k,E=(P==="s"?q0[8+B0/3]:"")+E+(j&&g==="("?")":""),A){for(L=-1,F=C.length;++L<F;)if(z=C.charCodeAt(L),48>z||z>57){E=(z===46?i+C.slice(L+1):C.slice(L))+E,C=C.slice(0,L);break}}}_&&!m&&(C=e(C,1/0));var R=k.length+C.length+E.length,H=R<x?new Array(x-R+1).join(d):"";switch(_&&m&&(C=e(H+C,H.length?x-E.length:1/0),H=""),p){case"<":C=k+C+E+H;break;case"=":C=k+H+C+E;break;case"^":C=H.slice(0,R=H.length>>1)+k+C+E+H.slice(R);break;default:C=H+k+C+E;break}return o(C)}return I.toString=function(){return u+""},I}function h(u,d){var p=c((u=io(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(In(d)/3)))*3,y=Math.pow(10,-g),m=q0[8+g/3];return function(x){return p(y*x)+m}}return{format:c,formatPrefix:h}}var oo,G0,U0;rP({thousands:",",grouping:[3],currency:["$",""]});function rP(t){return oo=nP(t),G0=oo.format,U0=oo.formatPrefix,oo}function iP(t){return Math.max(0,-In(Math.abs(t)))}function oP(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(In(e)/3)))*3-In(Math.abs(t)))}function sP(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,In(e)-In(t))+1}function aP(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function lP(){return this.eachAfter(aP)}function cP(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function hP(t,e){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(t.call(e,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function fP(t,e){for(var n=this,r=[n],i=[],o,s,a,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,a=o.length;s<a;++s)r.push(o[s]);for(;n=i.pop();)t.call(e,n,++l,this);return this}function uP(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function dP(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function pP(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function gP(t){for(var e=this,n=mP(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function mP(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function yP(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function _P(){return Array.from(this)}function xP(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function vP(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*bP(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function ja(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=PP)):e===void 0&&(e=$P);for(var n=new wr(t),r,i=[n],o,s,a,l;r=i.pop();)if((s=e(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,a=l-1;a>=0;--a)i.push(o=s[a]=new wr(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(OP)}function wP(){return ja(this).eachBefore(MP)}function $P(t){return t.children}function PP(t){return Array.isArray(t)?t[1]:null}function MP(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function OP(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function wr(t){this.data=t,this.depth=this.height=0,this.parent=null}wr.prototype=ja.prototype={constructor:wr,count:lP,each:cP,eachAfter:fP,eachBefore:hP,find:uP,sum:dP,sort:pP,path:gP,ancestors:yP,descendants:_P,leaves:xP,links:vP,copy:wP,[Symbol.iterator]:bP};function CP(t,e){return t.parent===e.parent?1:2}function Fa(t){var e=t.children;return e?e[0]:t.t}function Ba(t){var e=t.children;return e?e[e.length-1]:t.t}function SP(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function IP(t){for(var e=0,n=0,r=t.children,i=r.length,o;--i>=0;)o=r[i],o.z+=e,o.m+=e,e+=o.s+(n+=o.c)}function AP(t,e,n){return t.a.parent===e.parent?t.a:n}function so(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}so.prototype=Object.create(wr.prototype);function EP(t){for(var e=new so(t,0),n,r=[e],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new so(o[s],s)),i.parent=n;return(e.parent=new so(null,0)).children=[e],e}function kP(){var t=CP,e=1,n=1,r=null;function i(c){var h=EP(c);if(h.eachAfter(o),h.parent.m=-h.z,h.eachBefore(s),r)c.eachBefore(l);else{var u=c,d=c,p=c;c.eachBefore(function(_){_.x<u.x&&(u=_),_.x>d.x&&(d=_),_.depth>p.depth&&(p=_)});var g=u===d?1:t(u,d)/2,y=g-u.x,m=e/(d.x+g+y),x=n/(p.depth||1);c.eachBefore(function(_){_.x=(_.x+y)*m,_.y=_.depth*x})}return c}function o(c){var h=c.children,u=c.parent.children,d=c.i?u[c.i-1]:null;if(h){IP(c);var p=(h[0].z+h[h.length-1].z)/2;d?(c.z=d.z+t(c._,d._),c.m=c.z-p):c.z=p}else d&&(c.z=d.z+t(c._,d._));c.parent.A=a(c,d,c.parent.A||u[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function a(c,h,u){if(h){for(var d=c,p=c,g=h,y=d.parent.children[0],m=d.m,x=p.m,_=g.m,v=y.m,b;g=Ba(g),d=Fa(d),g&&d;)y=Fa(y),p=Ba(p),p.a=c,b=g.z+_-d.z-m+t(g._,d._),b>0&&(SP(AP(g,c,u),c,b),m+=b,x+=b),_+=g.m,m+=d.m,v+=y.m,x+=p.m;g&&!Ba(p)&&(p.t=g,p.m+=_-x),d&&!Fa(y)&&(y.t=d,y.m+=m-v,u=c)}return u}function l(c){c.x*=e,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(t=c,i):t},i.size=function(c){return arguments.length?(r=!1,e=+c[0],n=+c[1],i):r?null:[e,n]},i.nodeSize=function(c){return arguments.length?(r=!0,e=+c[0],n=+c[1],i):r?[e,n]:null},i}function TP(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function zP(t){return function(){return t}}function HP(t){return+t}var Z0=[0,1];function An(t){return t}function Wa(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:zP(isNaN(e)?NaN:.5)}function RP(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function LP(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=Wa(i,r),o=n(s,o)):(r=Wa(r,i),o=n(o,s)),function(a){return o(r(a))}}function NP(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=Wa(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=W6(t,a,1,r)-1;return o[l](i[l](a))}}function DP(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function jP(){var t=Z0,e=Z0,n=Oa,r,i,o,s=An,a,l,c;function h(){var d=Math.min(t.length,e.length);return s!==An&&(s=RP(t[0],t[d-1])),a=d>2?NP:LP,l=c=null,u}function u(d){return d==null||isNaN(d=+d)?o:(l||(l=a(t.map(r),e,n)))(r(s(d)))}return u.invert=function(d){return s(i((c||(c=a(e,t.map(r),_e)))(d)))},u.domain=function(d){return arguments.length?(t=Array.from(d,HP),h()):t.slice()},u.range=function(d){return arguments.length?(e=Array.from(d),h()):e.slice()},u.rangeRound=function(d){return e=Array.from(d),n=J9,h()},u.clamp=function(d){return arguments.length?(s=d?!0:An,h()):s!==An},u.interpolate=function(d){return arguments.length?(n=d,h()):n},u.unknown=function(d){return arguments.length?(o=d,u):o},function(d,p){return r=d,i=p,h()}}function FP(){return jP()(An,An)}function BP(t,e,n,r){var i=G6(t,e,n),o;switch(r=io(r==null?",f":r),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=oP(i,s))&&(r.precision=o),U0(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=sP(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=iP(i))&&(r.precision=o-(r.type==="%")*2);break}}return G0(r)}function WP(t){var e=t.domain;return t.ticks=function(n){var r=e();return q6(r[0],r[r.length-1],n==null?10:n)},t.tickFormat=function(n,r){var i=e();return BP(i[0],i[i.length-1],n==null?10:n,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,s=r[i],a=r[o],l,c,h=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);h-- >0;){if(c=ga(s,a,n),c===l)return r[i]=s,r[o]=a,e(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function Xa(){var t=FP();return t.copy=function(){return DP(t,Xa())},TP.apply(t,arguments),WP(t)}function En(t){return function(){return t}}function XP(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new _7(e)}function YP(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Q0(t){this._context=t}Q0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function K0(t){return new Q0(t)}function VP(t){return t[0]}function qP(t){return t[1]}function GP(t,e){var n=En(!0),r=null,i=K0,o=null,s=XP(a);t=typeof t=="function"?t:t===void 0?VP:En(t),e=typeof e=="function"?e:e===void 0?qP:En(e);function a(l){var c,h=(l=YP(l)).length,u,d=!1,p;for(r==null&&(o=i(p=s())),c=0;c<=h;++c)!(c<h&&n(u=l[c],c,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+t(u,c,l),+e(u,c,l));if(p)return o=null,p+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:En(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:En(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:En(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function $r(t,e,n){this.k=t,this.x=e,this.y=n}$r.prototype={constructor:$r,scale:function(t){return t===1?this:new $r(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new $r(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},$r.prototype;var UP=Object.defineProperty,ZP=Object.defineProperties,QP=Object.getOwnPropertyDescriptors,J0=Object.getOwnPropertySymbols,KP=Object.prototype.hasOwnProperty,JP=Object.prototype.propertyIsEnumerable,tp=(t,e,n)=>e in t?UP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,tM=(t,e)=>{for(var n in e||(e={}))KP.call(e,n)&&tp(t,n,e[n]);if(J0)for(var n of J0(e))JP.call(e,n)&&tp(t,n,e[n]);return t},eM=(t,e)=>ZP(t,QP(e));const ep=t=>{const[{datum:e,data:n,indexes:r,width:i=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:h="normal",themeColors:u,valueFormatter:d=F=>`${F}%`},p]=kt(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),g=e.value,y=g!=null?g:0,m=Math.max(...n.items.map(F=>{var z;return(z=F.value)!=null?z:0}),100),x=i-2*a,v=Xa().domain([0,m]).range([0,x])(y),b=`${u.colorPrimary}-progress`,P=`${u.colorPrimaryBg}-progress-bg`,w=Z(f(ft,{indexes:r})),$=a,M=h==="flipped"?i-a-s:a,A=$,I=h==="flipped"?a:s+2*a,C=i-s-3*a,k=A,E=o-a-l,L=g!==void 0;return S(W,eM(tM({},p),{children:[S(_t,{children:[S("linearGradient",{id:b,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[f("stop",{offset:"0%",stopColor:u.colorPrimary}),f("stop",{offset:"100%",stopColor:tt.mix(u.colorPrimary,"#fff",20).toHexString()})]}),S("linearGradient",{id:P,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[f("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),f("stop",{offset:"100%",stopColor:u.colorBg})]})]}),f(pt,{x:0,y:0,width:i,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),f(Gt,{indexes:r,x:M,y:A,size:s,fill:u.colorPrimary}),f(ft,{indexes:r,x:I,y:k,width:C,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),L&&f(Wn,{indexes:r,x:I,y:k+w.height,width:C,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:y,formatter:d}),f(Et,{indexes:r,x:I,y:k+w.height+(L?27:4),width:C,alignHorizontal:h==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:L?2:3,wordWrap:!0,children:e.desc}),f(pt,{x:a,y:E,width:x,height:l,fill:`url(#${P})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),f(pt,{x:a,y:E,width:v,height:l,fill:`url(#${b})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))};Tt("progress-card",{component:ep,composites:["icon","label","value","desc"]});var nM=Object.defineProperty,rM=Object.defineProperties,iM=Object.getOwnPropertyDescriptors,np=Object.getOwnPropertySymbols,oM=Object.prototype.hasOwnProperty,sM=Object.prototype.propertyIsEnumerable,rp=(t,e,n)=>e in t?nM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,aM=(t,e)=>{for(var n in e||(e={}))oM.call(e,n)&&rp(t,n,e[n]);if(np)for(var n of np(e))sM.call(e,n)&&rp(t,n,e[n]);return t},lM=(t,e)=>rM(t,iM(e));const ip=t=>{const[{datum:e,indexes:n,width:r=280,height:i=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},h]=kt(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),d=2,p=4,g=28,y=20,m=y+20,x=y,_=8,v=35,b=40,P=30,w=String(n[0]+1).padStart(2,"0"),$=a==="flipped",M=a==="center",A=l==="flipped",I=()=>{if($)return{diagonalStartX:r-p,diagonalStartY:A?i-v:v,diagonalEndX:r-b,diagonalEndY:A?i-p:p,topLineStartX:r-b,topLineEndX:u,topLineY:A?i-p:p};if(M){const R=r-s-b,H=(r-R)/2;return{diagonalStartX:H+p,diagonalStartY:A?i-v:v,diagonalEndX:H+b,diagonalEndY:A?i-p:p,topLineStartX:H+b,topLineEndX:H+R-u,topLineY:A?i-p:p}}else return{diagonalStartX:p,diagonalStartY:A?i-v:v,diagonalEndX:b,diagonalEndY:A?i-p:p,topLineStartX:b,topLineEndX:r-u,topLineY:A?i-p:p}},C=()=>{if($){const R=s+10,H=r-R-b;return{valueX:r-P,contentX:R,contentWidth:H,circleX:0,circleY:A?0:i,iconX:u-o/2}}else if(M){const R=r-s-b,H=(r-R)/2;return{valueX:H,contentX:H+b,contentWidth:R-s-10,circleX:H+R,circleY:A?0:i,iconX:H+R-u-o/2}}else return{valueX:0,contentX:b,contentWidth:r-b-s-10,circleX:r,circleY:A?0:i,iconX:r-u-o/2}},k=I(),E=C(),L=A?u-o/2:i-u-o/2,F=Z(f(ft,{indexes:n,width:E.contentWidth,children:e.label})),z=x+F.height+_,j=()=>{const{circleX:R,circleY:H}=E;return $?A?`M ${R} ${H} L ${R} ${H+s} A ${s} ${s} 0 0 0 ${R+s} ${H} Z`:`M ${R} ${H} L ${R} ${H-s} A ${s} ${s} 0 0 1 ${R+s} ${H} Z`:A?`M ${R} ${H} L ${R} ${H+s} A ${s} ${s} 0 0 1 ${R-s} ${H} Z`:`M ${R} ${H} L ${R} ${H-s} A ${s} ${s} 0 0 0 ${R-s} ${H} Z`};return S(W,lM(aM({},h),{width:r,height:i,children:[S(Dt,{children:[f(ot,{d:`M ${k.diagonalStartX} ${k.diagonalStartY} L ${k.diagonalEndX} ${k.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:d,fill:"none"}),f(ot,{d:`M ${k.topLineStartX} ${k.topLineY} L ${k.topLineEndX} ${k.topLineY}`,stroke:c.colorPrimary,strokeWidth:d,fill:"none"}),f(xt,{x:k.diagonalStartX-p,y:k.diagonalStartY-p,width:p*2,height:p*2,fill:c.colorPrimary}),f(xt,{x:k.topLineEndX-p,y:k.topLineY-p,width:p*2,height:p*2,fill:c.colorPrimary})]}),S(W,{children:[f(zt,{x:E.valueX,y:m,fontSize:g,fontWeight:"bold",fill:c.colorPrimary,width:40,children:w}),f(ot,{d:j(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&f(Gt,{indexes:n,x:E.iconX,y:L,size:o,fill:c.colorWhite}),e.label&&f(ft,{indexes:n,x:E.contentX,y:x,width:E.contentWidth,fontWeight:"bold",fill:c.colorText,children:e.label}),e.desc&&f(Et,{indexes:n,x:E.contentX,y:z,width:E.contentWidth,fill:c.colorTextSecondary,children:e.desc})]})]}))};Tt("quarter-circular",{component:ip,composites:["icon","label","desc"]});var cM=Object.defineProperty,hM=Object.defineProperties,fM=Object.getOwnPropertyDescriptors,op=Object.getOwnPropertySymbols,uM=Object.prototype.hasOwnProperty,dM=Object.prototype.propertyIsEnumerable,sp=(t,e,n)=>e in t?cM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pM=(t,e)=>{for(var n in e||(e={}))uM.call(e,n)&&sp(t,n,e[n]);if(op)for(var n of op(e))dM.call(e,n)&&sp(t,n,e[n]);return t},gM=(t,e)=>hM(t,fM(e));const ap=t=>{const[{datum:e,indexes:n,width:r=150,height:i=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:h},u]=kt(t,["width","height","iconSize","padding","borderRadius"]),d=r-s*2,p=s,g=s,y=l==="flipped"?r-s-o:l==="center"?(r-o)/2:p,m=g,x=m+o+8,_=Z(f(ft,{indexes:n,width:d,children:e.label})),v=l==="flipped"?r-s-d:l==="center"?s:p,b=x+_.height+4,P=v,w=a;let $="";return l==="center"&&c==="middle"?$=`
31
31
  M ${w} 0
32
32
  L ${r-w} 0
33
33
  Q ${r} 0 ${r} ${w}
@@ -79,27 +79,27 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
79
79
  L 0 ${w}
80
80
  Q 0 0 ${w} 0
81
81
  Z
82
- `,S(W,uM(fM({},u),{children:[f(ot,{d:$,x:0,y:0,width:r,height:i,fill:h.colorPrimary,"data-element-type":"shape"}),f(Gt,{indexes:n,x:y,y:m,size:o,fill:h.colorBg}),f(ft,{indexes:n,x:v,y:x,width:d,fontSize:14,fontWeight:"bold",fill:h.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.label}),e.desc&&f(Et,{indexes:n,x:P,y:b,width:d,fontSize:11,wordWrap:!0,fill:h.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.desc})]}))};Tt("quarter-simple-card",{component:ap,composites:["icon","label","desc"]});var dM=Object.defineProperty,pM=Object.defineProperties,gM=Object.getOwnPropertyDescriptors,lp=Object.getOwnPropertySymbols,mM=Object.prototype.hasOwnProperty,yM=Object.prototype.propertyIsEnumerable,cp=(t,e,n)=>e in t?dM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_M=(t,e)=>{for(var n in e||(e={}))mM.call(e,n)&&cp(t,n,e[n]);if(lp)for(var n of lp(e))yM.call(e,n)&&cp(t,n,e[n]);return t},xM=(t,e)=>pM(t,gM(e));const hp=t=>{const[{datum:e,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=kt(t,["width","height","iconSize","gap","ribbonHeight"]),h=`${l.colorPrimary}-ribbon`;return S(W,xM(_M({},c),{children:[f(_t,{children:S("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[f("stop",{offset:"0%",stopColor:l.colorPrimary}),f("stop",{offset:"100%",stopColor:tt(l.colorPrimary).darken(15).toHexString()})]})}),S(Dt,{children:[f(pt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),f(pt,{x:0,y:0,width:r,height:a,fill:`url(#${h})`,rx:8,ry:8}),f(pt,{x:0,y:8,width:r,height:a-8,fill:`url(#${h})`}),f(ot,{x:r-20,y:a,width:20,height:8,fill:tt(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),f(Gt,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),f(ft,{indexes:n,x:o+2*s,y:a+s,width:r-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:e.label}),f(Et,{indexes:n,x:s,y:a+o+s+5,width:r-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:e.desc}),f(Gt,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))};Tt("ribbon-card",{component:hp,composites:["icon","label","desc"]});var vM=Object.defineProperty,bM=Object.defineProperties,wM=Object.getOwnPropertyDescriptors,fp=Object.getOwnPropertySymbols,$M=Object.prototype.hasOwnProperty,PM=Object.prototype.propertyIsEnumerable,up=(t,e,n)=>e in t?vM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,MM=(t,e)=>{for(var n in e||(e={}))$M.call(e,n)&&up(t,n,e[n]);if(fp)for(var n of fp(e))PM.call(e,n)&&up(t,n,e[n]);return t},OM=(t,e)=>bM(t,wM(e));const dp=t=>{const[{indexes:e,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=kt(t,["width","height","borderRadius","padding"]),c=o/2,h=c,u=s,d=i-c*2,p=o-s*2;return S(W,OM(MM({},l),{children:[f(pt,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),f(ft,{indexes:e,x:h,y:u,width:d,height:p,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))};Tt("rounded-rect-node",{component:dp,composites:["label"]});var CM=Object.defineProperty,SM=Object.defineProperties,IM=Object.getOwnPropertyDescriptors,pp=Object.getOwnPropertySymbols,AM=Object.prototype.hasOwnProperty,EM=Object.prototype.propertyIsEnumerable,gp=(t,e,n)=>e in t?CM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kM=(t,e)=>{for(var n in e||(e={}))AM.call(e,n)&&gp(t,n,e[n]);if(pp)for(var n of pp(e))EM.call(e,n)&&gp(t,n,e[n]);return t},TM=(t,e)=>SM(t,IM(e));const mp=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=kt(t,["width"]),a=o!=="flipped",l=a?"bottom":"top",c=f(ft,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=f(Et,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=30,d=10,p=Z(c),g=Z(h),y=p.height+g.height,m=y+d+u+d+y;return f(W,TM(kM({width:r,height:m},s),{children:S(it,{flexDirection:"column",alignItems:"center",children:[a?S(yt,{children:[h,c,f(Ht,{height:d})]}):f(yt,{children:f(Ht,{height:y+d})}),S(hn,{horizontal:"center",vertical:"middle",children:[f(zM,{width:r,height:u,fill:i.colorPrimary}),f(zt,{width:r,height:u,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?f(yt,{children:f(Ht,{height:y+d})}):S(yt,{children:[f(Ht,{height:d}),c,h]})]})}))},zM=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return f(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})};Tt("simple-horizontal-arrow",{component:mp,composites:["label","desc","time"]});var HM=Object.defineProperty,RM=Object.defineProperties,LM=Object.getOwnPropertyDescriptors,yp=Object.getOwnPropertySymbols,NM=Object.prototype.hasOwnProperty,DM=Object.prototype.propertyIsEnumerable,_p=(t,e,n)=>e in t?HM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jM=(t,e)=>{for(var n in e||(e={}))NM.call(e,n)&&_p(t,n,e[n]);if(yp)for(var n of yp(e))DM.call(e,n)&&_p(t,n,e[n]);return t},FM=(t,e)=>RM(t,LM(e));const xp=t=>{const[{indexes:e,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=kt(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:h}=n,u=a?s.colorPrimary:s.colorText,d=f(ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:u,children:c}),p=Z(d);return S(it,FM(jM({},l),{width:r,height:i+o+p.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[f(Xl,{indexes:e,width:i,height:i}),d,f(Et,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:h})]}))};Tt("simple-illus",{component:xp,composites:["illus","label","desc"]});var BM=Object.defineProperty,WM=Object.defineProperties,XM=Object.getOwnPropertyDescriptors,vp=Object.getOwnPropertySymbols,YM=Object.prototype.hasOwnProperty,VM=Object.prototype.propertyIsEnumerable,bp=(t,e,n)=>e in t?BM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ya=(t,e)=>{for(var n in e||(e={}))YM.call(e,n)&&bp(t,n,e[n]);if(vp)for(var n of vp(e))VM.call(e,n)&&bp(t,n,e[n]);return t},Va=(t,e)=>WM(t,XM(e));const wp=t=>{const[{indexes:e,datum:n,width:r=200,height:i,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:h="normal",usePaletteColor:u=!1,themeColors:d},p]=kt(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:g,desc:y,icon:m}=n,_=(z=>z==="normal"?"left":z==="flipped"?"right":"center")(c),v=u?d.colorPrimary:d.colorText,b=14,P=1.4,$=Z(f(ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:v,children:g})),M=s?l==="circle"?f(Ve,{indexes:e,size:a,fill:d.colorPrimary,colorBg:d.colorBg}):f(Gt,{indexes:e,size:a,fill:d.colorTextSecondary}):null;if(!s||!m){const z=i?Math.max(0,i-$.height-o):void 0,j=z?z<=60?1:Math.floor(z/(P*b)):2,R=i?h==="middle"?(i-$.height-(z||0)-o)/2:h==="flipped"?i-$.height-(z||0)-o:0:0;return S(W,Va(Ya({},p),{children:[f(ft,{indexes:e,width:r,y:R,alignHorizontal:_,alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:r,height:z,y:R+$.height+o,alignHorizontal:_,alignVertical:L(),lineNumber:j,fill:d.colorTextSecondary,children:y})]}))}if(c==="center"){const z=s&&m?a:0,j=i?Math.max(0,i-$.height-z-o*2):void 0,R=j?j<=60?1:Math.floor(j/(P*b)):2,H=$.height+(j||0)+o,D=i?h==="middle"?(i-H-z-o)/2:h==="flipped"?i-H-z-o:0:0;return f(it,Va(Ya({},p),{flexDirection:"column",gap:o,alignItems:"center",children:h==="flipped"?S(yt,{children:[S(W,{children:[f(ft,{indexes:e,width:r,y:D,alignHorizontal:"center",alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:r,height:j,y:D+$.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:R,fill:d.colorTextSecondary,children:y})]}),M]}):S(yt,{children:[M,S(W,{children:[f(ft,{indexes:e,width:r,y:D,alignHorizontal:"center",alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:r,height:j,y:D+$.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:R,fill:d.colorTextSecondary,children:y})]})]})}))}const A=Z(M),I=Math.max(r-A.width-o,0),C=i?Math.max(0,i-$.height-o):void 0,k=C?C<=60?1:Math.floor(C/(P*b)):2,E=i?h==="middle"?(i-$.height-(C||0)-o)/2:h==="flipped"?i-$.height-(C||0)-o:0:0;return f(it,Va(Ya({},p),{flexDirection:"row",gap:o,alignItems:F(h),children:c==="flipped"?S(yt,{children:[S(W,{children:[f(ft,{indexes:e,width:I,y:E,alignHorizontal:"right",alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:I,height:C,y:E+$.height+o,alignHorizontal:"right",alignVertical:L(),lineNumber:k,fill:d.colorTextSecondary,children:y})]}),M]}):S(yt,{children:[M,S(W,{children:[f(ft,{indexes:e,width:I,y:E,alignHorizontal:"left",alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:I,height:C,y:E+$.height+o,alignHorizontal:"left",alignVertical:L(),lineNumber:k,fill:d.colorTextSecondary,children:y})]})]})}));function L(z,j){return"top"}function F(z){return z==="normal"?"flex-start":z==="flipped"?"flex-end":"center"}};Tt("simple",{component:wp,composites:["icon","label","desc"]});var qM=Object.defineProperty,GM=Object.defineProperties,UM=Object.getOwnPropertyDescriptors,$p=Object.getOwnPropertySymbols,ZM=Object.prototype.hasOwnProperty,QM=Object.prototype.propertyIsEnumerable,Pp=(t,e,n)=>e in t?qM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,KM=(t,e)=>{for(var n in e||(e={}))ZM.call(e,n)&&Pp(t,n,e[n]);if($p)for(var n of $p(e))QM.call(e,n)&&Pp(t,n,e[n]);return t},JM=(t,e)=>GM(t,UM(e));const Mp=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=kt(t,["height"]),a=o==="normal"?"right":"left",l=f(ft,{indexes:e,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=f(Et,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h=o!=="flipped",u=15,d=30,p=120,g=p+u+d+u+p;return f(W,JM(KM({width:g,height:r},s),{children:S(it,{flexDirection:"row",alignItems:"center",children:[h?S(yt,{children:[S(it,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),f(Ht,{width:u})]}):f(yt,{children:f(Ht,{width:p+u})}),S(hn,{horizontal:"center",vertical:"middle",children:[f(tO,{width:d,height:r,fill:i.colorPrimary}),f(zt,{width:d,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),h?f(yt,{children:f(Ht,{width:p+u})}):S(yt,{children:[f(Ht,{width:u}),S(it,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},tO=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return f(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})};Tt("simple-vertical-arrow",{component:Mp,composites:["label","desc"]});var eO=Object.defineProperty,nO=Object.defineProperties,rO=Object.getOwnPropertyDescriptors,Op=Object.getOwnPropertySymbols,iO=Object.prototype.hasOwnProperty,oO=Object.prototype.propertyIsEnumerable,Cp=(t,e,n)=>e in t?eO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sO=(t,e)=>{for(var n in e||(e={}))iO.call(e,n)&&Cp(t,n,e[n]);if(Op)for(var n of Op(e))oO.call(e,n)&&Cp(t,n,e[n]);return t},aO=(t,e)=>nO(t,rO(e));const qa=80,Ga=3,Sp=t=>{const[{datum:e,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=kt(t,["width","height","gap"]),l=Z(f(ft,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:e.label})),c=e.desc?Z(f(Et,{indexes:n,width:r,wordWrap:!0,children:e.desc})):{height:0},h=l.height+i+Ga+(e.desc?i*2+c.height:0),u=0,d=0,p=o==="center"?"center":o==="flipped"?"right":"left",g=o==="center"?(r-qa)/2:o==="flipped"?r-qa:0,y=d+l.height+i,m=0,x=y+Ga+i*2;return S(W,aO(sO({width:r,height:h},a),{children:[e.label&&f(ft,{indexes:n,x:u,y:d,width:r,alignHorizontal:p,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&f(pt,{x:g,y,width:qa,height:Ga,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&f(Et,{indexes:n,width:r,x:m,y:x,alignHorizontal:p,wordWrap:!0,fill:s.colorText,children:e.desc})]}))};Tt("underline-text",{component:Sp,composites:["label","desc"]});var lO=Object.defineProperty,cO=Object.defineProperties,hO=Object.getOwnPropertyDescriptors,Ip=Object.getOwnPropertySymbols,fO=Object.prototype.hasOwnProperty,uO=Object.prototype.propertyIsEnumerable,Ap=(t,e,n)=>e in t?lO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dO=(t,e)=>{for(var n in e||(e={}))fO.call(e,n)&&Ap(t,n,e[n]);if(Ip)for(var n of Ip(e))uO.call(e,n)&&Ap(t,n,e[n]);return t},pO=(t,e)=>cO(t,hO(e));const Ep=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=kt(t,["height"]),l=o!=="flipped"?"right":"left",c=f(ft,{indexes:e,width:120,fill:i.colorText,alignHorizontal:l,alignVertical:"middle",fontSize:14,children:n.label}),h=f(Et,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"top",children:n.desc}),u=f(Ve,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),d=f(mO,{width:30,height:8,fill:i.colorPrimary,positionH:o}),p=o!=="flipped",g=5,y=25,m=30,x=Z(c),_=Z(u),v=Z(d),b=x.width+g+v.width-_.width-y,P=Math.max(x.width+g+v.width,y+_.width)*2+m;return f(W,pO(dO({width:P,height:r},s),{children:S(it,{flexDirection:"row",alignItems:"center",children:[p?S(yt,{children:[S(it,{flexDirection:"column",alignItems:"flex-end",children:[c,h]}),f(Ht,{width:g}),d]}):S(yt,{children:[f(Ht,{width:b}),u,f(Ht,{width:y})]}),S(hn,{horizontal:"center",vertical:"middle",children:[f(gO,{width:m,height:r,fill:i.colorPrimary}),f(zt,{width:m,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),p?S(yt,{children:[f(Ht,{width:y}),u]}):S(yt,{children:[d,f(Ht,{width:g}),S(it,{flexDirection:"column",alignItems:"flex-start",children:[c,h]})]})]})}))},gO=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return f(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})},mO=t=>{const{x:e=0,y:n=0,width:r=50,height:i=10,fill:o,positionH:s="normal"}=t,a=i/2,l=r-a,c=2,h=a;return S(W,{x:e,y:n,width:r,height:i,children:[f(xt,{width:i,height:i,fill:o,x:s==="normal"?0:l-a,"data-element-type":"shape"}),f(ot,{d:s==="normal"?`M${a},${h} L${a+l},${h}`:`M0,${h} L${l-a},${h}`,strokeWidth:c,stroke:o,"data-element-type":"shape"})]})};Tt("vertical-icon-arrow",{component:Ep,composites:["icon","label","desc"]});const Ua=new Map;function $t(t,e){Ua.set(t,e)}function kp(t){return Ua.get(t)}function yO(){return Array.from(Ua.keys())}const Tp=t=>{const{Title:e,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=H=>H.toString()}=t,{title:h,desc:u,items:d=[]}=r,p=e?f(e,{title:h,desc:u}):null;if(d.length===0)return f(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:p});const g=ge(l.themeConfig),m=[...d.map(H=>{var D;return(D=H.value)!=null?D:0}),0].sort((H,D)=>H-D),x=m[0]<0,_=d.length*o+(d.length-1)*i,v=300,[b,P,w,$]=zs(s),M=a?24:0,A=10,I=x&&a?M+A:A,C=_+$+P,k=v+b+w+I,E=Xa().domain([m[0],m[m.length-1]]).range([v,0]),L=E(0),F=[],z=[],j=[],R=[];return d.forEach((H,D)=>{var B;const T=[D],O=(B=H.value)!=null?B:0,X=$+D*(o+i),V=O>=0?E(O):L,et=Math.abs(E(O)-L),q=wt(l,[D])||g.colorPrimary,lt=`${q}-column-positive-${D}`,U=`${q}-column-negative-${D}`;R.push(S("linearGradient",{id:O>=0?lt:U,x1:"0%",y1:O>=0?"0%":"100%",x2:"0%",y2:O>=0?"100%":"0%",children:[f("stop",{offset:"0%",stopColor:q}),f("stop",{offset:"100%",stopColor:tt.mix(q,"#fff",40).toHexString()})]})),F.push(f(pt,{x:X,y:b+V,width:o,height:et,fill:`url(#${O>=0?lt:U})`,rx:8,ry:8,"data-element-type":"shape"})),a&&z.push(f(zt,{x:X+o/2,y:O>=0?b+V-10:b+V+et+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:O>=0?"bottom":"top",fill:q,children:c(O,H)}));const Q=o+i,K=b+v+I;j.push(f(n,{indexes:T,datum:H,data:r,x:X+o/2-Q/2,y:K,width:Q,positionH:"center"}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,S(W,{width:C,height:k,children:[f(_t,{children:R}),f(W,{children:F}),f(W,{children:z}),f(vt,{children:j})]})]})};$t("chart-column",{component:Tp,composites:["title","item"]});const zp=new Map,Za=(t,e)=>{zp.set(t,e)},_O=t=>{var e;return t&&(e=zp.get(t))!=null?e:null};var xO=Object.defineProperty,vO=Object.defineProperties,bO=Object.getOwnPropertyDescriptors,Hp=Object.getOwnPropertySymbols,wO=Object.prototype.hasOwnProperty,$O=Object.prototype.propertyIsEnumerable,Rp=(t,e,n)=>e in t?xO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lp=(t,e)=>{for(var n in e||(e={}))wO.call(e,n)&&Rp(t,n,e[n]);if(Hp)for(var n of Hp(e))$O.call(e,n)&&Rp(t,n,e[n]);return t},Np=(t,e)=>vO(t,bO(e));Za("pros-cons-arrow",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s=200,a=141,l={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return S(W,{x:e,y:n,width:s,height:a,children:[S(Dt,{children:[f("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),f("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:r}),f("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:i})]}),f(zt,Np(Lp({x:45,y:15},l),{children:"Pros"})),f(zt,Np(Lp({x:65,y:86},l),{children:"Cons"}))]})});var PO=Object.defineProperty,MO=Object.defineProperties,OO=Object.getOwnPropertyDescriptors,Dp=Object.getOwnPropertySymbols,CO=Object.prototype.hasOwnProperty,SO=Object.prototype.propertyIsEnumerable,jp=(t,e,n)=>e in t?PO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fp=(t,e)=>{for(var n in e||(e={}))CO.call(e,n)&&jp(t,n,e[n]);if(Dp)for(var n of Dp(e))SO.call(e,n)&&jp(t,n,e[n]);return t},Bp=(t,e)=>MO(t,OO(e));Za("pros-cons-fold",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s=240,a=300,l={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return S(W,{x:e,y:n,width:s,height:a,children:[S(Dt,{children:[f("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:r,fillOpacity:.4}),f("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:r}),f("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),f("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),f("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:i,fillOpacity:.4}),f("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:i}),f("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),f("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),f(zt,Bp(Fp({x:153,y:77},l),{children:"PROS"})),f(zt,Bp(Fp({x:2,y:193},l),{children:"CONS"}))]})}),Za("vs",t=>{const{x:e,y:n,colorPrimary:r,colorBg:i}=t,o=100,s=100,a=tt(r).lighten(20).toString();return S(W,{x:e,y:n,width:o,height:s,children:[S(_t,{children:[f("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),f(fa,{})]}),f(xt,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),f(xt,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),f("text",{x:o/2,y:s/2,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:i,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});const Wp=t=>{const{Title:e,Item:n,data:r,gap:i=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=t,{title:h,desc:u,items:d=[]}=r,p=e?f(e,{title:h,desc:u}):null;if(d.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const g=d[0]||{children:[]},y=d[1]||{children:[]},m=g.children||[],x=y.children||[],_=ge(c.themeConfig),v=Z(f(n,{indexes:[0,0],data:r,datum:m[0]||{}})),b=Z(f(Y,{indexes:[0]})),P=_O(l),w=P?Z(f(P,{x:0,y:0,colorPrimary:_.colorPrimary,colorBg:_.colorBg,colorPositive:_.colorPrimary,colorNegative:_.colorPrimary})):{width:0,height:0},$=[],M=[],A=[],I=Math.max(m.length,x.length),C=I>0?I*(v.height+i)-i:0,k=5,E=I>0?i/2+b.height/2:b.height/2,L=b.width+k,F=L+v.width+o,z=F+w.width+o,j=a?"flipped":"normal",R=a?"normal":s?"flipped":"normal";if(m.forEach((H,D)=>{const B=E+D*(v.height+i),T=[0,D];$.push(f(n,{indexes:T,datum:H,data:r,x:L,y:B,positionH:j,positionV:"middle"})),M.push(f(At,{indexes:T,x:L-b.width-k,y:B+(v.height-b.height)/2})),D<m.length-1&&M.push(f(Y,{indexes:[0,D+1],x:L+(v.width-b.width)/2,y:B+v.height+i/2-b.height/2}))}),m.length>0){M.push(f(Y,{indexes:[0,0],x:L+(v.width-b.width)/2,y:E-i/2-b.height/2}));const H=E+(m.length-1)*(v.height+i);M.push(f(Y,{indexes:[0,m.length],x:L+(v.width-b.width)/2,y:H+v.height+i/2-b.height/2}))}else d.length>=1&&M.push(f(Y,{indexes:[0,0],x:L+(v.width-b.width)/2,y:E-b.height/2}));if(x.forEach((H,D)=>{const B=E+D*(v.height+i),T=[1,D];$.push(f(n,{indexes:T,datum:H,data:r,x:z,y:B,positionH:R,positionV:"middle"})),M.push(f(At,{indexes:T,x:z+v.width+k,y:B+(v.height-b.height)/2})),D<x.length-1&&M.push(f(Y,{indexes:[1,D+1],x:z+(v.width-b.width)/2,y:B+v.height+i/2-b.height/2}))}),x.length>0){M.push(f(Y,{indexes:[1,0],x:z+(v.width-b.width)/2,y:E-i/2-b.height/2}));const H=E+(x.length-1)*(v.height+i);M.push(f(Y,{indexes:[1,x.length],x:z+(v.width-b.width)/2,y:H+v.height+i/2-b.height/2}))}else d.length>=2&&M.push(f(Y,{indexes:[1,0],x:z+(v.width-b.width)/2,y:E-b.height/2}));return d.length<2&&M.push(f(Y,{indexes:[1],x:z+(v.width-b.width)/2,y:E+(C-b.height)/2})),P&&A.push(f(P,{x:F,y:E+(C-w.height)/2,colorPrimary:_.colorPrimary,colorBg:_.colorBg,colorPositive:wt(c,[0])||_.colorPrimary,colorNegative:wt(c,[1])||_.colorPrimary})),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,S(W,{children:[f(W,{children:A}),f(vt,{children:$}),f(gt,{children:M})]})]})};$t("compare-binary-horizontal",{component:Wp,composites:["title","item"]});var IO=Object.defineProperty,Xp=Object.getOwnPropertySymbols,AO=Object.prototype.hasOwnProperty,EO=Object.prototype.propertyIsEnumerable,Yp=(t,e,n)=>e in t?IO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vp=(t,e)=>{for(var n in e||(e={}))AO.call(e,n)&&Yp(t,n,e[n]);if(Xp)for(var n of Xp(e))EO.call(e,n)&&Yp(t,n,e[n]);return t};const kO={none:5,"dot-line":100,"arc-dot":20,"split-line":5},qp=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:h=!1,flipLeaf:u=!1,options:d}=t,[p,g]=i,{title:y,desc:m,items:x=[]}=o,_=r?f(r,{title:y,desc:m}):null,v=f(p,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),b=f(g,{indexes:[0,0],data:o,datum:((n=(e=x[0])==null?void 0:e.children)==null?void 0:n[0])||x[2]}),P=Z(v),w=Z(b),$=[],M=[],[A,I]=x,C=(A==null?void 0:A.children)||[],k=(I==null?void 0:I.children)||[],E=Math.max(P.height,C.length*(w.height+s)-s,k.length*(w.height+s)-s),L=kO[l]||0,F=w.width+L,z=F+P.width+a,j=(E-P.height)/2;A&&$.push(f(p,{indexes:[0],x:F,y:j,data:o,datum:A,positionH:h?"normal":"flipped"})),I&&$.push(f(p,{indexes:[1],x:z,y:j,data:o,datum:I,positionH:h?"flipped":"normal"}));const R=(H,D,B)=>{if(l==="none")return;const[T,O]=D,X=wt(d,B),V={x:T,y:O,width:w.width,height:w.height,side:H,color:X||"#ccc",colorBg:d.themeConfig.colorBg||"#fff"};l==="split-line"?M.push(f(TO,Vp({},V))):l==="dot-line"&&M.push(f(zO,Vp({},V)))};if(c){const D=(2*P.width+a+w.width)/2+L,B=F+P.width+a/2,T=j+P.height/2;C.forEach((O,X)=>{const V=C.length*(w.height+s)-s,q=(E-V)/2+X*(w.height+s),U=q+w.height/2-T,Q=Math.max(0,D*D-U*U),nt=B-Math.sqrt(Q)-w.width/2;$.push(f(g,{indexes:[0,X],datum:O,data:o,x:nt,y:q,positionH:u?"flipped":"normal"})),R("left",[nt,q],[0,X])}),k.forEach((O,X)=>{const V=k.length*(w.height+s)-s,q=(E-V)/2+X*(w.height+s),U=q+w.height/2-T,Q=Math.max(0,D*D-U*U),nt=B+Math.sqrt(Q)-w.width/2;$.push(f(g,{indexes:[1,X],datum:O,data:o,x:nt,y:q,positionH:u?"normal":"flipped"})),R("right",[nt,q],[1,X])})}else C.forEach((H,D)=>{const B=C.length*(w.height+s)-s,O=(E-B)/2+D*(w.height+s),X=[0,D],V=0;$.push(f(g,{indexes:X,datum:H,data:o,x:V,y:O,positionH:u?"flipped":"normal"})),R("left",[V,O],X)}),k.forEach((H,D)=>{const B=k.length*(w.height+s)-s,O=(E-B)/2+D*(w.height+s),X=[1,D],V=z+P.width+L;$.push(f(g,{indexes:X,datum:H,data:o,x:V,y:O,positionH:u?"normal":"flipped"})),R("right",[V,O],X)});return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[_,S(W,{children:[f(vt,{children:$}),f(W,{width:0,height:0,children:M})]})]})},TO=t=>{const{x:e,y:n,width:r,height:i,color:o,colorBg:s,side:a}=t,l=n+i,c=`split-line-linear-gradient-${a}`;return S(yt,{children:[f(_t,{children:f(ua,{id:c,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),f(pt,{x:e,y:l,width:r,height:1,fill:`url(#${c})`})]})},zO=t=>{const{x:e,y:n,side:r,width:i,height:o,color:s,colorBg:a}=t,l=6,c=l/3,h=l*2,u=c*2,d=5,p=r==="left"?e+i+l+d:e-l-d,g=n+o/2,y=p-c,m=g-c,x=80,_=r==="left"?x:-x,v=`dot-line-linear-gradient-${r}`;return S(W,{children:[f(_t,{children:f(ua,{id:v,startColor:s,stopColor:a,direction:r==="left"?"left-right":"right-left"})}),S(Dt,{children:[f(xt,{x:p-l,y:g-l,width:h,height:h,fill:"none",strokeWidth:1,stroke:s}),f(xt,{x:y,y:m,width:u,height:u,fill:s})]}),f(pt,{x:r==="left"?p:p+_,y:g-.5,width:x,height:1,fill:`url(#${v})`})]})};$t("compare-hierarchy-left-right",{component:qp,composites:["title","item"]});const Gp=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:h=!0,columnBackgroundAlpha:u=.08,options:d}=t,[p,g]=i,{title:y,desc:m,items:x=[]}=o,_=r?f(r,{title:y,desc:m}):null,v=Vu(d),b=[],P=[],w=l-c*2,$=Z(f(p,{indexes:[0],data:o,datum:x[0],width:l})),M=Z(f(g,{indexes:[0,0],data:o,datum:((n=(e=x[0])==null?void 0:e.children)==null?void 0:n[0])||{},width:w})),A=Z(f(Y,{indexes:[0]})),I=Math.max(...x.map(k=>{var E;return((E=k.children)==null?void 0:E.length)||0}),0),C=$.height+a+I*(M.height+a);if(x.forEach((k,E)=>{const{children:L=[]}=k,F=E*(l+s),z=F,j=0;if(h){const B=`${v[E%v.length]}${Math.round(u*255).toString(16).padStart(2,"0")}`;b.push(f(pt,{x:F,y:j,width:l,height:C,fill:B,rx:0,ry:0,"data-element-type":"shape"}))}b.push(f(p,{indexes:[E],datum:k,data:o,x:z,y:j,width:l})),P.push(f(At,{indexes:[E],x:z+$.width-A.width-10,y:j+10})),E===0&&P.push(f(Y,{indexes:[E],x:z+$.width/2-A.width/2,y:j-A.height-5}));const R=j+$.height+a;L.forEach((D,B)=>{const T=R+B*(M.height+a),O=z+c,X=[E,B];b.push(f(g,{indexes:X,datum:D,data:o,x:O,y:T,width:w})),P.push(f(At,{indexes:X,x:O+M.width-A.width-10,y:T+(M.height-A.height)/2})),B<L.length-1&&P.push(f(Y,{indexes:[E,B+1],x:O+M.width/2-A.width/2,y:T+M.height-A.height/2}))});const H=z+c;if(L.length>0){const D=R+L.length*(M.height+a);P.push(f(Y,{indexes:[E,L.length],x:H+M.width/2-A.width/2,y:D-M.height/2-A.height/2}))}else P.push(f(Y,{indexes:[E,0],x:H+M.width/2-A.width/2,y:R-a/2-A.height/2}))}),x.length>0){const k=x.length*(l+s);P.push(f(Y,{indexes:[x.length],x:k-s/2-A.width/2,y:-A.height-5}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[_,S(W,{children:[f(vt,{children:b}),f(gt,{children:P})]})]})};$t("compare-hierarchy-row",{component:Gp,composites:["title","item"]});var HO=Object.defineProperty,RO=Object.defineProperties,LO=Object.getOwnPropertyDescriptors,Up=Object.getOwnPropertySymbols,NO=Object.prototype.hasOwnProperty,DO=Object.prototype.propertyIsEnumerable,Zp=(t,e,n)=>e in t?HO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ao=(t,e)=>{for(var n in e||(e={}))NO.call(e,n)&&Zp(t,n,e[n]);if(Up)for(var n of Up(e))DO.call(e,n)&&Zp(t,n,e[n]);return t},lo=(t,e)=>RO(t,LO(e));const Qp=t=>{const{Title:e,Items:n,data:r,levelGap:i=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:h="5,5",edgeCornerRadius:u=0,edgeOffset:d=0,edgeOrigin:p="center",edgeOriginPadding:g=20,edgeMarker:y="none",markerSize:m=12,colorMode:x="branch",options:_}=t,{title:v,desc:b}=r,P=Zt(_),w=U=>{var Q;const K=[...U];return(Q=K[0])!=null&&Q.children||(K[0]=lo(ao({},K[0]),{children:K.slice(1)}),K.splice(1)),K},$=(U,Q,K,nt,ct)=>{const rt=Q+(nt-Q)/2,ht=Math.min(ct,Math.abs(nt-Q)/2,Math.abs(K-U)/2);return ht===0?`M ${U} ${Q} L ${U} ${rt} L ${K} ${rt} L ${K} ${nt}`:`M ${U} ${Q}
82
+ `,S(W,gM(pM({},u),{children:[f(ot,{d:$,x:0,y:0,width:r,height:i,fill:h.colorPrimary,"data-element-type":"shape"}),f(Gt,{indexes:n,x:y,y:m,size:o,fill:h.colorBg}),f(ft,{indexes:n,x:v,y:x,width:d,fontSize:14,fontWeight:"bold",fill:h.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.label}),e.desc&&f(Et,{indexes:n,x:P,y:b,width:d,fontSize:11,wordWrap:!0,fill:h.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:e.desc})]}))};Tt("quarter-simple-card",{component:ap,composites:["icon","label","desc"]});var mM=Object.defineProperty,yM=Object.defineProperties,_M=Object.getOwnPropertyDescriptors,lp=Object.getOwnPropertySymbols,xM=Object.prototype.hasOwnProperty,vM=Object.prototype.propertyIsEnumerable,cp=(t,e,n)=>e in t?mM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bM=(t,e)=>{for(var n in e||(e={}))xM.call(e,n)&&cp(t,n,e[n]);if(lp)for(var n of lp(e))vM.call(e,n)&&cp(t,n,e[n]);return t},wM=(t,e)=>yM(t,_M(e));const hp=t=>{const[{datum:e,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=kt(t,["width","height","iconSize","gap","ribbonHeight"]),h=`${l.colorPrimary}-ribbon`;return S(W,wM(bM({},c),{children:[f(_t,{children:S("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[f("stop",{offset:"0%",stopColor:l.colorPrimary}),f("stop",{offset:"100%",stopColor:tt(l.colorPrimary).darken(15).toHexString()})]})}),S(Dt,{children:[f(pt,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),f(pt,{x:0,y:0,width:r,height:a,fill:`url(#${h})`,rx:8,ry:8}),f(pt,{x:0,y:8,width:r,height:a-8,fill:`url(#${h})`}),f(ot,{x:r-20,y:a,width:20,height:8,fill:tt(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),f(Gt,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),f(ft,{indexes:n,x:o+2*s,y:a+s,width:r-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:e.label}),f(Et,{indexes:n,x:s,y:a+o+s+5,width:r-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:e.desc}),f(Gt,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))};Tt("ribbon-card",{component:hp,composites:["icon","label","desc"]});var $M=Object.defineProperty,PM=Object.defineProperties,MM=Object.getOwnPropertyDescriptors,fp=Object.getOwnPropertySymbols,OM=Object.prototype.hasOwnProperty,CM=Object.prototype.propertyIsEnumerable,up=(t,e,n)=>e in t?$M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,SM=(t,e)=>{for(var n in e||(e={}))OM.call(e,n)&&up(t,n,e[n]);if(fp)for(var n of fp(e))CM.call(e,n)&&up(t,n,e[n]);return t},IM=(t,e)=>PM(t,MM(e));const dp=t=>{const[{indexes:e,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=kt(t,["width","height","borderRadius","padding"]),c=o/2,h=c,u=s,d=i-c*2,p=o-s*2;return S(W,IM(SM({},l),{children:[f(pt,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),f(ft,{indexes:e,x:h,y:u,width:d,height:p,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))};Tt("rounded-rect-node",{component:dp,composites:["label"]});var AM=Object.defineProperty,EM=Object.defineProperties,kM=Object.getOwnPropertyDescriptors,pp=Object.getOwnPropertySymbols,TM=Object.prototype.hasOwnProperty,zM=Object.prototype.propertyIsEnumerable,gp=(t,e,n)=>e in t?AM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,HM=(t,e)=>{for(var n in e||(e={}))TM.call(e,n)&&gp(t,n,e[n]);if(pp)for(var n of pp(e))zM.call(e,n)&&gp(t,n,e[n]);return t},RM=(t,e)=>EM(t,kM(e));const mp=t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=kt(t,["width"]),a=o!=="flipped",l=a?"bottom":"top",c=f(ft,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=f(Et,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=30,d=10,p=Z(c),g=Z(h),y=p.height+g.height,m=y+d+u+d+y;return f(W,RM(HM({width:r,height:m},s),{children:S(it,{flexDirection:"column",alignItems:"center",children:[a?S(yt,{children:[h,c,f(Ht,{height:d})]}):f(yt,{children:f(Ht,{height:y+d})}),S(hn,{horizontal:"center",vertical:"middle",children:[f(LM,{width:r,height:u,fill:i.colorPrimary}),f(zt,{width:r,height:u,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?f(yt,{children:f(Ht,{height:y+d})}):S(yt,{children:[f(Ht,{height:d}),c,h]})]})}))},LM=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return f(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})};Tt("simple-horizontal-arrow",{component:mp,composites:["label","desc","time"]});var NM=Object.defineProperty,DM=Object.defineProperties,jM=Object.getOwnPropertyDescriptors,yp=Object.getOwnPropertySymbols,FM=Object.prototype.hasOwnProperty,BM=Object.prototype.propertyIsEnumerable,_p=(t,e,n)=>e in t?NM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,WM=(t,e)=>{for(var n in e||(e={}))FM.call(e,n)&&_p(t,n,e[n]);if(yp)for(var n of yp(e))BM.call(e,n)&&_p(t,n,e[n]);return t},XM=(t,e)=>DM(t,jM(e));const xp=t=>{const[{indexes:e,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=kt(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:h}=n,u=a?s.colorPrimary:s.colorText,d=f(ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:u,children:c}),p=Z(d);return S(it,XM(WM({},l),{width:r,height:i+o+p.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[f(Xl,{indexes:e,width:i,height:i}),d,f(Et,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:h})]}))};Tt("simple-illus",{component:xp,composites:["illus","label","desc"]});var YM=Object.defineProperty,VM=Object.defineProperties,qM=Object.getOwnPropertyDescriptors,vp=Object.getOwnPropertySymbols,GM=Object.prototype.hasOwnProperty,UM=Object.prototype.propertyIsEnumerable,bp=(t,e,n)=>e in t?YM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ya=(t,e)=>{for(var n in e||(e={}))GM.call(e,n)&&bp(t,n,e[n]);if(vp)for(var n of vp(e))UM.call(e,n)&&bp(t,n,e[n]);return t},Va=(t,e)=>VM(t,qM(e));const wp=t=>{const[{indexes:e,datum:n,width:r=200,height:i,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:h="normal",usePaletteColor:u=!1,themeColors:d},p]=kt(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:g,desc:y,icon:m}=n,_=(z=>z==="normal"?"left":z==="flipped"?"right":"center")(c),v=u?d.colorPrimary:d.colorText,b=14,P=1.4,$=Z(f(ft,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:v,children:g})),M=s?l==="circle"?f(Ve,{indexes:e,size:a,fill:d.colorPrimary,colorBg:d.colorBg}):f(Gt,{indexes:e,size:a,fill:d.colorTextSecondary}):null;if(!s||!m){const z=i?Math.max(0,i-$.height-o):void 0,j=z?z<=60?1:Math.floor(z/(P*b)):2,R=i?h==="middle"?(i-$.height-(z||0)-o)/2:h==="flipped"?i-$.height-(z||0)-o:0:0;return S(W,Va(Ya({},p),{children:[f(ft,{indexes:e,width:r,y:R,alignHorizontal:_,alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:r,height:z,y:R+$.height+o,alignHorizontal:_,alignVertical:L(),lineNumber:j,fill:d.colorTextSecondary,children:y})]}))}if(c==="center"){const z=s&&m?a:0,j=i?Math.max(0,i-$.height-z-o*2):void 0,R=j?j<=60?1:Math.floor(j/(P*b)):2,H=$.height+(j||0)+o,D=i?h==="middle"?(i-H-z-o)/2:h==="flipped"?i-H-z-o:0:0;return f(it,Va(Ya({},p),{flexDirection:"column",gap:o,alignItems:"center",children:h==="flipped"?S(yt,{children:[S(W,{children:[f(ft,{indexes:e,width:r,y:D,alignHorizontal:"center",alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:r,height:j,y:D+$.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:R,fill:d.colorTextSecondary,children:y})]}),M]}):S(yt,{children:[M,S(W,{children:[f(ft,{indexes:e,width:r,y:D,alignHorizontal:"center",alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:r,height:j,y:D+$.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:R,fill:d.colorTextSecondary,children:y})]})]})}))}const A=Z(M),I=Math.max(r-A.width-o,0),C=i?Math.max(0,i-$.height-o):void 0,k=C?C<=60?1:Math.floor(C/(P*b)):2,E=i?h==="middle"?(i-$.height-(C||0)-o)/2:h==="flipped"?i-$.height-(C||0)-o:0:0;return f(it,Va(Ya({},p),{flexDirection:"row",gap:o,alignItems:F(h),children:c==="flipped"?S(yt,{children:[S(W,{children:[f(ft,{indexes:e,width:I,y:E,alignHorizontal:"right",alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:I,height:C,y:E+$.height+o,alignHorizontal:"right",alignVertical:L(),lineNumber:k,fill:d.colorTextSecondary,children:y})]}),M]}):S(yt,{children:[M,S(W,{children:[f(ft,{indexes:e,width:I,y:E,alignHorizontal:"left",alignVertical:"middle",fill:v,children:g}),f(Et,{indexes:e,width:I,height:C,y:E+$.height+o,alignHorizontal:"left",alignVertical:L(),lineNumber:k,fill:d.colorTextSecondary,children:y})]})]})}));function L(z,j){return"top"}function F(z){return z==="normal"?"flex-start":z==="flipped"?"flex-end":"center"}};Tt("simple",{component:wp,composites:["icon","label","desc"]});var ZM=Object.defineProperty,QM=Object.defineProperties,KM=Object.getOwnPropertyDescriptors,$p=Object.getOwnPropertySymbols,JM=Object.prototype.hasOwnProperty,tO=Object.prototype.propertyIsEnumerable,Pp=(t,e,n)=>e in t?ZM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,eO=(t,e)=>{for(var n in e||(e={}))JM.call(e,n)&&Pp(t,n,e[n]);if($p)for(var n of $p(e))tO.call(e,n)&&Pp(t,n,e[n]);return t},nO=(t,e)=>QM(t,KM(e));const Mp=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=kt(t,["height"]),a=o==="normal"?"right":"left",l=f(ft,{indexes:e,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=f(Et,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h=o!=="flipped",u=15,d=30,p=120,g=p+u+d+u+p;return f(W,nO(eO({width:g,height:r},s),{children:S(it,{flexDirection:"row",alignItems:"center",children:[h?S(yt,{children:[S(it,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),f(Ht,{width:u})]}):f(yt,{children:f(Ht,{width:p+u})}),S(hn,{horizontal:"center",vertical:"middle",children:[f(rO,{width:d,height:r,fill:i.colorPrimary}),f(zt,{width:d,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),h?f(yt,{children:f(Ht,{width:p+u})}):S(yt,{children:[f(Ht,{width:u}),S(it,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},rO=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return f(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})};Tt("simple-vertical-arrow",{component:Mp,composites:["label","desc"]});var iO=Object.defineProperty,oO=Object.defineProperties,sO=Object.getOwnPropertyDescriptors,Op=Object.getOwnPropertySymbols,aO=Object.prototype.hasOwnProperty,lO=Object.prototype.propertyIsEnumerable,Cp=(t,e,n)=>e in t?iO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cO=(t,e)=>{for(var n in e||(e={}))aO.call(e,n)&&Cp(t,n,e[n]);if(Op)for(var n of Op(e))lO.call(e,n)&&Cp(t,n,e[n]);return t},hO=(t,e)=>oO(t,sO(e));const qa=80,Ga=3,Sp=t=>{const[{datum:e,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=kt(t,["width","height","gap"]),l=Z(f(ft,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:e.label})),c=e.desc?Z(f(Et,{indexes:n,width:r,wordWrap:!0,children:e.desc})):{height:0},h=l.height+i+Ga+(e.desc?i*2+c.height:0),u=0,d=0,p=o==="center"?"center":o==="flipped"?"right":"left",g=o==="center"?(r-qa)/2:o==="flipped"?r-qa:0,y=d+l.height+i,m=0,x=y+Ga+i*2;return S(W,hO(cO({width:r,height:h},a),{children:[e.label&&f(ft,{indexes:n,x:u,y:d,width:r,alignHorizontal:p,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&f(pt,{x:g,y,width:qa,height:Ga,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&f(Et,{indexes:n,width:r,x:m,y:x,alignHorizontal:p,wordWrap:!0,fill:s.colorText,children:e.desc})]}))};Tt("underline-text",{component:Sp,composites:["label","desc"]});var fO=Object.defineProperty,uO=Object.defineProperties,dO=Object.getOwnPropertyDescriptors,Ip=Object.getOwnPropertySymbols,pO=Object.prototype.hasOwnProperty,gO=Object.prototype.propertyIsEnumerable,Ap=(t,e,n)=>e in t?fO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mO=(t,e)=>{for(var n in e||(e={}))pO.call(e,n)&&Ap(t,n,e[n]);if(Ip)for(var n of Ip(e))gO.call(e,n)&&Ap(t,n,e[n]);return t},yO=(t,e)=>uO(t,dO(e));const Ep=t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=kt(t,["height"]),l=o!=="flipped"?"right":"left",c=f(ft,{indexes:e,width:120,fill:i.colorText,alignHorizontal:l,alignVertical:"middle",fontSize:14,children:n.label}),h=f(Et,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"top",children:n.desc}),u=f(Ve,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),d=f(xO,{width:30,height:8,fill:i.colorPrimary,positionH:o}),p=o!=="flipped",g=5,y=25,m=30,x=Z(c),_=Z(u),v=Z(d),b=x.width+g+v.width-_.width-y,P=Math.max(x.width+g+v.width,y+_.width)*2+m;return f(W,yO(mO({width:P,height:r},s),{children:S(it,{flexDirection:"row",alignItems:"center",children:[p?S(yt,{children:[S(it,{flexDirection:"column",alignItems:"flex-end",children:[c,h]}),f(Ht,{width:g}),d]}):S(yt,{children:[f(Ht,{width:b}),u,f(Ht,{width:y})]}),S(hn,{horizontal:"center",vertical:"middle",children:[f(_O,{width:m,height:r,fill:i.colorPrimary}),f(zt,{width:m,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),p?S(yt,{children:[f(Ht,{width:y}),u]}):S(yt,{children:[d,f(Ht,{width:g}),S(it,{flexDirection:"column",alignItems:"flex-start",children:[c,h]})]})]})}))},_O=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return f(be,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})},xO=t=>{const{x:e=0,y:n=0,width:r=50,height:i=10,fill:o,positionH:s="normal"}=t,a=i/2,l=r-a,c=2,h=a;return S(W,{x:e,y:n,width:r,height:i,children:[f(xt,{width:i,height:i,fill:o,x:s==="normal"?0:l-a,"data-element-type":"shape"}),f(ot,{d:s==="normal"?`M${a},${h} L${a+l},${h}`:`M0,${h} L${l-a},${h}`,strokeWidth:c,stroke:o,"data-element-type":"shape"})]})};Tt("vertical-icon-arrow",{component:Ep,composites:["icon","label","desc"]});const Ua=new Map;function $t(t,e){Ua.set(t,e)}function kp(t){return Ua.get(t)}function vO(){return Array.from(Ua.keys())}const Tp=t=>{const{Title:e,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=H=>H.toString()}=t,{title:h,desc:u,items:d=[]}=r,p=e?f(e,{title:h,desc:u}):null;if(d.length===0)return f(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:p});const g=ge(l.themeConfig),m=[...d.map(H=>{var D;return(D=H.value)!=null?D:0}),0].sort((H,D)=>H-D),x=m[0]<0,_=d.length*o+(d.length-1)*i,v=300,[b,P,w,$]=zs(s),M=a?24:0,A=10,I=x&&a?M+A:A,C=_+$+P,k=v+b+w+I,E=Xa().domain([m[0],m[m.length-1]]).range([v,0]),L=E(0),F=[],z=[],j=[],R=[];return d.forEach((H,D)=>{var B;const T=[D],O=(B=H.value)!=null?B:0,X=$+D*(o+i),V=O>=0?E(O):L,et=Math.abs(E(O)-L),q=wt(l,[D])||g.colorPrimary,lt=`${q}-column-positive-${D}`,U=`${q}-column-negative-${D}`;R.push(S("linearGradient",{id:O>=0?lt:U,x1:"0%",y1:O>=0?"0%":"100%",x2:"0%",y2:O>=0?"100%":"0%",children:[f("stop",{offset:"0%",stopColor:q}),f("stop",{offset:"100%",stopColor:tt.mix(q,"#fff",40).toHexString()})]})),F.push(f(pt,{x:X,y:b+V,width:o,height:et,fill:`url(#${O>=0?lt:U})`,rx:8,ry:8,"data-element-type":"shape"})),a&&z.push(f(zt,{x:X+o/2,y:O>=0?b+V-10:b+V+et+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:O>=0?"bottom":"top",fill:q,children:c(O,H)}));const Q=o+i,K=b+v+I;j.push(f(n,{indexes:T,datum:H,data:r,x:X+o/2-Q/2,y:K,width:Q,positionH:"center"}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,S(W,{width:C,height:k,children:[f(_t,{children:R}),f(W,{children:F}),f(W,{children:z}),f(vt,{children:j})]})]})};$t("chart-column",{component:Tp,composites:["title","item"]});const zp=new Map,Za=(t,e)=>{zp.set(t,e)},bO=t=>{var e;return t&&(e=zp.get(t))!=null?e:null};var wO=Object.defineProperty,$O=Object.defineProperties,PO=Object.getOwnPropertyDescriptors,Hp=Object.getOwnPropertySymbols,MO=Object.prototype.hasOwnProperty,OO=Object.prototype.propertyIsEnumerable,Rp=(t,e,n)=>e in t?wO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lp=(t,e)=>{for(var n in e||(e={}))MO.call(e,n)&&Rp(t,n,e[n]);if(Hp)for(var n of Hp(e))OO.call(e,n)&&Rp(t,n,e[n]);return t},Np=(t,e)=>$O(t,PO(e));Za("pros-cons-arrow",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s=200,a=141,l={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return S(W,{x:e,y:n,width:s,height:a,children:[S(Dt,{children:[f("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),f("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:r}),f("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:i})]}),f(zt,Np(Lp({x:45,y:15},l),{children:"Pros"})),f(zt,Np(Lp({x:65,y:86},l),{children:"Cons"}))]})});var CO=Object.defineProperty,SO=Object.defineProperties,IO=Object.getOwnPropertyDescriptors,Dp=Object.getOwnPropertySymbols,AO=Object.prototype.hasOwnProperty,EO=Object.prototype.propertyIsEnumerable,jp=(t,e,n)=>e in t?CO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fp=(t,e)=>{for(var n in e||(e={}))AO.call(e,n)&&jp(t,n,e[n]);if(Dp)for(var n of Dp(e))EO.call(e,n)&&jp(t,n,e[n]);return t},Bp=(t,e)=>SO(t,IO(e));Za("pros-cons-fold",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s=240,a=300,l={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return S(W,{x:e,y:n,width:s,height:a,children:[S(Dt,{children:[f("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:r,fillOpacity:.4}),f("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:r}),f("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),f("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),f("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:i,fillOpacity:.4}),f("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:i}),f("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),f("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),f(zt,Bp(Fp({x:153,y:77},l),{children:"PROS"})),f(zt,Bp(Fp({x:2,y:193},l),{children:"CONS"}))]})}),Za("vs",t=>{const{x:e,y:n,colorPrimary:r,colorBg:i}=t,o=100,s=100,a=tt(r).lighten(20).toString();return S(W,{x:e,y:n,width:o,height:s,children:[S(_t,{children:[f("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),f(fa,{})]}),f(xt,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),f(xt,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),f("text",{x:o/2,y:s/2,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:i,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});const Wp=t=>{const{Title:e,Item:n,data:r,gap:i=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=t,{title:h,desc:u,items:d=[]}=r,p=e?f(e,{title:h,desc:u}):null;if(d.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const g=d[0]||{children:[]},y=d[1]||{children:[]},m=g.children||[],x=y.children||[],_=ge(c.themeConfig),v=Z(f(n,{indexes:[0,0],data:r,datum:m[0]||{}})),b=Z(f(Y,{indexes:[0]})),P=bO(l),w=P?Z(f(P,{x:0,y:0,colorPrimary:_.colorPrimary,colorBg:_.colorBg,colorPositive:_.colorPrimary,colorNegative:_.colorPrimary})):{width:0,height:0},$=[],M=[],A=[],I=Math.max(m.length,x.length),C=I>0?I*(v.height+i)-i:0,k=5,E=I>0?i/2+b.height/2:b.height/2,L=b.width+k,F=L+v.width+o,z=F+w.width+o,j=a?"flipped":"normal",R=a?"normal":s?"flipped":"normal";if(m.forEach((H,D)=>{const B=E+D*(v.height+i),T=[0,D];$.push(f(n,{indexes:T,datum:H,data:r,x:L,y:B,positionH:j,positionV:"middle"})),M.push(f(At,{indexes:T,x:L-b.width-k,y:B+(v.height-b.height)/2})),D<m.length-1&&M.push(f(Y,{indexes:[0,D+1],x:L+(v.width-b.width)/2,y:B+v.height+i/2-b.height/2}))}),m.length>0){M.push(f(Y,{indexes:[0,0],x:L+(v.width-b.width)/2,y:E-i/2-b.height/2}));const H=E+(m.length-1)*(v.height+i);M.push(f(Y,{indexes:[0,m.length],x:L+(v.width-b.width)/2,y:H+v.height+i/2-b.height/2}))}else d.length>=1&&M.push(f(Y,{indexes:[0,0],x:L+(v.width-b.width)/2,y:E-b.height/2}));if(x.forEach((H,D)=>{const B=E+D*(v.height+i),T=[1,D];$.push(f(n,{indexes:T,datum:H,data:r,x:z,y:B,positionH:R,positionV:"middle"})),M.push(f(At,{indexes:T,x:z+v.width+k,y:B+(v.height-b.height)/2})),D<x.length-1&&M.push(f(Y,{indexes:[1,D+1],x:z+(v.width-b.width)/2,y:B+v.height+i/2-b.height/2}))}),x.length>0){M.push(f(Y,{indexes:[1,0],x:z+(v.width-b.width)/2,y:E-i/2-b.height/2}));const H=E+(x.length-1)*(v.height+i);M.push(f(Y,{indexes:[1,x.length],x:z+(v.width-b.width)/2,y:H+v.height+i/2-b.height/2}))}else d.length>=2&&M.push(f(Y,{indexes:[1,0],x:z+(v.width-b.width)/2,y:E-b.height/2}));return d.length<2&&M.push(f(Y,{indexes:[1],x:z+(v.width-b.width)/2,y:E+(C-b.height)/2})),P&&A.push(f(P,{x:F,y:E+(C-w.height)/2,colorPrimary:_.colorPrimary,colorBg:_.colorBg,colorPositive:wt(c,[0])||_.colorPrimary,colorNegative:wt(c,[1])||_.colorPrimary})),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,S(W,{children:[f(W,{children:A}),f(vt,{children:$}),f(gt,{children:M})]})]})};$t("compare-binary-horizontal",{component:Wp,composites:["title","item"]});var kO=Object.defineProperty,Xp=Object.getOwnPropertySymbols,TO=Object.prototype.hasOwnProperty,zO=Object.prototype.propertyIsEnumerable,Yp=(t,e,n)=>e in t?kO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vp=(t,e)=>{for(var n in e||(e={}))TO.call(e,n)&&Yp(t,n,e[n]);if(Xp)for(var n of Xp(e))zO.call(e,n)&&Yp(t,n,e[n]);return t};const HO={none:5,"dot-line":100,"arc-dot":20,"split-line":5},qp=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:h=!1,flipLeaf:u=!1,options:d}=t,[p,g]=i,{title:y,desc:m,items:x=[]}=o,_=r?f(r,{title:y,desc:m}):null,v=f(p,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),b=f(g,{indexes:[0,0],data:o,datum:((n=(e=x[0])==null?void 0:e.children)==null?void 0:n[0])||x[2]}),P=Z(v),w=Z(b),$=[],M=[],[A,I]=x,C=(A==null?void 0:A.children)||[],k=(I==null?void 0:I.children)||[],E=Math.max(P.height,C.length*(w.height+s)-s,k.length*(w.height+s)-s),L=HO[l]||0,F=w.width+L,z=F+P.width+a,j=(E-P.height)/2;A&&$.push(f(p,{indexes:[0],x:F,y:j,data:o,datum:A,positionH:h?"normal":"flipped"})),I&&$.push(f(p,{indexes:[1],x:z,y:j,data:o,datum:I,positionH:h?"flipped":"normal"}));const R=(H,D,B)=>{if(l==="none")return;const[T,O]=D,X=wt(d,B),V={x:T,y:O,width:w.width,height:w.height,side:H,color:X||"#ccc",colorBg:d.themeConfig.colorBg||"#fff"};l==="split-line"?M.push(f(RO,Vp({},V))):l==="dot-line"&&M.push(f(LO,Vp({},V)))};if(c){const D=(2*P.width+a+w.width)/2+L,B=F+P.width+a/2,T=j+P.height/2;C.forEach((O,X)=>{const V=C.length*(w.height+s)-s,q=(E-V)/2+X*(w.height+s),U=q+w.height/2-T,Q=Math.max(0,D*D-U*U),nt=B-Math.sqrt(Q)-w.width/2;$.push(f(g,{indexes:[0,X],datum:O,data:o,x:nt,y:q,positionH:u?"flipped":"normal"})),R("left",[nt,q],[0,X])}),k.forEach((O,X)=>{const V=k.length*(w.height+s)-s,q=(E-V)/2+X*(w.height+s),U=q+w.height/2-T,Q=Math.max(0,D*D-U*U),nt=B+Math.sqrt(Q)-w.width/2;$.push(f(g,{indexes:[1,X],datum:O,data:o,x:nt,y:q,positionH:u?"normal":"flipped"})),R("right",[nt,q],[1,X])})}else C.forEach((H,D)=>{const B=C.length*(w.height+s)-s,O=(E-B)/2+D*(w.height+s),X=[0,D],V=0;$.push(f(g,{indexes:X,datum:H,data:o,x:V,y:O,positionH:u?"flipped":"normal"})),R("left",[V,O],X)}),k.forEach((H,D)=>{const B=k.length*(w.height+s)-s,O=(E-B)/2+D*(w.height+s),X=[1,D],V=z+P.width+L;$.push(f(g,{indexes:X,datum:H,data:o,x:V,y:O,positionH:u?"normal":"flipped"})),R("right",[V,O],X)});return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[_,S(W,{children:[f(vt,{children:$}),f(W,{width:0,height:0,children:M})]})]})},RO=t=>{const{x:e,y:n,width:r,height:i,color:o,colorBg:s,side:a}=t,l=n+i,c=`split-line-linear-gradient-${a}`;return S(yt,{children:[f(_t,{children:f(ua,{id:c,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),f(pt,{x:e,y:l,width:r,height:1,fill:`url(#${c})`})]})},LO=t=>{const{x:e,y:n,side:r,width:i,height:o,color:s,colorBg:a}=t,l=6,c=l/3,h=l*2,u=c*2,d=5,p=r==="left"?e+i+l+d:e-l-d,g=n+o/2,y=p-c,m=g-c,x=80,_=r==="left"?x:-x,v=`dot-line-linear-gradient-${r}`;return S(W,{children:[f(_t,{children:f(ua,{id:v,startColor:s,stopColor:a,direction:r==="left"?"left-right":"right-left"})}),S(Dt,{children:[f(xt,{x:p-l,y:g-l,width:h,height:h,fill:"none",strokeWidth:1,stroke:s}),f(xt,{x:y,y:m,width:u,height:u,fill:s})]}),f(pt,{x:r==="left"?p:p+_,y:g-.5,width:x,height:1,fill:`url(#${v})`})]})};$t("compare-hierarchy-left-right",{component:qp,composites:["title","item"]});const Gp=t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:h=!0,columnBackgroundAlpha:u=.08,options:d}=t,[p,g]=i,{title:y,desc:m,items:x=[]}=o,_=r?f(r,{title:y,desc:m}):null,v=Vu(d),b=[],P=[],w=l-c*2,$=Z(f(p,{indexes:[0],data:o,datum:x[0],width:l})),M=Z(f(g,{indexes:[0,0],data:o,datum:((n=(e=x[0])==null?void 0:e.children)==null?void 0:n[0])||{},width:w})),A=Z(f(Y,{indexes:[0]})),I=Math.max(...x.map(k=>{var E;return((E=k.children)==null?void 0:E.length)||0}),0),C=$.height+a+I*(M.height+a);if(x.forEach((k,E)=>{const{children:L=[]}=k,F=E*(l+s),z=F,j=0;if(h){const B=`${v[E%v.length]}${Math.round(u*255).toString(16).padStart(2,"0")}`;b.push(f(pt,{x:F,y:j,width:l,height:C,fill:B,rx:0,ry:0,"data-element-type":"shape"}))}b.push(f(p,{indexes:[E],datum:k,data:o,x:z,y:j,width:l})),P.push(f(At,{indexes:[E],x:z+$.width-A.width-10,y:j+10})),E===0&&P.push(f(Y,{indexes:[E],x:z+$.width/2-A.width/2,y:j-A.height-5}));const R=j+$.height+a;L.forEach((D,B)=>{const T=R+B*(M.height+a),O=z+c,X=[E,B];b.push(f(g,{indexes:X,datum:D,data:o,x:O,y:T,width:w})),P.push(f(At,{indexes:X,x:O+M.width-A.width-10,y:T+(M.height-A.height)/2})),B<L.length-1&&P.push(f(Y,{indexes:[E,B+1],x:O+M.width/2-A.width/2,y:T+M.height-A.height/2}))});const H=z+c;if(L.length>0){const D=R+L.length*(M.height+a);P.push(f(Y,{indexes:[E,L.length],x:H+M.width/2-A.width/2,y:D-M.height/2-A.height/2}))}else P.push(f(Y,{indexes:[E,0],x:H+M.width/2-A.width/2,y:R-a/2-A.height/2}))}),x.length>0){const k=x.length*(l+s);P.push(f(Y,{indexes:[x.length],x:k-s/2-A.width/2,y:-A.height-5}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[_,S(W,{children:[f(vt,{children:b}),f(gt,{children:P})]})]})};$t("compare-hierarchy-row",{component:Gp,composites:["title","item"]});var NO=Object.defineProperty,DO=Object.defineProperties,jO=Object.getOwnPropertyDescriptors,Up=Object.getOwnPropertySymbols,FO=Object.prototype.hasOwnProperty,BO=Object.prototype.propertyIsEnumerable,Zp=(t,e,n)=>e in t?NO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ao=(t,e)=>{for(var n in e||(e={}))FO.call(e,n)&&Zp(t,n,e[n]);if(Up)for(var n of Up(e))BO.call(e,n)&&Zp(t,n,e[n]);return t},lo=(t,e)=>DO(t,jO(e));const Qp=t=>{const{Title:e,Items:n,data:r,levelGap:i=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:h="5,5",edgeCornerRadius:u=0,edgeOffset:d=0,edgeOrigin:p="center",edgeOriginPadding:g=20,edgeMarker:y="none",markerSize:m=12,colorMode:x="branch",options:_}=t,{title:v,desc:b}=r,P=Zt(_),w=U=>{var Q;const K=[...U];return(Q=K[0])!=null&&Q.children||(K[0]=lo(ao({},K[0]),{children:K.slice(1)}),K.splice(1)),K},$=(U,Q,K,nt,ct)=>{const rt=Q+(nt-Q)/2,ht=Math.min(ct,Math.abs(nt-Q)/2,Math.abs(K-U)/2);return ht===0?`M ${U} ${Q} L ${U} ${rt} L ${K} ${rt} L ${K} ${nt}`:`M ${U} ${Q}
83
83
  L ${U} ${rt-ht}
84
84
  Q ${U} ${rt} ${U+(K>U?ht:-ht)} ${rt}
85
85
  L ${K-(K>U?ht:-ht)} ${rt}
86
86
  Q ${K} ${rt} ${K} ${rt+ht}
87
- L ${K} ${nt}`},M=U=>{var Q;if(!U.length)return null;const K=U[0],nt=(ct,rt=[],ht=0)=>{var dt,Mt;const St=[...rt,ht];return lo(ao({},ct),{_originalIndex:St,_depth:St.length-1,children:(Mt=(dt=ct.children)==null?void 0:dt.map((mt,It)=>nt(mt,St,It)))!=null?Mt:[]})};return(Q=K.children)!=null&&Q.length?nt(K):lo(ao({},K),{_originalIndex:[0],_depth:0,children:U.slice(1).map((ct,rt)=>lo(ao({},ct),{_originalIndex:[rt+1],_depth:1}))})},A=U=>{var Q,K;let nt=0,ct=0;const rt=new Map,ht=new Map;U.each(dt=>{ht.has(dt.depth)||ht.set(dt.depth,dt.data)});for(let dt=0;dt<U.height+1;dt++){const Mt=Uu(n,dt),St=(Q=ht.get(dt))!=null?Q:{},mt=(K=St._originalIndex)!=null?K:Array(dt+1).fill(0),It=Z(f(Mt,{indexes:mt,data:r,datum:St,positionH:"center"}));rt.set(dt,It),nt=Math.max(nt,It.width),ct=Math.max(ct,It.height)}return{levelBounds:rt,maxWidth:nt,maxHeight:ct}},I=(U,Q,K,nt,ct,rt)=>{const{x:ht,y:dt,depth:Mt,data:St,parent:mt}=U,It=St._originalIndex,ve=Uu(n,Mt),Xt=Q.get(Mt),Jt=ht+nt.x-Xt.width/2,Ut=dt+nt.y,Bt={items:[],btns:[],deco:[]},We=Ri({depth:Mt,originalIndexes:It,flatIndex:St._flatIndex},x),ln=wt(_,We),Xe=ge({colorPrimary:ln},_);if(Bt.items.push(f(ve,{indexes:It,datum:St,data:r,x:Jt,y:Ut,positionH:"center",themeColors:Xe})),Bt.btns.push(f(At,{indexes:It,x:Jt+(Xt.width-K.width)/2,y:Ut+Xt.height+5}),f(Y,{indexes:[...It,0],x:Jt+(Xt.width-K.width)/2,y:Ut+Xt.height+K.height+10})),mt){const ce=Q.get(mt.depth),wo=rt.filter(Yt=>Yt.parent===mt),i1=wo.findIndex(Yt=>Yt===U),Mr=wo.length;let he;if(p==="distributed"&&Mr>1){const Yt=mt.x+nt.x-ce.width/2+g,Rn=(mt.x+nt.x+ce.width/2-g-Yt)/Mr;he=Yt+Rn*i1+Rn/2}else he=mt.x+nt.x;const Oe=mt.y+nt.y+ce.height+d,fe=ht+nt.x;let cn=dt+nt.y-d;y==="arrow"&&(cn-=m);let $o;if(s==="curved"){const Yt=Oe+(cn-Oe)/2;$o=`M ${he} ${Oe} C ${he} ${Yt}, ${fe} ${Yt}, ${fe} ${cn}`}else if(u>0)$o=$(he,Oe,fe,cn,u);else{const Yt=Oe+(cn-Oe)/2;$o=`M ${he} ${Oe} L ${he} ${Yt} L ${fe} ${Yt} L ${fe} ${cn}`}let o1=P;if(a==="gradient"){const Yt=Ri({depth:mt.depth,originalIndexes:mt.data._originalIndex,flatIndex:mt.data._flatIndex},x),Hn=Ri({depth:Mt,originalIndexes:It,flatIndex:St._flatIndex},x),Rn=wt(_,Yt),XS=wt(_,Hn),s1=`gradient-${mt.data._originalIndex.join("-")}-${It.join("-")}`;ct.push(S("linearGradient",{id:s1,x1:he,y1:Oe,x2:fe,y2:cn,gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0%",stopColor:Rn}),f("stop",{offset:"100%",stopColor:XS})]})),o1=`url(#${s1})`}const WS=c==="dashed"?h:"";if(Bt.deco.push(f(ot,{d:$o,stroke:o1,strokeWidth:l,strokeDasharray:WS,fill:"none"})),y==="arrow"){const Yt=a==="gradient"?wt(_,We):Zt(_),Hn=[{x:fe,y:dt+nt.y-d},{x:fe-m/2,y:dt+nt.y-d-m},{x:fe+m/2,y:dt+nt.y-d-m}];Bt.deco.push(f(be,{points:Hn,fill:Yt,width:m,height:m}))}if(y==="dot"){const Yt=Ri({depth:mt.depth,originalIndexes:mt.data._originalIndex,flatIndex:mt.data._flatIndex},x),Hn=a==="gradient"?wt(_,Yt):Zt(_);Bt.deco.push(f(xt,{x:he-m,y:mt.y+nt.y+ce.height+d-m,width:m*2,height:m*2,fill:Hn}));const Rn=a==="gradient"?wt(_,We):Zt(_);Bt.deco.push(f(xt,{x:fe-m,y:dt+nt.y-d-m,width:m*2,height:m*2,fill:Rn}))}}return Bt},C=(U,Q,K)=>{const nt=new Map;U.forEach(rt=>{var ht;const dt=rt.parent?rt.parent.data._originalIndex.join("-"):"root";((ht=nt.get(dt))!=null?ht:nt.set(dt,[]).get(dt)).push(rt)});const ct=[];return nt.forEach(rt=>{if(rt.length<=1)return;const ht=rt.slice().sort((Mt,St)=>Mt.x-St.x),dt=ht[0].y+K.y-Q.height-5;for(let Mt=0;Mt<ht.length-1;Mt++){const St=(ht[Mt].x+ht[Mt+1].x)/2+K.x-Q.width/2,mt=ht[Mt].data._originalIndex.slice(0,-1),It=ht[Mt].data._originalIndex.at(-1)+1;ct.push(f(Y,{indexes:[...mt,It],x:St,y:dt}))}}),ct},k=w(r.items),E=e?f(e,{title:v,desc:b}):null,L=Z(f(Y,{indexes:[0]}));if(!k.length)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:-L.width/2,y:-L.height/2})})})]});const F=M(k),z=ja(F),{levelBounds:j,maxWidth:R,maxHeight:H}=A(z),B=IP().nodeSize([R+o,H+i]).separation(()=>1)(z).descendants(),T=Math.min(...B.map(U=>U.x)),O=Math.min(...B.map(U=>U.y)),X={x:Math.max(0,-T+R/2),y:Math.max(0,-O+L.height+10)},V=[],et=[],q=[],lt=[];return B.forEach((U,Q)=>{U.data._flatIndex=Q}),B.forEach(U=>{const{items:Q,btns:K,deco:nt}=I(U,j,L,X,lt,B);V.push(...Q),et.push(...K),q.push(...nt)}),et.push(...C(B,L,X)),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,S(W,{children:[lt.length>0&&f(_t,{children:lt}),f(Dt,{children:q}),f(vt,{children:V}),f(gt,{children:et})]})]})};$t("hierarchy-tree",{component:Qp,composites:["title","item"]});const Kp=t=>{const{Title:e,Item:n,data:r,gap:i=20,width:o,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:c[0]})),d=o||u.width,p=e?f(e,{title:a,desc:l}):null,g=[],y=[],m=(d-h.width)/2;if(c.forEach((x,_)=>{const v=(u.height+i)*_,b=[_];y.push(f(n,{indexes:b,datum:x,data:r,y:v,width:d,positionV:"middle",positionH:s?_%2===0?"normal":"flipped":"normal"})),g.push(f(At,{indexes:b,x:-h.width-10,y:v+(u.height-h.height)/2}));const P=_===0?-h.height:v-i/2-h.height/2;g.push(f(Y,{indexes:b,x:m,y:P}))}),c.length>0){const _=(u.height+i)*(c.length-1)+u.height;g.push(f(Y,{indexes:[c.length],x:m,y:_}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,S(W,{children:[f(vt,{children:y}),f(gt,{children:g})]})]})};$t("list-column",{component:Kp,composites:["title","item"]});const Jp=t=>{const{Title:e,Item:n,data:r,columns:i=3,gap:o=24,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null,u=Z(f(Y,{indexes:[0]})),d=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],y=d.height+o,m=d.width+o,x=new Set;return c.forEach((_,v)=>{const b=Math.floor(v/i),P=v%i,w=P*m,$=b*y,M=[v];g.push(f(n,{indexes:M,datum:_,data:r,x:w,y:$,positionH:"center",positionV:s&&v%2===0?"normal":"flipped"})),p.push(f(At,{indexes:M,x:w+(d.width-u.width)/2,y:$+d.height})),P<i-1&&p.push(f(Y,{indexes:[v+1],x:w+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2})),P===0&&!x.has(b)&&(p.push(f(Y,{indexes:[v],x:w-o/2-u.width/2,y:$+(d.height-u.height)/2})),x.add(b)),(P===i-1||v===c.length-1)&&p.push(f(Y,{indexes:[v+1],x:w+d.width+o/2-u.width/2,y:$+(d.height-u.height)/2}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{children:[f(vt,{children:g}),f(gt,{children:p})]})]})};$t("list-grid",{component:Jp,composites:["title","item"]});const tg=t=>{const{Title:e,Item:n,data:r,gap:i=20,levelGap:o=20}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[],g=Math.ceil(Math.sqrt(l.length)),y=[];let m=l.length;for(let P=0;P<g;P++){const w=Math.min(P+1,m);if(y.push(w),m-=w,m<=0)break}let x=0;const _=Math.max(...y),b=(_*u.width+(_-1)*i)/2;return y.forEach((P,w)=>{const $=w*(u.height+o),M=P*u.width+(P-1)*i,A=b-M/2;for(let I=0;I<P&&x<l.length;I++){const C=A+I*(u.width+i),k=l[x],E=[x];p.push(f(n,{indexes:E,datum:k,data:r,x:C,y:$,positionH:"center"})),d.push(f(At,{indexes:E,x:C+(u.width-h.width)/2,y:$+u.height})),I<P-1&&d.push(f(Y,{indexes:[x+1],x:C+u.width+(i-h.width)/2,y:$+(u.height-h.height)/2})),I===0&&d.push(f(Y,{indexes:[x],x:C-i/2-h.width/2,y:$+(u.height-h.height)/2})),I===P-1&&d.push(f(Y,{indexes:[x+1],x:C+u.width+i/2-h.width/2,y:$+(u.height-h.height)/2})),x++}}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(vt,{children:p}),f(gt,{children:d})]})]})};$t("list-pyramid",{component:tg,composites:["title","item"]});const eg=t=>{const{Title:e,Item:n,data:r,gap:i=20,zigzag:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[],g=(u.height-h.height)/2,y=u.height;if(l.forEach((m,x)=>{const _=(u.width+i)*x,v=[x];p.push(f(n,{indexes:v,datum:m,data:r,x:_,positionH:"center",positionV:o&&x%2===0?"normal":"flipped"})),d.push(f(At,{indexes:v,x:_+(u.width-h.width)/2,y}));const b=x===0?-(i+h.width)/2:_-(i+h.width)/2;d.push(f(Y,{indexes:v,x:b,y:g}))}),l.length>0){const x=(u.width+i)*(l.length-1)+u.width+(i-h.width)/2;d.push(f(Y,{indexes:[l.length],x,y:g}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(vt,{children:p}),f(gt,{children:d})]})]})};$t("list-row",{component:eg,composites:["title","item"]});var jO=Object.defineProperty,ng=Object.getOwnPropertySymbols,FO=Object.prototype.hasOwnProperty,BO=Object.prototype.propertyIsEnumerable,rg=(t,e,n)=>e in t?jO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,WO=(t,e)=>{for(var n in e||(e={}))FO.call(e,n)&&rg(t,n,e[n]);if(ng)for(var n of ng(e))BO.call(e,n)&&rg(t,n,e[n]);return t};const ig=t=>{const{Item:e,data:n,outerRadius:r=250,innerRadius:i=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=t,{title:c,items:h=[]}=n,u=ge(l.themeConfig),d=Z(f(Y,{indexes:[0]})),p=[],g=[],y=[],m=r+100,x=r+100,_=s-o,v=Math.abs(_-360)<.01,b=h.length>0?a*(v?h.length:h.length-1):0,P=_-b,w=h.length>0?P/h.length:0;if(h.forEach((E,L)=>{var F;const z=[L],j=o+(w+a)*L,R=j+w,D=a*Math.PI*r/180/i*(180/Math.PI),B=a,T=(j+B/2)*Math.PI/180,O=(R-B/2)*Math.PI/180,X=(j+D/2)*Math.PI/180,V=(R-D/2)*Math.PI/180,et=m+r*Math.cos(T),q=x+r*Math.sin(T),lt=m+r*Math.cos(O),U=x+r*Math.sin(O),Q=m+i*Math.cos(X),K=x+i*Math.sin(X),nt=m+i*Math.cos(V),ct=x+i*Math.sin(V),rt=w>180?1:0,ht=`
87
+ L ${K} ${nt}`},M=U=>{var Q;if(!U.length)return null;const K=U[0],nt=(ct,rt=[],ht=0)=>{var dt,Mt;const St=[...rt,ht];return lo(ao({},ct),{_originalIndex:St,_depth:St.length-1,children:(Mt=(dt=ct.children)==null?void 0:dt.map((mt,It)=>nt(mt,St,It)))!=null?Mt:[]})};return(Q=K.children)!=null&&Q.length?nt(K):lo(ao({},K),{_originalIndex:[0],_depth:0,children:U.slice(1).map((ct,rt)=>lo(ao({},ct),{_originalIndex:[rt+1],_depth:1}))})},A=U=>{var Q,K;let nt=0,ct=0;const rt=new Map,ht=new Map;U.each(dt=>{ht.has(dt.depth)||ht.set(dt.depth,dt.data)});for(let dt=0;dt<U.height+1;dt++){const Mt=Uu(n,dt),St=(Q=ht.get(dt))!=null?Q:{},mt=(K=St._originalIndex)!=null?K:Array(dt+1).fill(0),It=Z(f(Mt,{indexes:mt,data:r,datum:St,positionH:"center"}));rt.set(dt,It),nt=Math.max(nt,It.width),ct=Math.max(ct,It.height)}return{levelBounds:rt,maxWidth:nt,maxHeight:ct}},I=(U,Q,K,nt,ct,rt)=>{const{x:ht,y:dt,depth:Mt,data:St,parent:mt}=U,It=St._originalIndex,ve=Uu(n,Mt),Xt=Q.get(Mt),Jt=ht+nt.x-Xt.width/2,Ut=dt+nt.y,Bt={items:[],btns:[],deco:[]},We=Ri({depth:Mt,originalIndexes:It,flatIndex:St._flatIndex},x),ln=wt(_,We),Xe=ge({colorPrimary:ln},_);if(Bt.items.push(f(ve,{indexes:It,datum:St,data:r,x:Jt,y:Ut,positionH:"center",themeColors:Xe})),Bt.btns.push(f(At,{indexes:It,x:Jt+(Xt.width-K.width)/2,y:Ut+Xt.height+5}),f(Y,{indexes:[...It,0],x:Jt+(Xt.width-K.width)/2,y:Ut+Xt.height+K.height+10})),mt){const ce=Q.get(mt.depth),wo=rt.filter(Yt=>Yt.parent===mt),i1=wo.findIndex(Yt=>Yt===U),Mr=wo.length;let he;if(p==="distributed"&&Mr>1){const Yt=mt.x+nt.x-ce.width/2+g,Rn=(mt.x+nt.x+ce.width/2-g-Yt)/Mr;he=Yt+Rn*i1+Rn/2}else he=mt.x+nt.x;const Oe=mt.y+nt.y+ce.height+d,fe=ht+nt.x;let cn=dt+nt.y-d;y==="arrow"&&(cn-=m);let $o;if(s==="curved"){const Yt=Oe+(cn-Oe)/2;$o=`M ${he} ${Oe} C ${he} ${Yt}, ${fe} ${Yt}, ${fe} ${cn}`}else if(u>0)$o=$(he,Oe,fe,cn,u);else{const Yt=Oe+(cn-Oe)/2;$o=`M ${he} ${Oe} L ${he} ${Yt} L ${fe} ${Yt} L ${fe} ${cn}`}let o1=P;if(a==="gradient"){const Yt=Ri({depth:mt.depth,originalIndexes:mt.data._originalIndex,flatIndex:mt.data._flatIndex},x),Hn=Ri({depth:Mt,originalIndexes:It,flatIndex:St._flatIndex},x),Rn=wt(_,Yt),qS=wt(_,Hn),s1=`gradient-${mt.data._originalIndex.join("-")}-${It.join("-")}`;ct.push(S("linearGradient",{id:s1,x1:he,y1:Oe,x2:fe,y2:cn,gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0%",stopColor:Rn}),f("stop",{offset:"100%",stopColor:qS})]})),o1=`url(#${s1})`}const VS=c==="dashed"?h:"";if(Bt.deco.push(f(ot,{d:$o,stroke:o1,strokeWidth:l,strokeDasharray:VS,fill:"none"})),y==="arrow"){const Yt=a==="gradient"?wt(_,We):Zt(_),Hn=[{x:fe,y:dt+nt.y-d},{x:fe-m/2,y:dt+nt.y-d-m},{x:fe+m/2,y:dt+nt.y-d-m}];Bt.deco.push(f(be,{points:Hn,fill:Yt,width:m,height:m}))}if(y==="dot"){const Yt=Ri({depth:mt.depth,originalIndexes:mt.data._originalIndex,flatIndex:mt.data._flatIndex},x),Hn=a==="gradient"?wt(_,Yt):Zt(_);Bt.deco.push(f(xt,{x:he-m,y:mt.y+nt.y+ce.height+d-m,width:m*2,height:m*2,fill:Hn}));const Rn=a==="gradient"?wt(_,We):Zt(_);Bt.deco.push(f(xt,{x:fe-m,y:dt+nt.y-d-m,width:m*2,height:m*2,fill:Rn}))}}return Bt},C=(U,Q,K)=>{const nt=new Map;U.forEach(rt=>{var ht;const dt=rt.parent?rt.parent.data._originalIndex.join("-"):"root";((ht=nt.get(dt))!=null?ht:nt.set(dt,[]).get(dt)).push(rt)});const ct=[];return nt.forEach(rt=>{if(rt.length<=1)return;const ht=rt.slice().sort((Mt,St)=>Mt.x-St.x),dt=ht[0].y+K.y-Q.height-5;for(let Mt=0;Mt<ht.length-1;Mt++){const St=(ht[Mt].x+ht[Mt+1].x)/2+K.x-Q.width/2,mt=ht[Mt].data._originalIndex.slice(0,-1),It=ht[Mt].data._originalIndex.at(-1)+1;ct.push(f(Y,{indexes:[...mt,It],x:St,y:dt}))}}),ct},k=w(r.items),E=e?f(e,{title:v,desc:b}):null,L=Z(f(Y,{indexes:[0]}));if(!k.length)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:-L.width/2,y:-L.height/2})})})]});const F=M(k),z=ja(F),{levelBounds:j,maxWidth:R,maxHeight:H}=A(z),B=kP().nodeSize([R+o,H+i]).separation(()=>1)(z).descendants(),T=Math.min(...B.map(U=>U.x)),O=Math.min(...B.map(U=>U.y)),X={x:Math.max(0,-T+R/2),y:Math.max(0,-O+L.height+10)},V=[],et=[],q=[],lt=[];return B.forEach((U,Q)=>{U.data._flatIndex=Q}),B.forEach(U=>{const{items:Q,btns:K,deco:nt}=I(U,j,L,X,lt,B);V.push(...Q),et.push(...K),q.push(...nt)}),et.push(...C(B,L,X)),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,S(W,{children:[lt.length>0&&f(_t,{children:lt}),f(Dt,{children:q}),f(vt,{children:V}),f(gt,{children:et})]})]})};$t("hierarchy-tree",{component:Qp,composites:["title","item"]});const Kp=t=>{const{Title:e,Item:n,data:r,gap:i=20,width:o,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:c[0]})),d=o||u.width,p=e?f(e,{title:a,desc:l}):null,g=[],y=[],m=(d-h.width)/2;if(c.forEach((x,_)=>{const v=(u.height+i)*_,b=[_];y.push(f(n,{indexes:b,datum:x,data:r,y:v,width:d,positionV:"middle",positionH:s?_%2===0?"normal":"flipped":"normal"})),g.push(f(At,{indexes:b,x:-h.width-10,y:v+(u.height-h.height)/2}));const P=_===0?-h.height:v-i/2-h.height/2;g.push(f(Y,{indexes:b,x:m,y:P}))}),c.length>0){const _=(u.height+i)*(c.length-1)+u.height;g.push(f(Y,{indexes:[c.length],x:m,y:_}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,S(W,{children:[f(vt,{children:y}),f(gt,{children:g})]})]})};$t("list-column",{component:Kp,composites:["title","item"]});const Jp=t=>{const{Title:e,Item:n,data:r,columns:i=3,gap:o=24,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null,u=Z(f(Y,{indexes:[0]})),d=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],y=d.height+o,m=d.width+o,x=new Set;return c.forEach((_,v)=>{const b=Math.floor(v/i),P=v%i,w=P*m,$=b*y,M=[v];g.push(f(n,{indexes:M,datum:_,data:r,x:w,y:$,positionH:"center",positionV:s&&v%2===0?"normal":"flipped"})),p.push(f(At,{indexes:M,x:w+(d.width-u.width)/2,y:$+d.height})),P<i-1&&p.push(f(Y,{indexes:[v+1],x:w+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2})),P===0&&!x.has(b)&&(p.push(f(Y,{indexes:[v],x:w-o/2-u.width/2,y:$+(d.height-u.height)/2})),x.add(b)),(P===i-1||v===c.length-1)&&p.push(f(Y,{indexes:[v+1],x:w+d.width+o/2-u.width/2,y:$+(d.height-u.height)/2}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{children:[f(vt,{children:g}),f(gt,{children:p})]})]})};$t("list-grid",{component:Jp,composites:["title","item"]});const tg=t=>{const{Title:e,Item:n,data:r,gap:i=20,levelGap:o=20}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[],g=Math.ceil(Math.sqrt(l.length)),y=[];let m=l.length;for(let P=0;P<g;P++){const w=Math.min(P+1,m);if(y.push(w),m-=w,m<=0)break}let x=0;const _=Math.max(...y),b=(_*u.width+(_-1)*i)/2;return y.forEach((P,w)=>{const $=w*(u.height+o),M=P*u.width+(P-1)*i,A=b-M/2;for(let I=0;I<P&&x<l.length;I++){const C=A+I*(u.width+i),k=l[x],E=[x];p.push(f(n,{indexes:E,datum:k,data:r,x:C,y:$,positionH:"center"})),d.push(f(At,{indexes:E,x:C+(u.width-h.width)/2,y:$+u.height})),I<P-1&&d.push(f(Y,{indexes:[x+1],x:C+u.width+(i-h.width)/2,y:$+(u.height-h.height)/2})),I===0&&d.push(f(Y,{indexes:[x],x:C-i/2-h.width/2,y:$+(u.height-h.height)/2})),I===P-1&&d.push(f(Y,{indexes:[x+1],x:C+u.width+i/2-h.width/2,y:$+(u.height-h.height)/2})),x++}}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(vt,{children:p}),f(gt,{children:d})]})]})};$t("list-pyramid",{component:tg,composites:["title","item"]});const eg=t=>{const{Title:e,Item:n,data:r,gap:i=20,zigzag:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[],g=(u.height-h.height)/2,y=u.height;if(l.forEach((m,x)=>{const _=(u.width+i)*x,v=[x];p.push(f(n,{indexes:v,datum:m,data:r,x:_,positionH:"center",positionV:o&&x%2===0?"normal":"flipped"})),d.push(f(At,{indexes:v,x:_+(u.width-h.width)/2,y}));const b=x===0?-(i+h.width)/2:_-(i+h.width)/2;d.push(f(Y,{indexes:v,x:b,y:g}))}),l.length>0){const x=(u.width+i)*(l.length-1)+u.width+(i-h.width)/2;d.push(f(Y,{indexes:[l.length],x,y:g}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(vt,{children:p}),f(gt,{children:d})]})]})};$t("list-row",{component:eg,composites:["title","item"]});var WO=Object.defineProperty,ng=Object.getOwnPropertySymbols,XO=Object.prototype.hasOwnProperty,YO=Object.prototype.propertyIsEnumerable,rg=(t,e,n)=>e in t?WO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,VO=(t,e)=>{for(var n in e||(e={}))XO.call(e,n)&&rg(t,n,e[n]);if(ng)for(var n of ng(e))YO.call(e,n)&&rg(t,n,e[n]);return t};const ig=t=>{const{Item:e,data:n,outerRadius:r=250,innerRadius:i=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=t,{title:c,items:h=[]}=n,u=ge(l.themeConfig),d=Z(f(Y,{indexes:[0]})),p=[],g=[],y=[],m=r+100,x=r+100,_=s-o,v=Math.abs(_-360)<.01,b=h.length>0?a*(v?h.length:h.length-1):0,P=_-b,w=h.length>0?P/h.length:0;if(h.forEach((E,L)=>{var F;const z=[L],j=o+(w+a)*L,R=j+w,D=a*Math.PI*r/180/i*(180/Math.PI),B=a,T=(j+B/2)*Math.PI/180,O=(R-B/2)*Math.PI/180,X=(j+D/2)*Math.PI/180,V=(R-D/2)*Math.PI/180,et=m+r*Math.cos(T),q=x+r*Math.sin(T),lt=m+r*Math.cos(O),U=x+r*Math.sin(O),Q=m+i*Math.cos(X),K=x+i*Math.sin(X),nt=m+i*Math.cos(V),ct=x+i*Math.sin(V),rt=w>180?1:0,ht=`
88
88
  M ${et} ${q}
89
89
  A ${r} ${r} 0 ${rt} 1 ${lt} ${U}
90
90
  L ${nt} ${ct}
91
91
  A ${i} ${i} 0 ${rt} 0 ${Q} ${K}
92
92
  Z
93
- `.trim(),dt=wt(l,z);y.push(f(ot,{id:"shape-sector",d:ht,fill:dt,width:r*2+200,height:r*2+200,"data-element-type":"shape"}));const St=(j+w/2)*Math.PI/180,mt=(r+i)/2,It=r-i,ve=w*Math.PI/180,Xt=mt*ve,Jt=Math.min(Xt*.8,It*.9),Ut=Math.min(It*.9,Xt*.8),Bt=Z(f(e,{indexes:[0],data:n,datum:h[0],positionH:"center",width:Jt,height:Ut})),We=m+mt*Math.cos(St)-Bt.width/2,ln=x+mt*Math.sin(St)-Bt.height/2;g.push(f(e,{indexes:z,datum:E,data:n,x:We,y:ln,positionH:"center",width:Jt,height:Ut,themeColors:WO({},ge({colorBg:wt(l,z),colorPrimary:((F=l.themeConfig)==null?void 0:F.colorBg)||"white"}))}));const Xe=r+10,ce=m+Xe*Math.cos(St)-d.width/2,wo=x+Xe*Math.sin(St)-d.height/2;if(p.push(f(At,{indexes:z,x:ce,y:wo})),v||L<h.length-1){const Mr=(R+a/2)*Math.PI/180,he=mt,Oe=m+he*Math.cos(Mr)-d.width/2,fe=x+he*Math.sin(Mr)-d.height/2;p.push(f(Y,{indexes:[L+1],x:Oe,y:fe}))}}),h.length>0){const L=(o-a/2)*Math.PI/180,F=(r+i)/2,z=m+F*Math.cos(L)-d.width/2,j=x+F*Math.sin(L)-d.height/2;p.push(f(Y,{indexes:[0],x:z,y:j}))}const $=i*.9;let M=m,A=x,I=$*1.4,C=$*1.4;if(!v){const L=(o+s)/2*Math.PI/180,F=$*.5;M=m+F*Math.cos(L),A=x+F*Math.sin(L);const z=_*Math.PI*F/180;I=Math.min(z*.8,$*1.4),C=Math.min(F*1.5,$*1.4)}let k="";if(v)k="";else{const E=o*Math.PI/180,L=s*Math.PI/180,F=m+$*Math.cos(E),z=x+$*Math.sin(E),j=m+$*Math.cos(L),R=x+$*Math.sin(L),H=_>180?1:0;k=`
93
+ `.trim(),dt=wt(l,z);y.push(f(ot,{id:"shape-sector",d:ht,fill:dt,width:r*2+200,height:r*2+200,"data-element-type":"shape"}));const St=(j+w/2)*Math.PI/180,mt=(r+i)/2,It=r-i,ve=w*Math.PI/180,Xt=mt*ve,Jt=Math.min(Xt*.8,It*.9),Ut=Math.min(It*.9,Xt*.8),Bt=Z(f(e,{indexes:[0],data:n,datum:h[0],positionH:"center",width:Jt,height:Ut})),We=m+mt*Math.cos(St)-Bt.width/2,ln=x+mt*Math.sin(St)-Bt.height/2;g.push(f(e,{indexes:z,datum:E,data:n,x:We,y:ln,positionH:"center",width:Jt,height:Ut,themeColors:VO({},ge({colorBg:wt(l,z),colorPrimary:((F=l.themeConfig)==null?void 0:F.colorBg)||"white"}))}));const Xe=r+10,ce=m+Xe*Math.cos(St)-d.width/2,wo=x+Xe*Math.sin(St)-d.height/2;if(p.push(f(At,{indexes:z,x:ce,y:wo})),v||L<h.length-1){const Mr=(R+a/2)*Math.PI/180,he=mt,Oe=m+he*Math.cos(Mr)-d.width/2,fe=x+he*Math.sin(Mr)-d.height/2;p.push(f(Y,{indexes:[L+1],x:Oe,y:fe}))}}),h.length>0){const L=(o-a/2)*Math.PI/180,F=(r+i)/2,z=m+F*Math.cos(L)-d.width/2,j=x+F*Math.sin(L)-d.height/2;p.push(f(Y,{indexes:[0],x:z,y:j}))}const $=i*.9;let M=m,A=x,I=$*1.4,C=$*1.4;if(!v){const L=(o+s)/2*Math.PI/180,F=$*.5;M=m+F*Math.cos(L),A=x+F*Math.sin(L);const z=_*Math.PI*F/180;I=Math.min(z*.8,$*1.4),C=Math.min(F*1.5,$*1.4)}let k="";if(v)k="";else{const E=o*Math.PI/180,L=s*Math.PI/180,F=m+$*Math.cos(E),z=x+$*Math.sin(E),j=m+$*Math.cos(L),R=x+$*Math.sin(L),H=_>180?1:0;k=`
94
94
  M ${m} ${x}
95
95
  L ${F} ${z}
96
96
  A ${$} ${$} 0 ${H} 1 ${j} ${R}
97
97
  Z
98
- `.trim()}return S(W,{id:"infographic-container",children:[f(W,{children:y}),v?f(xt,{id:"shape-center-circle",x:m-$,y:x-$,width:$*2,height:$*2,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):f(ot,{id:"shape-center-sector",d:k,fill:u.colorPrimaryBg,fillOpacity:.5,width:r*2+200,height:r*2+200,"data-element-type":"shape"}),f(zt,{id:"title",x:M-I/2,y:A-C/2,width:I,height:C,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,children:c}),f(vt,{children:g}),f(gt,{children:p})]})};$t("list-sector",{component:ig,composites:["title","item"]});const og=t=>{const{Title:e,Item:n,data:r,columns:i=4,gap:o=20,stepOffset:s=40}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null,u=Z(f(Y,{indexes:[0]})),d=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],y=d.width+o;return c.forEach((m,x)=>{const _=x%i,v=Math.floor(x/i),b=_*y,P=v*(d.height+o),w=_*s,$=P+w,M=[x];g.push(f(n,{indexes:M,datum:m,data:r,x:b,y:$,positionH:"center"})),p.push(f(At,{indexes:M,x:b+(d.width-u.width)/2,y:$+d.height+5}))}),c.forEach((m,x)=>{const _=x%i,v=Math.floor(x/i),b=_*y,P=v*(d.height+o),w=_*s,$=P+w;if(x===0&&p.push(f(Y,{indexes:[0],x:b-o/2-u.width/2,y:$+(d.height-u.height)/2})),_<i-1&&x<c.length-1){const M=Math.floor((x+1)/i);v===M&&p.push(f(Y,{indexes:[x+1],x:b+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2}))}(_===i-1||x===c.length-1)&&p.push(f(Y,{indexes:[x+1],x:b+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2}))}),c.length===0&&p.push(f(Y,{indexes:[0],x:(i-1)*y/2+(d.width-u.width)/2,y:0})),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{children:[f(vt,{children:g}),f(gt,{children:p})]})]})};$t("list-waterfall",{component:og,composites:["title","item"]});const Qa={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},sg=t=>{const{Title:e,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:h=[]}=r,u=e?f(e,{title:l,desc:c}):null,d=Array.from({length:4},(v,b)=>h[b]),p=d[0]?Z(f(n,{indexes:[0],data:r,datum:d[0]})):{width:0,height:0},g=i!=null?i:p.width+Qa.defaultExtraSpacing,y=o!=null?o:p.height+Qa.defaultExtraSpacing,m=YO(g,y,p),x=d.map((v,b)=>{if(!v)return null;const P=m[b];return f(n,{indexes:[b],datum:v,data:r,x:P.x,y:P.y,positionH:b%2?"flipped":"normal",positionV:b<2?"normal":"flipped"})}).filter(Boolean),_=XO(g,y,s,a);return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,S(W,{width:g*2,height:y*2,children:[_,f(vt,{children:x})]})]})};function XO(t,e,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=Qa,l=t,c=e,h=t*2,u=e*2,d=r?a:void 0;return[f(ot,{d:`M 0 ${c} L ${h} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),S(Dt,{transform:`translate(${h}, ${c})`,children:[f(ot,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),f(ot,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),S(Dt,{transform:`translate(0, ${c})`,children:[f(ot,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),f(ot,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),f(ot,{d:`M ${l} 0 L ${l} ${u}`,stroke:i,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),S(Dt,{transform:`translate(${l}, 0)`,children:[f(ot,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),f(ot,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),S(Dt,{transform:`translate(${l}, ${u})`,children:[f(ot,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),f(ot,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function YO(t,e,n){const r=t/2,i=e/2;return[{x:r-n.width/2,y:i-n.height/2},{x:t+r-n.width/2,y:i-n.height/2},{x:r-n.width/2,y:e+i-n.height/2},{x:t+r-n.width/2,y:e+i-n.height/2}]}$t("quadrant",{component:sg,composites:["title","item"]});const ag=t=>{const{Title:e,Item:n,data:r,radius:i=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[];if(l.length===0)return d.push(f(Y,{indexes:[0],x:-h.width/2,y:-h.height/2})),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,f(W,{children:f(gt,{children:d})})]});const g=Math.max(u.width,u.height),y=Math.max(i,g),m=y+g/2,x=l.map(()=>{const w=u.width,$=u.height;return(w+$)/2}),_=x.reduce((w,$)=>w+$,0);let v;o==="equal"?v=-Math.PI/2:v=-Math.PI/2+2*Math.PI/l.length/2;let b=v;l.forEach((w,$)=>{const M=x[$]/_*2*Math.PI,A=b+M/2;b+=M;const I=m+y*Math.cos(A)-u.width/2,C=m+y*Math.sin(A)-u.height/2;p.push(f(n,{indexes:[$],datum:w,data:r,x:I,y:C}));const k=y-Math.max(u.width,u.height)/2-20,E=m+k*Math.cos(A)-h.width/2,L=m+k*Math.sin(A)-h.height/2;d.push(f(At,{indexes:[$],x:E,y:L}))});const P=y-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let w=0;w<l.length;w++){const $=w*2*Math.PI/l.length-Math.PI/2,M=(w+1)%l.length*2*Math.PI/l.length-Math.PI/2;let A;if(w===l.length-1){const k=M+2*Math.PI-$;A=$+k/2}else A=($+M)/2;const I=m+P*Math.cos(A)-h.width/2,C=m+P*Math.sin(A)-h.height/2;d.push(f(Y,{indexes:[w+1],x:I,y:C}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(vt,{children:p}),f(gt,{children:d})]})]})};$t("relation-circle",{component:ag,composites:["title","item"]});const lg=t=>{const{Title:e,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null;if(c.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,f(W,{children:f(vt,{})})]});const u=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"}));function d(){const $=c.map((I,C)=>({id:C,data:I,isCenter:C===0,_originalIndex:[C]})),M=c.slice(1).map((I,C)=>({source:0,target:C+1})),A=Y7($).force("link",L7(M).id(I=>I.id).distance(i)).force("charge",V7().strength(-50)).force("center",m7(0,0)).force("collision",H7().radius(Math.max(u.width,u.height)/2+10));for(let I=0;I<300;++I)A.tick();return{nodes:$,links:M}}const{nodes:p,links:g}=d(),y=Math.min(...p.map($=>{var M;return(M=$.x)!=null?M:0})),m=Math.min(...p.map($=>{var M;return(M=$.y)!=null?M:0})),x=Math.max(0,-y+u.width/2),_=Math.max(0,-m+u.height/2),v=($,M)=>({positionH:$<-50?"flipped":$>50?"normal":"center",positionV:M<-50?"flipped":M>50?"normal":"middle"}),b=p.map($=>{if($.x==null||$.y==null)return null;const M=$.x+x-u.width/2,A=$.y+_-u.height/2,{positionH:I,positionV:C}=v($.x,$.y);return f(n,{indexes:$._originalIndex,datum:$.data,data:r,x:M,y:A,positionH:I,positionV:C},$.id)}).filter(Boolean),P=new Map(p.map($=>[$.id,$])),w=o?g.map($=>{const M=typeof $.source=="object"?$.source:P.get($.source),A=typeof $.target=="object"?$.target:P.get($.target);if(!M||!A||M.x==null||M.y==null||A.x==null||A.y==null)return null;const I=`M ${M.x+x} ${M.y+_} L ${A.x+x} ${A.y+_}`;return f(ot,{d:I,stroke:Zt(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{children:[f(W,{children:w}),f(vt,{children:b})]})]})};$t("relation-network",{component:lg,composites:["title","item"]});var VO=Object.defineProperty,qO=Object.defineProperties,GO=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,cg=Object.prototype.hasOwnProperty,hg=Object.prototype.propertyIsEnumerable,fg=(t,e,n)=>e in t?VO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,UO=(t,e)=>{for(var n in e||(e={}))cg.call(e,n)&&fg(t,n,e[n]);if(co)for(var n of co(e))hg.call(e,n)&&fg(t,n,e[n]);return t},ZO=(t,e)=>qO(t,GO(e)),QO=(t,e)=>{var n={};for(var r in t)cg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&co)for(var r of co(t))e.indexOf(r)<0&&hg.call(t,r)&&(n[r]=t[r]);return n};const Ka=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0}=e,s=QO(e,["width","height","colorPrimary","rotation"]);const a=`gradient-arrow-stroke-${i.replace("#","")}`,l=`gradient-arrow-fill-${i.replace("#","")}`,c=Math.round(n*.515),h=Math.round(r*.275),u=Math.round(r*.875),d=[{x:0,y:h},{x:c,y:h},{x:c,y:r*.075},{x:n,y:r*.575},{x:c,y:r*1.075},{x:c,y:u},{x:0,y:u}],p=n/2,g=r/2,y=`rotate(${o} ${p} ${g})`;return S(yt,{children:[f(be,ZO(UO({},s),{width:n,height:r,points:d,fill:`url(#${l})`,stroke:`url(#${a})`,transform:y,"data-element-type":"shape"})),S(_t,{children:[S("linearGradient",{id:l,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[f("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),f("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),S("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[f("stop",{offset:"0%","stop-color":i}),f("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},KO=({text:t,x:e=0,y:n=0,fontSize:r=56,fontWeight:i="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:h=1,midShadowOffsetY:u=2,deepShadowOpacity:d=.3,midShadowOpacity:p=.5})=>S(W,{children:[f("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),f("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:p,textAnchor:s,dominantBaseline:a,transform:`translate(${h}, ${u})`,children:t}),f("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var JO=Object.defineProperty,tC=Object.defineProperties,eC=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertySymbols,ug=Object.prototype.hasOwnProperty,dg=Object.prototype.propertyIsEnumerable,pg=(t,e,n)=>e in t?JO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nC=(t,e)=>{for(var n in e||(e={}))ug.call(e,n)&&pg(t,n,e[n]);if(ho)for(var n of ho(e))dg.call(e,n)&&pg(t,n,e[n]);return t},rC=(t,e)=>tC(t,eC(e)),iC=(t,e)=>{var n={};for(var r in t)ug.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ho)for(var r of ho(t))e.indexOf(r)<0&&dg.call(t,r)&&(n[r]=t[r]);return n};const oC=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0,strokeWidth:s=4}=e,a=iC(e,["width","height","colorPrimary","rotation","strokeWidth"]);const l=[{x:n/2,y:0},{x:n,y:r},{x:0,y:r}],c=n/2,h=r/2,u=`rotate(${o} ${c} ${h})`;return f(be,rC(nC({},a),{width:n,height:r,points:l,fill:i,stroke:i,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",transform:u}))},sC=-118,gg=118,mg=240,aC=180,lC=40,cC="M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",hC="M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",fC="M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",yg=S("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[f("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),f("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),f("feOffset",{dx:"0",dy:"4"}),f("feGaussianBlur",{stdDeviation:"6"}),f("feComposite",{in2:"hardAlpha",operator:"out"}),f("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),f("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),f("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),_g=t=>{const{Title:e,Item:n,data:r,options:i,cubeWidth:o=mg}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null;if(l.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f(_t,{children:yg}),c,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const h=Z(f(Y,{indexes:[0]})),u=[],d=[],p=[],g=o/mg,y=aC*g;return l.forEach((m,x)=>{const _=[x],v=wt(i,_),b=x*(o+sC),P=(l.length-1-x)*gg,w=`cube-gradient-bottom-${x}`,$=`cube-gradient-top-${x}`,M=`cube-gradient-stroke-${x}`;p.push(S(W,{x:b,y:P,id:`cube-${x}`,width:o,height:y,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[S(_t,{children:[S("linearGradient",{id:w,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:v,stopOpacity:"0.8"}),f("stop",{offset:"1",stopColor:v,stopOpacity:"0.4"})]}),S("linearGradient",{id:$,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:v,stopOpacity:"0.9"}),f("stop",{offset:"1",stopColor:v,stopOpacity:"0.5"})]}),S("linearGradient",{id:M,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:v}),f("stop",{offset:"1",stopColor:v,stopOpacity:"0.7"})]})]}),S(Dt,{transform:`scale(${g})`,children:[f(ot,{d:cC,fill:`url(#${w})`}),f(ot,{d:hC,fill:`url(#${$})`}),f(ot,{d:fC,fill:`url(#${M})`})]}),f(KO,{text:x+1,x:115,y:65,fontSize:56})]}));const A=b+o+lC,I=P+y/2;if(d.push(f(n,{indexes:_,datum:m,data:r,x:A,y:I,positionH:"normal"})),u.push(f(At,{indexes:_,x:b+o-h.width/2,y:P-h.height/2})),x===0&&u.push(f(Y,{indexes:[0],x:b-30-h.width/2,y:P+y/2-h.height/2})),x<l.length-1){const C=(l.length-1-(x+1))*gg,k=b+o-h.width/2,E=(P+y/2+C+y/2)/2-h.height/2;u.push(f(Y,{indexes:[x+1],x:k,y:E}))}else u.push(f(Y,{indexes:[l.length],x:b+o+30-h.width/2,y:P+y/2-h.height/2}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[f(_t,{children:yg}),c,S(W,{x:0,y:0,children:[f(W,{children:p}),f(vt,{children:d}),f(gt,{children:u})]})]})};$t("sequence-ascending-stairs-3d",{component:_g,composites:["title","item"]});const xg=t=>{const{Title:e,Item:n,data:r,hGap:i=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(n,{indexes:[0],data:r,datum:l[0]})),u=[],d=[],p=l.length,g=h.width+i,y=h.height/2+o,m=h.width/2,_=0+(p-1)*y;return l.forEach((v,b)=>{const P=m+b*g,w=_-b*y,$=[b];u.push(f(n,{indexes:$,datum:v,data:r,x:P,y:w})),d.push(f(At,{indexes:$,x:P+h.width-30,y:w+h.height/2+10})),d.push(f(Y,{indexes:$,x:P+h.width+i/2,y:w-30}))}),S(it,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(vt,{children:u}),f(gt,{children:d})]})]})};$t("sequence-ascending-steps",{component:xg,composites:["title","item"]});const uC=20,vg=5,bg=t=>{const{Title:e,Item:n,data:r,options:i,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=t,{title:l,desc:c,items:h=[]}=r,u=Z(f(Y,{indexes:[0]})),d=Zt(i);if(!n)return S(it,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?f(e,{title:l,desc:c}):null,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const p=h.length;if(p===0)return S(it,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?f(e,{title:l,desc:c}):null,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const g=Z(f(n,{indexes:[0],data:r,datum:h[0]})),y=0,m=0,x=2*Math.PI/p,_=[];let v=1/0,b=1/0,P=-1/0,w=-1/0;for(let z=0;z<p;z++){const j=z*x-Math.PI/2,R=y+o*Math.cos(j),H=m+o*Math.sin(j);_.push({x:R,y:H}),v=Math.min(v,R),b=Math.min(b,H),P=Math.max(P,R),w=Math.max(w,H)}const $=[];for(let z=0;z<p;z++){const j=_[z],R=_[(z+1)%p],H=Math.sqrt(Math.pow(R.x-j.x,2)+Math.pow(R.y-j.y,2)),D=Math.min(H*.5,100),B=(j.x+R.x)/2,T=(j.y+R.y)/2;v=Math.min(v,B-D/2),b=Math.min(b,T-D/2),P=Math.max(P,B+D/2),w=Math.max(w,T+D/2);const O=Math.atan2(T-m,B-y),X=O<0?O+2*Math.PI:O;let V,et;const q=X*180/Math.PI,lt=D/2+uC,U=B+Math.cos(O)*lt,Q=T+Math.sin(O)*lt;q>=337.5||q<22.5?(V=U,et=Q-g.height/2):q>=22.5&&q<67.5?(V=U,et=Q):q>=67.5&&q<112.5?(V=U-g.width/2,et=Q):q>=112.5&&q<157.5?(V=U-g.width,et=Q):q>=157.5&&q<202.5?(V=U-g.width,et=Q-g.height/2):q>=202.5&&q<247.5?(V=U-g.width,et=Q-g.height):q>=247.5&&q<292.5?(V=U-g.width/2,et=Q-g.height):(V=U,et=Q-g.height),$.push({lineLength:H,circleBigW:D,midX:B,midY:T,itemX:V,itemY:et}),v=Math.min(v,V),b=Math.min(b,et),P=Math.max(P,V+g.width+u.width+5),w=Math.max(w,et+g.height)}const M=Math.max(0,-v),A=Math.max(0,-b),I=e?f(e,{title:l,desc:c}):null,C=[],k=[],E=[],L=[],F=_.map(z=>({x:z.x+M,y:z.y+A}));for(let z=0;z<p;z++){const j=F[z],R=F[(z+1)%p],H=(z+1)%p,D=[z],{lineLength:B,circleBigW:T,midX:O,midY:X}=$[z],V=Math.max(T-20,20),et=Math.max(V*.4,16),q=wt(i,D)||d,lt=R.x-j.x,U=R.y-j.y,Q=B,K=lt/Q,nt=U/Q,ct=vg*2+s,rt=Math.min(vg,(Q-ct)/2),ht=Math.max(0,j.x+K*rt),dt=Math.max(0,j.y+nt*rt),Mt=Math.max(0,R.x-K*rt),St=Math.max(0,R.y-nt*rt),It=YP().x(ce=>Math.max(0,ce.x)).y(ce=>Math.max(0,ce.y)).curve(K0)([{x:ht,y:dt},{x:Mt,y:St}])||"",Xt=`fork-arrow-${q.replace(/[^a-zA-Z0-9]/g,"")}-${z}`,Jt=`
98
+ `.trim()}return S(W,{id:"infographic-container",children:[f(W,{children:y}),v?f(xt,{id:"shape-center-circle",x:m-$,y:x-$,width:$*2,height:$*2,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):f(ot,{id:"shape-center-sector",d:k,fill:u.colorPrimaryBg,fillOpacity:.5,width:r*2+200,height:r*2+200,"data-element-type":"shape"}),f(zt,{id:"title",x:M-I/2,y:A-C/2,width:I,height:C,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,children:c}),f(vt,{children:g}),f(gt,{children:p})]})};$t("list-sector",{component:ig,composites:["title","item"]});const og=t=>{const{Title:e,Item:n,data:r,columns:i=4,gap:o=20,stepOffset:s=40}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null,u=Z(f(Y,{indexes:[0]})),d=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),p=[],g=[],y=d.width+o;return c.forEach((m,x)=>{const _=x%i,v=Math.floor(x/i),b=_*y,P=v*(d.height+o),w=_*s,$=P+w,M=[x];g.push(f(n,{indexes:M,datum:m,data:r,x:b,y:$,positionH:"center"})),p.push(f(At,{indexes:M,x:b+(d.width-u.width)/2,y:$+d.height+5}))}),c.forEach((m,x)=>{const _=x%i,v=Math.floor(x/i),b=_*y,P=v*(d.height+o),w=_*s,$=P+w;if(x===0&&p.push(f(Y,{indexes:[0],x:b-o/2-u.width/2,y:$+(d.height-u.height)/2})),_<i-1&&x<c.length-1){const M=Math.floor((x+1)/i);v===M&&p.push(f(Y,{indexes:[x+1],x:b+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2}))}(_===i-1||x===c.length-1)&&p.push(f(Y,{indexes:[x+1],x:b+d.width+(o-u.width)/2,y:$+(d.height-u.height)/2}))}),c.length===0&&p.push(f(Y,{indexes:[0],x:(i-1)*y/2+(d.width-u.width)/2,y:0})),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{children:[f(vt,{children:g}),f(gt,{children:p})]})]})};$t("list-waterfall",{component:og,composites:["title","item"]});const Qa={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},sg=t=>{const{Title:e,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:h=[]}=r,u=e?f(e,{title:l,desc:c}):null,d=Array.from({length:4},(v,b)=>h[b]),p=d[0]?Z(f(n,{indexes:[0],data:r,datum:d[0]})):{width:0,height:0},g=i!=null?i:p.width+Qa.defaultExtraSpacing,y=o!=null?o:p.height+Qa.defaultExtraSpacing,m=GO(g,y,p),x=d.map((v,b)=>{if(!v)return null;const P=m[b];return f(n,{indexes:[b],datum:v,data:r,x:P.x,y:P.y,positionH:b%2?"flipped":"normal",positionV:b<2?"normal":"flipped"})}).filter(Boolean),_=qO(g,y,s,a);return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,S(W,{width:g*2,height:y*2,children:[_,f(vt,{children:x})]})]})};function qO(t,e,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=Qa,l=t,c=e,h=t*2,u=e*2,d=r?a:void 0;return[f(ot,{d:`M 0 ${c} L ${h} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),S(Dt,{transform:`translate(${h}, ${c})`,children:[f(ot,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),f(ot,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),S(Dt,{transform:`translate(0, ${c})`,children:[f(ot,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),f(ot,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),f(ot,{d:`M ${l} 0 L ${l} ${u}`,stroke:i,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),S(Dt,{transform:`translate(${l}, 0)`,children:[f(ot,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),f(ot,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),S(Dt,{transform:`translate(${l}, ${u})`,children:[f(ot,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),f(ot,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function GO(t,e,n){const r=t/2,i=e/2;return[{x:r-n.width/2,y:i-n.height/2},{x:t+r-n.width/2,y:i-n.height/2},{x:r-n.width/2,y:e+i-n.height/2},{x:t+r-n.width/2,y:e+i-n.height/2}]}$t("quadrant",{component:sg,composites:["title","item"]});const ag=t=>{const{Title:e,Item:n,data:r,radius:i=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[];if(l.length===0)return d.push(f(Y,{indexes:[0],x:-h.width/2,y:-h.height/2})),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,f(W,{children:f(gt,{children:d})})]});const g=Math.max(u.width,u.height),y=Math.max(i,g),m=y+g/2,x=l.map(()=>{const w=u.width,$=u.height;return(w+$)/2}),_=x.reduce((w,$)=>w+$,0);let v;o==="equal"?v=-Math.PI/2:v=-Math.PI/2+2*Math.PI/l.length/2;let b=v;l.forEach((w,$)=>{const M=x[$]/_*2*Math.PI,A=b+M/2;b+=M;const I=m+y*Math.cos(A)-u.width/2,C=m+y*Math.sin(A)-u.height/2;p.push(f(n,{indexes:[$],datum:w,data:r,x:I,y:C}));const k=y-Math.max(u.width,u.height)/2-20,E=m+k*Math.cos(A)-h.width/2,L=m+k*Math.sin(A)-h.height/2;d.push(f(At,{indexes:[$],x:E,y:L}))});const P=y-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let w=0;w<l.length;w++){const $=w*2*Math.PI/l.length-Math.PI/2,M=(w+1)%l.length*2*Math.PI/l.length-Math.PI/2;let A;if(w===l.length-1){const k=M+2*Math.PI-$;A=$+k/2}else A=($+M)/2;const I=m+P*Math.cos(A)-h.width/2,C=m+P*Math.sin(A)-h.height/2;d.push(f(Y,{indexes:[w+1],x:I,y:C}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(vt,{children:p}),f(gt,{children:d})]})]})};$t("relation-circle",{component:ag,composites:["title","item"]});const lg=t=>{const{Title:e,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null;if(c.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,f(W,{children:f(vt,{})})]});const u=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"}));function d(){const $=c.map((I,C)=>({id:C,data:I,isCenter:C===0,_originalIndex:[C]})),M=c.slice(1).map((I,C)=>({source:0,target:C+1})),A=G7($).force("link",j7(M).id(I=>I.id).distance(i)).force("charge",U7().strength(-50)).force("center",x7(0,0)).force("collision",N7().radius(Math.max(u.width,u.height)/2+10));for(let I=0;I<300;++I)A.tick();return{nodes:$,links:M}}const{nodes:p,links:g}=d(),y=Math.min(...p.map($=>{var M;return(M=$.x)!=null?M:0})),m=Math.min(...p.map($=>{var M;return(M=$.y)!=null?M:0})),x=Math.max(0,-y+u.width/2),_=Math.max(0,-m+u.height/2),v=($,M)=>({positionH:$<-50?"flipped":$>50?"normal":"center",positionV:M<-50?"flipped":M>50?"normal":"middle"}),b=p.map($=>{if($.x==null||$.y==null)return null;const M=$.x+x-u.width/2,A=$.y+_-u.height/2,{positionH:I,positionV:C}=v($.x,$.y);return f(n,{indexes:$._originalIndex,datum:$.data,data:r,x:M,y:A,positionH:I,positionV:C},$.id)}).filter(Boolean),P=new Map(p.map($=>[$.id,$])),w=o?g.map($=>{const M=typeof $.source=="object"?$.source:P.get($.source),A=typeof $.target=="object"?$.target:P.get($.target);if(!M||!A||M.x==null||M.y==null||A.x==null||A.y==null)return null;const I=`M ${M.x+x} ${M.y+_} L ${A.x+x} ${A.y+_}`;return f(ot,{d:I,stroke:Zt(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{children:[f(W,{children:w}),f(vt,{children:b})]})]})};$t("relation-network",{component:lg,composites:["title","item"]});var UO=Object.defineProperty,ZO=Object.defineProperties,QO=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,cg=Object.prototype.hasOwnProperty,hg=Object.prototype.propertyIsEnumerable,fg=(t,e,n)=>e in t?UO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,KO=(t,e)=>{for(var n in e||(e={}))cg.call(e,n)&&fg(t,n,e[n]);if(co)for(var n of co(e))hg.call(e,n)&&fg(t,n,e[n]);return t},JO=(t,e)=>ZO(t,QO(e)),tC=(t,e)=>{var n={};for(var r in t)cg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&co)for(var r of co(t))e.indexOf(r)<0&&hg.call(t,r)&&(n[r]=t[r]);return n};const Ka=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0}=e,s=tC(e,["width","height","colorPrimary","rotation"]);const a=`gradient-arrow-stroke-${i.replace("#","")}`,l=`gradient-arrow-fill-${i.replace("#","")}`,c=Math.round(n*.515),h=Math.round(r*.275),u=Math.round(r*.875),d=[{x:0,y:h},{x:c,y:h},{x:c,y:r*.075},{x:n,y:r*.575},{x:c,y:r*1.075},{x:c,y:u},{x:0,y:u}],p=n/2,g=r/2,y=`rotate(${o} ${p} ${g})`;return S(yt,{children:[f(be,JO(KO({},s),{width:n,height:r,points:d,fill:`url(#${l})`,stroke:`url(#${a})`,transform:y,"data-element-type":"shape"})),S(_t,{children:[S("linearGradient",{id:l,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[f("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),f("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),S("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[f("stop",{offset:"0%","stop-color":i}),f("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},eC=({text:t,x:e=0,y:n=0,fontSize:r=56,fontWeight:i="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:h=1,midShadowOffsetY:u=2,deepShadowOpacity:d=.3,midShadowOpacity:p=.5})=>S(W,{children:[f("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),f("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:p,textAnchor:s,dominantBaseline:a,transform:`translate(${h}, ${u})`,children:t}),f("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var nC=Object.defineProperty,rC=Object.defineProperties,iC=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertySymbols,ug=Object.prototype.hasOwnProperty,dg=Object.prototype.propertyIsEnumerable,pg=(t,e,n)=>e in t?nC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oC=(t,e)=>{for(var n in e||(e={}))ug.call(e,n)&&pg(t,n,e[n]);if(ho)for(var n of ho(e))dg.call(e,n)&&pg(t,n,e[n]);return t},sC=(t,e)=>rC(t,iC(e)),aC=(t,e)=>{var n={};for(var r in t)ug.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ho)for(var r of ho(t))e.indexOf(r)<0&&dg.call(t,r)&&(n[r]=t[r]);return n};const lC=t=>{var e=t,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0,strokeWidth:s=4}=e,a=aC(e,["width","height","colorPrimary","rotation","strokeWidth"]);const l=[{x:n/2,y:0},{x:n,y:r},{x:0,y:r}],c=n/2,h=r/2,u=`rotate(${o} ${c} ${h})`;return f(be,sC(oC({},a),{width:n,height:r,points:l,fill:i,stroke:i,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",transform:u}))},cC=-118,gg=118,mg=240,hC=180,fC=40,uC="M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",dC="M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",pC="M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",yg=S("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[f("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),f("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),f("feOffset",{dx:"0",dy:"4"}),f("feGaussianBlur",{stdDeviation:"6"}),f("feComposite",{in2:"hardAlpha",operator:"out"}),f("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),f("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),f("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),_g=t=>{const{Title:e,Item:n,data:r,options:i,cubeWidth:o=mg}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null;if(l.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f(_t,{children:yg}),c,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const h=Z(f(Y,{indexes:[0]})),u=[],d=[],p=[],g=o/mg,y=hC*g;return l.forEach((m,x)=>{const _=[x],v=wt(i,_),b=x*(o+cC),P=(l.length-1-x)*gg,w=`cube-gradient-bottom-${x}`,$=`cube-gradient-top-${x}`,M=`cube-gradient-stroke-${x}`;p.push(S(W,{x:b,y:P,id:`cube-${x}`,width:o,height:y,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[S(_t,{children:[S("linearGradient",{id:w,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:v,stopOpacity:"0.8"}),f("stop",{offset:"1",stopColor:v,stopOpacity:"0.4"})]}),S("linearGradient",{id:$,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:v,stopOpacity:"0.9"}),f("stop",{offset:"1",stopColor:v,stopOpacity:"0.5"})]}),S("linearGradient",{id:M,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:v}),f("stop",{offset:"1",stopColor:v,stopOpacity:"0.7"})]})]}),S(Dt,{transform:`scale(${g})`,children:[f(ot,{d:uC,fill:`url(#${w})`}),f(ot,{d:dC,fill:`url(#${$})`}),f(ot,{d:pC,fill:`url(#${M})`})]}),f(eC,{text:x+1,x:115,y:65,fontSize:56})]}));const A=b+o+fC,I=P+y/2;if(d.push(f(n,{indexes:_,datum:m,data:r,x:A,y:I,positionH:"normal"})),u.push(f(At,{indexes:_,x:b+o-h.width/2,y:P-h.height/2})),x===0&&u.push(f(Y,{indexes:[0],x:b-30-h.width/2,y:P+y/2-h.height/2})),x<l.length-1){const C=(l.length-1-(x+1))*gg,k=b+o-h.width/2,E=(P+y/2+C+y/2)/2-h.height/2;u.push(f(Y,{indexes:[x+1],x:k,y:E}))}else u.push(f(Y,{indexes:[l.length],x:b+o+30-h.width/2,y:P+y/2-h.height/2}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[f(_t,{children:yg}),c,S(W,{x:0,y:0,children:[f(W,{children:p}),f(vt,{children:d}),f(gt,{children:u})]})]})};$t("sequence-ascending-stairs-3d",{component:_g,composites:["title","item"]});const xg=t=>{const{Title:e,Item:n,data:r,hGap:i=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(n,{indexes:[0],data:r,datum:l[0]})),u=[],d=[],p=l.length,g=h.width+i,y=h.height/2+o,m=h.width/2,_=0+(p-1)*y;return l.forEach((v,b)=>{const P=m+b*g,w=_-b*y,$=[b];u.push(f(n,{indexes:$,datum:v,data:r,x:P,y:w})),d.push(f(At,{indexes:$,x:P+h.width-30,y:w+h.height/2+10})),d.push(f(Y,{indexes:$,x:P+h.width+i/2,y:w-30}))}),S(it,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(vt,{children:u}),f(gt,{children:d})]})]})};$t("sequence-ascending-steps",{component:xg,composites:["title","item"]});const gC=20,vg=5,bg=t=>{const{Title:e,Item:n,data:r,options:i,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=t,{title:l,desc:c,items:h=[]}=r,u=Z(f(Y,{indexes:[0]})),d=Zt(i);if(!n)return S(it,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?f(e,{title:l,desc:c}):null,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const p=h.length;if(p===0)return S(it,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[e?f(e,{title:l,desc:c}):null,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const g=Z(f(n,{indexes:[0],data:r,datum:h[0]})),y=0,m=0,x=2*Math.PI/p,_=[];let v=1/0,b=1/0,P=-1/0,w=-1/0;for(let z=0;z<p;z++){const j=z*x-Math.PI/2,R=y+o*Math.cos(j),H=m+o*Math.sin(j);_.push({x:R,y:H}),v=Math.min(v,R),b=Math.min(b,H),P=Math.max(P,R),w=Math.max(w,H)}const $=[];for(let z=0;z<p;z++){const j=_[z],R=_[(z+1)%p],H=Math.sqrt(Math.pow(R.x-j.x,2)+Math.pow(R.y-j.y,2)),D=Math.min(H*.5,100),B=(j.x+R.x)/2,T=(j.y+R.y)/2;v=Math.min(v,B-D/2),b=Math.min(b,T-D/2),P=Math.max(P,B+D/2),w=Math.max(w,T+D/2);const O=Math.atan2(T-m,B-y),X=O<0?O+2*Math.PI:O;let V,et;const q=X*180/Math.PI,lt=D/2+gC,U=B+Math.cos(O)*lt,Q=T+Math.sin(O)*lt;q>=337.5||q<22.5?(V=U,et=Q-g.height/2):q>=22.5&&q<67.5?(V=U,et=Q):q>=67.5&&q<112.5?(V=U-g.width/2,et=Q):q>=112.5&&q<157.5?(V=U-g.width,et=Q):q>=157.5&&q<202.5?(V=U-g.width,et=Q-g.height/2):q>=202.5&&q<247.5?(V=U-g.width,et=Q-g.height):q>=247.5&&q<292.5?(V=U-g.width/2,et=Q-g.height):(V=U,et=Q-g.height),$.push({lineLength:H,circleBigW:D,midX:B,midY:T,itemX:V,itemY:et}),v=Math.min(v,V),b=Math.min(b,et),P=Math.max(P,V+g.width+u.width+5),w=Math.max(w,et+g.height)}const M=Math.max(0,-v),A=Math.max(0,-b),I=e?f(e,{title:l,desc:c}):null,C=[],k=[],E=[],L=[],F=_.map(z=>({x:z.x+M,y:z.y+A}));for(let z=0;z<p;z++){const j=F[z],R=F[(z+1)%p],H=(z+1)%p,D=[z],{lineLength:B,circleBigW:T,midX:O,midY:X}=$[z],V=Math.max(T-20,20),et=Math.max(V*.4,16),q=wt(i,D)||d,lt=R.x-j.x,U=R.y-j.y,Q=B,K=lt/Q,nt=U/Q,ct=vg*2+s,rt=Math.min(vg,(Q-ct)/2),ht=Math.max(0,j.x+K*rt),dt=Math.max(0,j.y+nt*rt),Mt=Math.max(0,R.x-K*rt),St=Math.max(0,R.y-nt*rt),It=GP().x(ce=>Math.max(0,ce.x)).y(ce=>Math.max(0,ce.y)).curve(K0)([{x:ht,y:dt},{x:Mt,y:St}])||"",Xt=`fork-arrow-${q.replace(/[^a-zA-Z0-9]/g,"")}-${z}`,Jt=`
99
99
  M ${-s*.6} ${-s*.4}
100
100
  L 0 0
101
101
  L ${-s*.6} ${s*.4}
102
- `;L.push(f("marker",{id:Xt,viewBox:`${-s} ${-s*.6} ${s*1.2} ${s*1.2}`,refX:-s*.08,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:f("path",{d:Jt,fill:"none",stroke:q,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),E.push(f(ot,{d:It,stroke:q,strokeWidth:a,fill:"none",markerEnd:`url(#${Xt})`,strokeLinecap:"round","data-element-type":"shape"}));const Ut=O+M,Bt=X+A,We=ge({colorPrimary:q},i);E.push(f(xt,{x:Math.max(0,Ut-T/2),y:Math.max(0,Bt-T/2),width:T,height:T,fill:We.colorPrimaryBg,"data-element-type":"shape"})),E.push(f(xt,{x:Math.max(0,Ut-V/2),y:Math.max(0,Bt-V/2),width:V,height:V,fill:"#ffffff"})),E.push(f(Gt,{x:Math.max(0,Ut-et/2),y:Math.max(0,Bt-et/2),size:et,indexes:D,fill:q}));const ln=Math.max(0,Ut-u.width/2),Xe=Math.max(0,Bt-u.height/2);C.push(f(Y,{indexes:[H],x:ln,y:Xe}))}for(let z=0;z<p;z++){const j=[z],R=h[z],{itemX:H,itemY:D}=$[z],B=Math.max(0,H+M),T=Math.max(0,D+A);k.push(f(n,{indexes:j,datum:R,data:r,x:B,y:T}));const O=Math.max(0,B+g.width+5),X=Math.max(0,T+g.height/2-u.height/2);C.push(f(At,{indexes:j,x:O,y:X}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[I,S(W,{x:0,y:0,children:[f(_t,{children:L}),f(W,{children:E}),f(vt,{children:k}),f(gt,{children:C})]})]})};$t("sequence-circle-arrows",{component:bg,composites:["title","item"]});const dC=100,pC=50,gC=6,mC="40",wg=t=>{const{Title:e,Item:n,data:r,options:i,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:h=38,iconSize:u=36}=t,{title:d,desc:p,items:g=[]}=r,y=e?f(e,{title:d,desc:p}):null,m=Math.max(a+dC,o+pC),x=Math.min(a,o),_=Z(f(Y,{indexes:[0]}));if(g.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:m-20,y:x-20})})})]});const v=[],b=[],P=[],w=[],$=Z(f(n,{indexes:[0],data:r,datum:g[0]})),I=(360-g.length*l)/g.length,C=(D,B,T,O,X,V)=>{const et=X*Math.PI/180,q=V*Math.PI/180,lt=D+T*Math.cos(et),U=B+T*Math.sin(et),Q=D+O*Math.cos(et),K=B+O*Math.sin(et),nt=D+O*Math.cos(q),ct=B+O*Math.sin(q),rt=D+T*Math.cos(q),ht=B+T*Math.sin(q),dt=V-X<=180?"0":"1";return[`M ${lt} ${U}`,`L ${Q} ${K}`,`A ${O} ${O} 0 ${dt} 1 ${nt} ${ct}`,`L ${rt} ${ht}`,`A ${T} ${T} 0 ${dt} 0 ${lt} ${U}`,"Z"].join(" ")},k=({centerX:D,outerRadius:B,angleRad:T,btnBounds:O})=>{const X=D+(B+20)*Math.cos(T)-O.width/2,V=x+(B+20)*Math.sin(T)-O.height/2;return{x:X,y:V}},E=gC,L=(s+o)/2,F=E/L*(180/Math.PI);g.forEach((D,B)=>{const T=[B],O=B*(I+l)+270,X=O+I,V=(O+X)/2,et=V*Math.PI/180,q=wt(i,T),lt=q+mC,U=C(m,x,s,o,O,X);P.push(f(ot,{d:U,fill:lt,width:o*2,height:o*2,"data-element-type":"shape"}));const Q=C(m,x,s+E,o-E,O+F,X-F);P.push(f(ot,{d:Q,fill:q,width:o*2,height:o*2,"data-element-type":"shape"}));const K=(s+o)/2,nt=m+K*Math.cos(et),ct=x+K*Math.sin(et);w.push(f(xt,{x:nt-h,y:ct-h,width:h*2,height:h*2,fill:"#ffffff","data-element-type":"shape"})),w.push(f(xt,{x:nt-c,y:ct-c,width:c*2,height:c*2,fill:q,"data-element-type":"shape"})),D.icon&&w.push(f(Gt,{x:nt-u/2,y:ct-u/2,indexes:T,size:u,fill:"#fff"}));const rt=(V%360+360)%360,ht=rt>=270||rt<=90,dt=rt>=75&&rt<=105;let Mt,St="normal",mt="normal";dt?(Mt=rt,mt="normal",St="center"):ht?(rt>=270?Mt=-60+(rt-270)/90*60:Mt=rt/90*60,St="normal"):(Mt=120+(rt-90)/180*120,St="flipped");const It=Mt*Math.PI/180,ve=m+a*Math.cos(It)-$.width/2;let Xt=x+a*Math.sin(It)-$.height/2;dt&&(Xt=x+o+$.height/2),b.push(f(n,{indexes:T,datum:D,data:r,x:ve,y:Xt,positionH:St,positionV:mt}));const Jt=a+40,Ut=m+Jt*Math.cos(It)-_.width/2,Bt=x+Jt*Math.sin(It)-_.height/2;v.push(f(At,{indexes:T,x:Ut,y:Bt}));const ln=(O+I+l/2)*Math.PI/180,{x:Xe,y:ce}=k({centerX:m,outerRadius:o,angleRad:ln,btnBounds:_});v.push(f(Y,{indexes:[B+1],x:Xe,y:ce}))});const j=(270-l/2)*Math.PI/180,{x:R,y:H}=k({centerX:m,outerRadius:o,angleRad:j,btnBounds:_});return v.unshift(f(Y,{indexes:[0],x:R,y:H})),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:50,children:[y,S(W,{children:[f(W,{children:P}),f(W,{children:w}),f(vt,{children:b}),f(gt,{children:v})]})]})};$t("sequence-circular",{component:wg,composites:["title","item"]});const $g=t=>{const{Title:e,Item:n,data:r,gap:i=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=t,{title:c,desc:h,items:u=[]}=r,d=e?f(e,{title:c,desc:h}):null,p=Zt(l),g=Z(f(Y,{indexes:[0]})),y=Z(f(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),m=[],x=[],_=[],v=(o+y.height)/2,b=v;if(u.forEach((P,w)=>{const $=Math.floor(w/s),M=w%s,A=$%2===1,C=(A?s-1-M:M)*(y.width+i)+b,k=$*(y.height+o),E=[w];if(x.push(f(n,{indexes:E,datum:P,data:r,x:C,y:k,positionH:"center",positionV:w%2===1?"flipped":"normal"})),m.push(f(At,{indexes:E,x:C+(y.width-g.width)/2,y:k+y.height+10})),w===0&&m.push(f(Y,{indexes:E,x:C+(y.width-g.width)/2,y:k-g.height-10})),w<u.length-1){const L=Math.floor((w+1)/s);if($===L)m.push(f(Y,{indexes:[w+1],x:C+(y.width-g.width)/2,y:k-g.height-10}));else{const z=k+y.height/2,j=k+y.height+o+y.height/2;let R,H,D;A?(R=C,D=0,H=`M ${R} ${z} A ${v} ${v} 0 0 ${D} ${R} ${j}`):(R=C+y.width,D=1,H=`M ${R} ${z} A ${v} ${v} 0 0 ${D} ${R} ${j}`);const B=j-z,T=wt(l,E),O=wt(l,[w+1]),X=`gradient-arc-${w}`;_.push(S(yt,{children:[f(_t,{children:S("linearGradient",{id:X,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:T||p}),f("stop",{offset:"100%",stopColor:O||p})]})}),f(ot,{d:H,stroke:`url(#${X})`,strokeWidth:a,fill:"none",width:b,height:B,"data-element-type":"shape"})]}));const V=A?R-v-g.width/2:R+v-g.width/2,et=k+y.height+o/2-g.height/2;m.push(f(Y,{indexes:[w+1],x:V,y:et}))}}}),u.length>0){const P=u.length-1,w=Math.floor(P/s),$=P%s,I=(w%2===1?s-1-$:$)*(y.width+i),C=w*(y.height+o);m.push(f(Y,{indexes:[u.length],x:I+(y.width-g.width)/2,y:C+y.height+g.height+20}))}if(u.length/s>2){const P=(o+y.height)/2,w=wt(l,[0]);_.push(f(pt,{x:0,y:y.height/2-a/2,width:P,height:a,fill:w||p,"data-element-type":"shape"}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,S(W,{width:s*y.width+(s-1)*i+v*2,height:Math.ceil(u.length/s)*(y.height+o),children:[f(W,{children:_}),f(vt,{children:x}),f(gt,{children:m})]})]})};$t("sequence-color-snake-steps",{component:$g,composites:["title","item"]});const fo=(t,e)=>t===0?0:t===1?e/2:e/2+(t-1)*(e/2*3),uo=(t,e,n)=>{if(t)return 0;const o=e===0?2:n;return n*2+o},yC=(t,e,n,r,i,o,s,a)=>{const l=Math.max(6,o*.15),c=r+(t-1)*i,h=t*l,u=100,p=c+h+u+50,g=p-u;let y=0,m=0,x=0,_=0;if(t>0){let b=1/0,P=-1/0;for(let L=0;L<t;L++){const F=L%2===0,z=Math.floor(L/2),j=fo(z,n),H=0+uo(F,z,n)+j;b=Math.min(b,H-n),P=Math.max(P,H+n)}const w=(b+P)/2,$=0;y=0,_=y+e.width+a+s+n,x=_-$+w;const C=y+e.width/2,k=x-C;m=x+k-e.width/2}return{canvasHeight:p,startY:g,leftItemAlignedX:y,rightItemAlignedX:m,cylinderAreaStartX:_}},_C=(t,e,n,r,i,o,s)=>{const a=t%2===0,l=Math.floor(t/2),c=fo(l,e),h=uo(a,l,e),u=s+h+c,d=o-t*i,p=n+t*r,g=d-p;return{x:u,y:g,height:p,bottomY:d,topY:g}},xC=(t,e,n,r,i,o,s,a,l)=>{const c=t%2===0,h=e.topY+e.height*.05;let u,d;c?(u=i,d=u+n.width+l):(u=o,d=u-l);let p;s==="top"?p=h:s==="bottom"?p=h-n.height:p=h-n.height/2,p+=a;const g=c?e.x-r:e.x+r,y=c?g-l:g+l;return{itemPos:{x:u,y:p},lineStartX:y,lineEndX:d,lineY:h}},vC=(t,e)=>{const n=tt(e),r=[];return r.push(S("linearGradient",{id:`cylinderGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),f("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),f("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),f("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),r.push(S("linearGradient",{id:`topGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),f("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),r.push(S("linearGradient",{id:`bottomGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),f("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),f("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),r.push(S("linearGradient",{id:`numberGradient${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),f("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),f("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),r.push(S("linearGradient",{id:`glowGradient${t}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[f("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),f("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),r},bC=(t,e,n,r)=>{const{x:i,topY:o,bottomY:s}=e,a=[];a.push(f("ellipse",{id:`cylinder-bottom-${t}`,cx:i,cy:s,rx:n,ry:r,fill:`url(#bottomGradient${t})`,opacity:.7})),a.push(f(ot,{id:`cylinder-body-${t}`,d:`
102
+ `;L.push(f("marker",{id:Xt,viewBox:`${-s} ${-s*.6} ${s*1.2} ${s*1.2}`,refX:-s*.08,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:f("path",{d:Jt,fill:"none",stroke:q,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),E.push(f(ot,{d:It,stroke:q,strokeWidth:a,fill:"none",markerEnd:`url(#${Xt})`,strokeLinecap:"round","data-element-type":"shape"}));const Ut=O+M,Bt=X+A,We=ge({colorPrimary:q},i);E.push(f(xt,{x:Math.max(0,Ut-T/2),y:Math.max(0,Bt-T/2),width:T,height:T,fill:We.colorPrimaryBg,"data-element-type":"shape"})),E.push(f(xt,{x:Math.max(0,Ut-V/2),y:Math.max(0,Bt-V/2),width:V,height:V,fill:"#ffffff"})),E.push(f(Gt,{x:Math.max(0,Ut-et/2),y:Math.max(0,Bt-et/2),size:et,indexes:D,fill:q}));const ln=Math.max(0,Ut-u.width/2),Xe=Math.max(0,Bt-u.height/2);C.push(f(Y,{indexes:[H],x:ln,y:Xe}))}for(let z=0;z<p;z++){const j=[z],R=h[z],{itemX:H,itemY:D}=$[z],B=Math.max(0,H+M),T=Math.max(0,D+A);k.push(f(n,{indexes:j,datum:R,data:r,x:B,y:T}));const O=Math.max(0,B+g.width+5),X=Math.max(0,T+g.height/2-u.height/2);C.push(f(At,{indexes:j,x:O,y:X}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[I,S(W,{x:0,y:0,children:[f(_t,{children:L}),f(W,{children:E}),f(vt,{children:k}),f(gt,{children:C})]})]})};$t("sequence-circle-arrows",{component:bg,composites:["title","item"]});const mC=100,yC=50,_C=6,xC="40",wg=t=>{const{Title:e,Item:n,data:r,options:i,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:h=38,iconSize:u=36}=t,{title:d,desc:p,items:g=[]}=r,y=e?f(e,{title:d,desc:p}):null,m=Math.max(a+mC,o+yC),x=Math.min(a,o),_=Z(f(Y,{indexes:[0]}));if(g.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:m-20,y:x-20})})})]});const v=[],b=[],P=[],w=[],$=Z(f(n,{indexes:[0],data:r,datum:g[0]})),I=(360-g.length*l)/g.length,C=(D,B,T,O,X,V)=>{const et=X*Math.PI/180,q=V*Math.PI/180,lt=D+T*Math.cos(et),U=B+T*Math.sin(et),Q=D+O*Math.cos(et),K=B+O*Math.sin(et),nt=D+O*Math.cos(q),ct=B+O*Math.sin(q),rt=D+T*Math.cos(q),ht=B+T*Math.sin(q),dt=V-X<=180?"0":"1";return[`M ${lt} ${U}`,`L ${Q} ${K}`,`A ${O} ${O} 0 ${dt} 1 ${nt} ${ct}`,`L ${rt} ${ht}`,`A ${T} ${T} 0 ${dt} 0 ${lt} ${U}`,"Z"].join(" ")},k=({centerX:D,outerRadius:B,angleRad:T,btnBounds:O})=>{const X=D+(B+20)*Math.cos(T)-O.width/2,V=x+(B+20)*Math.sin(T)-O.height/2;return{x:X,y:V}},E=_C,L=(s+o)/2,F=E/L*(180/Math.PI);g.forEach((D,B)=>{const T=[B],O=B*(I+l)+270,X=O+I,V=(O+X)/2,et=V*Math.PI/180,q=wt(i,T),lt=q+xC,U=C(m,x,s,o,O,X);P.push(f(ot,{d:U,fill:lt,width:o*2,height:o*2,"data-element-type":"shape"}));const Q=C(m,x,s+E,o-E,O+F,X-F);P.push(f(ot,{d:Q,fill:q,width:o*2,height:o*2,"data-element-type":"shape"}));const K=(s+o)/2,nt=m+K*Math.cos(et),ct=x+K*Math.sin(et);w.push(f(xt,{x:nt-h,y:ct-h,width:h*2,height:h*2,fill:"#ffffff","data-element-type":"shape"})),w.push(f(xt,{x:nt-c,y:ct-c,width:c*2,height:c*2,fill:q,"data-element-type":"shape"})),D.icon&&w.push(f(Gt,{x:nt-u/2,y:ct-u/2,indexes:T,size:u,fill:"#fff"}));const rt=(V%360+360)%360,ht=rt>=270||rt<=90,dt=rt>=75&&rt<=105;let Mt,St="normal",mt="normal";dt?(Mt=rt,mt="normal",St="center"):ht?(rt>=270?Mt=-60+(rt-270)/90*60:Mt=rt/90*60,St="normal"):(Mt=120+(rt-90)/180*120,St="flipped");const It=Mt*Math.PI/180,ve=m+a*Math.cos(It)-$.width/2;let Xt=x+a*Math.sin(It)-$.height/2;dt&&(Xt=x+o+$.height/2),b.push(f(n,{indexes:T,datum:D,data:r,x:ve,y:Xt,positionH:St,positionV:mt}));const Jt=a+40,Ut=m+Jt*Math.cos(It)-_.width/2,Bt=x+Jt*Math.sin(It)-_.height/2;v.push(f(At,{indexes:T,x:Ut,y:Bt}));const ln=(O+I+l/2)*Math.PI/180,{x:Xe,y:ce}=k({centerX:m,outerRadius:o,angleRad:ln,btnBounds:_});v.push(f(Y,{indexes:[B+1],x:Xe,y:ce}))});const j=(270-l/2)*Math.PI/180,{x:R,y:H}=k({centerX:m,outerRadius:o,angleRad:j,btnBounds:_});return v.unshift(f(Y,{indexes:[0],x:R,y:H})),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:50,children:[y,S(W,{children:[f(W,{children:P}),f(W,{children:w}),f(vt,{children:b}),f(gt,{children:v})]})]})};$t("sequence-circular",{component:wg,composites:["title","item"]});const $g=t=>{const{Title:e,Item:n,data:r,gap:i=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=t,{title:c,desc:h,items:u=[]}=r,d=e?f(e,{title:c,desc:h}):null,p=Zt(l),g=Z(f(Y,{indexes:[0]})),y=Z(f(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),m=[],x=[],_=[],v=(o+y.height)/2,b=v;if(u.forEach((P,w)=>{const $=Math.floor(w/s),M=w%s,A=$%2===1,C=(A?s-1-M:M)*(y.width+i)+b,k=$*(y.height+o),E=[w];if(x.push(f(n,{indexes:E,datum:P,data:r,x:C,y:k,positionH:"center",positionV:w%2===1?"flipped":"normal"})),m.push(f(At,{indexes:E,x:C+(y.width-g.width)/2,y:k+y.height+10})),w===0&&m.push(f(Y,{indexes:E,x:C+(y.width-g.width)/2,y:k-g.height-10})),w<u.length-1){const L=Math.floor((w+1)/s);if($===L)m.push(f(Y,{indexes:[w+1],x:C+(y.width-g.width)/2,y:k-g.height-10}));else{const z=k+y.height/2,j=k+y.height+o+y.height/2;let R,H,D;A?(R=C,D=0,H=`M ${R} ${z} A ${v} ${v} 0 0 ${D} ${R} ${j}`):(R=C+y.width,D=1,H=`M ${R} ${z} A ${v} ${v} 0 0 ${D} ${R} ${j}`);const B=j-z,T=wt(l,E),O=wt(l,[w+1]),X=`gradient-arc-${w}`;_.push(S(yt,{children:[f(_t,{children:S("linearGradient",{id:X,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:T||p}),f("stop",{offset:"100%",stopColor:O||p})]})}),f(ot,{d:H,stroke:`url(#${X})`,strokeWidth:a,fill:"none",width:b,height:B,"data-element-type":"shape"})]}));const V=A?R-v-g.width/2:R+v-g.width/2,et=k+y.height+o/2-g.height/2;m.push(f(Y,{indexes:[w+1],x:V,y:et}))}}}),u.length>0){const P=u.length-1,w=Math.floor(P/s),$=P%s,I=(w%2===1?s-1-$:$)*(y.width+i),C=w*(y.height+o);m.push(f(Y,{indexes:[u.length],x:I+(y.width-g.width)/2,y:C+y.height+g.height+20}))}if(u.length/s>2){const P=(o+y.height)/2,w=wt(l,[0]);_.push(f(pt,{x:0,y:y.height/2-a/2,width:P,height:a,fill:w||p,"data-element-type":"shape"}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,S(W,{width:s*y.width+(s-1)*i+v*2,height:Math.ceil(u.length/s)*(y.height+o),children:[f(W,{children:_}),f(vt,{children:x}),f(gt,{children:m})]})]})};$t("sequence-color-snake-steps",{component:$g,composites:["title","item"]});const fo=(t,e)=>t===0?0:t===1?e/2:e/2+(t-1)*(e/2*3),uo=(t,e,n)=>{if(t)return 0;const o=e===0?2:n;return n*2+o},vC=(t,e,n,r,i,o,s,a)=>{const l=Math.max(6,o*.15),c=r+(t-1)*i,h=t*l,u=100,p=c+h+u+50,g=p-u;let y=0,m=0,x=0,_=0;if(t>0){let b=1/0,P=-1/0;for(let L=0;L<t;L++){const F=L%2===0,z=Math.floor(L/2),j=fo(z,n),H=0+uo(F,z,n)+j;b=Math.min(b,H-n),P=Math.max(P,H+n)}const w=(b+P)/2,$=0;y=0,_=y+e.width+a+s+n,x=_-$+w;const C=y+e.width/2,k=x-C;m=x+k-e.width/2}return{canvasHeight:p,startY:g,leftItemAlignedX:y,rightItemAlignedX:m,cylinderAreaStartX:_}},bC=(t,e,n,r,i,o,s)=>{const a=t%2===0,l=Math.floor(t/2),c=fo(l,e),h=uo(a,l,e),u=s+h+c,d=o-t*i,p=n+t*r,g=d-p;return{x:u,y:g,height:p,bottomY:d,topY:g}},wC=(t,e,n,r,i,o,s,a,l)=>{const c=t%2===0,h=e.topY+e.height*.05;let u,d;c?(u=i,d=u+n.width+l):(u=o,d=u-l);let p;s==="top"?p=h:s==="bottom"?p=h-n.height:p=h-n.height/2,p+=a;const g=c?e.x-r:e.x+r,y=c?g-l:g+l;return{itemPos:{x:u,y:p},lineStartX:y,lineEndX:d,lineY:h}},$C=(t,e)=>{const n=tt(e),r=[];return r.push(S("linearGradient",{id:`cylinderGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),f("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),f("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),f("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),r.push(S("linearGradient",{id:`topGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),f("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),r.push(S("linearGradient",{id:`bottomGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),f("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),f("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),r.push(S("linearGradient",{id:`numberGradient${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),f("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),f("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),r.push(S("linearGradient",{id:`glowGradient${t}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[f("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),f("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),r},PC=(t,e,n,r)=>{const{x:i,topY:o,bottomY:s}=e,a=[];a.push(f("ellipse",{id:`cylinder-bottom-${t}`,cx:i,cy:s,rx:n,ry:r,fill:`url(#bottomGradient${t})`,opacity:.7})),a.push(f(ot,{id:`cylinder-body-${t}`,d:`
103
103
  M ${i-n} ${o}
104
104
  A ${n} ${r} 0 0 0 ${i} ${o+r}
105
105
  A ${n} ${r} 0 0 0 ${i+n} ${o}
@@ -107,7 +107,7 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
107
107
  A ${n} ${r} 0 0 1 ${i} ${s+r}
108
108
  A ${n} ${r} 0 0 1 ${i-n} ${s}
109
109
  Z
110
- `,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(f(pt,{id:`cylinder-glow-${t}`,x:i-n,y:o-r*3,width:n*2,height:r*3,fill:`url(#glowGradient${t})`})),a.push(f("ellipse",{id:`cylinder-top-${t}`,cx:i,cy:o,rx:n,ry:r,fill:`url(#topGradient${t})`}));const l=i,c=o+2,d=`translate(${l}, ${c}) matrix(1, 0, ${-.6}, ${.6}, 0, 0) translate(${-l}, ${-c})`;return a.push(f(zt,{id:`cylinder-number-${t}`,x:l,y:c,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${t})`,alignHorizontal:"center",alignVertical:"middle",transform:d,children:t+1})),a},wC=(t,e,n,r,i)=>{const s=[];return s.push(f("circle",{id:`decoration-dot-start-${t}`,cx:e,cy:r,r:2,fill:i})),s.push(f("line",{id:`decoration-line-${t}`,x1:e,y1:r,x2:n,y2:r,stroke:i,strokeWidth:1,opacity:.8})),s.push(f("circle",{id:`decoration-dot-end-${t}`,cx:n,cy:r,r:2,fill:i,opacity:.9})),s},$C=(t,e,n,r,i)=>{if(t===0)return null;const o=[];for(let b=0;b<t;b++){const P=b%2===0,w=Math.floor(b/2),$=fo(w,e),M=uo(P,w,e),A=n+M+$,I=r-b*i;o.push({x:A,y:I})}const s=o[0],a=o[o.length-1],l=6,c=t>5?t*16:100,h=s.x-e-c,u=s.x+e+c,d=s.y+l+c/6,p=a.x-e-c,g=a.x+e+c,y=a.y+l-c/6,m=`
110
+ `,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(f(pt,{id:`cylinder-glow-${t}`,x:i-n,y:o-r*3,width:n*2,height:r*3,fill:`url(#glowGradient${t})`})),a.push(f("ellipse",{id:`cylinder-top-${t}`,cx:i,cy:o,rx:n,ry:r,fill:`url(#topGradient${t})`}));const l=i,c=o+2,d=`translate(${l}, ${c}) matrix(1, 0, ${-.6}, ${.6}, 0, 0) translate(${-l}, ${-c})`;return a.push(f(zt,{id:`cylinder-number-${t}`,x:l,y:c,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${t})`,alignHorizontal:"center",alignVertical:"middle",transform:d,children:t+1})),a},MC=(t,e,n,r,i)=>{const s=[];return s.push(f("circle",{id:`decoration-dot-start-${t}`,cx:e,cy:r,r:2,fill:i})),s.push(f("line",{id:`decoration-line-${t}`,x1:e,y1:r,x2:n,y2:r,stroke:i,strokeWidth:1,opacity:.8})),s.push(f("circle",{id:`decoration-dot-end-${t}`,cx:n,cy:r,r:2,fill:i,opacity:.9})),s},OC=(t,e,n,r,i)=>{if(t===0)return null;const o=[];for(let b=0;b<t;b++){const P=b%2===0,w=Math.floor(b/2),$=fo(w,e),M=uo(P,w,e),A=n+M+$,I=r-b*i;o.push({x:A,y:I})}const s=o[0],a=o[o.length-1],l=6,c=t>5?t*16:100,h=s.x-e-c,u=s.x+e+c,d=s.y+l+c/6,p=a.x-e-c,g=a.x+e+c,y=a.y+l-c/6,m=`
111
111
  M ${h} ${d}
112
112
  L ${u} ${d}
113
113
  L ${g} ${y}
@@ -125,8 +125,8 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
125
125
  L ${u} ${d+l}
126
126
  L ${h} ${d+l}
127
127
  Z
128
- `;return S(W,{children:[f(_t,{children:S(yt,{children:[S("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),f("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),f("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),S("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),f("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),f("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),S("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),f("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),f("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]})}),f(ot,{id:"base-plate-front",d:_,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),f(ot,{id:"base-plate-side",d:x,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),f(ot,{id:"base-plate-top",d:m,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},Pg=t=>{const{Title:e,Item:n,data:r,options:i,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:h="top",itemVerticalOffset:u=-12,firstDecorationWidth:d=90}=t,{title:p,desc:g,items:y=[]}=r,m=e?f(e,{title:p,desc:g}):null,x=Z(f(n,{indexes:[0],data:r,datum:y[0],positionH:"center"})),_=Z(f(Y,{indexes:[0]})),v=Zt(i),b=10,P=Math.max(6,c*.15),w=yC(y.length,x,o,a,l,c,d,b),{startY:$,leftItemAlignedX:M,rightItemAlignedX:A,cylinderAreaStartX:I}=w,C=[],k=[];y.forEach((T,O)=>{const X=wt(i,[O])||v;C.push(...vC(O,X));const V=_C(O,o,a,l,P,$,I),et=bC(O,V,o,s),{itemPos:q,lineStartX:lt,lineEndX:U,lineY:Q}=xC(O,V,x,o,M,A,h,u,b),K=wC(O,lt,U,Q,X);et.push(...K);const nt=f(n,{indexes:[O],datum:T,data:r,x:q.x,y:q.y,positionH:O%2===0?"flipped":"normal"}),ct=[f(At,{indexes:[O],x:q.x+x.width/2-_.width/2,y:q.y+x.height+10}),f(Y,{indexes:[O],x:q.x+x.width/2-_.width/2,y:q.y-_.height-10})];k[O]={cylinderNodes:et,itemNode:nt,btnNodes:ct,itemX:q.x,itemY:q.y}});let E=1/0,L=1/0,F=-1/0,z=-1/0;k.forEach(T=>{const{itemX:O,itemY:X}=T;E=Math.min(E,O),L=Math.min(L,X),F=Math.max(F,O+x.width),z=Math.max(z,X+x.height)});const j=F-E,R=z-L,H=[f(_t,{children:C})],D=[],B=$C(y.length,o,I,$,P);B&&H.push(B);for(let T=y.length-1;T>=0;T--){const O=k[T];O&&(H.push(S(W,{children:[f(W,{children:O.cylinderNodes}),O.itemNode]})),D.push(...O.btnNodes))}if(y.length>0){const T=y.length%2===0,O=Math.floor(y.length/2),X=fo(O,o),V=uo(T,O,o),et=I+V+X,q=$-y.length*P;D.push(f(Y,{indexes:[y.length],x:et,y:q-100}))}return S(it,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,S(W,{width:j,height:R,children:[f(vt,{children:H}),f(gt,{children:D})]})]})};$t("sequence-cylinders-3d",{component:Pg,composites:["title","item"]});const Pt={WIDTH:160,HEIGHT:260,ARROW_HEIGHT:148,ARROW_WIDTH:100,LINE_X:100,RECT_X:0,RECT_Y:80,RECT_WIDTH:100,RECT_HEIGHT:130},Me={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function PC(t,e,n){return(t+e*7+n*13)%100}function MC(t){const e=Math.ceil(Math.sqrt(t*1.5)),n=Math.ceil(t/e);return{cols:e,rows:n}}function OC(t,e,n,r,i,o,s,a){const l=Math.max(i,Math.min(t+n,o)),c=Math.max(s,Math.min(e+r,a));return{x:l,y:c}}function Mg({count:t,rectX:e,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],a=Me.SIZE/2,{cols:l,rows:c}=MC(t),h=(r-a*2)/(l+1),u=(i-a*2)/(c+1);let d=0;for(let p=0;p<c&&d<t;p++)for(let g=0;g<l&&d<t;g++){const y=PC(o,p,g),m=y%16-8,x=y*3%12-6,_=p%2===1?h/2:0,v=e+a+(g+1)*h+_,b=n+a+(p+1)*u,{x:P,y:w}=OC(v,b,m,x,e+a,e+r-a,n+a,n+i-a);s.push({x:P,y:w,colorIndex:d}),d++}return s}function CC(t,e){if(e<=1)return Me.MAX_COUNT;const n=t/(e-1),r=Me.MAX_COUNT-Me.MIN_COUNT;return Math.round(Me.MAX_COUNT-r*n)}function SC(){const s={topLeft:{x:40,y:25},topRight:{x:160,y:75},bottomLeft:{x:40,y:205},bottomRight:{x:160,y:255}},a=[];for(let l=0;l<=12;l++){const c=l/12,h={x:s.topLeft.x+(s.bottomLeft.x-s.topLeft.x)*c,y:s.topLeft.y+(s.bottomLeft.y-s.topLeft.y)*c},u={x:s.topRight.x+(s.bottomRight.x-s.topRight.x)*c,y:s.topRight.y+(s.bottomRight.y-s.topRight.y)*c};a.push(`M${h.x} ${h.y}L${u.x} ${u.y}`);const d={x:s.topLeft.x+(s.topRight.x-s.topLeft.x)*c,y:s.topLeft.y+(s.topRight.y-s.topLeft.y)*c},p={x:s.bottomLeft.x+(s.bottomRight.x-s.bottomLeft.x)*c,y:s.bottomLeft.y+(s.bottomRight.y-s.bottomLeft.y)*c};a.push(`M${d.x} ${d.y}L${p.x} ${p.y}`)}return a.join("")}function Og(t,e){return t.map(n=>{const r=wt(e,[n.colorIndex]);return f(ot,{d:"M4 0L8 4L4 8L0 4Z",fill:r,x:n.x,y:n.y,width:Me.SIZE,height:Me.SIZE,"data-element-type":"shape"})})}function IC(t,e,n,r,i){return S(W,{x:e,y:0,width:Pt.WIDTH,height:Pt.HEIGHT,children:[S(Dt,{children:[f(ot,{d:SC(),stroke:"#D9D9D9",strokeWidth:2}),f(ot,{d:`M${Pt.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),f(pt,{x:Pt.RECT_X,y:Pt.RECT_Y,width:Pt.RECT_WIDTH,height:Pt.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),f(yt,{children:Og(r,i)}),f(zt,{x:Pt.LINE_X-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(t+1).padStart(2,"0")})]})}function AC(t,e){const n=Pt.RECT_Y+Pt.RECT_HEIGHT/2-Pt.ARROW_HEIGHT/2,r=Math.max(Math.round(Me.MIN_COUNT*Me.ARROW_RATIO),Me.MIN_ARROW_COUNT),i=Mg({count:r,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return S(W,{x:t+Pt.WIDTH,y:n,children:[f(ot,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:Pt.ARROW_WIDTH,height:Pt.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),f(yt,{children:Og(i,e)})]})}const Cg=t=>{const{Title:e,Item:n,data:r,gap:i=20,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:l[0],width:Pt.WIDTH,positionH:"center"})),d=[],p=[],g=[],y=Pt.HEIGHT+i,m=y+u.height+10;if(l.forEach((x,_)=>{const v=_*Pt.WIDTH,b=[_],P=wt(o,b),w=CC(_,l.length),$=Mg({count:w,rectX:Pt.RECT_X,rectY:Pt.RECT_Y,rectWidth:Pt.RECT_WIDTH,rectHeight:Pt.RECT_HEIGHT,seed:_*100});d.push(IC(_,v,P,$,o)),_===l.length-1&&d.push(AC(v,o)),p.push(f(n,{indexes:b,datum:x,data:r,width:Pt.WIDTH,x:v+Pt.LINE_X-Pt.WIDTH/2,y,positionH:"center"})),g.push(f(At,{indexes:b,x:v+Pt.LINE_X-h.width/2,y:m})),_<l.length-1&&g.push(f(Y,{indexes:[_+1],x:v+Pt.WIDTH-h.width/2,y:m}))}),l.length>0){g.unshift(f(Y,{indexes:[0],x:-h.width/2,y:m}));const x=(l.length-1)*Pt.WIDTH;g.push(f(Y,{indexes:[l.length],x:x+Pt.WIDTH-h.width/2,y:m}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{width:Pt.WIDTH*l.length+Pt.ARROW_WIDTH,height:Pt.HEIGHT+i+u.height,children:[f(W,{children:d}),f(vt,{children:p}),f(gt,{children:g})]})]})};$t("sequence-filter-mesh",{component:Cg,composites:["title","item"]});const Sg=t=>{const{Title:e,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null,u=Zt(s),d=ge({colorPrimary:u},s),p=Z(f(Y,{indexes:[0]})),g=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),y=[],m=[],x=[],_=g.width+o*2,v=g.height+o*2+30,b=8,P=6,w=Math.max(p.height+20,40),$=40;if(c.forEach((M,A)=>{const I=A%2===0,C=A*(_+i);let k;I?A%4===2?k=w:k=w+$:k=w+$+60;const E=[A],L=wt(s,E)||u;if(I){const R=L===u?d.colorPrimaryBg||"#E8F3FF":`${L}20`,H=f(pt,{x:C,y:k,width:_,height:v,fill:R,rx:20,ry:20});x.push(H)}m.push(f(n,{indexes:E,datum:M,data:r,x:C+o,y:k+o,positionH:"center",positionV:"normal"}));const F=c.length*b+(c.length-1)*P,z=C+(_-F)/2,j=k+g.height+20;for(let R=0;R<c.length;R++){const H=z+R*(b+P),D=R===A;x.push(f(xt,{x:H,y:j,width:b,height:b,fill:D?L:"transparent",stroke:L,strokeWidth:2}))}y.push(f(At,{indexes:E,x:C+(_-p.width)/2,y:k+v+10})),A===0?y.push(f(Y,{indexes:E,x:C+(_-p.width)/2,y:k-p.height-10})):y.push(f(Y,{indexes:E,x:C-i/2-p.width/2,y:w-p.height-10}))}),c.length>0){const M=[],I=i/2,C=6,k=w+$,E=0-I,L=k+v/2;M.push(`M ${E} ${L-C}`),c.forEach((et,q)=>{const lt=q%2===0,U=q*(_+i);let Q;lt?q%4===2?Q=w:Q=w+$:Q=w+$+60;const K=U-I,nt=U+_+I,ct=Q-I,rt=Q+v+I,ht=Q+v/2;lt?(M.push(`L ${K} ${ct+35}`),M.push(`Q ${K} ${ct} ${K+35} ${ct}`),M.push(`L ${nt-35} ${ct}`),M.push(`Q ${nt} ${ct} ${nt} ${ct+35}`),M.push(`L ${nt} ${ht-C}`)):(M.push(`L ${K} ${ht}`),M.push(`L ${K} ${rt-35}`),M.push(`Q ${K} ${rt} ${K+35} ${rt}`),M.push(`L ${nt-35} ${rt}`),M.push(`Q ${nt} ${rt} ${nt} ${rt-35}`),M.push(`L ${nt} ${ht+C}`))});const F=c.length-1,z=F%2===0,j=F*(_+i);let R;z?F%4===2?R=w:R=w+$:R=w+$+60;const H=j+_+I,D=R+v/2,B=M.join(" "),T="gradient-zigzag-path",O=wt(s,[0])||u,X=wt(s,[c.length-1])||u,V=c.map((et,q)=>{const lt=q/(c.length-1)*100,U=wt(s,[q])||u;return f("stop",{offset:`${lt}%`,stopColor:U})});x.unshift(S(yt,{children:[f(_t,{children:f("linearGradient",{id:T,x1:E,y1:L,x2:H,y2:D,gradientUnits:"userSpaceOnUse",children:V})}),f(ot,{d:B,stroke:`url(#${T})`,strokeWidth:2,fill:"none",width:(c.length-1)*(_+i)+_+I*2,height:v+120})]})),x.unshift(f(xt,{x:E-C,y:L-C,width:C*2,height:C*2,fill:"transparent",stroke:O,strokeWidth:2})),x.unshift(f(xt,{x:H-C,y:D-C,width:C*2,height:C*2,fill:"transparent",stroke:X,strokeWidth:2}))}if(c.length>0){const A=(c.length-1)*(_+i);y.push(f(Y,{indexes:[c.length],x:A+_+(i-p.width)/2,y:w-p.height-10}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{children:[f(Dt,{children:x}),f(vt,{children:m}),f(gt,{children:y})]})]})};$t("sequence-horizontal-zigzag",{component:Sg,composites:["title","item"]});var EC=Object.defineProperty,kC=Object.defineProperties,TC=Object.getOwnPropertyDescriptors,Ig=Object.getOwnPropertySymbols,zC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,Ag=(t,e,n)=>e in t?EC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,po=(t,e)=>{for(var n in e||(e={}))zC.call(e,n)&&Ag(t,n,e[n]);if(Ig)for(var n of Ig(e))HC.call(e,n)&&Ag(t,n,e[n]);return t},go=(t,e)=>kC(t,TC(e));function RC(t){const{width:e,height:n,colorPrimary:r}=t,i=r,o=tt.mix(r,"#000",20).toHexString(),s=tt.mix(r,"#fff",50).toHexString(),a=tt.mix(s,"#000",15).toHexString();function l($,M){const I=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],C={x:0,y:M},k={x:$,y:M},E={x:$/2,y:0},L={x:$/2,y:M},F=M*.35,z=F/M,j={x:E.x*(1-z)+C.x*z,y:F},R={x:E.x,y:F},H={x:E.x*(1-z)+k.x*z,y:F},D=I.map(O=>{const X=j.x+(H.x-j.x)*O.position,V=F,et=M*O.offset;return{x:X,y:V+et,position:O.position,offset:O.offset}});D.sort((O,X)=>O.position-X.position);const B=D.filter(O=>O.x<=R.x),T=D.filter(O=>O.x>R.x);return{leftBottom:C,rightBottom:k,peak:E,centerBottom:L,snowLineY:F,leftEdge:j,centerSnow:R,rightEdge:H,leftRipples:B,rightRipples:T}}const{leftRipples:c,rightRipples:h,leftBottom:u,rightBottom:d,peak:p,centerBottom:g,leftEdge:y,centerSnow:m,rightEdge:x}=l(e,n),_=[p,y,...c,m],v=[p,m,...h,x],b=[y,...c,m,g,u],P=[m,...h,x,d,g],w=$=>$.map(M=>`${M.x},${M.y}`).join(" ");return S(Dt,go(po({},t),{children:[f("polygon",{points:w(_),fill:s}),f("polygon",{points:w(v),fill:a}),f("polygon",{points:w(b),fill:i}),f("polygon",{points:w(P),fill:o})]}))}function LC(t){const n={tiny:27,small:48,medium:54,large:72}[t]||54,r="#17C76F",i="#139B57",o="#737373",s=n*.7,a=n-s,l=s*.8,c=l,h=c/6,u=(c-h)/2,d=s;return S(Dt,{width:c,height:n,children:[f("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:r,clipPath:"inset(0 50% 0 0)"}),f("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),f("rect",{x:u,y:d,width:h,height:a,fill:o})]})}function NC(t){const{width:e,height:n}=t,r=e/2,i=n/2,o=Math.min(e,n)*.28,s=Math.min(e,n)*.14,a=Math.min(e,n)*.07,l=0,c=i-a/2,h=a*.4,u=8,d=Array.from({length:u},(p,g)=>{const y=360/u*g;return f("rect",{x:l,y:c,width:s,height:a,rx:h,ry:h,fill:"#FFCB0E",transform:`rotate(${y}, ${r}, ${i})`})});return S(Dt,go(po({},t),{children:[f("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...d]}))}function DC(t){return t.type==="single"?f(Dt,go(po({},t),{width:54,height:36,children:f("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):S(Dt,go(po({},t),{width:73,height:40,children:[f("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),f("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}const Eg=t=>{const{Title:e,Item:n,data:r,gap:i=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=t,{title:h,desc:u,items:d=[]}=r,p=e?f(e,{title:h,desc:u}):null,g=[],y=[],m=[],x=[],_=d.length,v=ge(c.themeConfig),b=60,P={single:{width:54,height:36},double:{width:73,height:40}},w=[],$=[];let M=0,A=0;d.forEach((D,B)=>{const T=_>1?B/(_-1):0,X=(o+(s-o)*T)*1.6,V=Math.max(a,Math.min(l,X));w.push(V);const et=A;$.push(et),A+=V/2,B===_-1&&(M=et+V)});const I=$[0],C=$[_-1]+w[_-1],k=C-I,E=_>1?(k-i*(_-1))/_:k,L=Z(f(n,{indexes:[0],data:r,datum:d[0],width:E})),F=32,z=s+i,j=z+F+10;d.forEach((D,B)=>{const T=[B],O=o+(s-o)*(_>1?B/(_-1):0),X=w[B],V=$[B],et=s-O,q=wt(c,[B])||v.colorPrimary;m.push(f(RC,{colorPrimary:q,x:V,y:et,width:X,height:O}));const lt=I+B*(E+i);x.push(f(zt,{x:lt,y:z,width:E,height:F,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:q,backgroundColor:q,backgroundOpacity:.5,backgroundRadius:4,children:String(B+1).padStart(2,"0")})),g.push(f(n,{indexes:T,datum:D,data:r,x:lt,y:j,width:E}))});const R=Z(f(Y,{indexes:[0]})),H=j+L.height+10;if(d.forEach((D,B)=>{const T=[B],O=I+B*(E+i);y.push(f(At,{indexes:T,x:O+E/2-R.width/2,y:H})),B<d.length-1&&y.push(f(Y,{indexes:[B+1],x:O+E+i/2-R.width/2,y:H}))}),_>0){const D=I;y.unshift(f(Y,{indexes:[0],x:D-i/2-R.width/2,y:H}));const B=I+(_-1)*(E+i);y.push(f(Y,{indexes:[_],x:B+E+i/2-R.width/2,y:H})),m.push(f(NC,{x:M-b-20,y:-35,width:b,height:b}));const T=["tiny","small","medium","large"],O={tiny:27,small:48,medium:54,large:72},X={tiny:14.85,small:26.4,medium:29.7,large:39.6},V=[],et=(lt,U,Q=5)=>V.some(K=>!(lt+U+Q<K.x||lt>K.x+K.width+Q));d.forEach((lt,U)=>{const Q=$[U],K=w[U],ct=U===_-1?3:U===0?1:2;for(let rt=0;rt<ct;rt++){const ht=U*100+rt*37,dt=ht*17%T.length,Mt=T[dt],St=O[Mt],mt=X[Mt];let It=0,ve=0,Xt=!1;for(;It<20&&!Xt;){const Jt=(ht*13+It*19)%100/100,Ut=Q+K*.15,Bt=Q+K*.85-mt;ve=Ut+(Bt-Ut)*Jt,et(ve,mt)||(Xt=!0),It++}if(Xt){V.push({x:ve,width:mt});const Jt=s-St;m.push(f(W,{x:ve,y:Jt,children:LC(Mt)}))}}});const q=Math.max(1,Math.floor(_/1.5));for(let lt=0;lt<q;lt++){const U=lt*11+_*5+1,Q=U%2===0?"single":"double",K=P[Q],nt=C-I-K.width,ct=I+U*7%100/100*nt,rt=U*13%40;m.push(f(DC,{type:Q,x:ct,y:rt,width:K.width,height:K.height}))}}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,S(W,{children:[f(W,{children:m}),f(W,{children:x}),f(vt,{children:g}),f(gt,{children:y})]})]})};$t("sequence-mountain",{component:Eg,composites:["title","item"]});const mo=t=>Math.round(t*1e10)/1e10,Ja=(t,e)=>mo(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),yo=Math.PI,jC=yo*2,FC=(t,e)=>{const n=e-t;return n>yo&&n<jC||n<0&&n>-yo?-1:1},BC=(t,e,n,r,i,o)=>{const s=Math.atan2(t.y-e.y,t.x-e.x),a=Math.atan2(n.y-e.y,n.x-e.x),l=Math.acos((r*r+o*o-i*i)/(2*r*o)),c=1/Math.tan(l/2),h=FC(s,a),u=s+h*l/2;return{prev:s,next:a,main:l,vel:c,dir:h,bis:u}},tl=Math.PI,WC=(t,e,n)=>t.reduce((r,i)=>{const{x:o,y:s,angle:{prev:a,next:l},arc:{x:c,y:h,radius:u}}=i,d=i.angle.dir*-1,p=a+d*tl/2,g=(d*tl+l-a)%tl,y=n-1,m=g/y,x=[];if(!m)return r.concat({x:o,y:s});for(let _=0;_<=y;_++)x.push({x:c+Math.cos(p+m*_)*u,y:h+Math.sin(p+m*_)*u});return r.concat(x)},[]),XC=(t,e=0)=>{const n=t.length,r=[],i=[],o=[];t.forEach((l,c)=>{const h=t[(c-1+n)%n],u=t[(c+1)%n],d=Ja(h,l),p=Ja(h,u),g=Ja(l,u),y=BC(h,l,u,d,p,g);y.main===0&&(y.main=Number.EPSILON,y.vel=Number.MAX_SAFE_INTEGER),y.main===yo&&(y.vel=0);const m={x:l.x,y:l.y,angle:y,offset:0,arc:{radius:e,hit:e,lim:Math.min(g/y.vel,d/y.vel,l.r||0)},in:{length:d,rest:d},out:{length:g,rest:g},locked:!1,id:c,get prev(){return r[(c-1+n)%n]},get next(){return r[(c+1)%n]}};isNaN(y.main)&&(y.main=0,y.bis=y.prev||y.next,o.push(m)),typeof l.r=="number"&&(l.r===0?o.push(m):i.push(m)),r.push(m)}),o.forEach(l=>{l.angle.vel=0,l.arc.radius=0,el(l)}),r.forEach(l=>{l.arc.hit=Math.min(l.out.rest/(l.angle.vel+l.next.angle.vel),l.in.rest/(l.angle.vel+l.prev.angle.vel))});let s=_o(i);for(;s;)YC(s),s=_o(i);for(s=_o(r);s;)VC(s,e),s=_o(r);const a=r.map(l=>{const c=l.arc.radius/Math.sin(l.angle.main/2);return{id:l.id,x:l.x,y:l.y,angle:{main:mo(l.angle.main),prev:l.angle.prev,next:l.angle.next,bis:l.angle.bis,dir:l.angle.dir},offset:mo(l.offset),arc:{radius:mo(l.arc.radius),x:l.x+(Math.cos(l.angle.bis)*c||0),y:l.y+(Math.sin(l.angle.bis)*c||0)},in:{length:l.in.length,x:l.x+Math.cos(l.angle.prev)*l.offset,y:l.y+Math.sin(l.angle.prev)*l.offset},out:{length:l.out.length,x:l.x+Math.cos(l.angle.next)*l.offset,y:l.y+Math.sin(l.angle.next)*l.offset},get prev(){return a[(l.id-1+n)%n]},get next(){return a[(l.id+1)%n]}}});return a},YC=t=>{const{prev:e,next:n}=t;e.locked&&!n.locked?t.arc.radius=Math.min(Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.in.rest/t.angle.vel,t.arc.lim):n.locked&&!e.locked?t.arc.radius=Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),t.out.rest/t.angle.vel,t.arc.lim):n.locked&&e.locked?t.arc.radius=Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.lim):t.arc.radius=Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.arc.lim),el(t)},VC=(t,e)=>{if(e>t.arc.hit){const{prev:n,next:r}=t;n.locked&&!r.locked?t.arc.radius=Math.max(Math.min(t.in.rest/t.angle.vel,t.out.length/(t.angle.vel+r.angle.vel),t.arc.radius),0):r.locked&&!n.locked?t.arc.radius=Math.max(Math.min(t.out.rest/t.angle.vel,t.in.length/(t.angle.vel+n.angle.vel),t.arc.radius),0):r.locked&&n.locked?t.arc.radius=Math.max(Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.radius),0):t.arc.radius=t.arc.hit}el(t)},el=t=>{const{prev:e,next:n}=t;t.offset=t.arc.radius*t.angle.vel,e.out.rest-=t.offset,t.in.rest-=t.offset,t.out.rest-=t.offset,n.in.rest-=t.offset,t.locked=!0,e.arc.hit=Math.min(e.in.length/(e.angle.vel+e.prev.angle.vel),e.in.rest/e.angle.vel,e.out.rest/e.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},_o=t=>t.reduce((e,n)=>n.locked?e:e?n.arc.hit<e.arc.hit?n:e:n,null),kg=t=>{const{Title:e,Item:n,data:r,gap:i=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=t,{title:c,desc:h,items:u=[]}=r,d=e?f(e,{title:c,desc:h}):null;if(u.length===0)return f(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const p=5,g=ge(l.themeConfig),y=30,m=[],x=[],_=[],v=[],b=s!=null?s:o*.6,P=o-b,w=a*1.2,$=u.length*w+(u.length-1)*i;return u.forEach((M,A)=>{const I=[A],C=A===0,k=wt(l,[A])||g.colorPrimary,{points:E,topWidth:L,bottomWidth:F}=qC(b,w,i,u.length,A),z=XC(E,p),j=WC(z,"AMOUNT",10),R=b/2,H=A*(w+i),D=(w-a)/2,B=H+D,T=R+L/2,O=R+F/2,V=T-p,et=P+p,q=a,lt=V+et,U=R-y/2,Q=H+w/2-y/2+(C?8:0),K=O,nt=lt-O,ct=B;_.push(f(pt,{x:V,y:B,width:et,height:q,ry:"10",fill:g.colorPrimaryBg,"data-element-type":"shape"}));const rt=`${k}-pyramid-${A}`;x.push(f(_t,{children:S("linearGradient",{id:rt,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0","stop-color":k}),f("stop",{offset:"100%","stop-color":tt.mix(k,"#fff",40).toHexString()})]})}),f(be,{points:j,fill:`url(#${rt})`,y:H,"data-element-type":"shape"})),v.push(f(Gt,{indexes:I,x:U,y:Q,size:y,fill:"#fff"})),m.push(f(n,{indexes:I,datum:M,data:r,x:K,y:ct,width:nt,height:a,positionV:"middle"}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,S(W,{width:o,height:$,children:[f(W,{children:_}),f(W,{children:x}),f(W,{children:v}),f(vt,{children:m}),f(gt,{})]})]})};function qC(t,e,n,r,i){const o=t/2,s=r*e+(r-1)*n,a=i*(e+n),l=a+e,c=a/s*t,h=l/s*t;let u;if(i===0){const d={x:o,y:0},p={x:o+h/2,y:e},g={x:o-h/2,y:e};u=[d,p,g]}else{const d={x:o+c/2,y:0},p={x:o+h/2,y:e},g={x:o-h/2,y:e},y={x:o-c/2,y:0};u=[d,p,g,y]}return{points:u,topWidth:c,bottomWidth:h}}$t("sequence-pyramid",{component:kg,composites:["title","item"]});const Pr={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},Tg=(t,e)=>`M ${t} ${e}`,Lt=(t,e)=>`L ${t} ${e}`,kn=(t,e,n,r)=>`A ${t} ${t} 0 0 ${e} ${n} ${r}`,GC=(t,{roadWidth:e,innerRadius:n,outerRadius:r})=>{const i=(e+n*2)*t;return{y1:i,y2:i+e,y3:i+e+n,y4:i+e+n*2,y5:i+r*2}};function UC({i:t,direction:e,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:h}=Pr,u=e==="left",d=u?n.x4-h/2:n.x3-h/2,p=r.y3-h/2,g=u?n.x6+Pr.spacing:n.x1-Pr.spacing-s.width,y=r.y3-s.height/2,m=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:f(Ve,{indexes:[t],x:d,y:p,size:h,fill:i}),label:f(zt,{x:u?d-10:d+h+10,y:p+h/2-15,fontSize:30,fill:i,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:f(l,{indexes:[t],data:o,datum:a,x:g,y,positionH:m})}}function ZC({direction:t,x:e,y:n,color:r,elements:i}){const o=t==="left";i.push(f(oC,{x:o?e.x6+10:e.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:r,"data-element-type":"shape"}))}const zg=t=>{const{Title:e,Item:n,data:r,spacing:i=Pr.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null,u=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:d,outerRadius:p,rowWidth:g,colorDefault:y}=Pr,m=d/2,x=p-d,_=(u.width+i)*2+g,v=u.width+i,b=v+p,P=v+g-p,$=P+x+d,M=v+g/2,A=[],I=[],C=[],k=[],E=[],L=[],F=[];for(let R=0;R<c.length;R++){const H=wt(o,[R])||y,D=R%2===0?"right":"left",B=R===0,T=R===c.length-1,O=GC(R,{roadWidth:d,innerRadius:x,outerRadius:p});if(D==="right"){const q=B?[$,O.y1]:[P,O.y1],lt=[b,O.y1],U=[b,O.y5],Q=B?[$,O.y2]:[P,O.y2],K=[b,O.y2];if(A.push(B?Tg($,O.y1+m):Lt(P,O.y1+m),Lt(b,O.y1+m),kn(p-m,0,b,O.y4+m)),I.push(B?Tg(...q):Lt(...q),Lt(...lt),kn(p,0,...U)),C.push(Lt(...Q),Lt(...K),kn(x,1,...K)),T){const nt=d/2;I.push(Lt(M,O.y5),Lt(M,O.y5+nt),Lt(M+d,O.y5-nt),Lt(M,O.y4-nt),Lt(M,O.y4),Lt(b,O.y4)),A.push(Lt(M,O.y4+m))}}else{const q=[b,O.y2],lt=[P,O.y2],U=[P,O.y4],Q=[b,O.y1],K=[P,O.y1];if(A.push(Lt(P,O.y1+m),kn(p-m,1,P,O.y4+m)),I.push(Lt(...q),Lt(...lt),kn(x,1,...U)),C.push(Lt(...Q),Lt(...K),kn(p,0,...K)),T){const nt=d/2;I.push(Lt(M,O.y4),Lt(M,O.y4-nt),Lt(M-d,O.y4+nt),Lt(M,O.y5+nt),Lt(M,O.y5),Lt(P,O.y5)),A.push(Lt(M,O.y4+m))}}ZC({direction:D,x:{x1:v,x6:$},y:O,color:H,elements:F});const{icon:X,label:V,item:et}=UC({i:R,direction:D,x:{x1:v,x3:b,x4:P,x6:$},y:O,color:H,data:r,itemBounds:u,item:c[R],Item:n,flipped:s});k.push(X),E.push(V),L.push(et)}const z=[...I,...C.reverse(),"Z"],j=c.length*(d+x*2)+d*1.5;return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{width:_,height:u.height<=p*2?j:j+u.height-p*2,children:[f(ot,{width:g,height:j,d:z.join(" "),fill:y,stroke:y,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),f(ot,{d:A.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),S(yt,{children:[k,E,L,F]})]})]})};$t("sequence-roadmap-vertical",{component:zg,composites:["title","item"]});const Hg=t=>{const{Title:e,Item:n,data:r,gap:i=40,itemsPerRow:o=3,rowGap:s=80,options:a}=t,{title:l,desc:c,items:h=[]}=r,u=e?f(e,{title:l,desc:c}):null,d=Zt(a),p=Z(f(Y,{indexes:[0]})),g=Z(f(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),y=[],m=[],x=[],_=25,v=25;if(h.forEach((b,P)=>{const w=Math.floor(P/o),$=P%o,M=w%2===1,I=(M?o-1-$:$)*(g.width+i),C=w*(g.height+s),k=[P];if(m.push(f(n,{indexes:k,datum:b,data:r,x:I,y:C,positionH:"center"})),y.push(f(At,{indexes:k,x:I+(g.width-p.width)/2,y:C+g.height+10})),P===0&&y.push(f(Y,{indexes:k,x:I+(g.width-p.width)/2,y:C-p.height-10})),P<h.length-1){const E=Math.floor((P+1)/o),L=(P+1)%o,j=(E%2===1?o-1-L:L)*(g.width+i);if(w===E){const H=M,D=H?j+g.width+(i-_)/2:I+g.width+(i-_)/2,B=C+g.height/2-v/2;x.push(f(Ka,{x:D,y:B,width:_,height:v,colorPrimary:d,rotation:H?180:0})),y.push(f(Y,{indexes:[P+1],x:D+(_-p.width)/2,y:C-p.height-10}))}else{const H=I+g.width/2-_/2,D=C+g.height+(s-v)/2;x.push(f(Ka,{x:H,y:D,width:_,height:v,colorPrimary:d,rotation:90})),y.push(f(Y,{indexes:[P+1],x:H+(_-p.width)/2,y:D+(v-p.height)/2}))}}}),h.length>0){const b=h.length-1,P=Math.floor(b/o),w=b%o,A=(P%2===1?o-1-w:w)*(g.width+i),I=P*(g.height+s);y.push(f(Y,{indexes:[h.length],x:A+(g.width-p.width)/2,y:I+g.height+p.height+20}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,S(W,{children:[f(W,{children:x}),f(vt,{children:m}),f(gt,{children:y})]})]})};$t("sequence-snake-steps",{component:Hg,composites:["title","item"]});const Rg=t=>{const{Title:e,Item:n,data:r,gap:i=40,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Zt(o),u=Z(f(Y,{indexes:[0]})),d=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),p=[],g=[],y=[],m=25,x=25,_=Math.max(u.height+20,30);if(l.forEach((v,b)=>{const P=b*(d.width+i),w=[b];if(g.push(f(n,{indexes:w,datum:v,data:r,x:P,y:_,positionH:"center"})),p.push(f(At,{indexes:w,x:P+(d.width-u.width)/2,y:_+d.height+10})),b===0?p.push(f(Y,{indexes:w,x:P+(d.width-u.width)/2,y:_-u.height-10})):p.push(f(Y,{indexes:w,x:P-i/2-u.width/2,y:_-u.height-10})),b<l.length-1){const $=P+d.width+(i-m)/2,M=_+d.height/2-x/2;y.push(f(Ka,{x:$,y:M,width:m,height:x,colorPrimary:h}))}}),l.length>0){const v=(l.length-1)*(d.width+i);p.push(f(Y,{indexes:[l.length],x:v+d.width+(i-u.width)/2,y:_-u.height-10}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(W,{children:y}),f(vt,{children:g}),f(gt,{children:p})]})]})};$t("sequence-steps",{component:Rg,composites:["title","item"]});const Lg=t=>{const{Title:e,Item:n,data:r,gap:i=10,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Zt(o),u=Vu(o),d=Z(f(Y,{indexes:[0]})),p=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"normal"})),g=[],y=[],m=[],x=10,_=x+70+10,v=_+30,b=6;if(l.length>1){const P=p.height/2+b,w=(l.length-1)*(p.height+i)+p.height/2-b,$=`M ${_} ${P} L ${_} ${w}`,M="gradient-timeline-line",A=w-P,I=l.map((C,k)=>{const L=(k*(p.height+i)+p.height/2-P)/A*100,F=wt(o,[k]);return f("stop",{offset:`${L}%`,stopColor:F||h})});m.push(S(yt,{children:[f(_t,{children:f("linearGradient",{id:M,x1:_,y1:P,x2:_,y2:w,gradientUnits:"userSpaceOnUse",children:I})}),f(ot,{d:$,stroke:`url(#${M})`,strokeWidth:2,width:1,height:w-P})]}))}if(l.forEach((P,w)=>{const $=w*(p.height+i),M=$+p.height/2,A=[w];m.push(f(zt,{x,y:M,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:u[w%u.length],children:`STEP ${w+1}`})),y.push(f(n,{indexes:A,datum:P,data:r,x:v,y:$,positionH:"normal"})),m.push(f(xt,{x:_-b,y:M-b,width:b*2,height:b*2,fill:u[w%u.length]})),g.push(f(At,{indexes:A,x:v-d.width-10,y:$+(p.height-d.height)/2})),w===0?g.push(f(Y,{indexes:A,x:v+(p.width-d.width)/2,y:$-d.height-10})):g.push(f(Y,{indexes:A,x:v+(p.width-d.width)/2,y:$-i/2-d.height/2}))}),l.length>0){const P=(l.length-1)*(p.height+i);g.push(f(Y,{indexes:[l.length],x:v+(p.width-d.width)/2,y:P+p.height+10}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(Dt,{children:m}),f(vt,{children:y}),f(gt,{children:g})]})]})};$t("sequence-timeline",{component:Lg,composites:["title","item"]});const Ng=120,Dg=108,xo=30,QC="M0 34.4903C0 37.8781 0.849901 41.1522 2.43491 44.2451C4.23514 47.7639 6.98606 51.0482 10.5164 54.0008C21.3317 63.0477 39.4607 68.9799 59.9998 68.9799C80.5391 68.9799 98.6691 63.0477 109.483 54.0008C113.013 51.0482 115.765 47.7639 117.564 44.2451C119.149 41.1522 120 37.8781 120 34.4903C120 15.4417 93.1366 0 59.9998 0C26.8632 0 0 15.4417 0 34.4903Z",KC="M0 34.4904V53.9996C0 57.3885 0.849901 60.6616 2.43491 63.7555C9.75384 78.0548 32.7566 88.4909 59.9998 88.4909C87.2438 88.4909 110.246 78.0548 117.564 63.7555C119.149 60.6616 120 57.3885 120 53.9996V34.4904C120 37.8781 119.149 41.1522 117.564 44.2451C115.765 47.7639 113.013 51.0482 109.483 54.0008C98.6691 63.0477 80.5391 68.9799 59.9998 68.9799C39.4607 68.9799 21.3317 63.0477 10.5164 54.0008C6.98606 51.0482 4.23514 47.7639 2.43491 44.2451C0.849901 41.1522 0 37.8781 0 34.4904Z",JC="M0 53.9996V73.5106C0 92.5595 26.8632 108 59.9998 108C93.1366 108 120 92.5595 120 73.5106V53.9996C120 57.3885 119.149 60.6616 117.564 63.7555C110.246 78.0548 87.2438 88.4909 59.9998 88.4909C32.7566 88.4909 9.75384 78.0548 2.43491 63.7555C0.849901 60.6616 0 57.3885 0 53.9996Z",jg=S("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[f("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),f("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),f("feOffset",{dx:"-7",dy:"7"}),f("feGaussianBlur",{stdDeviation:"7.5"}),f("feComposite",{in2:"hardAlpha",operator:"out"}),f("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),f("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),f("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),Fg=t=>{const{Title:e,Item:n,data:r,options:i,gap:o=80}=t,s=Ng,a=Dg,{title:l,desc:c,items:h=[]}=r,u=e?f(e,{title:l,desc:c}):null,d=Zt(i);if(h.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f(_t,{children:jg}),u,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const p=Z(f(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),g=Z(f(Y,{indexes:[0]})),y=[],m=[],x=[];let _=-1/0;const v=p.height+xo+a;return h.forEach((b,P)=>{const w=[P],$=wt(i,w),M=P%2===0,A=P*(s+o),I=M?0:p.height+xo,C=`puck-gradient-middle-${P}`,k=`puck-gradient-bottom-${P}`;x.push(S(W,{x:A,y:I,id:`puck-${P}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[S(_t,{children:[S("linearGradient",{id:C,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:$||d}),f("stop",{offset:"1",stopColor:$||d,stopOpacity:"0.6"})]}),S("linearGradient",{id:k,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:"#F4F4FB"}),f("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),S(Dt,{width:Ng,height:Dg,children:[f(ot,{d:QC,fill:$||d}),f(ot,{d:KC,fill:`url(#${C})`}),f(ot,{d:JC,fill:`url(#${k})`})]}),f("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:P+1})]}));const E=A+(s-p.width)/2,L=M?I+a+xo:I-xo-p.height;if(_=Math.max(_,L+p.height),m.push(f(n,{indexes:w,datum:b,data:r,x:E,y:L,positionH:"center"})),y.push(f(At,{indexes:w,x:E+p.width-g.width/2,y:L+p.height-g.height/2})),P===0&&y.push(f(Y,{indexes:[0],x:A+s/2-g.width/2-(o+s)/2,y:I+a/2-g.height/2})),P<h.length-1){const z=(P+1)%2===0?0:v,j=A+s+o/2-g.width/2,R=(I+a/2+z+a/2)/2-g.height/2;y.push(f(Y,{indexes:[P+1],x:j,y:R}))}else y.push(f(Y,{indexes:[h.length],x:A+s+o/2-g.width/2,y:I+a/2-g.height/2}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[f(_t,{children:jg}),u,S(W,{x:0,y:0,children:[f(W,{children:x}),f(vt,{children:m}),f(gt,{children:y})]})]})};$t("sequence-zigzag-pucks-3d",{component:Fg,composites:["title","item"]});const tS=240,eS=130,nS=105,an=12,rS=120,Bg=50,iS=.6,oS="M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",Wg="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",Xg=70+an/2,Yg=40+an/2,Vg=f("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),qg=t=>{var e;const{Title:n,Item:r,data:i,options:o,dx:s=tS,dy:a=eS,iconSize:l=30}=t,{title:c,desc:h,items:u=[]}=i,d=n?f(n,{title:c,desc:h}):null,p=Zt(o);if(u.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f(_t,{children:Vg}),d,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const g=Z(f(r,{indexes:[0],data:i,datum:u[0]})),y=Z(f(Y,{indexes:[0]})),m=[],x=[],_=[],v=[],b=[];let P=0,w=0,$="",M=1/0,A=-1/0,I=1/0,C=1/0;const k=[];u.forEach((F,z)=>{const j=P,R=w;k.push({x:j,y:R}),M=Math.min(M,R);const H=j-Xg,D=R-Yg;I=Math.min(I,H),C=Math.min(C,D);const B=z%2===0;z<u.length-1&&(P+=s,w=B?w+a:w-a)});const E=Math.max(0,-I),L=Math.max(0,-C);if(P=0,w=0,u.forEach((F,z)=>{const j=[z],R=k[z],H=R.x+E,D=R.y+L,B=wt(o,j),T=Math.max(0,H-Xg),O=Math.max(0,D-Yg),X=10,V=Bg+10,{colorPrimaryBg:et}=ge({colorPrimary:B});if(v.push(S(Dt,{x:T,y:O,width:140,height:110,children:[f(xt,{x:X,y:V,width:rS,height:Bg,fill:B||p,filter:"url(#sequence-zigzag-glow-filter)",opacity:iS}),f(ot,{d:oS,fill:B||p}),f(ot,{d:Wg,fill:"#fff"}),f(ot,{d:Wg,fill:et||et})]})),F.icon){const U=Math.max(0,H-l/2-an/2),Q=Math.max(0,D-l/2-an/2);b.push(f(Gt,{x:U,y:Q,size:l,indexes:j,fill:B}))}const q=H-g.width/2-an/2,lt=Math.max(0,D+nS-an/2);if(A=Math.max(A,lt+g.height),z===0?$=`M ${H} ${D}`:$+=` L ${H} ${D}`,x.push(f(r,{indexes:j,datum:F,data:i,x:q,y:lt})),m.push(f(At,{indexes:j,x:Math.max(0,q+g.width-y.width/2),y:Math.max(0,lt+g.height-y.height/2)})),z<u.length-1){const U=k[z+1],Q=U.x+E,K=U.y+L,nt=Math.max(0,H+(Q-H)/2-y.width/2),ct=Math.max(0,D+(K-D)/2-y.height/2);m.push(f(Y,{indexes:[z+1],x:nt,y:ct}))}else m.push(f(Y,{indexes:[u.length],x:Math.max(0,q+g.width+s/4),y:Math.max(0,lt+g.height/2-y.height/2)}))}),$){const F=(((e=k[k.length-1])==null?void 0:e.x)||0)+E;_.push(f(ot,{d:$,stroke:"#f3f2f1",strokeWidth:an,fill:"none",width:F,height:A-Math.min(M+L,0)}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[f(_t,{children:Vg}),d,S(W,{x:0,y:0,children:[f(W,{children:[..._,...v,...b]}),f(vt,{children:x}),f(gt,{children:m})]})]})};$t("sequence-zigzag-steps",{component:qg,composites:["title","item"]});function sS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nl,Gg;function aS(){if(Gg)return nl;Gg=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;nl=function(r,i){i=i||{};var o=1,s=1;function a(T){var O=T.match(/\n/g);O&&(o+=O.length);var X=T.lastIndexOf(`
129
- `);s=~X?T.length-X:s+T.length}function l(){var T={line:o,column:s};return function(O){return O.position=new c(T),x(),O}}function c(T){this.start=T,this.end={line:o,column:s},this.source=i.source}c.prototype.content=r;var h=[];function u(T){var O=new Error(i.source+":"+o+":"+s+": "+T);if(O.reason=T,O.filename=i.source,O.line=o,O.column=s,O.source=r,i.silent)h.push(O);else throw O}function d(){var T=y();return{type:"stylesheet",stylesheet:{source:i.source,rules:T,parsingErrors:h}}}function p(){return m(/^{\s*/)}function g(){return m(/^}/)}function y(){var T,O=[];for(x(),_(O);r.length&&r.charAt(0)!="}"&&(T=D()||B());)T!==!1&&(O.push(T),_(O));return O}function m(T){var O=T.exec(r);if(O){var X=O[0];return a(X),r=r.slice(X.length),O}}function x(){m(/^\s*/)}function _(T){var O;for(T=T||[];O=v();)O!==!1&&T.push(O);return T}function v(){var T=l();if(!(r.charAt(0)!="/"||r.charAt(1)!="*")){for(var O=2;r.charAt(O)!=""&&(r.charAt(O)!="*"||r.charAt(O+1)!="/");)++O;if(O+=2,r.charAt(O-1)==="")return u("End of comment missing");var X=r.slice(2,O-2);return s+=2,a(X),r=r.slice(O),s+=2,T({type:"comment",comment:X})}}function b(){var T=m(/^([^{]+)/);if(T)return e(T[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(O){return O.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(O){return O.replace(/\u200C/g,",")})}function P(){var T=l(),O=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(O){if(O=e(O[0]),!m(/^:\s*/))return u("property missing ':'");var X=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),V=T({type:"declaration",property:O.replace(t,""),value:X?e(X[0]).replace(t,""):""});return m(/^[;\s]*/),V}}function w(){var T=[];if(!p())return u("missing '{'");_(T);for(var O;O=P();)O!==!1&&(T.push(O),_(T));return g()?T:u("missing '}'")}function $(){for(var T,O=[],X=l();T=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)O.push(T[1]),m(/^,\s*/);if(O.length)return X({type:"keyframe",values:O,declarations:w()})}function M(){var T=l(),X=m(/^@([-\w]+)?keyframes\s*/);if(X){var O=X[1],X=m(/^([-\w]+)\s*/);if(!X)return u("@keyframes missing name");var V=X[1];if(!p())return u("@keyframes missing '{'");for(var et,q=_();et=$();)q.push(et),q=q.concat(_());return g()?T({type:"keyframes",name:V,vendor:O,keyframes:q}):u("@keyframes missing '}'")}}function A(){var T=l(),O=m(/^@supports *([^{]+)/);if(O){var X=e(O[1]);if(!p())return u("@supports missing '{'");var V=_().concat(y());return g()?T({type:"supports",supports:X,rules:V}):u("@supports missing '}'")}}function I(){var T=l(),O=m(/^@host\s*/);if(O){if(!p())return u("@host missing '{'");var X=_().concat(y());return g()?T({type:"host",rules:X}):u("@host missing '}'")}}function C(){var T=l(),O=m(/^@media *([^{]+)/);if(O){var X=e(O[1]);if(!p())return u("@media missing '{'");var V=_().concat(y());return g()?T({type:"media",media:X,rules:V}):u("@media missing '}'")}}function k(){var T=l(),O=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(O)return T({type:"custom-media",name:e(O[1]),media:e(O[2])})}function E(){var T=l(),O=m(/^@page */);if(O){var X=b()||[];if(!p())return u("@page missing '{'");for(var V=_(),et;et=P();)V.push(et),V=V.concat(_());return g()?T({type:"page",selectors:X,declarations:V}):u("@page missing '}'")}}function L(){var T=l(),O=m(/^@([-\w]+)?document *([^{]+)/);if(O){var X=e(O[1]),V=e(O[2]);if(!p())return u("@document missing '{'");var et=_().concat(y());return g()?T({type:"document",document:V,vendor:X,rules:et}):u("@document missing '}'")}}function F(){var T=l(),O=m(/^@font-face\s*/);if(O){if(!p())return u("@font-face missing '{'");for(var X=_(),V;V=P();)X.push(V),X=X.concat(_());return g()?T({type:"font-face",declarations:X}):u("@font-face missing '}'")}}var z=H("import"),j=H("charset"),R=H("namespace");function H(T){var O=new RegExp("^@"+T+"\\s*([^;]+);");return function(){var X=l(),V=m(O);if(V){var et={type:T};return et[T]=V[1].trim(),X(et)}}}function D(){if(r[0]=="@")return M()||C()||k()||A()||z()||j()||R()||L()||E()||I()||F()}function B(){var T=l(),O=b();return O?(_(),T({type:"rule",selectors:O,declarations:w()})):u("selector missing")}return n(d())};function e(r){return r?r.replace(/^\s+|\s+$/g,""):""}function n(r,i){var o=r&&typeof r.type=="string",s=o?r:i;for(var a in r){var l=r[a];Array.isArray(l)?l.forEach(function(c){n(c,s)}):l&&typeof l=="object"&&n(l,s)}return o&&Object.defineProperty(r,"parent",{configurable:!0,writable:!0,enumerable:!1,value:i||null}),r}return nl}var lS=aS();const cS=sS(lS);var Tn=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});const Ug=new Map;function hS(t,e=!0){return Tn(this,null,function*(){const n=fS(t);if(n.size===0)return;const r=[];yield Promise.all(Array.from(n).map(i=>Tn(null,null,function*(){const o=dS(i);if(!o.length)return;const s=yield uS(i);if(!s.length)return;const a=yield Promise.all(s.map(l=>Tn(null,null,function*(){const c=gS(l),h=c["unicode-range"].replace(/\s/g,"");if(!o.find(y=>y.unicodeRange&&y.unicodeRange.replace(/\s/g,"")===h))return null;const d=bb(c["font-family"],Bh(c["font-weight"]));if(!d)return null;const p=c.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(p!=null&&p[1]))return null;const g=ks(d,p[1]);if(e){const y=yield yS(g);c.src=`url(${y}) format('woff2')`}else c.src=`url(${g}) format('woff2')`;return c})));r.push(...a.filter(Boolean)||[])}))),r.length>0&&mS(t,r)})}function fS(t){const e=new Set,n=t.getAttribute("font-family");if(n){const i=rr(n);i&&e.add(i)}const r=t.querySelectorAll("foreignObject span");for(const i of r){const o=rr(i.style.fontFamily);o&&e.add(o)}return e}function uS(t){return Tn(this,null,function*(){const e=Ef(t),n=[];return yield Promise.allSettled(e.map(r=>Tn(null,null,function*(){var i;const o=yield fetch(r).then(s=>s.text()).then(s=>cS(s)).catch(()=>(console.error(`Failed to fetch or parse font CSS: ${r}`),null));(i=o==null?void 0:o.stylesheet)==null||i.rules.forEach(s=>{if(s.type==="font-face"){const a=pS(s);n.push(a)}})}))),n})}function dS(t){const e=[];return document.fonts.forEach(n=>{rr(n.family)===rr(t)&&n.status==="loaded"&&e.push(n)}),e}function pS(t){const e=t.declarations||[],n={};return e.forEach(r=>{const{property:i,value:o}=r;i&&o&&(n[i]=o)}),n}function gS(t){var e,n,r,i,o,s;return{"font-family":(e=t["font-family"])!=null?e:"",src:(n=t.src)!=null?n:"","font-style":(r=t["font-style"])!=null?r:"normal","font-display":(i=t["font-display"])!=null?i:"swap","font-weight":(o=t["font-weight"])!=null?o:"400","unicode-range":(s=t["unicode-range"])!=null?s:"U+0-FFFF"}}function mS(t,e){const n=[],r=new Set;for(const s of e){const a=[s["font-family"],s["font-weight"],s["font-style"],s["unicode-range"],s.src].join("|");r.has(a)||(r.add(a),n.push(s))}if(n.length===0)return;const i=ut("style",{type:"text/css"});i.innerHTML=n.map(s=>`
128
+ `;return S(W,{children:[f(_t,{children:S(yt,{children:[S("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),f("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),f("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),S("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),f("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),f("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),S("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[f("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),f("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),f("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]})}),f(ot,{id:"base-plate-front",d:_,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),f(ot,{id:"base-plate-side",d:x,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),f(ot,{id:"base-plate-top",d:m,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},Pg=t=>{const{Title:e,Item:n,data:r,options:i,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:h="top",itemVerticalOffset:u=-12,firstDecorationWidth:d=90}=t,{title:p,desc:g,items:y=[]}=r,m=e?f(e,{title:p,desc:g}):null,x=Z(f(n,{indexes:[0],data:r,datum:y[0],positionH:"center"})),_=Z(f(Y,{indexes:[0]})),v=Zt(i),b=10,P=Math.max(6,c*.15),w=vC(y.length,x,o,a,l,c,d,b),{startY:$,leftItemAlignedX:M,rightItemAlignedX:A,cylinderAreaStartX:I}=w,C=[],k=[];y.forEach((T,O)=>{const X=wt(i,[O])||v;C.push(...$C(O,X));const V=bC(O,o,a,l,P,$,I),et=PC(O,V,o,s),{itemPos:q,lineStartX:lt,lineEndX:U,lineY:Q}=wC(O,V,x,o,M,A,h,u,b),K=MC(O,lt,U,Q,X);et.push(...K);const nt=f(n,{indexes:[O],datum:T,data:r,x:q.x,y:q.y,positionH:O%2===0?"flipped":"normal"}),ct=[f(At,{indexes:[O],x:q.x+x.width/2-_.width/2,y:q.y+x.height+10}),f(Y,{indexes:[O],x:q.x+x.width/2-_.width/2,y:q.y-_.height-10})];k[O]={cylinderNodes:et,itemNode:nt,btnNodes:ct,itemX:q.x,itemY:q.y}});let E=1/0,L=1/0,F=-1/0,z=-1/0;k.forEach(T=>{const{itemX:O,itemY:X}=T;E=Math.min(E,O),L=Math.min(L,X),F=Math.max(F,O+x.width),z=Math.max(z,X+x.height)});const j=F-E,R=z-L,H=[f(_t,{children:C})],D=[],B=OC(y.length,o,I,$,P);B&&H.push(B);for(let T=y.length-1;T>=0;T--){const O=k[T];O&&(H.push(S(W,{children:[f(W,{children:O.cylinderNodes}),O.itemNode]})),D.push(...O.btnNodes))}if(y.length>0){const T=y.length%2===0,O=Math.floor(y.length/2),X=fo(O,o),V=uo(T,O,o),et=I+V+X,q=$-y.length*P;D.push(f(Y,{indexes:[y.length],x:et,y:q-100}))}return S(it,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,S(W,{width:j,height:R,children:[f(vt,{children:H}),f(gt,{children:D})]})]})};$t("sequence-cylinders-3d",{component:Pg,composites:["title","item"]});const Pt={WIDTH:160,HEIGHT:260,ARROW_HEIGHT:148,ARROW_WIDTH:100,LINE_X:100,RECT_X:0,RECT_Y:80,RECT_WIDTH:100,RECT_HEIGHT:130},Me={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function CC(t,e,n){return(t+e*7+n*13)%100}function SC(t){const e=Math.ceil(Math.sqrt(t*1.5)),n=Math.ceil(t/e);return{cols:e,rows:n}}function IC(t,e,n,r,i,o,s,a){const l=Math.max(i,Math.min(t+n,o)),c=Math.max(s,Math.min(e+r,a));return{x:l,y:c}}function Mg({count:t,rectX:e,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],a=Me.SIZE/2,{cols:l,rows:c}=SC(t),h=(r-a*2)/(l+1),u=(i-a*2)/(c+1);let d=0;for(let p=0;p<c&&d<t;p++)for(let g=0;g<l&&d<t;g++){const y=CC(o,p,g),m=y%16-8,x=y*3%12-6,_=p%2===1?h/2:0,v=e+a+(g+1)*h+_,b=n+a+(p+1)*u,{x:P,y:w}=IC(v,b,m,x,e+a,e+r-a,n+a,n+i-a);s.push({x:P,y:w,colorIndex:d}),d++}return s}function AC(t,e){if(e<=1)return Me.MAX_COUNT;const n=t/(e-1),r=Me.MAX_COUNT-Me.MIN_COUNT;return Math.round(Me.MAX_COUNT-r*n)}function EC(){const s={topLeft:{x:40,y:25},topRight:{x:160,y:75},bottomLeft:{x:40,y:205},bottomRight:{x:160,y:255}},a=[];for(let l=0;l<=12;l++){const c=l/12,h={x:s.topLeft.x+(s.bottomLeft.x-s.topLeft.x)*c,y:s.topLeft.y+(s.bottomLeft.y-s.topLeft.y)*c},u={x:s.topRight.x+(s.bottomRight.x-s.topRight.x)*c,y:s.topRight.y+(s.bottomRight.y-s.topRight.y)*c};a.push(`M${h.x} ${h.y}L${u.x} ${u.y}`);const d={x:s.topLeft.x+(s.topRight.x-s.topLeft.x)*c,y:s.topLeft.y+(s.topRight.y-s.topLeft.y)*c},p={x:s.bottomLeft.x+(s.bottomRight.x-s.bottomLeft.x)*c,y:s.bottomLeft.y+(s.bottomRight.y-s.bottomLeft.y)*c};a.push(`M${d.x} ${d.y}L${p.x} ${p.y}`)}return a.join("")}function Og(t,e){return t.map(n=>{const r=wt(e,[n.colorIndex]);return f(ot,{d:"M4 0L8 4L4 8L0 4Z",fill:r,x:n.x,y:n.y,width:Me.SIZE,height:Me.SIZE,"data-element-type":"shape"})})}function kC(t,e,n,r,i){return S(W,{x:e,y:0,width:Pt.WIDTH,height:Pt.HEIGHT,children:[S(Dt,{children:[f(ot,{d:EC(),stroke:"#D9D9D9",strokeWidth:2}),f(ot,{d:`M${Pt.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),f(pt,{x:Pt.RECT_X,y:Pt.RECT_Y,width:Pt.RECT_WIDTH,height:Pt.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),f(yt,{children:Og(r,i)}),f(zt,{x:Pt.LINE_X-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(t+1).padStart(2,"0")})]})}function TC(t,e){const n=Pt.RECT_Y+Pt.RECT_HEIGHT/2-Pt.ARROW_HEIGHT/2,r=Math.max(Math.round(Me.MIN_COUNT*Me.ARROW_RATIO),Me.MIN_ARROW_COUNT),i=Mg({count:r,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return S(W,{x:t+Pt.WIDTH,y:n,children:[f(ot,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:Pt.ARROW_WIDTH,height:Pt.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),f(yt,{children:Og(i,e)})]})}const Cg=t=>{const{Title:e,Item:n,data:r,gap:i=20,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Z(f(Y,{indexes:[0]})),u=Z(f(n,{indexes:[0],data:r,datum:l[0],width:Pt.WIDTH,positionH:"center"})),d=[],p=[],g=[],y=Pt.HEIGHT+i,m=y+u.height+10;if(l.forEach((x,_)=>{const v=_*Pt.WIDTH,b=[_],P=wt(o,b),w=AC(_,l.length),$=Mg({count:w,rectX:Pt.RECT_X,rectY:Pt.RECT_Y,rectWidth:Pt.RECT_WIDTH,rectHeight:Pt.RECT_HEIGHT,seed:_*100});d.push(kC(_,v,P,$,o)),_===l.length-1&&d.push(TC(v,o)),p.push(f(n,{indexes:b,datum:x,data:r,width:Pt.WIDTH,x:v+Pt.LINE_X-Pt.WIDTH/2,y,positionH:"center"})),g.push(f(At,{indexes:b,x:v+Pt.LINE_X-h.width/2,y:m})),_<l.length-1&&g.push(f(Y,{indexes:[_+1],x:v+Pt.WIDTH-h.width/2,y:m}))}),l.length>0){g.unshift(f(Y,{indexes:[0],x:-h.width/2,y:m}));const x=(l.length-1)*Pt.WIDTH;g.push(f(Y,{indexes:[l.length],x:x+Pt.WIDTH-h.width/2,y:m}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{width:Pt.WIDTH*l.length+Pt.ARROW_WIDTH,height:Pt.HEIGHT+i+u.height,children:[f(W,{children:d}),f(vt,{children:p}),f(gt,{children:g})]})]})};$t("sequence-filter-mesh",{component:Cg,composites:["title","item"]});const Sg=t=>{const{Title:e,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null,u=Zt(s),d=ge({colorPrimary:u},s),p=Z(f(Y,{indexes:[0]})),g=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),y=[],m=[],x=[],_=g.width+o*2,v=g.height+o*2+30,b=8,P=6,w=Math.max(p.height+20,40),$=40;if(c.forEach((M,A)=>{const I=A%2===0,C=A*(_+i);let k;I?A%4===2?k=w:k=w+$:k=w+$+60;const E=[A],L=wt(s,E)||u;if(I){const R=L===u?d.colorPrimaryBg||"#E8F3FF":`${L}20`,H=f(pt,{x:C,y:k,width:_,height:v,fill:R,rx:20,ry:20});x.push(H)}m.push(f(n,{indexes:E,datum:M,data:r,x:C+o,y:k+o,positionH:"center",positionV:"normal"}));const F=c.length*b+(c.length-1)*P,z=C+(_-F)/2,j=k+g.height+20;for(let R=0;R<c.length;R++){const H=z+R*(b+P),D=R===A;x.push(f(xt,{x:H,y:j,width:b,height:b,fill:D?L:"transparent",stroke:L,strokeWidth:2}))}y.push(f(At,{indexes:E,x:C+(_-p.width)/2,y:k+v+10})),A===0?y.push(f(Y,{indexes:E,x:C+(_-p.width)/2,y:k-p.height-10})):y.push(f(Y,{indexes:E,x:C-i/2-p.width/2,y:w-p.height-10}))}),c.length>0){const M=[],I=i/2,C=6,k=w+$,E=0-I,L=k+v/2;M.push(`M ${E} ${L-C}`),c.forEach((et,q)=>{const lt=q%2===0,U=q*(_+i);let Q;lt?q%4===2?Q=w:Q=w+$:Q=w+$+60;const K=U-I,nt=U+_+I,ct=Q-I,rt=Q+v+I,ht=Q+v/2;lt?(M.push(`L ${K} ${ct+35}`),M.push(`Q ${K} ${ct} ${K+35} ${ct}`),M.push(`L ${nt-35} ${ct}`),M.push(`Q ${nt} ${ct} ${nt} ${ct+35}`),M.push(`L ${nt} ${ht-C}`)):(M.push(`L ${K} ${ht}`),M.push(`L ${K} ${rt-35}`),M.push(`Q ${K} ${rt} ${K+35} ${rt}`),M.push(`L ${nt-35} ${rt}`),M.push(`Q ${nt} ${rt} ${nt} ${rt-35}`),M.push(`L ${nt} ${ht+C}`))});const F=c.length-1,z=F%2===0,j=F*(_+i);let R;z?F%4===2?R=w:R=w+$:R=w+$+60;const H=j+_+I,D=R+v/2,B=M.join(" "),T="gradient-zigzag-path",O=wt(s,[0])||u,X=wt(s,[c.length-1])||u,V=c.map((et,q)=>{const lt=q/(c.length-1)*100,U=wt(s,[q])||u;return f("stop",{offset:`${lt}%`,stopColor:U})});x.unshift(S(yt,{children:[f(_t,{children:f("linearGradient",{id:T,x1:E,y1:L,x2:H,y2:D,gradientUnits:"userSpaceOnUse",children:V})}),f(ot,{d:B,stroke:`url(#${T})`,strokeWidth:2,fill:"none",width:(c.length-1)*(_+i)+_+I*2,height:v+120})]})),x.unshift(f(xt,{x:E-C,y:L-C,width:C*2,height:C*2,fill:"transparent",stroke:O,strokeWidth:2})),x.unshift(f(xt,{x:H-C,y:D-C,width:C*2,height:C*2,fill:"transparent",stroke:X,strokeWidth:2}))}if(c.length>0){const A=(c.length-1)*(_+i);y.push(f(Y,{indexes:[c.length],x:A+_+(i-p.width)/2,y:w-p.height-10}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{children:[f(Dt,{children:x}),f(vt,{children:m}),f(gt,{children:y})]})]})};$t("sequence-horizontal-zigzag",{component:Sg,composites:["title","item"]});var zC=Object.defineProperty,HC=Object.defineProperties,RC=Object.getOwnPropertyDescriptors,Ig=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,NC=Object.prototype.propertyIsEnumerable,Ag=(t,e,n)=>e in t?zC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,po=(t,e)=>{for(var n in e||(e={}))LC.call(e,n)&&Ag(t,n,e[n]);if(Ig)for(var n of Ig(e))NC.call(e,n)&&Ag(t,n,e[n]);return t},go=(t,e)=>HC(t,RC(e));function DC(t){const{width:e,height:n,colorPrimary:r}=t,i=r,o=tt.mix(r,"#000",20).toHexString(),s=tt.mix(r,"#fff",50).toHexString(),a=tt.mix(s,"#000",15).toHexString();function l($,M){const I=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],C={x:0,y:M},k={x:$,y:M},E={x:$/2,y:0},L={x:$/2,y:M},F=M*.35,z=F/M,j={x:E.x*(1-z)+C.x*z,y:F},R={x:E.x,y:F},H={x:E.x*(1-z)+k.x*z,y:F},D=I.map(O=>{const X=j.x+(H.x-j.x)*O.position,V=F,et=M*O.offset;return{x:X,y:V+et,position:O.position,offset:O.offset}});D.sort((O,X)=>O.position-X.position);const B=D.filter(O=>O.x<=R.x),T=D.filter(O=>O.x>R.x);return{leftBottom:C,rightBottom:k,peak:E,centerBottom:L,snowLineY:F,leftEdge:j,centerSnow:R,rightEdge:H,leftRipples:B,rightRipples:T}}const{leftRipples:c,rightRipples:h,leftBottom:u,rightBottom:d,peak:p,centerBottom:g,leftEdge:y,centerSnow:m,rightEdge:x}=l(e,n),_=[p,y,...c,m],v=[p,m,...h,x],b=[y,...c,m,g,u],P=[m,...h,x,d,g],w=$=>$.map(M=>`${M.x},${M.y}`).join(" ");return S(Dt,go(po({},t),{children:[f("polygon",{points:w(_),fill:s}),f("polygon",{points:w(v),fill:a}),f("polygon",{points:w(b),fill:i}),f("polygon",{points:w(P),fill:o})]}))}function jC(t){const n={tiny:27,small:48,medium:54,large:72}[t]||54,r="#17C76F",i="#139B57",o="#737373",s=n*.7,a=n-s,l=s*.8,c=l,h=c/6,u=(c-h)/2,d=s;return S(Dt,{width:c,height:n,children:[f("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:r,clipPath:"inset(0 50% 0 0)"}),f("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),f("rect",{x:u,y:d,width:h,height:a,fill:o})]})}function FC(t){const{width:e,height:n}=t,r=e/2,i=n/2,o=Math.min(e,n)*.28,s=Math.min(e,n)*.14,a=Math.min(e,n)*.07,l=0,c=i-a/2,h=a*.4,u=8,d=Array.from({length:u},(p,g)=>{const y=360/u*g;return f("rect",{x:l,y:c,width:s,height:a,rx:h,ry:h,fill:"#FFCB0E",transform:`rotate(${y}, ${r}, ${i})`})});return S(Dt,go(po({},t),{children:[f("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...d]}))}function BC(t){return t.type==="single"?f(Dt,go(po({},t),{width:54,height:36,children:f("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):S(Dt,go(po({},t),{width:73,height:40,children:[f("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),f("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}const Eg=t=>{const{Title:e,Item:n,data:r,gap:i=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=t,{title:h,desc:u,items:d=[]}=r,p=e?f(e,{title:h,desc:u}):null,g=[],y=[],m=[],x=[],_=d.length,v=ge(c.themeConfig),b=60,P={single:{width:54,height:36},double:{width:73,height:40}},w=[],$=[];let M=0,A=0;d.forEach((D,B)=>{const T=_>1?B/(_-1):0,X=(o+(s-o)*T)*1.6,V=Math.max(a,Math.min(l,X));w.push(V);const et=A;$.push(et),A+=V/2,B===_-1&&(M=et+V)});const I=$[0],C=$[_-1]+w[_-1],k=C-I,E=_>1?(k-i*(_-1))/_:k,L=Z(f(n,{indexes:[0],data:r,datum:d[0],width:E})),F=32,z=s+i,j=z+F+10;d.forEach((D,B)=>{const T=[B],O=o+(s-o)*(_>1?B/(_-1):0),X=w[B],V=$[B],et=s-O,q=wt(c,[B])||v.colorPrimary;m.push(f(DC,{colorPrimary:q,x:V,y:et,width:X,height:O}));const lt=I+B*(E+i);x.push(f(zt,{x:lt,y:z,width:E,height:F,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:q,backgroundColor:q,backgroundOpacity:.5,backgroundRadius:4,children:String(B+1).padStart(2,"0")})),g.push(f(n,{indexes:T,datum:D,data:r,x:lt,y:j,width:E}))});const R=Z(f(Y,{indexes:[0]})),H=j+L.height+10;if(d.forEach((D,B)=>{const T=[B],O=I+B*(E+i);y.push(f(At,{indexes:T,x:O+E/2-R.width/2,y:H})),B<d.length-1&&y.push(f(Y,{indexes:[B+1],x:O+E+i/2-R.width/2,y:H}))}),_>0){const D=I;y.unshift(f(Y,{indexes:[0],x:D-i/2-R.width/2,y:H}));const B=I+(_-1)*(E+i);y.push(f(Y,{indexes:[_],x:B+E+i/2-R.width/2,y:H})),m.push(f(FC,{x:M-b-20,y:-35,width:b,height:b}));const T=["tiny","small","medium","large"],O={tiny:27,small:48,medium:54,large:72},X={tiny:14.85,small:26.4,medium:29.7,large:39.6},V=[],et=(lt,U,Q=5)=>V.some(K=>!(lt+U+Q<K.x||lt>K.x+K.width+Q));d.forEach((lt,U)=>{const Q=$[U],K=w[U],ct=U===_-1?3:U===0?1:2;for(let rt=0;rt<ct;rt++){const ht=U*100+rt*37,dt=ht*17%T.length,Mt=T[dt],St=O[Mt],mt=X[Mt];let It=0,ve=0,Xt=!1;for(;It<20&&!Xt;){const Jt=(ht*13+It*19)%100/100,Ut=Q+K*.15,Bt=Q+K*.85-mt;ve=Ut+(Bt-Ut)*Jt,et(ve,mt)||(Xt=!0),It++}if(Xt){V.push({x:ve,width:mt});const Jt=s-St;m.push(f(W,{x:ve,y:Jt,children:jC(Mt)}))}}});const q=Math.max(1,Math.floor(_/1.5));for(let lt=0;lt<q;lt++){const U=lt*11+_*5+1,Q=U%2===0?"single":"double",K=P[Q],nt=C-I-K.width,ct=I+U*7%100/100*nt,rt=U*13%40;m.push(f(BC,{type:Q,x:ct,y:rt,width:K.width,height:K.height}))}}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,S(W,{children:[f(W,{children:m}),f(W,{children:x}),f(vt,{children:g}),f(gt,{children:y})]})]})};$t("sequence-mountain",{component:Eg,composites:["title","item"]});const mo=t=>Math.round(t*1e10)/1e10,Ja=(t,e)=>mo(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),yo=Math.PI,WC=yo*2,XC=(t,e)=>{const n=e-t;return n>yo&&n<WC||n<0&&n>-yo?-1:1},YC=(t,e,n,r,i,o)=>{const s=Math.atan2(t.y-e.y,t.x-e.x),a=Math.atan2(n.y-e.y,n.x-e.x),l=Math.acos((r*r+o*o-i*i)/(2*r*o)),c=1/Math.tan(l/2),h=XC(s,a),u=s+h*l/2;return{prev:s,next:a,main:l,vel:c,dir:h,bis:u}},tl=Math.PI,VC=(t,e,n)=>t.reduce((r,i)=>{const{x:o,y:s,angle:{prev:a,next:l},arc:{x:c,y:h,radius:u}}=i,d=i.angle.dir*-1,p=a+d*tl/2,g=(d*tl+l-a)%tl,y=n-1,m=g/y,x=[];if(!m)return r.concat({x:o,y:s});for(let _=0;_<=y;_++)x.push({x:c+Math.cos(p+m*_)*u,y:h+Math.sin(p+m*_)*u});return r.concat(x)},[]),qC=(t,e=0)=>{const n=t.length,r=[],i=[],o=[];t.forEach((l,c)=>{const h=t[(c-1+n)%n],u=t[(c+1)%n],d=Ja(h,l),p=Ja(h,u),g=Ja(l,u),y=YC(h,l,u,d,p,g);y.main===0&&(y.main=Number.EPSILON,y.vel=Number.MAX_SAFE_INTEGER),y.main===yo&&(y.vel=0);const m={x:l.x,y:l.y,angle:y,offset:0,arc:{radius:e,hit:e,lim:Math.min(g/y.vel,d/y.vel,l.r||0)},in:{length:d,rest:d},out:{length:g,rest:g},locked:!1,id:c,get prev(){return r[(c-1+n)%n]},get next(){return r[(c+1)%n]}};isNaN(y.main)&&(y.main=0,y.bis=y.prev||y.next,o.push(m)),typeof l.r=="number"&&(l.r===0?o.push(m):i.push(m)),r.push(m)}),o.forEach(l=>{l.angle.vel=0,l.arc.radius=0,el(l)}),r.forEach(l=>{l.arc.hit=Math.min(l.out.rest/(l.angle.vel+l.next.angle.vel),l.in.rest/(l.angle.vel+l.prev.angle.vel))});let s=_o(i);for(;s;)GC(s),s=_o(i);for(s=_o(r);s;)UC(s,e),s=_o(r);const a=r.map(l=>{const c=l.arc.radius/Math.sin(l.angle.main/2);return{id:l.id,x:l.x,y:l.y,angle:{main:mo(l.angle.main),prev:l.angle.prev,next:l.angle.next,bis:l.angle.bis,dir:l.angle.dir},offset:mo(l.offset),arc:{radius:mo(l.arc.radius),x:l.x+(Math.cos(l.angle.bis)*c||0),y:l.y+(Math.sin(l.angle.bis)*c||0)},in:{length:l.in.length,x:l.x+Math.cos(l.angle.prev)*l.offset,y:l.y+Math.sin(l.angle.prev)*l.offset},out:{length:l.out.length,x:l.x+Math.cos(l.angle.next)*l.offset,y:l.y+Math.sin(l.angle.next)*l.offset},get prev(){return a[(l.id-1+n)%n]},get next(){return a[(l.id+1)%n]}}});return a},GC=t=>{const{prev:e,next:n}=t;e.locked&&!n.locked?t.arc.radius=Math.min(Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.in.rest/t.angle.vel,t.arc.lim):n.locked&&!e.locked?t.arc.radius=Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),t.out.rest/t.angle.vel,t.arc.lim):n.locked&&e.locked?t.arc.radius=Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.lim):t.arc.radius=Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.arc.lim),el(t)},UC=(t,e)=>{if(e>t.arc.hit){const{prev:n,next:r}=t;n.locked&&!r.locked?t.arc.radius=Math.max(Math.min(t.in.rest/t.angle.vel,t.out.length/(t.angle.vel+r.angle.vel),t.arc.radius),0):r.locked&&!n.locked?t.arc.radius=Math.max(Math.min(t.out.rest/t.angle.vel,t.in.length/(t.angle.vel+n.angle.vel),t.arc.radius),0):r.locked&&n.locked?t.arc.radius=Math.max(Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.radius),0):t.arc.radius=t.arc.hit}el(t)},el=t=>{const{prev:e,next:n}=t;t.offset=t.arc.radius*t.angle.vel,e.out.rest-=t.offset,t.in.rest-=t.offset,t.out.rest-=t.offset,n.in.rest-=t.offset,t.locked=!0,e.arc.hit=Math.min(e.in.length/(e.angle.vel+e.prev.angle.vel),e.in.rest/e.angle.vel,e.out.rest/e.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},_o=t=>t.reduce((e,n)=>n.locked?e:e?n.arc.hit<e.arc.hit?n:e:n,null),kg=t=>{const{Title:e,Item:n,data:r,gap:i=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=t,{title:c,desc:h,items:u=[]}=r,d=e?f(e,{title:c,desc:h}):null;if(u.length===0)return f(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const p=5,g=ge(l.themeConfig),y=30,m=[],x=[],_=[],v=[],b=s!=null?s:o*.6,P=o-b,w=a*1.2,$=u.length*w+(u.length-1)*i;return u.forEach((M,A)=>{const I=[A],C=A===0,k=wt(l,[A])||g.colorPrimary,{points:E,topWidth:L,bottomWidth:F}=ZC(b,w,i,u.length,A),z=qC(E,p),j=VC(z,"AMOUNT",10),R=b/2,H=A*(w+i),D=(w-a)/2,B=H+D,T=R+L/2,O=R+F/2,V=T-p,et=P+p,q=a,lt=V+et,U=R-y/2,Q=H+w/2-y/2+(C?8:0),K=O,nt=lt-O,ct=B;_.push(f(pt,{x:V,y:B,width:et,height:q,ry:"10",fill:g.colorPrimaryBg,"data-element-type":"shape"}));const rt=`${k}-pyramid-${A}`;x.push(f(_t,{children:S("linearGradient",{id:rt,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[f("stop",{offset:"0","stop-color":k}),f("stop",{offset:"100%","stop-color":tt.mix(k,"#fff",40).toHexString()})]})}),f(be,{points:j,fill:`url(#${rt})`,y:H,"data-element-type":"shape"})),v.push(f(Gt,{indexes:I,x:U,y:Q,size:y,fill:"#fff"})),m.push(f(n,{indexes:I,datum:M,data:r,x:K,y:ct,width:nt,height:a,positionV:"middle"}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,S(W,{width:o,height:$,children:[f(W,{children:_}),f(W,{children:x}),f(W,{children:v}),f(vt,{children:m}),f(gt,{})]})]})};function ZC(t,e,n,r,i){const o=t/2,s=r*e+(r-1)*n,a=i*(e+n),l=a+e,c=a/s*t,h=l/s*t;let u;if(i===0){const d={x:o,y:0},p={x:o+h/2,y:e},g={x:o-h/2,y:e};u=[d,p,g]}else{const d={x:o+c/2,y:0},p={x:o+h/2,y:e},g={x:o-h/2,y:e},y={x:o-c/2,y:0};u=[d,p,g,y]}return{points:u,topWidth:c,bottomWidth:h}}$t("sequence-pyramid",{component:kg,composites:["title","item"]});const Pr={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},Tg=(t,e)=>`M ${t} ${e}`,Lt=(t,e)=>`L ${t} ${e}`,kn=(t,e,n,r)=>`A ${t} ${t} 0 0 ${e} ${n} ${r}`,QC=(t,{roadWidth:e,innerRadius:n,outerRadius:r})=>{const i=(e+n*2)*t;return{y1:i,y2:i+e,y3:i+e+n,y4:i+e+n*2,y5:i+r*2}};function KC({i:t,direction:e,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:h}=Pr,u=e==="left",d=u?n.x4-h/2:n.x3-h/2,p=r.y3-h/2,g=u?n.x6+Pr.spacing:n.x1-Pr.spacing-s.width,y=r.y3-s.height/2,m=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:f(Ve,{indexes:[t],x:d,y:p,size:h,fill:i}),label:f(zt,{x:u?d-10:d+h+10,y:p+h/2-15,fontSize:30,fill:i,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:f(l,{indexes:[t],data:o,datum:a,x:g,y,positionH:m})}}function JC({direction:t,x:e,y:n,color:r,elements:i}){const o=t==="left";i.push(f(lC,{x:o?e.x6+10:e.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:r,"data-element-type":"shape"}))}const zg=t=>{const{Title:e,Item:n,data:r,spacing:i=Pr.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=r,h=e?f(e,{title:a,desc:l}):null,u=Z(f(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:d,outerRadius:p,rowWidth:g,colorDefault:y}=Pr,m=d/2,x=p-d,_=(u.width+i)*2+g,v=u.width+i,b=v+p,P=v+g-p,$=P+x+d,M=v+g/2,A=[],I=[],C=[],k=[],E=[],L=[],F=[];for(let R=0;R<c.length;R++){const H=wt(o,[R])||y,D=R%2===0?"right":"left",B=R===0,T=R===c.length-1,O=QC(R,{roadWidth:d,innerRadius:x,outerRadius:p});if(D==="right"){const q=B?[$,O.y1]:[P,O.y1],lt=[b,O.y1],U=[b,O.y5],Q=B?[$,O.y2]:[P,O.y2],K=[b,O.y2];if(A.push(B?Tg($,O.y1+m):Lt(P,O.y1+m),Lt(b,O.y1+m),kn(p-m,0,b,O.y4+m)),I.push(B?Tg(...q):Lt(...q),Lt(...lt),kn(p,0,...U)),C.push(Lt(...Q),Lt(...K),kn(x,1,...K)),T){const nt=d/2;I.push(Lt(M,O.y5),Lt(M,O.y5+nt),Lt(M+d,O.y5-nt),Lt(M,O.y4-nt),Lt(M,O.y4),Lt(b,O.y4)),A.push(Lt(M,O.y4+m))}}else{const q=[b,O.y2],lt=[P,O.y2],U=[P,O.y4],Q=[b,O.y1],K=[P,O.y1];if(A.push(Lt(P,O.y1+m),kn(p-m,1,P,O.y4+m)),I.push(Lt(...q),Lt(...lt),kn(x,1,...U)),C.push(Lt(...Q),Lt(...K),kn(p,0,...K)),T){const nt=d/2;I.push(Lt(M,O.y4),Lt(M,O.y4-nt),Lt(M-d,O.y4+nt),Lt(M,O.y5+nt),Lt(M,O.y5),Lt(P,O.y5)),A.push(Lt(M,O.y4+m))}}JC({direction:D,x:{x1:v,x6:$},y:O,color:H,elements:F});const{icon:X,label:V,item:et}=KC({i:R,direction:D,x:{x1:v,x3:b,x4:P,x6:$},y:O,color:H,data:r,itemBounds:u,item:c[R],Item:n,flipped:s});k.push(X),E.push(V),L.push(et)}const z=[...I,...C.reverse(),"Z"],j=c.length*(d+x*2)+d*1.5;return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,S(W,{width:_,height:u.height<=p*2?j:j+u.height-p*2,children:[f(ot,{width:g,height:j,d:z.join(" "),fill:y,stroke:y,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),f(ot,{d:A.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),S(yt,{children:[k,E,L,F]})]})]})};$t("sequence-roadmap-vertical",{component:zg,composites:["title","item"]});const Hg=t=>{const{Title:e,Item:n,data:r,gap:i=40,itemsPerRow:o=3,rowGap:s=80,options:a}=t,{title:l,desc:c,items:h=[]}=r,u=e?f(e,{title:l,desc:c}):null,d=Zt(a),p=Z(f(Y,{indexes:[0]})),g=Z(f(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),y=[],m=[],x=[],_=25,v=25;if(h.forEach((b,P)=>{const w=Math.floor(P/o),$=P%o,M=w%2===1,I=(M?o-1-$:$)*(g.width+i),C=w*(g.height+s),k=[P];if(m.push(f(n,{indexes:k,datum:b,data:r,x:I,y:C,positionH:"center"})),y.push(f(At,{indexes:k,x:I+(g.width-p.width)/2,y:C+g.height+10})),P===0&&y.push(f(Y,{indexes:k,x:I+(g.width-p.width)/2,y:C-p.height-10})),P<h.length-1){const E=Math.floor((P+1)/o),L=(P+1)%o,j=(E%2===1?o-1-L:L)*(g.width+i);if(w===E){const H=M,D=H?j+g.width+(i-_)/2:I+g.width+(i-_)/2,B=C+g.height/2-v/2;x.push(f(Ka,{x:D,y:B,width:_,height:v,colorPrimary:d,rotation:H?180:0})),y.push(f(Y,{indexes:[P+1],x:D+(_-p.width)/2,y:C-p.height-10}))}else{const H=I+g.width/2-_/2,D=C+g.height+(s-v)/2;x.push(f(Ka,{x:H,y:D,width:_,height:v,colorPrimary:d,rotation:90})),y.push(f(Y,{indexes:[P+1],x:H+(_-p.width)/2,y:D+(v-p.height)/2}))}}}),h.length>0){const b=h.length-1,P=Math.floor(b/o),w=b%o,A=(P%2===1?o-1-w:w)*(g.width+i),I=P*(g.height+s);y.push(f(Y,{indexes:[h.length],x:A+(g.width-p.width)/2,y:I+g.height+p.height+20}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,S(W,{children:[f(W,{children:x}),f(vt,{children:m}),f(gt,{children:y})]})]})};$t("sequence-snake-steps",{component:Hg,composites:["title","item"]});const Rg=t=>{const{Title:e,Item:n,data:r,gap:i=40,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Zt(o),u=Z(f(Y,{indexes:[0]})),d=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),p=[],g=[],y=[],m=25,x=25,_=Math.max(u.height+20,30);if(l.forEach((v,b)=>{const P=b*(d.width+i),w=[b];if(g.push(f(n,{indexes:w,datum:v,data:r,x:P,y:_,positionH:"center"})),p.push(f(At,{indexes:w,x:P+(d.width-u.width)/2,y:_+d.height+10})),b===0?p.push(f(Y,{indexes:w,x:P+(d.width-u.width)/2,y:_-u.height-10})):p.push(f(Y,{indexes:w,x:P-i/2-u.width/2,y:_-u.height-10})),b<l.length-1){const $=P+d.width+(i-m)/2,M=_+d.height/2-x/2;y.push(f(Ka,{x:$,y:M,width:m,height:x,colorPrimary:h}))}}),l.length>0){const v=(l.length-1)*(d.width+i);p.push(f(Y,{indexes:[l.length],x:v+d.width+(i-u.width)/2,y:_-u.height-10}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(W,{children:y}),f(vt,{children:g}),f(gt,{children:p})]})]})};$t("sequence-steps",{component:Rg,composites:["title","item"]});const Lg=t=>{const{Title:e,Item:n,data:r,gap:i=10,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?f(e,{title:s,desc:a}):null,h=Zt(o),u=Vu(o),d=Z(f(Y,{indexes:[0]})),p=Z(f(n,{indexes:[0],data:r,datum:l[0],positionH:"normal"})),g=[],y=[],m=[],x=10,_=x+70+10,v=_+30,b=6;if(l.length>1){const P=p.height/2+b,w=(l.length-1)*(p.height+i)+p.height/2-b,$=`M ${_} ${P} L ${_} ${w}`,M="gradient-timeline-line",A=w-P,I=l.map((C,k)=>{const L=(k*(p.height+i)+p.height/2-P)/A*100,F=wt(o,[k]);return f("stop",{offset:`${L}%`,stopColor:F||h})});m.push(S(yt,{children:[f(_t,{children:f("linearGradient",{id:M,x1:_,y1:P,x2:_,y2:w,gradientUnits:"userSpaceOnUse",children:I})}),f(ot,{d:$,stroke:`url(#${M})`,strokeWidth:2,width:1,height:w-P})]}))}if(l.forEach((P,w)=>{const $=w*(p.height+i),M=$+p.height/2,A=[w];m.push(f(zt,{x,y:M,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:u[w%u.length],children:`STEP ${w+1}`})),y.push(f(n,{indexes:A,datum:P,data:r,x:v,y:$,positionH:"normal"})),m.push(f(xt,{x:_-b,y:M-b,width:b*2,height:b*2,fill:u[w%u.length]})),g.push(f(At,{indexes:A,x:v-d.width-10,y:$+(p.height-d.height)/2})),w===0?g.push(f(Y,{indexes:A,x:v+(p.width-d.width)/2,y:$-d.height-10})):g.push(f(Y,{indexes:A,x:v+(p.width-d.width)/2,y:$-i/2-d.height/2}))}),l.length>0){const P=(l.length-1)*(p.height+i);g.push(f(Y,{indexes:[l.length],x:v+(p.width-d.width)/2,y:P+p.height+10}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,S(W,{children:[f(Dt,{children:m}),f(vt,{children:y}),f(gt,{children:g})]})]})};$t("sequence-timeline",{component:Lg,composites:["title","item"]});const Ng=120,Dg=108,xo=30,tS="M0 34.4903C0 37.8781 0.849901 41.1522 2.43491 44.2451C4.23514 47.7639 6.98606 51.0482 10.5164 54.0008C21.3317 63.0477 39.4607 68.9799 59.9998 68.9799C80.5391 68.9799 98.6691 63.0477 109.483 54.0008C113.013 51.0482 115.765 47.7639 117.564 44.2451C119.149 41.1522 120 37.8781 120 34.4903C120 15.4417 93.1366 0 59.9998 0C26.8632 0 0 15.4417 0 34.4903Z",eS="M0 34.4904V53.9996C0 57.3885 0.849901 60.6616 2.43491 63.7555C9.75384 78.0548 32.7566 88.4909 59.9998 88.4909C87.2438 88.4909 110.246 78.0548 117.564 63.7555C119.149 60.6616 120 57.3885 120 53.9996V34.4904C120 37.8781 119.149 41.1522 117.564 44.2451C115.765 47.7639 113.013 51.0482 109.483 54.0008C98.6691 63.0477 80.5391 68.9799 59.9998 68.9799C39.4607 68.9799 21.3317 63.0477 10.5164 54.0008C6.98606 51.0482 4.23514 47.7639 2.43491 44.2451C0.849901 41.1522 0 37.8781 0 34.4904Z",nS="M0 53.9996V73.5106C0 92.5595 26.8632 108 59.9998 108C93.1366 108 120 92.5595 120 73.5106V53.9996C120 57.3885 119.149 60.6616 117.564 63.7555C110.246 78.0548 87.2438 88.4909 59.9998 88.4909C32.7566 88.4909 9.75384 78.0548 2.43491 63.7555C0.849901 60.6616 0 57.3885 0 53.9996Z",jg=S("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[f("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),f("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),f("feOffset",{dx:"-7",dy:"7"}),f("feGaussianBlur",{stdDeviation:"7.5"}),f("feComposite",{in2:"hardAlpha",operator:"out"}),f("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),f("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),f("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),Fg=t=>{const{Title:e,Item:n,data:r,options:i,gap:o=80}=t,s=Ng,a=Dg,{title:l,desc:c,items:h=[]}=r,u=e?f(e,{title:l,desc:c}):null,d=Zt(i);if(h.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f(_t,{children:jg}),u,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const p=Z(f(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),g=Z(f(Y,{indexes:[0]})),y=[],m=[],x=[];let _=-1/0;const v=p.height+xo+a;return h.forEach((b,P)=>{const w=[P],$=wt(i,w),M=P%2===0,A=P*(s+o),I=M?0:p.height+xo,C=`puck-gradient-middle-${P}`,k=`puck-gradient-bottom-${P}`;x.push(S(W,{x:A,y:I,id:`puck-${P}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[S(_t,{children:[S("linearGradient",{id:C,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:$||d}),f("stop",{offset:"1",stopColor:$||d,stopOpacity:"0.6"})]}),S("linearGradient",{id:k,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0",stopColor:"#F4F4FB"}),f("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),S(Dt,{width:Ng,height:Dg,children:[f(ot,{d:tS,fill:$||d}),f(ot,{d:eS,fill:`url(#${C})`}),f(ot,{d:nS,fill:`url(#${k})`})]}),f("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:P+1})]}));const E=A+(s-p.width)/2,L=M?I+a+xo:I-xo-p.height;if(_=Math.max(_,L+p.height),m.push(f(n,{indexes:w,datum:b,data:r,x:E,y:L,positionH:"center"})),y.push(f(At,{indexes:w,x:E+p.width-g.width/2,y:L+p.height-g.height/2})),P===0&&y.push(f(Y,{indexes:[0],x:A+s/2-g.width/2-(o+s)/2,y:I+a/2-g.height/2})),P<h.length-1){const z=(P+1)%2===0?0:v,j=A+s+o/2-g.width/2,R=(I+a/2+z+a/2)/2-g.height/2;y.push(f(Y,{indexes:[P+1],x:j,y:R}))}else y.push(f(Y,{indexes:[h.length],x:A+s+o/2-g.width/2,y:I+a/2-g.height/2}))}),S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[f(_t,{children:jg}),u,S(W,{x:0,y:0,children:[f(W,{children:x}),f(vt,{children:m}),f(gt,{children:y})]})]})};$t("sequence-zigzag-pucks-3d",{component:Fg,composites:["title","item"]});const rS=240,iS=130,oS=105,an=12,sS=120,Bg=50,aS=.6,lS="M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",Wg="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",Xg=70+an/2,Yg=40+an/2,Vg=f("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),qg=t=>{var e;const{Title:n,Item:r,data:i,options:o,dx:s=rS,dy:a=iS,iconSize:l=30}=t,{title:c,desc:h,items:u=[]}=i,d=n?f(n,{title:c,desc:h}):null,p=Zt(o);if(u.length===0)return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f(_t,{children:Vg}),d,f(W,{children:f(gt,{children:f(Y,{indexes:[0],x:0,y:0})})})]});const g=Z(f(r,{indexes:[0],data:i,datum:u[0]})),y=Z(f(Y,{indexes:[0]})),m=[],x=[],_=[],v=[],b=[];let P=0,w=0,$="",M=1/0,A=-1/0,I=1/0,C=1/0;const k=[];u.forEach((F,z)=>{const j=P,R=w;k.push({x:j,y:R}),M=Math.min(M,R);const H=j-Xg,D=R-Yg;I=Math.min(I,H),C=Math.min(C,D);const B=z%2===0;z<u.length-1&&(P+=s,w=B?w+a:w-a)});const E=Math.max(0,-I),L=Math.max(0,-C);if(P=0,w=0,u.forEach((F,z)=>{const j=[z],R=k[z],H=R.x+E,D=R.y+L,B=wt(o,j),T=Math.max(0,H-Xg),O=Math.max(0,D-Yg),X=10,V=Bg+10,{colorPrimaryBg:et}=ge({colorPrimary:B});if(v.push(S(Dt,{x:T,y:O,width:140,height:110,children:[f(xt,{x:X,y:V,width:sS,height:Bg,fill:B||p,filter:"url(#sequence-zigzag-glow-filter)",opacity:aS}),f(ot,{d:lS,fill:B||p}),f(ot,{d:Wg,fill:"#fff"}),f(ot,{d:Wg,fill:et||et})]})),F.icon){const U=Math.max(0,H-l/2-an/2),Q=Math.max(0,D-l/2-an/2);b.push(f(Gt,{x:U,y:Q,size:l,indexes:j,fill:B}))}const q=H-g.width/2-an/2,lt=Math.max(0,D+oS-an/2);if(A=Math.max(A,lt+g.height),z===0?$=`M ${H} ${D}`:$+=` L ${H} ${D}`,x.push(f(r,{indexes:j,datum:F,data:i,x:q,y:lt})),m.push(f(At,{indexes:j,x:Math.max(0,q+g.width-y.width/2),y:Math.max(0,lt+g.height-y.height/2)})),z<u.length-1){const U=k[z+1],Q=U.x+E,K=U.y+L,nt=Math.max(0,H+(Q-H)/2-y.width/2),ct=Math.max(0,D+(K-D)/2-y.height/2);m.push(f(Y,{indexes:[z+1],x:nt,y:ct}))}else m.push(f(Y,{indexes:[u.length],x:Math.max(0,q+g.width+s/4),y:Math.max(0,lt+g.height/2-y.height/2)}))}),$){const F=(((e=k[k.length-1])==null?void 0:e.x)||0)+E;_.push(f(ot,{d:$,stroke:"#f3f2f1",strokeWidth:an,fill:"none",width:F,height:A-Math.min(M+L,0)}))}return S(it,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[f(_t,{children:Vg}),d,S(W,{x:0,y:0,children:[f(W,{children:[..._,...v,...b]}),f(vt,{children:x}),f(gt,{children:m})]})]})};$t("sequence-zigzag-steps",{component:qg,composites:["title","item"]});function cS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nl,Gg;function hS(){if(Gg)return nl;Gg=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;nl=function(r,i){i=i||{};var o=1,s=1;function a(T){var O=T.match(/\n/g);O&&(o+=O.length);var X=T.lastIndexOf(`
129
+ `);s=~X?T.length-X:s+T.length}function l(){var T={line:o,column:s};return function(O){return O.position=new c(T),x(),O}}function c(T){this.start=T,this.end={line:o,column:s},this.source=i.source}c.prototype.content=r;var h=[];function u(T){var O=new Error(i.source+":"+o+":"+s+": "+T);if(O.reason=T,O.filename=i.source,O.line=o,O.column=s,O.source=r,i.silent)h.push(O);else throw O}function d(){var T=y();return{type:"stylesheet",stylesheet:{source:i.source,rules:T,parsingErrors:h}}}function p(){return m(/^{\s*/)}function g(){return m(/^}/)}function y(){var T,O=[];for(x(),_(O);r.length&&r.charAt(0)!="}"&&(T=D()||B());)T!==!1&&(O.push(T),_(O));return O}function m(T){var O=T.exec(r);if(O){var X=O[0];return a(X),r=r.slice(X.length),O}}function x(){m(/^\s*/)}function _(T){var O;for(T=T||[];O=v();)O!==!1&&T.push(O);return T}function v(){var T=l();if(!(r.charAt(0)!="/"||r.charAt(1)!="*")){for(var O=2;r.charAt(O)!=""&&(r.charAt(O)!="*"||r.charAt(O+1)!="/");)++O;if(O+=2,r.charAt(O-1)==="")return u("End of comment missing");var X=r.slice(2,O-2);return s+=2,a(X),r=r.slice(O),s+=2,T({type:"comment",comment:X})}}function b(){var T=m(/^([^{]+)/);if(T)return e(T[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(O){return O.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(O){return O.replace(/\u200C/g,",")})}function P(){var T=l(),O=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(O){if(O=e(O[0]),!m(/^:\s*/))return u("property missing ':'");var X=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),V=T({type:"declaration",property:O.replace(t,""),value:X?e(X[0]).replace(t,""):""});return m(/^[;\s]*/),V}}function w(){var T=[];if(!p())return u("missing '{'");_(T);for(var O;O=P();)O!==!1&&(T.push(O),_(T));return g()?T:u("missing '}'")}function $(){for(var T,O=[],X=l();T=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)O.push(T[1]),m(/^,\s*/);if(O.length)return X({type:"keyframe",values:O,declarations:w()})}function M(){var T=l(),X=m(/^@([-\w]+)?keyframes\s*/);if(X){var O=X[1],X=m(/^([-\w]+)\s*/);if(!X)return u("@keyframes missing name");var V=X[1];if(!p())return u("@keyframes missing '{'");for(var et,q=_();et=$();)q.push(et),q=q.concat(_());return g()?T({type:"keyframes",name:V,vendor:O,keyframes:q}):u("@keyframes missing '}'")}}function A(){var T=l(),O=m(/^@supports *([^{]+)/);if(O){var X=e(O[1]);if(!p())return u("@supports missing '{'");var V=_().concat(y());return g()?T({type:"supports",supports:X,rules:V}):u("@supports missing '}'")}}function I(){var T=l(),O=m(/^@host\s*/);if(O){if(!p())return u("@host missing '{'");var X=_().concat(y());return g()?T({type:"host",rules:X}):u("@host missing '}'")}}function C(){var T=l(),O=m(/^@media *([^{]+)/);if(O){var X=e(O[1]);if(!p())return u("@media missing '{'");var V=_().concat(y());return g()?T({type:"media",media:X,rules:V}):u("@media missing '}'")}}function k(){var T=l(),O=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(O)return T({type:"custom-media",name:e(O[1]),media:e(O[2])})}function E(){var T=l(),O=m(/^@page */);if(O){var X=b()||[];if(!p())return u("@page missing '{'");for(var V=_(),et;et=P();)V.push(et),V=V.concat(_());return g()?T({type:"page",selectors:X,declarations:V}):u("@page missing '}'")}}function L(){var T=l(),O=m(/^@([-\w]+)?document *([^{]+)/);if(O){var X=e(O[1]),V=e(O[2]);if(!p())return u("@document missing '{'");var et=_().concat(y());return g()?T({type:"document",document:V,vendor:X,rules:et}):u("@document missing '}'")}}function F(){var T=l(),O=m(/^@font-face\s*/);if(O){if(!p())return u("@font-face missing '{'");for(var X=_(),V;V=P();)X.push(V),X=X.concat(_());return g()?T({type:"font-face",declarations:X}):u("@font-face missing '}'")}}var z=H("import"),j=H("charset"),R=H("namespace");function H(T){var O=new RegExp("^@"+T+"\\s*([^;]+);");return function(){var X=l(),V=m(O);if(V){var et={type:T};return et[T]=V[1].trim(),X(et)}}}function D(){if(r[0]=="@")return M()||C()||k()||A()||z()||j()||R()||L()||E()||I()||F()}function B(){var T=l(),O=b();return O?(_(),T({type:"rule",selectors:O,declarations:w()})):u("selector missing")}return n(d())};function e(r){return r?r.replace(/^\s+|\s+$/g,""):""}function n(r,i){var o=r&&typeof r.type=="string",s=o?r:i;for(var a in r){var l=r[a];Array.isArray(l)?l.forEach(function(c){n(c,s)}):l&&typeof l=="object"&&n(l,s)}return o&&Object.defineProperty(r,"parent",{configurable:!0,writable:!0,enumerable:!1,value:i||null}),r}return nl}var fS=hS();const uS=cS(fS);var Tn=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});const Ug=new Map;function dS(t,e=!0){return Tn(this,null,function*(){const n=pS(t);if(n.size===0)return;const r=[];yield Promise.all(Array.from(n).map(i=>Tn(null,null,function*(){const o=mS(i);if(!o.length)return;const s=yield gS(i);if(!s.length)return;const a=yield Promise.all(s.map(l=>Tn(null,null,function*(){const c=_S(l),h=c["unicode-range"].replace(/\s/g,"");if(!o.find(y=>y.unicodeRange&&y.unicodeRange.replace(/\s/g,"")===h))return null;const d=Pb(c["font-family"],Bh(c["font-weight"]));if(!d)return null;const p=c.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(p!=null&&p[1]))return null;const g=ks(d,p[1]);if(e){const y=yield vS(g);c.src=`url(${y}) format('woff2')`}else c.src=`url(${g}) format('woff2')`;return c})));r.push(...a.filter(Boolean)||[])}))),r.length>0&&xS(t,r)})}function pS(t){const e=new Set,n=t.getAttribute("font-family");if(n){const i=rr(n);i&&e.add(i)}const r=t.querySelectorAll("foreignObject span");for(const i of r){const o=rr(i.style.fontFamily);o&&e.add(o)}return e}function gS(t){return Tn(this,null,function*(){const e=Ef(t),n=[];return yield Promise.allSettled(e.map(r=>Tn(null,null,function*(){var i;const o=yield fetch(r).then(s=>s.text()).then(s=>uS(s)).catch(()=>(console.error(`Failed to fetch or parse font CSS: ${r}`),null));(i=o==null?void 0:o.stylesheet)==null||i.rules.forEach(s=>{if(s.type==="font-face"){const a=yS(s);n.push(a)}})}))),n})}function mS(t){const e=[];return document.fonts.forEach(n=>{rr(n.family)===rr(t)&&n.status==="loaded"&&e.push(n)}),e}function yS(t){const e=t.declarations||[],n={};return e.forEach(r=>{const{property:i,value:o}=r;i&&o&&(n[i]=o)}),n}function _S(t){var e,n,r,i,o,s;return{"font-family":(e=t["font-family"])!=null?e:"",src:(n=t.src)!=null?n:"","font-style":(r=t["font-style"])!=null?r:"normal","font-display":(i=t["font-display"])!=null?i:"swap","font-weight":(o=t["font-weight"])!=null?o:"400","unicode-range":(s=t["unicode-range"])!=null?s:"U+0-FFFF"}}function xS(t,e){const n=[],r=new Set;for(const s of e){const a=[s["font-family"],s["font-weight"],s["font-style"],s["unicode-range"],s.src].join("|");r.has(a)||(r.add(a),n.push(s))}if(n.length===0)return;const i=ut("style",{type:"text/css"});i.innerHTML=n.map(s=>`
130
130
  @font-face {
131
131
  font-family: ${s["font-family"]};
132
132
  src: ${s.src};
@@ -136,5 +136,5 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
136
136
  unicode-range: ${s["unicode-range"]};
137
137
  }
138
138
  `.trim()).join(`
139
- `);const o=t.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(i,o.nextSibling):t.insertBefore(i,t.firstChild)}function yS(t){return Tn(this,null,function*(){const e=Ug.get(t);if(e)return e;const n=yield fetch(t);if(!n.ok)throw new Error(`Failed to load font: ${t}`);const r=yield n.blob(),i=yield new Promise((o,s)=>{const a=new FileReader;a.onloadend=()=>{o(a.result)},a.onerror=s,a.readAsDataURL(r)});return Ug.set(t,i),i})}var rl=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function _S(t){return rl(this,arguments,function*(e,n={}){const r=yield Zg(e,n),i=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}function Zg(t){return rl(this,arguments,function*(e,n={}){const{embedResources:r=!0}=n,i=e.cloneNode(!0),{width:o,height:s}=Ts(e);return le(i,{width:o,height:s}),yield xS(i),yield hS(i,r),bS(i),i})}function xS(t){return rl(this,null,function*(){const e=t.querySelectorAll("use"),n=vS(t);e.forEach(r=>{const i=r.getAttribute("href");if(!i)return;if(!t.querySelector(i)){const s=document.querySelector(i);s&&n.appendChild(s.cloneNode(!0))}})})}function vS(t){const e=t.querySelector('defs[id="icon-defs"]');if(e)return e;const n=ut("defs",{id:"icon-defs"});return t.prepend(n),n}function bS(t){wS(t),$S(t),PS(t),MS(t)}function wS(t){const e=t.querySelector("[data-element-type=btns-group]");e==null||e.remove();const n=t.querySelector("#btn-icon-defs");n==null||n.remove()}function $S(t){const e=t.querySelector("[data-element-type=transient-container]");e==null||e.remove()}function PS(t){t.querySelectorAll("g").forEach(n=>{n.removeAttribute("x"),n.removeAttribute("y"),n.removeAttribute("width"),n.removeAttribute("height")})}function MS(t){Es(t,e=>{for(const n in e.dataset)delete e.dataset[n]})}var OS=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function CS(t){return OS(this,arguments,function*(e,n={}){var r;const{dpr:i=(r=globalThis.devicePixelRatio)!=null?r:2}=n,o=yield Zg(e),{width:s,height:a}=Ts(o);return new Promise((l,c)=>{try{const h=document.createElement("canvas");h.width=s*i,h.height=a*i;const u=h.getContext("2d");if(!u){c(new Error("Failed to get canvas context"));return}u.scale(i,i),u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const d=new XMLSerializer().serializeToString(o),p="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(d),g=new Image;g.onload=function(){u.clearRect(0,0,s,a),u.drawImage(g,0,0,s,a);const y=h.toDataURL("image/png");l(y)},g.onerror=function(y){c(new Error("Image load failed: "+y))},g.src=p}catch(h){c(h)}})})}var SS=Object.defineProperty,IS=Object.defineProperties,AS=Object.getOwnPropertyDescriptors,vo=Object.getOwnPropertySymbols,Qg=Object.prototype.hasOwnProperty,Kg=Object.prototype.propertyIsEnumerable,Jg=(t,e,n)=>e in t?SS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oe=(t,e)=>{for(var n in e||(e={}))Qg.call(e,n)&&Jg(t,n,e[n]);if(vo)for(var n of vo(e))Kg.call(e,n)&&Jg(t,n,e[n]);return t},bo=(t,e)=>IS(t,AS(e)),zn=(t,e)=>{var n={};for(var r in t)Qg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vo)for(var r of vo(t))e.indexOf(r)<0&&Kg.call(t,r)&&(n[r]=t[r]);return n};function ES(t){const e=t,{container:n="#container",padding:r=0,template:i,design:o,theme:s,themeConfig:a}=e,l=zn(e,["container","padding","template","design","theme","themeConfig"]),c=typeof n=="string"?document.querySelector(n)||document.createElement("div"):n,u=i?sl(i)||{}:{},{design:d}=u,p=zn(u,["design"]);return bo(oe(oe({},p),l),{container:c,padding:zs(r),template:i,design:kS(oe(oe({},d),o),t),theme:s,themeConfig:HS(s,Fu(oe({},p==null?void 0:p.themeConfig),a))})}function il(t){if(typeof t=="string")return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function kS(t,e){const{structure:n,title:r,item:i,items:o}=t||{},s=t1(i||(o==null?void 0:o[0]),e);return{structure:TS(n),title:zS(r,e),item:s,items:o?o.map(a=>t1(a,e)):[s]}}function TS(t){if(!t)throw new Error("Structure is required in design or template");const e=il(t),{type:n}=e,r=zn(e,["type"]),i=kp(n);if(!i)throw new Error(`Structure ${n} not found`);const{component:o}=i;return bo(oe({},i),{component:s=>o(oe(oe({},s),r))})}function zS(t,e){if(!t)return{component:null};const n=il(t),{type:r}=n,i=zn(n,["type"]),{themeConfig:o}=e,s=(o==null?void 0:o.colorBg)||"#fff",a=e1(s,s);return{component:l=>vc(oe(bo(oe({},l),{themeColors:a}),i))}}function t1(t,e){if(!t)throw new Error("Item is required in design or template");const n=il(t),{type:r}=n,i=zn(n,["type"]),o=Zu(r);if(!o)throw new Error(`Item ${r} not found`);const{component:s,options:a}=o;return bo(oe({},o),{component:l=>{var c;const{indexes:h}=l,{data:u,themeConfig:d}=e,p=(d==null?void 0:d.colorBg)||"#fff",g=l,{themeColors:y=e1(xi(d==null?void 0:d.palette,h,(c=u==null?void 0:u.items)==null?void 0:c.length)||(d==null?void 0:d.colorPrimary)||"#FF356A",p)}=g,m=zn(g,["themeColors"]);return s(oe(oe({themeColors:y},m),i))},options:a})}function HS(t,e={}){var n;const r=t?Bu(t)||{}:{},i=Fu({},r,e);return i.palette=e.palette||r.palette,i.stylize=(n=e.stylize)!=null?n:r.stylize,i.colorPrimary||(i.colorPrimary="#FF356A"),i.palette||(i.palette=[i.colorPrimary]),i}function e1(t,e="#fff"){return Yu({colorPrimary:t,isDarkMode:kh(e),colorBg:e})}var RS=Object.defineProperty,n1=Object.getOwnPropertySymbols,LS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,r1=(t,e,n)=>e in t?RS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,DS=(t,e)=>{for(var n in e||(e={}))LS.call(e,n)&&r1(t,n,e[n]);if(n1)for(var n of n1(e))NS.call(e,n)&&r1(t,n,e[n]);return t},jS=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});class FS{constructor(e){this.options=e,this.node=null,this.parsedOptions=ES(this.options)}render(){const{container:e}=this.parsedOptions,n=this.compose(),r=new c3(this.parsedOptions,n);this.node=r.render(),e.replaceChildren(this.node)}compose(){const{design:e,data:n}=this.parsedOptions,{title:r,item:i,items:o,structure:s}=e,{component:a,props:l}=s,c=r.component,h=i.component,u=o.map(g=>g.component),d=Tl(f(a,DS({data:n,Title:c,Item:h,Items:u,options:this.parsedOptions},l))),p=bn(d);if(!p)throw new Error("Failed to parse SVG template");return p}getTypes(){const e=this.parsedOptions.design,n=e.structure.composites||[],r=e.items.map(i=>i.composites||[]);return rx({structure:n,items:r})}toDataURL(e){return jS(this,null,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return(e==null?void 0:e.type)==="svg"?yield _S(this.node,e):yield CS(this.node,e)})}destroy(){var e;(e=this.node)==null||e.remove(),this.node=null}}const BS=ae.version;N.AlignLayout=hn,N.BadgeCard=Ju,N.BtnAdd=Y,N.BtnRemove=At,N.BtnsGroup=gt,N.CandyCardLite=nd,N.CapsuleItem=hd,N.ChartColumn=Tp,N.CircleNode=dd,N.CircularProgress=_d,N.CompactCard=wd,N.CompareBinaryHorizontal=Wp,N.CompareHierarchyLeftRight=qp,N.CompareHierarchyRow=Gp,N.Defs=_t,N.DoneList=Md,N.Ellipse=xt,N.FlexLayout=it,N.Fragment=Ln,N.Gap=Ht,N.Group=W,N.HierarchyTree=Qp,N.HorizontalIconArrow=Sd,N.HorizontalIconLine=Td,N.IconBadge=Rd,N.Illus=Xl,N.IndexedCard=Dd,N.Infographic=FS,N.ItemDesc=Et,N.ItemIcon=Gt,N.ItemIconCircle=Ve,N.ItemLabel=ft,N.ItemValue=Wn,N.ItemsGroup=vt,N.LCornerCard=Bd,N.LabelText=Qd,N.LetterCard=Yd,N.ListColumn=Kp,N.ListGrid=Jp,N.ListPyramid=tg,N.ListRow=eg,N.ListSector=ig,N.ListWaterfall=og,N.Path=ot,N.PillBadge=Gd,N.Polygon=be,N.ProgressCard=ep,N.Quadrant=sg,N.QuarterCircular=ip,N.QuarterSimpleCard=ap,N.Rect=pt,N.RelationCircle=ag,N.RelationNetwork=lg,N.RibbonCard=hp,N.RoundedRectNode=dp,N.SequenceAscendingStairs3d=_g,N.SequenceAscendingSteps=xg,N.SequenceCircleArrows=bg,N.SequenceCircular=wg,N.SequenceColorSnakeSteps=$g,N.SequenceFilterMesh=Cg,N.SequenceHorizontalZigzag=Sg,N.SequenceMountain=Eg,N.SequencePyramid=kg,N.SequenceRoadmapVertical=zg,N.SequenceSnakeSteps=Hg,N.SequenceSteps=Rg,N.SequenceTimeline=Lg,N.SequenceZigzagPucks3d=Fg,N.SequenceZigzagSteps=qg,N.ShapesGroup=Dt,N.SimpleHorizontalArrow=mp,N.SimpleIllusItem=xp,N.SimpleItem=wp,N.SimpleVerticalArrow=Mp,N.Text=zt,N.Title=vc,N.UnderlineText=Sp,N.VERSION=BS,N.VerticalIconArrow=Ep,N.cloneElement=ze,N.createFragment=L1,N.createLayout=Ao,N.getCombinedBounds=bl,N.getElementBounds=Z,N.getElementsBounds=Ye,N.getFont=Ns,N.getFonts=If,N.getItem=Zu,N.getItemProps=kt,N.getItems=E3,N.getPalette=Tf,N.getPaletteColor=xi,N.getStructure=kp,N.getStructures=yO,N.getTemplate=sl,N.getTemplates=c1,N.getTheme=Bu,N.getThemeColors=ge,N.getThemes=p3,N.jsx=Ar,N.jsxDEV=D1,N.jsxs=N1,N.loadSVGResource=Cs,N.parseSVG=bn,N.registerFont=Af,N.registerItem=Tt,N.registerPalette=js,N.registerPattern=Kf,N.registerResourceLoader=fx,N.registerStructure=$t,N.registerTemplate=ol,N.registerTheme=la,N.renderSVG=Tl,N.sequenceCylinders3d=Pg,N.setDefaultFont=vb,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
139
+ `);const o=t.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(i,o.nextSibling):t.insertBefore(i,t.firstChild)}function vS(t){return Tn(this,null,function*(){const e=Ug.get(t);if(e)return e;const n=yield fetch(t);if(!n.ok)throw new Error(`Failed to load font: ${t}`);const r=yield n.blob(),i=yield new Promise((o,s)=>{const a=new FileReader;a.onloadend=()=>{o(a.result)},a.onerror=s,a.readAsDataURL(r)});return Ug.set(t,i),i})}var rl=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function bS(t){return rl(this,arguments,function*(e,n={}){const r=yield Zg(e,n),i=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}function Zg(t){return rl(this,arguments,function*(e,n={}){const{embedResources:r=!0}=n,i=e.cloneNode(!0),{width:o,height:s}=Ts(e);return le(i,{width:o,height:s}),yield wS(i),yield dS(i,r),PS(i),i})}function wS(t){return rl(this,null,function*(){const e=t.querySelectorAll("use"),n=$S(t);e.forEach(r=>{const i=r.getAttribute("href");if(!i)return;if(!t.querySelector(i)){const s=document.querySelector(i);s&&n.appendChild(s.cloneNode(!0))}})})}function $S(t){const e=t.querySelector('defs[id="icon-defs"]');if(e)return e;const n=ut("defs",{id:"icon-defs"});return t.prepend(n),n}function PS(t){MS(t),OS(t),CS(t),SS(t)}function MS(t){const e=t.querySelector("[data-element-type=btns-group]");e==null||e.remove();const n=t.querySelector("#btn-icon-defs");n==null||n.remove()}function OS(t){const e=t.querySelector("[data-element-type=transient-container]");e==null||e.remove()}function CS(t){t.querySelectorAll("g").forEach(n=>{n.removeAttribute("x"),n.removeAttribute("y"),n.removeAttribute("width"),n.removeAttribute("height")})}function SS(t){Es(t,e=>{for(const n in e.dataset)delete e.dataset[n]})}var IS=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});function AS(t){return IS(this,arguments,function*(e,n={}){var r;const{dpr:i=(r=globalThis.devicePixelRatio)!=null?r:2}=n,o=yield Zg(e),{width:s,height:a}=Ts(o);return new Promise((l,c)=>{try{const h=document.createElement("canvas");h.width=s*i,h.height=a*i;const u=h.getContext("2d");if(!u){c(new Error("Failed to get canvas context"));return}u.scale(i,i),u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const d=new XMLSerializer().serializeToString(o),p="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(d),g=new Image;g.onload=function(){u.clearRect(0,0,s,a),u.drawImage(g,0,0,s,a);const y=h.toDataURL("image/png");l(y)},g.onerror=function(y){c(new Error("Image load failed: "+y))},g.src=p}catch(h){c(h)}})})}var ES=Object.defineProperty,kS=Object.defineProperties,TS=Object.getOwnPropertyDescriptors,vo=Object.getOwnPropertySymbols,Qg=Object.prototype.hasOwnProperty,Kg=Object.prototype.propertyIsEnumerable,Jg=(t,e,n)=>e in t?ES(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oe=(t,e)=>{for(var n in e||(e={}))Qg.call(e,n)&&Jg(t,n,e[n]);if(vo)for(var n of vo(e))Kg.call(e,n)&&Jg(t,n,e[n]);return t},bo=(t,e)=>kS(t,TS(e)),zn=(t,e)=>{var n={};for(var r in t)Qg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vo)for(var r of vo(t))e.indexOf(r)<0&&Kg.call(t,r)&&(n[r]=t[r]);return n};function zS(t){const e=t,{container:n="#container",padding:r=0,template:i,design:o,theme:s,themeConfig:a}=e,l=zn(e,["container","padding","template","design","theme","themeConfig"]),c=typeof n=="string"?document.querySelector(n)||document.createElement("div"):n,u=i?sl(i)||{}:{},{design:d}=u,p=zn(u,["design"]);return bo(oe(oe({},p),l),{container:c,padding:zs(r),template:i,design:HS(oe(oe({},d),o),t),theme:s,themeConfig:NS(s,Fu(oe({},p==null?void 0:p.themeConfig),a))})}function il(t){if(typeof t=="string")return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function HS(t,e){const{structure:n,title:r,item:i,items:o}=t||{},s=t1(i||(o==null?void 0:o[0]),e);return{structure:RS(n),title:LS(r,e),item:s,items:o?o.map(a=>t1(a,e)):[s]}}function RS(t){if(!t)throw new Error("Structure is required in design or template");const e=il(t),{type:n}=e,r=zn(e,["type"]),i=kp(n);if(!i)throw new Error(`Structure ${n} not found`);const{component:o}=i;return bo(oe({},i),{component:s=>o(oe(oe({},s),r))})}function LS(t,e){if(!t)return{component:null};const n=il(t),{type:r}=n,i=zn(n,["type"]),{themeConfig:o}=e,s=(o==null?void 0:o.colorBg)||"#fff",a=e1(s,s);return{component:l=>vc(oe(bo(oe({},l),{themeColors:a}),i))}}function t1(t,e){if(!t)throw new Error("Item is required in design or template");const n=il(t),{type:r}=n,i=zn(n,["type"]),o=Zu(r);if(!o)throw new Error(`Item ${r} not found`);const{component:s,options:a}=o;return bo(oe({},o),{component:l=>{var c;const{indexes:h}=l,{data:u,themeConfig:d}=e,p=(d==null?void 0:d.colorBg)||"#fff",g=l,{themeColors:y=e1(xi(d==null?void 0:d.palette,h,(c=u==null?void 0:u.items)==null?void 0:c.length)||(d==null?void 0:d.colorPrimary)||"#FF356A",p)}=g,m=zn(g,["themeColors"]);return s(oe(oe({themeColors:y},m),i))},options:a})}function NS(t,e={}){var n;const r=t?Bu(t)||{}:{},i=Fu({},r,e);return i.palette=e.palette||r.palette,i.stylize=(n=e.stylize)!=null?n:r.stylize,i.colorPrimary||(i.colorPrimary="#FF356A"),i.palette||(i.palette=[i.colorPrimary]),i}function e1(t,e="#fff"){return Yu({colorPrimary:t,isDarkMode:kh(e),colorBg:e})}var DS=Object.defineProperty,n1=Object.getOwnPropertySymbols,jS=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,r1=(t,e,n)=>e in t?DS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,BS=(t,e)=>{for(var n in e||(e={}))jS.call(e,n)&&r1(t,n,e[n]);if(n1)for(var n of n1(e))FS.call(e,n)&&r1(t,n,e[n]);return t},WS=(t,e,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(t,e)).next())});class XS{constructor(e){this.options=e,this.node=null,this.parsedOptions=zS(this.options)}render(){const{container:e}=this.parsedOptions,n=this.compose(),r=new u3(this.parsedOptions,n);this.node=r.render(),e.replaceChildren(this.node)}compose(){const{design:e,data:n}=this.parsedOptions,{title:r,item:i,items:o,structure:s}=e,{component:a,props:l}=s,c=r.component,h=i.component,u=o.map(g=>g.component),d=Tl(f(a,BS({data:n,Title:c,Item:h,Items:u,options:this.parsedOptions},l))),p=bn(d);if(!p)throw new Error("Failed to parse SVG template");return p}getTypes(){const e=this.parsedOptions.design,n=e.structure.composites||[],r=e.items.map(i=>i.composites||[]);return sx({structure:n,items:r})}toDataURL(e){return WS(this,null,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return(e==null?void 0:e.type)==="svg"?yield bS(this.node,e):yield AS(this.node,e)})}destroy(){var e;(e=this.node)==null||e.remove(),this.node=null}}const YS=ae.version;N.AlignLayout=hn,N.BadgeCard=Ju,N.BtnAdd=Y,N.BtnRemove=At,N.BtnsGroup=gt,N.CandyCardLite=nd,N.CapsuleItem=hd,N.ChartColumn=Tp,N.CircleNode=dd,N.CircularProgress=_d,N.CompactCard=wd,N.CompareBinaryHorizontal=Wp,N.CompareHierarchyLeftRight=qp,N.CompareHierarchyRow=Gp,N.Defs=_t,N.DoneList=Md,N.Ellipse=xt,N.FlexLayout=it,N.Fragment=Ln,N.Gap=Ht,N.Group=W,N.HierarchyTree=Qp,N.HorizontalIconArrow=Sd,N.HorizontalIconLine=Td,N.IconBadge=Rd,N.Illus=Xl,N.IndexedCard=Dd,N.Infographic=XS,N.ItemDesc=Et,N.ItemIcon=Gt,N.ItemIconCircle=Ve,N.ItemLabel=ft,N.ItemValue=Wn,N.ItemsGroup=vt,N.LCornerCard=Bd,N.LabelText=Qd,N.LetterCard=Yd,N.ListColumn=Kp,N.ListGrid=Jp,N.ListPyramid=tg,N.ListRow=eg,N.ListSector=ig,N.ListWaterfall=og,N.Path=ot,N.PillBadge=Gd,N.Polygon=be,N.ProgressCard=ep,N.Quadrant=sg,N.QuarterCircular=ip,N.QuarterSimpleCard=ap,N.Rect=pt,N.RelationCircle=ag,N.RelationNetwork=lg,N.RibbonCard=hp,N.RoundedRectNode=dp,N.SequenceAscendingStairs3d=_g,N.SequenceAscendingSteps=xg,N.SequenceCircleArrows=bg,N.SequenceCircular=wg,N.SequenceColorSnakeSteps=$g,N.SequenceFilterMesh=Cg,N.SequenceHorizontalZigzag=Sg,N.SequenceMountain=Eg,N.SequencePyramid=kg,N.SequenceRoadmapVertical=zg,N.SequenceSnakeSteps=Hg,N.SequenceSteps=Rg,N.SequenceTimeline=Lg,N.SequenceZigzagPucks3d=Fg,N.SequenceZigzagSteps=qg,N.ShapesGroup=Dt,N.SimpleHorizontalArrow=mp,N.SimpleIllusItem=xp,N.SimpleItem=wp,N.SimpleVerticalArrow=Mp,N.Text=zt,N.Title=vc,N.UnderlineText=Sp,N.VERSION=YS,N.VerticalIconArrow=Ep,N.cloneElement=ze,N.createFragment=L1,N.createLayout=Ao,N.getCombinedBounds=bl,N.getElementBounds=Z,N.getElementsBounds=Ye,N.getFont=Ns,N.getFonts=If,N.getItem=Zu,N.getItemProps=kt,N.getItems=z3,N.getPalette=Tf,N.getPaletteColor=xi,N.getStructure=kp,N.getStructures=vO,N.getTemplate=sl,N.getTemplates=c1,N.getTheme=Bu,N.getThemeColors=ge,N.getThemes=y3,N.jsx=Ar,N.jsxDEV=D1,N.jsxs=N1,N.loadSVGResource=Cs,N.parseSVG=bn,N.registerFont=Af,N.registerItem=Tt,N.registerPalette=js,N.registerPattern=Kf,N.registerResourceLoader=px,N.registerStructure=$t,N.registerTemplate=ol,N.registerTheme=la,N.renderSVG=Tl,N.sequenceCylinders3d=Pg,N.setDefaultFont=$b,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
140
140
  //# sourceMappingURL=infographic.min.js.map