@oneworks/client 0.1.0-beta.1 → 0.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ActionSearchToolbar-BqRwfUQY.js → ActionSearchToolbar-DEGf2jhC.js} +1 -1
- package/dist/assets/{AgentRoomRoute-BYgM7vgg.js → AgentRoomRoute-q3zS46Sd.js} +1 -1
- package/dist/assets/{AgentRoomSessionRoute-DdoZY7qL.js → AgentRoomSessionRoute-DjPxv7X5.js} +1 -1
- package/dist/assets/{ArchiveRoute-ydgLUN7p.js → ArchiveRoute-CLIn3VrK.js} +1 -1
- package/dist/assets/{AuthenticatedApp-CK9TT7Nk.js → AuthenticatedApp-CjqSg3Fe.js} +5 -5
- package/dist/assets/{AutomationRoute-CpcRbNa8.js → AutomationRoute-BUkrePKH.js} +1 -1
- package/dist/assets/{BenchmarkRoute-CZRZVolT.js → BenchmarkRoute-CuO0hJBU.js} +1 -1
- package/dist/assets/{ChatRoute-DdRVEkAb.js → ChatRoute-Du5zkaQU.js} +1 -1
- package/dist/assets/{Collapse-CxTS9FJh.js → Collapse-v6rPK_Og.js} +1 -1
- package/dist/assets/{ComposerLanding-BChGuCjF.js → ComposerLanding-Yr0ydPHI.js} +1 -1
- package/dist/assets/{ConfigRoute-D_EkHryB.js → ConfigRoute-C3uzNXG_.js} +1 -1
- package/dist/assets/{InteractionStructureRoute-Dpjr6hIq.js → InteractionStructureRoute-Db6Csunn.js} +1 -1
- package/dist/assets/{KnowledgeRoute-Bp4Da65A.js → KnowledgeRoute-qqkXU5WL.js} +1 -1
- package/dist/assets/{LauncherApp-ByUpDwod.js → LauncherApp-Qvdl-Yj8.js} +2 -2
- package/dist/assets/{LauncherRoute-B94P9m3I.js → LauncherRoute-DZWkoiJw.js} +1 -1
- package/dist/assets/{MobileAwareSelect-CCAQrsxL.js → MobileAwareSelect-C3a67aGF.js} +1 -1
- package/dist/assets/{ModuleManagementRoute-DcrMX6P7.js → ModuleManagementRoute-Cy4wuohf.js} +1 -1
- package/dist/assets/{NotFoundRoute-C1IfsiZY.js → NotFoundRoute-ChcyVvqJ.js} +1 -1
- package/dist/assets/{PluginStoreRoute-7UBLkrWc.js → PluginStoreRoute-DdiK4aa2.js} +1 -1
- package/dist/assets/{RouteContainerPanelTabs-D8pC61tF.js → RouteContainerPanelTabs-jxh2d8jI.js} +1 -1
- package/dist/assets/{SchemaObjectEditor-DvwrURac.js → SchemaObjectEditor-COAQ7p3E.js} +1 -1
- package/dist/assets/{StandaloneMobileDebugRoute--yiQ5EdW.js → StandaloneMobileDebugRoute-CB3AJiyj.js} +1 -1
- package/dist/assets/StandaloneMobileDebugRoute-Cz0tNyI6.css +1 -0
- package/dist/assets/{WorkspaceApp-l-h_IsMp.js → WorkspaceApp-CokR7Tpr.js} +3 -3
- package/dist/assets/{agent-room-session-paths-DNpYqOr3.js → agent-room-session-paths-CDJw-DoF.js} +3 -3
- package/dist/assets/{arc-Xh4h56Fv.js → arc-f6ab2s7J.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-CG3HxYeL.js → blockDiagram-c4efeb88-DuND8Id_.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-DiEPAqCg.js → c4Diagram-c83219d4-CrENVa9z.js} +1 -1
- package/dist/assets/channel-CE7hI28G.js +1 -0
- package/dist/assets/{classDiagram-beda092f-Dwx44PuJ.js → classDiagram-beda092f-DLPG6RB7.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-COXM437u.js → classDiagram-v2-2358418a-BKv3EDtT.js} +1 -1
- package/dist/assets/client-build-info-tgdsIlyX.js +1 -0
- package/dist/assets/clone-Ddl6jS9o.js +1 -0
- package/dist/assets/{createText-1719965b-DPLMqVqY.js → createText-1719965b-NwleWdyg.js} +1 -1
- package/dist/assets/{cssMode-DfDq4hLs.js → cssMode-ww9pyNNv.js} +1 -1
- package/dist/assets/{dockPanelConstants-OzU6hJl5.js → dockPanelConstants-CW3M3t4v.js} +1 -1
- package/dist/assets/{edges-96097737-ry9ejc8v.js → edges-96097737-D8fX9hn5.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-AcCPz3wc.js → erDiagram-0228fc6a-HDOuPZk2.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-BGnBxhJf.js → flowDb-c6c81e3f-CnExuc5d.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-BnS6RFWo.js → flowDiagram-50d868cf-DZV01cOD.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-Tygi-b2q.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-8-ynORZL.js → flowchart-elk-definition-6af322e1-rMtb8Q3Q.js} +1 -1
- package/dist/assets/{freemarker2-uFZBYLEW.js → freemarker2-CtQwsBbf.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-3MEPfmMB.js → ganttDiagram-a2739b55-BPZWVVUB.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-BKYGV9pb.js → gitGraphDiagram-82fe8481-DF7pLuMJ.js} +1 -1
- package/dist/assets/{graph-BEwlNa_j.js → graph-DKmOtEDg.js} +1 -1
- package/dist/assets/{handlebars-dg6IZCa7.js → handlebars-nX8yIw3l.js} +1 -1
- package/dist/assets/{html-KunL9NkW.js → html-CbuZuRXh.js} +1 -1
- package/dist/assets/{htmlMode-CrFpTEpC.js → htmlMode-CJH80z5n.js} +1 -1
- package/dist/assets/{index-5325376f-CCcP_Ahl.js → index-5325376f-DEHuhQF_.js} +1 -1
- package/dist/assets/{index-nXq6jwfM.js → index-CPxqxItX.js} +1 -1
- package/dist/assets/{index-YzfSzOLk.js → index-CqhgNUy-.js} +1 -1
- package/dist/assets/{index-BggFUwYR.js → index-DOj3DlsY.js} +1 -1
- package/dist/assets/{index-DdUqPqXW.js → index-DgZk1SFp.js} +27 -27
- package/dist/assets/{index-DhpAFZQZ.js → index-DnQoX9ZY.js} +1 -1
- package/dist/assets/{index-BIs5hzci.js → index-JwN0oF3c.js} +1 -1
- package/dist/assets/{index-ZOsqqPVv.js → index-aZ1QdVqZ.js} +1 -1
- package/dist/assets/{infoDiagram-8eee0895-BzZ34kgw.js → infoDiagram-8eee0895-CZD8lkRQ.js} +1 -1
- package/dist/assets/interaction-panel-mobile-debug-pages-Bu5Kh4-Z.css +1 -0
- package/dist/assets/interaction-panel-mobile-debug-pages-CT5eb8Gd.js +171 -0
- package/dist/assets/{javascript-DA3fh3oR.js → javascript-CxKLYDBQ.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-B_kSGErn.js → journeyDiagram-c64418c1-BMaEeakR.js} +1 -1
- package/dist/assets/{jsonMode-BDucSIBv.js → jsonMode-DIC-5Lwr.js} +1 -1
- package/dist/assets/{layout-CRLM1T9z.js → layout-Q0dn6j1W.js} +1 -1
- package/dist/assets/{line-Cdyr_7ve.js → line-BqB1JWak.js} +1 -1
- package/dist/assets/{linear-y86GycLK.js → linear-VTwyGoCc.js} +1 -1
- package/dist/assets/{liquid-mJp997il.js → liquid-DNvVNW0k.js} +1 -1
- package/dist/assets/{lspLanguageFeatures-DiGGmudW.js → lspLanguageFeatures-DeOzllRF.js} +1 -1
- package/dist/assets/{mdx-Co6h2mZ2.js → mdx-C98MqvlS.js} +1 -1
- package/dist/assets/{mermaid.core-VYJIZL_J.js → mermaid.core-DBYO3wup.js} +4 -4
- package/dist/assets/{mindmap-definition-8da855dc-DKNG2gyr.js → mindmap-definition-8da855dc-D9C_cL3R.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-Cu3up9mc.js → pieDiagram-a8764435-FVnh07ga.js} +1 -1
- package/dist/assets/{project-file-tree-icons-CfonMx-1.js → project-file-tree-icons-Iz30jDs3.js} +1 -1
- package/dist/assets/{python-BUUKzwmG.js → python-Emg9kCcG.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-DHW8R4el.js → quadrantDiagram-1e28029f-DKEnlnQE.js} +1 -1
- package/dist/assets/{razor-ZPlQfY47.js → razor-BebYpuFx.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-CXWNC-_B.js → requirementDiagram-08caed73-BHVdwyn8.js} +1 -1
- package/dist/assets/{route-plugin-chrome-bV1HEaju.js → route-plugin-chrome-DI32l8cC.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-DhKL8pMH.js → sankeyDiagram-a04cb91d-COhhpvg5.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-D3fAcQeI.js → sequenceDiagram-c5b8d532-CfjihR0y.js} +1 -1
- package/dist/assets/{shortcutUtils-B8h6g_7o.js → shortcutUtils-HFKOHIG8.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-wKQS4LMF.js → stateDiagram-1ecb1508-BjgwBAXi.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-D5qOKtOa.js → stateDiagram-v2-c2b004d7-D3w7Spww.js} +1 -1
- package/dist/assets/{styles-b4e223ce-CpBwPex_.js → styles-b4e223ce-BOAkdyMQ.js} +1 -1
- package/dist/assets/{styles-ca3715f6-4bqpN1KH.js → styles-ca3715f6-CcZFkBde.js} +1 -1
- package/dist/assets/{styles-d45a18b0-B0RCBD5D.js → styles-d45a18b0-HXDBEoho.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-C9KXk4gS.js → svgDrawCommon-b86b1483-CyvFXNjU.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-B1Bfjd0m.js → timeline-definition-faaaa080-CKFw-bXV.js} +1 -1
- package/dist/assets/{tsMode-Bd8BwKXc.js → tsMode-B7ZLt3D7.js} +1 -1
- package/dist/assets/{typescript-CLd6MPK0.js → typescript-BI4b07nJ.js} +1 -1
- package/dist/assets/{use-app-preferences-DGCafwsP.js → use-app-preferences-BZCemhY7.js} +1 -1
- package/dist/assets/{use-chat-session-actions-wF_HiVzj.js → use-chat-session-actions-BNmm_R8s.js} +1 -1
- package/dist/assets/{vendor-state-zjcHRN98.js → vendor-state-Djj0Jjxr.js} +1 -1
- package/dist/assets/{workspace-file-openers-Dj_Cfk1S.js → workspace-file-openers-yFyhcWXX.js} +1 -1
- package/dist/assets/{xml-BeC1cWk3.js → xml--qVpqb-2.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-DbJVUSHy.js → xychartDiagram-f5964ef8-v75Tkx5A.js} +1 -1
- package/dist/assets/{yaml-gQrw9AcN.js → yaml-CkA7Z41y.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +6 -6
- package/dist/assets/StandaloneMobileDebugRoute-DuOLjUb9.css +0 -1
- package/dist/assets/channel-DH-F5Uqk.js +0 -1
- package/dist/assets/client-build-info-6B4KoYHs.js +0 -1
- package/dist/assets/clone-DGri7oGq.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-C3klqpJG.js +0 -1
- package/dist/assets/interaction-panel-mobile-debug-pages-8AAd4Csf.css +0 -1
- package/dist/assets/interaction-panel-mobile-debug-pages-DXC3HSZU.js +0 -113
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as C,u as re,h as et}from"./vendor-react-CnooHTJc.js";import{l as Ne,m as Pe,bA as tt,r as Oe,bf as nt,h as at,j as T,E as je,bz as ot,ad as rt,bi as st,aW as X,e as lt,x as it,aY as te,Q as Ie,aV as ct,a5 as dt,Y as he,aX as Y,b2 as Ae,bG as ut,o as V,a$ as gt,bv as mt,bn as ft,G as vt,B as ht,bT as pt}from"./index-DdUqPqXW.js";import{k as bt,l as yt,m as St,P as Ct,u as Ee,T as xt}from"./MobileAwareSelect-CCAQrsxL.js";import{D as pe,g as wt}from"./shortcutUtils-B8h6g_7o.js";import{i as ne,u as J}from"./vendor-state-zjcHRN98.js";const ae=e=>e?typeof e=="function"?e():e:null,$t=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:a,fontWeightStrong:o,innerPadding:s,boxShadowSecondary:r,colorTextHeading:l,borderRadiusLG:d,zIndexPopup:u,titleMarginBottom:c,colorBgElevated:b,popoverBg:y,titleBorderBottom:f,innerContentPadding:w,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},Oe(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":b,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:d,boxShadow:r,padding:s},[`${t}-title`]:{minWidth:a,marginBottom:c,color:l,fontWeight:o,borderBottom:f,padding:h},[`${t}-inner-content`]:{color:n,padding:w}})},bt(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Rt=e=>{const{componentCls:t}=e;return{[t]:nt.map(n=>{const a=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{backgroundColor:a},[`${t}-arrow`]:{background:"transparent"}}}})}},Mt=e=>{const{lineWidth:t,controlHeight:n,fontHeight:a,padding:o,wireframe:s,zIndexPopupBase:r,borderRadiusLG:l,marginXS:d,lineType:u,colorSplit:c,paddingSM:b}=e,y=n-a,f=y/2,w=y/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:r+30},yt(e)),St({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:s?0:12,titleMarginBottom:s?0:d,titlePadding:s?`${f}px ${h}px ${w}px`:0,titleBorderBottom:s?`${t}px ${u} ${c}`:"none",innerContentPadding:s?`${b}px ${h}px`:0})},Be=Ne("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,a=Pe(e,{popoverBg:t,popoverColor:n});return[$t(a),Rt(a),tt(a,"zoom-big")]},Mt,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Nt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};const _e=({title:e,content:t,prefixCls:n})=>!e&&!t?null:i.createElement(i.Fragment,null,e&&i.createElement("div",{className:`${n}-title`},e),t&&i.createElement("div",{className:`${n}-inner-content`},t)),Pt=e=>{const{hashId:t,prefixCls:n,className:a,style:o,placement:s="top",title:r,content:l,children:d}=e,u=ae(r),c=ae(l),b=T(t,n,`${n}-pure`,`${n}-placement-${s}`,a);return i.createElement("div",{className:b,style:o},i.createElement("div",{className:`${n}-arrow`}),i.createElement(Ct,Object.assign({},e,{className:t,prefixCls:n}),d||i.createElement(_e,{prefixCls:n,title:u,content:c})))},Ot=e=>{const{prefixCls:t,className:n}=e,a=Nt(e,["prefixCls","className"]),{getPrefixCls:o}=i.useContext(at),s=o("popover",t),[r,l,d]=Be(s);return r(i.createElement(Pt,Object.assign({},a,{prefixCls:s,hashId:l,className:T(n,d)})))};var jt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};const It=i.forwardRef((e,t)=>{var n,a;const{prefixCls:o,title:s,content:r,overlayClassName:l,placement:d="top",trigger:u="hover",children:c,mouseEnterDelay:b=.1,mouseLeaveDelay:y=.1,onOpenChange:f,overlayStyle:w={},styles:h,classNames:x}=e,_=jt(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:p,className:m,style:k,classNames:$,styles:j}=je("popover"),g=p("popover",o),[M,L,P]=Be(g),z=p(),D=T(l,L,P,m,$.root,x==null?void 0:x.root),W=T($.body,x==null?void 0:x.body),[v,I]=Ee(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),N=(R,U)=>{I(R,!0),f==null||f(R,U)},A=R=>{R.keyCode===st.ESC&&N(!1,R)},E=R=>{N(R)},F=ae(s),ee=ae(r);return M(i.createElement(xt,Object.assign({placement:d,trigger:u,mouseEnterDelay:b,mouseLeaveDelay:y},_,{prefixCls:g,classNames:{root:D,body:W},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},j.root),k),w),h==null?void 0:h.root),body:Object.assign(Object.assign({},j.body),h==null?void 0:h.body)},ref:t,open:v,onOpenChange:E,overlay:F||ee?i.createElement(_e,{prefixCls:g,title:F,content:ee}):null,transitionName:ot(z,"zoom-big",_.transitionName),"data-popover-inject":!0}),rt(c,{onKeyDown:R=>{var U,q;i.isValidElement(c)&&((q=c==null?void 0:(U=c.props).onKeyDown)===null||q===void 0||q.call(U,R)),A(R)}})))}),At=It;At._InternalPanelDoNotUseOrYouWillBeFired=Ot;var be=function(t,n){if(!t)return null;var a={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:a.top,bottom:a.bottom,height:a.height}:{left:a.left,right:a.right,width:a.width,top:0,bottom:0,height:0}},B=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Et(e){var t=e.prefixCls,n=e.containerRef,a=e.value,o=e.getValueIndex,s=e.motionName,r=e.onMotionStart,l=e.onMotionEnd,d=e.direction,u=e.vertical,c=u===void 0?!1:u,b=i.useRef(null),y=i.useState(a),f=X(y,2),w=f[0],h=f[1],x=function(I){var N,A=o(I),E=(N=n.current)===null||N===void 0?void 0:N.querySelectorAll(".".concat(t,"-item"))[A];return(E==null?void 0:E.offsetParent)&&E},_=i.useState(null),p=X(_,2),m=p[0],k=p[1],$=i.useState(null),j=X($,2),g=j[0],M=j[1];lt(function(){if(w!==a){var v=x(w),I=x(a),N=be(v,c),A=be(I,c);h(a),k(N),M(A),v&&I?r():l()}},[a]);var L=i.useMemo(function(){if(c){var v;return B((v=m==null?void 0:m.top)!==null&&v!==void 0?v:0)}return B(d==="rtl"?-(m==null?void 0:m.right):m==null?void 0:m.left)},[c,d,m]),P=i.useMemo(function(){if(c){var v;return B((v=g==null?void 0:g.top)!==null&&v!==void 0?v:0)}return B(d==="rtl"?-(g==null?void 0:g.right):g==null?void 0:g.left)},[c,d,g]),z=function(){return c?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},D=function(){return c?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},W=function(){k(null),M(null),l()};return!m||!g?null:i.createElement(it,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:z,onAppearActive:D,onVisibleChanged:W},function(v,I){var N=v.className,A=v.style,E=te(te({},A),{},{"--thumb-start-left":L,"--thumb-start-width":B(m==null?void 0:m.width),"--thumb-active-left":P,"--thumb-active-width":B(g==null?void 0:g.width),"--thumb-start-top":L,"--thumb-start-height":B(m==null?void 0:m.height),"--thumb-active-top":P,"--thumb-active-height":B(g==null?void 0:g.height)}),F={ref:Ie(b,I),style:E,className:T("".concat(t,"-thumb"),N)};return i.createElement("div",F)})}var Bt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function _t(e){if(typeof e.title<"u")return e.title;if(Ae(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Lt(e){return e.map(function(t){if(Ae(t)==="object"&&t!==null){var n=_t(t);return te(te({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Tt=function(t){var n=t.prefixCls,a=t.className,o=t.disabled,s=t.checked,r=t.label,l=t.title,d=t.value,u=t.name,c=t.onChange,b=t.onFocus,y=t.onBlur,f=t.onKeyDown,w=t.onKeyUp,h=t.onMouseDown,x=function(p){o||c(p,d)};return i.createElement("label",{className:T(a,Y({},"".concat(n,"-item-disabled"),o)),onMouseDown:h},i.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:s,onChange:x,onFocus:b,onBlur:y,onKeyDown:f,onKeyUp:w}),i.createElement("div",{className:"".concat(n,"-item-label"),title:l},r))},kt=i.forwardRef(function(e,t){var n,a=e.prefixCls,o=a===void 0?"rc-segmented":a,s=e.direction,r=e.vertical,l=e.options,d=l===void 0?[]:l,u=e.disabled,c=e.defaultValue,b=e.value,y=e.name,f=e.onChange,w=e.className,h=w===void 0?"":w,x=e.motionName,_=x===void 0?"thumb-motion":x,p=ct(e,Bt),m=i.useRef(null),k=i.useMemo(function(){return Ie(m,t)},[m,t]),$=i.useMemo(function(){return Lt(d)},[d]),j=Ee((n=$[0])===null||n===void 0?void 0:n.value,{value:b,defaultValue:c}),g=X(j,2),M=g[0],L=g[1],P=i.useState(!1),z=X(P,2),D=z[0],W=z[1],v=function(H,G){L(G),f==null||f(G)},I=dt(p,["children"]),N=i.useState(!1),A=X(N,2),E=A[0],F=A[1],ee=i.useState(!1),R=X(ee,2),U=R[0],q=R[1],qe=function(){q(!0)},Ge=function(){q(!1)},Ke=function(){F(!1)},Ye=function(H){H.key==="Tab"&&F(!0)},fe=function(H){var G=$.findIndex(function(Je){return Je.value===M}),ve=$.length,Qe=(G+H+ve)%ve,ie=$[Qe];ie&&(L(ie.value),f==null||f(ie.value))},Ze=function(H){switch(H.key){case"ArrowLeft":case"ArrowUp":fe(-1);break;case"ArrowRight":case"ArrowDown":fe(1);break}};return i.createElement("div",he({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0,"aria-orientation":r?"vertical":"horizontal"},I,{className:T(o,Y(Y(Y({},"".concat(o,"-rtl"),s==="rtl"),"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),r),h),ref:k}),i.createElement("div",{className:"".concat(o,"-group")},i.createElement(Et,{vertical:r,prefixCls:o,value:M,containerRef:m,motionName:"".concat(o,"-").concat(_),direction:s,getValueIndex:function(H){return $.findIndex(function(G){return G.value===H})},onMotionStart:function(){W(!0)},onMotionEnd:function(){W(!1)}}),$.map(function(S){return i.createElement(Tt,he({},S,{name:y,key:S.value,prefixCls:o,className:T(S.className,"".concat(o,"-item"),Y(Y({},"".concat(o,"-item-selected"),S.value===M&&!D),"".concat(o,"-item-focused"),U&&E&&S.value===M)),checked:S.value===M,onChange:v,onFocus:qe,onBlur:Ge,onKeyDown:Ze,onKeyUp:Ye,onMouseDown:Ke,disabled:!!u||!!S.disabled}))})))}),zt=kt;function ye(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Se(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Dt=Object.assign({overflow:"hidden"},mt),Wt=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oe(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),ut(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${V(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Se(e)),{color:e.itemSelectedColor}),"&-focused":gt(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:V(n),padding:`0 ${V(e.segmentedPaddingHorizontal)}`},Dt),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Se(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${V(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:a,lineHeight:V(a),padding:`0 ${V(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:V(o),padding:`0 ${V(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),ye(`&-disabled ${t}-item`,e)),ye(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},Ht=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:a,colorBgElevated:o,colorFill:s,lineWidthBold:r,colorBgLayout:l}=e;return{trackPadding:r,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:a,itemSelectedBg:o,itemActiveBg:s,itemSelectedColor:n}},Vt=Ne("Segmented",e=>{const{lineWidth:t,calc:n}=e,a=Pe(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return Wt(a)},Ht);var Ce=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};function Ft(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const Xt=i.forwardRef((e,t)=>{const n=ft(),{prefixCls:a,className:o,rootClassName:s,block:r,options:l=[],size:d="middle",style:u,vertical:c,shape:b="default",name:y=n}=e,f=Ce(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:w,direction:h,className:x,style:_}=je("segmented"),p=w("segmented",a),[m,k,$]=Vt(p),j=vt(d),g=i.useMemo(()=>l.map(P=>{if(Ft(P)){const{icon:z,label:D}=P,W=Ce(P,["icon","label"]);return Object.assign(Object.assign({},W),{label:i.createElement(i.Fragment,null,i.createElement("span",{className:`${p}-item-icon`},z),D&&i.createElement("span",null,D))})}return P}),[l,p]),M=T(o,s,x,{[`${p}-block`]:r,[`${p}-sm`]:j==="small",[`${p}-lg`]:j==="large",[`${p}-vertical`]:c,[`${p}-shape-${b}`]:b==="round"},k,$),L=Object.assign(Object.assign({},_),u);return m(i.createElement(zt,Object.assign({},f,{name:y,className:M,style:L,options:g,ref:t,prefixCls:p,direction:h,vertical:c})))}),Mn=Xt;function xe({"aria-hidden":e,"aria-label":t,className:n,filled:a=!1,name:o,role:s,title:r,...l}){const d=["material-symbols-rounded",a?"is-filled filled":"",n].filter(Boolean).join(" "),u=e??(t==null&&s==null&&r==null?!0:void 0);return C.jsx("span",{className:d,role:s,"aria-hidden":u,"aria-label":t,title:r,...l,children:o})}const Le=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&!i.isValidElement(e),Ut=e=>Le(e)&&"active"in e&&"inactive"in e,qt=(e,t)=>{if(e!=null)return Ut(e)?t?e.active:e.inactive:e},Gt=({active:e,className:t,icon:n,materialFilled:a})=>{const o=qt(n,e);if(o==null||typeof o=="boolean")return null;const s=["icon-asset",t].filter(Boolean).join(" ");return typeof o=="string"?C.jsx(xe,{className:s,name:o,filled:a??e}):Le(o)?o.type==="material"?C.jsx(xe,{className:s,name:o.name,filled:o.filled??a??e}):o.type==="svg"?C.jsx("span",{className:[s,"icon-asset--svg"].filter(Boolean).join(" "),role:o.title==null?void 0:"img","aria-label":o.title,"aria-hidden":o.title==null?!0:void 0,dangerouslySetInnerHTML:{__html:o.svg}}):o.type==="image"?C.jsx("img",{className:[s,"icon-asset--image"].filter(Boolean).join(" "),src:o.src,alt:o.alt??"",draggable:!1}):null:o},Nn=e=>{const t=Object.values(e);return t.length===0?null:{actions:t.flatMap(n=>n.actions),hideCreateSessionAction:t.some(n=>n.hideCreateSessionAction===!0),key:t.map(n=>n.key).join("|")}},we=e=>{const t=e.filter(n=>n.node!=null);if(t.length!==0)return t.length===1?t[0].node:t.map(({key:n,node:a})=>C.jsx(i.Fragment,{children:a},n))},Pn=e=>{const t=Object.values(e);return t.length===0?null:{contextMenuSections:t.flatMap(n=>n.contextMenuSections??[]),footerAfter:we(t.map(n=>({key:`${n.key}:after`,node:n.footerAfter}))),footerBefore:we(t.map(n=>({key:`${n.key}:before`,node:n.footerBefore}))),key:t.map(n=>n.key).join("|"),sections:t.flatMap(n=>n.sections),selectedKeys:Array.from(new Set(t.flatMap(n=>n.selectedKeys??[])))}},K=()=>{},Te=i.createContext({clearRouteMoreMenu:K,clearRouteWindowBar:K,clearRouteSidebar:K,hasRouteSidebarProvider:!1,routeMoreMenu:null,routeSidebar:null,routeWindowBar:null,setRouteMoreMenu:K,setRouteSidebar:K,setRouteWindowBar:K}),On=Te.Provider;function ke(){return i.useContext(Te)}const $e="nav-rail-more-dropdown",jn=16,Kt="nav-rail-more-context-dropdown",Yt="nav-rail-more-submenu-dropdown",ze=e=>"type"in e&&e.type==="custom",Zt=(e,t)=>wt(e,t).map(n=>n.value).join(t?"":"+"),Qt=(e,t)=>{const n=Zt(e.shortcut,t);return n===""?e.label:C.jsxs("span",{className:"nav-menu-shortcut-label",children:[C.jsx("span",{className:"nav-menu-shortcut-title",children:e.label}),C.jsx("span",{className:"nav-menu-shortcut",children:n})]})},Jt=e=>{const t=e.active===!0&&e.activeIcon!=null?e.activeIcon:e.icon;if(t!=null)return Gt({active:e.active===!0,className:"nav-menu-icon",icon:t})},De=({closeMenu:e,isMac:t,item:n})=>{var o;if(ze(n))return{className:n.className,key:n.key,label:n.content,onClick:({domEvent:s})=>{var r;(r=n.onClick)==null||r.call(n,s)}};const a=n.children!=null||n.menuChildren!=null;return{children:n.menuChildren??((o=n.children)==null?void 0:o.map(s=>De({closeMenu:e,isMac:t,item:s}))),className:n.className,danger:n.danger,disabled:n.disabled,icon:Jt(n),key:n.key,label:Qt(n,t),popupClassName:a?n.popupClassName??Yt:n.popupClassName,title:n.title,onClick:a?void 0:()=>{var s;e(!1),(s=n.onSelect)==null||s.call(n)}}},en=({closeMenu:e,isMac:t,sections:n})=>n.filter(o=>o.items.length>0).flatMap((o,s)=>{const r=o.items.map(d=>De({closeMenu:e,isMac:t,item:d})),l=o.label==null?r:[{children:r,key:`${o.key}:group`,label:o.label,type:"group"}];return s===0?l:[{key:`${o.key}:divider`,type:"divider"},...l]}),We=e=>e.flatMap(t=>t.items.flatMap(n=>ze(n)?[]:[n.selected===!0?n.key:void 0,...We([{items:n.children??[],key:n.key}])].filter(a=>a!=null)));function In({active:e,buttonIconSrc:t,buttonLabel:n,buttonRef:a,contextMenuItems:o,items:s,open:r,selectedKeys:l,visuallyOpen:d,onOpenChange:u,onSelectItem:c,onTriggerFeedback:b}){const y=C.jsx("span",{className:"material-symbols-rounded nav-menu-submenu-chevron",children:"keyboard_arrow_right"});return C.jsx(pe,{destroyOnHidden:!0,overlayClassName:$e,menu:{expandIcon:y,items:s,onClick:c,selectedKeys:l,triggerSubMenuAction:"click"},open:r,onOpenChange:u,popupRender:o==null||o.length===0?void 0:f=>C.jsx(pe,{overlayClassName:`${$e} ${Kt}`,trigger:["contextMenu"],menu:{expandIcon:y,items:o,triggerSubMenuAction:"click"},children:C.jsx("div",{className:"nav-rail-more-dropdown__context-target",children:f})}),placement:"topLeft",trigger:["click"],transitionName:"ant-slide-down",children:C.jsx(ht,{ref:a,type:"default",className:`nav-rail-more-button ${e?"is-active":"is-idle"}`,"aria-haspopup":"menu","aria-expanded":d,block:!0,onClick:b,children:C.jsxs("span",{className:"nav-rail-more-button__content",children:[C.jsx("img",{className:"nav-rail-vibe-icon nav-rail-vibe-icon--more",src:t,alt:"","aria-hidden":"true"}),C.jsx("span",{children:n})]})})})}const oe=e=>{const t=e==null?void 0:e.trim().replace(/_/g,"-").toLowerCase();if(!(t==null||t===""))return t},tn=(e,t="en")=>{const n=oe(e),a=n==null?void 0:n.split("-")[0],o=a==="zh"?"zh-hans":void 0,s=a==="zh"?"zh-cn":void 0,r=oe(t);return[n,o,s,a,r,"en"].filter((l,d,u)=>l!=null&&u.indexOf(l)===d)},nn=()=>{var e;return(e=globalThis.document)==null?void 0:e.documentElement.lang},an=()=>{var e,t,n;return((t=(e=globalThis.navigator)==null?void 0:e.languages)==null?void 0:t[0])??((n=globalThis.navigator)==null?void 0:n.language)},ce=()=>ne.language??nn()??an()??"en",Z=()=>ne.resolvedLanguage??ce(),Re=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e)},He=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),de=(e,t,n,a={})=>{var r;const o=Object.entries(e).filter(l=>l[1]!==void 0),s=new Map(o.map(([l,d])=>[oe(l),d]).filter(l=>l[0]!=null));for(const l of tn(t,n)){const d=s.get(l);if(d!==void 0)return d}return a.allowAnyFallback===!1||(r=o[0])==null?void 0:r[1]},on=(e,t={})=>e.replace(/\{\{\s*([\w.-]+)\s*\}\}/g,(n,a)=>{const o=t[a];return o==null?"":String(o)}),rn=()=>{const e={get language(){return ce()},get resolvedLanguage(){return Z()},getLanguage:()=>Z(),resolveText:(t,n)=>ue(t,e,{fallback:n})??n??"",select:(t,n)=>de(t,Z(),n),subscribe:t=>{const n=()=>{t({language:ce(),resolvedLanguage:Z()})};return ne.on("languageChanged",n),{dispose:()=>ne.off("languageChanged",n)}},t:(t,n)=>{const a=typeof t=="string"?t:de(t,Z(),"en")??"";return on(a,n)}};return e};function ue(e,t,n={}){const a=Re(e);if(a!=null)return a;if(!He(e))return n.fallback;const o=Object.entries(e).map(([r,l])=>[oe(r),Re(l)]).filter(r=>r[0]!=null&&r[1]!=null);if(o.length===0)return n.fallback;const s=typeof t=="string"?t:t.resolvedLanguage;return de(Object.fromEntries(o),s,n.fallbackLanguage,{allowAnyFallback:n.allowAnyFallback})??n.fallback}const O=(e,t,n)=>{const a=(s,r)=>ue(s,n,r),o=a(e[`${t}I18n`],{allowAnyFallback:!1,fallbackLanguage:"en"});if(o!=null)return o;if(He(e.i18n)){const s=a(Object.fromEntries(Object.entries(e.i18n).map(([r,l])=>[r,l!=null&&typeof l=="object"&&!Array.isArray(l)?l[t]:void 0])),{allowAnyFallback:!1,fallbackLanguage:"en"});if(s!=null)return s}return a(e[t])},Me=(e,t,n)=>O(e,t,n),sn=(e,t)=>{const n=e,a=Me(n,"title",t),o=Me(n,"description",t);return a==null&&o==null?e:{...e,...a==null?{}:{title:a},...o==null?{}:{description:o}}},Ve=i.createContext(null),An=()=>{const e=i.useContext(Ve);if(e==null)throw new Error("PluginProvider is missing");return e},Fe=()=>i.useContext(Ve),ln=[];function se(e){const{i18n:t}=J(),n=Fe(),a=(n==null?void 0:n.snapshot.slots[e])??ln,o=t.resolvedLanguage??t.language;return i.useMemo(()=>{const s=rn();return a.map(r=>sn(r,s))},[a,o])}function me(){const e=Fe(),t=e==null?void 0:e.registry;return i.useMemo(()=>t==null?void 0:t.executeCommand.bind(t),[t])}const cn=e=>[e.targetRoute,...e.targetRoutes??[]].filter(t=>typeof t=="string"&&t.trim()!==""),dn={config:["settings"],settings:["config"]},un="/ui",Q=e=>{let t=e.trim();if(t==="")return"/";for(t.startsWith("/")||(t=`/${t}`);t.length>1&&t.endsWith("/");)t=t.slice(0,-1);return t},gn=e=>new Set([e,...dn[e]??[]]),ge=e=>{const t=Q(e),n=Q(pt()),a=Array.from(new Set([n,Q(un)])).filter(s=>s!=="/"),o=new Set([t]);for(const s of a)t===s?o.add("/"):t.startsWith(`${s}/`)?o.add(Q(t.slice(s.length))):o.add(Q(`${s}${t==="/"?"":t}`));return o},mn=(e,t)=>{if(!e.startsWith("/"))return!1;if(e.endsWith("/*")){const a=ge(e.slice(0,-2));return[...t].some(o=>[...a].some(s=>o===s||o.startsWith(`${s}/`)))}return[...ge(e)].some(a=>t.has(a))},En=O,le=({contribution:e,pathname:t,routeKey:n})=>{const a=cn(e);if(a.length===0)return!0;const o=gn(n),s=ge(t);return a.some(r=>o.has(r)?!0:mn(r,s))},Xe=e=>typeof e.command=="string"&&e.command.trim()!=="";function fn(e){const{i18n:t}=J(),n=re(),a=me(),o=se("route.header.actions"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>o.filter(r=>le({contribution:r,pathname:n.pathname,routeKey:e})&&Xe(r)).map(r=>{const l=O(r,"title",s)??r.title,d=O(r,"description",s)??l;return{active:r.active,activeIcon:r.activeIcon,activeLabel:r.activeLabel,activeTitle:r.activeTitle,danger:r.danger,disabled:r.disabled,icon:r.icon??"extension",key:`plugin:${r.pluginScope}:${r.id}`,label:l,shortcut:r.shortcut,title:d,onSelect:()=>{a==null||a(r.pluginScope,r.command)}}}),[o,a,s,n.pathname,e])}function vn(e){const{i18n:t}=J(),n=re(),a=me(),o=se("route.windowBar.actions"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>o.filter(r=>le({contribution:r,pathname:n.pathname,routeKey:e})&&Xe(r)).map(r=>{const l=O(r,"title",s)??r.title,d=O(r,"description",s)??l;return{active:r.active,activeIcon:r.activeIcon,activeLabel:r.activeLabel,activeTitle:r.activeTitle,danger:r.danger,disabled:r.disabled,icon:r.icon??"extension",key:`plugin:${r.pluginScope}:${r.id}`,label:l,shortcut:r.shortcut,title:d,onSelect:()=>{a==null||a(r.pluginScope,r.command)}}}),[o,a,s,n.pathname,e])}function Ue(){const e=et(),t=me();return i.useCallback((n,a)=>{if(n.command!=null&&n.command.trim()!==""){t==null||t(n.pluginScope,n.command,a);return}if(n.route!=null&&n.route.trim()!==""){e(n.route);return}n.href!=null&&n.href.trim()!==""&&window.open(n.href,"_blank","noopener,noreferrer")},[t,e])}const hn=({contributions:e,isMac:t,language:n,pathname:a,routeKey:o,target:s,onRun:r})=>{const l=s==null?void 0:{kind:"routeSidebarContextMenu",pathname:a,routeKey:o,target:s},d=e.filter(c=>le({contribution:c,pathname:a,routeKey:o})).map(c=>({active:c.active,activeIcon:c.activeIcon,danger:c.danger,disabled:c.disabled,icon:c.icon??"extension",key:`plugin:${c.pluginScope}:${c.id}`,label:O(c,"title",n)??c.title,selected:c.selected,shortcut:c.shortcut,title:O(c,"description",n)??O(c,"title",n)??c.title,onSelect:()=>r(c,l)}));if(d.length===0)return[];const u=[{items:d,key:`route-plugin-sidebar-context:${o}`}];return{items:en({closeMenu:()=>{},isMac:t,sections:u})??[],selectedKeys:We(u)}};function pn(e){const{i18n:t}=J(),n=re(),a=Ue(),o=se("route.moreMenu.items"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>{const r=o.filter(l=>le({contribution:l,pathname:n.pathname,routeKey:e})).map(l=>{const d=O(l,"title",s)??l.title,u=O(l,"description",s)??d;return{active:l.active,activeIcon:l.activeIcon,danger:l.danger,disabled:l.disabled,icon:l.icon??"extension",key:`plugin:${l.pluginScope}:${l.id}`,label:d,selected:l.selected,shortcut:l.shortcut,title:u,onSelect:()=>a(l)}});return r.length===0?[]:[{items:r,key:`route-plugin-more:${e}`}]},[o,s,n.pathname,e,a])}function bn(e){const{i18n:t}=J(),n=re(),a=Ue(),o=se("route.sidebar.contextMenu"),s=t.resolvedLanguage??t.language,r=typeof navigator<"u"&&/mac/i.test(navigator.platform);return i.useMemo(()=>l=>hn({contributions:o,isMac:r,language:s,pathname:n.pathname,routeKey:e,target:l,onRun:a}),[o,r,s,n.pathname,e,a])}function yn(e){const{clearRouteMoreMenu:t,hasRouteSidebarProvider:n,setRouteMoreMenu:a}=ke(),o=pn(e);i.useEffect(()=>{const s=`route-plugin-more:${e}`;if(!n||o.length===0){t(s);return}return a({key:s,sections:o}),()=>t(s)},[t,n,e,o,a])}function Sn(e){const{clearRouteWindowBar:t,hasRouteSidebarProvider:n,setRouteWindowBar:a}=ke(),o=vn(e);i.useEffect(()=>{const s=`route-plugin-window-bar:${e}`;if(!n||o.length===0){t(s);return}return a({actions:o,key:s}),()=>t(s)},[o,t,n,e,a])}function Bn(e){const t=fn(e),n=bn(e);return yn(e),Sn(e),i.useMemo(()=>({headerActions:t,sidebarContextMenuItems:n}),[t,n])}export{xe as M,jn as N,At as P,On as R,Mn as S,Ot as a,se as b,me as c,O as d,en as e,We as f,ae as g,In as h,ke as i,Pn as j,rn as k,Ve as l,Nn as m,An as n,Bn as o,fn as p,yn as q,Gt as r,Sn as s,En as t,vn as u,$e as v};
|
|
1
|
+
import{r as i,j as C,u as re,h as et}from"./vendor-react-CnooHTJc.js";import{l as Ne,m as Pe,bA as tt,r as Oe,bf as nt,h as at,j as T,E as je,bz as ot,ad as rt,bi as st,aW as X,e as lt,x as it,aY as te,Q as Ie,aV as ct,a5 as dt,Y as he,aX as Y,b2 as Ae,bG as ut,o as V,a$ as gt,bv as mt,bn as ft,G as vt,B as ht,bT as pt}from"./index-DgZk1SFp.js";import{k as bt,l as yt,m as St,P as Ct,u as Ee,T as xt}from"./MobileAwareSelect-C3a67aGF.js";import{D as pe,g as wt}from"./shortcutUtils-HFKOHIG8.js";import{i as ne,u as J}from"./vendor-state-Djj0Jjxr.js";const ae=e=>e?typeof e=="function"?e():e:null,$t=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:a,fontWeightStrong:o,innerPadding:s,boxShadowSecondary:r,colorTextHeading:l,borderRadiusLG:d,zIndexPopup:u,titleMarginBottom:c,colorBgElevated:b,popoverBg:y,titleBorderBottom:f,innerContentPadding:w,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},Oe(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":b,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:d,boxShadow:r,padding:s},[`${t}-title`]:{minWidth:a,marginBottom:c,color:l,fontWeight:o,borderBottom:f,padding:h},[`${t}-inner-content`]:{color:n,padding:w}})},bt(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Rt=e=>{const{componentCls:t}=e;return{[t]:nt.map(n=>{const a=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{backgroundColor:a},[`${t}-arrow`]:{background:"transparent"}}}})}},Mt=e=>{const{lineWidth:t,controlHeight:n,fontHeight:a,padding:o,wireframe:s,zIndexPopupBase:r,borderRadiusLG:l,marginXS:d,lineType:u,colorSplit:c,paddingSM:b}=e,y=n-a,f=y/2,w=y/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:r+30},yt(e)),St({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:s?0:12,titleMarginBottom:s?0:d,titlePadding:s?`${f}px ${h}px ${w}px`:0,titleBorderBottom:s?`${t}px ${u} ${c}`:"none",innerContentPadding:s?`${b}px ${h}px`:0})},Be=Ne("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,a=Pe(e,{popoverBg:t,popoverColor:n});return[$t(a),Rt(a),tt(a,"zoom-big")]},Mt,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Nt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};const _e=({title:e,content:t,prefixCls:n})=>!e&&!t?null:i.createElement(i.Fragment,null,e&&i.createElement("div",{className:`${n}-title`},e),t&&i.createElement("div",{className:`${n}-inner-content`},t)),Pt=e=>{const{hashId:t,prefixCls:n,className:a,style:o,placement:s="top",title:r,content:l,children:d}=e,u=ae(r),c=ae(l),b=T(t,n,`${n}-pure`,`${n}-placement-${s}`,a);return i.createElement("div",{className:b,style:o},i.createElement("div",{className:`${n}-arrow`}),i.createElement(Ct,Object.assign({},e,{className:t,prefixCls:n}),d||i.createElement(_e,{prefixCls:n,title:u,content:c})))},Ot=e=>{const{prefixCls:t,className:n}=e,a=Nt(e,["prefixCls","className"]),{getPrefixCls:o}=i.useContext(at),s=o("popover",t),[r,l,d]=Be(s);return r(i.createElement(Pt,Object.assign({},a,{prefixCls:s,hashId:l,className:T(n,d)})))};var jt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};const It=i.forwardRef((e,t)=>{var n,a;const{prefixCls:o,title:s,content:r,overlayClassName:l,placement:d="top",trigger:u="hover",children:c,mouseEnterDelay:b=.1,mouseLeaveDelay:y=.1,onOpenChange:f,overlayStyle:w={},styles:h,classNames:x}=e,_=jt(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:p,className:m,style:k,classNames:$,styles:j}=je("popover"),g=p("popover",o),[M,L,P]=Be(g),z=p(),D=T(l,L,P,m,$.root,x==null?void 0:x.root),W=T($.body,x==null?void 0:x.body),[v,I]=Ee(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),N=(R,U)=>{I(R,!0),f==null||f(R,U)},A=R=>{R.keyCode===st.ESC&&N(!1,R)},E=R=>{N(R)},F=ae(s),ee=ae(r);return M(i.createElement(xt,Object.assign({placement:d,trigger:u,mouseEnterDelay:b,mouseLeaveDelay:y},_,{prefixCls:g,classNames:{root:D,body:W},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},j.root),k),w),h==null?void 0:h.root),body:Object.assign(Object.assign({},j.body),h==null?void 0:h.body)},ref:t,open:v,onOpenChange:E,overlay:F||ee?i.createElement(_e,{prefixCls:g,title:F,content:ee}):null,transitionName:ot(z,"zoom-big",_.transitionName),"data-popover-inject":!0}),rt(c,{onKeyDown:R=>{var U,q;i.isValidElement(c)&&((q=c==null?void 0:(U=c.props).onKeyDown)===null||q===void 0||q.call(U,R)),A(R)}})))}),At=It;At._InternalPanelDoNotUseOrYouWillBeFired=Ot;var be=function(t,n){if(!t)return null;var a={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:a.top,bottom:a.bottom,height:a.height}:{left:a.left,right:a.right,width:a.width,top:0,bottom:0,height:0}},B=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Et(e){var t=e.prefixCls,n=e.containerRef,a=e.value,o=e.getValueIndex,s=e.motionName,r=e.onMotionStart,l=e.onMotionEnd,d=e.direction,u=e.vertical,c=u===void 0?!1:u,b=i.useRef(null),y=i.useState(a),f=X(y,2),w=f[0],h=f[1],x=function(I){var N,A=o(I),E=(N=n.current)===null||N===void 0?void 0:N.querySelectorAll(".".concat(t,"-item"))[A];return(E==null?void 0:E.offsetParent)&&E},_=i.useState(null),p=X(_,2),m=p[0],k=p[1],$=i.useState(null),j=X($,2),g=j[0],M=j[1];lt(function(){if(w!==a){var v=x(w),I=x(a),N=be(v,c),A=be(I,c);h(a),k(N),M(A),v&&I?r():l()}},[a]);var L=i.useMemo(function(){if(c){var v;return B((v=m==null?void 0:m.top)!==null&&v!==void 0?v:0)}return B(d==="rtl"?-(m==null?void 0:m.right):m==null?void 0:m.left)},[c,d,m]),P=i.useMemo(function(){if(c){var v;return B((v=g==null?void 0:g.top)!==null&&v!==void 0?v:0)}return B(d==="rtl"?-(g==null?void 0:g.right):g==null?void 0:g.left)},[c,d,g]),z=function(){return c?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},D=function(){return c?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},W=function(){k(null),M(null),l()};return!m||!g?null:i.createElement(it,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:z,onAppearActive:D,onVisibleChanged:W},function(v,I){var N=v.className,A=v.style,E=te(te({},A),{},{"--thumb-start-left":L,"--thumb-start-width":B(m==null?void 0:m.width),"--thumb-active-left":P,"--thumb-active-width":B(g==null?void 0:g.width),"--thumb-start-top":L,"--thumb-start-height":B(m==null?void 0:m.height),"--thumb-active-top":P,"--thumb-active-height":B(g==null?void 0:g.height)}),F={ref:Ie(b,I),style:E,className:T("".concat(t,"-thumb"),N)};return i.createElement("div",F)})}var Bt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function _t(e){if(typeof e.title<"u")return e.title;if(Ae(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Lt(e){return e.map(function(t){if(Ae(t)==="object"&&t!==null){var n=_t(t);return te(te({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Tt=function(t){var n=t.prefixCls,a=t.className,o=t.disabled,s=t.checked,r=t.label,l=t.title,d=t.value,u=t.name,c=t.onChange,b=t.onFocus,y=t.onBlur,f=t.onKeyDown,w=t.onKeyUp,h=t.onMouseDown,x=function(p){o||c(p,d)};return i.createElement("label",{className:T(a,Y({},"".concat(n,"-item-disabled"),o)),onMouseDown:h},i.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:s,onChange:x,onFocus:b,onBlur:y,onKeyDown:f,onKeyUp:w}),i.createElement("div",{className:"".concat(n,"-item-label"),title:l},r))},kt=i.forwardRef(function(e,t){var n,a=e.prefixCls,o=a===void 0?"rc-segmented":a,s=e.direction,r=e.vertical,l=e.options,d=l===void 0?[]:l,u=e.disabled,c=e.defaultValue,b=e.value,y=e.name,f=e.onChange,w=e.className,h=w===void 0?"":w,x=e.motionName,_=x===void 0?"thumb-motion":x,p=ct(e,Bt),m=i.useRef(null),k=i.useMemo(function(){return Ie(m,t)},[m,t]),$=i.useMemo(function(){return Lt(d)},[d]),j=Ee((n=$[0])===null||n===void 0?void 0:n.value,{value:b,defaultValue:c}),g=X(j,2),M=g[0],L=g[1],P=i.useState(!1),z=X(P,2),D=z[0],W=z[1],v=function(H,G){L(G),f==null||f(G)},I=dt(p,["children"]),N=i.useState(!1),A=X(N,2),E=A[0],F=A[1],ee=i.useState(!1),R=X(ee,2),U=R[0],q=R[1],qe=function(){q(!0)},Ge=function(){q(!1)},Ke=function(){F(!1)},Ye=function(H){H.key==="Tab"&&F(!0)},fe=function(H){var G=$.findIndex(function(Je){return Je.value===M}),ve=$.length,Qe=(G+H+ve)%ve,ie=$[Qe];ie&&(L(ie.value),f==null||f(ie.value))},Ze=function(H){switch(H.key){case"ArrowLeft":case"ArrowUp":fe(-1);break;case"ArrowRight":case"ArrowDown":fe(1);break}};return i.createElement("div",he({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0,"aria-orientation":r?"vertical":"horizontal"},I,{className:T(o,Y(Y(Y({},"".concat(o,"-rtl"),s==="rtl"),"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),r),h),ref:k}),i.createElement("div",{className:"".concat(o,"-group")},i.createElement(Et,{vertical:r,prefixCls:o,value:M,containerRef:m,motionName:"".concat(o,"-").concat(_),direction:s,getValueIndex:function(H){return $.findIndex(function(G){return G.value===H})},onMotionStart:function(){W(!0)},onMotionEnd:function(){W(!1)}}),$.map(function(S){return i.createElement(Tt,he({},S,{name:y,key:S.value,prefixCls:o,className:T(S.className,"".concat(o,"-item"),Y(Y({},"".concat(o,"-item-selected"),S.value===M&&!D),"".concat(o,"-item-focused"),U&&E&&S.value===M)),checked:S.value===M,onChange:v,onFocus:qe,onBlur:Ge,onKeyDown:Ze,onKeyUp:Ye,onMouseDown:Ke,disabled:!!u||!!S.disabled}))})))}),zt=kt;function ye(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Se(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Dt=Object.assign({overflow:"hidden"},mt),Wt=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oe(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),ut(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${V(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Se(e)),{color:e.itemSelectedColor}),"&-focused":gt(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:V(n),padding:`0 ${V(e.segmentedPaddingHorizontal)}`},Dt),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Se(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${V(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:a,lineHeight:V(a),padding:`0 ${V(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:V(o),padding:`0 ${V(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),ye(`&-disabled ${t}-item`,e)),ye(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},Ht=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:a,colorBgElevated:o,colorFill:s,lineWidthBold:r,colorBgLayout:l}=e;return{trackPadding:r,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:a,itemSelectedBg:o,itemActiveBg:s,itemSelectedColor:n}},Vt=Ne("Segmented",e=>{const{lineWidth:t,calc:n}=e,a=Pe(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return Wt(a)},Ht);var Ce=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};function Ft(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const Xt=i.forwardRef((e,t)=>{const n=ft(),{prefixCls:a,className:o,rootClassName:s,block:r,options:l=[],size:d="middle",style:u,vertical:c,shape:b="default",name:y=n}=e,f=Ce(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:w,direction:h,className:x,style:_}=je("segmented"),p=w("segmented",a),[m,k,$]=Vt(p),j=vt(d),g=i.useMemo(()=>l.map(P=>{if(Ft(P)){const{icon:z,label:D}=P,W=Ce(P,["icon","label"]);return Object.assign(Object.assign({},W),{label:i.createElement(i.Fragment,null,i.createElement("span",{className:`${p}-item-icon`},z),D&&i.createElement("span",null,D))})}return P}),[l,p]),M=T(o,s,x,{[`${p}-block`]:r,[`${p}-sm`]:j==="small",[`${p}-lg`]:j==="large",[`${p}-vertical`]:c,[`${p}-shape-${b}`]:b==="round"},k,$),L=Object.assign(Object.assign({},_),u);return m(i.createElement(zt,Object.assign({},f,{name:y,className:M,style:L,options:g,ref:t,prefixCls:p,direction:h,vertical:c})))}),Mn=Xt;function xe({"aria-hidden":e,"aria-label":t,className:n,filled:a=!1,name:o,role:s,title:r,...l}){const d=["material-symbols-rounded",a?"is-filled filled":"",n].filter(Boolean).join(" "),u=e??(t==null&&s==null&&r==null?!0:void 0);return C.jsx("span",{className:d,role:s,"aria-hidden":u,"aria-label":t,title:r,...l,children:o})}const Le=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&!i.isValidElement(e),Ut=e=>Le(e)&&"active"in e&&"inactive"in e,qt=(e,t)=>{if(e!=null)return Ut(e)?t?e.active:e.inactive:e},Gt=({active:e,className:t,icon:n,materialFilled:a})=>{const o=qt(n,e);if(o==null||typeof o=="boolean")return null;const s=["icon-asset",t].filter(Boolean).join(" ");return typeof o=="string"?C.jsx(xe,{className:s,name:o,filled:a??e}):Le(o)?o.type==="material"?C.jsx(xe,{className:s,name:o.name,filled:o.filled??a??e}):o.type==="svg"?C.jsx("span",{className:[s,"icon-asset--svg"].filter(Boolean).join(" "),role:o.title==null?void 0:"img","aria-label":o.title,"aria-hidden":o.title==null?!0:void 0,dangerouslySetInnerHTML:{__html:o.svg}}):o.type==="image"?C.jsx("img",{className:[s,"icon-asset--image"].filter(Boolean).join(" "),src:o.src,alt:o.alt??"",draggable:!1}):null:o},Nn=e=>{const t=Object.values(e);return t.length===0?null:{actions:t.flatMap(n=>n.actions),hideCreateSessionAction:t.some(n=>n.hideCreateSessionAction===!0),key:t.map(n=>n.key).join("|")}},we=e=>{const t=e.filter(n=>n.node!=null);if(t.length!==0)return t.length===1?t[0].node:t.map(({key:n,node:a})=>C.jsx(i.Fragment,{children:a},n))},Pn=e=>{const t=Object.values(e);return t.length===0?null:{contextMenuSections:t.flatMap(n=>n.contextMenuSections??[]),footerAfter:we(t.map(n=>({key:`${n.key}:after`,node:n.footerAfter}))),footerBefore:we(t.map(n=>({key:`${n.key}:before`,node:n.footerBefore}))),key:t.map(n=>n.key).join("|"),sections:t.flatMap(n=>n.sections),selectedKeys:Array.from(new Set(t.flatMap(n=>n.selectedKeys??[])))}},K=()=>{},Te=i.createContext({clearRouteMoreMenu:K,clearRouteWindowBar:K,clearRouteSidebar:K,hasRouteSidebarProvider:!1,routeMoreMenu:null,routeSidebar:null,routeWindowBar:null,setRouteMoreMenu:K,setRouteSidebar:K,setRouteWindowBar:K}),On=Te.Provider;function ke(){return i.useContext(Te)}const $e="nav-rail-more-dropdown",jn=16,Kt="nav-rail-more-context-dropdown",Yt="nav-rail-more-submenu-dropdown",ze=e=>"type"in e&&e.type==="custom",Zt=(e,t)=>wt(e,t).map(n=>n.value).join(t?"":"+"),Qt=(e,t)=>{const n=Zt(e.shortcut,t);return n===""?e.label:C.jsxs("span",{className:"nav-menu-shortcut-label",children:[C.jsx("span",{className:"nav-menu-shortcut-title",children:e.label}),C.jsx("span",{className:"nav-menu-shortcut",children:n})]})},Jt=e=>{const t=e.active===!0&&e.activeIcon!=null?e.activeIcon:e.icon;if(t!=null)return Gt({active:e.active===!0,className:"nav-menu-icon",icon:t})},De=({closeMenu:e,isMac:t,item:n})=>{var o;if(ze(n))return{className:n.className,key:n.key,label:n.content,onClick:({domEvent:s})=>{var r;(r=n.onClick)==null||r.call(n,s)}};const a=n.children!=null||n.menuChildren!=null;return{children:n.menuChildren??((o=n.children)==null?void 0:o.map(s=>De({closeMenu:e,isMac:t,item:s}))),className:n.className,danger:n.danger,disabled:n.disabled,icon:Jt(n),key:n.key,label:Qt(n,t),popupClassName:a?n.popupClassName??Yt:n.popupClassName,title:n.title,onClick:a?void 0:()=>{var s;e(!1),(s=n.onSelect)==null||s.call(n)}}},en=({closeMenu:e,isMac:t,sections:n})=>n.filter(o=>o.items.length>0).flatMap((o,s)=>{const r=o.items.map(d=>De({closeMenu:e,isMac:t,item:d})),l=o.label==null?r:[{children:r,key:`${o.key}:group`,label:o.label,type:"group"}];return s===0?l:[{key:`${o.key}:divider`,type:"divider"},...l]}),We=e=>e.flatMap(t=>t.items.flatMap(n=>ze(n)?[]:[n.selected===!0?n.key:void 0,...We([{items:n.children??[],key:n.key}])].filter(a=>a!=null)));function In({active:e,buttonIconSrc:t,buttonLabel:n,buttonRef:a,contextMenuItems:o,items:s,open:r,selectedKeys:l,visuallyOpen:d,onOpenChange:u,onSelectItem:c,onTriggerFeedback:b}){const y=C.jsx("span",{className:"material-symbols-rounded nav-menu-submenu-chevron",children:"keyboard_arrow_right"});return C.jsx(pe,{destroyOnHidden:!0,overlayClassName:$e,menu:{expandIcon:y,items:s,onClick:c,selectedKeys:l,triggerSubMenuAction:"click"},open:r,onOpenChange:u,popupRender:o==null||o.length===0?void 0:f=>C.jsx(pe,{overlayClassName:`${$e} ${Kt}`,trigger:["contextMenu"],menu:{expandIcon:y,items:o,triggerSubMenuAction:"click"},children:C.jsx("div",{className:"nav-rail-more-dropdown__context-target",children:f})}),placement:"topLeft",trigger:["click"],transitionName:"ant-slide-down",children:C.jsx(ht,{ref:a,type:"default",className:`nav-rail-more-button ${e?"is-active":"is-idle"}`,"aria-haspopup":"menu","aria-expanded":d,block:!0,onClick:b,children:C.jsxs("span",{className:"nav-rail-more-button__content",children:[C.jsx("img",{className:"nav-rail-vibe-icon nav-rail-vibe-icon--more",src:t,alt:"","aria-hidden":"true"}),C.jsx("span",{children:n})]})})})}const oe=e=>{const t=e==null?void 0:e.trim().replace(/_/g,"-").toLowerCase();if(!(t==null||t===""))return t},tn=(e,t="en")=>{const n=oe(e),a=n==null?void 0:n.split("-")[0],o=a==="zh"?"zh-hans":void 0,s=a==="zh"?"zh-cn":void 0,r=oe(t);return[n,o,s,a,r,"en"].filter((l,d,u)=>l!=null&&u.indexOf(l)===d)},nn=()=>{var e;return(e=globalThis.document)==null?void 0:e.documentElement.lang},an=()=>{var e,t,n;return((t=(e=globalThis.navigator)==null?void 0:e.languages)==null?void 0:t[0])??((n=globalThis.navigator)==null?void 0:n.language)},ce=()=>ne.language??nn()??an()??"en",Z=()=>ne.resolvedLanguage??ce(),Re=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e)},He=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),de=(e,t,n,a={})=>{var r;const o=Object.entries(e).filter(l=>l[1]!==void 0),s=new Map(o.map(([l,d])=>[oe(l),d]).filter(l=>l[0]!=null));for(const l of tn(t,n)){const d=s.get(l);if(d!==void 0)return d}return a.allowAnyFallback===!1||(r=o[0])==null?void 0:r[1]},on=(e,t={})=>e.replace(/\{\{\s*([\w.-]+)\s*\}\}/g,(n,a)=>{const o=t[a];return o==null?"":String(o)}),rn=()=>{const e={get language(){return ce()},get resolvedLanguage(){return Z()},getLanguage:()=>Z(),resolveText:(t,n)=>ue(t,e,{fallback:n})??n??"",select:(t,n)=>de(t,Z(),n),subscribe:t=>{const n=()=>{t({language:ce(),resolvedLanguage:Z()})};return ne.on("languageChanged",n),{dispose:()=>ne.off("languageChanged",n)}},t:(t,n)=>{const a=typeof t=="string"?t:de(t,Z(),"en")??"";return on(a,n)}};return e};function ue(e,t,n={}){const a=Re(e);if(a!=null)return a;if(!He(e))return n.fallback;const o=Object.entries(e).map(([r,l])=>[oe(r),Re(l)]).filter(r=>r[0]!=null&&r[1]!=null);if(o.length===0)return n.fallback;const s=typeof t=="string"?t:t.resolvedLanguage;return de(Object.fromEntries(o),s,n.fallbackLanguage,{allowAnyFallback:n.allowAnyFallback})??n.fallback}const O=(e,t,n)=>{const a=(s,r)=>ue(s,n,r),o=a(e[`${t}I18n`],{allowAnyFallback:!1,fallbackLanguage:"en"});if(o!=null)return o;if(He(e.i18n)){const s=a(Object.fromEntries(Object.entries(e.i18n).map(([r,l])=>[r,l!=null&&typeof l=="object"&&!Array.isArray(l)?l[t]:void 0])),{allowAnyFallback:!1,fallbackLanguage:"en"});if(s!=null)return s}return a(e[t])},Me=(e,t,n)=>O(e,t,n),sn=(e,t)=>{const n=e,a=Me(n,"title",t),o=Me(n,"description",t);return a==null&&o==null?e:{...e,...a==null?{}:{title:a},...o==null?{}:{description:o}}},Ve=i.createContext(null),An=()=>{const e=i.useContext(Ve);if(e==null)throw new Error("PluginProvider is missing");return e},Fe=()=>i.useContext(Ve),ln=[];function se(e){const{i18n:t}=J(),n=Fe(),a=(n==null?void 0:n.snapshot.slots[e])??ln,o=t.resolvedLanguage??t.language;return i.useMemo(()=>{const s=rn();return a.map(r=>sn(r,s))},[a,o])}function me(){const e=Fe(),t=e==null?void 0:e.registry;return i.useMemo(()=>t==null?void 0:t.executeCommand.bind(t),[t])}const cn=e=>[e.targetRoute,...e.targetRoutes??[]].filter(t=>typeof t=="string"&&t.trim()!==""),dn={config:["settings"],settings:["config"]},un="/ui",Q=e=>{let t=e.trim();if(t==="")return"/";for(t.startsWith("/")||(t=`/${t}`);t.length>1&&t.endsWith("/");)t=t.slice(0,-1);return t},gn=e=>new Set([e,...dn[e]??[]]),ge=e=>{const t=Q(e),n=Q(pt()),a=Array.from(new Set([n,Q(un)])).filter(s=>s!=="/"),o=new Set([t]);for(const s of a)t===s?o.add("/"):t.startsWith(`${s}/`)?o.add(Q(t.slice(s.length))):o.add(Q(`${s}${t==="/"?"":t}`));return o},mn=(e,t)=>{if(!e.startsWith("/"))return!1;if(e.endsWith("/*")){const a=ge(e.slice(0,-2));return[...t].some(o=>[...a].some(s=>o===s||o.startsWith(`${s}/`)))}return[...ge(e)].some(a=>t.has(a))},En=O,le=({contribution:e,pathname:t,routeKey:n})=>{const a=cn(e);if(a.length===0)return!0;const o=gn(n),s=ge(t);return a.some(r=>o.has(r)?!0:mn(r,s))},Xe=e=>typeof e.command=="string"&&e.command.trim()!=="";function fn(e){const{i18n:t}=J(),n=re(),a=me(),o=se("route.header.actions"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>o.filter(r=>le({contribution:r,pathname:n.pathname,routeKey:e})&&Xe(r)).map(r=>{const l=O(r,"title",s)??r.title,d=O(r,"description",s)??l;return{active:r.active,activeIcon:r.activeIcon,activeLabel:r.activeLabel,activeTitle:r.activeTitle,danger:r.danger,disabled:r.disabled,icon:r.icon??"extension",key:`plugin:${r.pluginScope}:${r.id}`,label:l,shortcut:r.shortcut,title:d,onSelect:()=>{a==null||a(r.pluginScope,r.command)}}}),[o,a,s,n.pathname,e])}function vn(e){const{i18n:t}=J(),n=re(),a=me(),o=se("route.windowBar.actions"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>o.filter(r=>le({contribution:r,pathname:n.pathname,routeKey:e})&&Xe(r)).map(r=>{const l=O(r,"title",s)??r.title,d=O(r,"description",s)??l;return{active:r.active,activeIcon:r.activeIcon,activeLabel:r.activeLabel,activeTitle:r.activeTitle,danger:r.danger,disabled:r.disabled,icon:r.icon??"extension",key:`plugin:${r.pluginScope}:${r.id}`,label:l,shortcut:r.shortcut,title:d,onSelect:()=>{a==null||a(r.pluginScope,r.command)}}}),[o,a,s,n.pathname,e])}function Ue(){const e=et(),t=me();return i.useCallback((n,a)=>{if(n.command!=null&&n.command.trim()!==""){t==null||t(n.pluginScope,n.command,a);return}if(n.route!=null&&n.route.trim()!==""){e(n.route);return}n.href!=null&&n.href.trim()!==""&&window.open(n.href,"_blank","noopener,noreferrer")},[t,e])}const hn=({contributions:e,isMac:t,language:n,pathname:a,routeKey:o,target:s,onRun:r})=>{const l=s==null?void 0:{kind:"routeSidebarContextMenu",pathname:a,routeKey:o,target:s},d=e.filter(c=>le({contribution:c,pathname:a,routeKey:o})).map(c=>({active:c.active,activeIcon:c.activeIcon,danger:c.danger,disabled:c.disabled,icon:c.icon??"extension",key:`plugin:${c.pluginScope}:${c.id}`,label:O(c,"title",n)??c.title,selected:c.selected,shortcut:c.shortcut,title:O(c,"description",n)??O(c,"title",n)??c.title,onSelect:()=>r(c,l)}));if(d.length===0)return[];const u=[{items:d,key:`route-plugin-sidebar-context:${o}`}];return{items:en({closeMenu:()=>{},isMac:t,sections:u})??[],selectedKeys:We(u)}};function pn(e){const{i18n:t}=J(),n=re(),a=Ue(),o=se("route.moreMenu.items"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>{const r=o.filter(l=>le({contribution:l,pathname:n.pathname,routeKey:e})).map(l=>{const d=O(l,"title",s)??l.title,u=O(l,"description",s)??d;return{active:l.active,activeIcon:l.activeIcon,danger:l.danger,disabled:l.disabled,icon:l.icon??"extension",key:`plugin:${l.pluginScope}:${l.id}`,label:d,selected:l.selected,shortcut:l.shortcut,title:u,onSelect:()=>a(l)}});return r.length===0?[]:[{items:r,key:`route-plugin-more:${e}`}]},[o,s,n.pathname,e,a])}function bn(e){const{i18n:t}=J(),n=re(),a=Ue(),o=se("route.sidebar.contextMenu"),s=t.resolvedLanguage??t.language,r=typeof navigator<"u"&&/mac/i.test(navigator.platform);return i.useMemo(()=>l=>hn({contributions:o,isMac:r,language:s,pathname:n.pathname,routeKey:e,target:l,onRun:a}),[o,r,s,n.pathname,e,a])}function yn(e){const{clearRouteMoreMenu:t,hasRouteSidebarProvider:n,setRouteMoreMenu:a}=ke(),o=pn(e);i.useEffect(()=>{const s=`route-plugin-more:${e}`;if(!n||o.length===0){t(s);return}return a({key:s,sections:o}),()=>t(s)},[t,n,e,o,a])}function Sn(e){const{clearRouteWindowBar:t,hasRouteSidebarProvider:n,setRouteWindowBar:a}=ke(),o=vn(e);i.useEffect(()=>{const s=`route-plugin-window-bar:${e}`;if(!n||o.length===0){t(s);return}return a({actions:o,key:s}),()=>t(s)},[o,t,n,e,a])}function Bn(e){const t=fn(e),n=bn(e);return yn(e),Sn(e),i.useMemo(()=>({headerActions:t,sidebarContextMenuItems:n}),[t,n])}export{xe as M,jn as N,At as P,On as R,Mn as S,Ot as a,se as b,me as c,O as d,en as e,We as f,ae as g,In as h,ke as i,Pn as j,rn as k,Ve as l,Nn as m,An as n,Bn as o,fn as p,yn as q,Gt as r,Sn as s,En as t,vn as u,$e as v};
|
package/dist/assets/{sankeyDiagram-a04cb91d-DhKL8pMH.js → sankeyDiagram-a04cb91d-COhhpvg5.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as mt,v as kt,s as _t,a as xt,c as vt,b as bt,g as rt,y as wt,d as G,p as St,z as Lt,k as Et}from"./mermaid.core-VYJIZL_J.js";import"./AuthenticatedApp-CK9TT7Nk.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./index-DdUqPqXW.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-zjcHRN98.js";import"./MobileAwareSelect-CCAQrsxL.js";import"./use-app-preferences-DGCafwsP.js";import"./route-plugin-chrome-bV1HEaju.js";import"./shortcutUtils-B8h6g_7o.js";import"./project-file-tree-icons-CfonMx-1.js";import"./WorkspaceApp-l-h_IsMp.js";import"./index-ZOsqqPVv.js";import"./client-build-info-6B4KoYHs.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Pt(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Ct(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function zt(){let t=0,n=0,s=1,a=1,u=24,_=8,p,g=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(g=typeof e=="function"?e:Y(e),x):g},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=p=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[g(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,l=>(a-n-(l.length-1)*p)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+p)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}$(l)}}function S(e){const f=I(e);p=Math.min(_,(a-n)/(ot(f,l=>l.length)-1)),z(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);O(f,h,r),M(f,h,r)}}function M(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,j=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=T(W,v)*F,j+=F}if(!(j>0))continue;let U=(R/j-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),P(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,j=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,j+=F}if(!(j>0))continue;let U=(R/j-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),P(k,l)}}function P(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-p,l-1,f),C(e,h.y1+p,l+1,f),d(e,a,e.length-1,f),C(e,n,0,f)}function C(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*p/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+p}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+p}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,jt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new nt}nt.prototype=pt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,p=this._y1,g=s-t,i=a-n,o=_-t,c=p-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*g-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-p,x=g*g+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,z=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*g)+","+(this._y1=n+z*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var p=s*Math.cos(a),g=s*Math.sin(a),i=t+p,o=n+g,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>jt?this._+="A"+s+","+s+",0,1,"+c+","+(t-p)+","+(n-g)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function p(){var g,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=g=pt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),g)return _=null,g+""||null}return p.source=function(g){return arguments.length?(n=g,p):n},p.target=function(g){return arguments.length?(s=g,p):s},p.x=function(g){return arguments.length?(a=typeof g=="function"?g:ht(+g),p):a},p.y=function(g){return arguments.length?(u=typeof g=="function"?g:ht(+g),p):u},p.context=function(g){return arguments.length?(_=g??null,p):_},p}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(g,i,o,c){for(o=o||{},c=g.length;c--;o[g[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var P=S.yylloc;y.push(P);var C=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
|
|
1
|
+
import{x as mt,v as kt,s as _t,a as xt,c as vt,b as bt,g as rt,y as wt,d as G,p as St,z as Lt,k as Et}from"./mermaid.core-DBYO3wup.js";import"./AuthenticatedApp-CjqSg3Fe.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./index-DgZk1SFp.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-Djj0Jjxr.js";import"./MobileAwareSelect-C3a67aGF.js";import"./use-app-preferences-BZCemhY7.js";import"./route-plugin-chrome-DI32l8cC.js";import"./shortcutUtils-HFKOHIG8.js";import"./project-file-tree-icons-Iz30jDs3.js";import"./WorkspaceApp-CokR7Tpr.js";import"./index-aZ1QdVqZ.js";import"./client-build-info-tgdsIlyX.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Pt(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Ct(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function zt(){let t=0,n=0,s=1,a=1,u=24,_=8,p,g=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(g=typeof e=="function"?e:Y(e),x):g},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=p=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[g(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,l=>(a-n-(l.length-1)*p)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+p)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}$(l)}}function S(e){const f=I(e);p=Math.min(_,(a-n)/(ot(f,l=>l.length)-1)),z(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);O(f,h,r),M(f,h,r)}}function M(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,j=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=T(W,v)*F,j+=F}if(!(j>0))continue;let U=(R/j-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),P(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,j=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,j+=F}if(!(j>0))continue;let U=(R/j-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),P(k,l)}}function P(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-p,l-1,f),C(e,h.y1+p,l+1,f),d(e,a,e.length-1,f),C(e,n,0,f)}function C(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*p/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+p}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+p}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,jt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new nt}nt.prototype=pt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,p=this._y1,g=s-t,i=a-n,o=_-t,c=p-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*g-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-p,x=g*g+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,z=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*g)+","+(this._y1=n+z*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var p=s*Math.cos(a),g=s*Math.sin(a),i=t+p,o=n+g,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>jt?this._+="A"+s+","+s+",0,1,"+c+","+(t-p)+","+(n-g)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function p(){var g,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=g=pt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),g)return _=null,g+""||null}return p.source=function(g){return arguments.length?(n=g,p):n},p.target=function(g){return arguments.length?(s=g,p):s},p.x=function(g){return arguments.length?(a=typeof g=="function"?g:ht(+g),p):a},p.y=function(g){return arguments.length?(u=typeof g=="function"?g:ht(+g),p):u},p.context=function(g){return arguments.length?(_=g??null,p):_},p}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(g,i,o,c){for(o=o||{},c=g.length;c--;o[g[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var P=S.yylloc;y.push(P);var C=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:P,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,P=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},C&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(z)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=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),c.length-1&&(this.yylineno-=c.length-1);var b=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:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
package/dist/assets/{sequenceDiagram-c5b8d532-D3fAcQeI.js → sequenceDiagram-c5b8d532-CfjihR0y.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as we,s as ve,c as $t,g as st,x as _e,v as ke,b as Pe,d as Lt,l as X,j as te,e as Le,f as Ie,k as v,i as At,z as Ae,A as B,aZ as nt,a_ as wt,aK as ee,a$ as Ne,u as se,ap as Bt}from"./mermaid.core-VYJIZL_J.js";import{a as Se,b as zt,d as Me,g as Nt,c as Re,e as Ce}from"./svgDrawCommon-b86b1483-C9KXk4gS.js";import"./AuthenticatedApp-CK9TT7Nk.js";import"./index-DdUqPqXW.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-zjcHRN98.js";import"./MobileAwareSelect-CCAQrsxL.js";import"./use-app-preferences-DGCafwsP.js";import"./route-plugin-chrome-bV1HEaju.js";import"./shortcutUtils-B8h6g_7o.js";import"./project-file-tree-icons-CfonMx-1.js";import"./WorkspaceApp-l-h_IsMp.js";import"./index-ZOsqqPVv.js";import"./client-build-info-6B4KoYHs.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],o=[1,3],s=[1,4],i=[2,4],a=[1,9],c=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],K=[1,38],F=[1,39],W=[1,41],Z=[1,42],U=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:c,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:K,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:K,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:K,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
|
|
1
|
+
import{a as we,s as ve,c as $t,g as st,x as _e,v as ke,b as Pe,d as Lt,l as X,j as te,e as Le,f as Ie,k as v,i as At,z as Ae,A as B,aZ as nt,a_ as wt,aK as ee,a$ as Ne,u as se,ap as Bt}from"./mermaid.core-DBYO3wup.js";import{a as Se,b as zt,d as Me,g as Nt,c as Re,e as Ce}from"./svgDrawCommon-b86b1483-CyvFXNjU.js";import"./AuthenticatedApp-CjqSg3Fe.js";import"./index-DgZk1SFp.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-Djj0Jjxr.js";import"./MobileAwareSelect-C3a67aGF.js";import"./use-app-preferences-BZCemhY7.js";import"./route-plugin-chrome-DI32l8cC.js";import"./shortcutUtils-HFKOHIG8.js";import"./project-file-tree-icons-Iz30jDs3.js";import"./WorkspaceApp-CokR7Tpr.js";import"./index-aZ1QdVqZ.js";import"./client-build-info-tgdsIlyX.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],o=[1,3],s=[1,4],i=[2,4],a=[1,9],c=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],K=[1,38],F=[1,39],W=[1,41],Z=[1,42],U=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:c,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:K,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:K,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{4:a,5:c,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:K,53:F,54:W,59:Z,60:U,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:K,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
|
|
2
2
|
`+Y.showPosition()+`
|
|
3
3
|
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Ot="Parse error on line "+(_t+1)+": Unexpected "+(G==Jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Ot,{text:Y.match,token:this.terminals_[G]||G,line:Y.yylineno,loc:Dt,expected:Pt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ut+", token: "+G);switch(et[0]){case 1:L.push(G),M.push(Y.yytext),h.push(Y.yylloc),L.push(et[1]),G=null,Xt=Y.yyleng,d=Y.yytext,_t=Y.yylineno,Dt=Y.yylloc;break;case 2:if(ct=this.productions_[et[1]][1],yt.$=M[M.length-ct],yt._$={first_line:h[h.length-(ct||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(ct||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(yt._$.range=[h[h.length-(ct||1)].range[0],h[h.length-1].range[1]]),Vt=this.performAction.apply(yt,[d,Xt,_t,pt.yy,et[1],M,h].concat(be)),typeof Vt<"u")return Vt;ct&&(L=L.slice(0,-1*ct*2),M=M.slice(0,-1*ct),h=h.slice(0,-1*ct)),L.push(this.productions_[et[1]][0]),M.push(yt.$),h.push(yt._$),Zt=Et[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},ye=function(){var dt={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,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},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=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),L.length-1&&(this.yylineno-=L.length-1);var M=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:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,R as re,c as Br}from"./vendor-react-CnooHTJc.js";import{X as zt,Y as ee,O as Be,bi as fe,Q as Rn,P as Dt,ac as On,aV as de,aW as ne,j as K,aX as U,br as Tr,cn as En,aY as te,w as xe,a4 as zr,bp as Pn,bc as Mn,a5 as we,b8 as Dr,b9 as Ar,ba as _r,bb as Lr,L as At,x as kr,b2 as Kr,h as We,ad as ct,co as jr,b4 as Hr,o as D,a$ as Vr,bv as Wr,l as ut,m as ot,bA as Nn,a_ as ln,r as Bn,bt as sn,bw as Fr,by as Tn,b6 as Ot,q as zn,v as Gr,bG as cn,a8 as Xr,d as Ur,bC as qr,aZ as Yr,b3 as Dn,E as Zr,cp as Jr,B as un}from"./index-DdUqPqXW.js";import{n as An,u as je,F as He,T as Qr,g as eo,o as at,s as to,p as no,q as ro,r as oo,k as ao,t as dn,m as io,l as lo,v as so,x as co}from"./MobileAwareSelect-CCAQrsxL.js";var uo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},mo=function(n,t){return a.createElement(zt,ee({},n,{ref:t,icon:uo}))},po=a.forwardRef(mo),fo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},vo=function(n,t){return a.createElement(zt,ee({},n,{ref:t,icon:fo}))},go=a.forwardRef(vo),bo=fe.ESC,ho=fe.TAB;function Co(e){var n=e.visible,t=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,l=a.useRef(!1),s=function(){if(n){var d,m;(d=t.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.call(d),r==null||r(!1)}},c=function(){var d;return(d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),l.current=!0,!0):!1},u=function(d){switch(d.keyCode){case bo:s();break;case ho:{var m=!1;l.current||(m=c()),m?d.preventDefault():s();break}}};a.useEffect(function(){return n?(window.addEventListener("keydown",u),o&&Be(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[n])}var $o=a.forwardRef(function(e,n){var t=e.overlay,r=e.arrow,o=e.prefixCls,i=a.useMemo(function(){var s;return typeof t=="function"?s=t():s=t,s},[t]),l=Rn(n,Dt(i));return re.createElement(re.Fragment,null,r&&re.createElement("div",{className:"".concat(o,"-arrow")}),re.cloneElement(i,{ref:On(i)?l:void 0}))}),Me={adjustX:1,adjustY:1},Ne=[0,0],yo={topLeft:{points:["bl","tl"],overflow:Me,offset:[0,-4],targetOffset:Ne},top:{points:["bc","tc"],overflow:Me,offset:[0,-4],targetOffset:Ne},topRight:{points:["br","tr"],overflow:Me,offset:[0,-4],targetOffset:Ne},bottomLeft:{points:["tl","bl"],overflow:Me,offset:[0,4],targetOffset:Ne},bottom:{points:["tc","bc"],overflow:Me,offset:[0,4],targetOffset:Ne},bottomRight:{points:["tr","br"],overflow:Me,offset:[0,4],targetOffset:Ne}},So=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Io(e,n){var t,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,l=i===void 0?"rc-dropdown":i,s=e.transitionName,c=e.animation,u=e.align,f=e.placement,d=f===void 0?"bottomLeft":f,m=e.placements,g=m===void 0?yo:m,p=e.getPopupContainer,v=e.showAction,b=e.hideAction,S=e.overlayClassName,w=e.overlayStyle,I=e.visible,$=e.trigger,C=$===void 0?["hover"]:$,h=e.autoFocus,M=e.overlay,y=e.children,x=e.onVisibleChange,T=de(e,So),N=re.useState(),E=ne(N,2),R=E[0],O=E[1],P="visible"in e?I:R,j=re.useRef(null),B=re.useRef(null),k=re.useRef(null);re.useImperativeHandle(n,function(){return j.current});var F=function(H){O(H),x==null||x(H)};Co({visible:P,triggerRef:k,onVisibleChange:F,autoFocus:h,overlayRef:B});var G=function(H){var V=e.onOverlayClick;O(!1),V&&V(H)},J=function(){return re.createElement($o,{ref:B,overlay:M,prefixCls:l,arrow:o})},q=function(){return typeof M=="function"?J:J()},z=function(){var H=e.minOverlayWidthMatchTrigger,V=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?H:!V},A=function(){var H=e.openClassName;return H!==void 0?H:"".concat(l,"-open")},_=re.cloneElement(y,{className:K((t=y.props)===null||t===void 0?void 0:t.className,P&&A()),ref:On(y)?Rn(k,Dt(y)):void 0}),Q=b;return!Q&&C.indexOf("contextMenu")!==-1&&(Q=["click"]),re.createElement(An,ee({builtinPlacements:g},T,{prefixCls:l,ref:j,popupClassName:K(S,U({},"".concat(l,"-show-arrow"),o)),popupStyle:w,action:C,showAction:v,hideAction:Q,popupPlacement:d,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:P,stretch:z()?"minWidth":"",popup:q(),onPopupVisibleChange:F,onPopupClick:G,getPopupContainer:p}),_)}const xo=re.forwardRef(Io),wo=e=>typeof e!="object"&&typeof e!="function"||e===null;var _n=a.createContext(null);function Ln(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function kn(e){var n=a.useContext(_n);return Ln(n,e)}var Ro=["children","locked"],pe=a.createContext(null);function Oo(e,n){var t=te({},e);return Object.keys(n).forEach(function(r){var o=n[r];o!==void 0&&(t[r]=o)}),t}function Ve(e){var n=e.children,t=e.locked,r=de(e,Ro),o=a.useContext(pe),i=Tr(function(){return Oo(o,r)},[o,r],function(l,s){return!t&&(l[0]!==s[0]||!En(l[1],s[1],!0))});return a.createElement(pe.Provider,{value:i},n)}var Eo=[],Kn=a.createContext(null);function dt(){return a.useContext(Kn)}var jn=a.createContext(Eo);function Te(e){var n=a.useContext(jn);return a.useMemo(function(){return e!==void 0?[].concat(xe(n),[e]):n},[n,e])}var Hn=a.createContext(null),_t=a.createContext({});function mn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(zr(e)){var t=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(t)||e.isContentEditable||t==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),l=null;return o&&!Number.isNaN(i)?l=i:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||n&&l<0)}return!1}function Po(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=xe(e.querySelectorAll("*")).filter(function(r){return mn(r,n)});return mn(e,n)&&t.unshift(e),t}var Et=fe.LEFT,Pt=fe.RIGHT,Mt=fe.UP,nt=fe.DOWN,rt=fe.ENTER,Vn=fe.ESC,Le=fe.HOME,ke=fe.END,pn=[Mt,nt,Et,Pt];function Mo(e,n,t,r){var o,i="prev",l="next",s="children",c="parent";if(e==="inline"&&r===rt)return{inlineTrigger:!0};var u=U(U({},Mt,i),nt,l),f=U(U(U(U({},Et,t?l:i),Pt,t?i:l),nt,s),rt,s),d=U(U(U(U(U(U({},Mt,i),nt,l),rt,s),Vn,c),Et,t?s:c),Pt,t?c:s),m={inline:u,horizontal:f,vertical:d,inlineSub:u,horizontalSub:d,verticalSub:d},g=(o=m["".concat(e).concat(n?"":"Sub")])===null||o===void 0?void 0:o[r];switch(g){case i:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function No(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function Bo(e,n){for(var t=e||document.activeElement;t;){if(n.has(t))return t;t=t.parentElement}return null}function Lt(e,n){var t=Po(e,!0);return t.filter(function(r){return n.has(r)})}function fn(e,n,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Lt(e,n),i=o.length,l=o.findIndex(function(s){return t===s});return r<0?l===-1?l=i-1:l-=1:r>0&&(l+=1),l=(l+i)%i,o[l]}var Nt=function(n,t){var r=new Set,o=new Map,i=new Map;return n.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(Ln(t,l),"']"));s&&(r.add(s),i.set(s,l),o.set(l,s))}),{elements:r,key2element:o,element2key:i}};function To(e,n,t,r,o,i,l,s,c,u){var f=a.useRef(),d=a.useRef();d.current=n;var m=function(){Be.cancel(f.current)};return a.useEffect(function(){return function(){m()}},[]),function(g){var p=g.which;if([].concat(pn,[rt,Vn,Le,ke]).includes(p)){var v=i(),b=Nt(v,r),S=b,w=S.elements,I=S.key2element,$=S.element2key,C=I.get(n),h=Bo(C,w),M=$.get(h),y=Mo(e,l(M,!0).length===1,t,p);if(!y&&p!==Le&&p!==ke)return;(pn.includes(p)||[Le,ke].includes(p))&&g.preventDefault();var x=function(B){if(B){var k=B,F=B.querySelector("a");F!=null&&F.getAttribute("href")&&(k=F);var G=$.get(B);s(G),m(),f.current=Be(function(){d.current===G&&k.focus()})}};if([Le,ke].includes(p)||y.sibling||!h){var T;!h||e==="inline"?T=o.current:T=No(h);var N,E=Lt(T,w);p===Le?N=E[0]:p===ke?N=E[E.length-1]:N=fn(T,w,h,y.offset),x(N)}else if(y.inlineTrigger)c(M);else if(y.offset>0)c(M,!0),m(),f.current=Be(function(){b=Nt(v,r);var j=h.getAttribute("aria-controls"),B=document.getElementById(j),k=fn(B,b.elements);x(k)},5);else if(y.offset<0){var R=l(M,!0),O=R[R.length-2],P=I.get(O);c(O,!1),x(P)}}u==null||u(g)}}function zo(e){Promise.resolve().then(e)}var kt="__RC_UTIL_PATH_SPLIT__",vn=function(n){return n.join(kt)},Do=function(n){return n.split(kt)},Bt="rc-menu-more";function Ao(){var e=a.useState({}),n=ne(e,2),t=n[1],r=a.useRef(new Map),o=a.useRef(new Map),i=a.useState([]),l=ne(i,2),s=l[0],c=l[1],u=a.useRef(0),f=a.useRef(!1),d=function(){f.current||t({})},m=a.useCallback(function(I,$){var C=vn($);o.current.set(C,I),r.current.set(I,C),u.current+=1;var h=u.current;zo(function(){h===u.current&&d()})},[]),g=a.useCallback(function(I,$){var C=vn($);o.current.delete(C),r.current.delete(I)},[]),p=a.useCallback(function(I){c(I)},[]),v=a.useCallback(function(I,$){var C=r.current.get(I)||"",h=Do(C);return $&&s.includes(h[0])&&h.unshift(Bt),h},[s]),b=a.useCallback(function(I,$){return I.filter(function(C){return C!==void 0}).some(function(C){var h=v(C,!0);return h.includes($)})},[v]),S=function(){var $=xe(r.current.keys());return s.length&&$.push(Bt),$},w=a.useCallback(function(I){var $="".concat(r.current.get(I)).concat(kt),C=new Set;return xe(o.current.keys()).forEach(function(h){h.startsWith($)&&C.add(o.current.get(h))}),C},[]);return a.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:p,isSubPathKey:b,getKeyPath:v,getKeys:S,getSubPathKeys:w}}function Ke(e){var n=a.useRef(e);n.current=e;var t=a.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return(r=n.current)===null||r===void 0?void 0:r.call.apply(r,[n].concat(i))},[]);return e?t:void 0}var _o=Math.random().toFixed(5).toString().slice(2),gn=0;function Lo(e){var n=je(e,{value:e}),t=ne(n,2),r=t[0],o=t[1];return a.useEffect(function(){gn+=1;var i="".concat(_o,"-").concat(gn);o("rc-menu-uuid-".concat(i))},[]),r}function Wn(e,n,t,r){var o=a.useContext(pe),i=o.activeKey,l=o.onActive,s=o.onInactive,c={active:i===e};return n||(c.onMouseEnter=function(u){t==null||t({key:e,domEvent:u}),l(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),c}function Fn(e){var n=a.useContext(pe),t=n.mode,r=n.rtl,o=n.inlineIndent;if(t!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function Gn(e){var n=e.icon,t=e.props,r=e.children,o;return n===null||n===!1?null:(typeof n=="function"?o=a.createElement(n,te({},t)):typeof n!="boolean"&&(o=n),o||r||null)}var ko=["item"];function it(e){var n=e.item,t=de(e,ko);return Object.defineProperty(t,"item",{get:function(){return Pn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),t}var Ko=["title","attribute","elementRef"],jo=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ho=["active"],Vo=function(e){Dr(t,e);var n=Ar(t);function t(){return _r(this,t),n.apply(this,arguments)}return Lr(t,[{key:"render",value:function(){var o=this.props,i=o.title,l=o.attribute,s=o.elementRef,c=de(o,Ko),u=we(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Pn(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(He.Item,ee({},l,{title:typeof i=="string"?i:void 0},u,{ref:s}))}}]),t}(a.Component),Wo=a.forwardRef(function(e,n){var t=e.style,r=e.className,o=e.eventKey;e.warnKey;var i=e.disabled,l=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,f=e.onMouseLeave,d=e.onClick,m=e.onKeyDown,g=e.onFocus,p=de(e,jo),v=kn(o),b=a.useContext(pe),S=b.prefixCls,w=b.onItemClick,I=b.disabled,$=b.overflowDisabled,C=b.itemIcon,h=b.selectedKeys,M=b.onActive,y=a.useContext(_t),x=y._internalRenderMenuItem,T="".concat(S,"-item"),N=a.useRef(),E=a.useRef(),R=I||i,O=Mn(n,E),P=Te(o),j=function(V){return{key:o,keyPath:xe(P).reverse(),item:N.current,domEvent:V}},B=l||C,k=Wn(o,R,u,f),F=k.active,G=de(k,Ho),J=h.includes(o),q=Fn(P.length),z=function(V){if(!R){var ae=j(V);d==null||d(it(ae)),w(ae)}},A=function(V){if(m==null||m(V),V.which===fe.ENTER){var ae=j(V);d==null||d(it(ae)),w(ae)}},_=function(V){M(o),g==null||g(V)},Q={};e.role==="option"&&(Q["aria-selected"]=J);var Y=a.createElement(Vo,ee({ref:N,elementRef:O,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":$&&v?null:v},we(p,["extra"]),G,Q,{component:"li","aria-disabled":i,style:te(te({},q),t),className:K(T,U(U(U({},"".concat(T,"-active"),F),"".concat(T,"-selected"),J),"".concat(T,"-disabled"),R),r),onClick:z,onKeyDown:A,onFocus:_}),s,a.createElement(Gn,{props:te(te({},e),{},{isSelected:J}),icon:B}));return x&&(Y=x(Y,e,{selected:J})),Y});function Fo(e,n){var t=e.eventKey,r=dt(),o=Te(t);return a.useEffect(function(){if(r)return r.registerPath(t,o),function(){r.unregisterPath(t,o)}},[o]),r?null:a.createElement(Wo,ee({},e,{ref:n}))}const mt=a.forwardRef(Fo);var Go=["className","children"],Xo=function(n,t){var r=n.className,o=n.children,i=de(n,Go),l=a.useContext(pe),s=l.prefixCls,c=l.mode,u=l.rtl;return a.createElement("ul",ee({className:K(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},Kt=a.forwardRef(Xo);Kt.displayName="SubMenuList";function jt(e,n){return At(e).map(function(t,r){if(a.isValidElement(t)){var o,i,l=t.key,s=(o=(i=t.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:l,c=s==null;c&&(s="tmp_key-".concat([].concat(xe(n),[r]).join("-")));var u={key:s,eventKey:s};return a.cloneElement(t,u)}return t})}var oe={adjustX:1,adjustY:1},Uo={topLeft:{points:["bl","tl"],overflow:oe},topRight:{points:["br","tr"],overflow:oe},bottomLeft:{points:["tl","bl"],overflow:oe},bottomRight:{points:["tr","br"],overflow:oe},leftTop:{points:["tr","tl"],overflow:oe},leftBottom:{points:["br","bl"],overflow:oe},rightTop:{points:["tl","tr"],overflow:oe},rightBottom:{points:["bl","br"],overflow:oe}},qo={topLeft:{points:["bl","tl"],overflow:oe},topRight:{points:["br","tr"],overflow:oe},bottomLeft:{points:["tl","bl"],overflow:oe},bottomRight:{points:["tr","br"],overflow:oe},rightTop:{points:["tr","tl"],overflow:oe},rightBottom:{points:["br","bl"],overflow:oe},leftTop:{points:["tl","tr"],overflow:oe},leftBottom:{points:["bl","br"],overflow:oe}};function Xn(e,n,t){if(n)return n;if(t)return t[e]||t.other}var Yo={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Zo(e){var n=e.prefixCls,t=e.visible,r=e.children,o=e.popup,i=e.popupStyle,l=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,f=e.onVisibleChange,d=a.useContext(pe),m=d.getPopupContainer,g=d.rtl,p=d.subMenuOpenDelay,v=d.subMenuCloseDelay,b=d.builtinPlacements,S=d.triggerSubMenuAction,w=d.forceSubMenuRender,I=d.rootClassName,$=d.motion,C=d.defaultMotions,h=a.useState(!1),M=ne(h,2),y=M[0],x=M[1],T=g?te(te({},qo),b):te(te({},Uo),b),N=Yo[u],E=Xn(u,$,C),R=a.useRef(E);u!=="inline"&&(R.current=E);var O=te(te({},R.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=a.useRef();return a.useEffect(function(){return P.current=Be(function(){x(t)}),function(){Be.cancel(P.current)}},[t]),a.createElement(An,{prefixCls:n,popupClassName:K("".concat(n,"-popup"),U({},"".concat(n,"-rtl"),g),l,I),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:T,popupPlacement:N,popupVisible:y,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:c?[]:[S],mouseEnterDelay:p,mouseLeaveDelay:v,onPopupVisibleChange:f,forceRender:w,popupMotion:O,fresh:!0},r)}function Jo(e){var n=e.id,t=e.open,r=e.keyPath,o=e.children,i="inline",l=a.useContext(pe),s=l.prefixCls,c=l.forceSubMenuRender,u=l.motion,f=l.defaultMotions,d=l.mode,m=a.useRef(!1);m.current=d===i;var g=a.useState(!m.current),p=ne(g,2),v=p[0],b=p[1],S=m.current?t:!1;a.useEffect(function(){m.current&&b(!1)},[d]);var w=te({},Xn(i,u,f));r.length>1&&(w.motionAppear=!1);var I=w.onVisibleChanged;return w.onVisibleChanged=function($){return!m.current&&!$&&b(!0),I==null?void 0:I($)},v?null:a.createElement(Ve,{mode:i,locked:!m.current},a.createElement(kr,ee({visible:S},w,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var C=$.className,h=$.style;return a.createElement(Kt,{id:n,className:C,style:h},o)}))}var Qo=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ea=["active"],ta=a.forwardRef(function(e,n){var t=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,f=e.expandIcon,d=e.popupClassName,m=e.popupOffset,g=e.popupStyle,p=e.onClick,v=e.onMouseEnter,b=e.onMouseLeave,S=e.onTitleClick,w=e.onTitleMouseEnter,I=e.onTitleMouseLeave,$=de(e,Qo),C=kn(i),h=a.useContext(pe),M=h.prefixCls,y=h.mode,x=h.openKeys,T=h.disabled,N=h.overflowDisabled,E=h.activeKey,R=h.selectedKeys,O=h.itemIcon,P=h.expandIcon,j=h.onItemClick,B=h.onOpenChange,k=h.onActive,F=a.useContext(_t),G=F._internalRenderSubMenuItem,J=a.useContext(Hn),q=J.isSubPathKey,z=Te(),A="".concat(M,"-submenu"),_=T||l,Q=a.useRef(),Y=a.useRef(),H=u??O,V=f??P,ae=x.includes(i),ie=!N&&ae,Re=q(R,i),Oe=Wn(i,_,w,I),ve=Oe.active,Ce=de(Oe,ea),$e=a.useState(!1),X=ne($e,2),Ee=X[0],Xe=X[1],Ue=function(le){_||Xe(le)},gt=function(le){Ue(!0),v==null||v({key:i,domEvent:le})},qe=function(le){Ue(!1),b==null||b({key:i,domEvent:le})},ge=a.useMemo(function(){return ve||(y!=="inline"?Ee||q([E],i):!1)},[y,ve,E,Ee,i,q]),bt=Fn(z.length),ht=function(le){_||(S==null||S({key:i,domEvent:le}),y==="inline"&&B(i,!ae))},Ye=Ke(function(me){p==null||p(it(me)),j(me)}),Ze=function(le){y!=="inline"&&B(i,le)},Ct=function(){k(i)},be=C&&"".concat(C,"-popup"),ze=a.useMemo(function(){return a.createElement(Gn,{icon:y!=="horizontal"?V:void 0,props:te(te({},e),{},{isOpen:ie,isSubMenu:!0})},a.createElement("i",{className:"".concat(A,"-arrow")}))},[y,V,e,ie,A]),ye=a.createElement("div",ee({role:"menuitem",style:bt,className:"".concat(A,"-title"),tabIndex:_?null:-1,ref:Q,title:typeof o=="string"?o:null,"data-menu-id":N&&C?null:C,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":_,onClick:ht,onFocus:Ct},Ce),o,ze),De=a.useRef(y);if(y!=="inline"&&z.length>1?De.current="vertical":De.current=y,!N){var Pe=De.current;ye=a.createElement(Zo,{mode:Pe,prefixCls:A,visible:!s&&ie&&y!=="inline",popupClassName:d,popupOffset:m,popupStyle:g,popup:a.createElement(Ve,{mode:Pe==="horizontal"?"vertical":Pe},a.createElement(Kt,{id:be,ref:Y},c)),disabled:_,onVisibleChange:Ze},ye)}var ue=a.createElement(He.Item,ee({ref:n,role:"none"},$,{component:"li",style:t,className:K(A,"".concat(A,"-").concat(y),r,U(U(U(U({},"".concat(A,"-open"),ie),"".concat(A,"-active"),ge),"".concat(A,"-selected"),Re),"".concat(A,"-disabled"),_)),onMouseEnter:gt,onMouseLeave:qe}),ye,!N&&a.createElement(Jo,{id:be,open:ie,keyPath:z},c));return G&&(ue=G(ue,e,{selected:Re,active:ge,open:ie,disabled:_})),a.createElement(Ve,{onItemClick:Ye,mode:y==="horizontal"?"vertical":y,itemIcon:H,expandIcon:V},ue)}),pt=a.forwardRef(function(e,n){var t=e.eventKey,r=e.children,o=Te(t),i=jt(r,o),l=dt();a.useEffect(function(){if(l)return l.registerPath(t,o),function(){l.unregisterPath(t,o)}},[o]);var s;return l?s=i:s=a.createElement(ta,ee({ref:n},e),i),a.createElement(jn.Provider,{value:o},s)});function Ht(e){var n=e.className,t=e.style,r=a.useContext(pe),o=r.prefixCls,i=dt();return i?null:a.createElement("li",{role:"separator",className:K("".concat(o,"-item-divider"),n),style:t})}var na=["className","title","eventKey","children"],ra=a.forwardRef(function(e,n){var t=e.className,r=e.title;e.eventKey;var o=e.children,i=de(e,na),l=a.useContext(pe),s=l.prefixCls,c="".concat(s,"-item-group");return a.createElement("li",ee({ref:n,role:"presentation"},i,{onClick:function(f){return f.stopPropagation()},className:K(c,t)}),a.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),a.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),Vt=a.forwardRef(function(e,n){var t=e.eventKey,r=e.children,o=Te(t),i=jt(r,o),l=dt();return l?i:a.createElement(ra,ee({ref:n},we(e,["warnKey"])),i)}),oa=["label","children","key","type","extra"];function Tt(e,n,t){var r=n.item,o=n.group,i=n.submenu,l=n.divider;return(e||[]).map(function(s,c){if(s&&Kr(s)==="object"){var u=s,f=u.label,d=u.children,m=u.key,g=u.type,p=u.extra,v=de(u,oa),b=m??"tmp-".concat(c);return d||g==="group"?g==="group"?a.createElement(o,ee({key:b},v,{title:f}),Tt(d,n,t)):a.createElement(i,ee({key:b},v,{title:f}),Tt(d,n,t)):g==="divider"?a.createElement(l,ee({key:b},v)):a.createElement(r,ee({key:b},v,{extra:p}),f,(!!p||p===0)&&a.createElement("span",{className:"".concat(t,"-item-extra")},p))}return null}).filter(function(s){return s})}function bn(e,n,t,r,o){var i=e,l=te({divider:Ht,item:mt,group:Vt,submenu:pt},r);return n&&(i=Tt(n,l,o)),jt(i,t)}var aa=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Ie=[],ia=a.forwardRef(function(e,n){var t,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,l=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,f=u===void 0?0:u,d=r.items,m=r.children,g=r.direction,p=r.id,v=r.mode,b=v===void 0?"vertical":v,S=r.inlineCollapsed,w=r.disabled,I=r.disabledOverflow,$=r.subMenuOpenDelay,C=$===void 0?.1:$,h=r.subMenuCloseDelay,M=h===void 0?.1:h,y=r.forceSubMenuRender,x=r.defaultOpenKeys,T=r.openKeys,N=r.activeKey,E=r.defaultActiveFirst,R=r.selectable,O=R===void 0?!0:R,P=r.multiple,j=P===void 0?!1:P,B=r.defaultSelectedKeys,k=r.selectedKeys,F=r.onSelect,G=r.onDeselect,J=r.inlineIndent,q=J===void 0?24:J,z=r.motion,A=r.defaultMotions,_=r.triggerSubMenuAction,Q=_===void 0?"hover":_,Y=r.builtinPlacements,H=r.itemIcon,V=r.expandIcon,ae=r.overflowedIndicator,ie=ae===void 0?"...":ae,Re=r.overflowedIndicatorPopupClassName,Oe=r.getPopupContainer,ve=r.onClick,Ce=r.onOpenChange,$e=r.onKeyDown;r.openAnimation,r.openTransitionName;var X=r._internalRenderMenuItem,Ee=r._internalRenderSubMenuItem,Xe=r._internalComponents,Ue=de(r,aa),gt=a.useMemo(function(){return[bn(m,d,Ie,Xe,i),bn(m,d,Ie,{},i)]},[m,d,Xe]),qe=ne(gt,2),ge=qe[0],bt=qe[1],ht=a.useState(!1),Ye=ne(ht,2),Ze=Ye[0],Ct=Ye[1],be=a.useRef(),ze=Lo(p),ye=g==="rtl",De=je(x,{value:T,postState:function(L){return L||Ie}}),Pe=ne(De,2),ue=Pe[0],me=Pe[1],le=function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function se(){me(L),Ce==null||Ce(L)}W?Br.flushSync(se):se()},nr=a.useState(ue),Ft=ne(nr,2),rr=Ft[0],or=Ft[1],$t=a.useRef(!1),ar=a.useMemo(function(){return(b==="inline"||b==="vertical")&&S?["vertical",S]:[b,!1]},[b,S]),Gt=ne(ar,2),Je=Gt[0],yt=Gt[1],Xt=Je==="inline",ir=a.useState(Je),Ut=ne(ir,2),he=Ut[0],lr=Ut[1],sr=a.useState(yt),qt=ne(sr,2),cr=qt[0],ur=qt[1];a.useEffect(function(){lr(Je),ur(yt),$t.current&&(Xt?me(rr):le(Ie))},[Je,yt]);var dr=a.useState(0),Yt=ne(dr,2),Qe=Yt[0],mr=Yt[1],St=Qe>=ge.length-1||he!=="horizontal"||I;a.useEffect(function(){Xt&&or(ue)},[ue]),a.useEffect(function(){return $t.current=!0,function(){$t.current=!1}},[]);var Se=Ao(),Zt=Se.registerPath,Jt=Se.unregisterPath,pr=Se.refreshOverflowKeys,Qt=Se.isSubPathKey,fr=Se.getKeyPath,en=Se.getKeys,vr=Se.getSubPathKeys,gr=a.useMemo(function(){return{registerPath:Zt,unregisterPath:Jt}},[Zt,Jt]),br=a.useMemo(function(){return{isSubPathKey:Qt}},[Qt]);a.useEffect(function(){pr(St?Ie:ge.slice(Qe+1).map(function(Z){return Z.key}))},[Qe,St]);var hr=je(N||E&&((t=ge[0])===null||t===void 0?void 0:t.key),{value:N}),tn=ne(hr,2),Ae=tn[0],It=tn[1],Cr=Ke(function(Z){It(Z)}),$r=Ke(function(){It(void 0)});a.useImperativeHandle(n,function(){return{list:be.current,focus:function(L){var W,se=en(),ce=Nt(se,ze),tt=ce.elements,xt=ce.key2element,Mr=ce.element2key,on=Lt(be.current,tt),an=Ae??(on[0]?Mr.get(on[0]):(W=ge.find(function(Nr){return!Nr.props.disabled}))===null||W===void 0?void 0:W.key),_e=xt.get(an);if(an&&_e){var wt;_e==null||(wt=_e.focus)===null||wt===void 0||wt.call(_e,L)}}}});var yr=je(B||[],{value:k,postState:function(L){return Array.isArray(L)?L:L==null?Ie:[L]}}),nn=ne(yr,2),et=nn[0],Sr=nn[1],Ir=function(L){if(O){var W=L.key,se=et.includes(W),ce;j?se?ce=et.filter(function(xt){return xt!==W}):ce=[].concat(xe(et),[W]):ce=[W],Sr(ce);var tt=te(te({},L),{},{selectedKeys:ce});se?G==null||G(tt):F==null||F(tt)}!j&&ue.length&&he!=="inline"&&le(Ie)},xr=Ke(function(Z){ve==null||ve(it(Z)),Ir(Z)}),rn=Ke(function(Z,L){var W=ue.filter(function(ce){return ce!==Z});if(L)W.push(Z);else if(he!=="inline"){var se=vr(Z);W=W.filter(function(ce){return!se.has(ce)})}En(ue,W,!0)||le(W,!0)}),wr=function(L,W){var se=W??!ue.includes(L);rn(L,se)},Rr=To(he,Ae,ye,ze,be,en,fr,It,wr,$e);a.useEffect(function(){Ct(!0)},[]);var Or=a.useMemo(function(){return{_internalRenderMenuItem:X,_internalRenderSubMenuItem:Ee}},[X,Ee]),Er=he!=="horizontal"||I?ge:ge.map(function(Z,L){return a.createElement(Ve,{key:Z.key,overflowDisabled:L>Qe},Z)}),Pr=a.createElement(He,ee({id:p,ref:be,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:mt,className:K(i,"".concat(i,"-root"),"".concat(i,"-").concat(he),c,U(U({},"".concat(i,"-inline-collapsed"),cr),"".concat(i,"-rtl"),ye),l),dir:g,style:s,role:"menu",tabIndex:f,data:Er,renderRawItem:function(L){return L},renderRawRest:function(L){var W=L.length,se=W?ge.slice(-W):null;return a.createElement(pt,{eventKey:Bt,title:ie,disabled:St,internalPopupClose:W===0,popupClassName:Re},se)},maxCount:he!=="horizontal"||I?He.INVALIDATE:He.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(L){mr(L)},onKeyDown:Rr},Ue));return a.createElement(_t.Provider,{value:Or},a.createElement(_n.Provider,{value:ze},a.createElement(Ve,{prefixCls:i,rootClassName:l,mode:he,openKeys:ue,rtl:ye,disabled:w,motion:Ze?z:null,defaultMotions:Ze?A:null,activeKey:Ae,onActive:Cr,onInactive:$r,selectedKeys:et,inlineIndent:q,subMenuOpenDelay:C,subMenuCloseDelay:M,forceSubMenuRender:y,builtinPlacements:Y,triggerSubMenuAction:Q,getPopupContainer:Oe,itemIcon:H,expandIcon:V,onItemClick:xr,onOpenChange:rn},a.createElement(Hn.Provider,{value:br},Pr),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(Kn.Provider,{value:gr},bt)))))}),Fe=ia;Fe.Item=mt;Fe.SubMenu=pt;Fe.ItemGroup=Vt;Fe.Divider=Ht;const Un=a.createContext({});var la={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},sa=function(n,t){return a.createElement(zt,ee({},n,{ref:t,icon:la}))},qn=a.forwardRef(sa);const lt=a.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ca=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const Yn=e=>{const{prefixCls:n,className:t,dashed:r}=e,o=ca(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=a.useContext(We),l=i("menu",n),s=K({[`${l}-item-divider-dashed`]:!!r},t);return a.createElement(Ht,Object.assign({className:s},o))},Zn=e=>{var n;const{className:t,children:r,icon:o,title:i,danger:l,extra:s}=e,{prefixCls:c,firstLevel:u,direction:f,disableMenuItemTitleTooltip:d,inlineCollapsed:m}=a.useContext(lt),g=I=>{const $=r==null?void 0:r[0],C=a.createElement("span",{className:K(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},r);return(!o||a.isValidElement(r)&&r.type==="span")&&r&&I&&u&&typeof $=="string"?a.createElement("div",{className:`${c}-inline-collapsed-noicon`},$.charAt(0)):C},{siderCollapsed:p}=a.useContext(Un);let v=i;typeof i>"u"?v=u?r:"":i===!1&&(v="");const b={title:v};!p&&!m&&(b.title=null,b.open=!1);const S=At(r).length;let w=a.createElement(mt,Object.assign({},we(e,["title","icon","danger"]),{className:K({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:(o?S+1:S)===1},t),title:typeof i=="string"?i:void 0}),ct(o,{className:K(a.isValidElement(o)?(n=o.props)===null||n===void 0?void 0:n.className:void 0,`${c}-item-icon`)}),g(m));return d||(w=a.createElement(Qr,Object.assign({},b,{placement:f==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),w)),w};var ua=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const st=a.createContext(null),da=a.forwardRef((e,n)=>{const{children:t}=e,r=ua(e,["children"]),o=a.useContext(st),i=a.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=jr(t),s=Mn(n,l?Dt(t):null);return a.createElement(st.Provider,{value:i},a.createElement(Hr,{space:!0},l?a.cloneElement(t,{ref:s}):t))}),ma=e=>{const{componentCls:n,motionDurationSlow:t,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:l,itemPaddingInline:s}=e;return{[`${n}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${D(i)} ${l} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${n}-item:hover,
|
|
1
|
+
import{r as a,R as re,c as Br}from"./vendor-react-CnooHTJc.js";import{X as zt,Y as ee,O as Be,bi as fe,Q as Rn,P as Dt,ac as On,aV as de,aW as ne,j as K,aX as U,br as Tr,cn as En,aY as te,w as xe,a4 as zr,bp as Pn,bc as Mn,a5 as we,b8 as Dr,b9 as Ar,ba as _r,bb as Lr,L as At,x as kr,b2 as Kr,h as We,ad as ct,co as jr,b4 as Hr,o as D,a$ as Vr,bv as Wr,l as ut,m as ot,bA as Nn,a_ as ln,r as Bn,bt as sn,bw as Fr,by as Tn,b6 as Ot,q as zn,v as Gr,bG as cn,a8 as Xr,d as Ur,bC as qr,aZ as Yr,b3 as Dn,E as Zr,cp as Jr,B as un}from"./index-DgZk1SFp.js";import{n as An,u as je,F as He,T as Qr,g as eo,o as at,s as to,p as no,q as ro,r as oo,k as ao,t as dn,m as io,l as lo,v as so,x as co}from"./MobileAwareSelect-C3a67aGF.js";var uo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},mo=function(n,t){return a.createElement(zt,ee({},n,{ref:t,icon:uo}))},po=a.forwardRef(mo),fo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},vo=function(n,t){return a.createElement(zt,ee({},n,{ref:t,icon:fo}))},go=a.forwardRef(vo),bo=fe.ESC,ho=fe.TAB;function Co(e){var n=e.visible,t=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,l=a.useRef(!1),s=function(){if(n){var d,m;(d=t.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.call(d),r==null||r(!1)}},c=function(){var d;return(d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),l.current=!0,!0):!1},u=function(d){switch(d.keyCode){case bo:s();break;case ho:{var m=!1;l.current||(m=c()),m?d.preventDefault():s();break}}};a.useEffect(function(){return n?(window.addEventListener("keydown",u),o&&Be(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[n])}var $o=a.forwardRef(function(e,n){var t=e.overlay,r=e.arrow,o=e.prefixCls,i=a.useMemo(function(){var s;return typeof t=="function"?s=t():s=t,s},[t]),l=Rn(n,Dt(i));return re.createElement(re.Fragment,null,r&&re.createElement("div",{className:"".concat(o,"-arrow")}),re.cloneElement(i,{ref:On(i)?l:void 0}))}),Me={adjustX:1,adjustY:1},Ne=[0,0],yo={topLeft:{points:["bl","tl"],overflow:Me,offset:[0,-4],targetOffset:Ne},top:{points:["bc","tc"],overflow:Me,offset:[0,-4],targetOffset:Ne},topRight:{points:["br","tr"],overflow:Me,offset:[0,-4],targetOffset:Ne},bottomLeft:{points:["tl","bl"],overflow:Me,offset:[0,4],targetOffset:Ne},bottom:{points:["tc","bc"],overflow:Me,offset:[0,4],targetOffset:Ne},bottomRight:{points:["tr","br"],overflow:Me,offset:[0,4],targetOffset:Ne}},So=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Io(e,n){var t,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,l=i===void 0?"rc-dropdown":i,s=e.transitionName,c=e.animation,u=e.align,f=e.placement,d=f===void 0?"bottomLeft":f,m=e.placements,g=m===void 0?yo:m,p=e.getPopupContainer,v=e.showAction,b=e.hideAction,S=e.overlayClassName,w=e.overlayStyle,I=e.visible,$=e.trigger,C=$===void 0?["hover"]:$,h=e.autoFocus,M=e.overlay,y=e.children,x=e.onVisibleChange,T=de(e,So),N=re.useState(),E=ne(N,2),R=E[0],O=E[1],P="visible"in e?I:R,j=re.useRef(null),B=re.useRef(null),k=re.useRef(null);re.useImperativeHandle(n,function(){return j.current});var F=function(H){O(H),x==null||x(H)};Co({visible:P,triggerRef:k,onVisibleChange:F,autoFocus:h,overlayRef:B});var G=function(H){var V=e.onOverlayClick;O(!1),V&&V(H)},J=function(){return re.createElement($o,{ref:B,overlay:M,prefixCls:l,arrow:o})},q=function(){return typeof M=="function"?J:J()},z=function(){var H=e.minOverlayWidthMatchTrigger,V=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?H:!V},A=function(){var H=e.openClassName;return H!==void 0?H:"".concat(l,"-open")},_=re.cloneElement(y,{className:K((t=y.props)===null||t===void 0?void 0:t.className,P&&A()),ref:On(y)?Rn(k,Dt(y)):void 0}),Q=b;return!Q&&C.indexOf("contextMenu")!==-1&&(Q=["click"]),re.createElement(An,ee({builtinPlacements:g},T,{prefixCls:l,ref:j,popupClassName:K(S,U({},"".concat(l,"-show-arrow"),o)),popupStyle:w,action:C,showAction:v,hideAction:Q,popupPlacement:d,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:P,stretch:z()?"minWidth":"",popup:q(),onPopupVisibleChange:F,onPopupClick:G,getPopupContainer:p}),_)}const xo=re.forwardRef(Io),wo=e=>typeof e!="object"&&typeof e!="function"||e===null;var _n=a.createContext(null);function Ln(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function kn(e){var n=a.useContext(_n);return Ln(n,e)}var Ro=["children","locked"],pe=a.createContext(null);function Oo(e,n){var t=te({},e);return Object.keys(n).forEach(function(r){var o=n[r];o!==void 0&&(t[r]=o)}),t}function Ve(e){var n=e.children,t=e.locked,r=de(e,Ro),o=a.useContext(pe),i=Tr(function(){return Oo(o,r)},[o,r],function(l,s){return!t&&(l[0]!==s[0]||!En(l[1],s[1],!0))});return a.createElement(pe.Provider,{value:i},n)}var Eo=[],Kn=a.createContext(null);function dt(){return a.useContext(Kn)}var jn=a.createContext(Eo);function Te(e){var n=a.useContext(jn);return a.useMemo(function(){return e!==void 0?[].concat(xe(n),[e]):n},[n,e])}var Hn=a.createContext(null),_t=a.createContext({});function mn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(zr(e)){var t=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(t)||e.isContentEditable||t==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),l=null;return o&&!Number.isNaN(i)?l=i:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||n&&l<0)}return!1}function Po(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=xe(e.querySelectorAll("*")).filter(function(r){return mn(r,n)});return mn(e,n)&&t.unshift(e),t}var Et=fe.LEFT,Pt=fe.RIGHT,Mt=fe.UP,nt=fe.DOWN,rt=fe.ENTER,Vn=fe.ESC,Le=fe.HOME,ke=fe.END,pn=[Mt,nt,Et,Pt];function Mo(e,n,t,r){var o,i="prev",l="next",s="children",c="parent";if(e==="inline"&&r===rt)return{inlineTrigger:!0};var u=U(U({},Mt,i),nt,l),f=U(U(U(U({},Et,t?l:i),Pt,t?i:l),nt,s),rt,s),d=U(U(U(U(U(U({},Mt,i),nt,l),rt,s),Vn,c),Et,t?s:c),Pt,t?c:s),m={inline:u,horizontal:f,vertical:d,inlineSub:u,horizontalSub:d,verticalSub:d},g=(o=m["".concat(e).concat(n?"":"Sub")])===null||o===void 0?void 0:o[r];switch(g){case i:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function No(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function Bo(e,n){for(var t=e||document.activeElement;t;){if(n.has(t))return t;t=t.parentElement}return null}function Lt(e,n){var t=Po(e,!0);return t.filter(function(r){return n.has(r)})}function fn(e,n,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Lt(e,n),i=o.length,l=o.findIndex(function(s){return t===s});return r<0?l===-1?l=i-1:l-=1:r>0&&(l+=1),l=(l+i)%i,o[l]}var Nt=function(n,t){var r=new Set,o=new Map,i=new Map;return n.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(Ln(t,l),"']"));s&&(r.add(s),i.set(s,l),o.set(l,s))}),{elements:r,key2element:o,element2key:i}};function To(e,n,t,r,o,i,l,s,c,u){var f=a.useRef(),d=a.useRef();d.current=n;var m=function(){Be.cancel(f.current)};return a.useEffect(function(){return function(){m()}},[]),function(g){var p=g.which;if([].concat(pn,[rt,Vn,Le,ke]).includes(p)){var v=i(),b=Nt(v,r),S=b,w=S.elements,I=S.key2element,$=S.element2key,C=I.get(n),h=Bo(C,w),M=$.get(h),y=Mo(e,l(M,!0).length===1,t,p);if(!y&&p!==Le&&p!==ke)return;(pn.includes(p)||[Le,ke].includes(p))&&g.preventDefault();var x=function(B){if(B){var k=B,F=B.querySelector("a");F!=null&&F.getAttribute("href")&&(k=F);var G=$.get(B);s(G),m(),f.current=Be(function(){d.current===G&&k.focus()})}};if([Le,ke].includes(p)||y.sibling||!h){var T;!h||e==="inline"?T=o.current:T=No(h);var N,E=Lt(T,w);p===Le?N=E[0]:p===ke?N=E[E.length-1]:N=fn(T,w,h,y.offset),x(N)}else if(y.inlineTrigger)c(M);else if(y.offset>0)c(M,!0),m(),f.current=Be(function(){b=Nt(v,r);var j=h.getAttribute("aria-controls"),B=document.getElementById(j),k=fn(B,b.elements);x(k)},5);else if(y.offset<0){var R=l(M,!0),O=R[R.length-2],P=I.get(O);c(O,!1),x(P)}}u==null||u(g)}}function zo(e){Promise.resolve().then(e)}var kt="__RC_UTIL_PATH_SPLIT__",vn=function(n){return n.join(kt)},Do=function(n){return n.split(kt)},Bt="rc-menu-more";function Ao(){var e=a.useState({}),n=ne(e,2),t=n[1],r=a.useRef(new Map),o=a.useRef(new Map),i=a.useState([]),l=ne(i,2),s=l[0],c=l[1],u=a.useRef(0),f=a.useRef(!1),d=function(){f.current||t({})},m=a.useCallback(function(I,$){var C=vn($);o.current.set(C,I),r.current.set(I,C),u.current+=1;var h=u.current;zo(function(){h===u.current&&d()})},[]),g=a.useCallback(function(I,$){var C=vn($);o.current.delete(C),r.current.delete(I)},[]),p=a.useCallback(function(I){c(I)},[]),v=a.useCallback(function(I,$){var C=r.current.get(I)||"",h=Do(C);return $&&s.includes(h[0])&&h.unshift(Bt),h},[s]),b=a.useCallback(function(I,$){return I.filter(function(C){return C!==void 0}).some(function(C){var h=v(C,!0);return h.includes($)})},[v]),S=function(){var $=xe(r.current.keys());return s.length&&$.push(Bt),$},w=a.useCallback(function(I){var $="".concat(r.current.get(I)).concat(kt),C=new Set;return xe(o.current.keys()).forEach(function(h){h.startsWith($)&&C.add(o.current.get(h))}),C},[]);return a.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:p,isSubPathKey:b,getKeyPath:v,getKeys:S,getSubPathKeys:w}}function Ke(e){var n=a.useRef(e);n.current=e;var t=a.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return(r=n.current)===null||r===void 0?void 0:r.call.apply(r,[n].concat(i))},[]);return e?t:void 0}var _o=Math.random().toFixed(5).toString().slice(2),gn=0;function Lo(e){var n=je(e,{value:e}),t=ne(n,2),r=t[0],o=t[1];return a.useEffect(function(){gn+=1;var i="".concat(_o,"-").concat(gn);o("rc-menu-uuid-".concat(i))},[]),r}function Wn(e,n,t,r){var o=a.useContext(pe),i=o.activeKey,l=o.onActive,s=o.onInactive,c={active:i===e};return n||(c.onMouseEnter=function(u){t==null||t({key:e,domEvent:u}),l(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),c}function Fn(e){var n=a.useContext(pe),t=n.mode,r=n.rtl,o=n.inlineIndent;if(t!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function Gn(e){var n=e.icon,t=e.props,r=e.children,o;return n===null||n===!1?null:(typeof n=="function"?o=a.createElement(n,te({},t)):typeof n!="boolean"&&(o=n),o||r||null)}var ko=["item"];function it(e){var n=e.item,t=de(e,ko);return Object.defineProperty(t,"item",{get:function(){return Pn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),t}var Ko=["title","attribute","elementRef"],jo=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ho=["active"],Vo=function(e){Dr(t,e);var n=Ar(t);function t(){return _r(this,t),n.apply(this,arguments)}return Lr(t,[{key:"render",value:function(){var o=this.props,i=o.title,l=o.attribute,s=o.elementRef,c=de(o,Ko),u=we(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Pn(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(He.Item,ee({},l,{title:typeof i=="string"?i:void 0},u,{ref:s}))}}]),t}(a.Component),Wo=a.forwardRef(function(e,n){var t=e.style,r=e.className,o=e.eventKey;e.warnKey;var i=e.disabled,l=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,f=e.onMouseLeave,d=e.onClick,m=e.onKeyDown,g=e.onFocus,p=de(e,jo),v=kn(o),b=a.useContext(pe),S=b.prefixCls,w=b.onItemClick,I=b.disabled,$=b.overflowDisabled,C=b.itemIcon,h=b.selectedKeys,M=b.onActive,y=a.useContext(_t),x=y._internalRenderMenuItem,T="".concat(S,"-item"),N=a.useRef(),E=a.useRef(),R=I||i,O=Mn(n,E),P=Te(o),j=function(V){return{key:o,keyPath:xe(P).reverse(),item:N.current,domEvent:V}},B=l||C,k=Wn(o,R,u,f),F=k.active,G=de(k,Ho),J=h.includes(o),q=Fn(P.length),z=function(V){if(!R){var ae=j(V);d==null||d(it(ae)),w(ae)}},A=function(V){if(m==null||m(V),V.which===fe.ENTER){var ae=j(V);d==null||d(it(ae)),w(ae)}},_=function(V){M(o),g==null||g(V)},Q={};e.role==="option"&&(Q["aria-selected"]=J);var Y=a.createElement(Vo,ee({ref:N,elementRef:O,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":$&&v?null:v},we(p,["extra"]),G,Q,{component:"li","aria-disabled":i,style:te(te({},q),t),className:K(T,U(U(U({},"".concat(T,"-active"),F),"".concat(T,"-selected"),J),"".concat(T,"-disabled"),R),r),onClick:z,onKeyDown:A,onFocus:_}),s,a.createElement(Gn,{props:te(te({},e),{},{isSelected:J}),icon:B}));return x&&(Y=x(Y,e,{selected:J})),Y});function Fo(e,n){var t=e.eventKey,r=dt(),o=Te(t);return a.useEffect(function(){if(r)return r.registerPath(t,o),function(){r.unregisterPath(t,o)}},[o]),r?null:a.createElement(Wo,ee({},e,{ref:n}))}const mt=a.forwardRef(Fo);var Go=["className","children"],Xo=function(n,t){var r=n.className,o=n.children,i=de(n,Go),l=a.useContext(pe),s=l.prefixCls,c=l.mode,u=l.rtl;return a.createElement("ul",ee({className:K(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},Kt=a.forwardRef(Xo);Kt.displayName="SubMenuList";function jt(e,n){return At(e).map(function(t,r){if(a.isValidElement(t)){var o,i,l=t.key,s=(o=(i=t.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:l,c=s==null;c&&(s="tmp_key-".concat([].concat(xe(n),[r]).join("-")));var u={key:s,eventKey:s};return a.cloneElement(t,u)}return t})}var oe={adjustX:1,adjustY:1},Uo={topLeft:{points:["bl","tl"],overflow:oe},topRight:{points:["br","tr"],overflow:oe},bottomLeft:{points:["tl","bl"],overflow:oe},bottomRight:{points:["tr","br"],overflow:oe},leftTop:{points:["tr","tl"],overflow:oe},leftBottom:{points:["br","bl"],overflow:oe},rightTop:{points:["tl","tr"],overflow:oe},rightBottom:{points:["bl","br"],overflow:oe}},qo={topLeft:{points:["bl","tl"],overflow:oe},topRight:{points:["br","tr"],overflow:oe},bottomLeft:{points:["tl","bl"],overflow:oe},bottomRight:{points:["tr","br"],overflow:oe},rightTop:{points:["tr","tl"],overflow:oe},rightBottom:{points:["br","bl"],overflow:oe},leftTop:{points:["tl","tr"],overflow:oe},leftBottom:{points:["bl","br"],overflow:oe}};function Xn(e,n,t){if(n)return n;if(t)return t[e]||t.other}var Yo={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Zo(e){var n=e.prefixCls,t=e.visible,r=e.children,o=e.popup,i=e.popupStyle,l=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,f=e.onVisibleChange,d=a.useContext(pe),m=d.getPopupContainer,g=d.rtl,p=d.subMenuOpenDelay,v=d.subMenuCloseDelay,b=d.builtinPlacements,S=d.triggerSubMenuAction,w=d.forceSubMenuRender,I=d.rootClassName,$=d.motion,C=d.defaultMotions,h=a.useState(!1),M=ne(h,2),y=M[0],x=M[1],T=g?te(te({},qo),b):te(te({},Uo),b),N=Yo[u],E=Xn(u,$,C),R=a.useRef(E);u!=="inline"&&(R.current=E);var O=te(te({},R.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=a.useRef();return a.useEffect(function(){return P.current=Be(function(){x(t)}),function(){Be.cancel(P.current)}},[t]),a.createElement(An,{prefixCls:n,popupClassName:K("".concat(n,"-popup"),U({},"".concat(n,"-rtl"),g),l,I),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:T,popupPlacement:N,popupVisible:y,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:c?[]:[S],mouseEnterDelay:p,mouseLeaveDelay:v,onPopupVisibleChange:f,forceRender:w,popupMotion:O,fresh:!0},r)}function Jo(e){var n=e.id,t=e.open,r=e.keyPath,o=e.children,i="inline",l=a.useContext(pe),s=l.prefixCls,c=l.forceSubMenuRender,u=l.motion,f=l.defaultMotions,d=l.mode,m=a.useRef(!1);m.current=d===i;var g=a.useState(!m.current),p=ne(g,2),v=p[0],b=p[1],S=m.current?t:!1;a.useEffect(function(){m.current&&b(!1)},[d]);var w=te({},Xn(i,u,f));r.length>1&&(w.motionAppear=!1);var I=w.onVisibleChanged;return w.onVisibleChanged=function($){return!m.current&&!$&&b(!0),I==null?void 0:I($)},v?null:a.createElement(Ve,{mode:i,locked:!m.current},a.createElement(kr,ee({visible:S},w,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var C=$.className,h=$.style;return a.createElement(Kt,{id:n,className:C,style:h},o)}))}var Qo=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ea=["active"],ta=a.forwardRef(function(e,n){var t=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,f=e.expandIcon,d=e.popupClassName,m=e.popupOffset,g=e.popupStyle,p=e.onClick,v=e.onMouseEnter,b=e.onMouseLeave,S=e.onTitleClick,w=e.onTitleMouseEnter,I=e.onTitleMouseLeave,$=de(e,Qo),C=kn(i),h=a.useContext(pe),M=h.prefixCls,y=h.mode,x=h.openKeys,T=h.disabled,N=h.overflowDisabled,E=h.activeKey,R=h.selectedKeys,O=h.itemIcon,P=h.expandIcon,j=h.onItemClick,B=h.onOpenChange,k=h.onActive,F=a.useContext(_t),G=F._internalRenderSubMenuItem,J=a.useContext(Hn),q=J.isSubPathKey,z=Te(),A="".concat(M,"-submenu"),_=T||l,Q=a.useRef(),Y=a.useRef(),H=u??O,V=f??P,ae=x.includes(i),ie=!N&&ae,Re=q(R,i),Oe=Wn(i,_,w,I),ve=Oe.active,Ce=de(Oe,ea),$e=a.useState(!1),X=ne($e,2),Ee=X[0],Xe=X[1],Ue=function(le){_||Xe(le)},gt=function(le){Ue(!0),v==null||v({key:i,domEvent:le})},qe=function(le){Ue(!1),b==null||b({key:i,domEvent:le})},ge=a.useMemo(function(){return ve||(y!=="inline"?Ee||q([E],i):!1)},[y,ve,E,Ee,i,q]),bt=Fn(z.length),ht=function(le){_||(S==null||S({key:i,domEvent:le}),y==="inline"&&B(i,!ae))},Ye=Ke(function(me){p==null||p(it(me)),j(me)}),Ze=function(le){y!=="inline"&&B(i,le)},Ct=function(){k(i)},be=C&&"".concat(C,"-popup"),ze=a.useMemo(function(){return a.createElement(Gn,{icon:y!=="horizontal"?V:void 0,props:te(te({},e),{},{isOpen:ie,isSubMenu:!0})},a.createElement("i",{className:"".concat(A,"-arrow")}))},[y,V,e,ie,A]),ye=a.createElement("div",ee({role:"menuitem",style:bt,className:"".concat(A,"-title"),tabIndex:_?null:-1,ref:Q,title:typeof o=="string"?o:null,"data-menu-id":N&&C?null:C,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":_,onClick:ht,onFocus:Ct},Ce),o,ze),De=a.useRef(y);if(y!=="inline"&&z.length>1?De.current="vertical":De.current=y,!N){var Pe=De.current;ye=a.createElement(Zo,{mode:Pe,prefixCls:A,visible:!s&&ie&&y!=="inline",popupClassName:d,popupOffset:m,popupStyle:g,popup:a.createElement(Ve,{mode:Pe==="horizontal"?"vertical":Pe},a.createElement(Kt,{id:be,ref:Y},c)),disabled:_,onVisibleChange:Ze},ye)}var ue=a.createElement(He.Item,ee({ref:n,role:"none"},$,{component:"li",style:t,className:K(A,"".concat(A,"-").concat(y),r,U(U(U(U({},"".concat(A,"-open"),ie),"".concat(A,"-active"),ge),"".concat(A,"-selected"),Re),"".concat(A,"-disabled"),_)),onMouseEnter:gt,onMouseLeave:qe}),ye,!N&&a.createElement(Jo,{id:be,open:ie,keyPath:z},c));return G&&(ue=G(ue,e,{selected:Re,active:ge,open:ie,disabled:_})),a.createElement(Ve,{onItemClick:Ye,mode:y==="horizontal"?"vertical":y,itemIcon:H,expandIcon:V},ue)}),pt=a.forwardRef(function(e,n){var t=e.eventKey,r=e.children,o=Te(t),i=jt(r,o),l=dt();a.useEffect(function(){if(l)return l.registerPath(t,o),function(){l.unregisterPath(t,o)}},[o]);var s;return l?s=i:s=a.createElement(ta,ee({ref:n},e),i),a.createElement(jn.Provider,{value:o},s)});function Ht(e){var n=e.className,t=e.style,r=a.useContext(pe),o=r.prefixCls,i=dt();return i?null:a.createElement("li",{role:"separator",className:K("".concat(o,"-item-divider"),n),style:t})}var na=["className","title","eventKey","children"],ra=a.forwardRef(function(e,n){var t=e.className,r=e.title;e.eventKey;var o=e.children,i=de(e,na),l=a.useContext(pe),s=l.prefixCls,c="".concat(s,"-item-group");return a.createElement("li",ee({ref:n,role:"presentation"},i,{onClick:function(f){return f.stopPropagation()},className:K(c,t)}),a.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),a.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),Vt=a.forwardRef(function(e,n){var t=e.eventKey,r=e.children,o=Te(t),i=jt(r,o),l=dt();return l?i:a.createElement(ra,ee({ref:n},we(e,["warnKey"])),i)}),oa=["label","children","key","type","extra"];function Tt(e,n,t){var r=n.item,o=n.group,i=n.submenu,l=n.divider;return(e||[]).map(function(s,c){if(s&&Kr(s)==="object"){var u=s,f=u.label,d=u.children,m=u.key,g=u.type,p=u.extra,v=de(u,oa),b=m??"tmp-".concat(c);return d||g==="group"?g==="group"?a.createElement(o,ee({key:b},v,{title:f}),Tt(d,n,t)):a.createElement(i,ee({key:b},v,{title:f}),Tt(d,n,t)):g==="divider"?a.createElement(l,ee({key:b},v)):a.createElement(r,ee({key:b},v,{extra:p}),f,(!!p||p===0)&&a.createElement("span",{className:"".concat(t,"-item-extra")},p))}return null}).filter(function(s){return s})}function bn(e,n,t,r,o){var i=e,l=te({divider:Ht,item:mt,group:Vt,submenu:pt},r);return n&&(i=Tt(n,l,o)),jt(i,t)}var aa=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Ie=[],ia=a.forwardRef(function(e,n){var t,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,l=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,f=u===void 0?0:u,d=r.items,m=r.children,g=r.direction,p=r.id,v=r.mode,b=v===void 0?"vertical":v,S=r.inlineCollapsed,w=r.disabled,I=r.disabledOverflow,$=r.subMenuOpenDelay,C=$===void 0?.1:$,h=r.subMenuCloseDelay,M=h===void 0?.1:h,y=r.forceSubMenuRender,x=r.defaultOpenKeys,T=r.openKeys,N=r.activeKey,E=r.defaultActiveFirst,R=r.selectable,O=R===void 0?!0:R,P=r.multiple,j=P===void 0?!1:P,B=r.defaultSelectedKeys,k=r.selectedKeys,F=r.onSelect,G=r.onDeselect,J=r.inlineIndent,q=J===void 0?24:J,z=r.motion,A=r.defaultMotions,_=r.triggerSubMenuAction,Q=_===void 0?"hover":_,Y=r.builtinPlacements,H=r.itemIcon,V=r.expandIcon,ae=r.overflowedIndicator,ie=ae===void 0?"...":ae,Re=r.overflowedIndicatorPopupClassName,Oe=r.getPopupContainer,ve=r.onClick,Ce=r.onOpenChange,$e=r.onKeyDown;r.openAnimation,r.openTransitionName;var X=r._internalRenderMenuItem,Ee=r._internalRenderSubMenuItem,Xe=r._internalComponents,Ue=de(r,aa),gt=a.useMemo(function(){return[bn(m,d,Ie,Xe,i),bn(m,d,Ie,{},i)]},[m,d,Xe]),qe=ne(gt,2),ge=qe[0],bt=qe[1],ht=a.useState(!1),Ye=ne(ht,2),Ze=Ye[0],Ct=Ye[1],be=a.useRef(),ze=Lo(p),ye=g==="rtl",De=je(x,{value:T,postState:function(L){return L||Ie}}),Pe=ne(De,2),ue=Pe[0],me=Pe[1],le=function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function se(){me(L),Ce==null||Ce(L)}W?Br.flushSync(se):se()},nr=a.useState(ue),Ft=ne(nr,2),rr=Ft[0],or=Ft[1],$t=a.useRef(!1),ar=a.useMemo(function(){return(b==="inline"||b==="vertical")&&S?["vertical",S]:[b,!1]},[b,S]),Gt=ne(ar,2),Je=Gt[0],yt=Gt[1],Xt=Je==="inline",ir=a.useState(Je),Ut=ne(ir,2),he=Ut[0],lr=Ut[1],sr=a.useState(yt),qt=ne(sr,2),cr=qt[0],ur=qt[1];a.useEffect(function(){lr(Je),ur(yt),$t.current&&(Xt?me(rr):le(Ie))},[Je,yt]);var dr=a.useState(0),Yt=ne(dr,2),Qe=Yt[0],mr=Yt[1],St=Qe>=ge.length-1||he!=="horizontal"||I;a.useEffect(function(){Xt&&or(ue)},[ue]),a.useEffect(function(){return $t.current=!0,function(){$t.current=!1}},[]);var Se=Ao(),Zt=Se.registerPath,Jt=Se.unregisterPath,pr=Se.refreshOverflowKeys,Qt=Se.isSubPathKey,fr=Se.getKeyPath,en=Se.getKeys,vr=Se.getSubPathKeys,gr=a.useMemo(function(){return{registerPath:Zt,unregisterPath:Jt}},[Zt,Jt]),br=a.useMemo(function(){return{isSubPathKey:Qt}},[Qt]);a.useEffect(function(){pr(St?Ie:ge.slice(Qe+1).map(function(Z){return Z.key}))},[Qe,St]);var hr=je(N||E&&((t=ge[0])===null||t===void 0?void 0:t.key),{value:N}),tn=ne(hr,2),Ae=tn[0],It=tn[1],Cr=Ke(function(Z){It(Z)}),$r=Ke(function(){It(void 0)});a.useImperativeHandle(n,function(){return{list:be.current,focus:function(L){var W,se=en(),ce=Nt(se,ze),tt=ce.elements,xt=ce.key2element,Mr=ce.element2key,on=Lt(be.current,tt),an=Ae??(on[0]?Mr.get(on[0]):(W=ge.find(function(Nr){return!Nr.props.disabled}))===null||W===void 0?void 0:W.key),_e=xt.get(an);if(an&&_e){var wt;_e==null||(wt=_e.focus)===null||wt===void 0||wt.call(_e,L)}}}});var yr=je(B||[],{value:k,postState:function(L){return Array.isArray(L)?L:L==null?Ie:[L]}}),nn=ne(yr,2),et=nn[0],Sr=nn[1],Ir=function(L){if(O){var W=L.key,se=et.includes(W),ce;j?se?ce=et.filter(function(xt){return xt!==W}):ce=[].concat(xe(et),[W]):ce=[W],Sr(ce);var tt=te(te({},L),{},{selectedKeys:ce});se?G==null||G(tt):F==null||F(tt)}!j&&ue.length&&he!=="inline"&&le(Ie)},xr=Ke(function(Z){ve==null||ve(it(Z)),Ir(Z)}),rn=Ke(function(Z,L){var W=ue.filter(function(ce){return ce!==Z});if(L)W.push(Z);else if(he!=="inline"){var se=vr(Z);W=W.filter(function(ce){return!se.has(ce)})}En(ue,W,!0)||le(W,!0)}),wr=function(L,W){var se=W??!ue.includes(L);rn(L,se)},Rr=To(he,Ae,ye,ze,be,en,fr,It,wr,$e);a.useEffect(function(){Ct(!0)},[]);var Or=a.useMemo(function(){return{_internalRenderMenuItem:X,_internalRenderSubMenuItem:Ee}},[X,Ee]),Er=he!=="horizontal"||I?ge:ge.map(function(Z,L){return a.createElement(Ve,{key:Z.key,overflowDisabled:L>Qe},Z)}),Pr=a.createElement(He,ee({id:p,ref:be,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:mt,className:K(i,"".concat(i,"-root"),"".concat(i,"-").concat(he),c,U(U({},"".concat(i,"-inline-collapsed"),cr),"".concat(i,"-rtl"),ye),l),dir:g,style:s,role:"menu",tabIndex:f,data:Er,renderRawItem:function(L){return L},renderRawRest:function(L){var W=L.length,se=W?ge.slice(-W):null;return a.createElement(pt,{eventKey:Bt,title:ie,disabled:St,internalPopupClose:W===0,popupClassName:Re},se)},maxCount:he!=="horizontal"||I?He.INVALIDATE:He.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(L){mr(L)},onKeyDown:Rr},Ue));return a.createElement(_t.Provider,{value:Or},a.createElement(_n.Provider,{value:ze},a.createElement(Ve,{prefixCls:i,rootClassName:l,mode:he,openKeys:ue,rtl:ye,disabled:w,motion:Ze?z:null,defaultMotions:Ze?A:null,activeKey:Ae,onActive:Cr,onInactive:$r,selectedKeys:et,inlineIndent:q,subMenuOpenDelay:C,subMenuCloseDelay:M,forceSubMenuRender:y,builtinPlacements:Y,triggerSubMenuAction:Q,getPopupContainer:Oe,itemIcon:H,expandIcon:V,onItemClick:xr,onOpenChange:rn},a.createElement(Hn.Provider,{value:br},Pr),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(Kn.Provider,{value:gr},bt)))))}),Fe=ia;Fe.Item=mt;Fe.SubMenu=pt;Fe.ItemGroup=Vt;Fe.Divider=Ht;const Un=a.createContext({});var la={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},sa=function(n,t){return a.createElement(zt,ee({},n,{ref:t,icon:la}))},qn=a.forwardRef(sa);const lt=a.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ca=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const Yn=e=>{const{prefixCls:n,className:t,dashed:r}=e,o=ca(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=a.useContext(We),l=i("menu",n),s=K({[`${l}-item-divider-dashed`]:!!r},t);return a.createElement(Ht,Object.assign({className:s},o))},Zn=e=>{var n;const{className:t,children:r,icon:o,title:i,danger:l,extra:s}=e,{prefixCls:c,firstLevel:u,direction:f,disableMenuItemTitleTooltip:d,inlineCollapsed:m}=a.useContext(lt),g=I=>{const $=r==null?void 0:r[0],C=a.createElement("span",{className:K(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},r);return(!o||a.isValidElement(r)&&r.type==="span")&&r&&I&&u&&typeof $=="string"?a.createElement("div",{className:`${c}-inline-collapsed-noicon`},$.charAt(0)):C},{siderCollapsed:p}=a.useContext(Un);let v=i;typeof i>"u"?v=u?r:"":i===!1&&(v="");const b={title:v};!p&&!m&&(b.title=null,b.open=!1);const S=At(r).length;let w=a.createElement(mt,Object.assign({},we(e,["title","icon","danger"]),{className:K({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:(o?S+1:S)===1},t),title:typeof i=="string"?i:void 0}),ct(o,{className:K(a.isValidElement(o)?(n=o.props)===null||n===void 0?void 0:n.className:void 0,`${c}-item-icon`)}),g(m));return d||(w=a.createElement(Qr,Object.assign({},b,{placement:f==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),w)),w};var ua=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const st=a.createContext(null),da=a.forwardRef((e,n)=>{const{children:t}=e,r=ua(e,["children"]),o=a.useContext(st),i=a.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=jr(t),s=Mn(n,l?Dt(t):null);return a.createElement(st.Provider,{value:i},a.createElement(Hr,{space:!0},l?a.cloneElement(t,{ref:s}):t))}),ma=e=>{const{componentCls:n,motionDurationSlow:t,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:l,itemPaddingInline:s}=e;return{[`${n}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${D(i)} ${l} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${n}-item:hover,
|
|
2
2
|
> ${n}-item-active,
|
|
3
3
|
> ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},pa=({componentCls:e,menuArrowOffset:n,calc:t})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
4
4
|
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${D(t(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${D(n)})`}}}}),hn=e=>Vr(e),Cn=(e,n)=>{const{componentCls:t,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:l,itemBg:s,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:f,activeBarWidth:d,activeBarBorderWidth:m,motionDurationSlow:g,motionEaseInOut:p,motionEaseOut:v,itemPaddingInline:b,motionDurationMid:S,itemHoverColor:w,lineType:I,colorSplit:$,itemDisabledColor:C,dangerItemColor:h,dangerItemHoverColor:M,dangerItemSelectedColor:y,dangerItemActiveBg:x,dangerItemSelectedBg:T,popupBg:N,itemHoverBg:E,itemActiveBg:R,menuSubMenuBg:O,horizontalItemSelectedColor:P,horizontalItemSelectedBg:j,horizontalItemBorderRadius:B,horizontalItemHoverBg:k}=e;return{[`${t}-${n}, ${t}-${n} > ${t}`]:{color:r,background:s,[`&${t}-root:focus-visible`]:Object.assign({},hn(e)),[`${t}-item`]:{"&-group-title, &-extra":{color:l}},[`${t}-submenu-selected > ${t}-submenu-title`]:{color:i},[`${t}-item, ${t}-submenu-title`]:{color:r,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},hn(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${C} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:w}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:R}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:R}}},[`${t}-item-danger`]:{color:h,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:M}},[`&${t}-item:active`]:{background:x}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:o,[`&${t}-item-danger`]:{color:y},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:u,[`&${t}-item-danger`]:{backgroundColor:T}},[`&${t}-submenu > ${t}`]:{backgroundColor:O},[`&${t}-popup > ${t}`]:{backgroundColor:N},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:N},[`&${t}-horizontal`]:Object.assign(Object.assign({},n==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${D(f)} solid transparent`,transition:`border-color ${g} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:f,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:f,borderBottomColor:P}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${D(m)} ${I} ${$}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:c},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${D(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${v}`,`opacity ${S} ${v}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:y}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${p}`,`opacity ${S} ${p}`].join(",")}}}}}},$n=e=>{const{componentCls:n,itemHeight:t,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:l,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,f=e.calc(i).add(o).add(l).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:t,lineHeight:D(t),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${n}-item,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as P,d as N,p as W}from"./styles-ca3715f6-4bqpN1KH.js";import{g as t,d as H,l as b,e as R,k as T,an as v,A as U}from"./mermaid.core-VYJIZL_J.js";import{G as C}from"./graph-BEwlNa_j.js";import{l as F}from"./layout-CRLM1T9z.js";import"./AuthenticatedApp-CK9TT7Nk.js";import{l as $}from"./line-Cdyr_7ve.js";import"./index-DdUqPqXW.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-zjcHRN98.js";import"./MobileAwareSelect-CCAQrsxL.js";import"./use-app-preferences-DGCafwsP.js";import"./route-plugin-chrome-bV1HEaju.js";import"./shortcutUtils-B8h6g_7o.js";import"./project-file-tree-icons-CfonMx-1.js";import"./WorkspaceApp-l-h_IsMp.js";import"./index-ZOsqqPVv.js";import"./client-build-info-6B4KoYHs.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,a)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,a)=>{const o=function(l,w,m){const E=l.append("tspan").attr("x",2*t().state.padding).text(w);m||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),g=s.height,h=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let i=!0,r=!0;a.descriptions.forEach(function(l){i||(o(h,l,r),r=!1),i=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,a,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),h=g.width,i=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),x=r.node().getBBox().width+s;let d=Math.max(x,h);d===h&&(d=d+s);let l;const w=e.node().getBBox();a.doc,l=i-c,x>h&&(l=(h-d)/2+c),Math.abs(i-w.x)<c&&x>h&&(l=i-(x-h)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",w.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=h&&r.attr("x",i+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",w.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,a)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(a.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,a,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of i){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",a+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},K=(e,a)=>{a.attr("class","state-note");const o=a.append("rect").attr("x",0).attr("y",t().state.padding),c=a.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,a){const o=a.id,c={id:o,label:a.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");a.type==="start"&&O(s),a.type==="end"&&_(s),(a.type==="fork"||a.type==="join")&&q(s,a),a.type==="note"&&K(a.note.text,s),a.type==="divider"&&X(s),a.type==="default"&&a.descriptions.length===0&&J(s,a),a.type==="default"&&a.descriptions.length>0&&Y(s,a);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let A=0;const Q=function(e,a,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};a.points=a.points.filter(r=>!Number.isNaN(r.y));const s=a.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),h=e.append("path").attr("d",g(s)).attr("id","edge"+A).attr("class","transition");let i="";if(t().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),h.attr("marker-end","url("+i+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(a.points),d=T.getRows(o.title);let l=0;const w=[];let m=0,E=0;for(let u=0;u<=d.length;u++){const p=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=p.node().getBBox();m=Math.max(m,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=p.node().getBBox().height,b.info("Title height",l,x)),w.push(p)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;w.forEach((p,f)=>p.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",k+t().state.padding),b.info(n)}A++};let B;const z={},V=function(){},j=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,a,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+a));const h=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),i=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=h.select(`[id='${a}']`);j(r);const y=c.db.getRootDoc();G(y,r,void 0,!1,h,i,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,w=d.height+x*2,m=l*1.75;R(r,w,m,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+w)},tt=e=>e?e.length*B.fontSizeFactor:1,G=(e,a,o,c,s,g,h)=>{const i=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}}),h.db.extract(e);const x=h.db.getStates(),d=h.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let p;if(u.doc){let f=a.append("g").attr("id",u.id).attr("class","stateGroup");p=G(u.doc,f,u.id,!c,s,g,h);{f=I(f,u,c);let S=f.node().getBBox();p.width=S.width,p.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else p=L(a,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(a,f);u.note.position==="left of"?(i.setNode(p.id+"-note",S),i.setNode(p.id,p)):(i.setNode(p.id,p),i.setNode(p.id+"-note",S)),i.setParent(p.id,p.id+"-group"),i.setParent(p.id+"-note",p.id+"-group")}else i.setNode(p.id,p)}b.debug("Count=",i.nodeCount(),i);let w=0;d.forEach(function(n){w++,b.debug("Setting edge",n),i.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+w)}),F(i),b.debug("Graph after layout",i.nodes());const m=a.node();i.nodes().forEach(function(n){n!==void 0&&i.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(i.node(n))),s.select("#"+m.id+" #"+n).attr("transform","translate("+(i.node(n).x-i.node(n).width/2)+","+(i.node(n).y+(z[n]?z[n].y:0)-i.node(n).height/2)+" )"),s.select("#"+m.id+" #"+n).attr("data-x-shift",i.node(n).x-i.node(n).width/2),g.querySelectorAll("#"+m.id+" #"+n+" .divider").forEach(p=>{const f=p.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),p.setAttribute("x1",0-M+8),p.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(i.node(n)))});let E=m.getBBox();i.edges().forEach(function(n){n!==void 0&&i.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(i.edge(n))),Q(a,i.edge(n),i.edge(n).relation))}),E=m.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,i),k},et={setConf:V,draw:D},bt={parser:W,db:N,renderer:et,styles:P,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{bt as diagram};
|
|
1
|
+
import{s as P,d as N,p as W}from"./styles-ca3715f6-CcZFkBde.js";import{g as t,d as H,l as b,e as R,k as T,an as v,A as U}from"./mermaid.core-DBYO3wup.js";import{G as C}from"./graph-DKmOtEDg.js";import{l as F}from"./layout-Q0dn6j1W.js";import"./AuthenticatedApp-CjqSg3Fe.js";import{l as $}from"./line-BqB1JWak.js";import"./index-DgZk1SFp.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-Djj0Jjxr.js";import"./MobileAwareSelect-C3a67aGF.js";import"./use-app-preferences-BZCemhY7.js";import"./route-plugin-chrome-DI32l8cC.js";import"./shortcutUtils-HFKOHIG8.js";import"./project-file-tree-icons-Iz30jDs3.js";import"./WorkspaceApp-CokR7Tpr.js";import"./index-aZ1QdVqZ.js";import"./client-build-info-tgdsIlyX.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,a)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,a)=>{const o=function(l,w,m){const E=l.append("tspan").attr("x",2*t().state.padding).text(w);m||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),g=s.height,h=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let i=!0,r=!0;a.descriptions.forEach(function(l){i||(o(h,l,r),r=!1),i=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,a,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),h=g.width,i=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),x=r.node().getBBox().width+s;let d=Math.max(x,h);d===h&&(d=d+s);let l;const w=e.node().getBBox();a.doc,l=i-c,x>h&&(l=(h-d)/2+c),Math.abs(i-w.x)<c&&x>h&&(l=i-(x-h)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",w.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=h&&r.attr("x",i+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",w.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,a)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(a.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,a,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of i){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",a+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},K=(e,a)=>{a.attr("class","state-note");const o=a.append("rect").attr("x",0).attr("y",t().state.padding),c=a.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,a){const o=a.id,c={id:o,label:a.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");a.type==="start"&&O(s),a.type==="end"&&_(s),(a.type==="fork"||a.type==="join")&&q(s,a),a.type==="note"&&K(a.note.text,s),a.type==="divider"&&X(s),a.type==="default"&&a.descriptions.length===0&&J(s,a),a.type==="default"&&a.descriptions.length>0&&Y(s,a);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let A=0;const Q=function(e,a,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};a.points=a.points.filter(r=>!Number.isNaN(r.y));const s=a.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),h=e.append("path").attr("d",g(s)).attr("id","edge"+A).attr("class","transition");let i="";if(t().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),h.attr("marker-end","url("+i+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(a.points),d=T.getRows(o.title);let l=0;const w=[];let m=0,E=0;for(let u=0;u<=d.length;u++){const p=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=p.node().getBBox();m=Math.max(m,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=p.node().getBBox().height,b.info("Title height",l,x)),w.push(p)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;w.forEach((p,f)=>p.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",k+t().state.padding),b.info(n)}A++};let B;const z={},V=function(){},j=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,a,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+a));const h=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),i=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=h.select(`[id='${a}']`);j(r);const y=c.db.getRootDoc();G(y,r,void 0,!1,h,i,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,w=d.height+x*2,m=l*1.75;R(r,w,m,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+w)},tt=e=>e?e.length*B.fontSizeFactor:1,G=(e,a,o,c,s,g,h)=>{const i=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}}),h.db.extract(e);const x=h.db.getStates(),d=h.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let p;if(u.doc){let f=a.append("g").attr("id",u.id).attr("class","stateGroup");p=G(u.doc,f,u.id,!c,s,g,h);{f=I(f,u,c);let S=f.node().getBBox();p.width=S.width,p.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else p=L(a,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(a,f);u.note.position==="left of"?(i.setNode(p.id+"-note",S),i.setNode(p.id,p)):(i.setNode(p.id,p),i.setNode(p.id+"-note",S)),i.setParent(p.id,p.id+"-group"),i.setParent(p.id+"-note",p.id+"-group")}else i.setNode(p.id,p)}b.debug("Count=",i.nodeCount(),i);let w=0;d.forEach(function(n){w++,b.debug("Setting edge",n),i.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+w)}),F(i),b.debug("Graph after layout",i.nodes());const m=a.node();i.nodes().forEach(function(n){n!==void 0&&i.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(i.node(n))),s.select("#"+m.id+" #"+n).attr("transform","translate("+(i.node(n).x-i.node(n).width/2)+","+(i.node(n).y+(z[n]?z[n].y:0)-i.node(n).height/2)+" )"),s.select("#"+m.id+" #"+n).attr("data-x-shift",i.node(n).x-i.node(n).width/2),g.querySelectorAll("#"+m.id+" #"+n+" .divider").forEach(p=>{const f=p.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),p.setAttribute("x1",0-M+8),p.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(i.node(n)))});let E=m.getBBox();i.edges().forEach(function(n){n!==void 0&&i.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(i.edge(n))),Q(a,i.edge(n),i.edge(n).relation))}),E=m.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,i),k},et={setConf:V,draw:D},bt={parser:W,db:N,renderer:et,styles:P,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{bt as diagram};
|