@moonshot-ai/kimi-code 0.34.0 → 0.36.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/dist/main.mjs +92272 -84776
- package/dist/search-worker.mjs +13529 -0
- package/dist-web/assets/{CodeBlockNode-ZZ-0lk3E.js → CodeBlockNode-Do73mQqg.js} +2 -2
- package/dist-web/assets/DesignSystemView-DVONbdv-.css +1 -0
- package/dist-web/assets/DesignSystemView-xF63Uyfo.js +13 -0
- package/dist-web/assets/{Tooltip-CPKMqLZA.js → Tooltip-BCySsRbJ.js} +1 -1
- package/dist-web/assets/{abnfDiagram-VRR7QNED-D_3zPyPt.js → abnfDiagram-VRR7QNED-LUo2ybd4.js} +1 -1
- package/dist-web/assets/{arc-E_7M-TWh.js → arc-HTdwJ95y.js} +1 -1
- package/dist-web/assets/{architectureDiagram-ZJ3FMSHR-CEA-tR1m.js → architectureDiagram-ZJ3FMSHR-BJZpYPA7.js} +1 -1
- package/dist-web/assets/{blockDiagram-677ZJIJ3-CpvS2-LC.js → blockDiagram-677ZJIJ3-CRh0VMzc.js} +1 -1
- package/dist-web/assets/{c4Diagram-LMCZKHZV-BvJQmgsI.js → c4Diagram-LMCZKHZV-0GQGcOcv.js} +1 -1
- package/dist-web/assets/channel-Dk_xUHM6.js +1 -0
- package/dist-web/assets/{chunk-2Q5K7J3B-B47YykJY.js → chunk-2Q5K7J3B-Dntoz8YC.js} +1 -1
- package/dist-web/assets/{chunk-32BRIVSS-DAsxL712.js → chunk-32BRIVSS-DNJ_Bmzz.js} +1 -1
- package/dist-web/assets/{chunk-5VM5RSS4-CfD0Yt-O.js → chunk-5VM5RSS4-CqIxm4fU.js} +1 -1
- package/dist-web/assets/{chunk-EX3LRPZG-DGM3fHaz.js → chunk-EX3LRPZG-6_hx8rcm.js} +1 -1
- package/dist-web/assets/{chunk-JWPE2WC7-DTx-f56M.js → chunk-JWPE2WC7-R8L-LjRL.js} +1 -1
- package/dist-web/assets/{chunk-MOJQB5TN-hIDvr-8C.js → chunk-MOJQB5TN-CuHpGhX-.js} +1 -1
- package/dist-web/assets/{chunk-RYQCIY6F-BHZEnq1y.js → chunk-RYQCIY6F-Dm138b37.js} +1 -1
- package/dist-web/assets/{chunk-V7JOEXUC-DjiRieSh.js → chunk-V7JOEXUC-bFBk02SY.js} +1 -1
- package/dist-web/assets/{chunk-VR4S4FIN-he8WxbY-.js → chunk-VR4S4FIN-Crv01XIW.js} +1 -1
- package/dist-web/assets/{chunk-XXDRQBXY-BmzWd-kT.js → chunk-XXDRQBXY-B7Une-L7.js} +1 -1
- package/dist-web/assets/classDiagram-OUVF2IWQ-DM4TZiKk.js +1 -0
- package/dist-web/assets/classDiagram-v2-EOCWNBFH-DM4TZiKk.js +1 -0
- package/dist-web/assets/{cose-bilkent-JH36ORCC-B4N3AGR7.js → cose-bilkent-JH36ORCC-kIdO2NbL.js} +1 -1
- package/dist-web/assets/{cynefin-VYW2F7L2-C5gNr-Q4.js → cynefin-VYW2F7L2-CD6doQLg.js} +1 -1
- package/dist-web/assets/{cynefinDiagram-TSTJHNR4-DZWywj_D.js → cynefinDiagram-TSTJHNR4-CjIz9kB7.js} +1 -1
- package/dist-web/assets/{dagre-VKFMJZFB-CDFnWuZ_.js → dagre-VKFMJZFB-CxsYi2pz.js} +1 -1
- package/dist-web/assets/{diagram-FQU43EPY-Cqley8W-.js → diagram-FQU43EPY-BxnsH35m.js} +1 -1
- package/dist-web/assets/{diagram-G47NLZAW-jJWknpV7.js → diagram-G47NLZAW-CAmFU1Cj.js} +1 -1
- package/dist-web/assets/{diagram-NH7WQ7WH-iqDRMohg.js → diagram-NH7WQ7WH-Db_YtFB_.js} +1 -1
- package/dist-web/assets/{diagram-OA4YK3LP-DSnuTLFG.js → diagram-OA4YK3LP--Kd1fr8_.js} +1 -1
- package/dist-web/assets/{diagram-WEI45ONY-lGPhYqjp.js → diagram-WEI45ONY-QxbY7aVv.js} +1 -1
- package/dist-web/assets/{ebnfDiagram-CCIWWBDH-DWQayqTx.js → ebnfDiagram-CCIWWBDH-DJR1FAj9.js} +1 -1
- package/dist-web/assets/{erDiagram-Q63AITRT-MX1lpdtV.js → erDiagram-Q63AITRT-CKt0tq4n.js} +1 -1
- package/dist-web/assets/{flowDiagram-23GEKE2U-BJ9xq3_H.js → flowDiagram-23GEKE2U-CB0TxYKC.js} +1 -1
- package/dist-web/assets/{ganttDiagram-NO4QXBWP-UHBCrlBo.js → ganttDiagram-NO4QXBWP-BkswX2CL.js} +1 -1
- package/dist-web/assets/{gitGraphDiagram-IHSO6WYX-BO6zli_L.js → gitGraphDiagram-IHSO6WYX-9OkgrWLV.js} +1 -1
- package/dist-web/assets/{index-B2KLv33G.js → index-B1mxH1U6.js} +1 -1
- package/dist-web/assets/index-Bxn5yOTB.js +638 -0
- package/dist-web/assets/{index-CTjtTfCD.js → index-DCogO9ha.js} +2 -2
- package/dist-web/assets/index-DGHD7Bg9.css +1 -0
- package/dist-web/assets/{index-V37-dq86.js → index-DyqF2DF6.js} +1 -1
- package/dist-web/assets/{index10-BZ-Q5Z-w.js → index10-DKtGUVwa.js} +1 -1
- package/dist-web/assets/{index11-DvlSNaLO.js → index11-TEhD5dop.js} +1 -1
- package/dist-web/assets/{index5-DRizs5us.js → index5-BZK7AFSJ.js} +1 -1
- package/dist-web/assets/{index6-BS7x8iLz.js → index6-CXJ_z4n5.js} +1 -1
- package/dist-web/assets/{index7-CjjTl3F3.js → index7-CG7TPx8g.js} +1 -1
- package/dist-web/assets/{index8-BwJHsPMm.js → index8-B9apTeKj.js} +1 -1
- package/dist-web/assets/{infoDiagram-FWYZ7A6U-D1xLYfmf.js → infoDiagram-FWYZ7A6U-Dpbgmc1e.js} +1 -1
- package/dist-web/assets/{ishikawaDiagram-FXEZZL3T-BpjBlRoK.js → ishikawaDiagram-FXEZZL3T-BA2yx5LI.js} +1 -1
- package/dist-web/assets/{journeyDiagram-5HDEW3XC-DW8NrHP6.js → journeyDiagram-5HDEW3XC-DCwR4Nt_.js} +1 -1
- package/dist-web/assets/{kanban-definition-HUTT4EX6-DBZtJFK7.js → kanban-definition-HUTT4EX6-CArc2b0u.js} +1 -1
- package/dist-web/assets/{linear-DHRafvZW.js → linear-CV4KY8w2.js} +1 -1
- package/dist-web/assets/{mermaid.core-Cahi9cr1.js → mermaid.core-CsZwh_jB.js} +4 -4
- package/dist-web/assets/{mindmap-definition-LN4V7U3C-FiRh3KHx.js → mindmap-definition-LN4V7U3C-Cg1epIhw.js} +1 -1
- package/dist-web/assets/{pegDiagram-2B236MQR-DCy00Y6H.js → pegDiagram-2B236MQR-MoH4JZ6E.js} +1 -1
- package/dist-web/assets/{pieDiagram-ENE6RG2P-D4ADRI8d.js → pieDiagram-ENE6RG2P-8g8etfu6.js} +1 -1
- package/dist-web/assets/{quadrantDiagram-ABIIQ3AL-DM_U-KIt.js → quadrantDiagram-ABIIQ3AL-BxCL4sof.js} +1 -1
- package/dist-web/assets/{railroadDiagram-RFXS5EU6-DemW1ILD.js → railroadDiagram-RFXS5EU6-DS6RTuPq.js} +1 -1
- package/dist-web/assets/{requirementDiagram-TGXJPOKE-CxBcxos4.js → requirementDiagram-TGXJPOKE-Cgysyqsi.js} +1 -1
- package/dist-web/assets/{sankeyDiagram-HTMAVEWB-DQOKpLQv.js → sankeyDiagram-HTMAVEWB-BqJCXBk-.js} +1 -1
- package/dist-web/assets/{sequenceDiagram-DBY2YBRQ-ne5mKmWY.js → sequenceDiagram-DBY2YBRQ-FwgGv3En.js} +1 -1
- package/dist-web/assets/{sizeCapture-X5ZJPWSS-CseHvhng.js → sizeCapture-X5ZJPWSS-CUFKXLd6.js} +1 -1
- package/dist-web/assets/{stateDiagram-2N3HPSRC-wqCW5C6q.js → stateDiagram-2N3HPSRC-CR3yEYk8.js} +1 -1
- package/dist-web/assets/stateDiagram-v2-6OUMAXLB--VVJVX-W.js +1 -0
- package/dist-web/assets/{swimlanes-5IMT3BWC-DIbCJfLo.js → swimlanes-5IMT3BWC-C7_SkVdK.js} +2 -2
- package/dist-web/assets/swimlanesDiagram-G3AALYLV-BWdA3bDm.js +8 -0
- package/dist-web/assets/{timeline-definition-FHXFAJF6-DRuJB2Ns.js → timeline-definition-FHXFAJF6-DlAcudfE.js} +1 -1
- package/dist-web/assets/{vennDiagram-L72KCM5P-DtEwf89X.js → vennDiagram-L72KCM5P-BV2kbjhg.js} +1 -1
- package/dist-web/assets/{vue.runtime.esm-bundler-BX4cWW2k.js → vue.runtime.esm-bundler-D20WEMcO.js} +1 -1
- package/dist-web/assets/{wardleyDiagram-EHGQE667-BQgMNH39.js → wardleyDiagram-EHGQE667-BaiOQb6Q.js} +1 -1
- package/dist-web/assets/{xychartDiagram-FW5EYKEG-DJUplk_O.js → xychartDiagram-FW5EYKEG-BklSkO6g.js} +1 -1
- package/dist-web/boot.js +1 -1
- package/dist-web/index.html +2 -2
- package/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/package.json +10 -10
- package/dist-web/assets/DesignSystemView-BOD_23qT.js +0 -13
- package/dist-web/assets/DesignSystemView-BnL2v2lB.css +0 -1
- package/dist-web/assets/channel-Bob_1R_C.js +0 -1
- package/dist-web/assets/classDiagram-OUVF2IWQ-FzVd5qC_.js +0 -1
- package/dist-web/assets/classDiagram-v2-EOCWNBFH-FzVd5qC_.js +0 -1
- package/dist-web/assets/index-HRJ6xRtC.js +0 -626
- package/dist-web/assets/index-vdPxBs-i.css +0 -1
- package/dist-web/assets/stateDiagram-v2-6OUMAXLB-Dd3wUpwT.js +0 -1
- package/dist-web/assets/swimlanesDiagram-G3AALYLV-DRwlvM9F.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bQ as A,M as H,aU as b,bE as V,az as J,aL as O,s as Q,v as R,I as F,bJ as G,bL as K,aw as L,H as W,bb as Z,bB as ee,g as te,au as le,T as ae,as as B,bR as ne}from"./index-
|
|
1
|
+
import{bQ as A,M as H,aU as b,bE as V,az as J,aL as O,s as Q,v as R,I as F,bJ as G,bL as K,aw as L,H as W,bb as Z,bB as ee,g as te,au as le,T as ae,as as B,bR as ne}from"./index-Bxn5yOTB.js";var k=(h,E,e)=>new Promise((o,p)=>{var i=a=>{try{d(e.next(a))}catch(c){p(c)}},y=a=>{try{d(e.throw(a))}catch(c){p(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,y);d((e=e.apply(h,E)).next())});const oe=["id"],ie=["data-placement"],ue=A(H({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(h){var E;const e=h,o=b(null),p=b(null),i=b({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),y=b({}),d=b((E=e.placement)!=null?E:"top"),a=b(!1);let c=null,$=null,T=null,C=null,w=null,s=0;function X(){return C?Promise.resolve(C):(w||(w=ne(()=>import("./floating-ui.dom-xGUaHE3m.js"),[]).then(l=>(C=l,l)).catch(l=>{throw w=null,l})),w)}function D(){c&&(c(),c=null),$=null,T=null}function P(l){return k(this,null,function*(){const t=e.anchorEl,n=o.value;if(!e.visible||!t||!n||$===t&&T===n)return;const{autoUpdate:r}=yield X();l()&&e.visible&&e.anchorEl===t&&o.value===n&&(D(),$=t,T=n,c=r(t,n,()=>{N().catch(()=>{_()})}))})}function N(){return k(this,null,function*(){var l,t;const n=e.anchorEl,r=o.value;if(!e.visible||!n||!r)return!1;const{arrow:u,computePosition:m,flip:v,offset:f,shift:x}=yield X();if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;const g=[f((l=e.offset)!=null?l:6),v(),x({padding:6}),...p.value?[u({element:p.value,padding:4})]:[]],{x:S,y:j,placement:Y,middlewareData:z}=yield m(n,r,{placement:(t=e.placement)!=null?t:"top",middleware:g,strategy:"fixed"});if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;if(i.value.transform=`translate3d(${Math.round(S)}px, ${Math.round(j)}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=Y,z.arrow&&p.value){const{x:I,y:U}=z.arrow,q={top:"bottom",bottom:"top",left:"right",right:"left"}[Y.split("-")[0]];y.value={left:I!=null?`${I}px`:"",top:U!=null?`${U}px`:"",[q]:"-3px"}}return!0})}function _(){var l,t;const n=e.anchorEl,r=o.value;if(!n||!r)return!1;const u=n.getBoundingClientRect(),m=r.getBoundingClientRect(),v=(l=e.offset)!=null?l:6,f=(t=e.placement)!=null?t:"top";let x=u.left,g=u.top;return f==="bottom"?g=u.bottom+v:f==="left"?x=u.left-m.width-v:f==="right"?x=u.right+v:g=u.top-m.height-v,i.value.transform=`translate3d(${Math.round(Math.max(0,x))}px, ${Math.round(Math.max(0,g))}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=f,y.value={},!0}V(()=>e.visible,l=>k(null,null,function*(){const t=++s;if(l){if(a.value=!1,yield B(),t!==s||!e.visible)return;if(e.anchorEl&&o.value)try{const n=e.anchorEl,r=o.value,u=n.getBoundingClientRect();if(!(yield N())||t!==s||!e.visible||e.anchorEl!==n||o.value!==r)return;const m=i.value.transform;if(e.originX!=null&&e.originY!=null){const v=Math.abs(Number(e.originX)-u.left),f=Math.abs(Number(e.originY)-u.top);if(Math.hypot(v,f)>120){if(i.value.transform=`translate3d(${Math.round(e.originX)}px, ${Math.round(e.originY)}px, 0)`,yield B(),t!==s||!e.visible||(a.value=!0,yield B(),t!==s||!e.visible))return;i.value.transform=m}else a.value=!0}else a.value=!0;yield P(()=>t===s)}catch{if(t!==s||!e.visible)return;if(a.value=_(),e.anchorEl&&o.value)try{yield P(()=>t===s)}catch{}}else a.value=!0}else a.value=!1,D()}));let M=0;return V([()=>e.anchorEl,()=>e.placement,()=>e.content],()=>k(null,null,function*(){const l=++M;if(e.visible&&e.anchorEl&&o.value){if(yield B(),l!==M||!e.visible||!e.anchorEl||!o.value)return;try{const t=yield N();if(l!==M||!e.visible||!e.anchorEl||!o.value)return;t||_()}catch{_()}yield P(()=>l===M)}})),J(()=>{s+=1,D()}),(l,t)=>(O(),Q(ae,{to:"body"},[R("div",{class:le(["markstream-vue",{dark:h.isDark}])},[F(te,{name:"tooltip",appear:""},{default:G(()=>[K(R("div",{id:e.id,ref_key:"tooltip",ref:o,style:L({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform,visibility:a.value?"visible":"hidden",pointerEvents:a.value?void 0:"none"}),class:"tooltip-element",role:"tooltip"},[W(Z(h.content)+" ",1),R("div",{ref_key:"arrowEl",ref:p,class:"tooltip-arrow","data-placement":d.value,style:L(y.value)},null,12,ie)],12,oe),[[ee,h.visible]])]),_:1})],2)]))}}),[["__scopeId","data-v-c606ee4c"]]);export{ue as default};
|
package/dist-web/assets/{abnfDiagram-VRR7QNED-D_3zPyPt.js → abnfDiagram-VRR7QNED-LUo2ybd4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as a}from"./chunk-MOJQB5TN-
|
|
1
|
+
import{g as p,r as u,d as a}from"./chunk-MOJQB5TN-CuHpGhX-.js";import{p as f}from"./chunk-JWPE2WC7-R8L-LjRL.js";import{_ as n,l as o}from"./mermaid.core-CsZwh_jB.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-CD6doQLg.js";import"./index-Bxn5yOTB.js";import"./_commonjsHelpers-CqkleIqs.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},F={parser:R,db:a,renderer:u,styles:p};export{F as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as ln,H as un,I as N,J as I,K as J,L as an,M as y,N as tn,O as j,P as _,Q as rn,R as o,S as on,T as sn,V as fn}from"./mermaid.core-
|
|
1
|
+
import{G as ln,H as un,I as N,J as I,K as J,L as an,M as y,N as tn,O as j,P as _,Q as rn,R as o,S as on,T as sn,V as fn}from"./mermaid.core-CsZwh_jB.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,q,O,v,R,K,u){var D=q-l,i=O-h,n=K-v,d=u-R,a=d*D-n*i;if(!(a*a<y))return a=(n*(h-R)-d*(l-v))/a,[l+a*D,h+a*i]}function W(l,h,q,O,v,R,K){var u=l-q,D=h-O,i=(K?R:-R)/j(u*u+D*D),n=i*D,d=-i*u,a=l+n,s=h+d,f=q+n,c=O+d,L=(a+f)/2,t=(s+c)/2,m=f-a,g=c-s,A=m*m+g*g,T=v-R,P=a*c-f*s,E=(g<0?-1:1)*j(on(0,T*T*A-P*P)),G=(P*g-m*E)/A,H=(-P*m-g*E)/A,w=(P*g+m*E)/A,p=(-P*m+g*E)/A,x=G-L,e=H-t,r=w-L,M=p-t;return x*x+e*e>r*r+M*M&&(G=w,H=p),{cx:G,cy:H,x01:-n,y01:-d,x11:G*(v/T-1),y11:H*(v/T-1)}}function hn(){var l=cn,h=yn,q=J(0),O=null,v=gn,R=dn,K=mn,u=null,D=ln(i);function i(){var n,d,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,L=rn(c-f),t=c>f;if(u||(u=n=D()),s<a&&(d=s,s=a,a=d),!(s>y))u.moveTo(0,0);else if(L>tn-y)u.moveTo(s*N(f),s*I(f)),u.arc(0,0,s,f,c,!t),a>y&&(u.moveTo(a*N(c),a*I(c)),u.arc(0,0,a,c,f,t));else{var m=f,g=c,A=f,T=c,P=L,E=L,G=K.apply(this,arguments)/2,H=G>y&&(O?+O.apply(this,arguments):j(a*a+s*s)),w=_(rn(s-a)/2,+q.apply(this,arguments)),p=w,x=w,e,r;if(H>y){var M=sn(H/a*I(G)),z=sn(H/s*I(G));(P-=M*2)>y?(M*=t?1:-1,A+=M,T-=M):(P=0,A=T=(f+c)/2),(E-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(E=0,m=g=(f+c)/2)}var Q=s*N(m),V=s*I(m),B=a*N(T),C=a*I(T);if(w>y){var F=s*N(g),U=s*I(g),X=a*N(A),Y=a*I(A),S;if(L<un)if(S=pn(Q,V,X,Y,F,U,B,C)){var Z=Q-S[0],$=V-S[1],k=F-S[0],b=U-S[1],nn=1/I(fn((Z*k+$*b)/(j(Z*Z+$*$)*j(k*k+b*b)))/2),en=j(S[0]*S[0]+S[1]*S[1]);p=_(w,(a-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}E>y?x>y?(e=W(X,Y,Q,V,s,x,t),r=W(F,U,B,C,s,x,t),u.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?u.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(u.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),u.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),u.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(u.moveTo(Q,V),u.arc(0,0,s,m,g,!t)):u.moveTo(Q,V),!(a>y)||!(P>y)?u.lineTo(B,C):p>y?(e=W(B,C,F,U,a,-p,t),r=W(Q,V,X,Y,a,-p,t),u.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?u.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(u.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),u.arc(0,0,a,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),u.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):u.arc(0,0,a,T,A,t)}if(u.closePath(),n)return u=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-un/2;return[N(d)*n,I(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:J(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:J(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:J(+n),i):q},i.padRadius=function(n){return arguments.length?(O=n==null?null:typeof n=="function"?n:J(+n),i):O},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:J(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:J(+n),i):R},i.padAngle=function(n){return arguments.length?(K=typeof n=="function"?n:J(+n),i):K},i.context=function(n){return arguments.length?(u=n??null,i):u},i}export{hn as d};
|