@tyanxie/paimon-darwin-arm64 1.7.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/paimon +1 -1
- package/package.json +1 -1
- package/web/assets/abnfDiagram-VCTEODGH-C_ttoOR-.js +1 -0
- package/web/assets/arc-yAsaH0Dw.js +1 -0
- package/web/assets/architectureDiagram-5GKGNRK7-CaDJakVP.js +36 -0
- package/web/assets/blockDiagram-I7D4REHJ-BQd0dwKa.js +129 -0
- package/web/assets/c4Diagram-7LVT6UL2-nZGUi3mU.js +38 -0
- package/web/assets/channel-DF8NlRb_.js +1 -0
- package/web/assets/chunk-2Q5K7J3B-NPXGjG3f.js +1 -0
- package/web/assets/chunk-5VM5RSS4-CJY7RIjt.js +15 -0
- package/web/assets/chunk-F27PBJKO-DT1ynzIY.js +1 -0
- package/web/assets/chunk-IMKFNOWR-CH6O0dOI.js +231 -0
- package/web/assets/chunk-JWPE2WC7-HT0bbIVb.js +1 -0
- package/web/assets/chunk-POPQ4Y6H-JAIuAfSC.js +1 -0
- package/web/assets/chunk-SVP7TREG-6IvqfLNl.js +88 -0
- package/web/assets/chunk-TICWLB2K-Un-BtVJH.js +206 -0
- package/web/assets/chunk-XXDRQBXY-MmAyjRcU.js +1 -0
- package/web/assets/classDiagram-ZZMXUADV-BJm7NJbs.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-BJm7NJbs.js +1 -0
- package/web/assets/cose-bilkent-JH36ORCC-BKY655a1.js +1 -0
- package/web/assets/cynefin-OW5HDTMX-Oul7bDb8.js +178 -0
- package/web/assets/cynefinDiagram-5FMLGOSQ-C2liQpUc.js +62 -0
- package/web/assets/cytoscape.esm-BLAcgzS2.js +331 -0
- package/web/assets/dagre-GXQ25YYZ-DYrwe_pj.js +4 -0
- package/web/assets/defaultLocale-CrowFXzY.js +1 -0
- package/web/assets/diagram-S7CK7UJ4-BiMW816X.js +30 -0
- package/web/assets/diagram-UQ7AKVKN-Dx--Yu_z.js +41 -0
- package/web/assets/diagram-VSXAHHWV-DRrurU6X.js +3 -0
- package/web/assets/diagram-VX7I27RA-00uuQ0k2.js +24 -0
- package/web/assets/diagram-Z3DM3KII-Cvgf5Y5I.js +24 -0
- package/web/assets/ebnfDiagram-PWID7BFC-CHZyB5eb.js +1 -0
- package/web/assets/erDiagram-RLTQ6QDP-BfpNZTDy.js +99 -0
- package/web/assets/flowDiagram-HODETNUW-BNTRT4LN.js +168 -0
- package/web/assets/framework-gzBbjyR4.js +49 -0
- package/web/assets/ganttDiagram-EL5Y4UJY-B8LaEeAd.js +292 -0
- package/web/assets/gitGraphDiagram-WWUBYQGX-BPhOAW6u.js +106 -0
- package/web/assets/index-B5Yub30J.css +1 -0
- package/web/assets/index-Dd-YiX5e.js +259 -0
- package/web/assets/index-PCm-hUF1.js +78 -0
- package/web/assets/infoDiagram-27XIBGKW-U6LgO_ju.js +2 -0
- package/web/assets/init-Gi6I4Gst.js +1 -0
- package/web/assets/isObjectLike-DlmVz5ty.js +1 -0
- package/web/assets/ishikawaDiagram-5VMMS53U-DxXeMYDc.js +70 -0
- package/web/assets/journeyDiagram-3NMN7TZE-Bx7POPvm.js +139 -0
- package/web/assets/kanban-definition-UXKFOSKX-CpYDSQwK.js +89 -0
- package/web/assets/katex-C5jXJg4s.js +257 -0
- package/web/assets/layout-Bt4nl8Oy.js +1 -0
- package/web/assets/linear-IZfkTFEW.js +1 -0
- package/web/assets/markdown-Bc9cX4Ha.js +69 -0
- package/web/assets/mermaid.core-DVbCkJL3.js +310 -0
- package/web/assets/mermaidTheme-DoQvsUbV.js +24 -0
- package/web/assets/mindmap-definition-YA3MSWOX-CcsjXg_l.js +96 -0
- package/web/assets/mix-CrMk8dT1.js +1 -0
- package/web/assets/modalFeatures-D6PlDlrr.js +1 -0
- package/web/assets/modelConfig-BvuGgERB.js +374 -0
- package/web/assets/ordinal-Cboi1Yqb.js +1 -0
- package/web/assets/pegDiagram-XKGWAZYB-D8bhpeEX.js +1 -0
- package/web/assets/pieDiagram-E7YTZNPT-DpqpRrk3.js +39 -0
- package/web/assets/purify.es-CAi2OJFm.js +3 -0
- package/web/assets/quadrantDiagram-AXDQQJYC-D3jcnC7Q.js +7 -0
- package/web/assets/railroadDiagram-O6MQD6OU-KAu7lO3i.js +1 -0
- package/web/assets/requirementDiagram-BXWQKSXE-BjvIFtJN.js +84 -0
- package/web/assets/sankeyDiagram-P5KCCOFB-BAeQKqir.js +40 -0
- package/web/assets/sequenceDiagram-WJ2MYXX4-COPuE32n.js +162 -0
- package/web/assets/sizeCapture-INFHLROL-DOSmwQs7.js +1 -0
- package/web/assets/stateDiagram-D77RDMKH-DkQ3KhXj.js +1 -0
- package/web/assets/stateDiagram-v2-MP3YSRHH-C2O-IoZS.js +1 -0
- package/web/assets/swimlanes-42K2YHIH-Belip6eP.js +1 -0
- package/web/assets/swimlanesDiagram-VR7AAH4N-CzGu2D2p.js +8 -0
- package/web/assets/timeline-definition-24CTP7MA-Bntb2OTs.js +120 -0
- package/web/assets/vennDiagram-4TSXK5OY-Cw2eTnvz.js +34 -0
- package/web/assets/wardleyDiagram-VM6X3IG4-DzJNpWOP.js +78 -0
- package/web/assets/xychartDiagram-S5SC5T6Z-CmlwEiU8.js +7 -0
- package/web/index.html +4 -5
- package/web/assets/framework-CY9iUjoF.js +0 -49
- package/web/assets/index-BTA-j8zf.js +0 -6
- package/web/assets/index-CTEVuRr7.css +0 -1
- package/web/assets/markdown-CbB-lJ6c.js +0 -69
- package/web/assets/vendor-BXh3TPFq.js +0 -200
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import{c as _r,s as Zt,t as Ut,C as Kt,a as Vt}from"./modelConfig-BvuGgERB.js";import{a as W,j as I}from"./framework-gzBbjyR4.js";import{i as Qt,g as Jt}from"./isObjectLike-DlmVz5ty.js";import"./markdown-Bc9cX4Ha.js";import"./index-Dd-YiX5e.js";function Lr(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const en=new Map([["Æ","Ae"],["Ð","D"],["Ø","O"],["Þ","Th"],["ß","ss"],["æ","ae"],["ð","d"],["ø","o"],["þ","th"],["Đ","D"],["đ","d"],["Ħ","H"],["ħ","h"],["ı","i"],["IJ","IJ"],["ij","ij"],["ĸ","k"],["Ŀ","L"],["ŀ","l"],["Ł","L"],["ł","l"],["ʼn","'n"],["Ŋ","N"],["ŋ","n"],["Œ","Oe"],["œ","oe"],["Ŧ","T"],["ŧ","t"],["ſ","s"]]);function rn(e){e=e.normalize("NFD");let r="";for(let t=0;t<e.length;t++){const n=e[t];n>="̀"&&n<="ͯ"||n>="⃐"&&n<=""||n>="︠"&&n<="︯"||(r+=en.get(n)??n)}return r}var L0={},Fe;function tn(){if(Fe)return L0;Fe=1,Object.defineProperty(L0,"__esModule",{value:!0}),L0.styleq=void 0;var e=new WeakMap,r="$$css";function t(a){var o,f,c;return a!=null&&(o=a.disableCache===!0,f=a.disableMix===!0,c=a.transform),function(){for(var i=[],b="",l=null,g="",m=o?null:e,k=new Array(arguments.length),y=0;y<arguments.length;y++)k[y]=arguments[y];for(;k.length>0;){var p=k.pop();if(!(p==null||p===!1)){if(Array.isArray(p)){for(var h=0;h<p.length;h++)k.push(p[h]);continue}var A=c!=null?c(p):p;if(A.$$css!=null){var C="";if(m!=null&&m.has(A)){var B=m.get(A);B!=null&&(C=B[0],g=B[2],i.push.apply(i,B[1]),m=B[3])}else{var j=[];for(var N in A){var x=A[N];if(N===r){var d=A[N];d!==!0&&(g=g?d+"; "+g:d);continue}typeof x=="string"||x===null?i.includes(N)||(i.push(N),m!=null&&j.push(N),typeof x=="string"&&(C+=C?" "+x:x)):console.error("styleq: ".concat(N," typeof ").concat(String(x),' is not "string" or "null".'))}if(m!=null){var w=new WeakMap;m.set(A,[C,j,g,w]),m=w}}C&&(b=b?C+" "+b:C)}else if(f)l==null&&(l={}),l=Object.assign({},A,l);else{var v=null;for(var $ in A){var T=A[$];T!==void 0&&(i.includes($)||(T!=null&&(l==null&&(l={}),v==null&&(v={}),v[$]=T),i.push($),m=null))}v!=null&&(l=Object.assign(v,l))}}}var S=[b,l,g];return S}}var n=L0.styleq=t();return n.factory=t,L0}var nn=tn();function an(...e){const[r,t,n]=nn.styleq(e),a={};return r!=null&&r!==""&&(a.className=r),t!=null&&Object.keys(t).length>0&&(a.style=t),n!=null&&n!==""&&(a["data-style-src"]=n),a}const on=(e,r,t)=>{const n=an(e);return{className:_r(n.className,r),style:n.style||t?{...n.style,...t}:void 0}},Er=W.createContext({});W.memo(({children:e,config:r={}})=>I.jsx(Er,{value:r,children:e}));const fn=()=>W.use(Er);function cn(e){return typeof e=="symbol"||e instanceof Symbol}function re(e){return e==null?"":Tr(e)}function Tr(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Tr).join(",");if(cn(e))return e.toString();const r=e+"";return r==="0"&&Object.is(Number(e),-0)?"-0":r}function sn(e){return typeof e=="number"||Qt(e)&&Jt(e)==="[object Number]"}function bn(e){return Lr(re(e))}function ln(e){return rn(re(e))}const gn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\xd7\\xf7",m0="\\p{Lu}",Br="\\p{Ll}",Nr="(?:[\\p{Lm}\\p{Lo}]\\p{M}*)",E0="\\d",De="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",We=`[\\p{Z}\\p{P}${gn}]`,dn=`(?:${m0}|${Nr})`,Ye=`(?:${Br}|${Nr})`;let se;function un(){return se==null&&(se=RegExp([`${m0}?${Br}+${De}(?=${We}|${m0}|$)`,`${dn}+${qe}(?=${We}|${m0}${Ye}|$)`,`${m0}?${Ye}+${De}`,`${m0}+${qe}`,`${E0}*(?:1ST|2ND|3RD|(?![123])${E0}TH)(?=\\b|[a-z_])`,`${E0}*(?:1st|2nd|3rd|(?![123])${E0}th)(?=\\b|[A-Z_])`,`${E0}+`,"\\p{Emoji_Presentation}","\\p{Extended_Pictographic}"].join("|"),"gu")),se}function hn(e,r,t){const n=re(e);return r===void 0&&(r=un()),typeof r=="number"&&(r=r.toString()),Array.from(n.match(r)??[]).filter(a=>a!=="")}function pn(e){return typeof e!="string"&&(e=re(e)),e.replace(/['\u2019]/g,"")}function mn(e){const r=hn(pn(ln(e)));if(r.length===0)return"";const[t,...n]=r;return`${t.toLowerCase()}${n.map(a=>Lr(a)).join("")}`}const xn=e=>{if(sn(e))return{size:e};let r,t;switch(e){case"large":r=24,t=2;break;case"middle":r=20,t=2;break;case"small":r=14,t=2;break;default:e?(r=(e==null?void 0:e.size)||24,t=(e==null?void 0:e.strokeWidth)||2):(r="1em",t=2)}return{size:r,strokeWidth:t}},kn=Zt({block:"icon",dataAttributes:["spin"],elements:[]}),Ze={root:{kGNEyG:"lb6s0dn4",k1xSpc:"lb3nfvp2",kLWn49:"lb14ju556",kXLuUW:"lb1x7wgjd",$$css:!0},spin:{k44tkh:"lb1q3qbx4",ko0y90:"lba4qsjk",kKVMdj:"lb1fhqo85",kyAemX:"lb1esw782",$$css:!0}},jr=W.memo(({icon:e,size:r,color:t,fill:n="transparent",className:a,focusable:o,spin:f,fillRule:c,fillOpacity:s,ref:i,...b})=>{const{color:l,fill:g,fillOpacity:m,fillRule:k,focusable:y,className:p,size:h,...A}=fn(),{size:C,strokeWidth:B}=W.useMemo(()=>xn(r||h),[r,h]),j=e;return I.jsx("span",{role:"img",...Ut({spin:f}),className:on([Ze.root,f&&Ze.spin],_r(kn(),"anticon",p,a)).className,...A,...b,children:e&&(W.isValidElement(e)?e:I.jsx(j,{color:t||l,fill:n||g,fillOpacity:s||m,fillRule:c||k,focusable:o||y,height:C,ref:i,size:C,strokeWidth:B,width:C}))})});jr.displayName="Icon";const yn={dark:["#190a09","#340b0c","#4b141a","#641f24","#8a3334","#aa3f3e","#b53a3a","#be3738","#d64242","#e95350","#ffa8a0","#ffe1df","#fff8f7"],darkA:["rgba(250, 100, 90, 0.1)","rgba(248, 52, 57, 0.21)","rgba(250, 67, 87, 0.3)","rgba(250, 78, 90, 0.4)","rgba(251, 93, 95, 0.55)","rgba(254, 94, 93, 0.67)","rgba(255, 82, 82, 0.71)","rgba(253, 73, 75, 0.75)","rgba(255, 79, 79, 0.84)","rgba(253, 90, 87, 0.92)","#ffa8a0","#ffe1df","#fff8f7"],light:["#ffffff","#fef8f7","#fff0ee","#ffe7e4","#ffded8","#ffcec5","#ffb9ab","#ff9c88","#ff775c","#f35837","#ce461e","#9b3206","#64260f"],lightA:["rgba(255, 255, 255, 0.01)","rgba(230, 80, 55, 0.04)","rgba(255, 41, 12, 0.07)","rgba(255, 37, 10, 0.11)","rgba(255, 49, 11, 0.16)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 0, 0.33)","rgba(255, 44, 2, 0.47)","rgba(255, 43, 0, 0.64)","rgba(240, 44, 2, 0.79)","#ce461e","#9b3206","#64260f"]},wn={dark:["#060f18","#001a35","#002949","#003961","#005389","#0067a9","#007cc9","#0091eb","#00a2fe","#4cb3ff","#9cdaff","#cfedfd","#f8f9ff"],darkA:["rgba(60, 150, 240, 0.1)","rgba(0, 124, 252, 0.21)","rgba(0, 141, 252, 0.29)","rgba(0, 150, 255, 0.38)","rgba(0, 154, 254, 0.54)","rgba(0, 154, 252, 0.67)","rgba(0, 157, 254, 0.79)","rgba(0, 158, 255, 0.92)","#00a2fe","#4cb3ff","#9cdaff","#cfedfd","#f8f9ff"],light:["#ffffff","#f8f9ff","#edf4ff","#e3edff","#d7e6ff","#c0d9ff","#a0c7ff","#72aeff","#2c91ff","#0076e3","#0060cc","#004ebf","#1b3671"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 55, 255, 0.03)","rgba(30, 117, 255, 0.08)","rgba(0, 91, 255, 0.11)","rgba(5, 99, 255, 0.16)","rgba(3, 103, 255, 0.25)","rgba(5, 108, 255, 0.38)","rgba(3, 110, 255, 0.56)","rgba(1, 122, 255, 0.83)","#0076e3","#0060cc","#004ebf","#1b3671"]},$n={dark:["#0a1004","#061f00","#102e00","#1c3f00","#315a09","#3e6f06","#518b03","#67a70a","#71b814","#80c933","#bae48c","#deeec7","#f9faef"],darkA:["rgba(143, 229, 57, 0.07)","rgba(46, 238, 0, 0.13)","rgba(84, 242, 0, 0.19)","rgba(112, 252, 0, 0.25)","rgba(136, 250, 25, 0.36)","rgba(141, 252, 14, 0.44)","rgba(147, 253, 5, 0.55)","rgba(156, 253, 15, 0.66)","rgba(155, 252, 27, 0.73)","rgba(162, 254, 65, 0.79)","#bae48c","#deeec7","#f9faef"],light:["#ffffff","#f8fbf1","#eef6e6","#e1f1d9","#d4eccc","#bde3b6","#a0d89c","#71c87a","#30b556","#00a03f","#00864e","#006342","#00422b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(138, 188, 22, 0.06)","rgba(85, 165, 5, 0.1)","rgba(55, 162, 2, 0.15)","rgba(40, 160, 0, 0.2)","rgba(27, 158, 3, 0.29)","rgba(11, 155, 1, 0.39)","rgba(1, 157, 18, 0.56)","rgba(3, 165, 49, 0.82)","#00a03f","#00864e","#006342","#00422b"]},An={dark:["#150d02","#251700","#3c2200","#512f00","#724600","#8d5700","#ae6e00","#e39a00","#f6aa00","#ffbe45","#ffdd9c","#ffe5b8","#fff8f3"],darkA:["rgba(233, 144, 22, 0.09)","rgba(247, 153, 0, 0.15)","rgba(250, 142, 0, 0.24)","rgba(253, 147, 0, 0.32)","rgba(253, 156, 0, 0.45)","rgba(252, 155, 0, 0.56)","rgba(252, 159, 0, 0.69)","rgba(255, 173, 0, 0.89)","rgba(254, 175, 0, 0.97)","#ffbe45","#ffdd9c","#ffe5b8","#fff8f3"],light:["#ffffff","#fff8f3","#fff2e2","#ffe9cc","#ffe1b3","#ffda9a","#ffd17f","#ffca61","#ffbe2b","#feb400","#d78f00","#6d5200","#4a3600"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 115, 15, 0.05)","rgba(255, 147, 13, 0.12)","rgba(255, 145, 0, 0.2)","rgba(255, 155, 2, 0.3)","rgba(255, 163, 3, 0.4)","rgba(255, 165, 4, 0.51)","rgba(255, 170, 0, 0.62)","rgba(255, 177, 0, 0.83)","#feb400","#d78f00","#6d5200","#4a3600"]},ve={error:yn,info:wn,success:$n,warning:An},Or=new Map,vn=e=>!!e&&Or.has(e),Sn=e=>vn(e)?{...ve,...Or.get(e)}:ve,l0={dark:["#000000","#0d0d0d","#1a1a1a","#202020","#2d2d2d","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},Rr={dark:["#000000","#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","#ffffff"],light:["#ffffff","#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)"]},Ir={dark:["#000000","#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","#ffffff"],light:["#ffffff","#faf9f4","#ecebe6","#ddddd7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)"]},Hr={dark:["#000000","#1a1b1c","#232526","#2d2f30","#383a3a","#424545","#4d5050","#585c5c","#636766","#6e7371","#797f7c","#b5bab6","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(236, 246, 255, 0.11)","rgba(233, 246, 253, 0.15)","rgba(237, 248, 253, 0.19)","rgba(243, 252, 252, 0.23)","rgba(236, 246, 246, 0.28)","rgba(241, 250, 250, 0.32)","rgba(238, 249, 249, 0.37)","rgba(241, 251, 248, 0.41)","rgba(239, 250, 246, 0.46)","rgba(242, 254, 248, 0.5)","rgba(248, 255, 250, 0.73)","rgba(255, 255, 255, 1)"],light:["#ffffff","#f5faf4","#e7ece6","#d7ddd7","#c9cfc9","#bbc1bc","#aeb4b0","#a0a6a2","#939996","#868c89","#797f7c","#484b4b","#111111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(55, 155, 35, 0.05)","rgba(15, 65, 5, 0.1)","rgba(5, 43, 5, 0.16)","rgba(10, 37, 10, 0.22)","rgba(3, 25, 6, 0.27)","rgba(2, 21, 9, 0.32)","rgba(5, 21, 10, 0.38)","rgba(4, 18, 11, 0.43)","rgba(3, 15, 9, 0.48)","rgba(2, 13, 7, 0.53)","rgba(1, 5, 5, 0.72)","rgba(1, 2, 3, 0.9)"]},Pr={dark:["#000000","#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)"],light:["#ffffff","#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)"]},zr={dark:["#000000","#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","#ffffff"],light:["#ffffff","#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)"]},Ue={mauve:Rr,olive:Ir,sage:Hr,sand:Pr,slate:zr},Xr={gray:{dark:["#e6e6e6","#b4b4b4","#8f8f8f","#6b6b6b"],light:["#1f1f1f","#666666","#8a8a8a","#b0b0b0"]},mauve:{dark:["#e9e5ec","#b6b3b9","#908e94","#6c6a70"],light:["#1f1f23","#67656b","#8b898f","#b1afb5"]},olive:{dark:["#e5e7e1","#b2b5af","#8d908b","#696c67"],light:["#1d201c","#646762","#888b85","#aeb1aa"]},sage:{dark:["#e3e7e4","#b0b5b3","#8b908e","#676c6a"],light:["#1b201e","#616765","#868c89","#abb1ae"]},sand:{dark:["#e9e6dc","#b6b4ab","#918f87","#6c6b63"],light:["#1f201a","#67665f","#8b8a82","#b2b0a8"]},slate:{dark:["#e5e6ea","#b3b4b8","#8d8f93","#696b6f"],light:["#1d1f22","#646669","#888a8d","#aeb0b3"]}},{min:Mn,max:Cn}=Math,g0=(e,r=0,t=1)=>Mn(Cn(r,e),t),Ee=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=g0(e[r],0,255)):r===3&&(e[r]=g0(e[r],0,1));return e},Gr={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Gr[`[object ${e}]`]=e.toLowerCase();function E(e){return Gr[Object.prototype.toString.call(e)]||"object"}const L=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):E(e[0])=="object"&&r?r.split("").filter(t=>e[0][t]!==void 0).map(t=>e[0][t]):e[0].slice(0),A0=e=>{if(e.length<2)return null;const r=e.length-1;return E(e[r])=="string"?e[r].toLowerCase():null},{PI:te,min:Fr,max:Dr}=Math,U=e=>Math.round(e*100)/100,Se=e=>Math.round(e*100)/100,n0=te*2,ie=te/3,_n=te/180,Ln=180/te;function qr(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const _={format:{},autodetect:[]};class u{constructor(...r){const t=this;if(E(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let n=A0(r),a=!1;if(!n){a=!0,_.sorted||(_.autodetect=_.autodetect.sort((o,f)=>f.p-o.p),_.sorted=!0);for(let o of _.autodetect)if(n=o.test(...r),n)break}if(_.format[n]){const o=_.format[n].apply(null,a?r:r.slice(0,-1));t._rgb=Ee(o)}else throw new Error("unknown format: "+r);t._rgb.length===3&&t._rgb.push(1)}toString(){return E(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const En="3.2.0",M=(...e)=>new u(...e);M.version=En;const y0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Tn=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Bn=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Wr=e=>{if(e.match(Tn)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),t=r>>16,n=r>>8&255,a=r&255;return[t,n,a,1]}if(e.match(Bn)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),t=r>>24&255,n=r>>16&255,a=r>>8&255,o=Math.round((r&255)/255*100)/100;return[t,n,a,o]}throw new Error(`unknown hex color: ${e}`)},{round:H0}=Math,Yr=(...e)=>{let[r,t,n,a]=L(e,"rgba"),o=A0(e)||"auto";a===void 0&&(a=1),o==="auto"&&(o=a<1?"rgba":"rgb"),r=H0(r),t=H0(t),n=H0(n);let c="000000"+(r<<16|t<<8|n).toString(16);c=c.substr(c.length-6);let s="0"+H0(a*255).toString(16);switch(s=s.substr(s.length-2),o.toLowerCase()){case"rgba":return`#${c}${s}`;case"argb":return`#${s}${c}`;default:return`#${c}`}};u.prototype.name=function(){const e=Yr(this._rgb,"rgb");for(let r of Object.keys(y0))if(y0[r]===e)return r.toLowerCase();return e};_.format.named=e=>{if(e=e.toLowerCase(),y0[e])return Wr(y0[e]);throw new Error("unknown color name: "+e)};_.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&E(e)==="string"&&y0[e.toLowerCase()])return"named"}});u.prototype.alpha=function(e,r=!1){return e!==void 0&&E(e)==="number"?r?(this._rgb[3]=e,this):new u([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]};u.prototype.clipped=function(){return this._rgb._clipped||!1};const e0={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Nn=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function a0(e){const r=Nn.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);e0.labWhitePoint=e,e0.Xn=r[0],e0.Zn=r[1]}function B0(){return e0.labWhitePoint}const Te=(...e)=>{e=L(e,"lab");const[r,t,n]=e,[a,o,f]=jn(r,t,n),[c,s,i]=Zr(a,o,f);return[c,s,i,e.length>3?e[3]:1]},jn=(e,r,t)=>{const{kE:n,kK:a,kKE:o,Xn:f,Yn:c,Zn:s}=e0,i=(e+16)/116,b=.002*r+i,l=i-.005*t,g=b*b*b,m=l*l*l,k=g>n?g:(116*b-16)/a,y=e>o?Math.pow((e+16)/116,3):e/a,p=m>n?m:(116*l-16)/a,h=k*f,A=y*c,C=p*s;return[h,A,C]},be=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},Zr=(e,r,t)=>{const{MtxAdaptMa:n,MtxAdaptMaI:a,MtxXYZ2RGB:o,RefWhiteRGB:f,Xn:c,Yn:s,Zn:i}=e0,b=c*n.m00+s*n.m10+i*n.m20,l=c*n.m01+s*n.m11+i*n.m21,g=c*n.m02+s*n.m12+i*n.m22,m=f.X*n.m00+f.Y*n.m10+f.Z*n.m20,k=f.X*n.m01+f.Y*n.m11+f.Z*n.m21,y=f.X*n.m02+f.Y*n.m12+f.Z*n.m22,p=(e*n.m00+r*n.m10+t*n.m20)*(m/b),h=(e*n.m01+r*n.m11+t*n.m21)*(k/l),A=(e*n.m02+r*n.m12+t*n.m22)*(y/g),C=p*a.m00+h*a.m10+A*a.m20,B=p*a.m01+h*a.m11+A*a.m21,j=p*a.m02+h*a.m12+A*a.m22,N=be(C*o.m00+B*o.m10+j*o.m20),x=be(C*o.m01+B*o.m11+j*o.m21),d=be(C*o.m02+B*o.m12+j*o.m22);return[N*255,x*255,d*255]},Be=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),[o,f,c]=Ur(r,t,n),[s,i,b]=On(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};function On(e,r,t){const{Xn:n,Yn:a,Zn:o,kE:f,kK:c}=e0,s=e/n,i=r/a,b=t/o,l=s>f?Math.pow(s,1/3):(c*s+16)/116,g=i>f?Math.pow(i,1/3):(c*i+16)/116,m=b>f?Math.pow(b,1/3):(c*b+16)/116;return[116*g-16,500*(l-g),200*(g-m)]}function le(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const Ur=(e,r,t)=>{e=le(e/255),r=le(r/255),t=le(t/255);const{MtxRGB2XYZ:n,MtxAdaptMa:a,MtxAdaptMaI:o,Xn:f,Yn:c,Zn:s,As:i,Bs:b,Cs:l}=e0;let g=e*n.m00+r*n.m10+t*n.m20,m=e*n.m01+r*n.m11+t*n.m21,k=e*n.m02+r*n.m12+t*n.m22;const y=f*a.m00+c*a.m10+s*a.m20,p=f*a.m01+c*a.m11+s*a.m21,h=f*a.m02+c*a.m12+s*a.m22;let A=g*a.m00+m*a.m10+k*a.m20,C=g*a.m01+m*a.m11+k*a.m21,B=g*a.m02+m*a.m12+k*a.m22;return A*=y/i,C*=p/b,B*=h/l,g=A*o.m00+C*o.m10+B*o.m20,m=A*o.m01+C*o.m11+B*o.m21,k=A*o.m02+C*o.m12+B*o.m22,[g,m,k]};u.prototype.lab=function(){return Be(this._rgb)};const Rn=(...e)=>new u(...e,"lab");Object.assign(M,{lab:Rn,getLabWhitePoint:B0,setLabWhitePoint:a0});_.format.lab=Te;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"lab"),E(e)==="array"&&e.length===3)return"lab"}});u.prototype.darken=function(e=1){const r=this,t=r.lab();return t[0]-=e0.Kn*e,new u(t,"lab").alpha(r.alpha(),!0)};u.prototype.brighten=function(e=1){return this.darken(-e)};u.prototype.darker=u.prototype.darken;u.prototype.brighter=u.prototype.brighten;u.prototype.get=function(e){const[r,t]=e.split("."),n=this[r]();if(t){const a=r.indexOf(t)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return n[a];throw new Error(`unknown channel ${t} in mode ${r}`)}else return n};const{pow:In}=Math,Hn=1e-7,Pn=20;u.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&E(e)==="number"){if(e===0)return new u([0,0,0,this._rgb[3]],"rgb");if(e===1)return new u([255,255,255,this._rgb[3]],"rgb");let t=this.luminance(),n=Pn;const a=(f,c)=>{const s=f.interpolate(c,.5,r),i=s.luminance();return Math.abs(e-i)<Hn||!n--?s:i>e?a(f,s):a(s,c)},o=(t>e?a(new u([0,0,0]),this):a(this,new u([255,255,255]))).rgb();return new u([...o,this._rgb[3]])}return zn(...this._rgb.slice(0,3))};const zn=(e,r,t)=>(e=ge(e),r=ge(r),t=ge(t),.2126*e+.7152*r+.0722*t),ge=e=>(e/=255,e<=.03928?e/12.92:In((e+.055)/1.055,2.4)),F={},w0=(e,r,t=.5,...n)=>{let a=n[0]||"lrgb";if(!F[a]&&!n.length&&(a=Object.keys(F)[0]),!F[a])throw new Error(`interpolation mode ${a} is not defined`);return E(e)!=="object"&&(e=new u(e)),E(r)!=="object"&&(r=new u(r)),F[a](e,r,t).alpha(e.alpha()+t*(r.alpha()-e.alpha()))};u.prototype.mix=u.prototype.interpolate=function(e,r=.5,...t){return w0(this,e,r,...t)};u.prototype.premultiply=function(e=!1){const r=this._rgb,t=r[3];return e?(this._rgb=[r[0]*t,r[1]*t,r[2]*t,t],this):new u([r[0]*t,r[1]*t,r[2]*t,t],"rgb")};const{sin:Xn,cos:Gn}=Math,Kr=(...e)=>{let[r,t,n]=L(e,"lch");return isNaN(n)&&(n=0),n=n*_n,[r,Gn(n)*t,Xn(n)*t]},Ne=(...e)=>{e=L(e,"lch");const[r,t,n]=e,[a,o,f]=Kr(r,t,n),[c,s,i]=Te(a,o,f);return[c,s,i,e.length>3?e[3]:1]},Fn=(...e)=>{const r=qr(L(e,"hcl"));return Ne(...r)},{sqrt:Dn,atan2:qn,round:Wn}=Math,Vr=(...e)=>{const[r,t,n]=L(e,"lab"),a=Dn(t*t+n*n);let o=(qn(n,t)*Ln+360)%360;return Wn(a*1e4)===0&&(o=Number.NaN),[r,a,o]},je=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),[o,f,c]=Be(r,t,n),[s,i,b]=Vr(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};u.prototype.lch=function(){return je(this._rgb)};u.prototype.hcl=function(){return qr(je(this._rgb))};const Yn=(...e)=>new u(...e,"lch"),Zn=(...e)=>new u(...e,"hcl");Object.assign(M,{lch:Yn,hcl:Zn});_.format.lch=Ne;_.format.hcl=Fn;["lch","hcl"].forEach(e=>_.autodetect.push({p:2,test:(...r)=>{if(r=L(r,e),E(r)==="array"&&r.length===3)return e}}));u.prototype.saturate=function(e=1){const r=this,t=r.lch();return t[1]+=e0.Kn*e,t[1]<0&&(t[1]=0),new u(t,"lch").alpha(r.alpha(),!0)};u.prototype.desaturate=function(e=1){return this.saturate(-e)};u.prototype.set=function(e,r,t=!1){const[n,a]=e.split("."),o=this[n]();if(a){const f=n.indexOf(a)-(n.substr(0,2)==="ok"?2:0);if(f>-1){if(E(r)=="string")switch(r.charAt(0)){case"+":o[f]+=+r;break;case"-":o[f]+=+r;break;case"*":o[f]*=+r.substr(1);break;case"/":o[f]/=+r.substr(1);break;default:o[f]=+r}else if(E(r)==="number")o[f]=r;else throw new Error("unsupported value for Color.set");const c=new u(o,n);return t?(this._rgb=c._rgb,this):c}throw new Error(`unknown channel ${a} in mode ${n}`)}else return o};u.prototype.tint=function(e=.5,...r){return w0(this,"white",e,...r)};u.prototype.shade=function(e=.5,...r){return w0(this,"black",e,...r)};const Un=(e,r,t)=>{const n=e._rgb,a=r._rgb;return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"rgb")};F.rgb=Un;const{sqrt:de,pow:d0}=Math,Kn=(e,r,t)=>{const[n,a,o]=e._rgb,[f,c,s]=r._rgb;return new u(de(d0(n,2)*(1-t)+d0(f,2)*t),de(d0(a,2)*(1-t)+d0(c,2)*t),de(d0(o,2)*(1-t)+d0(s,2)*t),"rgb")};F.lrgb=Kn;const Vn=(e,r,t)=>{const n=e.lab(),a=r.lab();return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"lab")};F.lab=Vn;const v0=(e,r,t,n)=>{let a,o;n==="hsl"?(a=e.hsl(),o=r.hsl()):n==="hsv"?(a=e.hsv(),o=r.hsv()):n==="hcg"?(a=e.hcg(),o=r.hcg()):n==="hsi"?(a=e.hsi(),o=r.hsi()):n==="lch"||n==="hcl"?(n="hcl",a=e.hcl(),o=r.hcl()):n==="oklch"&&(a=e.oklch().reverse(),o=r.oklch().reverse());let f,c,s,i,b,l;(n.substr(0,1)==="h"||n==="oklch")&&([f,s,b]=a,[c,i,l]=o);let g,m,k,y;return!isNaN(f)&&!isNaN(c)?(c>f&&c-f>180?y=c-(f+360):c<f&&f-c>180?y=c+360-f:y=c-f,m=f+t*y):isNaN(f)?isNaN(c)?m=Number.NaN:(m=c,(b==1||b==0)&&n!="hsv"&&(g=i)):(m=f,(l==1||l==0)&&n!="hsv"&&(g=s)),g===void 0&&(g=s+t*(i-s)),k=b+t*(l-b),n==="oklch"?new u([k,g,m],n):new u([m,g,k],n)},Qr=(e,r,t)=>v0(e,r,t,"lch");F.lch=Qr;F.hcl=Qr;const Qn=e=>{if(E(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,t=e>>8&255,n=e&255;return[r,t,n,1]}throw new Error("unknown num color: "+e)},Jn=(...e)=>{const[r,t,n]=L(e,"rgb");return(r<<16)+(t<<8)+n};u.prototype.num=function(){return Jn(this._rgb)};const ea=(...e)=>new u(...e,"num");Object.assign(M,{num:ea});_.format.num=Qn;_.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&E(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const ra=(e,r,t)=>{const n=e.num(),a=r.num();return new u(n+t*(a-n),"num")};F.num=ra;const{floor:ta}=Math,na=(...e)=>{e=L(e,"hcg");let[r,t,n]=e,a,o,f;n=n*255;const c=t*255;if(t===0)a=o=f=n;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const s=ta(r),i=r-s,b=n*(1-t),l=b+c*(1-i),g=b+c*i,m=b+c;switch(s){case 0:[a,o,f]=[m,g,b];break;case 1:[a,o,f]=[l,m,b];break;case 2:[a,o,f]=[b,m,g];break;case 3:[a,o,f]=[b,l,m];break;case 4:[a,o,f]=[g,b,m];break;case 5:[a,o,f]=[m,b,l];break}}return[a,o,f,e.length>3?e[3]:1]},aa=(...e)=>{const[r,t,n]=L(e,"rgb"),a=Fr(r,t,n),o=Dr(r,t,n),f=o-a,c=f*100/255,s=a/(255-f)*100;let i;return f===0?i=Number.NaN:(r===o&&(i=(t-n)/f),t===o&&(i=2+(n-r)/f),n===o&&(i=4+(r-t)/f),i*=60,i<0&&(i+=360)),[i,c,s]};u.prototype.hcg=function(){return aa(this._rgb)};const oa=(...e)=>new u(...e,"hcg");M.hcg=oa;_.format.hcg=na;_.autodetect.push({p:1,test:(...e)=>{if(e=L(e,"hcg"),E(e)==="array"&&e.length===3)return"hcg"}});const fa=(e,r,t)=>v0(e,r,t,"hcg");F.hcg=fa;const{cos:u0}=Math,ca=(...e)=>{e=L(e,"hsi");let[r,t,n]=e,a,o,f;return isNaN(r)&&(r=0),isNaN(t)&&(t=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(f=(1-t)/3,a=(1+t*u0(n0*r)/u0(ie-n0*r))/3,o=1-(f+a)):r<2/3?(r-=1/3,a=(1-t)/3,o=(1+t*u0(n0*r)/u0(ie-n0*r))/3,f=1-(a+o)):(r-=2/3,o=(1-t)/3,f=(1+t*u0(n0*r)/u0(ie-n0*r))/3,a=1-(o+f)),a=g0(n*a*3),o=g0(n*o*3),f=g0(n*f*3),[a*255,o*255,f*255,e.length>3?e[3]:1]},{min:sa,sqrt:ia,acos:ba}=Math,la=(...e)=>{let[r,t,n]=L(e,"rgb");r/=255,t/=255,n/=255;let a;const o=sa(r,t,n),f=(r+t+n)/3,c=f>0?1-o/f:0;return c===0?a=NaN:(a=(r-t+(r-n))/2,a/=ia((r-t)*(r-t)+(r-n)*(t-n)),a=ba(a),n>t&&(a=n0-a),a/=n0),[a*360,c,f]};u.prototype.hsi=function(){return la(this._rgb)};const ga=(...e)=>new u(...e,"hsi");M.hsi=ga;_.format.hsi=ca;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsi"),E(e)==="array"&&e.length===3)return"hsi"}});const da=(e,r,t)=>v0(e,r,t,"hsi");F.hsi=da;const Me=(...e)=>{e=L(e,"hsl");const[r,t,n]=e;let a,o,f;if(t===0)a=o=f=n*255;else{const c=[0,0,0],s=[0,0,0],i=n<.5?n*(1+t):n+t-n*t,b=2*n-i,l=r/360;c[0]=l+1/3,c[1]=l,c[2]=l-1/3;for(let g=0;g<3;g++)c[g]<0&&(c[g]+=1),c[g]>1&&(c[g]-=1),6*c[g]<1?s[g]=b+(i-b)*6*c[g]:2*c[g]<1?s[g]=i:3*c[g]<2?s[g]=b+(i-b)*(2/3-c[g])*6:s[g]=b;[a,o,f]=[s[0]*255,s[1]*255,s[2]*255]}return e.length>3?[a,o,f,e[3]]:[a,o,f,1]},Jr=(...e)=>{e=L(e,"rgba");let[r,t,n]=e;r/=255,t/=255,n/=255;const a=Fr(r,t,n),o=Dr(r,t,n),f=(o+a)/2;let c,s;return o===a?(c=0,s=Number.NaN):c=f<.5?(o-a)/(o+a):(o-a)/(2-o-a),r==o?s=(t-n)/(o-a):t==o?s=2+(n-r)/(o-a):n==o&&(s=4+(r-t)/(o-a)),s*=60,s<0&&(s+=360),e.length>3&&e[3]!==void 0?[s,c,f,e[3]]:[s,c,f]};u.prototype.hsl=function(){return Jr(this._rgb)};const ua=(...e)=>new u(...e,"hsl");M.hsl=ua;_.format.hsl=Me;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsl"),E(e)==="array"&&e.length===3)return"hsl"}});const ha=(e,r,t)=>v0(e,r,t,"hsl");F.hsl=ha;const{floor:pa}=Math,ma=(...e)=>{e=L(e,"hsv");let[r,t,n]=e,a,o,f;if(n*=255,t===0)a=o=f=n;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=pa(r),s=r-c,i=n*(1-t),b=n*(1-t*s),l=n*(1-t*(1-s));switch(c){case 0:[a,o,f]=[n,l,i];break;case 1:[a,o,f]=[b,n,i];break;case 2:[a,o,f]=[i,n,l];break;case 3:[a,o,f]=[i,b,n];break;case 4:[a,o,f]=[l,i,n];break;case 5:[a,o,f]=[n,i,b];break}}return[a,o,f,e.length>3?e[3]:1]},{min:xa,max:ka}=Math,ya=(...e)=>{e=L(e,"rgb");let[r,t,n]=e;const a=xa(r,t,n),o=ka(r,t,n),f=o-a;let c,s,i;return i=o/255,o===0?(c=Number.NaN,s=0):(s=f/o,r===o&&(c=(t-n)/f),t===o&&(c=2+(n-r)/f),n===o&&(c=4+(r-t)/f),c*=60,c<0&&(c+=360)),[c,s,i]};u.prototype.hsv=function(){return ya(this._rgb)};const wa=(...e)=>new u(...e,"hsv");M.hsv=wa;_.format.hsv=ma;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"hsv"),E(e)==="array"&&e.length===3)return"hsv"}});const $a=(e,r,t)=>v0(e,r,t,"hsv");F.hsv=$a;function U0(e,r){let t=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(f=>[f]));let n=r[0].length,a=r[0].map((f,c)=>r.map(s=>s[c])),o=e.map(f=>a.map(c=>Array.isArray(f)?f.reduce((s,i,b)=>s+i*(c[b]||0),0):c.reduce((s,i)=>s+i*f,0)));return t===1&&(o=o[0]),n===1?o.map(f=>f[0]):o}const Oe=(...e)=>{e=L(e,"lab");const[r,t,n,...a]=e,[o,f,c]=Aa([r,t,n]),[s,i,b]=Zr(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]};function Aa(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],t=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],n=U0(t,e);return U0(r,n.map(a=>a**3))}const Re=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),o=Ur(r,t,n);return[...va(o),...a.length>0&&a[0]<1?[a[0]]:[]]};function va(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],t=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],n=U0(r,e);return U0(t,n.map(a=>Math.cbrt(a)))}u.prototype.oklab=function(){return Re(this._rgb)};const Sa=(...e)=>new u(...e,"oklab");Object.assign(M,{oklab:Sa});_.format.oklab=Oe;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"oklab"),E(e)==="array"&&e.length===3)return"oklab"}});const Ma=(e,r,t)=>{const n=e.oklab(),a=r.oklab();return new u(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"oklab")};F.oklab=Ma;const Ca=(e,r,t)=>v0(e,r,t,"oklch");F.oklch=Ca;const{pow:ue,sqrt:he,PI:pe,cos:Ke,sin:Ve,atan2:_a}=Math,La=(e,r="lrgb",t=null)=>{const n=e.length;t||(t=Array.from(new Array(n)).map(()=>1));const a=n/t.reduce(function(l,g){return l+g});if(t.forEach((l,g)=>{t[g]*=a}),e=e.map(l=>new u(l)),r==="lrgb")return Ea(e,t);const o=e.shift(),f=o.get(r),c=[];let s=0,i=0;for(let l=0;l<f.length;l++)if(f[l]=(f[l]||0)*t[0],c.push(isNaN(f[l])?0:t[0]),r.charAt(l)==="h"&&!isNaN(f[l])){const g=f[l]/180*pe;s+=Ke(g)*t[0],i+=Ve(g)*t[0]}let b=o.alpha()*t[0];e.forEach((l,g)=>{const m=l.get(r);b+=l.alpha()*t[g+1];for(let k=0;k<f.length;k++)if(!isNaN(m[k]))if(c[k]+=t[g+1],r.charAt(k)==="h"){const y=m[k]/180*pe;s+=Ke(y)*t[g+1],i+=Ve(y)*t[g+1]}else f[k]+=m[k]*t[g+1]});for(let l=0;l<f.length;l++)if(r.charAt(l)==="h"){let g=_a(i/c[l],s/c[l])/pe*180;for(;g<0;)g+=360;for(;g>=360;)g-=360;f[l]=g}else f[l]=f[l]/c[l];return b/=n,new u(f,r).alpha(b>.99999?1:b,!0)},Ea=(e,r)=>{const t=e.length,n=[0,0,0,0];for(let a=0;a<e.length;a++){const o=e[a],f=r[a]/t,c=o._rgb;n[0]+=ue(c[0],2)*f,n[1]+=ue(c[1],2)*f,n[2]+=ue(c[2],2)*f,n[3]+=c[3]*f}return n[0]=he(n[0]),n[1]=he(n[1]),n[2]=he(n[2]),n[3]>.9999999&&(n[3]=1),new u(Ee(n))},{pow:Ta}=Math;function K0(e){let r="rgb",t=M("#ccc"),n=0,a=[0,1],o=[0,1],f=[],c=[0,0],s=!1,i=[],b=!1,l=0,g=1,m=!1,k={},y=!0,p=1;const h=function(d){if(d=d||["#fff","#000"],d&&E(d)==="string"&&M.brewer&&M.brewer[d.toLowerCase()]&&(d=M.brewer[d.toLowerCase()]),E(d)==="array"){d.length===1&&(d=[d[0],d[0]]),d=d.slice(0);for(let w=0;w<d.length;w++)d[w]=M(d[w]);f.length=0;for(let w=0;w<d.length;w++)f.push(w/(d.length-1))}return N(),i=d},A=function(d){if(s!=null){const w=s.length-1;let v=0;for(;v<w&&d>=s[v];)v++;return v-1}return 0};let C=d=>d,B=d=>d;const j=function(d,w){let v,$;if(w==null&&(w=!1),isNaN(d)||d===null)return t;w?$=d:s&&s.length>2?$=A(d)/(s.length-2):g!==l?$=(d-l)/(g-l):$=1,$=B($),w||($=C($)),p!==1&&($=Ta($,p)),$=c[0]+$*(1-c[0]-c[1]),$=g0($,0,1);const T=Math.floor($*1e4);if(y&&k[T])v=k[T];else{if(E(i)==="array")for(let S=0;S<f.length;S++){const D=f[S];if($<=D){v=i[S];break}if($>=D&&S===f.length-1){v=i[S];break}if($>D&&$<f[S+1]){$=($-D)/(f[S+1]-D),v=M.interpolate(i[S],i[S+1],$,r);break}}else E(i)==="function"&&(v=i($));y&&(k[T]=v)}return v};var N=()=>k={};h(e);const x=function(d){const w=M(j(d));return b&&w[b]?w[b]():w};return x.classes=function(d){if(d!=null){if(E(d)==="array")s=d,a=[d[0],d[d.length-1]];else{const w=M.analyze(a);d===0?s=[w.min,w.max]:s=M.limits(w,"e",d)}return x}return s},x.domain=function(d){if(!arguments.length)return o;o=d.slice(0),l=d[0],g=d[d.length-1],f=[];const w=i.length;if(d.length===w&&l!==g)for(let v of Array.from(d))f.push((v-l)/(g-l));else{for(let v=0;v<w;v++)f.push(v/(w-1));if(d.length>2){const v=d.map((T,S)=>S/(d.length-1)),$=d.map(T=>(T-l)/(g-l));$.every((T,S)=>v[S]===T)||(B=T=>{if(T<=0||T>=1)return T;let S=0;for(;T>=$[S+1];)S++;const D=(T-$[S])/($[S+1]-$[S]);return v[S]+D*(v[S+1]-v[S])})}}return a=[l,g],x},x.mode=function(d){return arguments.length?(r=d,N(),x):r},x.range=function(d,w){return h(d),x},x.out=function(d){return b=d,x},x.spread=function(d){return arguments.length?(n=d,x):n},x.correctLightness=function(d){return d==null&&(d=!0),m=d,N(),m?C=function(w){const v=j(0,!0).lab()[0],$=j(1,!0).lab()[0],T=v>$;let S=j(w,!0).lab()[0];const D=v+($-v)*w;let f0=S-D,R0=0,_0=1,I0=20;for(;Math.abs(f0)>.01&&I0-- >0;)(function(){return T&&(f0*=-1),f0<0?(R0=w,w+=(_0-w)*.5):(_0=w,w+=(R0-w)*.5),S=j(w,!0).lab()[0],f0=S-D})();return w}:C=w=>w,x},x.padding=function(d){return d!=null?(E(d)==="number"&&(d=[d,d]),c=d,x):c},x.colors=function(d,w){arguments.length<2&&(w="hex");let v=[];if(arguments.length===0)v=i.slice(0);else if(d===1)v=[x(.5)];else if(d>1){const $=a[0],T=a[1]-$;v=Ba(0,d).map(S=>x($+S/(d-1)*T))}else{e=[];let $=[];if(s&&s.length>2)for(let T=1,S=s.length,D=1<=S;D?T<S:T>S;D?T++:T--)$.push((s[T-1]+s[T])*.5);else $=a;v=$.map(T=>x(T))}return M[w]&&(v=v.map($=>$[w]())),v},x.cache=function(d){return d!=null?(y=d,x):y},x.gamma=function(d){return d!=null?(p=d,x):p},x.nodata=function(d){return d!=null?(t=M(d),x):t},x}function Ba(e,r,t){let n=[],a=e<r,o=r;for(let f=e;a?f<o:f>o;a?f++:f--)n.push(f);return n}const Na=function(e){let r=[1,1];for(let t=1;t<e;t++){let n=[1];for(let a=1;a<=r.length;a++)n[a]=(r[a]||0)+r[a-1];r=n}return r},ja=function(e){let r,t,n,a;if(e=e.map(o=>new u(o)),e.length===2)[t,n]=e.map(o=>o.lab()),r=function(o){const f=[0,1,2].map(c=>t[c]+o*(n[c]-t[c]));return new u(f,"lab")};else if(e.length===3)[t,n,a]=e.map(o=>o.lab()),r=function(o){const f=[0,1,2].map(c=>(1-o)*(1-o)*t[c]+2*(1-o)*o*n[c]+o*o*a[c]);return new u(f,"lab")};else if(e.length===4){let o;[t,n,a,o]=e.map(f=>f.lab()),r=function(f){const c=[0,1,2].map(s=>(1-f)*(1-f)*(1-f)*t[s]+3*(1-f)*(1-f)*f*n[s]+3*(1-f)*f*f*a[s]+f*f*f*o[s]);return new u(c,"lab")}}else if(e.length>=5){let o,f,c;o=e.map(s=>s.lab()),c=e.length-1,f=Na(c),r=function(s){const i=1-s,b=[0,1,2].map(l=>o.reduce((g,m,k)=>g+f[k]*i**(c-k)*s**k*m[l],0));return new u(b,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},Oa=e=>{const r=ja(e);return r.scale=()=>K0(r),r},{round:et}=Math;u.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(et)};u.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,t)=>t<3?e===!1?r:et(r):r)};const Ra=(...e)=>new u(...e,"rgb");Object.assign(M,{rgb:Ra});_.format.rgb=(...e)=>{const r=L(e,"rgba");return r[3]===void 0&&(r[3]=1),r};_.autodetect.push({p:3,test:(...e)=>{if(e=L(e,"rgba"),E(e)==="array"&&(e.length===3||e.length===4&&E(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Q=(e,r,t)=>{if(!Q[t])throw new Error("unknown blend mode "+t);return Q[t](e,r)},i0=e=>(r,t)=>{const n=M(t).rgb(),a=M(r).rgb();return M.rgb(e(n,a))},b0=e=>(r,t)=>{const n=[];return n[0]=e(r[0],t[0]),n[1]=e(r[1],t[1]),n[2]=e(r[2],t[2]),n},Ia=e=>e,Ha=(e,r)=>e*r/255,Pa=(e,r)=>e>r?r:e,za=(e,r)=>e>r?e:r,Xa=(e,r)=>255*(1-(1-e/255)*(1-r/255)),Ga=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),Fa=(e,r)=>255*(1-(1-r/255)/(e/255)),Da=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Q.normal=i0(b0(Ia));Q.multiply=i0(b0(Ha));Q.screen=i0(b0(Xa));Q.overlay=i0(b0(Ga));Q.darken=i0(b0(Pa));Q.lighten=i0(b0(za));Q.dodge=i0(b0(Da));Q.burn=i0(b0(Fa));const{pow:qa,sin:Wa,cos:Ya}=Math;function Za(e=300,r=-1.5,t=1,n=1,a=[0,1]){let o=0,f;E(a)==="array"?f=a[1]-a[0]:(f=0,a=[a,a]);const c=function(s){const i=n0*((e+120)/360+r*s),b=qa(a[0]+f*s,n),g=(o!==0?t[0]+s*o:t)*b*(1-b)/2,m=Ya(i),k=Wa(i),y=b+g*(-.14861*m+1.78277*k),p=b+g*(-.29227*m-.90649*k),h=b+g*(1.97294*m);return M(Ee([y*255,p*255,h*255,1]))};return c.start=function(s){return s==null?e:(e=s,c)},c.rotations=function(s){return s==null?r:(r=s,c)},c.gamma=function(s){return s==null?n:(n=s,c)},c.hue=function(s){return s==null?t:(t=s,E(t)==="array"?(o=t[1]-t[0],o===0&&(t=t[1])):o=0,c)},c.lightness=function(s){return s==null?a:(E(s)==="array"?(a=s,f=s[1]-s[0]):(a=[s,s],f=0),c)},c.scale=()=>M.scale(c),c.hue(t),c}const Ua="0123456789abcdef",{floor:Ka,random:Va}=Math,Qa=(e=Va)=>{let r="#";for(let t=0;t<6;t++)r+=Ua.charAt(Ka(e()*16));return new u(r,"hex")},{log:Qe,pow:Ja,floor:eo,abs:ro}=Math;function rt(e,r=null){const t={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return E(e)==="object"&&(e=Object.values(e)),e.forEach(n=>{r&&E(n)==="object"&&(n=n[r]),n!=null&&!isNaN(n)&&(t.values.push(n),t.sum+=n,n<t.min&&(t.min=n),n>t.max&&(t.max=n),t.count+=1)}),t.domain=[t.min,t.max],t.limits=(n,a)=>tt(t,n,a),t}function tt(e,r="equal",t=7){E(e)=="array"&&(e=rt(e));const{min:n,max:a}=e,o=e.values.sort((c,s)=>c-s);if(t===1)return[n,a];const f=[];if(r.substr(0,1)==="c"&&(f.push(n),f.push(a)),r.substr(0,1)==="e"){f.push(n);for(let c=1;c<t;c++)f.push(n+c/t*(a-n));f.push(a)}else if(r.substr(0,1)==="l"){if(n<=0)throw new Error("Logarithmic scales are only possible for values > 0");const c=Math.LOG10E*Qe(n),s=Math.LOG10E*Qe(a);f.push(n);for(let i=1;i<t;i++)f.push(Ja(10,c+i/t*(s-c)));f.push(a)}else if(r.substr(0,1)==="q"){f.push(n);for(let c=1;c<t;c++){const s=(o.length-1)*c/t,i=eo(s);if(i===s)f.push(o[i]);else{const b=s-i;f.push(o[i]*(1-b)+o[i+1]*b)}}f.push(a)}else if(r.substr(0,1)==="k"){let c;const s=o.length,i=new Array(s),b=new Array(t);let l=!0,g=0,m=null;m=[],m.push(n);for(let p=1;p<t;p++)m.push(n+p/t*(a-n));for(m.push(a);l;){for(let h=0;h<t;h++)b[h]=0;for(let h=0;h<s;h++){const A=o[h];let C=Number.MAX_VALUE,B;for(let j=0;j<t;j++){const N=ro(m[j]-A);N<C&&(C=N,B=j),b[B]++,i[h]=B}}const p=new Array(t);for(let h=0;h<t;h++)p[h]=null;for(let h=0;h<s;h++)c=i[h],p[c]===null?p[c]=o[h]:p[c]+=o[h];for(let h=0;h<t;h++)p[h]*=1/b[h];l=!1;for(let h=0;h<t;h++)if(p[h]!==m[h]){l=!0;break}m=p,g++,g>200&&(l=!1)}const k={};for(let p=0;p<t;p++)k[p]=[];for(let p=0;p<s;p++)c=i[p],k[c].push(o[p]);let y=[];for(let p=0;p<t;p++)y.push(k[p][0]),y.push(k[p][k[p].length-1]);y=y.sort((p,h)=>p-h),f.push(y[0]);for(let p=1;p<y.length;p+=2){const h=y[p];!isNaN(h)&&f.indexOf(h)===-1&&f.push(h)}}return f}const to=(e,r)=>{e=new u(e),r=new u(r);const t=e.luminance(),n=r.luminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)};/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* The APCA contrast prediction algorithm is based of the formulas published
|
|
5
|
+
* in the APCA-1.0.98G specification by Myndex. The specification is available at:
|
|
6
|
+
* https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
|
|
7
|
+
*
|
|
8
|
+
* Note that the APCA implementation is still beta, so please update to
|
|
9
|
+
* future versions of chroma.js when they become available.
|
|
10
|
+
*
|
|
11
|
+
* You can read more about the APCA Readability Criterion at
|
|
12
|
+
* https://readtech.org/ARC/
|
|
13
|
+
*/const Je=.027,no=5e-4,ao=.1,er=1.14,P0=.022,rr=1.414,oo=(e,r)=>{e=new u(e),r=new u(r),e.alpha()<1&&(e=w0(r,e,e.alpha(),"rgb"));const t=tr(...e.rgb()),n=tr(...r.rgb()),a=t>=P0?t:t+Math.pow(P0-t,rr),o=n>=P0?n:n+Math.pow(P0-n,rr),f=Math.pow(o,.56)-Math.pow(a,.57),c=Math.pow(o,.65)-Math.pow(a,.62),s=Math.abs(o-a)<no?0:a<o?f*er:c*er;return(Math.abs(s)<ao?0:s>0?s-Je:s+Je)*100};function tr(e,r,t){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(t/255,2.4)}const{sqrt:t0,pow:H,min:fo,max:co,atan2:nr,abs:ar,cos:z0,sin:or,exp:so,PI:fr}=Math;function io(e,r,t=1,n=1,a=1){var o=function(ce){return 360*ce/(2*fr)},f=function(ce){return 2*fr*ce/360};e=new u(e),r=new u(r);const[c,s,i]=Array.from(e.lab()),[b,l,g]=Array.from(r.lab()),m=(c+b)/2,k=t0(H(s,2)+H(i,2)),y=t0(H(l,2)+H(g,2)),p=(k+y)/2,h=.5*(1-t0(H(p,7)/(H(p,7)+H(25,7)))),A=s*(1+h),C=l*(1+h),B=t0(H(A,2)+H(i,2)),j=t0(H(C,2)+H(g,2)),N=(B+j)/2,x=o(nr(i,A)),d=o(nr(g,C)),w=x>=0?x:x+360,v=d>=0?d:d+360,$=ar(w-v)>180?(w+v+360)/2:(w+v)/2,T=1-.17*z0(f($-30))+.24*z0(f(2*$))+.32*z0(f(3*$+6))-.2*z0(f(4*$-63));let S=v-w;S=ar(S)<=180?S:v<=w?S+360:S-360,S=2*t0(B*j)*or(f(S)/2);const D=b-c,f0=j-B,R0=1+.015*H(m-50,2)/t0(20+H(m-50,2)),_0=1+.045*N,I0=1+.015*N*T,qt=30*so(-H(($-275)/25,2)),Wt=-(2*t0(H(N,7)/(H(N,7)+H(25,7))))*or(2*f(qt)),Yt=t0(H(D/(t*R0),2)+H(f0/(n*_0),2)+H(S/(a*I0),2)+Wt*(f0/(n*_0))*(S/(a*I0)));return co(0,fo(100,Yt))}function bo(e,r,t="lab"){e=new u(e),r=new u(r);const n=e.get(t),a=r.get(t);let o=0;for(let f in n){const c=(n[f]||0)-(a[f]||0);o+=c*c}return Math.sqrt(o)}const lo=(...e)=>{try{return new u(...e),!0}catch{return!1}},go={cool(){return K0([M.hsl(180,1,.9),M.hsl(250,.7,.4)])},hot(){return K0(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Ce={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},nt=Object.keys(Ce),cr=new Map(nt.map(e=>[e.toLowerCase(),e])),uo=typeof Proxy=="function"?new Proxy(Ce,{get(e,r){const t=r.toLowerCase();if(cr.has(t))return e[cr.get(t)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(nt)}}):Ce,ho=(...e)=>{e=L(e,"cmyk");const[r,t,n,a]=e,o=e.length>4?e[4]:1;return a===1?[0,0,0,o]:[r>=1?0:255*(1-r)*(1-a),t>=1?0:255*(1-t)*(1-a),n>=1?0:255*(1-n)*(1-a),o]},{max:sr}=Math,po=(...e)=>{let[r,t,n]=L(e,"rgb");r=r/255,t=t/255,n=n/255;const a=1-sr(r,sr(t,n)),o=a<1?1/(1-a):0,f=(1-r-a)*o,c=(1-t-a)*o,s=(1-n-a)*o;return[f,c,s,a]};u.prototype.cmyk=function(){return po(this._rgb)};const mo=(...e)=>new u(...e,"cmyk");Object.assign(M,{cmyk:mo});_.format.cmyk=ho;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"cmyk"),E(e)==="array"&&e.length===4)return"cmyk"}});const xo=(...e)=>{const r=L(e,"hsla");let t=A0(e)||"lsa";return r[0]=U(r[0]||0)+"deg",r[1]=U(r[1]*100)+"%",r[2]=U(r[2]*100)+"%",t==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),t="hsla"):r.length=3,`${t.substr(0,3)}(${r.join(" ")})`},ko=(...e)=>{const r=L(e,"lab");let t=A0(e)||"lab";return r[0]=U(r[0])+"%",r[1]=U(r[1]),r[2]=U(r[2]),t==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},yo=(...e)=>{const r=L(e,"lch");let t=A0(e)||"lab";return r[0]=U(r[0])+"%",r[1]=U(r[1]),r[2]=isNaN(r[2])?"none":U(r[2])+"deg",t==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},wo=(...e)=>{const r=L(e,"lab");return r[0]=U(r[0]*100)+"%",r[1]=Se(r[1]),r[2]=Se(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},at=(...e)=>{const[r,t,n,...a]=L(e,"rgb"),[o,f,c]=Re(r,t,n),[s,i,b]=Vr(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]},$o=(...e)=>{const r=L(e,"lch");return r[0]=U(r[0]*100)+"%",r[1]=Se(r[1]),r[2]=isNaN(r[2])?"none":U(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:me}=Math,Ao=(...e)=>{const r=L(e,"rgba");let t=A0(e)||"rgb";if(t.substr(0,3)==="hsl")return xo(Jr(r),t);if(t.substr(0,3)==="lab"){const n=B0();a0("d50");const a=ko(Be(r),t);return a0(n),a}if(t.substr(0,3)==="lch"){const n=B0();a0("d50");const a=yo(je(r),t);return a0(n),a}return t.substr(0,5)==="oklab"?wo(Re(r)):t.substr(0,5)==="oklch"?$o(at(r)):(r[0]=me(r[0]),r[1]=me(r[1]),r[2]=me(r[2]),(t==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),t="rgba"),`${t.substr(0,3)}(${r.slice(0,t==="rgb"?3:4).join(" ")})`)},ot=(...e)=>{e=L(e,"lch");const[r,t,n,...a]=e,[o,f,c]=Kr(r,t,n),[s,i,b]=Oe(o,f,c);return[s,i,b,...a.length>0&&a[0]<1?[a[0]]:[]]},o0=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,V=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,V0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,K=/\s*/.source,S0=/\s+/.source,Ie=/\s*,\s*/.source,ne=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,M0=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,ft=new RegExp("^rgba?\\("+K+[o0,o0,o0].join(S0)+M0+"\\)$"),ct=new RegExp("^rgb\\("+K+[o0,o0,o0].join(Ie)+K+"\\)$"),st=new RegExp("^rgba\\("+K+[o0,o0,o0,V].join(Ie)+K+"\\)$"),it=new RegExp("^hsla?\\("+K+[ne,V0,V0].join(S0)+M0+"\\)$"),bt=new RegExp("^hsl?\\("+K+[ne,V0,V0].join(Ie)+K+"\\)$"),lt=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,gt=new RegExp("^lab\\("+K+[V,V,V].join(S0)+M0+"\\)$"),dt=new RegExp("^lch\\("+K+[V,V,ne].join(S0)+M0+"\\)$"),ut=new RegExp("^oklab\\("+K+[V,V,V].join(S0)+M0+"\\)$"),ht=new RegExp("^oklch\\("+K+[V,V,ne].join(S0)+M0+"\\)$"),{round:pt}=Math,h0=e=>e.map((r,t)=>t<=2?g0(pt(r),0,255):r),P=(e,r=0,t=100,n=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,n?e=r+(e+1)*.5*(t-r):e=r+e*(t-r)),+e),q=(e,r)=>e==="none"?r:e,He=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(_.format.named)try{return _.format.named(e)}catch{}if((r=e.match(ft))||(r=e.match(ct))){let t=r.slice(1,4);for(let a=0;a<3;a++)t[a]=+P(q(t[a],0),0,255);t=h0(t);const n=r[4]!==void 0?+P(r[4],0,1):1;return t[3]=n,t}if(r=e.match(st)){const t=r.slice(1,5);for(let n=0;n<4;n++)t[n]=+P(t[n],0,255);return t}if((r=e.match(it))||(r=e.match(bt))){const t=r.slice(1,4);t[0]=+q(t[0].replace("deg",""),0),t[1]=+P(q(t[1],0),0,100)*.01,t[2]=+P(q(t[2],0),0,100)*.01;const n=h0(Me(t)),a=r[4]!==void 0?+P(r[4],0,1):1;return n[3]=a,n}if(r=e.match(lt)){const t=r.slice(1,4);t[1]*=.01,t[2]*=.01;const n=Me(t);for(let a=0;a<3;a++)n[a]=pt(n[a]);return n[3]=+r[4],n}if(r=e.match(gt)){const t=r.slice(1,4);t[0]=P(q(t[0],0),0,100),t[1]=P(q(t[1],0),-125,125,!0),t[2]=P(q(t[2],0),-125,125,!0);const n=B0();a0("d50");const a=h0(Te(t));a0(n);const o=r[4]!==void 0?+P(r[4],0,1):1;return a[3]=o,a}if(r=e.match(dt)){const t=r.slice(1,4);t[0]=P(t[0],0,100),t[1]=P(q(t[1],0),0,150,!1),t[2]=+q(t[2].replace("deg",""),0);const n=B0();a0("d50");const a=h0(Ne(t));a0(n);const o=r[4]!==void 0?+P(r[4],0,1):1;return a[3]=o,a}if(r=e.match(ut)){const t=r.slice(1,4);t[0]=P(q(t[0],0),0,1),t[1]=P(q(t[1],0),-.4,.4,!0),t[2]=P(q(t[2],0),-.4,.4,!0);const n=h0(Oe(t)),a=r[4]!==void 0?+P(r[4],0,1):1;return n[3]=a,n}if(r=e.match(ht)){const t=r.slice(1,4);t[0]=P(q(t[0],0),0,1),t[1]=P(q(t[1],0),0,.4,!1),t[2]=+q(t[2].replace("deg",""),0);const n=h0(ot(t)),a=r[4]!==void 0?+P(r[4],0,1):1;return n[3]=a,n}};He.test=e=>ft.test(e)||it.test(e)||gt.test(e)||dt.test(e)||ut.test(e)||ht.test(e)||ct.test(e)||st.test(e)||bt.test(e)||lt.test(e)||e==="transparent";u.prototype.css=function(e){return Ao(this._rgb,e)};const vo=(...e)=>new u(...e,"css");M.css=vo;_.format.css=He;_.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&E(e)==="string"&&He.test(e))return"css"}});_.format.gl=(...e)=>{const r=L(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const So=(...e)=>new u(...e,"gl");M.gl=So;u.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};u.prototype.hex=function(e){return Yr(this._rgb,e)};const Mo=(...e)=>new u(...e,"hex");M.hex=Mo;_.format.hex=Wr;_.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&E(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:X0}=Math,mt=e=>{const r=e/100;let t,n,a;return r<66?(t=255,n=r<6?0:-155.25485562709179-.44596950469579133*(n=r-2)+104.49216199393888*X0(n),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*X0(a)):(t=351.97690566805693+.114206453784165*(t=r-55)-40.25366309332127*X0(t),n=325.4494125711974+.07943456536662342*(n=r-50)-28.0852963507957*X0(n),a=255),[t,n,a,1]},{round:Co}=Math,_o=(...e)=>{const r=L(e,"rgb"),t=r[0],n=r[2];let a=1e3,o=4e4;const f=.4;let c;for(;o-a>f;){c=(o+a)*.5;const s=mt(c);s[2]/s[0]>=n/t?o=c:a=c}return Co(c)};u.prototype.temp=u.prototype.kelvin=u.prototype.temperature=function(){return _o(this._rgb)};const xe=(...e)=>new u(...e,"temp");Object.assign(M,{temp:xe,kelvin:xe,temperature:xe});_.format.temp=_.format.kelvin=_.format.temperature=mt;u.prototype.oklch=function(){return at(this._rgb)};const Lo=(...e)=>new u(...e,"oklch");Object.assign(M,{oklch:Lo});_.format.oklch=ot;_.autodetect.push({p:2,test:(...e)=>{if(e=L(e,"oklch"),E(e)==="array"&&e.length===3)return"oklch"}});Object.assign(M,{analyze:rt,average:La,bezier:Oa,blend:Q,brewer:uo,Color:u,colors:y0,contrast:to,contrastAPCA:oo,cubehelix:Za,deltaE:io,distance:bo,input:_,interpolate:w0,limits:tt,mix:w0,random:Qa,scale:K0,scales:go,valid:lo});const Eo=/^#[\da-f]{6}$/i,To=.05,Bo=e=>!!e&&Eo.test(e),No=new Map,ir=(e,r,t)=>{const n=M(e),[a]=n.oklch();return M.oklch(a,t,r).alpha(n.alpha())},p0=(e,r,t,n)=>e.map(a=>n?ir(a,r,t).css():ir(a,r,t).hex()),br=new Map,jo=e=>{const r=e.toLowerCase(),t=br.get(r);if(t)return t;const[,n,a]=M(r).oklch(),o=Number.isNaN(a)?0:a,f=Math.min(n||0,To),c=Xr.gray,s={scale:{dark:p0(l0.dark,o,f,!1),darkA:p0(l0.darkA,o,f,!0),light:p0(l0.light,o,f,!1),lightA:p0(l0.lightA,o,f,!0)},text:{dark:p0(c.dark,o,f,!1),light:p0(c.light,o,f,!1)}};return br.set(r,s),s},lr=(e,r)=>{const t=e[r];return[t[12],t[10],t[8],t[6]]},Oo=e=>{var n,a;if(Bo(e))return jo(e);const r=e?No.get(e):void 0;if(r)return{scale:r.scale,text:{dark:((n=r.text)==null?void 0:n.dark)??lr(r.scale,"dark"),light:((a=r.text)==null?void 0:a.light)??lr(r.scale,"light")}};const t=e&&e in Ue?e:void 0;return{scale:t&&Ue[t]||l0,text:Xr[t||"gray"]}},xt=({type:e,scale:r,appearance:t})=>{const n=bn(e),a=t==="dark";return{[`color${n}Fill`]:r[`${t}A`][a?3:4],[`color${n}FillSecondary`]:r[`${t}A`][a?2:3],[`color${n}FillTertiary`]:r[`${t}A`][a?1:2],[`color${n}FillQuaternary`]:r[`${t}A`][a?0:1],[`color${n}Bg`]:r[t][1],[`color${n}BgHover`]:r[t][2],[`color${n}Border`]:r[t][4],[`color${n}BorderHover`]:r[t][a?5:3],[`color${n}Hover`]:r[t][a?10:8],[`color${n}`]:r[t][9],[`color${n}Active`]:r[t][a?7:10],[`color${n}TextHover`]:r[t][a?10:8],[`color${n}Text`]:r[t][9],[`color${n}TextActive`]:r[t][a?7:10]}},Ro=({scale:e,appearance:r})=>({colorBgContainer:r==="dark"?e[r][1]:e[r][0],colorBgElevated:r==="dark"?e[r][2]:e[r][0],colorBgLayout:r==="dark"?e[r][0]:e[r][1],colorBgMask:e.lightA[8],colorBgSpotlight:e[r][4],colorBorder:e[r][3],colorBorderSecondary:e[r][2],colorFill:e[`${r}A`][3],colorFillQuaternary:e[`${r}A`][0],colorFillSecondary:e[`${r}A`][2],colorFillTertiary:e[`${r}A`][1],colorText:e[r][12],colorTextQuaternary:e[r][6],colorTextSecondary:e[r][10],colorTextTertiary:e[r][8]}),kt={dark:["#000415","#001740","#00285b","#003b79","#004f98","#0064b6","#0d78ce","#2d8ae0","#439aed","#60b1ff","#a7d3ff","#e0f0ff","#ffffff"],darkA:["rgba(0, 44, 233, 0.09)","rgba(0, 88, 246, 0.26)","rgba(0, 111, 253, 0.36)","rgba(0, 123, 252, 0.48)","rgba(0, 132, 253, 0.6)","rgba(0, 139, 253, 0.72)","rgba(16, 148, 254, 0.81)","rgba(51, 157, 255, 0.88)","rgba(72, 166, 255, 0.93)","#60b1ff","#a7d3ff","#e0f0ff","#ffffff"],light:["#ffffff","#fcfcff","#f2f8ff","#e5f1ff","#d5e9ff","#c2e0ff","#acd4ff","#93c8ff","#76baff","#57abf9","#0d78ce","#003b79","#000415"],lightA:["rgba(255, 255, 255, 0.01)","rgba(105, 105, 255, 0.02)","rgba(38, 138, 255, 0.06)","rgba(19, 128, 255, 0.11)","rgba(8, 126, 255, 0.17)","rgba(1, 126, 255, 0.24)","rgba(3, 125, 255, 0.33)","rgba(4, 127, 255, 0.43)","rgba(1, 127, 255, 0.54)","rgba(0, 128, 246, 0.66)","rgba(0, 113, 203, 0.95)","#003b79","#000415"]},yt={dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},wt={dark:["#00021b","#000d4c","#001a69","#002a8a","#003bac","#004cca","#005ae0","#0065ed","#006cf3","#0072f5","#9abeff","#e2ebff","#ffffff"],darkA:["rgba(0, 18, 245, 0.11)","rgba(0, 43, 253, 0.3)","rgba(0, 62, 250, 0.42)","rgba(0, 76, 251, 0.55)","rgba(0, 87, 253, 0.68)","rgba(0, 95, 252, 0.8)","rgba(0, 102, 255, 0.88)","rgba(0, 109, 255, 0.93)","rgba(0, 112, 253, 0.96)","rgba(0, 119, 255, 0.96)","#9abeff","#e2ebff","#ffffff"],light:["#ffffff","#fcfbff","#f1f5ff","#e2ebff","#cedfff","#b6d0ff","#9abeff","#78a9ff","#4c90ff","#0072f5","#005ae0","#002a8a","#00021b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(105, 55, 255, 0.02)","rgba(22, 88, 255, 0.06)","rgba(13, 88, 255, 0.12)","rgba(10, 95, 255, 0.2)","rgba(3, 93, 255, 0.29)","rgba(3, 93, 255, 0.4)","rgba(0, 93, 255, 0.53)","rgba(3, 99, 255, 0.71)","#0072f5","#005ae0","#002a8a","#00021b"]},$t={dark:["#070300","#2a1b00","#483000","#6a4900","#916400","#b77e00","#d59300","#eaa100","#f8aa00","#ffb224","#ffdcaf","#fff4eb","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(247, 159, 0, 0.17)","rgba(248, 166, 0, 0.29)","rgba(252, 174, 0, 0.42)","rgba(254, 175, 0, 0.57)","rgba(254, 175, 0, 0.72)","rgba(254, 175, 0, 0.84)","rgba(254, 175, 0, 0.92)","rgba(253, 173, 0, 0.98)","#ffb224","#ffdcaf","#fff4eb","#ffffff"],light:["#ffffff","#fffdff","#fff9f7","#fff4eb","#ffeedc","#ffe6c8","#ffdcaf","#ffd190","#ffc368","#ee9e0b","#d59300","#6a4900","#070300"],lightA:["rgba(255, 255, 255, 0.02)","rgba(255,145,55,0.04)","rgba(255,155,55,0.08)","rgba(255, 117, 5, 0.16)","rgba(255, 134, 5, 0.20)","rgba(255, 141, 5, 0.26)","rgba(255, 146, 5, 0.32)","rgba(255, 150, 3, 0.44)","rgba(255, 155, 3, 0.6)","rgba(255, 165, 0, 0.86)","#d59300","#6a4900","#070300"]},At={dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#62c473","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#379d4a","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.02)","rgba(117, 230, 5, 0.06)","rgba(84, 205, 12, 0.10)","rgba(60, 190, 10, 0.14)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},vt={dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},St={dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},Mt={dark:["#070300","#291900","#462b00","#684100","#8e5900","#b36f00","#d18000","#e88b00","#f89200","#ff9927","#ffd1b1","#fff1eb","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(241, 147, 0, 0.17)","rgba(250, 154, 0, 0.28)","rgba(254, 159, 0, 0.41)","rgba(254, 159, 0, 0.56)","rgba(252, 156, 0, 0.71)","rgba(255, 156, 0, 0.82)","rgba(255, 153, 0, 0.91)","rgba(253, 149, 0, 0.98)","#ff9927","#ffd1b1","#fff1eb","#ffffff"],light:["#ffffff","#fffcff","#fff8f6","#fff1eb","#ffe9dd","#ffdeca","#ffd1b1","#ffc293","#ffb06a","#f88c13","#d18000","#684100","#070300"],lightA:["rgba(255, 255, 255, 0.02)","rgba(255, 105, 255, 0.03)","rgba(255, 80, 30, 0.08)","rgba(255, 80, 5, 0.12)","rgba(255, 98, 12, 0.16)","rgba(255, 98, 3, 0.21)","rgba(255, 107, 3, 0.31)","rgba(255, 113, 4, 0.43)","rgba(255, 121, 2, 0.59)","rgba(255, 135, 1, 0.85)","#d18000","#684100","#070300"]},Ct={dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.08)","rgba(243, 14, 249, 0.16)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},_t={dark:["#0f0003","#380015","#560023","#780032","#9d0042","#c10251","#d6225d","#e43165","#ee3a6a","#f4416c","#ffb0b7","#ffe8e8","#ffffff"],darkA:["rgba(250, 0, 50, 0.06)","rgba(255, 0, 95, 0.22)","rgba(253, 0, 103, 0.34)","rgba(255, 0, 106, 0.47)","rgba(253, 0, 106, 0.62)","rgba(254, 3, 107, 0.76)","rgba(255, 40, 111, 0.84)","rgba(253, 54, 112, 0.9)","rgba(253, 62, 113, 0.94)","rgba(254, 68, 112, 0.96)","#ffb0b7","#ffe8e8","#ffffff"],light:["#ffffff","#fffbff","#fff3f3","#ffe8e8","#ffdadb","#ffc7ca","#ffb0b7","#ff94a1","#ff6f87","#f4416c","#d6225d","#780032","#0f0003"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 255, 0.02)","rgba(255, 15, 15, 0.05)","rgba(255, 25, 25, 0.1)","rgba(255, 8, 15, 0.15)","rgba(255, 0, 14, 0.22)","rgba(255, 0, 23, 0.31)","rgba(255, 0, 31, 0.42)","rgba(255, 2, 44, 0.57)","rgba(240, 2, 59, 0.75)","rgba(208, 1, 69, 0.87)","#780032","#0f0003"]},Lt={dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.06)","rgba(255, 35, 2, 0.12)","rgba(255, 42, 3, 0.20)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},Et={dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]},Tt={blue:kt.dark[9],cyan:yt.dark[9],geekblue:wt.dark[9],gold:$t.dark[9],green:At.dark[9],lime:vt.dark[9],magenta:St.dark[9],orange:Mt.dark[9],purple:Ct.dark[9],red:_t.dark[9],volcano:Lt.dark[9],yellow:Et.dark[9]};Rr.dark[9],Ir.dark[9],Hr.dark[9],Pr.dark[9],zr.dark[9];const Bt={dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#0b0b0b","#000000"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},Pe={blue:kt,cyan:yt,geekblue:wt,gold:$t,gray:l0,green:At,lime:vt,magenta:St,orange:Mt,primary:Bt,purple:Ct,red:_t,volcano:Lt,yellow:Et},Io=/^#[\da-f]{6}$/i,Ho=e=>!!e&&Io.test(e),q0=9,Po=[0,0,0,0,0,.25,.5,.75,1,1,1,.5,0],G0=.015,zo=100,Nt=2,Xo=l0.dark[1],Go=4.5,s0=e=>{const[r,t,n]=M(e).oklch();return{c:t,h:Number.isNaN(n)?0:n,l:r}},Fo=(e,r)=>{const t=Math.abs(e-r)%360;return t>180?360-t:t},gr=(e,r)=>{const t=s0(Tt[e]);return Fo(t.h,r.h)+zo*Math.abs(t.l-r.l)},Do=e=>Object.keys(Tt).reduce((r,t)=>gr(t,e)<gr(r,e)?t:r),qo=e=>Math.min(1,Math.max(0,e)),Wo=e=>{const{c:r,h:t,l:n}=s0(e);let a=n,o=e;for(;M.contrast(o,Xo)<Go&&a<1;)a=Math.min(1,a+.005),o=M.oklch(a,r,t).hex();return o},Yo=(e,r)=>{const t=[...e];for(let n=10;n<t.length;n++)t[n]=r>0?Math.max(t[n],t[n-1]+G0):Math.min(t[n],t[n-1]-G0);for(let n=8;n>=0;n--)t[n]=r>0?Math.min(t[n],t[n+1]-G0):Math.max(t[n],t[n+1]+G0);return t.map(qo)},dr=(e,r,t,n)=>{const a=s0(e[q0]),o=a.c>0?Math.min(r.c/a.c,Nt):0,f=r.l-a.l,c=e.map(s0),s=Yo(c.map(({l:i},b)=>b===q0?r.l:i+Po[b]*f),n);return c.map(({c:i},b)=>b===q0?t:M.oklch(s[b],i*o,r.h).hex())},ur=(e,r,t)=>{const n=s0(r[q0]),a=n.c>0?Math.min(t.c/n.c,Nt):0;return e.map(o=>{const f=M(o),{c,l:s}=s0(o);return M.oklch(s,c*a,t.h).alpha(f.alpha()).css()})},hr=new Map,Zo=e=>{const r=e.toLowerCase(),t=hr.get(r);if(t)return t;const n=s0(r),a=Pe[Do(n)],o=Wo(r),f=s0(o),c={dark:dr(a.dark,f,o,1),darkA:ur(a.darkA,a.dark,f),light:dr(a.light,n,r,-1),lightA:ur(a.lightA,a.light,n)};return hr.set(r,c),c},Q0=e=>{const[r,t,n,a]=M(e).rgba();return a<1?{alpha:a,blue:n,green:t,red:r}:{blue:n,green:t,red:r}},ke=e=>e.toString(16).padStart(2,"0"),Uo=({red:e,green:r,blue:t})=>{const n=`#${ke(e)}${ke(r)}${ke(t)}`;return n[1]===n[2]&&n[3]===n[4]&&n[5]===n[6]?`#${n[1]}${n[3]}${n[5]}`:n},Ko=(e,r,t)=>{if(r==="transparent")return t;if(t==="transparent")return r;const n={alpha:1,...Q0(r)},a={alpha:1,...Q0(t)},o=n.alpha-a.alpha,f=e*2-1,c=((f*o===-1?f:f+o)/(1+f*o)+1)/2,s=1-c,i={alpha:n.alpha*e+a.alpha*(1-e),blue:Math.floor(n.blue*c+a.blue*s),green:Math.floor(n.green*c+a.green*s),red:Math.floor(n.red*c+a.red*s)};return i.alpha>=1?Uo(i):`rgba(${i.red},${i.green},${i.blue},${i.alpha})`},ye=e=>e>=0&&e<=255,we=(e,r)=>{const t=Q0(e);if(t.alpha!==void 0)return e;const n=Q0(r);for(let a=.01;a<=1;a+=.01){const o=Math.round((t.red-n.red*(1-a))/a),f=Math.round((t.green-n.green*(1-a))/a),c=Math.round((t.blue-n.blue*(1-a))/a);if(ye(o)&&ye(f)&&ye(c)){const s=Math.round(a*100)/100;return s===1?`rgb(${o},${f},${c})`:`rgba(${o},${f},${c},${s})`}}return`rgb(${t.red},${t.green},${t.blue})`},Vo=(e,r,t)=>{const{scale:n,text:a}=Oo(r),[o,f,c,s]=a[e],i={...Ro({appearance:e,scale:n}),colorText:o,colorTextQuaternary:s,colorTextSecondary:f,colorTextTertiary:c};return{...i,colorBgContainerDisabled:i.colorFillTertiary,colorBgContainerSecondary:Ko(.5,i.colorBgLayout,i.colorBgContainer),colorBgTextActive:i.colorFill,colorBgTextHover:i.colorFillSecondary,colorBorderBg:i.colorBgContainer,colorErrorOutline:we(t.colorErrorBg,i.colorBgContainer),colorFillAlter:i.colorFillQuaternary,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorSplit:we(i.colorBorderSecondary,i.colorBgContainer),colorTextDescription:i.colorTextTertiary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextPlaceholder:i.colorTextQuaternary,colorWarningOutline:we(t.colorWarningBg,i.colorBgContainer),controlItemBgActiveDisabled:i.colorFill,controlItemBgHover:i.colorFillTertiary,controlTmpOutline:i.colorFillQuaternary}},Qo=({name:e,scale:r,appearance:t})=>{const n=t==="dark";return{[`${e}Fill`]:r[`${t}A`][n?3:4],[`${e}FillSecondary`]:r[`${t}A`][n?2:3],[`${e}FillTertiary`]:r[`${t}A`][n?1:2],[`${e}FillQuaternary`]:r[`${t}A`][n?0:1],[`${e}Bg`]:r[`${t}A`][1],[`${e}BgHover`]:r[`${t}A`][2],[`${e}Border`]:r[t][4],[`${e}BorderSecondary`]:r[t][3],[`${e}BorderHover`]:r[t][n?5:3],[`${e}Hover`]:r[t][n?10:8],[`${e}`]:r[t][9],[`${e}Active`]:r[t][n?7:10],[`${e}TextHover`]:r[`${t}A`][n?10:8],[`${e}Text`]:r[`${t}A`][9],[`${e}TextActive`]:r[`${t}A`][n?7:10]}},Jo=({name:e,scale:r,appearance:t})=>{const n={};for(const[a,o]of r[t].entries())a===0||a===12||(n[`${e}${a}`]=o);for(const[a,o]of r[`${t}A`].entries())a===0||a===12||(n[`${e}${a}A`]=o);return{...n,...Qo({appearance:t,name:e,scale:r})}},ef=e=>{let r={};for(const[t,n]of Object.entries(Pe))r={...r,...Jo({appearance:e?"dark":"light",name:mn(t),scale:n})};return r},rf={dark:{boxShadowCard:`
|
|
14
|
+
0 1px 2px -2px rgba(0,0,0,0.16),
|
|
15
|
+
0 3px 6px 0 rgba(0,0,0,0.12),
|
|
16
|
+
0 5px 12px 4px rgba(0,0,0,0.09)
|
|
17
|
+
`,boxShadowDrawerDown:`
|
|
18
|
+
0 -6px 16px 0 rgba(0,0,0,0.08),
|
|
19
|
+
0 -3px 6px -4px rgba(0,0,0,0.12),
|
|
20
|
+
0 -9px 28px 8px rgba(0,0,0,0.05)
|
|
21
|
+
`,boxShadowDrawerLeft:`
|
|
22
|
+
6px 0 16px 0 rgba(0,0,0,0.08),
|
|
23
|
+
3px 0 6px -4px rgba(0,0,0,0.12),
|
|
24
|
+
9px 0 28px 8px rgba(0,0,0,0.05)
|
|
25
|
+
`,boxShadowDrawerRight:`
|
|
26
|
+
-6px 0 16px 0 rgba(0,0,0,0.08),
|
|
27
|
+
-3px 0 6px -4px rgba(0,0,0,0.12),
|
|
28
|
+
-9px 0 28px 8px rgba(0,0,0,0.05)
|
|
29
|
+
`,boxShadowDrawerUp:`
|
|
30
|
+
0 6px 16px 0 rgba(0,0,0,0.08),
|
|
31
|
+
0 3px 6px -4px rgba(0,0,0,0.12),
|
|
32
|
+
0 9px 28px 8px rgba(0,0,0,0.05)
|
|
33
|
+
`,boxShadowPopoverArrow:"2px 2px 5px rgba(0,0,0,0.05)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0,0,0,0.08)",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0,0,0,0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0,0,0,0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0,0,0,0.08)",colorBgBase:"#000",colorBgBlur:"rgba(255,255,255,0.04)",colorBgSolid:"rgba(255,255,255,0.95)",colorBgSolidActive:"rgba(255,255,255,0.9)",colorBgSolidHover:"rgb(255,255,255)",colorBorderDisabled:"#424242",colorErrorBgActive:"#5b2526",colorErrorBgFilledHover:"#441e1f",colorShadow:"#000",colorTextBase:"#fff",dropShadowPopover:"drop-shadow(0 6px 16px rgba(0,0,0,0.08)) drop-shadow(0 3px 6px rgba(0,0,0,0.12)) drop-shadow(0 9px 28px rgba(0,0,0,0.05))",pink1:"#291321",pink10:"#fad2e3",pink2:"#40162f",pink3:"#551c3b",pink4:"#75204f",pink5:"#a02669",pink6:"#cb2b83",pink7:"#e0529c",pink8:"#f37fb7",pink9:"#f8a8cc",pinkActive:"#e0529c",pinkHover:"#a02669"},light:{boxShadowCard:`
|
|
34
|
+
0 1px 2px -2px rgba(0,0,0,0.16),
|
|
35
|
+
0 3px 6px 0 rgba(0,0,0,0.12),
|
|
36
|
+
0 5px 12px 4px rgba(0,0,0,0.09)
|
|
37
|
+
`,boxShadowDrawerDown:`
|
|
38
|
+
0 -6px 16px 0 rgba(0,0,0,0.08),
|
|
39
|
+
0 -3px 6px -4px rgba(0,0,0,0.12),
|
|
40
|
+
0 -9px 28px 8px rgba(0,0,0,0.05)
|
|
41
|
+
`,boxShadowDrawerLeft:`
|
|
42
|
+
6px 0 16px 0 rgba(0,0,0,0.08),
|
|
43
|
+
3px 0 6px -4px rgba(0,0,0,0.12),
|
|
44
|
+
9px 0 28px 8px rgba(0,0,0,0.05)
|
|
45
|
+
`,boxShadowDrawerRight:`
|
|
46
|
+
-6px 0 16px 0 rgba(0,0,0,0.08),
|
|
47
|
+
-3px 0 6px -4px rgba(0,0,0,0.12),
|
|
48
|
+
-9px 0 28px 8px rgba(0,0,0,0.05)
|
|
49
|
+
`,boxShadowDrawerUp:`
|
|
50
|
+
0 6px 16px 0 rgba(0,0,0,0.08),
|
|
51
|
+
0 3px 6px -4px rgba(0,0,0,0.12),
|
|
52
|
+
0 9px 28px 8px rgba(0,0,0,0.05)
|
|
53
|
+
`,boxShadowPopoverArrow:"2px 2px 5px rgba(0,0,0,0.05)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0,0,0,0.08)",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0,0,0,0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0,0,0,0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0,0,0,0.08)",colorBgBase:"#fff",colorBgBlur:"transparent",colorBgSolid:"rgb(0,0,0)",colorBgSolidActive:"rgba(0,0,0,0.95)",colorBgSolidHover:"rgba(0,0,0,0.75)",colorBorderDisabled:"#d9d9d9",colorErrorBgActive:"#ffccc7",colorErrorBgFilledHover:"#ffdfdc",colorShadow:"#000",colorTextBase:"#000",dropShadowPopover:"drop-shadow(0 6px 16px rgba(0,0,0,0.08)) drop-shadow(0 3px 6px rgba(0,0,0,0.12)) drop-shadow(0 9px 28px rgba(0,0,0,0.05))",pink1:"#fff0f6",pink10:"#520339",pink2:"#ffd6e7",pink3:"#ffadd2",pink4:"#ff85c0",pink5:"#f759ab",pink6:"#eb2f96",pink7:"#c41d7f",pink8:"#9e1068",pink9:"#780650",pinkActive:"#c41d7f",pinkHover:"#f759ab"}},tf={dark:{boxShadow:"0 40px 80px rgba(0, 0, 0, 0.09), 0 20px 40px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.06), 0 5px 10px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03)",boxShadowSecondary:"0 17.5px 23.4px rgba(0, 0, 0, 0.06), 0 9.4px 12.5px rgba(0, 0, 0, 0.05), 0 5.25px 7px rgba(0, 0, 0, 0.03), 0 2.8px 3.7px -2px rgba(0, 0, 0, 0.02), 0 1.2px 1.5px rgba(0, 0, 0, 0.02)",boxShadowTertiary:"0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03)"},light:{boxShadow:"0 40px 80px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.04), 0 5px 10px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.02)",boxShadowSecondary:"0 17.5px 23.4px rgba(0, 0, 0, 0.04), 0 9.4px 12.5px rgba(0, 0, 0, 0.03), 0 5.25px 7px rgba(0, 0, 0, 0.02), 0 2.8px 3.7px -2px rgba(0, 0, 0, 0.01), 0 1.2px 1.5px rgba(0, 0, 0, 0.01)",boxShadowTertiary:"0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02)"}},F0=(e,r,t)=>{const n=xt({appearance:e,scale:r,type:t});return e==="dark"?n:{...n,[`color${t}Text`]:r.light[10]}},nf=(e,r=ve)=>{const t=F0(e,r.error,"Error"),n=F0(e,r.info,"Info"),a=F0(e,r.success,"Success"),o=F0(e,r.warning,"Warning");return{...rf[e],...t,...n,...a,...o,...ef(e==="dark"),...tf[e],colorErrorAffix:t.colorError,colorHighlight:t.colorError,colorLink:n.colorInfoText,colorLinkActive:n.colorInfoTextActive,colorLinkHover:n.colorInfoTextHover,colorWarningAffix:o.colorWarning}},af=e=>Ho(e)?Zo(e):e&&Pe[e]||Bt,of=(e,r)=>{const t=xt({appearance:e,scale:af(r),type:"Primary"});return{...t,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover}},pr=e=>e.map(r=>r.includes(" ")?`"${r}"`:r).join(","),mr=["/* EMOJI */","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],ff=["HarmonyOS Sans","-apple-system","BlinkMacSystemFont","Segoe UI Variable Display","Segoe UI","Roboto","Helvetica Neue","Arial"],xr=["/* SC */","HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei","Source Han Sans SC","Noto Sans CJK SC"],cf={borderRadius:8,borderRadiusLG:12,borderRadiusSM:6,borderRadiusXS:4,controlHeight:36,fontFamily:pr([ff,xr,["/* FALLBACK */","ui-sans-serif","system-ui","sans-serif"],mr].flat()),fontFamilyCode:pr([["Hack","ui-monospace","SFMono-Regular","SF Mono","Menlo","Cascadia Code","Consolas","Liberation Mono"],xr,["/* FALLBACK */","monospace"],mr].flat())},sf={borderRadiusOuter:6,colorTextLightSolid:"#fff",colorWhite:"#fff",controlHeightLG:45,controlHeightSM:27,controlHeightXS:18,controlInteractiveSize:18,controlOutlineWidth:2,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,fontHeight:22,fontHeightLG:24,fontHeightSM:20,fontSize:14,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,fontSizeLG:16,fontSizeSM:12,fontSizeXL:20,fontWeightStrong:600,lineHeight:1.5714285714285714,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineType:"solid",lineWidth:1,lineWidthBold:2,lineWidthFocus:3,linkDecoration:"none",linkFocusDecoration:"none",linkHoverDecoration:"none",margin:16,marginLG:24,marginMD:20,marginSM:12,marginXL:32,marginXS:8,marginXXL:48,marginXXS:4,motionBase:0,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",motionSpringBouncy:"linear(0, 0.024, 0.086, 0.173, 0.274, 0.38, 0.485, 0.584, 0.675, 0.756, 0.825, 0.883, 0.931, 0.968, 0.997, 1.017, 1.031, 1.04, 1.045, 1.046, 1.045, 1.042, 1.038, 1.033, 1.028, 1.023, 1.019, 1.015, 1.011, 1.008, 1.005, 1)",motionSpringSmooth:"linear(0, 0.036, 0.12, 0.225, 0.334, 0.438, 0.533, 0.616, 0.688, 0.748, 0.797, 0.838, 0.872, 0.898, 0.92, 0.937, 0.951, 0.962, 0.97, 0.977, 0.982, 0.986, 0.989, 0.992, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 0.999, 1)",motionSpringSnappy:"linear(0, 0.032, 0.111, 0.216, 0.33, 0.444, 0.552, 0.648, 0.731, 0.801, 0.858, 0.904, 0.939, 0.965, 0.984, 0.998, 1.006, 1.012, 1.014, 1.015, 1.015, 1.014, 1.012, 1.01, 1.009, 1.007, 1.006, 1.004, 1.003, 1.002, 1.002, 1)",motionUnit:.1,opacityImage:1,opacityLoading:.65,padding:16,paddingContentHorizontal:16,paddingContentHorizontalLG:24,paddingContentHorizontalSM:16,paddingContentVertical:12,paddingContentVerticalLG:16,paddingContentVerticalSM:8,paddingLG:24,paddingMD:20,paddingSM:12,paddingXL:32,paddingXS:8,paddingXXS:4,pink:"#EB2F96",screenLG:992,screenLGMax:1199,screenLGMin:992,screenMD:768,screenMDMax:991,screenMDMin:768,screenSM:576,screenSMMax:767,screenSMMin:576,screenXL:1200,screenXLMax:1599,screenXLMin:1200,screenXS:480,screenXSMax:575,screenXSMin:480,screenXXL:1600,screenXXLMax:1919,screenXXLMin:1600,screenXXXL:1920,screenXXXLMin:1920,size:16,sizeLG:24,sizeMD:20,sizeMS:16,sizePopupArrow:16,sizeSM:12,sizeStep:4,sizeUnit:4,sizeXL:32,sizeXS:8,sizeXXL:48,sizeXXS:4,zIndexBase:0,zIndexPopupBase:1e3,...cf},bf=({appearance:e,neutralColor:r,palette:t,primaryColor:n})=>{const a=nf(e,Sn(t));return{neutral:Vo(e,r,a),palette:a,primary:of(e,n),static:sf}},lf=e=>{const r=bf(e);return{...r.static,...r.palette,...r.primary,...r.neutral}};function gf(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function df(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var uf=(function(){function e(t){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(df(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=gf(a);try{o.insertRule(n,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),G="-ms-",J0="-moz-",O="-webkit-",jt="comm",ze="rule",Xe="decl",hf="@import",Ot="@keyframes",pf="@layer",mf=Math.abs,ae=String.fromCharCode,xf=Object.assign;function kf(e,r){return X(e,0)^45?(((r<<2^X(e,0))<<2^X(e,1))<<2^X(e,2))<<2^X(e,3):0}function Rt(e){return e.trim()}function yf(e,r){return(e=r.exec(e))?e[0]:e}function R(e,r,t){return e.replace(r,t)}function _e(e,r){return e.indexOf(r)}function X(e,r){return e.charCodeAt(r)|0}function N0(e,r,t){return e.slice(r,t)}function J(e){return e.length}function Ge(e){return e.length}function D0(e,r){return r.push(e),e}function wf(e,r){return e.map(r).join("")}var oe=1,$0=1,It=0,Y=0,z=0,C0="";function fe(e,r,t,n,a,o,f){return{value:e,root:r,parent:t,type:n,props:a,children:o,line:oe,column:$0,length:f,return:""}}function T0(e,r){return xf(fe("",null,null,"",null,null,0),e,{length:-e.length},r)}function $f(){return z}function Af(){return z=Y>0?X(C0,--Y):0,$0--,z===10&&($0=1,oe--),z}function Z(){return z=Y<It?X(C0,Y++):0,$0++,z===10&&($0=1,oe++),z}function r0(){return X(C0,Y)}function W0(){return Y}function O0(e,r){return N0(C0,e,r)}function j0(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ht(e){return oe=$0=1,It=J(C0=e),Y=0,[]}function Pt(e){return C0="",e}function Y0(e){return Rt(O0(Y-1,Le(e===91?e+2:e===40?e+1:e)))}function vf(e){for(;(z=r0())&&z<33;)Z();return j0(e)>2||j0(z)>3?"":" "}function Sf(e,r){for(;--r&&Z()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return O0(e,W0()+(r<6&&r0()==32&&Z()==32))}function Le(e){for(;Z();)switch(z){case e:return Y;case 34:case 39:e!==34&&e!==39&&Le(z);break;case 40:e===41&&Le(e);break;case 92:Z();break}return Y}function Mf(e,r){for(;Z()&&e+z!==57;)if(e+z===84&&r0()===47)break;return"/*"+O0(r,Y-1)+"*"+ae(e===47?e:Z())}function Cf(e){for(;!j0(r0());)Z();return O0(e,Y)}function _f(e){return Pt(Z0("",null,null,null,[""],e=Ht(e),0,[0],e))}function Z0(e,r,t,n,a,o,f,c,s){for(var i=0,b=0,l=f,g=0,m=0,k=0,y=1,p=1,h=1,A=0,C="",B=a,j=o,N=n,x=C;p;)switch(k=A,A=Z()){case 40:if(k!=108&&X(x,l-1)==58){_e(x+=R(Y0(A),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:x+=Y0(A);break;case 9:case 10:case 13:case 32:x+=vf(k);break;case 92:x+=Sf(W0()-1,7);continue;case 47:switch(r0()){case 42:case 47:D0(Lf(Mf(Z(),W0()),r,t),s);break;default:x+="/"}break;case 123*y:c[i++]=J(x)*h;case 125*y:case 59:case 0:switch(A){case 0:case 125:p=0;case 59+b:h==-1&&(x=R(x,/\f/g,"")),m>0&&J(x)-l&&D0(m>32?yr(x+";",n,t,l-1):yr(R(x," ","")+";",n,t,l-2),s);break;case 59:x+=";";default:if(D0(N=kr(x,r,t,i,b,a,c,C,B=[],j=[],l),o),A===123)if(b===0)Z0(x,r,N,N,B,o,l,c,j);else switch(g===99&&X(x,3)===110?100:g){case 100:case 108:case 109:case 115:Z0(e,N,N,n&&D0(kr(e,N,N,0,0,a,c,C,a,B=[],l),j),a,j,l,c,n?B:j);break;default:Z0(x,N,N,N,[""],j,0,c,j)}}i=b=m=0,y=h=1,C=x="",l=f;break;case 58:l=1+J(x),m=k;default:if(y<1){if(A==123)--y;else if(A==125&&y++==0&&Af()==125)continue}switch(x+=ae(A),A*y){case 38:h=b>0?1:(x+="\f",-1);break;case 44:c[i++]=(J(x)-1)*h,h=1;break;case 64:r0()===45&&(x+=Y0(Z())),g=r0(),b=l=J(C=x+=Cf(W0())),A++;break;case 45:k===45&&J(x)==2&&(y=0)}}return o}function kr(e,r,t,n,a,o,f,c,s,i,b){for(var l=a-1,g=a===0?o:[""],m=Ge(g),k=0,y=0,p=0;k<n;++k)for(var h=0,A=N0(e,l+1,l=mf(y=f[k])),C=e;h<m;++h)(C=Rt(y>0?g[h]+" "+A:R(A,/&\f/g,g[h])))&&(s[p++]=C);return fe(e,r,t,a===0?ze:c,s,i,b)}function Lf(e,r,t){return fe(e,r,t,jt,ae($f()),N0(e,2,-2),0)}function yr(e,r,t,n){return fe(e,r,t,Xe,N0(e,0,n),N0(e,n+1,-1),n)}function k0(e,r){for(var t="",n=Ge(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Ef(e,r,t,n){switch(e.type){case pf:if(e.children.length)break;case hf:case Xe:return e.return=e.return||e.value;case jt:return"";case Ot:return e.return=e.value+"{"+k0(e.children,n)+"}";case ze:e.value=e.props.join(",")}return J(t=k0(e.children,n))?e.return=e.value+"{"+t+"}":""}function Tf(e){var r=Ge(e);return function(t,n,a,o){for(var f="",c=0;c<r;c++)f+=e[c](t,n,a,o)||"";return f}}function Bf(e){return function(r){r.root||(r=r.return)&&e(r)}}function Nf(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var jf=function(r,t,n){for(var a=0,o=0;a=o,o=r0(),a===38&&o===12&&(t[n]=1),!j0(o);)Z();return O0(r,Y)},Of=function(r,t){var n=-1,a=44;do switch(j0(a)){case 0:a===38&&r0()===12&&(t[n]=1),r[n]+=jf(Y-1,t,n);break;case 2:r[n]+=Y0(a);break;case 4:if(a===44){r[++n]=r0()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=ae(a)}while(a=Z());return r},Rf=function(r,t){return Pt(Of(Ht(r),t))},wr=new WeakMap,If=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!wr.get(n))&&!a){wr.set(r,!0);for(var o=[],f=Rf(t,o),c=n.props,s=0,i=0;s<f.length;s++)for(var b=0;b<c.length;b++,i++)r.props[i]=o[s]?f[s].replace(/&\f/g,c[b]):c[b]+" "+f[s]}}},Hf=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function zt(e,r){switch(kf(e,r)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+J0+e+G+e+e;case 6828:case 4268:return O+e+G+e+e;case 6165:return O+e+G+"flex-"+e+e;case 5187:return O+e+R(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+G+"flex-$1$2")+e;case 5443:return O+e+G+"flex-item-"+R(e,/flex-|-self/,"")+e;case 4675:return O+e+G+"flex-line-pack"+R(e,/align-content|flex-|-self/,"")+e;case 5548:return O+e+G+R(e,"shrink","negative")+e;case 5292:return O+e+G+R(e,"basis","preferred-size")+e;case 6060:return O+"box-"+R(e,"-grow","")+O+e+G+R(e,"grow","positive")+e;case 4554:return O+R(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(J(e)-1-r>6)switch(X(e,r+1)){case 109:if(X(e,r+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+J0+(X(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~_e(e,"stretch")?zt(R(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(X(e,r+1)!==115)break;case 6444:switch(X(e,J(e)-3-(~_e(e,"!important")&&10))){case 107:return R(e,":",":"+O)+e;case 101:return R(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(X(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+G+"$2box$3")+e}break;case 5936:switch(X(e,r+11)){case 114:return O+e+G+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+G+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+G+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return O+e+G+e+e}return e}var Pf=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case Xe:r.return=zt(r.value,r.length);break;case Ot:return k0([T0(r,{value:R(r.value,"@","@"+O)})],a);case ze:if(r.length)return wf(r.props,function(o){switch(yf(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return k0([T0(r,{props:[R(o,/:(read-\w+)/,":"+J0+"$1")]})],a);case"::placeholder":return k0([T0(r,{props:[R(o,/:(plac\w+)/,":"+O+"input-$1")]}),T0(r,{props:[R(o,/:(plac\w+)/,":"+J0+"$1")]}),T0(r,{props:[R(o,/:(plac\w+)/,G+"input-$1")]})],a)}return""})}},zf=[Pf],Xf=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var p=y.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=r.stylisPlugins||zf,o={},f,c=[];f=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var p=y.getAttribute("data-emotion").split(" "),h=1;h<p.length;h++)o[p[h]]=!0;c.push(y)});var s,i=[If,Hf];{var b,l=[Ef,Bf(function(y){b.insert(y)})],g=Tf(i.concat(a,l)),m=function(p){return k0(_f(p),g)};s=function(p,h,A,C){b=A,m(p?p+"{"+h.styles+"}":h.styles),C&&(k.inserted[h.name]=!0)}}var k={key:t,sheet:new uf({key:t,container:f,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:o,registered:{},insert:s};return k.sheet.hydrate(c),k};function Gf(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Ff={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Df=/[A-Z]|^ms/g,qf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xt=function(r){return r.charCodeAt(1)===45},$r=function(r){return r!=null&&typeof r!="boolean"},$e=Nf(function(e){return Xt(e)?e:e.replace(Df,"-$&").toLowerCase()}),Ar=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(qf,function(n,a,o){return c0={name:a,styles:o,next:c0},a})}return Ff[r]!==1&&!Xt(r)&&typeof t=="number"&&t!==0?t+"px":t};function ee(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return c0={name:a.name,styles:a.styles,next:c0},a.name;var o=t;if(o.styles!==void 0){var f=o.next;if(f!==void 0)for(;f!==void 0;)c0={name:f.name,styles:f.styles,next:c0},f=f.next;var c=o.styles+";";return c}return Wf(e,r,t)}}var s=t;if(r==null)return s;var i=r[s];return i!==void 0?i:s}function Wf(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=ee(e,r,t[a])+";";else for(var o in t){var f=t[o];if(typeof f!="object"){var c=f;r!=null&&r[c]!==void 0?n+=o+"{"+r[c]+"}":$r(c)&&(n+=$e(o)+":"+Ar(o,c)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(r==null||r[f[0]]===void 0))for(var s=0;s<f.length;s++)$r(f[s])&&(n+=$e(o)+":"+Ar(o,f[s])+";");else{var i=ee(e,r,f);switch(o){case"animation":case"animationName":{n+=$e(o)+":"+i+";";break}default:n+=o+"{"+i+"}"}}}return n}var vr=/label:\s*([^\s;{]+)\s*(;|$)/g,c0;function Ae(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";c0=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=ee(t,r,o);else{var f=o;a+=f[0]}for(var c=1;c<e.length;c++)if(a+=ee(t,r,e[c]),n){var s=o;a+=s[c]}vr.lastIndex=0;for(var i="",b;(b=vr.exec(a))!==null;)i+="-"+b[1];var l=Gf(a)+i;return{name:l,styles:a,next:c0}}function Gt(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var Yf=function(r,t,n){var a=r.key+"-"+t.name;r.registered[a]===void 0&&(r.registered[a]=t.styles)},Zf=function(r,t,n){Yf(r,t);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var o=t;do r.insert(t===o?"."+a:"",o,r.sheet,!0),o=o.next;while(o!==void 0)}};function Sr(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function Mr(e,r,t){var n=[],a=Gt(e,n,t);return n.length<2?t:a+r(n)}var Uf=function(r){var t=Xf(r);t.sheet.speedy=function(c){this.isSpeedy=c},t.compat=!0;var n=function(){for(var s=arguments.length,i=new Array(s),b=0;b<s;b++)i[b]=arguments[b];var l=Ae(i,t.registered,void 0);return Zf(t,l),t.key+"-"+l.name},a=function(){for(var s=arguments.length,i=new Array(s),b=0;b<s;b++)i[b]=arguments[b];var l=Ae(i,t.registered),g="animation-"+l.name;return Sr(t,{name:l.name,styles:"@keyframes "+g+"{"+l.styles+"}"}),g},o=function(){for(var s=arguments.length,i=new Array(s),b=0;b<s;b++)i[b]=arguments[b];var l=Ae(i,t.registered);Sr(t,l)},f=function(){for(var s=arguments.length,i=new Array(s),b=0;b<s;b++)i[b]=arguments[b];return Mr(t.registered,n,Kf(i))};return{css:n,cx:f,injectGlobal:o,keyframes:a,hydrate:function(s){s.forEach(function(i){t.inserted[i]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Gt.bind(null,t.registered),merge:Mr.bind(null,t.registered,n)}},Kf=function e(r){for(var t="",n=0;n<r.length;n++){var a=r[n];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{o="";for(var f in a)a[f]&&f&&(o&&(o+=" "),o+=f)}break}default:o=a}o&&(t&&(t+=" "),t+=o)}}return t};const Vf=new Set(["motionBase","motionUnit"]),Qf=e=>e.replaceAll(/([a-z])([A-Z])/g,"$1-$2").replaceAll(/([a-z])(\d)/g,"$1-$2").replaceAll(/(\d)([A-Z])/g,"$1-$2").replaceAll(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase(),Jf=e=>`--lobe-${Qf(e)}`,Ft=Object.fromEntries(Object.keys(lf({appearance:"light"})).filter(e=>!Vf.has(e)).map(e=>[e,`var(${Jf(e)})`])),Cr=Uf({key:"acss",speedy:!0});Object.assign((e,r)=>{const{inserted:t,key:n,registered:a}=Cr.cache,o=e?new Set([...e.matchAll(new RegExp(`${n}-([\\w-]+)`,"g"))].map(s=>s[1])):void 0,f=Object.keys(t).filter(s=>typeof t[s]=="string"&&(!o||o.has(s)||a[`${n}-${s}`]===void 0)),c=f.map(s=>t[s]).join("");return c?[{css:c,ids:f,key:n,tag:`<style data-emotion="${n} ${f.join(" ")}">${c}</style>`}]:[]},{cache:Cr.cache});/**
|
|
54
|
+
* @license lucide-react v0.469.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/const ec=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Dt=(...e)=>e.filter((r,t,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===t).join(" ").trim();/**
|
|
59
|
+
* @license lucide-react v0.469.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/var rc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
64
|
+
* @license lucide-react v0.469.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const tc=W.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:a="",children:o,iconNode:f,...c},s)=>W.createElement("svg",{ref:s,...rc,width:r,height:r,stroke:e,strokeWidth:n?Number(t)*24/Number(r):t,className:Dt("lucide",a),...c},[...f.map(([i,b])=>W.createElement(i,b)),...Array.isArray(o)?o:[o]]));/**
|
|
69
|
+
* @license lucide-react v0.469.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const nc=(e,r)=>{const t=W.forwardRef(({className:n,...a},o)=>W.createElement(tc,{ref:o,iconNode:r,className:Dt(`lucide-${ec(e)}`,n),...a}));return t.displayName=`${e}`,t};/**
|
|
74
|
+
* @license lucide-react v0.469.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const ac=nc("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]),x0=W.memo(({color:e,size:r=12,...t})=>I.jsx(jr,{color:e||Ft.colorTextDescription,icon:ac,size:r,...t})),oc=W.memo(({shape:e="circle",color:r,background:t,size:n,style:a,iconMultiple:o=.6,iconStyle:f,iconClassName:c})=>I.jsx(Kt,{flex:"none",style:{background:t||Ft.colorFillSecondary,borderRadius:e==="circle"?"50%":Math.floor(n*.1),color:r,height:n,width:n,...a},children:I.jsx(x0,{className:c,color:r,size:n*o,style:f})})),fc=W.memo(({model:e,size:r=12,type:t="avatar",shape:n,...a})=>{var c,s,i,b,l,g,m;const o=W.useMemo(()=>{if(!e)return;const k=e.toLowerCase();for(const y of Vt)if(y.keywords.some(p=>new RegExp(p,"i").test(k)))return y},[e]),f={size:r,...o==null?void 0:o.props,...a};switch(t){case"avatar":return o!=null&&o.Icon?I.jsx(o.Icon.Avatar,{shape:n,...f}):I.jsx(oc,{shape:n,...f});case"mono":return o!=null&&o.Icon?I.jsx(o.Icon,{...f}):I.jsx(x0,{...f});case"color":return o!=null&&o.Icon?(c=o.Icon)!=null&&c.Color?I.jsx(o.Icon.Color,{...f}):I.jsx(o.Icon,{...f}):I.jsx(x0,{...f});case"combine":return o!=null&&o.Icon?(s=o.Icon)!=null&&s.Combine?I.jsx(o.Icon.Combine,{type:"mono",...f}):(i=o.Icon)!=null&&i.Brand?I.jsx(o.Icon.Brand,{...f}):(b=o.Icon)!=null&&b.Text?I.jsx(o.Icon.Text,{...f}):I.jsx(o.Icon,{...f}):I.jsx(x0,{...f});case"combine-color":return o!=null&&o.Icon?(l=o.Icon)!=null&&l.Combine?I.jsx(o.Icon.Combine,{type:"color",...f}):(g=o.Icon)!=null&&g.BrandColor?I.jsx(o.Icon.BrandColor,{...f}):(m=o.Icon)!=null&&m.Text?I.jsx(o.Icon.Text,{...f}):I.jsx(o.Icon,{...f}):I.jsx(x0,{...f});default:return I.jsx(x0,{...f})}});fc.displayName="ModelIcon";export{fc as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as e,bd as o,bF as n,V as i}from"./mermaid.core-DVbCkJL3.js";import{p}from"./cynefin-OW5HDTMX-Oul7bDb8.js";import"./framework-gzBbjyR4.js";import"./purify.es-CAi2OJFm.js";import"./mix-CrMk8dT1.js";import"./isObjectLike-DlmVz5ty.js";var g={parse:e(async r=>{const a=await p("info",r);o.debug(a)},"parse")},d={version:"11.17.2"},v=e(()=>d.version,"getVersion"),m={getVersion:v},c=e((r,a,s)=>{o.debug(`rendering info diagram
|
|
2
|
+
`+r);const t=n(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${s}`)},"draw"),b={draw:c},F={parser:g,db:m,renderer:b};export{F as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function n(t){return typeof t=="object"&&t!==null}export{e as g,n as i};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import{b as o,aq as ot,bq as ut,bF as dt,p as yt,M as pt,Q as ft,bJ as it,an as gt,bH as kt,am as mt,bG as wt,ar as _t,V as bt}from"./mermaid.core-DVbCkJL3.js";import"./framework-gzBbjyR4.js";import"./purify.es-CAi2OJFm.js";import"./mix-CrMk8dT1.js";import"./isObjectLike-DlmVz5ty.js";var tt=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,u,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],u=[],f=[null],n=[],v=this.table,w="",I=0,S=0,L=2,E=1,R=n.slice.call(arguments,1),b=Object.create(this.lexer),C={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(C.yy[W]=this.yy[W]);b.setInput(t,C.yy),C.yy.lexer=b,C.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var T=b.yylloc;n.push(T);var D=b.options&&b.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(P){i.length=i.length-2*P,f.length=f.length-P,n.length=n.length-P}o(j,"popStack");function z(){var P;return P=u.pop()||b.lex()||E,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}o(z,"lex");for(var A,F,B,K,H={},q,V,et,X;;){if(F=i[i.length-1],this.defaultActions[F]?B=this.defaultActions[F]:((A===null||typeof A>"u")&&(A=z()),B=v[F]&&v[F][A]),typeof B>"u"||!B.length||!B[0]){var Q="";X=[];for(q in v[F])this.terminals_[q]&&q>L&&X.push("'"+this.terminals_[q]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
|
|
2
|
+
`+b.showPosition()+`
|
|
3
|
+
Expecting `+X.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(I+1)+": Unexpected "+(A==E?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:T,expected:X})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+A);switch(B[0]){case 1:i.push(A),f.push(b.yytext),n.push(b.yylloc),i.push(B[1]),A=null,S=b.yyleng,w=b.yytext,I=b.yylineno,T=b.yylloc;break;case 2:if(V=this.productions_[B[1]][1],H.$=f[f.length-V],H._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},D&&(H._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(H,[w,S,I,C.yy,B[1],f,n].concat(R)),typeof K<"u")return K;V&&(i=i.slice(0,-1*V*2),f=f.slice(0,-1*V),n=n.slice(0,-1*V)),i.push(this.productions_[B[1]][0]),f.push(H.$),n.push(H._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var M={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
5
|
+
`+s+"^"},"showPosition"),test_match:o(function(t,s){var i,u,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),u=t[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var n in f)this[n]=f[n];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,s,i,u;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),n=0;n<f.length;n++)if(i=this._input.match(this.rules[f[n]]),i&&(!s||i[0].length>s[0].length)){if(s=i,u=n,this.options.backtrack_lexer){if(t=this.test_match(i,f[n]),t!==!1)return t;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(t=this.test_match(s,f[u]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return s||this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:o(function(s){this.begin(s)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(s,i,u,f){switch(u){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return M})();N.lexer=O;function $(){this.yy={}}return o($,"Parser"),$.prototype=N,N.Parser=$,new $})();tt.parser=tt;var xt=tt,Z,vt=(Z=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,pt()}getRoot(){return this.root}addNode(h,r){const a=ft.sanitizeText(r,ot());if(!this.root){this.root={text:a,children:[]},this.stack=[{level:0,node:this.root}],it(a);return}this.baseLevel??(this.baseLevel=h);let l=h-this.baseLevel+1;for(l<=0&&(l=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=l;)this.stack.pop();const y=this.stack[this.stack.length-1].node,p={text:a,children:[]};y.children.push(p),this.stack.push({level:l,node:p})}getAccTitle(){return gt()}setAccTitle(h){kt(h)}getAccDescription(){return mt()}setAccDescription(h){wt(h)}getDiagramTitle(){return _t()}setDiagramTitle(h){it(h)}},o(Z,"IshikawaDB"),Z),St=14,G=250,$t=30,Et=60,At=5,ht=82*Math.PI/180,st=Math.cos(ht),nt=Math.sin(ht),at=o((e,h,r)=>{const a=e.node().getBBox(),l=a.width+h*2,y=a.height+h*2;bt(e,y,l,r),e.attr("viewBox",`${a.x-h} ${a.y-h} ${l} ${y}`)},"applyPaddedViewBox"),It=o((e,h,r,a)=>{var C,W;const y=a.db.getRoot();if(!y)return;const p=ot(),{look:d,handDrawnSeed:m,themeVariables:c}=p,k=ut(p.fontSize)[0]??St,g=d==="handDrawn",_=y.children??[],x=((C=p.ishikawa)==null?void 0:C.diagramPadding)??20,N=((W=p.ishikawa)==null?void 0:W.useMaxWidth)??!1,O=dt(h),$=O.append("g").attr("class","ishikawa"),M=g?yt.svg(O.node()):void 0,t=M?{roughSvg:M,seed:m??0,lineColor:(c==null?void 0:c.lineColor)??"#333",fillColor:(c==null?void 0:c.mainBkg)??"#fff"}:void 0,s=`ishikawa-arrow-${h}`;g||$.append("defs").append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let i=0,u=G;const f=g?void 0:U($,i,u,i,u,"ishikawa-spine");if(Lt($,i,u,y.text,k,t),!_.length){g&&U($,i,u,i,u,"ishikawa-spine",t),at(O,x,N);return}i-=20;const n=_.filter((T,D)=>D%2===0),v=_.filter((T,D)=>D%2===1),w=rt(n),I=rt(v),S=w.total+I.total;let L=G,E=G;if(S>0){const T=G*2,D=G*.3;L=Math.max(D,T*(w.total/S)),E=Math.max(D,T*(I.total/S))}const R=k*2;L=Math.max(L,w.max*R),E=Math.max(E,I.max*R),u=Math.max(L,G),f&&f.attr("y1",u).attr("y2",u),$.select(".ishikawa-head-group").attr("transform",`translate(0,${u})`);const b=Math.ceil(_.length/2);for(let T=0;T<b;T++){const D=$.append("g").attr("class","ishikawa-pair");for(const[j,z,A]of[[_[T*2],-1,L],[_[T*2+1],1,E]])j&&Pt(D,j,i,u,z,A,k,t);i=D.selectAll("text").nodes().reduce((j,z)=>Math.min(j,z.getBBox().x),1/0)}if(g)U($,i,u,0,u,"ishikawa-spine",t);else{f.attr("x1",i);const T=`url(#${s})`;$.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",T)}at(O,x,N)},"draw"),rt=o(e=>{const h=o(r=>r.children.reduce((a,l)=>a+1+h(l),0),"countDescendants");return e.reduce((r,a)=>{const l=h(a);return r.total+=l,r.max=Math.max(r.max,l),r},{total:0,max:0})},"sideStats"),Lt=o((e,h,r,a,l,y)=>{const p=Math.max(6,Math.floor(110/(l*.6))),d=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${h},${r})`),m=Y(d,ct(a,p),0,0,"ishikawa-head-label","start",l),c=m.node().getBBox(),k=Math.max(60,c.width+6),g=Math.max(40,c.height*2+40),_=`M 0 ${-g/2} L 0 ${g/2} Q ${k*2.4} 0 0 ${-g/2} Z`;if(y){const x=y.roughSvg.path(_,{roughness:1.5,seed:y.seed,fill:y.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:y.lineColor,strokeWidth:2});d.insert(()=>x,":first-child").attr("class","ishikawa-head")}else d.insert("path",":first-child").attr("class","ishikawa-head").attr("d",_);m.attr("transform",`translate(${(k-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Tt=o((e,h)=>{const r=[],a=[],l=o((y,p,d)=>{const m=h===-1?[...y].reverse():y;for(const c of m){const k=r.length,g=c.children??[];r.push({depth:d,text:ct(c.text,15),parentIndex:p,childCount:g.length}),d%2===0?(a.push(k),g.length&&l(g,k,d+1)):(g.length&&l(g,k,d+1),a.push(k))}},"walk");return l(e,-1,2),{entries:r,yOrder:a}},"flattenTree"),Mt=o((e,h,r,a,l,y,p)=>{const d=e.append("g").attr("class","ishikawa-label-group"),c=Y(d,h,r,a+11*l,"ishikawa-label cause","middle",y).node().getBBox();if(p){const k=p.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:p.seed,fill:p.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:p.lineColor,strokeWidth:2});d.insert(()=>k,":first-child").attr("class","ishikawa-label-box")}else d.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),J=o((e,h,r,a,l,y)=>{const p=Math.sqrt(a*a+l*l);if(p===0)return;const d=a/p,m=l/p,c=6,k=-m*c,g=d*c,_=h,x=r,N=`M ${_} ${x} L ${_-d*c*2+k} ${x-m*c*2+g} L ${_-d*c*2-k} ${x-m*c*2-g} Z`,O=y.roughSvg.path(N,{roughness:1,seed:y.seed,fill:y.lineColor,fillStyle:"solid",stroke:y.lineColor,strokeWidth:1});e.append(()=>O)},"drawArrowMarker"),Pt=o((e,h,r,a,l,y,p,d)=>{const m=h.children??[],c=y*(m.length?1:.2),k=-st*c,g=nt*c*l,_=r+k,x=a+g;if(U(e,r,a,_,x,"ishikawa-branch",d),d&&J(e,r,a,r-_,a-x,d),Mt(e,h.text,_,x,l,p,d),!m.length)return;const{entries:N,yOrder:O}=Tt(m,l),$=N.length,M=new Array($);for(const[f,n]of O.entries())M[n]=a+g*((f+1)/($+1));const t=new Map;t.set(-1,{x0:r,y0:a,x1:_,y1:x,childCount:m.length,childrenDrawn:0});const s=-st,i=nt*l,u=l<0?"ishikawa-label up":"ishikawa-label down";for(const[f,n]of N.entries()){const v=M[f],w=t.get(n.parentIndex),I=e.append("g").attr("class","ishikawa-sub-group");let S=0,L=0,E=0;if(n.depth%2===0){const R=w.y1-w.y0;S=lt(w.x0,w.x1,R?(v-w.y0)/R:.5),L=v,E=S-(n.childCount>0?Et+n.childCount*At:$t),U(I,S,v,E,v,"ishikawa-sub-branch",d),d&&J(I,S,v,1,0,d),Y(I,n.text,E,v,"ishikawa-label align","end",p)}else{const R=w.childrenDrawn++;S=lt(w.x0,w.x1,(w.childCount-R)/(w.childCount+1)),L=w.y0,E=S+s*((v-L)/i),U(I,S,L,E,v,"ishikawa-sub-branch",d),d&&J(I,S,L,S-E,L-v,d),Y(I,n.text,E,v,u,"end",p)}n.childCount>0&&t.set(f,{x0:S,y0:L,x1:E,y1:v,childCount:n.childCount,childrenDrawn:0})}},"drawBranch"),Bt=o(e=>e.split(/<br\s*\/?>|\n/),"splitLines"),ct=o((e,h)=>{if(e.length<=h)return e;const r=[];for(const a of e.split(/\s+/)){const l=r.length-1;l>=0&&r[l].length+1+a.length<=h?r[l]+=" "+a:r.push(a)}return r.join(`
|
|
7
|
+
`)},"wrapText"),Y=o((e,h,r,a,l,y,p)=>{const d=Bt(h),m=p*1.05,c=e.append("text").attr("class",l).attr("text-anchor",y).attr("x",r).attr("y",a-(d.length-1)*m/2);for(const[k,g]of d.entries())c.append("tspan").attr("x",r).attr("dy",k===0?0:m).text(g);return c},"drawMultilineText"),lt=o((e,h,r)=>e+(h-e)*r,"lerp"),U=o((e,h,r,a,l,y,p)=>{if(p){const d=p.roughSvg.line(h,r,a,l,{roughness:1.5,seed:p.seed,stroke:p.lineColor,strokeWidth:2});e.append(()=>d).attr("class",y);return}return e.append("line").attr("class",y).attr("x1",h).attr("y1",r).attr("x2",a).attr("y2",l)},"drawLine"),Nt={draw:It},Dt=o(e=>`
|
|
8
|
+
.ishikawa .ishikawa-spine,
|
|
9
|
+
.ishikawa .ishikawa-branch,
|
|
10
|
+
.ishikawa .ishikawa-sub-branch {
|
|
11
|
+
stroke: ${e.lineColor};
|
|
12
|
+
stroke-width: 2;
|
|
13
|
+
fill: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ishikawa .ishikawa-sub-branch {
|
|
17
|
+
stroke-width: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ishikawa .ishikawa-arrow {
|
|
21
|
+
fill: ${e.lineColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ishikawa .ishikawa-head {
|
|
25
|
+
fill: ${e.mainBkg};
|
|
26
|
+
stroke: ${e.lineColor};
|
|
27
|
+
stroke-width: 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ishikawa .ishikawa-label-box {
|
|
31
|
+
fill: ${e.mainBkg};
|
|
32
|
+
stroke: ${e.lineColor};
|
|
33
|
+
stroke-width: 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ishikawa text {
|
|
37
|
+
font-family: ${e.fontFamily};
|
|
38
|
+
font-size: ${e.fontSize};
|
|
39
|
+
fill: ${e.textColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ishikawa .ishikawa-head-label {
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
text-anchor: middle;
|
|
45
|
+
dominant-baseline: middle;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ishikawa .ishikawa-label {
|
|
50
|
+
text-anchor: end;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ishikawa .ishikawa-label.cause {
|
|
54
|
+
text-anchor: middle;
|
|
55
|
+
dominant-baseline: middle;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ishikawa .ishikawa-label.align {
|
|
59
|
+
text-anchor: end;
|
|
60
|
+
dominant-baseline: middle;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ishikawa .ishikawa-label.up {
|
|
64
|
+
dominant-baseline: baseline;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ishikawa .ishikawa-label.down {
|
|
68
|
+
dominant-baseline: hanging;
|
|
69
|
+
}
|
|
70
|
+
`,"getStyles"),Ot=Dt,jt={parser:xt,get db(){return new vt},renderer:Nt,styles:Ot};export{jt as diagram};
|