@salesforce/metadata-visualizer-web 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugins/flow/ui/assets/{index-DJP9DbPL.js → index-OhJU6yxp.js} +1 -1
- package/dist/plugins/flow/ui/index.html +1 -1
- package/dist/plugins/permissionset/ui/assets/index-CMInRbR2.js +48 -0
- package/dist/plugins/permissionset/ui/assets/index-DqEUhEQc.css +1 -0
- package/dist/plugins/permissionset/ui/index.html +2 -2
- package/dist/plugins/schema/ui/assets/{index-BHwyhVGF.js → index-CWvLR0Fz.js} +9 -9
- package/dist/plugins/schema/ui/assets/{index-Cp1nVgsx.css → index-EHPZb2E3.css} +1 -1
- package/dist/plugins/schema/ui/index.html +2 -2
- package/package.json +2 -2
- package/dist/plugins/permissionset/ui/assets/index-CMOgdp7q.css +0 -1
- package/dist/plugins/permissionset/ui/assets/index-D_FwDkAf.js +0 -48
|
@@ -45,4 +45,4 @@ Error generating stack: `+l.message+`
|
|
|
45
45
|
${i}
|
|
46
46
|
</div>
|
|
47
47
|
</div>
|
|
48
|
-
`}function ql(e,t){const{logPrefix:n,rootClass:r,title:o,consoleMessage:l,errorBuilderMessage:i,context:u={},domMessage:a,filePath:c}=t;console.error(`${n} ${l}`),yn.create().category(Qn.Rendering).message(i).context(u).send(),Yd(e,{rootClass:r,title:o,message:a,filePath:c})}async function aa(e){const{pluginName:t,rootClass:n,render:r,validateData:o}=e,l=`[${t} React App]`,i=document.getElementById("root");if(!i){console.error(`${l} Root element not found`);return}if(an&&(an(),an=null),et){try{et.unmount()}catch(C){console.warn(`${l} Error unmounting previous root:`,C)}et=null,wo=null}const u={fn:null};let a=null;an=Od(C=>{if(u.fn)try{u.fn(C)}catch(k){console.error(`${l} Update handler threw:`,k)}else a=C});const p=(C,k,y)=>{C.render(s.jsx(K.StrictMode,{children:s.jsx(bd,{children:r(k,y)})}))},h=()=>{if(et){try{et.unmount()}catch(C){console.warn(`${l} Error unmounting previous root:`,C)}et=null}wo=null},g=(C,k)=>{const y=C==null?void 0:C.context,d=C==null?void 0:C.data;if(!y||d==null){h(),ql(i,{logPrefix:l,rootClass:n,title:k?"Error: No updated data provided":"Error: No data provided",consoleMessage:"No data provided",errorBuilderMessage:`${t} data is missing or invalid`,context:{filePath:y==null?void 0:y.filePath,reason:"No data provided in response"},domMessage:`${t} data is missing or invalid.`,filePath:(y==null?void 0:y.filePath)||"Unknown"});return}const f=o!=null?o(d):null;if(f!=null){h(),ql(i,{logPrefix:l,rootClass:n,title:k?"Error: Invalid Updated Data":"Error: Invalid Data",consoleMessage:`Validation failed: ${f}`,errorBuilderMessage:`${t} data structure is invalid`,context:{filePath:y.filePath,reason:f},domMessage:f});return}const m={filePath:y.filePath,fileName:y.fileName,selectableNodes:C.selectableNodes};if(et==null||m.filePath!==wo){if(et){try{et.unmount()}catch(S){console.warn(`${l} Error unmounting previous root:`,S)}et=null}i.innerHTML="",et=ri.createRoot(i),wo=m.filePath}p(et,d,m)},x=await $d();if(!x){if(ql(i,{logPrefix:l,rootClass:n,title:"Error: Failed to load data",consoleMessage:"Failed to receive plugin data from host",errorBuilderMessage:`${t} data is missing or invalid`,context:{reason:"Failed to receive plugin data from host"},domMessage:`Could not receive ${t} data from the extension host.`}),u.fn=C=>g(C,!0),a){const C=a;a=null,u.fn(C)}return}if(g(x,!1),u.fn=C=>g(C,!0),a){const C=a;a=null,u.fn(C)}}function Qd(e){Dd(),ua||(window.addEventListener("pagehide",()=>{an&&(an(),an=null)}),ua=!0),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{aa(e)}):aa(e)}const Xd=({items:e,header:t="LEGEND"})=>K.createElement("div",{className:"mv-legend-panel"},K.createElement("div",{className:"mv-legend-panel__header"},t),K.createElement("div",{className:"mv-legend-panel__body"},e.map(n=>K.createElement("div",{key:n.key,className:"mv-legend-panel__item"},K.createElement("span",{className:"mv-legend-panel__icon"},n.icon),n.label))));function Kd(e,t,n){if(n)return{changed:!1,key:e,item:null};const r=t?$o(t):null;return r===e?{changed:!1,key:r,item:null}:{changed:!0,key:r,item:t}}const qd=({active:e,selected:t,onReplace:n,onAdd:r,onToggle:o,onClear:l,onActivate:i,onHover:u,onMarqueePreview:a})=>{var j;const c=$.useRef(null),p=$.useRef(null),[h,g]=$.useState(null),x=$.useRef(null),C=$.useRef(null),k=$.useRef(null),y=$.useCallback(()=>{var P;return((P=c.current)==null?void 0:P.parentElement)??null},[]),d=$.useCallback(P=>{var O;!e||P.button!==0||(p.current={x:P.clientX,y:P.clientY,additive:P.shiftKey||P.metaKey||P.ctrlKey},g(Co(P.clientX,P.clientY,P.clientX,P.clientY)),(O=c.current)==null||O.setPointerCapture(P.pointerId),x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),k.current!==null&&(k.current=null,u==null||u(null)))},[e,u]),f=$.useCallback(P=>{if(p.current){const O=p.current,B=Co(O.x,O.y,P.clientX,P.clientY);g(B),a&&(C.current={x:P.clientX,y:P.clientY},x.current===null&&(x.current=requestAnimationFrame(()=>{x.current=null;const z=p.current,Z=C.current,D=y();!z||!Z||!D||a(Ud(D,Co(z.x,z.y,Z.x,Z.y)))})));return}u&&(C.current={x:P.clientX,y:P.clientY},x.current===null&&(x.current=requestAnimationFrame(()=>{x.current=null;const O=C.current,B=y();if(!O||!B)return;const z=Kl(B,O.x,O.y),Z=Kd(k.current,z,p.current!==null);Z.changed&&(k.current=Z.key,u(Z.item))})))},[u,a,y]),m=$.useCallback(P=>{var b;const O=p.current;if(p.current=null,g(null),x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),a==null||a([]),!O)return;(b=c.current)==null||b.releasePointerCapture(P.pointerId);const B=y();if(!B)return;if(Math.hypot(P.clientX-O.x,P.clientY-O.y)<Hd){const F=Kl(B,P.clientX,P.clientY);F?o(F):O.additive||l();return}const Z=Co(O.x,O.y,P.clientX,P.clientY),D=Bd(B,Z);O.additive?r(D):n(D)},[y,r,n,o,l,a]),S=$.useCallback(P=>{if(!e||!i)return;const O=y();if(!O)return;const B=Kl(O,P.clientX,P.clientY);B&&i(B)},[e,i,y]),E=$.useCallback(()=>{p.current||(x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),k.current!==null&&(k.current=null,u==null||u(null)))},[u]),T=$.useRef(u);T.current=u;const _=$.useRef(a);if(_.current=a,$.useEffect(()=>()=>{var P,O;x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),k.current!==null&&(k.current=null,(P=T.current)==null||P.call(T,null)),(O=_.current)==null||O.call(_,[])},[]),!e)return null;const L=(j=c.current)==null?void 0:j.getBoundingClientRect(),I=h&&L?{left:h.left-L.left,top:h.top-L.top,width:h.right-h.left,height:h.bottom-h.top}:void 0;return K.createElement("div",{ref:c,className:"mv-marquee-overlay",onPointerDown:d,onPointerMove:f,onPointerUp:m,onPointerLeave:E,onDoubleClick:S},I&&K.createElement("div",{className:"mv-marquee-box",style:I}),K.createElement("span",{hidden:!0},t.size))};function Jd(){const[e,t]=$.useState(new Map),n=$.useCallback(a=>{const c=new Map;for(const p of a)c.set($o(p),p);t(c)},[]),r=$.useCallback(a=>{t(c=>{const p=new Map(c);for(const h of a)p.set($o(h),h);return p})},[]),o=$.useCallback(a=>{t(c=>{const p=new Map(c),h=$o(a);return p.has(h)?p.delete(h):p.set(h,a),p})},[]),l=$.useCallback(()=>t(new Map),[]),i=$.useCallback((a,c)=>e.has(`${a}::${c}`),[e]),u=$.useMemo(()=>Array.from(e.values()),[e]);return{selected:e,items:u,replace:n,add:r,toggle:o,clear:l,isSelected:i}}function Z2(e){const t=new Map;for(const n of e)n.id&&!t.has(n.id)&&t.set(n.id,n);return t}function e3(e,t){if(typeof document>"u")return;const n=new Map,r=document.querySelectorAll(`[${Xi}]`);for(let o=0;o<r.length;o++){const l=r.item(o),i=l.getAttribute(Xi)??"",u=e.get(i);u&&(l.setAttribute(Kn,""),l.setAttribute(qn,u.type),n.set(i,l))}for(const[o,l]of t)n.get(o)!==l&&(l.removeAttribute(Kn),l.removeAttribute(qn));t.clear(),n.forEach((o,l)=>t.set(l,o))}function ca(e){for(const t of e.values())t.removeAttribute(Kn),t.removeAttribute(qn);e.clear()}function t3(e,t){const n=Z2(e),r=()=>e3(n,t);if(typeof document>"u"||typeof MutationObserver>"u")return r(),()=>ca(t);r();const o=new MutationObserver(()=>r());return o.observe(document.documentElement,{childList:!0,subtree:!0}),()=>{o.disconnect(),ca(t)}}function n3(e,t,n){var u;const r=e.parentId?(u=t.get(e.parentId))==null?void 0:u.apiName:void 0,o={elementType:e.type,apiName:e.apiName};r&&(o.parent=r),e.attributes&&Object.keys(e.attributes).length>0&&(o.attributes=e.attributes),e.filePath&&(o.filePath=e.filePath);const i=(e.filePath?e.filePath.split("/").pop():void 0)||n;return i&&(o.fileName=i),o}function r3(e,t,n){const r=Z2(t),o=[];for(const l of e){const i=r.get(l.id);i&&o.push(n3(i,r,n))}return o}function o3(){return K.createElement("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},K.createElement("path",{d:"M14.5 1.5L7 9M14.5 1.5L10 14.5l-3-5.5-5.5-3L14.5 1.5z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}))}const l3=({chips:e,onSubmit:t,onClear:n,onRemove:r,placeholder:o})=>{const[l,i]=$.useState(""),[u,a]=$.useState(!1),c=$.useRef(null),p=e.length,h=p===0,g=e.map(y=>y.title??y.label).sort().join(",");if($.useEffect(()=>{var y;h||(y=c.current)==null||y.focus()},[h]),$.useEffect(()=>{a(!1)},[g]),h)return null;const x=l.trim().length>0,C=()=>{if(!x)return;t(l)&&(a(!0),i(""))},k=y=>{(y.metaKey||y.ctrlKey)&&y.key==="Enter"&&(y.preventDefault(),C())};return K.createElement("div",{className:"vibe-edit-panel",role:"dialog","aria-label":"Edit selected metadata with AI"},K.createElement("div",{className:"vibe-edit-panel__header"},K.createElement("span",{className:"vibe-edit-panel__title"},"Edit Element (",p," Selected)"),K.createElement("button",{className:"vibe-edit-panel__close",onClick:n,"aria-label":"Clear selection",type:"button"},"✕")),K.createElement("div",{className:"vibe-edit-panel__chips"},e.map((y,d)=>K.createElement("span",{className:`vibe-edit-panel__chip ${y.variant==="primary"?"vibe-edit-panel__chip--field":""}`,key:`${y.title??y.label}:${d}`,title:y.title??y.label},K.createElement("span",{className:"vibe-edit-panel__chip-label"},y.label),r&&K.createElement("button",{type:"button",className:"vibe-edit-panel__chip-remove","aria-label":`Remove ${y.label} from selection`,onClick:()=>r(d)},"✕")))),K.createElement("div",{className:"vibe-edit-panel__input-wrap"},K.createElement("textarea",{ref:c,className:"vibe-edit-panel__input",value:l,onChange:y=>i(y.target.value),onKeyDown:k,placeholder:o??"Describe the change you want…",rows:3}),K.createElement("button",{className:"vibe-edit-panel__submit",onClick:C,disabled:!x,type:"button"},K.createElement(o3,null),K.createElement("span",null,"Send to Agent"))),K.createElement("div",{className:"vibe-edit-panel__footer"},K.createElement("span",{className:"vibe-edit-panel__hint"},u?"✓ Sent to agent":"⌘/Ctrl + Enter to send")))};function i3(e){return e.length>0}function s3(e){return{label:e.apiName,title:`${e.elementType}: ${e.apiName}`,variant:e.elementType==="field"?"primary":"default"}}function u3(){return K.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},K.createElement("rect",{x:"1.5",y:"1.5",width:"9",height:"9",stroke:"currentColor",strokeWidth:"1.25",strokeDasharray:"2 1.75"}),K.createElement("path",{d:"M7 7l7 2.6-2.9 0.9-0.9 2.9L7 7z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.5",strokeLinejoin:"round"}))}function a3(e){const{nodes:t,fileName:n,options:r}=e,o=r==null?void 0:r.placeholder,l=(r==null?void 0:r.selectLabel)??"Select",i=(r==null?void 0:r.selectingLabel)??"Selecting",u=(r==null?void 0:r.chipFor)??s3,a=r==null?void 0:r.onActivate,[c,p]=$.useState(!1),[h,g]=$.useState(null),[x,C]=$.useState([]),k=Jd(),y=$.useRef(new Map);$.useEffect(()=>{if(c)return t3(t,y.current)},[c,t]),$.useEffect(()=>{if(typeof document>"u")return;const j=[];if(c)for(const[P,O]of y.current){const B=O.getAttribute(qn)??"";P&&k.isSelected(B,P)&&(O.setAttribute(ia,""),j.push(O))}return()=>{for(const P of j)P.removeAttribute(ia)}},[c,k.selected,t]),$.useEffect(()=>{if(typeof document>"u"||!c)return;const j=new Set;h&&j.add(`${h.type}::${h.id}`);for(const O of x)j.add(`${O.type}::${O.id}`);if(j.size===0)return;const P=[];for(const[O,B]of y.current){const z=B.getAttribute(qn)??"";O&&j.has(`${z}::${O}`)&&(B.setAttribute(sa,""),P.push(B))}return()=>{for(const O of P)O.removeAttribute(sa)}},[c,h,x,t]);const d=$.useMemo(()=>r3(k.items,t,n),[t,k.items,n]),f=$.useMemo(()=>d.map(u),[d,u]),m=$.useCallback(j=>{const P={prompt:j.trim(),attachments:d},O=V2({type:Xn.SUBMIT_EDIT,payload:P});return O&&(k.clear(),p(!1)),O},[d,k]),S=$.useCallback(j=>{const P=k.items[j];P&&k.toggle(P)},[k]),E=$.useCallback((j,P)=>{c&&k.toggle({type:j,id:P})},[c,k]),T=$.useCallback(()=>{p(j=>{const P=!j;return P||(k.clear(),g(null),C([])),P})},[k]);if(!i3(t))return{toggleButton:null,overlay:null,panel:null,selectMode:!1,isSelected:()=>!1,toggle:()=>{}};const _=K.createElement("button",{className:`mv-vibe-edit-toggle ${c?"mv-vibe-edit-toggle--active":""}`,onClick:T,"aria-label":"Select components to edit with AI",title:"Select components to edit with AI",type:"button"},K.createElement(u3,null),K.createElement("span",null,c?i:l)),L=K.createElement(qd,{active:c,selected:k.selected,onReplace:k.replace,onAdd:k.add,onToggle:k.toggle,onClear:k.clear,onActivate:a?j=>a(j.id):void 0,onHover:g,onMarqueePreview:C}),I=K.createElement(l3,{chips:f,onSubmit:m,onClear:k.clear,onRemove:S,placeholder:o});return{toggleButton:_,overlay:L,panel:I,selectMode:c,isSelected:k.isSelected,toggle:E}}const ge={canvasBg:"var(--mv-canvas-bg, #1e1e1e)",bgSurface:"var(--mv-bg-surface, #1e1e1e)",bgSurfaceHover:"var(--mv-bg-surface-hover, #2a2d2e)",bgElevated:"var(--mv-bg-elevated, #252526)",panelBg:"var(--mv-panel-bg, #252526)",panelBorder:"var(--mv-panel-border, #454545)",panelShadow:"var(--mv-panel-shadow, 0 4px 16px rgba(0, 0, 0, 0.16))",borderDefault:"var(--mv-border-default, #454545)",borderStrong:"var(--mv-border-default, #5b5b5b)",separator:"var(--mv-border-default, rgba(229, 229, 238, 0.18))",textPrimary:"var(--mv-text-primary, #cccccc)",textSecondary:"var(--mv-text-secondary, #999999)",textMuted:"var(--mv-text-muted, #656565)",textInverse:"#ffffff",textBright:"var(--mv-text-primary, #f3f3f3)",interactivePrimary:"var(--mv-interactive-primary, #3794ff)",interactivePrimaryFg:"var(--mv-button-primary-fg, #ffffff)",focusBorder:"var(--mv-border-focus, #007fd4)",flowAction:"var(--mv-flow-action, #5867e8)",flowOrchestration:"var(--mv-flow-orchestration, #9050e9)",statusNegative:"var(--mv-status-negative, #f14c4c)",edgeNeutral:"var(--mv-edge-neutral, #9999a0)",dotsColor:"rgba(120, 120, 130, 0.4)",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',fontFamilyMono:'SF Mono, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace',radiusSm:2,radiusMd:4,radiusLg:8,radiusFull:9999,shadowSm:"0 1px 2px 0 rgba(0, 0, 0, 0.12)",shadowMd:"0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1)",shadowXl:"0 20px 25px -5px rgba(0, 0, 0, 0.18), 0 10px 10px -5px rgba(0, 0, 0, 0.1)"},fa=ge,v=ge;function da(e){return Math.min(2.5,Math.max(.05,e))}const rr=e=>({width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0});function c3({size:e=17}){return s.jsxs("svg",{...rr(e),children:[s.jsx("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),s.jsx("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),s.jsx("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),s.jsx("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),s.jsx("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),s.jsx("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"})]})}function f3({size:e=17}){return s.jsxs("svg",{...rr(e),children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),s.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})}function d3({size:e=17}){return s.jsxs("svg",{...rr(e),children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),s.jsx("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),s.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})}function p3({size:e=14}){return s.jsxs("svg",{...rr(e),children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function h3({size:e=14}){return s.jsx("svg",{...rr(e),children:s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}function m3({size:e=14}){return s.jsxs("svg",{...rr(e),children:[s.jsx("path",{d:"M15 3h6v6"}),s.jsx("path",{d:"M9 21H3v-6"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})}function g3({contentWidth:e,contentHeight:t,contentCenterX:n,children:r,overlayTopRight:o,resetKey:l,zoomControlsVariant:i="default",legend:u,overlay:a,onBackgroundClick:c}){const[p,h]=$.useState(1),[g,x]=$.useState({x:0,y:0}),[C,k]=$.useState(!1),[y,d]=$.useState(!1),f=$.useRef(null),m=$.useRef(null),S=$.useCallback((z,Z)=>{h(D=>{const b=da(D+z);if(Z&&b!==D){const F=b/D;x(U=>({x:Z.x-(Z.x-U.x)*F,y:Z.y-(Z.y-U.y)*F}))}return b})},[]),E=$.useRef(e);E.current=e;const T=$.useRef(t);T.current=t;const _=$.useRef(n);_.current=n;const L=$.useCallback((z=1)=>{const Z=f.current,D=E.current;if(!Z||!D){x({x:0,y:0});return}const b=Z.getBoundingClientRect(),F=_.current,U=F!==void 0?b.width/2-F*z:Math.max(0,(b.width-D*z)/2);x({x:U,y:24})},[]),I=$.useCallback(()=>{const z=f.current,Z=E.current,D=T.current;if(!z||!Z||!D)return 1;const b=z.getBoundingClientRect();if(b.width<=0||b.height<=0)return 1;const F=48,U=(b.width-F)/Z,G=(b.height-F)/D;return da(Math.min(1,U,G))},[]),j=$.useCallback(()=>{const z=I();h(z),L(z)},[L,I]),P=$.useRef(p);P.current=p;const O=$.useRef(!1);$.useEffect(()=>{O.current=!1},[l]),$.useLayoutEffect(()=>{if(O.current||!e)return;const z=I();h(z),L(z),O.current=!0},[l,e]);const B=$.useCallback(z=>{var D;if(z.button!==0)return;const Z=z.target;Z.closest("button, a, input, select")||Z.closest("[data-no-pan]")||((D=window.getSelection())==null||D.removeAllRanges(),c==null||c(),m.current={startX:z.clientX,startY:z.clientY,panX:g.x,panY:g.y},k(!0))},[g.x,g.y,c]);return $.useEffect(()=>{if(!C)return;const z=D=>{const b=m.current;b&&x({x:b.panX+(D.clientX-b.startX),y:b.panY+(D.clientY-b.startY)})},Z=()=>{m.current=null,k(!1)};return window.addEventListener("mousemove",z),window.addEventListener("mouseup",Z),window.addEventListener("mouseleave",Z),()=>{window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",Z),window.removeEventListener("mouseleave",Z)}},[C]),$.useEffect(()=>{const z=f.current;if(!z)return;const Z=D=>{const b=D.ctrlKey,F=D.metaKey||D.altKey;if(b||F){D.preventDefault();const U=z.getBoundingClientRect(),G={x:D.clientX-U.left,y:D.clientY-U.top},te=b?.01:.0025;S(-D.deltaY*te,G);return}D.preventDefault(),x(U=>({x:U.x-D.deltaX,y:U.y-D.deltaY}))};return z.addEventListener("wheel",Z,{passive:!1}),()=>z.removeEventListener("wheel",Z)},[S]),s.jsxs("div",{style:{position:"relative",flex:1,overflow:"hidden"},children:[s.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:fa.canvasBg,backgroundImage:`radial-gradient(circle, ${fa.dotsColor} 1px, transparent 1.5px)`,backgroundSize:"22px 22px",pointerEvents:"none"}}),s.jsx("div",{ref:f,onMouseDown:B,style:{position:"relative",height:"100%",width:"100%",overflow:"hidden",overscrollBehavior:"contain",cursor:C?"grabbing":"grab",userSelect:C?"none":"auto"},children:r({zoom:p,pan:g})}),o?s.jsx("div",{style:{position:"absolute",top:12,right:12,zIndex:25},children:o}):null,a,u&&y?u:null,i==="pill"?s.jsx(y3,{zoom:p,onZoomIn:()=>S(.1),onZoomOut:()=>S(-.1),onReset:j,onListClick:u?()=>d(z=>!z):void 0,listActive:y}):s.jsx(v3,{zoom:p,onZoomIn:()=>S(.1),onZoomOut:()=>S(-.1),onReset:j})]})}function y3({zoom:e,onZoomIn:t,onZoomOut:n,onReset:r,onListClick:o,listActive:l}){const i={display:"flex",alignItems:"center",justifyContent:"center",height:34,width:38,border:"none",backgroundColor:"transparent",color:ge.textSecondary,cursor:"pointer",fontFamily:ge.fontFamily};return s.jsxs("div",{className:"mv-zoom-bar",style:{position:"absolute",bottom:16,right:16,display:"flex",alignItems:"center",height:40,padding:"0 4px",borderRadius:ge.radiusLg,border:`1px solid ${ge.borderDefault}`,backgroundColor:ge.panelBg,boxShadow:ge.panelShadow},children:[o?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:o,style:{...i,color:l?ge.interactivePrimary:ge.textSecondary},title:"Legend","aria-label":"Toggle legend","aria-pressed":l,children:s.jsx(c3,{size:17})}),s.jsx("span",{style:{width:1,height:20,backgroundColor:ge.borderDefault}})]}):null,s.jsx("button",{type:"button",onClick:n,style:i,title:"Zoom out",children:s.jsx(f3,{size:17})}),s.jsxs("button",{type:"button",onClick:r,style:{...i,width:"auto",minWidth:52,padding:"0 8px",color:ge.textPrimary,fontSize:13,fontWeight:600,fontVariantNumeric:"tabular-nums"},title:"Reset zoom",children:[Math.round(e*100),"%"]}),s.jsx("button",{type:"button",onClick:t,style:i,title:"Zoom in",children:s.jsx(d3,{size:17})})]})}function v3({zoom:e,onZoomIn:t,onZoomOut:n,onReset:r}){const o={display:"flex",alignItems:"center",justifyContent:"center",height:28,width:28,border:"none",backgroundColor:"transparent",color:ge.textPrimary,cursor:"pointer",fontFamily:ge.fontFamily};return s.jsxs("div",{className:"mv-zoom-bar",style:{position:"absolute",bottom:12,left:12,display:"flex",flexDirection:"column",overflow:"hidden",borderRadius:ge.radiusMd,border:`1px solid ${ge.borderDefault}`,backgroundColor:ge.panelBg,boxShadow:ge.panelShadow},children:[s.jsx("button",{type:"button",onClick:t,style:{...o,borderBottom:`1px solid ${ge.borderDefault}`},title:`Zoom in (${Math.round(e*100)}%)`,children:s.jsx(p3,{size:14})}),s.jsx("button",{type:"button",onClick:n,style:{...o,borderBottom:`1px solid ${ge.borderDefault}`},title:"Zoom out",children:s.jsx(h3,{size:14})}),s.jsx("button",{type:"button",onClick:r,style:o,title:`Reset zoom (${Math.round(e*100)}%)`,children:s.jsx(m3,{size:14})})]})}function Pe({size:e=16,color:t="currentColor",strokeWidth:n=2},r){return s.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:r})}const to=e=>Pe(e,s.jsx("path",{d:"m6 9 6 6 6-6"})),Jn=e=>Pe(e,s.jsx("path",{d:"m9 18 6-6-6-6"})),x3=e=>Pe(e,s.jsx("path",{d:"m15 18-6-6 6-6"})),C3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M18 6 6 18"}),s.jsx("path",{d:"m6 6 12 12"})]})),w3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("polyline",{points:"15 3 21 3 21 9"}),s.jsx("polyline",{points:"9 21 3 21 3 15"}),s.jsx("line",{x1:"21",x2:"14",y1:"3",y2:"10"}),s.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})),S3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("polyline",{points:"4 14 10 14 10 20"}),s.jsx("polyline",{points:"20 10 14 10 14 4"}),s.jsx("line",{x1:"14",x2:"21",y1:"10",y2:"3"}),s.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})),k3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),s.jsx("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),s.jsx("path",{d:"M3 12A9 3 0 0 0 21 12"})]})),E3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),s.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),s.jsx("path",{d:"M10 9H8"}),s.jsx("path",{d:"M16 13H8"}),s.jsx("path",{d:"M16 17H8"})]})),j3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"}),s.jsx("line",{x1:"4",x2:"4",y1:"22",y2:"15"})]})),L3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"6",x2:"6",y1:"3",y2:"15"}),s.jsx("circle",{cx:"18",cy:"6",r:"3"}),s.jsx("circle",{cx:"6",cy:"18",r:"3"}),s.jsx("path",{d:"M18 9a9 9 0 0 1-9 9"})]})),M3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),s.jsx("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),s.jsx("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),s.jsx("line",{x1:"16",x2:"14",y1:"3",y2:"21"})]})),_3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),s.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),s.jsx("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),s.jsx("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]})),P3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"m3 17 2 2 4-4"}),s.jsx("path",{d:"m3 7 2 2 4-4"}),s.jsx("path",{d:"M13 6h8"}),s.jsx("path",{d:"M13 12h8"}),s.jsx("path",{d:"M13 18h8"})]})),T3=e=>Pe(e,s.jsx("path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2"})),I3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("polyline",{points:"4 17 10 11 4 5"}),s.jsx("line",{x1:"12",x2:"20",y1:"19",y2:"19"})]})),N3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("polyline",{points:"4 7 4 4 20 4 20 7"}),s.jsx("line",{x1:"9",x2:"15",y1:"20",y2:"20"}),s.jsx("line",{x1:"12",x2:"12",y1:"4",y2:"20"})]})),R3=e=>Pe(e,s.jsx("path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}));function b2({title:e,open:t,onToggle:n,children:r}){return s.jsxs("div",{style:{borderBottom:`1px solid ${v.separator}`},children:[s.jsxs("button",{type:"button",onClick:n,style:{width:"100%",display:"flex",alignItems:"center",gap:6,padding:"12px 16px",background:"none",border:"none",color:v.textPrimary,cursor:"pointer",fontSize:13,fontWeight:600,fontFamily:v.fontFamily},children:[t?s.jsx(to,{size:14}):s.jsx(Jn,{size:14}),e]}),t?s.jsx("div",{style:{padding:"0 16px 14px 16px"},children:r}):null]})}function bs(e,t){return t?t.selectMode?{"data-mv-id":e,onClick:n=>{n.stopPropagation(),t.onToggle(e)},onMouseEnter:n=>n.currentTarget.setAttribute("data-mv-hover",""),onMouseLeave:n=>n.currentTarget.removeAttribute("data-mv-hover"),style:{cursor:"crosshair",display:"inline-block"}}:{"data-mv-id":e}:{}}function dt({label:e,value:t,rowId:n,selection:r}){const o=n?bs(n,r):{};return s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:10,fontSize:12,padding:"3px 0",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("span",{style:{color:v.textSecondary,fontFamily:v.fontFamilyMono,flexShrink:0,whiteSpace:"nowrap"},children:e}),s.jsx("span",{...o,style:{color:v.textPrimary,fontFamily:v.fontFamilyMono,textAlign:"right",wordBreak:"break-word",minWidth:0,...o.style},children:t})]})}function nn({label:e,value:t,mono:n}){return s.jsxs("div",{style:{marginBottom:8,fontSize:12.5,lineHeight:1.5},children:[s.jsxs("span",{style:{color:v.textMuted},children:[e,": "]}),s.jsx("span",{style:{color:v.textSecondary,fontFamily:n?v.fontFamilyMono:void 0},children:t})]})}function F3({text:e}){return s.jsx("div",{style:{fontSize:12,color:v.textMuted},children:e})}function Ys({onBack:e}){return s.jsxs("button",{type:"button",onClick:e,style:{display:"flex",alignItems:"center",gap:6,background:"none",border:"none",borderBottom:`1px solid ${v.separator}`,color:v.interactivePrimary,cursor:"pointer",fontSize:12,fontWeight:600,fontFamily:v.fontFamily,padding:"10px 16px",textAlign:"left"},children:[s.jsx(x3,{size:14}),"Back to flow"]})}function z3({model:e}){const[t,n]=$.useState(!0);return s.jsxs(b2,{title:"Flow Properties",open:t,onToggle:()=>n(r=>!r),children:[s.jsx(nn,{label:"Label",value:e.label}),e.description?s.jsx(nn,{label:"Description",value:e.description}):null,e.processType?s.jsx(nn,{label:"Type",value:e.processType}):null,e.apiVersion?s.jsx(nn,{label:"API Version",value:e.apiVersion}):null,e.status?s.jsx(nn,{label:"Status",value:e.status}):null,e.interviewLabel?s.jsx(nn,{label:"Interview Label",value:e.interviewLabel}):null,e.canvasMode?s.jsx(nn,{label:"Canvas",value:e.canvasMode==="AUTO_LAYOUT_CANVAS"?"Auto-Layout":"Free-Form"}):null]})}const $3=[{key:"actionOutput",title:"Actions"},{key:"apexVariable",title:"Apex-Defined Variables"},{key:"collectionVariable",title:"Collection Variables"},{key:"constant",title:"Constants"},{key:"decisionOutcome",title:"Decision Outcomes"},{key:"formula",title:"Formulas"},{key:"recordOutput",title:"Record Outputs"},{key:"recordVariable",title:"Record (Single) Variables"},{key:"choice",title:"Choices"},{key:"textTemplate",title:"Text Templates"},{key:"stage",title:"Stages"},{key:"variable",title:"Variables"}];function O3({category:e}){const t={size:15,color:v.textMuted,strokeWidth:2};switch(e){case"actionOutput":return s.jsx(R3,{...t});case"apexVariable":return s.jsx(I3,{...t});case"recordVariable":case"recordOutput":return s.jsx(k3,{...t});case"decisionOutcome":return s.jsx(L3,{...t});case"formula":return s.jsx(T3,{...t});case"constant":return s.jsx(M3,{...t});case"choice":return s.jsx(P3,{...t});case"textTemplate":return s.jsx(E3,{...t});case"stage":return s.jsx(j3,{...t});case"collectionVariable":case"variable":default:return s.jsx(N3,{...t})}}function D3({model:e}){const t=e.resources??[],n=new Map;for(const r of t){const o=n.get(r.category)??[];o.push(r),n.set(r.category,o)}return t.length===0?s.jsx(b2,{title:"Resources",open:!0,onToggle:()=>{},children:s.jsx(F3,{text:"No resources."})}):s.jsxs("div",{style:{borderBottom:`1px solid ${v.separator}`},children:[s.jsx("div",{style:{padding:"12px 16px 4px 16px",fontSize:11,fontWeight:700,letterSpacing:.6,textTransform:"uppercase",color:v.textMuted},children:"Resources"}),$3.map(({key:r,title:o})=>{const l=n.get(r);return!l||l.length===0?null:s.jsx(H3,{category:r,title:o,items:l},r)})]})}function H3({category:e,title:t,items:n}){const[r,o]=$.useState(!0);return s.jsxs("div",{children:[s.jsxs("button",{type:"button",onClick:()=>o(l=>!l),style:{width:"100%",display:"flex",alignItems:"center",gap:6,padding:"6px 16px",background:"none",border:"none",color:v.textPrimary,cursor:"pointer",fontSize:12.5,fontWeight:600,fontFamily:v.fontFamily,textAlign:"left"},children:[r?s.jsx(to,{size:13}):s.jsx(Jn,{size:13}),s.jsx("span",{children:t}),s.jsxs("span",{style:{color:v.textMuted,fontWeight:500},children:["(",n.length,")"]})]}),r?n.map((l,i)=>s.jsx(A3,{resource:l},`${e}-${l.name}-${i}`)):null]})}function A3({resource:e}){const t=[e.dataType,e.detail].filter(Boolean).join(" · ")||e.name;return s.jsxs("div",{title:t,style:{display:"flex",alignItems:"center",gap:9,padding:"5px 16px 5px 34px",cursor:"default"},children:[s.jsx("span",{style:{flexShrink:0,display:"flex"},children:s.jsx(O3,{category:e.category})}),s.jsx("span",{style:{fontSize:12.5,color:v.textPrimary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:e.name})]})}const Y2={start:"#0B827C",end:"#EA001E",interaction:"#1B96FF",logic:"#DD7A01",data:"#FF538A",action:"#032D60"};function ee({size:e=48,title:t,tile:n,shape:r="square",children:o}){const l=Y2[n],i=r==="diamond"?"0 0 68 68":"0 0 48 48";let u;return r==="circle"?u=s.jsx("circle",{cx:"24",cy:"24",r:"24",fill:l}):r==="diamond"?u=s.jsx("rect",{y:"33.9411",width:"48",height:"48",rx:"4",transform:"rotate(-45 0 33.9411)",fill:l}):u=s.jsx("rect",{width:"48",height:"48",rx:"4",fill:l}),s.jsxs("svg",{width:e,height:e,viewBox:i,xmlns:"http://www.w3.org/2000/svg",role:t?"img":"presentation","aria-hidden":t?void 0:!0,fill:"none",children:[t?s.jsx("title",{children:t}):null,u,o]})}function V3(e){return s.jsx(ee,{...e,tile:"start",shape:"circle",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9231 34.8923V13.1077C13.9231 12.4923 14.7231 12.0615 15.2769 12.5538L35.7077 23.2C36.2 23.5692 36.2 24.3692 35.7077 24.7385L15.2769 35.5077C14.7231 35.9385 13.9231 35.5692 13.9231 34.8923Z",fill:"white"})})}function B3(e){return s.jsx(ee,{...e,tile:"end",shape:"circle",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9231 12.9231H35.0769V35.0769H12.9231V12.9231Z",fill:"white"})})}function U3(e){return s.jsx(ee,{...e,tile:"interaction",children:s.jsx("path",{d:"M38.4 12C38.4 10.656 37.344 9.60001 36 9.60001H12C10.656 9.60001 9.6 10.656 9.6 12V28.656C9.6 30 10.656 31.056 12 31.056H36C37.344 31.056 38.4 30 38.4 28.656V12ZM34.8 26.544C34.8 27.024 34.368 27.456 33.888 27.456H14.112C13.632 27.456 13.2 27.024 13.2 26.544V14.112C13.2 13.632 13.632 13.2 14.112 13.2H33.888C34.368 13.2 34.8 13.632 34.8 14.112V26.544ZM19.776 34.8C18.432 34.8 17.376 35.856 17.376 37.2V37.488C17.376 37.968 17.808 38.4 18.288 38.4H29.712C30.192 38.4 30.624 37.968 30.624 37.488V37.2C30.624 35.856 29.568 34.8 28.224 34.8H19.776ZM19.296 24.432H16.608C16.368 24.432 16.128 24.192 16.128 23.952V16.656C16.128 16.368 16.368 16.176 16.608 16.176H19.296C19.536 16.176 19.776 16.368 19.776 16.656V23.952C19.776 24.192 19.536 24.432 19.296 24.432ZM31.392 24.432H23.184C22.944 24.432 22.704 24.192 22.704 23.952V16.656C22.704 16.416 22.944 16.176 23.184 16.176H31.392C31.632 16.176 31.872 16.416 31.872 16.656V23.952C31.872 24.24 31.632 24.432 31.392 24.432Z",fill:"white"})})}function W3(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M10.56 26.352H37.44C37.6946 26.352 37.9388 26.4531 38.1188 26.6332C38.2989 26.8132 38.4 27.0574 38.4 27.312V29.232C38.4 29.4866 38.2989 29.7308 38.1188 29.9108C37.9388 30.0908 37.6946 30.192 37.44 30.192H10.56C10.3054 30.192 10.0612 30.0908 9.88118 29.9108C9.70115 29.7308 9.60001 29.4866 9.60001 29.232V27.312C9.60001 26.784 10.032 26.352 10.56 26.352ZM10.56 17.808H37.44C37.6946 17.808 37.9388 17.9091 38.1188 18.0892C38.2989 18.2692 38.4 18.5134 38.4 18.768V20.688C38.4 20.9426 38.2989 21.1868 38.1188 21.3668C37.9388 21.5468 37.6946 21.648 37.44 21.648H10.56C10.3054 21.648 10.0612 21.5468 9.88118 21.3668C9.70115 21.1868 9.60001 20.9426 9.60001 20.688V18.768C9.60001 18.24 10.032 17.808 10.56 17.808Z",fill:"white"})})}function G3(e){return s.jsx(ee,{...e,tile:"logic",shape:"diamond",children:s.jsx("path",{d:"M48.0514 23.7609L45.5554 21.8889C45.1714 21.6489 44.8354 21.5049 44.4034 21.5049H35.8594V20.4969C35.8594 19.9689 35.4274 19.5369 34.8994 19.5369H32.9794C32.4514 19.5369 32.0194 19.9689 32.0194 20.4969V21.4569H22.4194C21.8914 21.4569 21.4594 21.8889 21.4594 22.4169V26.2569C21.4594 26.7849 21.8914 27.2169 22.4194 27.2169H44.4034C44.8354 27.2169 45.2674 27.1209 45.5554 26.8329L48.0514 24.9609C48.4354 24.6249 48.4354 24.0489 48.0514 23.7609ZM45.4594 32.0169H35.8594V30.5769C35.8594 30.2889 35.6674 30.0969 35.3794 30.0969H32.4994C32.2114 30.0969 32.0194 30.2889 32.0194 30.5769V32.0169H23.5234C23.0914 32.0169 22.6594 32.1129 22.3714 32.4009L19.8754 34.2729C19.4434 34.5609 19.4434 35.1849 19.8754 35.5209L22.3714 37.3929C22.7554 37.6329 23.0914 37.7769 23.5234 37.7769H45.4594C45.9874 37.7769 46.4194 37.3449 46.4194 36.8169V32.9769C46.4194 32.4489 45.9874 32.0169 45.4594 32.0169ZM35.8594 44.3049V41.9529C35.8594 41.6649 35.6674 41.4729 35.3794 41.4729H32.4994C32.2114 41.4729 32.0194 41.6649 32.0194 41.9529V44.3049C30.0994 44.8329 29.0434 45.9849 28.7074 47.4249C28.6114 47.8569 28.9474 48.3369 29.4274 48.3369H38.4994C38.9794 48.3369 39.3634 47.9049 39.2194 47.4249C38.8834 45.9849 37.7794 44.8809 35.8594 44.3049Z",fill:"white"})})}function Z3(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M36.72 27.984L36.672 28.08L36.144 29.664L35.376 31.296C34.8 32.352 34.08 33.312 33.216 34.176C31.5416 35.9669 29.3951 37.2481 27.024 37.872C24.8385 38.4767 22.5372 38.5307 20.3257 38.0289C18.1142 37.5272 16.0615 36.4855 14.3509 34.9969C12.6403 33.5082 11.3251 31.619 10.5228 29.498C9.72055 27.377 9.45619 25.0903 9.75335 22.8422C10.0505 20.5941 10.8999 18.4546 12.2258 16.6149C13.5516 14.7752 15.3125 13.2926 17.3511 12.2995C19.3898 11.3065 21.6427 10.8339 23.9085 10.924C26.1744 11.0141 28.3827 11.6641 30.336 12.816H30.384C31.6273 13.5047 32.7336 14.4158 33.648 15.504C34.08 15.888 34.416 15.648 34.416 15.072V10.56C34.416 10.032 34.848 9.59998 35.376 9.59998H37.296C37.824 9.59998 38.256 10.032 38.352 10.56V22.32C38.352 22.752 37.968 23.184 37.488 23.184H25.728C25.2 23.184 24.816 22.8 24.816 22.272V20.256C24.816 19.728 25.248 19.296 25.776 19.296H30.288C30.672 19.296 30.96 19.2 31.104 18.96C29.8335 17.2199 28.0172 15.9552 25.9445 15.3673C23.8717 14.7794 21.6618 14.9022 19.667 15.7161C17.6722 16.5301 16.0072 17.9883 14.9373 19.8584C13.8675 21.7286 13.4544 23.903 13.764 26.0351C14.0735 28.1673 15.0877 30.1345 16.6451 31.6233C18.2025 33.112 20.2134 34.0367 22.3574 34.2498C24.5013 34.463 26.6549 33.9524 28.4749 32.7994C30.295 31.6464 31.6767 29.9175 32.4 27.888C32.4 27.888 32.544 27.024 33.216 27.024H35.952C36.336 27.024 36.72 27.312 36.72 27.744V27.984Z",fill:"white"})})}function b3(e){return s.jsx(ee,{...e,tile:"data",children:s.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM31.056 28.896C31.056 29.136 30.816 29.376 30.576 29.376H25.296C25.104 29.376 24.96 29.52 24.96 29.712V34.992C24.96 35.232 24.72 35.472 24.48 35.472H23.52C23.28 35.472 23.04 35.232 23.04 34.992V29.712C23.04 29.52 22.896 29.376 22.704 29.376H17.424C17.184 29.376 16.944 29.136 16.944 28.896V27.936C16.944 27.696 17.184 27.456 17.424 27.456H22.704C22.896 27.456 23.04 27.312 23.04 27.12V21.84C23.04 21.6 23.28 21.36 23.52 21.36H24.48C24.72 21.36 24.96 21.6 24.96 21.84V27.12C24.96 27.312 25.104 27.456 25.296 27.456H30.576C30.816 27.456 31.056 27.696 31.056 27.936V28.896Z",fill:"white"})})}function Y3(e){return s.jsx(ee,{...e,tile:"data",children:s.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM30.864 34.848L30.24 35.472C30.096 35.616 29.808 35.616 29.616 35.472L25.728 31.584C24.624 32.352 23.232 32.784 21.696 32.592C20.5007 32.4224 19.394 31.8656 18.5454 31.0069C17.6967 30.1483 17.153 29.0351 16.9975 27.8379C16.8419 26.6407 17.0832 25.4255 17.6842 24.3785C18.2852 23.3315 19.213 22.5104 20.3252 22.041C21.4375 21.5717 22.673 21.4798 23.8424 21.7797C25.0118 22.0795 26.0507 22.7544 26.7999 23.7011C27.5491 24.6477 27.9673 25.8139 27.9904 27.0209C28.0136 28.228 27.6404 29.4093 26.928 30.384L30.816 34.272C31.056 34.368 31.056 34.656 30.864 34.848ZM22.512 23.28C21.5063 23.28 20.5418 23.6795 19.8306 24.3906C19.1195 25.1018 18.72 26.0663 18.72 27.072C18.72 28.0777 19.1195 29.0422 19.8306 29.7533C20.5418 30.4645 21.5063 30.864 22.512 30.864C23.5177 30.864 24.4822 30.4645 25.1933 29.7533C25.9045 29.0422 26.304 28.0777 26.304 27.072C26.304 26.0663 25.9045 25.1018 25.1933 24.3906C24.4822 23.6795 23.5177 23.28 22.512 23.28Z",fill:"white"})})}function Q3(e){return s.jsx(ee,{...e,tile:"data",children:s.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM28.8 26.64L21.12 34.32H21.168L17.808 35.28C17.472 35.376 17.184 35.04 17.28 34.704L18.24 31.392L25.92 23.712C26.016 23.616 26.208 23.616 26.352 23.712L28.8 26.256C28.896 26.352 28.896 26.544 28.8 26.64ZM31.008 24.432L30.048 25.392C29.952 25.488 29.76 25.488 29.616 25.392L27.12 22.896C27.024 22.8 27.024 22.608 27.12 22.464L28.08 21.504C28.512 21.024 29.232 21.024 29.712 21.504L30.96 22.752C31.488 23.232 31.488 23.952 31.008 24.432Z",fill:"white"})})}function X3(e){return s.jsxs(ee,{...e,tile:"data",children:[s.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36Z",fill:"white"}),s.jsx("path",{d:"M34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM28.992 33.888C28.992 34.704 28.368 35.376 27.504 35.376H20.496C19.68 35.376 19.008 34.752 19.008 33.888V27.648C19.008 27.408 19.2 27.216 19.44 27.216H28.56C28.8 27.216 28.992 27.408 28.992 27.648V33.888ZM30.144 24.912C30.144 25.152 29.952 25.344 29.712 25.344H18.288C18.048 25.344 17.856 25.152 17.856 24.912V24.048C17.856 23.808 18.048 23.616 18.288 23.616H21.936V22.464C21.936 21.84 22.464 21.312 23.088 21.312H24.864C25.488 21.312 26.016 21.84 26.016 22.464V23.616H29.664C29.904 23.616 30.096 23.808 30.096 24.048V24.912H30.144Z",fill:"white"}),s.jsx("path",{d:"M22.848 29.28H22.272C22.08 29.28 21.984 29.376 21.984 29.568V32.976C21.984 33.168 22.08 33.264 22.272 33.264H22.848C23.04 33.264 23.136 33.168 23.136 32.976V29.568C23.136 29.376 22.992 29.28 22.848 29.28ZM25.776 29.28H25.2C25.008 29.28 24.912 29.376 24.912 29.568V32.976C24.912 33.168 25.008 33.264 25.2 33.264H25.776C25.968 33.264 26.064 33.168 26.064 32.976V29.568C26.064 29.376 25.92 29.28 25.776 29.28ZM24.576 22.416H23.424C23.232 22.416 23.136 22.512 23.136 22.704V23.568H24.912V22.704C24.864 22.512 24.768 22.416 24.576 22.416Z",fill:"white"})]})}function K3(e){return s.jsxs(ee,{...e,tile:"data",children:[s.jsx("path",{d:"M13.488 23.04C13.44 23.376 13.44 23.664 13.44 24H10.56C10.56 23.664 10.56 23.376 10.608 23.04H13.488ZM24.72 17.28H23.28C22.896 17.28 22.56 17.616 22.56 18V24.288C22.56 24.48 22.656 24.672 22.752 24.816L26.784 28.848C27.072 29.136 27.504 29.136 27.792 28.848L28.8 27.84C29.088 27.552 29.088 27.12 28.8 26.832L25.44 23.424V18C25.44 17.616 25.104 17.28 24.72 17.28Z",fill:"white"}),s.jsx("path",{d:"M24 10.56C16.896 10.56 11.088 16.08 10.608 23.04C10.608 23.184 10.56 23.376 10.56 23.52H8.40001C7.77601 23.52 7.44001 24.24 7.82401 24.672L11.424 29.04C11.712 29.376 12.24 29.376 12.528 29.04L16.128 24.672C16.512 24.192 16.176 23.52 15.552 23.52H13.44V23.04C13.92 17.664 18.48 13.44 23.952 13.44C30.192 13.44 35.136 18.864 34.464 25.2C33.984 29.76 29.664 34.08 25.056 34.512C21.648 34.848 18.432 33.6 16.176 31.152C15.888 30.816 15.504 30.624 15.12 31.104L13.968 32.496C13.728 32.784 13.92 32.976 14.16 33.216C16.752 35.952 20.304 37.488 24.144 37.44C31.056 37.344 36.864 31.872 37.344 24.96C37.968 17.136 31.728 10.56 24 10.56Z",fill:"white"})]})}function q3(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M22.368 11.3759L21.36 10.3679C21.072 10.0799 20.64 10.0799 20.352 10.3679L14.016 16.7039L11.472 14.1599C11.184 13.8719 10.752 13.8719 10.464 14.1599L9.45599 15.1679C9.16799 15.4559 9.16799 15.8879 9.45599 16.1759L13.008 19.7279C13.138 19.8644 13.2944 19.973 13.4677 20.0473C13.6409 20.1216 13.8275 20.1599 14.016 20.1599C14.2045 20.1599 14.3911 20.1216 14.5643 20.0473C14.7376 19.973 14.894 19.8644 15.024 19.7279L22.368 12.3839C22.608 12.1439 22.608 11.6639 22.368 11.3759ZM36.96 18.2399H24.48C23.952 18.2399 23.52 17.8079 23.52 17.2799V15.3599C23.52 14.8319 23.952 14.3999 24.48 14.3999H36.96C37.488 14.3999 37.92 14.8319 37.92 15.3599V17.2799C37.92 17.8079 37.488 18.2399 36.96 18.2399ZM36.96 26.8799H21.6C21.072 26.8799 20.64 26.4479 20.64 25.9199V23.9999C20.64 23.4719 21.072 23.0399 21.6 23.0399H36.96C37.488 23.0399 37.92 23.4719 37.92 23.9999V25.9199C37.92 26.4479 37.488 26.8799 36.96 26.8799ZM15.84 26.8799H13.92C13.392 26.8799 12.96 26.4479 12.96 25.9199V23.9999C12.96 23.4719 13.392 23.0399 13.92 23.0399H15.84C16.368 23.0399 16.8 23.4719 16.8 23.9999V25.9199C16.8 26.4479 16.368 26.8799 15.84 26.8799ZM15.84 35.5199H13.92C13.392 35.5199 12.96 35.0879 12.96 34.5599V32.6399C12.96 32.1119 13.392 31.6799 13.92 31.6799H15.84C16.368 31.6799 16.8 32.1119 16.8 32.6399V34.5599C16.8 35.0879 16.368 35.5199 15.84 35.5199ZM36.96 35.5199H21.6C21.072 35.5199 20.64 35.0879 20.64 34.5599V32.6399C20.64 32.1119 21.072 31.6799 21.6 31.6799H36.96C37.488 31.6799 37.92 32.1119 37.92 32.6399V34.5599C37.92 35.0879 37.488 35.5199 36.96 35.5199Z",fill:"white"})})}function J3(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M38.352 14.736C37.104 12.288 33.936 7.728 28.032 10.416L22.32 13.056L17.04 15.36C15.552 16.08 12.288 15.072 10.464 14.4C9.93599 14.208 9.45599 14.784 9.69599 15.312C10.944 17.76 14.112 22.32 20.016 19.632C23.664 17.952 31.008 14.784 31.008 14.784C32.496 14.064 35.76 15.072 37.584 15.744C38.112 15.84 38.592 15.312 38.352 14.736ZM25.68 22.464C25.008 22.848 22.368 24.048 22.368 24.048L19.728 25.2C18.432 25.92 15.6 24.96 13.92 24.288C13.44 24.048 13.008 24.672 13.248 25.152C14.304 27.552 17.136 31.872 22.32 29.232C25.536 27.6 28.272 26.544 28.272 26.544C29.568 25.824 32.4 26.784 34.08 27.456C34.56 27.648 34.992 27.072 34.752 26.544C33.648 24.144 30.816 19.824 25.68 22.464ZM23.76 33.072L22.32 33.936C21.312 34.56 19.2 33.744 17.952 33.12C17.616 32.928 17.28 33.504 17.472 33.984C18.24 36.144 20.352 40.032 24.24 37.632L25.68 36.768C26.736 36.24 28.8 36.96 30.048 37.536C30.384 37.728 30.72 37.152 30.528 36.672C29.76 34.56 27.792 30.864 23.76 33.072Z",fill:"white"})})}function e4(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M24 9.59998C16.08 9.59998 9.60001 16.08 9.60001 24C9.60001 31.92 16.08 38.4 24 38.4C31.92 38.4 38.4 31.92 38.4 24C38.4 16.08 31.92 9.59998 24 9.59998ZM24 35.52C17.664 35.52 12.48 30.336 12.48 24C12.48 17.664 17.664 12.48 24 12.48C30.336 12.48 35.52 17.664 35.52 24C35.52 30.336 30.336 35.52 24 35.52ZM25.44 23.424V17.28C25.44 16.752 25.008 16.32 24.48 16.32H23.52C22.992 16.32 22.56 16.752 22.56 17.28V24C22.56 24.384 22.704 24.768 22.992 25.008L27.6 29.616C27.984 30 28.56 30 28.944 29.616L29.616 28.944C30 28.56 30 27.984 29.616 27.6L25.44 23.424Z",fill:"white"})})}function t4(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M36.96 9.59998H10.08C9.168 9.59998 8.736 10.608 9.312 11.28L20.928 25.008C21.312 25.44 21.456 26.016 21.456 26.592V37.488C21.456 37.968 21.936 38.4 22.416 38.4H24.528C25.008 38.4 25.392 37.968 25.392 37.488V26.64C25.392 26.016 25.632 25.488 26.064 25.056L37.728 11.328C38.304 10.656 37.872 9.59998 36.96 9.59998Z",fill:"white"})})}function n4(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M24.432 18.096C24.768 17.76 24.768 17.184 24.432 16.848L17.568 9.93602C17.232 9.60002 16.656 9.60002 16.32 9.93602L9.456 16.848C9.12 17.184 9.12 17.76 9.456 18.096L10.704 19.344C11.04 19.68 11.616 19.68 11.952 19.344L14.112 17.184C14.448 16.848 15.12 17.088 15.12 17.616V30.288C15.12 30.768 15.552 31.2 16.032 31.2H17.808C18.288 31.2 18.72 30.72 18.72 30.288V17.616C18.72 17.088 19.392 16.848 19.728 17.184L21.888 19.344C22.224 19.68 22.8 19.68 23.136 19.344L24.432 18.096ZM37.584 30.048L36.336 28.848C36 28.512 35.424 28.512 35.088 28.848L32.928 31.008C32.592 31.344 31.92 31.104 31.92 30.576V17.808C31.92 17.328 31.488 16.896 31.008 16.896H29.232C28.752 16.896 28.32 17.376 28.32 17.808V30.48C28.32 31.008 27.648 31.248 27.312 30.912L25.152 28.752C24.816 28.416 24.24 28.416 23.904 28.752L22.656 30.048C22.32 30.384 22.32 30.96 22.656 31.296L29.52 38.16C29.856 38.496 30.432 38.496 30.768 38.16L37.632 31.296C37.968 30.96 37.968 30.336 37.584 30.048Z",fill:"white"})})}function r4(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M35.088 21.024C35.6787 21.0185 36.2602 21.1711 36.7721 21.466C37.284 21.7609 37.7077 22.1874 37.9993 22.7012C38.2909 23.215 38.4398 23.7974 38.4304 24.3881C38.4211 24.9788 38.254 25.5563 37.9463 26.0606C37.6387 26.565 37.2017 26.9778 36.6808 27.2564C36.1598 27.535 35.5738 27.6692 34.9835 27.6451C34.3932 27.621 33.8202 27.4394 33.3237 27.1192C32.8272 26.799 32.4254 26.3518 32.16 25.824H31.632C28.368 25.824 27.264 26.832 25.44 30.192L25.344 30.384L25.2 30.624C24.144 32.64 23.52 33.552 22.416 34.56C20.832 35.904 18.864 36.624 16.176 36.624H15.84C15.5007 37.2852 14.949 37.813 14.2735 38.1227C13.5979 38.4324 12.8379 38.5059 12.1155 38.3314C11.3932 38.1569 10.7505 37.7445 10.2908 37.1606C9.83119 36.5767 9.58127 35.8551 9.58127 35.112C9.58127 34.3689 9.83119 33.6473 10.2908 33.0634C10.7505 32.4795 11.3932 32.0671 12.1155 31.8926C12.8379 31.7181 13.5979 31.7916 14.2735 32.1013C14.949 32.411 15.5007 32.9388 15.84 33.6H16.368C19.68 33.552 20.784 32.544 22.656 28.992L22.8 28.752C23.3193 27.7129 23.9467 26.7314 24.672 25.824H15.84C15.5007 26.4852 14.949 27.013 14.2735 27.3227C13.5979 27.6324 12.8379 27.7059 12.1155 27.5314C11.3932 27.3569 10.7505 26.9445 10.2908 26.3606C9.83119 25.7767 9.58127 25.0551 9.58127 24.312C9.58127 23.5689 9.83119 22.8473 10.2908 22.2634C10.7505 21.6795 11.3932 21.2671 12.1155 21.0926C12.8379 20.9181 13.5979 20.9916 14.2735 21.3013C14.949 21.611 15.5007 22.1388 15.84 22.8H32.16C32.4321 22.2794 32.8378 21.8406 33.3355 21.5285C33.8332 21.2164 34.4049 21.0423 34.992 21.024H35.088ZM35.088 9.6C35.6787 9.5945 36.2602 9.74711 36.7721 10.042C37.284 10.3369 37.7077 10.7634 37.9993 11.2772C38.2909 11.791 38.4398 12.3734 38.4304 12.9641C38.4211 13.5548 38.254 14.1323 37.9463 14.6366C37.6387 15.141 37.2017 15.5538 36.6808 15.8324C36.1598 16.111 35.5738 16.2452 34.9835 16.2211C34.3932 16.197 33.8202 16.0154 33.3237 15.6952C32.8272 15.375 32.4254 14.9278 32.16 14.4H15.84C15.5051 15.066 14.9553 15.5995 14.2796 15.9142C13.6039 16.229 12.8417 16.3066 12.1164 16.1345C11.3911 15.9624 10.7451 15.5507 10.2828 14.9659C9.82055 14.3811 9.56908 13.6574 9.56908 12.912C9.56908 12.1666 9.82055 11.4429 10.2828 10.8581C10.7451 10.2733 11.3911 9.86158 12.1164 9.68948C12.8417 9.51737 13.6039 9.59498 14.2796 9.90975C14.9553 10.2245 15.5051 10.758 15.84 11.424H32.16C32.4334 10.8803 32.8513 10.4225 33.3678 10.1007C33.8843 9.77893 34.4795 9.60569 35.088 9.6Z",fill:"white"})})}function Q2(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M25.824 10.512L24 19.248C23.9924 19.3192 24.0009 19.3912 24.0248 19.4587C24.0486 19.5262 24.0873 19.5875 24.1379 19.6381C24.1885 19.6887 24.2498 19.7274 24.3173 19.7512C24.3848 19.7751 24.4568 19.7836 24.528 19.776H33.888C34.0484 19.7828 34.2045 19.8298 34.342 19.9125C34.4795 19.9952 34.5941 20.1112 34.6753 20.2496C34.7565 20.3881 34.8016 20.5447 34.8067 20.7052C34.8117 20.8656 34.7764 21.0247 34.704 21.168L24.48 37.92C24.3767 38.0825 24.2247 38.2082 24.0456 38.279C23.8665 38.3499 23.6696 38.3622 23.4831 38.3142C23.2966 38.2662 23.13 38.1605 23.0073 38.0121C22.8846 37.8636 22.812 37.6802 22.8 37.488L24.624 27.168C24.624 26.832 24.288 26.976 23.952 26.976L14.112 26.928C13.488 26.928 13.008 25.968 13.344 25.392L24.144 10.08C24.2473 9.91744 24.3993 9.79176 24.5784 9.72094C24.7575 9.65013 24.9544 9.63782 25.1409 9.68578C25.3274 9.73374 25.494 9.8395 25.6167 9.98792C25.7394 10.1363 25.8119 10.3198 25.824 10.512Z",fill:"white"})})}function o4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M37.44 32.4H21.312C20.832 32.4 20.4 32.832 20.4 33.312V35.088C20.4 35.568 20.832 36 21.312 36H37.44C37.92 36 38.352 35.568 38.352 35.088V33.312C38.352 32.784 37.92 32.4 37.44 32.4ZM23.616 21.504L12.048 12.192C11.712 11.904 11.136 11.952 10.848 12.384L9.83999 13.824C9.55199 14.256 9.64799 14.784 10.032 15.072L18.24 21.648C18.528 21.888 18.528 22.368 18.24 22.608L9.98399 29.232C9.64799 29.52 9.50399 30.144 9.79199 30.48L10.8 32.016C11.088 32.448 11.616 32.496 12 32.208L23.616 22.944C24.096 22.56 24.096 21.84 23.616 21.504Z",fill:"white"})})}function l4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M24.096 19.2L30.816 12.48C31.152 12.144 31.152 11.568 30.816 11.232L29.376 9.79201C29.04 9.45601 28.464 9.45601 28.128 9.79201L21.408 16.512L24.096 19.2ZM31.488 26.784L38.208 20.064C38.544 19.728 38.544 19.152 38.208 18.816L36.768 17.376C36.432 17.04 35.856 17.04 35.52 17.376L28.8 24.096L31.488 26.784ZM30.528 32.352L30.768 31.872C30.816 31.632 30.768 31.392 30.624 31.2L30.528 31.056L16.896 17.424C16.752 17.232 16.464 17.184 16.272 17.184C15.984 17.184 15.792 17.328 15.6 17.472L15.264 17.808L15.072 18.048L14.832 18.336L14.592 18.72L14.352 19.2L14.064 19.728L13.824 20.352L13.584 21.072L13.344 21.888L13.152 22.848L12.96 23.904L12.816 25.056L12.72 26.352V27.792L12.768 29.376L12.864 31.104L12.912 31.584H13.008L9.88799 34.704C9.55199 35.04 9.55199 35.616 9.88799 35.952L12.096 38.16C12.432 38.496 13.008 38.496 13.344 38.16L16.464 35.04C17.568 35.136 18.72 35.232 19.872 35.232C20.832 35.232 21.744 35.232 22.704 35.136C24.5963 35 26.4572 34.5792 28.224 33.888L29.232 33.36C29.664 33.072 30.096 32.784 30.432 32.4L30.528 32.352Z",fill:"white"})})}function i4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M23.376 26.4C23.76 26.736 24.288 26.736 24.672 26.4L38.256 13.824C38.496 13.344 38.448 12.576 37.488 12.576L10.608 12.624C9.88802 12.624 9.31202 13.296 9.84002 13.872L23.376 26.4ZM38.4 19.2C38.4 18.576 37.632 18.24 37.2 18.672L26.64 28.464C25.92 29.136 25.008 29.472 24.048 29.472C23.088 29.472 22.176 29.136 21.456 28.464L10.848 18.672C10.745 18.5798 10.6176 18.5192 10.481 18.4975C10.3445 18.4758 10.2046 18.4939 10.078 18.5496C9.95144 18.6053 9.8436 18.6962 9.76735 18.8115C9.6911 18.9269 9.64967 19.0617 9.64802 19.2V31.68C9.64802 33.264 10.944 34.56 12.528 34.56H35.568C37.152 34.56 38.448 33.264 38.448 31.68L38.4 19.2Z",fill:"white"})})}function s4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M7.296 32.736L14.112 24.48C14.304 24.144 14.304 23.76 14.112 23.472L7.296 15.312L7.2 15.024C7.2 14.736 7.44 14.544 7.68 14.544H17.616C17.904 14.544 18.144 14.64 18.288 14.88L25.44 23.52C25.632 23.808 25.632 24.192 25.44 24.528L18.336 33.168C18.192 33.36 17.904 33.504 17.664 33.504H7.728C7.44 33.504 7.248 33.312 7.248 33.024C7.2 32.928 7.248 32.784 7.296 32.736ZM22.464 32.736L29.232 24.48C29.424 24.144 29.424 23.76 29.232 23.472L22.416 15.312L22.32 15.024C22.32 14.736 22.56 14.544 22.8 14.544H32.736C33.024 14.544 33.264 14.64 33.408 14.88L40.56 23.52C40.752 23.808 40.752 24.192 40.56 24.528L33.456 33.168C33.312 33.36 33.024 33.504 32.784 33.504H22.848C22.56 33.504 22.368 33.312 22.368 33.024L22.464 32.736Z",fill:"white"})})}function u4(e){return s.jsxs(ee,{...e,tile:"action",children:[s.jsx("path",{d:"M22.8 12.48C20.352 12.624 18.384 14.592 18.24 17.04C18.336 14.544 20.304 12.576 22.8 12.48ZM27.84 17.04C27.696 14.592 25.728 12.624 23.28 12.48C25.776 12.576 27.744 14.544 27.84 17.04ZM30.528 26.304L25.632 24.624C25.248 24.48 24.96 24.144 24.96 23.712V17.184C24.96 16.176 24.144 15.36 23.136 15.36H22.944C21.936 15.36 21.12 16.176 21.12 17.184V30.096C21.12 31.2 19.728 31.632 19.152 30.672L17.904 28.032C17.7485 27.7639 17.5382 27.5316 17.287 27.3502C17.0358 27.1688 16.7492 27.0422 16.4458 26.9788C16.1425 26.9155 15.8292 26.9166 15.5264 26.9823C15.2235 27.048 14.9378 27.1767 14.688 27.36L13.92 27.936L18.048 37.728C18.24 38.16 18.624 38.4 19.104 38.4H29.952C30.48 38.4 30.912 38.016 31.056 37.536L32.976 30.672C33.36 28.8 32.304 26.928 30.528 26.304Z",fill:"white"}),s.jsx("path",{d:"M18.24 22.176V17.04C18.384 14.592 20.352 12.624 22.8 12.48H23.28C25.728 12.624 27.696 14.592 27.84 17.04V22.176C27.84 22.608 28.368 22.8 28.656 22.512C29.6766 21.4179 30.3554 20.0494 30.6089 18.5749C30.8625 17.1003 30.6798 15.5837 30.0833 14.2115C29.4867 12.8393 28.5024 11.6713 27.2511 10.8509C25.9999 10.0304 24.5362 9.59338 23.04 9.59338C21.5438 9.59338 20.0801 10.0304 18.8289 10.8509C17.5776 11.6713 16.5933 12.8393 15.9967 14.2115C15.4002 15.5837 15.2175 17.1003 15.4711 18.5749C15.7246 20.0494 16.4034 21.4179 17.424 22.512C17.712 22.8 18.24 22.608 18.24 22.176Z",fill:"white"})]})}function pa(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M38.4 12C38.4 10.656 37.344 9.60001 36 9.60001H12C10.656 9.60001 9.60001 10.656 9.60001 12V28.656C9.60001 30 10.656 31.056 12 31.056H36C37.344 31.056 38.4 30 38.4 28.656V12ZM34.8 26.544C34.8 27.024 34.368 27.456 33.888 27.456H14.112C13.632 27.456 13.2 27.024 13.2 26.544V14.112C13.2 13.632 13.632 13.2 14.112 13.2H33.888C34.368 13.2 34.8 13.632 34.8 14.112V26.544ZM19.776 34.8C18.432 34.8 17.376 35.856 17.376 37.2V37.488C17.376 37.968 17.808 38.4 18.288 38.4H29.712C30.192 38.4 30.624 37.968 30.624 37.488V37.2C30.624 35.856 29.568 34.8 28.224 34.8H19.776ZM19.296 24.432H16.608C16.368 24.432 16.128 24.192 16.128 23.952V16.656C16.128 16.368 16.368 16.176 16.608 16.176H19.296C19.536 16.176 19.776 16.368 19.776 16.656V23.952C19.776 24.192 19.536 24.432 19.296 24.432ZM31.392 24.432H23.184C22.944 24.432 22.704 24.192 22.704 23.952V16.656C22.704 16.416 22.944 16.176 23.184 16.176H31.392C31.632 16.176 31.872 16.416 31.872 16.656V23.952C31.872 24.24 31.632 24.432 31.392 24.432Z",fill:"white"})})}function a4({size:e=48,title:t}){return s.jsxs("svg",{width:e,height:e,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"presentation","aria-hidden":t?void 0:!0,fill:"none",children:[t?s.jsx("title",{children:t}):null,s.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"4",fill:Y2.action}),s.jsx("path",{d:"M25.024 26.464C24.5135 26.4546 24.0172 26.2945 23.5973 26.004C23.1774 25.7135 22.8526 25.3055 22.6638 24.8311C22.475 24.3567 22.4304 23.8371 22.5358 23.3376C22.6412 22.838 22.8917 22.3806 23.2561 22.0229C23.6204 21.6652 24.0823 21.423 24.5837 21.3269C25.0852 21.2307 25.6039 21.2847 26.0747 21.4822C26.5455 21.6798 26.9475 22.0119 27.2303 22.4371C27.513 22.8622 27.6639 23.3614 27.664 23.872C27.6641 24.2165 27.5955 24.5575 27.4622 24.8751C27.329 25.1928 27.1337 25.4807 26.8879 25.722C26.6421 25.9633 26.3507 26.1533 26.0307 26.2807C25.7106 26.4081 25.3684 26.4704 25.024 26.464ZM41.104 30.736L37.648 25.552V25.12C37.648 22.073 36.4409 19.1501 34.2909 16.9911C32.1408 14.832 29.223 13.6127 26.176 13.6C25.2532 13.592 24.3334 13.7049 23.44 13.936C20.9403 14.5499 18.7196 15.9866 17.1351 18.0151C15.5506 20.0436 14.6944 22.546 14.704 25.12C14.6393 27.2814 15.2427 29.4101 16.432 31.216C18.448 34.096 19.792 36.4 18.976 39.52C18.8786 39.8658 18.867 40.2302 18.9422 40.5815C19.0175 40.9328 19.1774 41.2605 19.408 41.536C19.6065 41.8071 19.8669 42.0269 20.1674 42.1772C20.468 42.3274 20.8 42.4038 21.136 42.4H30.544C31.0745 42.4098 31.5915 42.2323 32.0041 41.8987C32.4167 41.5651 32.6985 41.0968 32.8 40.576C32.8553 40.3886 32.8876 40.1952 32.896 40C32.9418 39.7288 33.0831 39.483 33.2944 39.3069C33.5057 39.1308 33.773 39.0362 34.048 39.04H34.72C35.2244 39.0596 35.7208 38.9094 36.1298 38.6136C36.5388 38.3177 36.8368 37.8932 36.976 37.408C37.3965 35.9057 37.6382 34.359 37.696 32.8H40.144C40.3708 32.7723 40.5868 32.6872 40.7715 32.5529C40.9563 32.4185 41.1038 32.2392 41.2 32.032C41.2906 31.8245 41.3293 31.598 41.3125 31.3721C41.2958 31.1463 41.2242 30.9279 41.104 30.736ZM31.6 26.704L31.12 27.472C31.0207 27.6076 30.8906 27.7175 30.7403 27.7926C30.59 27.8677 30.424 27.9059 30.256 27.904C30.1422 27.9047 30.029 27.8885 29.92 27.856L28.672 27.376C28.1225 27.8462 27.4867 28.2049 26.8 28.432L26.56 29.824C26.5151 30.0441 26.3945 30.2415 26.2191 30.3818C26.0437 30.5222 25.8246 30.5965 25.6 30.592H24.64C24.4154 30.5965 24.1963 30.5222 24.0209 30.3818C23.8455 30.2415 23.7249 30.0441 23.68 29.824L23.44 28.432C22.8036 28.2354 22.2152 27.9084 21.712 27.472L20.32 27.952C20.211 27.9845 20.0978 28.0007 19.984 28C19.8191 27.9929 19.6584 27.9455 19.5161 27.8618C19.3739 27.7781 19.2543 27.6607 19.168 27.52L18.688 26.752C18.5669 26.5634 18.5196 26.3367 18.555 26.1154C18.5904 25.894 18.7061 25.6935 18.88 25.552L20.032 24.64C19.9488 24.31 19.9005 23.9721 19.888 23.632C19.9013 23.3078 19.9496 22.9859 20.032 22.672L18.928 21.712C18.7463 21.5773 18.6212 21.38 18.5769 21.1582C18.5325 20.9365 18.5721 20.7062 18.688 20.512L19.168 19.696C19.255 19.5452 19.3813 19.4208 19.5335 19.3363C19.6857 19.2517 19.858 19.2102 20.032 19.216C20.1482 19.2307 20.2615 19.2631 20.368 19.312L21.712 19.792C22.2362 19.3485 22.8385 19.0066 23.488 18.784L23.68 17.44C23.7154 17.2153 23.8335 17.012 24.0111 16.8699C24.1887 16.7279 24.413 16.6573 24.64 16.672H25.6C25.82 16.6556 26.0386 16.7195 26.2151 16.8519C26.3916 16.9843 26.5142 17.1762 26.56 17.392L26.8 18.736C27.4505 18.9565 28.0532 19.2986 28.576 19.744L29.92 19.264C30.0265 19.2151 30.1398 19.1827 30.256 19.168C30.4291 19.1671 30.5995 19.2108 30.7509 19.2948C30.9022 19.3789 31.0293 19.5005 31.12 19.648L31.6 20.416C31.719 20.6175 31.7603 20.8556 31.7161 21.0854C31.6719 21.3152 31.5453 21.521 31.36 21.664L30.256 22.576C30.3249 22.9075 30.3571 23.2455 30.352 23.584C30.3544 23.9065 30.3222 24.2284 30.256 24.544L31.36 25.456C31.5453 25.599 31.6719 25.8048 31.7161 26.0346C31.7603 26.2644 31.719 26.5025 31.6 26.704Z",fill:"white"})]})}function c4(e){return s.jsxs(ee,{...e,tile:"action",children:[s.jsx("path",{d:"M32.448 9.64801C31.056 9.64801 29.856 10.656 29.376 12.048C30.3191 12.4982 31.1443 13.1621 31.7859 13.987C32.4275 14.8119 32.8679 15.7751 33.072 16.8C34.56 16.464 35.664 15.024 35.664 13.296C35.664 11.232 34.224 9.64801 32.448 9.64801ZM35.424 18.192C34.7979 18.7753 34.0127 19.1596 33.168 19.296C33.024 20.592 32.544 21.792 31.824 22.752H37.152C37.824 22.752 38.352 22.224 38.352 21.552V20.976C38.352 19.68 36.912 18.864 35.424 18.192ZM30.336 24C29.376 24.864 28.176 25.392 26.88 25.392C26.784 26.88 26.352 28.224 25.68 29.376H32.4C32.7819 29.376 33.1482 29.2243 33.4182 28.9542C33.6883 28.6842 33.84 28.3179 33.84 27.936V27.36C33.792 25.776 32.064 24.816 30.336 24ZM24.144 31.296C23.475 31.9765 22.6757 32.5152 21.7939 32.88C20.9121 33.2447 19.9659 33.4281 19.0116 33.4192C18.0574 33.4102 17.1147 33.2091 16.2399 32.8278C15.3652 32.4465 14.5761 31.8929 13.92 31.2C11.712 32.256 9.60001 33.6 9.60001 35.568V36.48C9.60001 37.536 10.464 38.352 11.472 38.352H26.496C27.552 38.352 28.368 37.488 28.368 36.48V35.616C28.368 33.6 26.352 32.304 24.144 31.296Z",fill:"white"}),s.jsx("path",{d:"M19.008 30.432C21.8445 30.432 24.144 27.8962 24.144 24.768C24.144 21.6399 21.8445 19.104 19.008 19.104C16.1715 19.104 13.872 21.6399 13.872 24.768C13.872 27.8962 16.1715 30.432 19.008 30.432Z",fill:"white"}),s.jsx("path",{d:"M26.736 14.16C25.8556 14.1774 25.0079 14.4969 24.335 15.065C23.6622 15.633 23.2049 16.415 23.04 17.28C24.816 18.432 26.112 20.4 26.64 22.656H26.736C28.848 22.656 30.576 20.736 30.576 18.384C30.624 16.08 28.896 14.16 26.736 14.16Z",fill:"white"})]})}function f4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M33.024 9.744C33.9963 9.74587 34.9489 10.0187 35.7748 10.5317C36.6008 11.0448 37.2674 11.7779 37.6999 12.6487C38.1324 13.5196 38.3136 14.4937 38.2234 15.4618C38.1331 16.4299 37.7748 17.3537 37.1887 18.1296C36.6026 18.9054 35.812 19.5026 34.9054 19.8541C33.9989 20.2056 33.0123 20.2976 32.0564 20.1196C31.1005 19.9417 30.2131 19.5009 29.4938 18.8467C28.7744 18.1925 28.2516 17.3508 27.984 16.416H27.792C27.1555 16.416 26.5451 16.6689 26.095 17.1189C25.6449 17.569 25.392 18.1795 25.392 18.816V20.88L28.416 23.904C28.5091 23.9894 28.5835 24.0933 28.6343 24.209C28.6852 24.3246 28.7115 24.4496 28.7115 24.576C28.7115 24.7024 28.6852 24.8274 28.6343 24.943C28.5835 25.0587 28.5091 25.1626 28.416 25.248L27.792 25.92C27.7066 26.0131 27.6027 26.0875 27.4871 26.1383C27.3714 26.1892 27.2464 26.2154 27.12 26.2154C26.9937 26.2154 26.8687 26.1892 26.753 26.1383C26.6373 26.0875 26.5335 26.0131 26.448 25.92L25.44 24.912V29.232C25.4409 30.587 24.9161 31.8895 23.9761 32.8653C23.0361 33.8412 21.7541 34.4143 20.4 34.464H20.016C19.7484 35.3988 19.2256 36.2405 18.5063 36.8947C17.7869 37.5489 16.8996 37.9897 15.9437 38.1676C14.9878 38.3456 14.0012 38.2536 13.0946 37.9021C12.1881 37.5506 11.3974 36.9534 10.8113 36.1776C10.2253 35.4017 9.86698 34.4779 9.7767 33.5098C9.68641 32.5417 9.86769 31.5676 10.3002 30.6967C10.7327 29.8259 11.3993 29.0928 12.2252 28.5797C13.0511 28.0667 14.0037 27.7939 14.976 27.792C16.1123 27.7976 17.2164 28.1696 18.1244 28.8528C19.0324 29.5359 19.6958 30.4938 20.016 31.584H20.208C20.8445 31.584 21.455 31.3311 21.9051 30.8811C22.3552 30.431 22.608 29.8205 22.608 29.184V25.008L21.744 25.92C21.6586 26.0131 21.5547 26.0875 21.4391 26.1383C21.3234 26.1892 21.1984 26.2154 21.072 26.2154C20.9457 26.2154 20.8207 26.1892 20.705 26.1383C20.5893 26.0875 20.4855 26.0131 20.4 25.92L19.728 25.248C19.6349 25.1626 19.5606 25.0587 19.5097 24.943C19.4589 24.8274 19.4326 24.7024 19.4326 24.576C19.4326 24.4496 19.4589 24.3246 19.5097 24.209C19.5606 24.0933 19.6349 23.9894 19.728 23.904L22.56 21.072V18.816C22.5591 17.461 23.0839 16.1585 24.0239 15.1827C24.964 14.2068 26.246 13.6337 27.6 13.584H27.984C28.2812 12.4767 28.9371 11.4992 29.8491 10.8044C30.761 10.1096 31.8776 9.73666 33.024 9.744ZM14.976 30.672C14.5013 30.672 14.0373 30.8128 13.6427 31.0765C13.248 31.3402 12.9404 31.715 12.7587 32.1536C12.5771 32.5921 12.5295 33.0747 12.6221 33.5402C12.7147 34.0058 12.9433 34.4334 13.279 34.7691C13.6146 35.1047 14.0423 35.3333 14.5078 35.4259C14.9734 35.5185 15.4559 35.471 15.8945 35.2893C16.333 35.1077 16.7078 34.8 16.9715 34.4054C17.2353 34.0107 17.376 33.5467 17.376 33.072C17.376 32.4355 17.1232 31.825 16.6731 31.3749C16.223 30.9249 15.6125 30.672 14.976 30.672ZM33.024 12.576C32.5493 12.576 32.0853 12.7168 31.6907 12.9805C31.296 13.2442 30.9884 13.619 30.8067 14.0576C30.6251 14.4961 30.5775 14.9787 30.6701 15.4442C30.7627 15.9098 30.9913 16.3374 31.327 16.6731C31.6626 17.0087 32.0903 17.2373 32.5558 17.3299C33.0214 17.4225 33.5039 17.375 33.9425 17.1933C34.381 17.0117 34.7558 16.704 35.0196 16.3094C35.2833 15.9147 35.424 15.4507 35.424 14.976C35.424 14.3395 35.1712 13.729 34.7211 13.2789C34.271 12.8289 33.6605 12.576 33.024 12.576Z",fill:"white"})})}function d4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("g",{transform:"translate(8 8)",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0002 1.23071C7.87711 1.23071 1.23096 7.87687 1.23096 15.9999C1.23096 24.123 7.87711 30.7692 16.0002 30.7692C24.1233 30.7692 30.7694 24.123 30.7694 15.9999C30.7694 7.87687 24.1233 1.23071 16.0002 1.23071ZM4.92331 15.9999C4.92331 9.90758 9.90793 4.92297 16.0002 4.92297C18.4002 4.92297 20.6156 5.66143 22.4002 6.95374L6.95408 22.3999C5.66177 20.6153 4.92331 18.3999 4.92331 15.9999ZM15.9999 27.0769C13.5999 27.0769 11.3846 26.3385 9.59995 25.0462L25.0461 9.6C26.3384 11.3846 27.0769 13.6 27.0769 16C27.0769 22.0923 22.0923 27.0769 15.9999 27.0769Z",fill:"white"})})})}function p4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("g",{transform:"translate(9.5 11)",children:s.jsx("path",{d:"M27.024 0H1.824C0.768 0 0 0.768 0 1.824V20.16C0 21.168 0.768 21.984 1.824 21.984H10.512L12.672 25.104C13.248 25.92 14.352 26.112 15.168 25.488L15.552 25.152L18.048 21.936L27.024 21.984C28.032 21.984 28.8 21.168 28.8 20.16V1.824C28.8 0.768 28.032 0 27.024 0Z",fill:"white"})})})}function h4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M32.2344 13.3705C29.0732 14.6422 27.4052 17.7147 27.2182 22.7772H32.2477C32.4873 21.8491 33.0573 21.0402 33.8507 20.5021C34.6441 19.9641 35.6065 19.7339 36.5575 19.8547C37.5084 19.9755 38.3827 20.439 39.0164 21.1583C39.6501 21.8776 39.9997 22.8033 39.9997 23.7619C39.9997 24.7205 39.6501 25.6462 39.0164 26.3655C38.3827 27.0848 37.5084 27.5482 36.5575 27.669C35.6065 27.7898 34.6441 27.5596 33.8507 27.0216C33.0573 26.4836 32.4873 25.6747 32.2477 24.7465H27.2182C27.4052 29.809 29.0732 32.8816 32.2349 34.1533C32.4603 33.2281 33.0133 32.416 33.7914 31.8672C34.5695 31.3184 35.5201 31.0701 36.4672 31.1682C37.4144 31.2663 38.2939 31.7042 38.943 32.4008C39.5921 33.0975 39.9669 34.0057 39.9979 34.9574C40.029 35.909 39.7142 36.8397 39.1119 37.5772C38.5095 38.3147 37.6604 38.809 36.7217 38.9686C35.783 39.1282 34.8183 38.9424 34.006 38.4455C33.1938 37.9486 32.5891 37.1742 32.3038 36.2658C27.8257 34.8981 25.469 30.9807 25.2484 24.7465H22.2772C22.0161 24.7465 21.7657 24.6428 21.581 24.4581C21.3963 24.2735 21.2926 24.023 21.2926 23.7619C21.2926 23.5007 21.3963 23.2503 21.581 23.0656C21.7657 22.881 22.0161 22.7772 22.2772 22.7772H25.2484C25.469 16.5435 27.8262 12.6256 32.3033 11.2575C32.5886 10.349 33.1933 9.57469 34.0056 9.07777C34.8178 8.58086 35.7825 8.39502 36.7212 8.55465C37.66 8.71429 38.509 9.20858 39.1114 9.94605C39.7137 10.6835 40.0285 11.6142 39.9974 12.5659C39.9664 13.5176 39.5916 14.4258 38.9425 15.1224C38.2934 15.8191 37.4139 16.2569 36.4667 16.3551C35.5196 16.4532 34.569 16.2048 33.7909 15.656C33.0128 15.1072 32.4598 14.2956 32.2344 13.3705ZM36.0622 14.4078C36.5845 14.4078 37.0854 14.2003 37.4547 13.831C37.824 13.4617 38.0315 12.9608 38.0315 12.4385C38.0315 11.9163 37.824 11.4154 37.4547 11.0461C37.0854 10.6767 36.5845 10.4693 36.0622 10.4693C35.5399 10.4693 35.039 10.6767 34.6697 11.0461C34.3004 11.4154 34.0929 11.9163 34.0929 12.4385C34.0929 12.9608 34.3004 13.4617 34.6697 13.831C35.039 14.2003 35.5399 14.4078 36.0622 14.4078ZM36.0622 37.0545C36.5845 37.0545 37.0854 36.847 37.4547 36.4777C37.824 36.1084 38.0315 35.6075 38.0315 35.0852C38.0315 34.5629 37.824 34.062 37.4547 33.6927C37.0854 33.3234 36.5845 33.1159 36.0622 33.1159C35.5399 33.1159 35.039 33.3234 34.6697 33.6927C34.3004 34.062 34.0929 34.5629 34.0929 35.0852C34.0929 35.6075 34.3004 36.1084 34.6697 36.4777C35.039 36.847 35.5399 37.0545 36.0622 37.0545ZM36.0622 25.7312C36.5845 25.7312 37.0854 25.5237 37.4547 25.1544C37.824 24.7851 38.0315 24.2842 38.0315 23.7619C38.0315 23.2396 37.824 22.7387 37.4547 22.3694C37.0854 22.0001 36.5845 21.7926 36.0622 21.7926C35.5399 21.7926 35.039 22.0001 34.6697 22.3694C34.3004 22.7387 34.0929 23.2396 34.0929 23.7619C34.0929 24.2842 34.3004 24.7851 34.6697 25.1544C35.039 25.5237 35.5399 25.7312 36.0622 25.7312ZM21.329 32.6236H10.1972C8.95165 32.6236 8 31.4519 8 30.1335C8.07336 28.1563 10.1239 27.1308 12.2477 26.1787C13.7124 25.5195 13.9324 25.007 13.9324 24.3477C13.9324 23.6885 13.4928 23.1027 13.0532 22.6635C12.1744 21.8576 11.7352 20.7592 11.7352 19.4408C11.7352 17.024 13.1999 14.9001 15.8362 14.9001C18.4731 14.9001 19.9373 17.024 19.9373 19.4408C19.9373 20.7592 19.4981 21.8581 18.6193 22.6635C18.1068 23.1027 17.7405 23.6885 17.7405 24.3477C17.7405 24.9336 17.9601 25.5195 19.4252 26.1792C21.5491 27.1308 23.5996 28.1563 23.673 30.1335C23.5263 31.4519 22.5736 32.6236 21.329 32.6236Z",fill:"white"})})}const m4={start:V3,end:B3,screen:U3,action:Q2,apexAction:o4,apexPluginCall:l4,emailAction:i4,externalCallout:f4,routeWork:h4,addScreenPop:pa,addSkillRequirement:a4,checkAvailability:c4,setScreenProperty:pa,assignment:W3,addPromptInstructions:p4,decision:G3,loop:Z3,recordCreate:b3,recordLookup:Y3,recordUpdate:Q3,recordDelete:X3,recordRollback:K3,subflow:J3,wait:e4,collectionProcessor:t4,collectionSort:n4,transform:r4,customError:d4,stage:s4,interactiveStep:u4,managedContentStep:q3};function br({kind:e,size:t=48,title:n}){const r=m4[e];return r?s.jsx(r,{size:t,title:n}):s.jsx(Q2,{size:t,title:n})}function Qs({kind:e,size:t}){return s.jsx("span",{style:{flexShrink:0,width:t,height:t,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:s.jsx(br,{kind:e,size:t})})}function g4(e,t){return G2(e,"step",t)}const y4="Properties";function X2(e,t,n,r){return G2(e,"detail",`${t}::${n}`,r)}function v4({node:e,selection:t}){const n=l=>X2(e.id,y4,l,0),r=n("Description"),o=bs(r,t);return s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:"Properties"}),s.jsx(dt,{label:"Label",value:e.label,rowId:n("Label"),selection:t}),e.kind!=="group"&&e.kind!=="start"?s.jsx(dt,{label:"API Name",value:e.id,rowId:n("API Name"),selection:t}):null,e.description?s.jsxs("div",{style:{marginTop:6},children:[s.jsx("div",{style:{fontSize:11.5,color:v.textMuted,marginBottom:2},children:"Description"}),s.jsx("div",{...o,style:{fontSize:12.5,color:v.textPrimary,lineHeight:1.5,wordBreak:"break-word",...o.style},children:e.description})]}):null]})}function x4({group:e,elementId:t,groupIndex:n,selection:r}){const o=t!==void 0&&n!==void 0?`${n}:${e.title}`:void 0;return s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:e.title}),(e.rows??[]).map((l,i)=>{const u=t!==void 0&&o!==void 0?bs(X2(t,o,l.label,i),r):{};return s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:10,fontSize:12,padding:"3px 0",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("span",{style:{color:v.textSecondary,fontFamily:v.fontFamilyMono,flexShrink:0,whiteSpace:"nowrap"},children:l.label}),l.value?s.jsx("span",{...u,style:{color:v.textPrimary,fontFamily:v.fontFamilyMono,textAlign:"right",wordBreak:"break-word",minWidth:0,...u.style},children:l.value}):null]},`${l.label}-${i}`)}),e.note?s.jsx("div",{style:{fontSize:11,color:v.textMuted,fontStyle:"italic",marginTop:4},children:e.note}):null]})}function C4({node:e,onBack:t,selection:n}){return s.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[s.jsx(Ys,{onBack:t}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 16px",borderBottom:`1px solid ${v.separator}`},children:[s.jsx(Qs,{kind:e.kind,size:34,glyph:18}),s.jsxs("div",{style:{minWidth:0},children:[s.jsx("div",{style:{fontSize:14,fontWeight:700,color:v.textBright,lineHeight:1.25},children:e.label}),s.jsx("div",{style:{fontSize:11,color:v.textMuted},children:e.typeLabel})]})]}),s.jsxs("div",{style:{padding:"14px 16px"},children:[s.jsx(v4,{node:e,selection:n}),(e.details??[]).map((r,o)=>s.jsx(x4,{group:r,elementId:e.id,groupIndex:o,selection:n},`${r.title}-${o}`))]})]})}function w4({group:e,model:t,onBack:n}){const r=e.memberIds.map(o=>{const l=t.nodes.find(i=>i.id===o);return{id:o,label:(l==null?void 0:l.label)??o,typeLabel:l==null?void 0:l.typeLabel}});return s.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[s.jsx(Ys,{onBack:n}),s.jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("div",{style:{fontSize:14,fontWeight:700,color:v.textBright,lineHeight:1.25},children:e.label}),e.groupType?s.jsx("div",{style:{fontSize:11,color:v.textMuted},children:e.groupType}):null]}),s.jsxs("div",{style:{padding:"14px 16px"},children:[s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:"Properties"}),s.jsx(dt,{label:"Label",value:e.label}),s.jsx(dt,{label:"API Name",value:e.id}),e.groupType?s.jsx(dt,{label:"Type",value:e.groupType}):null]}),s.jsxs("div",{style:{marginBottom:12},children:[s.jsxs("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:["Members (",r.length,")"]}),r.length===0?s.jsx("div",{style:{fontSize:12,color:v.textMuted,fontStyle:"italic"},children:"No members"}):r.map(o=>s.jsxs("div",{style:{fontSize:12,padding:"4px 0",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("div",{style:{color:v.textPrimary,wordBreak:"break-word"},children:o.label}),o.typeLabel?s.jsx("div",{style:{fontSize:11,color:v.textMuted},children:o.typeLabel}):null]},o.id))]})]})]})}function S4(e){const t=(e.stepSubtype??"").toLowerCase(),n=(e.actionType??"").toLowerCase();return t==="managedcontentroleinteractivestep"||n==="managedcontentrolestepinteractive"?"managedContentStep":t.endsWith("interactivestep")||n.endsWith("stepinteractive")?"interactiveStep":t.endsWith("backgroundstep")||n.endsWith("stepbackground")?"subflow":"action"}function k4(e){const t=(e.stepSubtype??"").toLowerCase();return t.endsWith("interactivestep")?"Interactive Step":t.endsWith("backgroundstep")?"Background Step":"Stage Step"}function E4({stage:e,step:t,onBack:n}){return s.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[s.jsx(Ys,{onBack:n}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 16px",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("span",{style:{flexShrink:0,width:34,height:34,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:s.jsx(br,{kind:S4(t),size:26})}),s.jsxs("div",{style:{minWidth:0},children:[s.jsx("div",{style:{fontSize:14,fontWeight:700,color:v.textBright,lineHeight:1.25},children:t.label}),s.jsx("div",{style:{fontSize:11,color:v.textMuted},children:k4(t)})]})]}),s.jsx("div",{style:{padding:"14px 16px"},children:s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:"Properties"}),s.jsx(dt,{label:"Label",value:t.label}),s.jsx(dt,{label:"API Name",value:t.name}),t.stepSubtype?s.jsx(dt,{label:"Step Subtype",value:t.stepSubtype}):null,t.actionType?s.jsx(dt,{label:"Action Type",value:t.actionType}):null,t.actionName?s.jsx(dt,{label:"Action Name",value:t.actionName}):null,s.jsx(dt,{label:"Stage",value:e.label})]})})]})}function j4({model:e,selectedNode:t,selectedGroup:n,selectedStepStage:r,selectedStep:o,onClearSelection:l,onClose:i,rowSelection:u}){return s.jsxs("div",{style:{width:312,flexShrink:0,margin:12,border:`1px solid ${v.panelBorder}`,borderRadius:v.radiusLg,backgroundColor:v.panelBg,boxShadow:v.shadowXl,display:"flex",flexDirection:"column",overflowY:"auto"},children:[s.jsxs("div",{style:{position:"sticky",top:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",backgroundColor:v.panelBg,borderBottom:`1px solid ${v.separator}`,borderTopLeftRadius:v.radiusLg,borderTopRightRadius:v.radiusLg},children:[s.jsx("span",{style:{fontSize:15,fontWeight:700,color:v.textBright},children:o&&r?"Step Details":t?"Element Details":n?"Group Details":"Flow Information"}),s.jsx("button",{type:"button",onClick:i,"aria-label":"Close",style:{background:"none",border:"none",color:v.textMuted,cursor:"pointer",padding:2,display:"flex"},children:s.jsx(C3,{size:18})})]}),o&&r?s.jsx(E4,{stage:r,step:o,onBack:l}):t?s.jsx(C4,{node:t,onBack:l,selection:u}):n?s.jsx(w4,{group:n,model:e,onBack:l}):s.jsxs(s.Fragment,{children:[s.jsx(z3,{model:e}),s.jsx(D3,{model:e})]})]})}const Rn=260,vr=64,ha=40,L4=300,K2=44,q2=28,J2=44,M4=10,xr=120,Pr=140,ma=60,_4=80,P4=90,ga=120,So=22,Yr=34,e1=12,t1=60,T4=Rn+28,I4=Yr+e1*2+t1+4,Jl=26,ei=16,At=48,Vn=56,N4=200,ya=44,R4=40,F4=60;function ti(e){if(e.kind==="end")return{w:ha,h:ha};if(e.kind==="group")return{w:T4,h:I4};if(e.kind==="stage"&&e.steps&&e.steps.length>0){const t=K2+q2+e.steps.length*J2+M4;return{w:L4,h:t}}return{w:Rn,h:vr}}function sl(e){return e.isFault?2:e.isDefault?1:0}const va=14,Ct=8;function wt(e,t){if(e.length===0)return"";if(e.length===1)return`M ${e[0].x} ${e[0].y}`;const n=[`M ${e[0].x} ${e[0].y}`];for(let o=1;o<e.length-1;o++){const l=e[o-1],i=e[o],u=e[o+1],a=Math.hypot(i.x-l.x,i.y-l.y),c=Math.hypot(u.x-i.x,u.y-i.y),p=Math.min(t,a/2,c/2);if(p<=0||a===0||c===0){n.push(`L ${i.x} ${i.y}`);continue}const h=p/a,g=i.x-(i.x-l.x)*h,x=i.y-(i.y-l.y)*h,C=p/c,k=i.x+(u.x-i.x)*C,y=i.y+(u.y-i.y)*C;n.push(`L ${g} ${x}`),n.push(`Q ${i.x} ${i.y} ${k} ${y}`)}const r=e[e.length-1];return n.push(`L ${r.x} ${r.y}`),n.join(" ")}function ul(e,t,n,r,o){const l=Math.min(t,n),i=Math.max(t,n);return r.some(u=>o.has(u.node.id)?!1:e>u.x-va&&e<u.x+u.w+va&&u.y<i-1&&u.y+u.h>l+1)}function xa(e,t,n,r,o){if(!ul(e,t,n,r,o))return e;const l=[];for(const a of r)l.push(a.x-Pr/2,a.x+a.w+Pr/2);const i=Array.from(new Set(l)).sort((a,c)=>Math.abs(a-e)-Math.abs(c-e));for(const a of i)if(!ul(a,t,n,r,o))return a;return r.reduce((a,c)=>Math.max(a,c.x+c.w),0)+Pr}const z4=22;function $4(e){if(!e||e.siblingCount<=1)return 0;const t=e.laneGap??z4;return(e.siblingIndex-(e.siblingCount-1)/2)*t}function Ki(e,t,n,r=[],o){let l,i,u;if(e.isFaultStub||e.isFault&&!n){const a=t.x+t.w,c=t.y+t.h/2,p=a+At;l=wt([{x:a,y:c},{x:p,y:c}],Ct),i=p+Vn/2,u=c}else if(e.isFault&&n){const a=t.x+t.w,c=t.y+t.h/2,p=n.y+n.h/2;if(Math.abs(c-p)<1){const h=n.x;l=wt([{x:a,y:c},{x:h,y:c}],Ct),i=(a+h)/2,u=c}else if(n.y>t.y+t.h){const h=n.x+n.w/2,g=n.y;l=wt([{x:a,y:c},{x:h,y:c},{x:h,y:g}],Ct),i=(a+h)/2,u=c}else{const h=n.x,g=p,x=new Set([t.node.id,n.node.id]),C=h-Pr/2,k=xa(C,c,g,r,x);l=wt([{x:a,y:c},{x:k,y:c},{x:k,y:g},{x:h,y:g}],Ct),i=(a+h)/2,u=c}}else if(n){const a=t.x+t.w/2,c=t.y+t.h,p=$4(o),h=n.x+n.w/2+p,g=Math.max(0,n.w/2-4),x=n.x+n.w/2,C=Math.abs(p)<=g?h:x,k=C!==h,y=C,d=n.y;if(Math.abs(a-h)<2&&!k)l=wt([{x:a,y:c},{x:y,y:d}],Ct),i=y,u=Math.min(c+Jl+ei,d-2);else if(k){const f=c+Jl,m=d-Math.min(xr/2,24);l=wt([{x:a,y:c},{x:a,y:f},{x:h,y:f},{x:h,y:m},{x:C,y:m},{x:C,y:d}],Ct),i=h,u=Math.min(f+ei,m-2)}else{const f=new Set([t.node.id,n.node.id]),m=d-c,S=d-Math.min(xr/2,32),_=!(((o==null?void 0:o.sourceOutgoingCount)??1)>1)&&m>xr*1.5&&!ul(a,c,S,r,f)&&!ul(y,S,d,r,f)?S:c+Jl,L=xa(y,_,d,r,f);if(L===y)l=wt([{x:a,y:c},{x:a,y:_},{x:y,y:_},{x:y,y:d}],Ct);else{const I=d-Math.min(xr/2,24);l=wt([{x:a,y:c},{x:a,y:_},{x:L,y:_},{x:L,y:I},{x:y,y:I},{x:y,y:d}],Ct)}i=y,u=Math.min(_+ei,d-2)}}else{const a=t.x+t.w/2,c=t.y+t.h;l=`M ${a} ${c} L ${a} ${c}`,i=a,u=c}return{d:l,lx:i,ly:u}}function O4(e,t){if(!e.groups||e.groups.length===0)return[];const n=[];for(const r of e.groups){const o=r.memberIds.map(c=>t.get(c)).filter(c=>!!c);if(o.length===0)continue;let l=1/0,i=1/0,u=-1/0,a=-1/0;for(const c of o)l=Math.min(l,c.x),i=Math.min(i,c.y),u=Math.max(u,c.x+c.w),a=Math.max(a,c.y+c.h);n.push({id:r.id,label:r.label,count:o.length,x:l-So,y:i-So-Yr,w:u-l+So*2,h:a-i+So*2+Yr})}return n}function Ca(e,t,n){const r=new Set(e),o=new Map;for(const l of e)o.set(l,[]);for(const l of t)!r.has(l.from)||!r.has(l.to)||o.get(l[n]).push(l);return o}function D4(e,t,n){const r=new Set,o=new Set,l=new Set,i=u=>{if(l.has(u)||o.has(u))return;const a=[],c=p=>{o.add(p),a.push({id:p,i:0,outs:(n.get(p)??[]).filter(h=>!h.isFault)})};for(c(u);a.length;){const p=a[a.length-1];if(p.i<p.outs.length){const h=p.outs[p.i++];if(o.has(h.to)){r.add(h);continue}if(l.has(h.to))continue;c(h.to)}else o.delete(p.id),l.add(p.id),a.pop()}};for(const u of e)i(u);for(const u of t)i(u);return r}function H4(e,t,n){const r=new Map;for(const o of e){if(r.has(o))continue;const l=[{id:o,phase:0}],i=new Set;for(;l.length;){const u=l[l.length-1];if(u.phase===0){if(r.has(u.id)){l.pop();continue}if(i.has(u.id)){r.set(u.id,0),i.delete(u.id),l.pop();continue}i.add(u.id),u.phase=1;for(const a of t.get(u.id)??[])a.from===u.id||a.isFault||n.has(a)||r.has(a.from)||l.push({id:a.from,phase:0})}else{let a=0;for(const c of t.get(u.id)??[])c.from===u.id||c.isFault||n.has(c)||(a=Math.max(a,(r.get(c.from)??0)+1));r.set(u.id,a),i.delete(u.id),l.pop()}}}return r}function A4(e,t,n,r,o){const l=new Set,i=[[e,t]];for(;i.length;){const[u,a]=i.shift();if(!(l.has(u)||r.has(u))){l.add(u),o.set(u,a);for(const c of n.get(u)??[])c.isFault||c.isGoTo||i.push([c.to,a+1])}}}function V4(e,t,n){const r=new Map,o=new Set;let l=0;const i=u=>{if(o.has(u))return;const a=[u];for(;a.length;){const c=a.pop();if(o.has(c))continue;o.add(c),r.set(c,l++);const p=(n.get(c)??[]).filter(h=>!h.isFault&&!h.isGoTo).slice().sort((h,g)=>sl(h)-sl(g));for(let h=p.length-1;h>=0;h--)o.has(p[h].to)||a.push(p[h].to)}};for(const u of e)i(u);for(const u of t)i(u);return r}function B4(e,t,n,r){const o=new Map,l=a=>{const c=[...t.get(a)??[]],p=n.get(a);return p&&c.push(p),c};for(const a of e){if(o.has(a))continue;const c=[{id:a,phase:0}];for(;c.length;){const p=c[c.length-1];if(p.phase===0){p.phase=1;for(const h of l(p.id))o.has(h)||c.push({id:h,phase:0})}else{const h=t.get(p.id)??[],g=n.get(p.id),x=h.reduce((k,y)=>k+(o.get(y)??r),0),C=g?o.get(g)??r:0;o.set(p.id,Math.max(r,x,C)),c.pop()}}}const i=new Map;let u=0;for(const a of e){const c=o.get(a)??r,p=[{id:a,x:u+c/2}];for(;p.length;){const{id:h,x:g}=p.pop();i.set(h,g);const x=t.get(h)??[],C=n.get(h);if(x.length>0){const k=x.reduce((f,m)=>f+(o.get(m)??r),0);let y=g-k/2;const d=[];for(const f of x){const m=o.get(f)??r;d.push({id:f,x:y+m/2}),y+=m}for(let f=d.length-1;f>=0;f--)p.push(d[f])}C&&p.push({id:C,x:g})}u+=c}return i}function U4(e,t){const n=new Set,r=[e];for(;r.length;){const o=r.shift();if(!n.has(o)){n.add(o);for(const l of t.get(o)??[])l.isFault||l.isGoTo||r.push(l.to)}}return n}function wa(e,t){const n=new Map;for(const r of e.nodes){if(r.kind!=="loop")continue;const l=(t.get(r.id)??[]).find(p=>!p.isDefault&&!p.isFault&&!p.isGoTo);if(!l)continue;const i=new Set,u=[l.to];for(;u.length;){const p=u.shift();if(!(p===r.id||i.has(p))){i.add(p);for(const h of t.get(p)??[])h.isFault||h.isGoTo||h.to!==r.id&&u.push(h.to)}}const a=[];for(const p of i)for(const h of t.get(p)??[])h.isFault&&(h.isGoTo||h.to!==r.id&&a.push(h.to));const c=[...a];for(;c.length;){const p=c.shift();if(!(p===r.id||i.has(p))){i.add(p);for(const h of t.get(p)??[])h.isFault||h.isGoTo||h.to!==r.id&&c.push(h.to)}}i.size>0&&n.set(r.id,i)}return n}function W4(e){const t=e.nodes.map(w=>w.id),n=Ca(t,e.edges,"to"),r=Ca(t,e.edges,"from"),o=e.nodes.filter(w=>w.kind==="start").map(w=>w.id),l=o.length?o:t.filter(w=>n.get(w).length===0),i=new Set;{const w=[...l];for(;w.length;){const M=w.shift();if(!i.has(M)){i.add(M);for(const N of r.get(M))N.isFault||N.isGoTo||i.has(N.to)||w.push(N.to)}}}const u=new Set;for(const w of e.edges){if(!w.isFault||w.isGoTo)continue;const M=[w.to];for(;M.length;){const N=M.shift();if(!(i.has(N)||u.has(N))){u.add(N);for(const A of r.get(N)??[])A.isFault||A.isGoTo||M.push(A.to)}}}const a=new Set;for(const w of e.nodes)!i.has(w.id)&&!u.has(w.id)&&a.add(w.id);const c=D4(l,t,r);for(const w of e.edges)w.isGoTo&&c.add(w);const p=H4(t,n,c),h=new Set;{const w=e.nodes.filter(N=>N.kind==="decision").map(N=>N.id),M=[];for(const N of w)for(const A of r.get(N)??[])A.isFault||A.isGoTo||i.has(A.to)&&M.push(A.to);for(;M.length;){const N=M.shift();if(!h.has(N)){h.add(N);for(const A of r.get(N)??[])A.isFault||A.isGoTo||i.has(A.to)&&M.push(A.to)}}}const g=new Map;for(const w of e.edges)w.isFault&&!w.isGoTo&&g.set(w.to,w.from);for(const[w,M]of g){const N=p.get(M)??0,A=h.has(M)?N+1:N;A4(w,A,r,i,p)}{const w=M=>{const N=e.nodes.find(H=>H.id===M);if(!N||N.kind!=="end")return!1;const A=(n.get(M)??[]).filter(H=>!H.isFault&&!H.isGoTo&&!c.has(H)&&i.has(H.from));return new Set(A.map(H=>H.from)).size>=2};for(const M of t){if(!i.has(M)||!w(M))continue;const N=new Set,A=[M];let H=-1/0;for(;A.length;){const Q=A.shift();if(!N.has(Q)){N.add(Q);for(const pe of r.get(Q)??[]){if(!pe.isFault||pe.isGoTo)continue;const Se=[pe.to],ze=new Set;for(;Se.length;){const me=Se.shift();if(ze.has(me)||i.has(me))continue;ze.add(me);const Ve=p.get(me);Ve!==void 0&&(H=Math.max(H,Ve));for(const or of r.get(me)??[])or.isFault||or.isGoTo||Se.push(or.to)}}for(const pe of n.get(Q)??[])pe.isFault||pe.isGoTo||c.has(pe)||i.has(pe.from)&&A.push(pe.from)}}if(!Number.isFinite(H))continue;const Y=p.get(M)??0,W=H+1;if(W>Y){const Q=W-Y,pe=new Set,Se=[M];for(;Se.length;){const ze=Se.shift();if(!pe.has(ze)){pe.add(ze),p.set(ze,(p.get(ze)??0)+Q);for(const me of r.get(ze)??[])me.isFault||c.has(me)||me.isGoTo||Se.push(me.to)}}}}}const x=wa(e,r);for(const[w,M]of x){let N=p.get(w)??0;for(const Y of M)N=Math.max(N,p.get(Y)??0);const A=N+1,H=r.get(w)??[];for(const Y of H){if(Y.isFault||!Y.isDefault)continue;const W=Y.to,Q=p.get(W)??0;if(Q>=A)continue;const pe=A-Q,Se=[W],ze=new Set;for(;Se.length;){const me=Se.shift();if(!ze.has(me)){ze.add(me),p.set(me,(p.get(me)??0)+pe);for(const Ve of r.get(me)??[])Ve.isFault||c.has(Ve)||ze.has(Ve.to)||Se.push(Ve.to)}}}}const C=V4(l,t,r);let k=Rn;for(const w of e.nodes){const M=ti(w).w;M>k&&M<Rn*2&&(k=M)}const y=k+Pr,d=new Map,f=new Map,m=new Map;for(const w of t)i.has(w)&&d.set(w,[]);const S=t.filter(w=>i.has(w)).sort((w,M)=>(p.get(w)??0)-(p.get(M)??0)),E=[];for(const w of S){const M=Array.from(new Set(n.get(w).filter(N=>!N.isFault&&!c.has(N)&&i.has(N.from)).map(N=>N.from)));if(M.length!==0)if(M.length===1){const N=M[0],A=e.nodes.find(Y=>Y.id===N),H=n.get(w).find(Y=>Y.from===N&&!Y.isFault&&!c.has(Y));if((A==null?void 0:A.kind)==="loop"&&(H!=null&&H.isDefault)&&!f.has(N)){f.set(N,w),m.set(w,N);continue}d.get(N).push(w),m.set(w,N)}else E.push(w)}const T=w=>{const M=[];let N=w;const A=new Set;for(;N&&!A.has(N);)A.add(N),M.push(N),N=m.get(N);return M};for(const w of E){const M=Array.from(new Set(n.get(w).filter(W=>!W.isFault&&!c.has(W)&&i.has(W.from)).map(W=>W.from))),N=M.map(W=>new Set(T(W))),A=T(M[0]);let H;for(const W of A)if(N.every(Q=>Q.has(W))){H=W;break}if(!H){d.get(M[0]).push(w),m.set(w,M[0]);continue}if(M.includes(H)){d.get(H).push(w),m.set(w,H);continue}if(f.get(H)!==void 0){d.get(H).push(w),m.set(w,H);continue}f.set(H,w),m.set(w,H)}for(const[w,M]of d){const N=r.get(w)??[];M.sort((A,H)=>{const Y=N.find(Se=>Se.to===A),W=N.find(Se=>Se.to===H),Q=Y?sl(Y):999,pe=W?sl(W):999;return Q!==pe?Q-pe:(C.get(A)??0)-(C.get(H)??0)})}const _=l.filter(w=>i.has(w)),L=B4(_,d,f,y);let I=1/0,j=-1/0;for(const w of L.values())I=Math.min(I,w),j=Math.max(j,w);Number.isFinite(I)||(I=0,j=0);const P=new Set;for(const w of x.values())for(const M of w)P.add(M);const O=new Set;for(const w of e.edges){if(!w.isFault||w.isGoTo||!P.has(w.from)||!P.has(w.to))continue;const M=L.get(w.from);if(M===void 0)continue;const N=M+y,A=[w.to];for(;A.length;){const H=A.shift();if(!(O.has(H)||i.has(H))){O.add(H),L.set(H,N),j=Math.max(j,N);for(const Y of r.get(H)??[])Y.isFault||Y.isGoTo||A.push(Y.to)}}}const B=[];for(const w of e.edges)!w.isFault||w.isGoTo||i.has(w.to)||O.has(w.to)||B.some(M=>M.rootId===w.to)||B.push({rootId:w.to,sourceId:w.from,sourceRow:p.get(w.from)??0,inDecision:h.has(w.from)&&i.has(w.from)});const z=new Set,Z=B.filter(w=>w.inDecision),D=new Set;for(;D.size<Z.length;){let w,M=1/0,N=1/0;for(const W of Z){if(D.has(W.sourceId))continue;const Q=L.get(W.sourceId)??0;(W.sourceRow<M||W.sourceRow===M&&Q<N)&&(M=W.sourceRow,N=Q,w=W)}if(!w)break;D.add(w.sourceId);const H=(L.get(w.sourceId)??0)+y;for(const W of t){if(!i.has(W))continue;const Q=L.get(W);Q!==void 0&&Q>=H-.5&&L.set(W,Q+y)}for(const W of z){const Q=L.get(W);Q!==void 0&&Q>=H-.5&&L.set(W,Q+y)}for(const W of O){const Q=L.get(W);Q!==void 0&&Q>=H-.5&&L.set(W,Q+y)}const Y=[w.rootId];for(;Y.length;){const W=Y.shift();if(!(z.has(W)||i.has(W)||O.has(W))){z.add(W),L.set(W,H);for(const Q of r.get(W)??[])Q.isFault||Q.isGoTo||Y.push(Q.to)}}}{const w=t.filter(M=>i.has(M)).sort((M,N)=>(p.get(N)??0)-(p.get(M)??0));for(const M of w){const N=d.get(M)??[],A=f.get(M);if(N.length===0&&!A)continue;let H=0,Y=0;for(const W of N){const Q=L.get(W);Q!==void 0&&(H+=Q,Y++)}if(Y>0)L.set(M,H/Y);else if(A){const W=L.get(A);W!==void 0&&L.set(M,W)}}for(const[M,N]of f){const A=[];for(const H of n.get(N)??[]){if(H.isFault||H.isGoTo||c.has(H)||!i.has(H.from))continue;const Y=L.get(H.from);Y!==void 0&&A.push(Y)}if(A.length>=2){const H=A.reduce((Y,W)=>Y+W,0)/A.length;L.set(N,H)}else{const H=L.get(M);H!==void 0&&L.set(N,H)}}}I=1/0,j=-1/0;for(const w of L.values())I=Math.min(I,w),j=Math.max(j,w);Number.isFinite(I)||(I=0,j=0);const b=B.filter(w=>!w.inDecision).sort((w,M)=>M.sourceRow-w.sourceRow);let F=j+y+N4;for(const{rootId:w}of b){const M=[w];for(;M.length;){const N=M.shift();if(!(z.has(N)||i.has(N)||O.has(N))){z.add(N),L.set(N,F);for(const A of r.get(N)??[])A.isFault||A.isGoTo||M.push(A.to)}}F+=y}for(const w of e.nodes)!i.has(w.id)&&!O.has(w.id)&&!z.has(w.id)&&L.set(w.id,F);const U=[...new Set(e.nodes.map(w=>p.get(w.id)??0))].sort((w,M)=>w-M),G=new Map;for(const w of e.nodes){const M=p.get(w.id)??0;G.set(M,Math.max(G.get(M)??vr,ti(w).h))}const te=new Map;let se=ma;for(const w of U)te.set(w,se),se+=(G.get(w)??vr)+xr;const st=[],le=new Map;for(const w of e.nodes){if(a.has(w.id))continue;const{w:M,h:N}=ti(w),A=_4+(L.get(w.id)??0)-I+Rn/2,H=te.get(p.get(w.id)??0)??ma,Y=N<vr?H+(vr-N)/2:H,W={node:w,x:A-M/2,y:Y,w:M,h:N,cx:A};st.push(W),le.set(w.id,W)}for(const w of e.edges){if(!w.isFault||w.isGoTo||h.has(w.from))continue;const M=le.get(w.from),N=le.get(w.to);if(!M||!N)continue;const A=M.y+M.h/2-(N.y+N.h/2);if(Math.abs(A)<.5)continue;const H=U4(w.to,r);for(const Y of H){const W=le.get(Y);W&&(W.y+=A)}}let je=0,Fe=0;for(const w of st)je=Math.max(je,w.cx+Rn/2),Fe=Math.max(Fe,w.y+w.h);for(const w of e.edges){if(!w.isFaultStub)continue;const M=le.get(w.from);M&&(je=Math.max(je,M.x+M.w+At+Vn))}const gt=l.map(w=>{var M;return(M=le.get(w))==null?void 0:M.cx}).filter(w=>w!==void 0);let ue;if(gt.length)ue=gt.reduce((w,M)=>w+M,0)/gt.length;else{const w=st.filter(M=>i.has(M.node.id)).map(M=>M.cx);ue=w.length?w.reduce((M,N)=>M+N,0)/w.length:(je+ga)/2}const be=wa(e,r),we=[],Ae=new Set;for(const[w,M]of be){const N=le.get(w);if(!N)continue;let A=1/0,H=-1/0,Y=-1/0;for(const ve of M){const yt=le.get(ve);yt&&(A=Math.min(A,yt.x),H=Math.max(H,yt.x+yt.w),Y=Math.max(Y,yt.y+yt.h))}if(!Number.isFinite(A))continue;A=Math.min(A,N.x),H=Math.max(H,N.x+N.w);for(const ve of e.edges){if(!ve.isFaultStub||!M.has(ve.from))continue;const yt=le.get(ve.from);yt&&(H=Math.max(H,yt.x+yt.w+At+Vn))}const W=A-ya,Q=N.y+N.h+R4,pe=H-A+ya*2,Se=Y-Q+F4,ze=r.get(w)??[],me=ze.find(ve=>ve.isDefault&&!ve.isFault&&!ve.isGoTo),Ve=me==null?void 0:me.to,or=Ve?le.get(Ve):void 0,r1=Ve?M.has(Ve):!1,o1=N.cx,l1=Q,i1=W+pe,s1=Q+30;we.push({loopId:w,bodyIds:M,x:W,y:Q,w:pe,h:Se,forEachChip:{x:o1,y:l1},afterLastChip:{x:i1,y:s1},afterLastTargetId:or&&!r1&&Ve!==w?Ve:void 0}),je=Math.max(je,W+pe),Fe=Math.max(Fe,Q+Se);for(const ve of e.edges)ve.to===w&&M.has(ve.from)&&Ae.add(`${ve.from}->${ve.to}`);for(const ve of ze)ve.isFault||ve.isGoTo||Ae.add(`${ve.from}->${ve.to}`)}return{width:je+ga,height:Fe+P4,placed:st,byId:le,groups:O4(e,le),loops:we,suppressedEdges:Ae,spineCenterX:ue}}const n1=`0 0 0 1px ${v.canvasBg}, 0 0 0 3px ${v.focusBorder}`;function G4({group:e,selected:t}){return s.jsx("div",{style:{position:"absolute",left:e.x,top:e.y,width:e.w,height:e.h,borderRadius:v.radiusLg,border:`1px solid ${t?v.focusBorder:v.borderDefault}`,backgroundColor:"rgba(120,120,140,0.06)",boxShadow:t?n1:v.shadowSm}})}function Z4({group:e,onCollapse:t,onSelect:n}){return s.jsxs("div",{"data-no-pan":!0,onClick:r=>{r.stopPropagation(),n()},title:e.label,style:{position:"absolute",top:e.y,left:e.x,width:e.w,height:Yr,boxSizing:"border-box",display:"flex",alignItems:"center",gap:8,padding:"0 12px",borderTopLeftRadius:v.radiusLg,borderTopRightRadius:v.radiusLg,backgroundColor:v.flowAction,fontSize:12,fontWeight:700,color:v.textInverse,fontFamily:v.fontFamily,cursor:"pointer"},children:[s.jsx("button",{type:"button","data-no-pan":!0,onClick:r=>{r.stopPropagation(),t()},title:"Collapse group",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,padding:0,border:"none",background:"transparent",color:v.textInverse,cursor:"pointer"},children:s.jsx(to,{size:14})}),s.jsx("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label}),s.jsx("span",{style:{flexShrink:0,opacity:.85,fontWeight:600},children:e.count})]})}function b4({edge:e,from:t,to:n,boxes:r,siblings:o}){if(!t||!n&&!e.isFaultStub)return null;const l=e.isFault?v.statusNegative:v.edgeNeutral,i=e.isFault?"url(#fd-arrow-fault)":"url(#fd-arrow)",u=e.isFault?"5 4":void 0,{d:a}=Ki(e,t,n,r,o);return s.jsx("path",{d:a,stroke:l,strokeWidth:1.6,fill:"none",strokeDasharray:u,markerEnd:i})}function Sa({x:e,y:t,text:n,fault:r}){const o=Math.max(30,n.length*7+16),l=20,i=v.bgElevated,u=r?v.statusNegative:v.borderStrong,a=r?v.statusNegative:v.textPrimary,c=4;return s.jsxs("g",{children:[s.jsx("rect",{x:e-o/2-c,y:t-l/2-c,width:o+c*2,height:l+c*2,rx:4+c,fill:v.canvasBg}),s.jsx("rect",{x:e-o/2,y:t-l/2,width:o,height:l,rx:4,fill:i,stroke:u,strokeWidth:1}),s.jsx("text",{x:e,y:t+1,textAnchor:"middle",dominantBaseline:"middle",fontSize:11,fontWeight:700,fontFamily:v.fontFamily,fill:a,children:n})]})}function Fn({top:e}){return s.jsx("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",[e?"top":"bottom"]:-4,width:8,height:8,borderRadius:"50%",backgroundColor:v.textMuted,border:`2px solid ${v.canvasBg}`}})}function Y4(e){const t=(e.stepSubtype??"").toLowerCase(),n=(e.actionType??"").toLowerCase();return t==="managedcontentroleinteractivestep"||n==="managedcontentrolestepinteractive"?"managedContentStep":t.endsWith("interactivestep")||n.endsWith("stepinteractive")?"interactiveStep":t.endsWith("backgroundstep")||n.endsWith("stepbackground")?"subflow":"action"}function Q4({placed:e,selected:t,onSelect:n,onStepSelect:r,selectedStepName:o}){const{node:l}=e,i=l.steps??[];return s.jsxs("div",{"data-no-pan":!0,"data-mv-id":l.id,onClick:()=>n(l.id),title:l.description??l.label,style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,boxSizing:"border-box",backgroundColor:v.bgElevated,border:`1px solid ${t?v.interactivePrimary:v.borderDefault}`,outline:t?`1px solid ${v.interactivePrimary}`:void 0,borderRadius:v.radiusMd,boxShadow:t?v.shadowXl:v.panelShadow,cursor:"pointer",overflow:"hidden"},children:[s.jsx(Fn,{top:!0}),s.jsx(Fn,{}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,height:K2,padding:"0 12px",boxSizing:"border-box",backgroundColor:v.bgElevated,color:v.textBright,borderBottom:`1px solid ${v.separator}`},children:[s.jsx("span",{style:{flexShrink:0,width:24,height:24,display:"inline-flex",alignItems:"center",justifyContent:"center",color:v.textPrimary},children:s.jsx(br,{kind:"stage",size:24})}),s.jsx("div",{style:{minWidth:0,flex:1},children:s.jsx("div",{style:{fontSize:13,fontWeight:700,lineHeight:1.2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l.label})})]}),s.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:q2,padding:"0 12px",fontSize:11,fontWeight:700,color:v.textSecondary,textTransform:"uppercase",letterSpacing:.5,borderBottom:`1px solid ${v.separator}`},children:s.jsxs("span",{children:[i.length," ",i.length===1?"Step":"Steps"]})}),s.jsx("div",{children:i.map((u,a)=>{const c=o===u.name;return s.jsxs("div",{"data-no-pan":!0,"data-mv-id":g4(l.id,u.name),onClick:p=>{p.stopPropagation(),r==null||r(l.id,u.name)},style:{display:"flex",alignItems:"center",gap:10,height:J2,padding:"0 12px",boxSizing:"border-box",borderBottom:a<i.length-1?`1px solid ${v.separator}`:"none",color:v.textPrimary,cursor:"pointer",backgroundColor:c?v.bgSurfaceHover:"transparent"},title:u.actionName?`${u.label} (${u.actionName})`:u.label,children:[s.jsx("span",{style:{flexShrink:0,width:22,height:22,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:s.jsx(br,{kind:Y4(u),size:22})}),s.jsx("div",{style:{minWidth:0,flex:1,fontSize:12.5,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.label})]},u.name)})})]})}function X4({placed:e,selected:t,collapsible:n,isCollapsed:r,isGroupSummary:o,onSelect:l,onSelectStep:i,selectedStepName:u,onExpandGroup:a,onToggleCollapse:c}){var h,g;const{node:p}=e;if(o){const x=p.groupConnections,C=x?`${x.incoming} incoming, ${x.outgoing} outgoing connections`:void 0;return s.jsxs("div",{"data-no-pan":!0,onClick:()=>l(p.id),title:p.label,style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,boxSizing:"border-box",backgroundColor:"rgba(120,120,140,0.06)",border:`1px solid ${t?v.focusBorder:v.borderDefault}`,borderRadius:v.radiusLg,boxShadow:t?n1:v.shadowSm,cursor:"pointer"},children:[s.jsx(Fn,{top:!0}),s.jsx(Fn,{}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,height:Yr,padding:"0 12px",boxSizing:"border-box",borderTopLeftRadius:v.radiusLg,borderTopRightRadius:v.radiusLg,backgroundColor:v.flowAction,color:v.textInverse},children:[s.jsx("button",{type:"button","data-no-pan":!0,onClick:k=>{k.stopPropagation(),a==null||a()},title:"Expand group",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,padding:0,border:"none",background:"transparent",color:v.textInverse,cursor:"pointer"},children:s.jsx(Jn,{size:14})}),s.jsx("span",{style:{flex:1,minWidth:0,fontSize:12,fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:p.label}),s.jsx("span",{style:{flexShrink:0,opacity:.85,fontSize:12,fontWeight:600},children:((g=(h=e.node.detail)==null?void 0:h.match(/^\d+/))==null?void 0:g[0])??""})]}),s.jsx("div",{style:{padding:e1},children:s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,height:t1,padding:"0 12px",boxSizing:"border-box",backgroundColor:v.bgElevated,border:`1px solid ${v.borderDefault}`,borderRadius:v.radiusMd},children:[s.jsx("span",{style:{flexShrink:0,width:34,height:34,borderRadius:v.radiusMd,backgroundColor:v.flowOrchestration,display:"inline-flex",alignItems:"center",justifyContent:"center",color:v.textInverse},children:s.jsx(_3,{size:18})}),s.jsxs("div",{style:{minWidth:0,flex:1},children:[s.jsx("div",{style:{fontSize:13,fontWeight:700,color:v.textBright,lineHeight:1.2},children:p.detail?p.detail.replace(/^(\d+) element/,"$1 Element"):"Elements"}),C?s.jsx("div",{style:{fontSize:11,fontStyle:"italic",color:v.textSecondary,marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C}):null]})]})})]})}return p.kind==="stage"&&p.steps&&p.steps.length>0?s.jsx(Q4,{placed:e,selected:t,onSelect:l,onStepSelect:i,selectedStepName:u}):p.kind==="end"?s.jsx("div",{style:{position:"absolute",left:e.x,top:e.y,width:e.w,height:e.h,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",boxShadow:`0 0 0 4px ${v.canvasBg}, ${v.shadowMd}`},title:"End",children:s.jsx(br,{kind:"end",size:e.w,title:"End"})}):s.jsxs("div",{"data-no-pan":!0,"data-mv-id":p.id,onClick:()=>l(p.id),style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,backgroundColor:v.bgElevated,border:`1px solid ${t?v.interactivePrimary:v.borderDefault}`,outline:t?`1px solid ${v.interactivePrimary}`:void 0,borderRadius:v.radiusMd,display:"flex",alignItems:"center",gap:12,padding:"0 14px 0 10px",boxSizing:"border-box",boxShadow:t?v.shadowXl:v.panelShadow,cursor:"pointer"},title:p.description??p.label,children:[s.jsx(Fn,{top:!0}),s.jsx(Fn,{}),n?s.jsx("button",{type:"button","data-no-pan":!0,onClick:x=>{x.stopPropagation(),c(p.id)},title:r?"Expand branches":"Collapse branches",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:24,height:24,marginLeft:-2,borderRadius:v.radiusSm,border:"none",backgroundColor:"transparent",color:v.textSecondary,cursor:"pointer"},children:r?s.jsx(Jn,{size:15}):s.jsx(to,{size:15})}):null,s.jsx(Qs,{kind:p.kind,size:42,glyph:20}),s.jsxs("div",{style:{minWidth:0,flex:1,padding:"8px 0"},children:[s.jsx("div",{style:{fontSize:13.5,fontWeight:700,color:v.textBright,lineHeight:1.2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:p.label}),s.jsx("div",{style:{fontSize:11,color:v.textMuted,marginTop:1},children:p.typeLabel})]})]})}function ka({x:e,y:t,collapsed:n,onToggle:r}){return s.jsxs("button",{type:"button","data-no-pan":!0,onClick:o=>{o.stopPropagation(),r()},title:n?"Expand fault path":"Collapse fault path",style:{position:"absolute",top:t,left:e,transform:"translate(-50%, -50%)",display:"inline-flex",alignItems:"center",gap:5,padding:"4px 10px",borderRadius:v.radiusFull,backgroundColor:v.bgSurface,border:`1px solid ${v.statusNegative}`,boxShadow:`0 0 0 3px ${v.canvasBg}`,fontSize:11.5,fontWeight:700,color:v.statusNegative,fontFamily:v.fontFamily,whiteSpace:"nowrap",cursor:"pointer"},children:["Fault",n?s.jsx(Jn,{size:12}):s.jsx(to,{size:12})]})}const K4=8,Ea=20;function ja({x:e,y:t,text:n}){return s.jsx("div",{style:{position:"absolute",top:t,left:e,transform:"translate(-50%, -50%)",height:Ea,display:"inline-flex",alignItems:"center",padding:`0 ${K4}px`,borderRadius:Ea/2,border:`1px solid ${v.borderDefault}`,background:v.bgSurface,color:v.textSecondary,fontFamily:v.fontFamily,fontSize:11,fontWeight:600,whiteSpace:"nowrap",pointerEvents:"none",lineHeight:1},children:n})}function q4({loop:e}){return s.jsxs(s.Fragment,{children:[s.jsx(ja,{x:e.forEachChip.x,y:e.forEachChip.y,text:"For Each"}),s.jsx(ja,{x:e.afterLastChip.x,y:e.afterLastChip.y,text:"After Last"})]})}function ni({x:e,y:t,targetLabel:n,onSelect:r,variant:o="below",fault:l=!1}){const i=o==="right"?"translate(0, -50%)":"translate(-50%, 0)",u=l?v.statusNegative:v.borderDefault,a=l?v.statusNegative:v.textSecondary;return s.jsxs("div",{role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r,onKeyDown:r?c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),r())}:void 0,style:{position:"absolute",top:t,left:e,transform:i,display:"inline-flex",alignItems:"center",gap:4,padding:"2px 8px",borderRadius:10,border:`1px solid ${u}`,background:v.bgSurface,color:a,fontFamily:v.fontFamily,fontSize:11,fontWeight:l?700:600,whiteSpace:"nowrap",lineHeight:1.4,cursor:r?"pointer":"default",userSelect:"none"},children:[s.jsx("span",{"aria-hidden":"true",children:"→"}),n]})}const La=6,Ma=24,ko=22;function J4({layout:e,model:t,zoom:n,pan:r,selectedId:o,selectedGroupId:l,collapsedBranches:i,branchSources:u,collapsedFaults:a,onSelect:c,onSelectGroup:p,onSelectStep:h,selectedStep:g,onToggleCollapse:x,onToggleFault:C,onToggleGroup:k}){return s.jsxs("div",{style:{position:"absolute",top:0,left:0,width:e.width,height:e.height,transform:`translate(${r.x}px, ${r.y}px) scale(${n})`,transformOrigin:"0 0",willChange:"transform"},children:[e.groups.map(y=>s.jsx(G4,{group:y,selected:y.id===l},y.id)),e.loops.map(y=>s.jsx(q4,{loop:y},`loop-${y.loopId}`)),s.jsxs("svg",{width:e.width,height:e.height,style:{position:"absolute",inset:0,pointerEvents:"none",overflow:"visible"},children:[s.jsxs("defs",{children:[s.jsx("marker",{id:"fd-arrow",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:s.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:v.edgeNeutral})}),s.jsx("marker",{id:"fd-arrow-fault",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:s.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:v.statusNegative})})]}),(()=>{const y=new Set;for(const I of e.loops)for(const j of t.edges)j.from===I.loopId&&(j.isFault||y.add(`${j.from}->${j.to}`));const d=new Map,f=new Map;for(const I of t.edges){if(I.isFault||I.isGoTo)continue;const j=`${I.from}->${I.to}`;if(e.suppressedEdges.has(j))continue;d.set(j,(d.get(j)??0)+1);const P=f.get(j);P?P.push(I):f.set(j,[I])}const m=6,S=I=>Math.max(30,I.length*7+16),E=I=>{const j=f.get(I);if(!j)return 0;let P=0;for(const O of j)O.label&&(P=Math.max(P,S(O.label)));return P+m},T=new Map;for(const I of t.edges)I.isFault||I.isGoTo||e.suppressedEdges.has(`${I.from}->${I.to}`)||T.set(I.from,(T.get(I.from)??0)+1);const _=new Map,L=I=>{if(I.isFault)return;const j=`${I.from}->${I.to}`,P=d.get(j)??1,O=T.get(I.from)??1;if(P<=1&&O<=1)return;const B=_.get(j)??0;return _.set(j,B+1),{siblingIndex:B,siblingCount:P,laneGap:E(j),sourceOutgoingCount:O}};return s.jsxs(s.Fragment,{children:[t.edges.map((I,j)=>e.suppressedEdges.has(`${I.from}->${I.to}`)||I.isGoTo?null:s.jsx(b4,{edge:I,from:e.byId.get(I.from),to:e.byId.get(I.to),boxes:e.placed,siblings:L(I)},`${I.from}-${I.to}-${j}`)),(()=>{const I=new Map;return t.edges.map((j,P)=>{if(!j.label||j.isFault||j.isGoTo)return null;const O=`${j.from}->${j.to}`;if(e.suppressedEdges.has(O)||y.has(O))return null;const B=e.byId.get(j.from),z=e.byId.get(j.to);if(!B||!z)return null;const Z=d.get(O)??1,D=I.get(O)??0;I.set(O,D+1);const b=T.get(j.from)??1,F=Z>1||b>1?{siblingIndex:D,siblingCount:Z,laneGap:E(O),sourceOutgoingCount:b}:void 0,{lx:U,ly:G}=Ki(j,B,z,e.placed,F);return s.jsx(Sa,{x:U,y:G,text:j.label},`lbl-${j.from}-${j.to}-${P}`)})})()]})})(),e.loops.map(y=>{const d=t.edges.filter(D=>D.to===y.loopId&&y.bodyIds.has(D.from)&&!D.isFault&&!D.isGoTo);if(d.length===0)return null;const f=d.map(D=>e.byId.get(D.from)).filter(D=>D!==void 0);if(f.length===0)return null;const m=e.byId.get(y.loopId);if(!m)return null;const S=y.forEachChip.x,E=24,T=20,L=f.reduce((D,b)=>Math.max(D,b.y+b.h),0)+E,I=L+T,j=y.x,P=m.x,O=m.y+m.h/2,B=12,z=[`M ${S} ${L}`,`V ${I-B}`,`A ${B} ${B} 0 0 1 ${S-B} ${I}`,`H ${j+B}`,`A ${B} ${B} 0 0 1 ${j} ${I-B}`,`V ${O+B}`,`A ${B} ${B} 0 0 1 ${j+B} ${O}`,`H ${P}`].join(" "),Z=new Map;for(const D of d)D.label&&Z.set(D.from,D.label);return s.jsxs("g",{children:[f.map(D=>s.jsx("path",{d:wt([{x:D.cx,y:D.y+D.h},{x:D.cx,y:L},{x:S,y:L}],Ct),stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none"},`loopreturn-${y.loopId}-${D.node.id}`)),s.jsx("path",{d:z,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none"}),f.map(D=>{const b=Z.get(D.node.id);return b?s.jsx(Sa,{x:D.cx,y:D.y+D.h+14,text:b},`loopreturn-lbl-${y.loopId}-${D.node.id}`):null})]},`loopreturn-${y.loopId}`)}),e.loops.map(y=>{const d=e.byId.get(y.loopId);if(!d)return null;let f;for(const B of y.bodyIds){const z=e.byId.get(B);z&&(!f||z.y<f.y)&&(f=z)}if(!f)return null;const m=d.cx,S=d.y+d.h,E=f.cx,T=f.y,_=y.forEachChip.y,L=14,I=_-L,j=_+L,P=`M ${m} ${S} V ${I}`,O=m===E?`M ${m} ${j} V ${T}`:wt([{x:m,y:j},{x:m,y:(j+T)/2},{x:E,y:(j+T)/2},{x:E,y:T}],Ct);return s.jsxs("g",{children:[s.jsx("path",{d:P,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none"}),s.jsx("path",{d:O,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none",markerEnd:"url(#fd-arrow)"})]},`foreach-${y.loopId}`)}),e.loops.map(y=>{if(!y.afterLastTargetId)return null;const d=e.byId.get(y.loopId),f=e.byId.get(y.afterLastTargetId);if(!d||!f)return null;const m=y.afterLastChip.y,S=14,E=m-S,T=m+S,_=f.cx,L=f.y,I=d.x+d.w,j=d.y+d.h/2,P=y.x+y.w;let O=y.y;for(const F of y.bodyIds){const U=e.byId.get(F);U&&(O=Math.max(O,U.y+U.h))}const B=Math.min(O+40,L-20),z=12,Z=[`M ${I} ${j}`,`H ${P-z}`,`A ${z} ${z} 0 0 1 ${P} ${j+z}`,`V ${E}`].join(" "),b=_<=P?[`M ${P} ${T}`,`V ${B-z}`,`A ${z} ${z} 0 0 1 ${P-z} ${B}`,`H ${_+z}`,`A ${z} ${z} 0 0 0 ${_} ${B+z}`,`V ${L}`].join(" "):[`M ${P} ${T}`,`V ${B-z}`,`A ${z} ${z} 0 0 0 ${P+z} ${B}`,`H ${_-z}`,`A ${z} ${z} 0 0 1 ${_} ${B+z}`,`V ${L}`].join(" ");return s.jsxs("g",{children:[s.jsx("path",{d:Z,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none"}),s.jsx("path",{d:b,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none",markerEnd:"url(#fd-arrow)"})]},`afterlast-${y.loopId}`)}),(()=>{const y=new Map;for(const f of t.edges)f.isFault||f.isGoTo||e.suppressedEdges.has(`${f.from}->${f.to}`)||y.set(f.from,(y.get(f.from)??0)+1);const d=new Map;return t.edges.map((f,m)=>{if(!f.isGoTo||f.isFault)return null;const S=e.byId.get(f.from);if(!S)return null;const E=d.get(f.from)??0;if(d.set(f.from,E+1),(y.get(f.from)??0)>0){const j=S.x+S.w,P=S.y+S.h/2+E*ko;return s.jsx("line",{x1:j,y1:P,x2:j+Ma,y2:P,stroke:v.edgeNeutral,strokeWidth:1.6},`goto-stub-${f.from}-${f.to}-${m}`)}const _=S.cx,L=S.y+S.h,I=S.y+S.h+La+E*ko;return s.jsx("line",{x1:_,y1:L,x2:_,y2:I,stroke:v.edgeNeutral,strokeWidth:1.6},`goto-stub-${f.from}-${f.to}-${m}`)})})(),t.edges.map((y,d)=>{if(!y.isGoTo||!y.isFault)return null;const f=e.byId.get(y.from);if(!f)return null;const m=f.x+f.w,S=f.y+f.h/2,E=m+At,T=E+Vn,_=T+At,L=a.has(y.from);return s.jsxs("g",{children:[s.jsx("path",{d:`M ${m} ${S} L ${E} ${S}`,stroke:v.statusNegative,strokeWidth:1.6,fill:"none",strokeDasharray:"5 4"}),!L&&s.jsx("path",{d:`M ${T} ${S} L ${_} ${S}`,stroke:v.statusNegative,strokeWidth:1.6,fill:"none",strokeDasharray:"5 4",markerEnd:"url(#fd-arrow-fault)"})]},`fault-goto-stub-${y.from}-${y.to}-${d}`)})]}),e.placed.map(y=>{const d=y.node.kind==="group"?y.node.id.replace(/^__group__/,""):void 0;return s.jsx(X4,{placed:y,selected:d?d===l:y.node.id===o,collapsible:u.has(y.node.id),isCollapsed:i.has(y.node.id),isGroupSummary:y.node.kind==="group",onSelect:d?()=>p(d):c,onSelectStep:h,selectedStepName:g&&g.stageId===y.node.id?g.stepName:null,onExpandGroup:d?()=>k(d):void 0,onToggleCollapse:x},y.node.id)}),e.groups.map(y=>s.jsx(Z4,{group:y,onCollapse:()=>k(y.id),onSelect:()=>p(y.id)},`gh-${y.id}`)),t.edges.map((y,d)=>{if(!y.isFault)return null;const f=e.byId.get(y.from);if(!f)return null;if(y.isGoTo){const T=f.x+f.w,_=f.y+f.h/2,L=T+At+Vn/2;return s.jsx(ka,{x:L,y:_,collapsed:a.has(y.from),onToggle:()=>C(y.from)},`fault-${y.from}-${y.to}-${d}`)}const m=e.byId.get(y.to),{lx:S,ly:E}=Ki(y,f,m,e.placed);return s.jsx(ka,{x:S,y:E,collapsed:a.has(y.from),onToggle:()=>C(y.from)},`fault-${y.from}-${y.to}-${d}`)}),(()=>{const y=new Map,d=new Map(t.nodes.map(m=>[m.id,m])),f=new Map;for(const m of t.edges)m.isFault||m.isGoTo||e.suppressedEdges.has(`${m.from}->${m.to}`)||f.set(m.from,(f.get(m.from)??0)+1);return t.edges.map((m,S)=>{if(!m.isGoTo)return null;const E=e.byId.get(m.from),T=d.get(m.to);if(!E||!T)return null;const _=e.byId.get(m.to);if(m.isFault){if(a.has(m.from))return null;const B=E.x+E.w+At+Vn+At,z=E.y+E.h/2;return s.jsx(ni,{x:B,y:z,targetLabel:T.label,onSelect:_?()=>c(m.to):void 0,variant:"right",fault:!0},`goto-${m.from}-${m.to}-${S}`)}const L=m.label?`${m.label}: ${T.label}`:T.label,I=y.get(m.from)??0;if(y.set(m.from,I+1),(f.get(m.from)??0)>0){const B=E.x+E.w+Ma,z=E.y+E.h/2+I*ko;return s.jsx(ni,{x:B,y:z,targetLabel:L,onSelect:_?()=>c(m.to):void 0,variant:"right"},`goto-${m.from}-${m.to}-${S}`)}const P=E.cx,O=E.y+E.h+La+I*ko;return s.jsx(ni,{x:P,y:O,targetLabel:L,onSelect:_?()=>c(m.to):void 0},`goto-${m.from}-${m.to}-${S}`)})})()]})}function e0({icon:e,label:t,onClick:n,primary:r,title:o}){return s.jsxs("button",{type:"button",onClick:n,title:o??t,style:{display:"inline-flex",alignItems:"center",gap:8,backgroundColor:r?v.interactivePrimary:v.bgElevated,color:r?v.interactivePrimaryFg:v.textPrimary,border:r?"none":`1px solid ${v.borderDefault}`,borderRadius:v.radiusMd,padding:"8px 14px",fontSize:13,fontWeight:600,fontFamily:v.fontFamily,cursor:"pointer",boxShadow:v.shadowMd},children:[e,t]})}function t0(){return s.jsx("div",{style:{display:"flex",height:"100%",minHeight:300,alignItems:"center",justifyContent:"center",fontSize:13,color:v.textSecondary,fontFamily:v.fontFamily},children:"Select a .flow-meta.xml file to render the flow."})}function n0(){return null}function r0({message:e}){return s.jsx("div",{style:{display:"flex",height:"100%",minHeight:300,alignItems:"center",justifyContent:"center",padding:"0 24px",fontFamily:v.fontFamily},children:s.jsx("div",{style:{borderRadius:v.radiusMd,border:`1px solid ${v.statusNegative}`,backgroundColor:v.bgElevated,padding:"12px 16px",fontSize:13,color:v.statusNegative},children:e})})}function o0({kind:e}){return s.jsx(Qs,{kind:e,size:26,glyph:14})}function _a({color:e,dashed:t}){return s.jsx("svg",{width:"30",height:"10",style:{display:"block"},children:s.jsx("line",{x1:"1",y1:"5",x2:"29",y2:"5",stroke:e,strokeWidth:"2.5",strokeDasharray:t?"5 4":void 0,strokeLinecap:"round"})})}const l0=["start","screen","setScreenProperty","decision","loop","assignment","addPromptInstructions","collectionProcessor","collectionSort","wait","transform","customError","recordLookup","recordCreate","recordUpdate","recordDelete","recordRollback","action","apexAction","apexPluginCall","emailAction","externalCallout","routeWork","addScreenPop","addSkillRequirement","checkAvailability","stage","interactiveStep","subflow","end"],i0={start:"Start",end:"End",collectionProcessor:"Collection Filter",collectionSort:"Collection Sort",apexAction:"Apex Action",emailAction:"Email Action",routeWork:"Route Work",addScreenPop:"Add Screen",addPromptInstructions:"Add Prompt Instructions"};function s0(e){const t=new Set(e.nodes.map(o=>o.kind)),n=o=>{var l;return i0[o]??((l=e.nodes.find(i=>i.kind===o))==null?void 0:l.typeLabel)??o},r=l0.filter(o=>t.has(o)).map(o=>({key:o,icon:s.jsx(o0,{kind:o}),label:n(o)}));return e.edges.some(o=>!o.isFault)&&r.push({key:"connector",icon:s.jsx(_a,{color:v.edgeNeutral}),label:"Connector"}),e.edges.some(o=>o.isFault)&&r.push({key:"fault",icon:s.jsx(_a,{color:v.statusNegative,dashed:!0}),label:"Fault Path"}),r}function Qr(e){const t=new Map;for(const n of e){let r=t.get(n.from);r||(r=[],t.set(n.from,r)),r.push(n)}return t}function u0(e){const t=e.nodes.filter(r=>r.kind==="start").map(r=>r.id);if(t.length)return t;const n=new Set(e.edges.map(r=>r.to));return e.nodes.filter(r=>!n.has(r.id)).map(r=>r.id)}function a0(e,t,n=Qr(e.edges)){const r=(n.get(t)??[]).filter(p=>!p.isFault);if(r.length<2)return;const o=r.map(p=>{const h=new Set,g=[p.to];for(;g.length;){const x=g.shift();if(!(h.has(x)||x===t)){h.add(x);for(const C of n.get(x)??[])!C.isFault&&C.to!==t&&g.push(C.to)}}return h});let l=new Set(o[0]);for(let p=1;p<o.length;p++)l=new Set([...l].filter(h=>o[p].has(h)));if(l.size===0)return;const i=new Map,u=[[t,0]];for(;u.length;){const[p,h]=u.shift();if(!i.has(p)){i.set(p,h);for(const g of n.get(p)??[])g.isFault||u.push([g.to,h+1])}}let a,c=1/0;for(const p of l){const h=i.get(p)??1/0;h<c&&(c=h,a=p)}return a}function c0(e,t,n){if(t.size===0&&n.size===0)return e;const r=new Set(e.nodes.map(d=>d.id)),o=new Map(e.nodes.map(d=>[d.id,d])),l=Qr(e.edges),i=[],u=new Set,a=new Set,c=new Set;for(const d of n)if(r.has(d))for(const f of l.get(d)??[]){if(!f.isFault||f.isGoTo)continue;const m=[f.to];for(;m.length;){const S=m.pop();if(!(c.has(S)||S===d)){c.add(S);for(const E of l.get(S)??[])E.isFault||E.isGoTo||c.has(E.to)||E.to===d||m.push(E.to)}}}for(const d of t){if(!r.has(d))continue;const f=o.get(d);if((f==null?void 0:f.kind)==="loop"){a.add(d);continue}const m=a0(e,d,l);m?(u.add(d),i.push({from:d,to:m,label:void 0})):u.add(d)}const h=[...e.edges.filter(d=>a.has(d.from)?d.isFault?!0:!!d.isDefault:u.has(d.from)?!!d.isFault:!0),...i],g=d=>!!d.isFault&&n.has(d.from)&&r.has(d.from),x=Qr(h),C=new Set,k=[...u0(e)].filter(d=>!c.has(d));for(;k.length;){const d=k.shift();if(!C.has(d)){C.add(d);for(const f of x.get(d)??[])C.has(f.to)||g(f)||c.has(f.to)||k.push(f.to)}}const y=[];for(const d of h)C.has(d.from)&&(g(d)?y.push({...d,isFaultStub:!0}):C.has(d.to)&&y.push(d));return{...e,nodes:e.nodes.filter(d=>C.has(d.id)),edges:y}}function f0(e,t){if(!e.groups||t.size===0)return e;let n=e.nodes,r=e.edges;for(const o of e.groups){if(!t.has(o.id))continue;const l=new Set(o.memberIds),i=o.memberIds.filter(x=>n.some(C=>C.id===x));if(i.length===0)continue;const u=`__group__${o.id}`;let a=0,c=0;for(const x of r){const C=l.has(x.from),k=l.has(x.to);C&&k||(k&&(a+=1),C&&(c+=1))}const p={id:u,kind:"group",label:o.label,typeLabel:"Group",metaTypeLabel:o.groupType??"Group",detail:`${i.length} element${i.length===1?"":"s"}`,details:[],autoLabel:!1,groupConnections:{incoming:a,outgoing:c}},h=[],g=new Set;for(const x of r){const C=l.has(x.from),k=l.has(x.to);if(C&&k)continue;if(!C&&!k){h.push(x);continue}const y=C?u:x.from,d=k?u:x.to;if(y===d)continue;const f=`${y}->${d}:${x.label??""}:${x.isFault?"f":""}`;g.has(f)||(g.add(f),h.push({...x,from:y,to:d}))}n=[...n.filter(x=>!l.has(x.id)),p],r=h}return{...e,nodes:n,edges:r}}function d0(e){const t=new Map(e.nodes.map(h=>[h.id,h.kind])),n=e.nodes.filter(h=>h.kind==="decision").map(h=>h.id);if(n.length===0)return e;const r=Qr(e.edges);function o(h){const g=(r.get(h)??[]).filter(x=>!x.isFault&&!x.isGoTo);return g.length===1?g[0].to:void 0}function l(h){const g=new Set;let x=h;for(;x&&!g.has(x);){if(g.add(x),t.get(x)==="end")return x;x=o(x)}}const i=new Map;for(const h of n){const g=[];for(const C of r.get(h)??[]){if(C.isFault||C.isGoTo)continue;const k=l(C.to);if(!k)continue;const y=i.get(k)??k;g.push(y)}if(g.length<2)continue;const x=g[0];for(const C of g)C!==x&&i.set(C,x)}if(i.size===0)return e;const u=h=>i.get(h)??h,a=e.edges.map(h=>i.has(h.to)?{...h,to:u(h.to)}:h),c=new Set;for(const h of a)c.add(h.from),c.add(h.to);const p=e.nodes.filter(h=>!(i.has(h.id)&&!c.has(h.id)));return{...e,nodes:p,edges:a}}function p0(e,t,n,r){return d0(c0(f0(e,r),t,n))}function h0(e){const t=new Set,n=new Set;if(!e)return{faultSources:t,branchSources:n};const r=new Map(e.nodes.map(l=>[l.id,l.kind])),o=Qr(e.edges);for(const[l,i]of o){i.some(c=>c.isFault)&&t.add(l);const u=r.get(l);if(u!=="decision"&&u!=="loop")continue;i.some(c=>!c.isFault&&!c.isGoTo)&&n.add(l)}return{faultSources:t,branchSources:n}}function m0({model:e,error:t,fileName:n,selectableNodes:r}){const[o,l]=$.useState(!1),[i,u]=$.useState(null),[a,c]=$.useState(new Set),[p,h]=$.useState(new Set),[g,x]=$.useState(new Set),[C,k]=$.useState(null),[y,d]=$.useState(null);$.useEffect(()=>{u(null),k(null),d(null),c(new Set),h(new Set),x(new Set),l(!1)},[e==null?void 0:e.sourcePath]);const{faultSources:f,branchSources:m}=$.useMemo(()=>h0(e),[e]),S=$.useMemo(()=>e?p0(e,a,p,g):void 0,[e,a,p,g]),[E,T]=$.useState(void 0),[_,L]=$.useState(!!S);$.useEffect(()=>{if(!S){T(void 0),L(!1);return}T(void 0),L(!0);let ue=!1;const be=setTimeout(()=>{if(ue)return;const we=W4(S);ue||(T(we),L(!1))},0);return()=>{ue=!0,clearTimeout(be)}},[S]);const I=$.useMemo(()=>(e==null?void 0:e.nodes.find(ue=>ue.id===i))??null,[e,i]),j=$.useMemo(()=>{var ue;return((ue=e==null?void 0:e.groups)==null?void 0:ue.find(be=>be.id===C))??null},[e,C]),{selectedStepStage:P,selectedStepData:O}=$.useMemo(()=>{var we;if(!e||!y)return{selectedStepStage:null,selectedStepData:null};const ue=e.nodes.find(Ae=>Ae.id===y.stageId)??null,be=((we=ue==null?void 0:ue.steps)==null?void 0:we.find(Ae=>Ae.name===y.stepName))??null;return{selectedStepStage:ue,selectedStepData:be}},[e,y]),B=$.useMemo(()=>e?s0(e):[],[e]),{toggleButton:z,overlay:Z,panel:D,selectMode:b,toggle:F}=a3({nodes:r??[],fileName:n,options:{selectLabel:"Select elements",selectingLabel:"Selecting"}}),U=$.useMemo(()=>({selectMode:b,onToggle:ue=>F("detail",ue)}),[b,F]),G=ue=>be=>ue(we=>{const Ae=new Set(we);return Ae.has(be)?Ae.delete(be):Ae.add(be),Ae}),te=G(c),se=G(h),st=G(x),le=m.size+f.size,je=le>0&&a.size>=m.size&&p.size>=f.size,Fe=()=>{c(je?new Set:new Set(m)),h(je?new Set:new Set(f))},gt=e&&(le>0||z)?s.jsxs("div",{style:{display:"flex",gap:8},children:[le>0?s.jsx(e0,{icon:je?s.jsx(w3,{size:14}):s.jsx(S3,{size:14}),label:je?"Expand All":"Collapse All",onClick:Fe,title:"Expand or collapse all branches and fault paths"}):null,z]}):void 0;return s.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",overflow:"hidden",backgroundColor:v.canvasBg,color:v.textPrimary,fontFamily:v.fontFamily},children:s.jsxs("div",{style:{flex:1,display:"flex",minHeight:0},children:[s.jsx("div",{style:{width:e&&o?336:0,flexShrink:0,overflow:"hidden",transition:"width 240ms cubic-bezier(0.4, 0, 0.2, 1)"},"aria-hidden":!(e&&o),children:e?s.jsx("div",{style:{width:336,height:"100%",display:"flex"},children:s.jsx(j4,{model:e,selectedNode:I,selectedGroup:j,selectedStepStage:P,selectedStep:O,onClearSelection:()=>{u(null),k(null),d(null)},onClose:()=>l(!1),rowSelection:U})}):null}),s.jsxs("div",{style:{flex:1,position:"relative",minWidth:0,minHeight:0,display:"flex",flexDirection:"column"},children:[s.jsx(g3,{contentWidth:E==null?void 0:E.width,contentHeight:E==null?void 0:E.height,contentCenterX:E==null?void 0:E.spineCenterX,resetKey:(e==null?void 0:e.sourcePath)??"",overlayTopRight:gt,overlay:Z,zoomControlsVariant:"pill",legend:e&&B.length?s.jsx("div",{className:"flow-legend-wrap",children:s.jsx(Xd,{items:B})}):null,onBackgroundClick:()=>{u(null),k(null),d(null)},children:({zoom:ue,pan:be})=>t?s.jsx(r0,{message:t}):e&&(_||!E)?s.jsx(n0,{}):E&&e&&S?s.jsx(J4,{layout:E,model:S,zoom:ue,pan:be,selectedId:i,selectedGroupId:C,collapsedBranches:a,branchSources:m,collapsedFaults:p,onSelect:we=>{u(we),k(null),d(null),l(!0)},onSelectGroup:we=>{k(we),u(null),d(null),l(!0)},onSelectStep:(we,Ae)=>{d({stageId:we,stepName:Ae}),u(null),k(null),l(!0)},selectedStep:y,onToggleCollapse:te,onToggleFault:se,onToggleGroup:we=>{k(we),u(null),st(we)}}):s.jsx(t0,{})}),D,o?null:s.jsxs("button",{type:"button",onClick:()=>l(!0),style:{position:"absolute",top:16,left:16,display:"inline-flex",alignItems:"center",gap:6,backgroundColor:v.bgElevated,color:v.textPrimary,border:`1px solid ${v.borderDefault}`,borderRadius:v.radiusMd,padding:"7px 12px",fontSize:12,fontWeight:600,fontFamily:v.fontFamily,cursor:"pointer",zIndex:5},children:[s.jsx(Jn,{size:14}),"Flow Information"]})]})]})})}Qd({pluginName:"Flow",rootClass:"flow-app",render:(e,t)=>s.jsx(m0,{model:e,fileName:t.fileName,pluginName:"Salesforce Flow",selectableNodes:t.selectableNodes}),validateData:e=>{var t;return(t=e==null?void 0:e.nodes)!=null&&t.length?null:"Flow has no elements"}});
|
|
48
|
+
`}function ql(e,t){const{logPrefix:n,rootClass:r,title:o,consoleMessage:l,errorBuilderMessage:i,context:u={},domMessage:a,filePath:c}=t;console.error(`${n} ${l}`),yn.create().category(Qn.Rendering).message(i).context(u).send(),Yd(e,{rootClass:r,title:o,message:a,filePath:c})}async function aa(e){const{pluginName:t,rootClass:n,render:r,validateData:o}=e,l=`[${t} React App]`,i=document.getElementById("root");if(!i){console.error(`${l} Root element not found`);return}if(an&&(an(),an=null),et){try{et.unmount()}catch(C){console.warn(`${l} Error unmounting previous root:`,C)}et=null,wo=null}const u={fn:null};let a=null;an=Od(C=>{if(u.fn)try{u.fn(C)}catch(k){console.error(`${l} Update handler threw:`,k)}else a=C});const p=(C,k,y)=>{C.render(s.jsx(K.StrictMode,{children:s.jsx(bd,{children:r(k,y)})}))},h=()=>{if(et){try{et.unmount()}catch(C){console.warn(`${l} Error unmounting previous root:`,C)}et=null}wo=null},g=(C,k)=>{const y=C==null?void 0:C.context,d=C==null?void 0:C.data;if(!y||d==null){h(),ql(i,{logPrefix:l,rootClass:n,title:k?"Error: No updated data provided":"Error: No data provided",consoleMessage:"No data provided",errorBuilderMessage:`${t} data is missing or invalid`,context:{filePath:y==null?void 0:y.filePath,reason:"No data provided in response"},domMessage:`${t} data is missing or invalid.`,filePath:(y==null?void 0:y.filePath)||"Unknown"});return}const f=o!=null?o(d):null;if(f!=null){h(),ql(i,{logPrefix:l,rootClass:n,title:k?"Error: Invalid Updated Data":"Error: Invalid Data",consoleMessage:`Validation failed: ${f}`,errorBuilderMessage:`${t} data structure is invalid`,context:{filePath:y.filePath,reason:f},domMessage:f});return}const m={filePath:y.filePath,fileName:y.fileName,selectableNodes:C.selectableNodes};if(et==null||m.filePath!==wo){if(et){try{et.unmount()}catch(S){console.warn(`${l} Error unmounting previous root:`,S)}et=null}i.innerHTML="",et=ri.createRoot(i),wo=m.filePath}p(et,d,m)},x=await $d();if(!x){if(ql(i,{logPrefix:l,rootClass:n,title:"Error: Failed to load data",consoleMessage:"Failed to receive plugin data from host",errorBuilderMessage:`${t} data is missing or invalid`,context:{reason:"Failed to receive plugin data from host"},domMessage:`Could not receive ${t} data from the extension host.`}),u.fn=C=>g(C,!0),a){const C=a;a=null,u.fn(C)}return}if(g(x,!1),u.fn=C=>g(C,!0),a){const C=a;a=null,u.fn(C)}}function Qd(e){Dd(),ua||(window.addEventListener("pagehide",()=>{an&&(an(),an=null)}),ua=!0),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{aa(e)}):aa(e)}const Xd=({items:e,header:t="LEGEND"})=>K.createElement("div",{className:"mv-legend-panel"},K.createElement("div",{className:"mv-legend-panel__header"},t),K.createElement("div",{className:"mv-legend-panel__body"},e.map(n=>K.createElement("div",{key:n.key,className:"mv-legend-panel__item"},K.createElement("span",{className:"mv-legend-panel__icon"},n.icon),n.label))));function Kd(e,t,n){if(n)return{changed:!1,key:e,item:null};const r=t?$o(t):null;return r===e?{changed:!1,key:r,item:null}:{changed:!0,key:r,item:t}}const qd=({active:e,selected:t,onReplace:n,onAdd:r,onToggle:o,onClear:l,onActivate:i,onHover:u,onMarqueePreview:a})=>{var j;const c=$.useRef(null),p=$.useRef(null),[h,g]=$.useState(null),x=$.useRef(null),C=$.useRef(null),k=$.useRef(null),y=$.useCallback(()=>{var P;return((P=c.current)==null?void 0:P.parentElement)??null},[]),d=$.useCallback(P=>{var O;!e||P.button!==0||(p.current={x:P.clientX,y:P.clientY,additive:P.shiftKey||P.metaKey||P.ctrlKey},g(Co(P.clientX,P.clientY,P.clientX,P.clientY)),(O=c.current)==null||O.setPointerCapture(P.pointerId),x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),k.current!==null&&(k.current=null,u==null||u(null)))},[e,u]),f=$.useCallback(P=>{if(p.current){const O=p.current,B=Co(O.x,O.y,P.clientX,P.clientY);g(B),a&&(C.current={x:P.clientX,y:P.clientY},x.current===null&&(x.current=requestAnimationFrame(()=>{x.current=null;const z=p.current,Z=C.current,D=y();!z||!Z||!D||a(Ud(D,Co(z.x,z.y,Z.x,Z.y)))})));return}u&&(C.current={x:P.clientX,y:P.clientY},x.current===null&&(x.current=requestAnimationFrame(()=>{x.current=null;const O=C.current,B=y();if(!O||!B)return;const z=Kl(B,O.x,O.y),Z=Kd(k.current,z,p.current!==null);Z.changed&&(k.current=Z.key,u(Z.item))})))},[u,a,y]),m=$.useCallback(P=>{var b;const O=p.current;if(p.current=null,g(null),x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),a==null||a([]),!O)return;(b=c.current)==null||b.releasePointerCapture(P.pointerId);const B=y();if(!B)return;if(Math.hypot(P.clientX-O.x,P.clientY-O.y)<Hd){const F=Kl(B,P.clientX,P.clientY);F?o(F):O.additive||l();return}const Z=Co(O.x,O.y,P.clientX,P.clientY),D=Bd(B,Z);O.additive?r(D):n(D)},[y,r,n,o,l,a]),S=$.useCallback(P=>{if(!e||!i)return;const O=y();if(!O)return;const B=Kl(O,P.clientX,P.clientY);B&&i(B)},[e,i,y]),E=$.useCallback(()=>{p.current||(x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),k.current!==null&&(k.current=null,u==null||u(null)))},[u]),T=$.useRef(u);T.current=u;const _=$.useRef(a);if(_.current=a,$.useEffect(()=>()=>{var P,O;x.current!==null&&(cancelAnimationFrame(x.current),x.current=null),k.current!==null&&(k.current=null,(P=T.current)==null||P.call(T,null)),(O=_.current)==null||O.call(_,[])},[]),!e)return null;const L=(j=c.current)==null?void 0:j.getBoundingClientRect(),I=h&&L?{left:h.left-L.left,top:h.top-L.top,width:h.right-h.left,height:h.bottom-h.top}:void 0;return K.createElement("div",{ref:c,className:"mv-marquee-overlay",onPointerDown:d,onPointerMove:f,onPointerUp:m,onPointerLeave:E,onDoubleClick:S},I&&K.createElement("div",{className:"mv-marquee-box",style:I}),K.createElement("span",{hidden:!0},t.size))};function Jd(){const[e,t]=$.useState(new Map),n=$.useCallback(a=>{const c=new Map;for(const p of a)c.set($o(p),p);t(c)},[]),r=$.useCallback(a=>{t(c=>{const p=new Map(c);for(const h of a)p.set($o(h),h);return p})},[]),o=$.useCallback(a=>{t(c=>{const p=new Map(c),h=$o(a);return p.has(h)?p.delete(h):p.set(h,a),p})},[]),l=$.useCallback(()=>t(new Map),[]),i=$.useCallback((a,c)=>e.has(`${a}::${c}`),[e]),u=$.useMemo(()=>Array.from(e.values()),[e]);return{selected:e,items:u,replace:n,add:r,toggle:o,clear:l,isSelected:i}}function Z2(e){const t=new Map;for(const n of e)n.id&&!t.has(n.id)&&t.set(n.id,n);return t}function e3(e,t){if(typeof document>"u")return;const n=new Map,r=document.querySelectorAll(`[${Xi}]`);for(let o=0;o<r.length;o++){const l=r.item(o),i=l.getAttribute(Xi)??"",u=e.get(i);u&&(l.setAttribute(Kn,""),l.setAttribute(qn,u.type),n.set(i,l))}for(const[o,l]of t)n.get(o)!==l&&(l.removeAttribute(Kn),l.removeAttribute(qn));t.clear(),n.forEach((o,l)=>t.set(l,o))}function ca(e){for(const t of e.values())t.removeAttribute(Kn),t.removeAttribute(qn);e.clear()}function t3(e,t){const n=Z2(e),r=()=>e3(n,t);if(typeof document>"u"||typeof MutationObserver>"u")return r(),()=>ca(t);r();const o=new MutationObserver(()=>r());return o.observe(document.documentElement,{childList:!0,subtree:!0}),()=>{o.disconnect(),ca(t)}}function n3(e,t,n){var u;const r=e.parentId?(u=t.get(e.parentId))==null?void 0:u.apiName:void 0,o={elementType:e.type,apiName:e.apiName};r&&(o.parent=r),e.attributes&&Object.keys(e.attributes).length>0&&(o.attributes=e.attributes),e.filePath&&(o.filePath=e.filePath);const i=(e.filePath?e.filePath.split("/").pop():void 0)||n;return i&&(o.fileName=i),o}function r3(e,t,n){const r=Z2(t),o=[];for(const l of e){const i=r.get(l.id);i&&o.push(n3(i,r,n))}return o}function o3(){return K.createElement("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},K.createElement("path",{d:"M14.5 1.5L7 9M14.5 1.5L10 14.5l-3-5.5-5.5-3L14.5 1.5z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}))}const l3=({chips:e,onSubmit:t,onClear:n,onRemove:r,placeholder:o})=>{const[l,i]=$.useState(""),[u,a]=$.useState(!1),c=$.useRef(null),p=e.length,h=p===0,g=e.map(y=>y.title??y.label).sort().join(",");if($.useEffect(()=>{var y;h||(y=c.current)==null||y.focus()},[h]),$.useEffect(()=>{a(!1)},[g]),h)return null;const x=l.trim().length>0,C=()=>{if(!x)return;t(l)&&(a(!0),i(""))},k=y=>{(y.metaKey||y.ctrlKey)&&y.key==="Enter"&&(y.preventDefault(),C())};return K.createElement("div",{className:"vibe-edit-panel",role:"dialog","aria-label":"Edit selected metadata with AI"},K.createElement("div",{className:"vibe-edit-panel__header"},K.createElement("span",{className:"vibe-edit-panel__title"},"Edit Element (",p," Selected)"),K.createElement("button",{className:"vibe-edit-panel__close",onClick:n,"aria-label":"Clear selection",type:"button"},"✕")),K.createElement("div",{className:"vibe-edit-panel__chips"},e.map((y,d)=>K.createElement("span",{className:`vibe-edit-panel__chip ${y.variant==="primary"?"vibe-edit-panel__chip--field":""}`,key:`${y.title??y.label}:${d}`,title:y.title??y.label},K.createElement("span",{className:"vibe-edit-panel__chip-label"},y.label),r&&K.createElement("button",{type:"button",className:"vibe-edit-panel__chip-remove","aria-label":`Remove ${y.label} from selection`,onClick:()=>r(d)},"✕")))),K.createElement("div",{className:"vibe-edit-panel__input-wrap"},K.createElement("textarea",{ref:c,className:"vibe-edit-panel__input",value:l,onChange:y=>i(y.target.value),onKeyDown:k,placeholder:o??"Describe the change you want…",rows:3}),K.createElement("button",{className:"vibe-edit-panel__submit",onClick:C,disabled:!x,type:"button"},K.createElement(o3,null),K.createElement("span",null,"Send to Agent"))),K.createElement("div",{className:"vibe-edit-panel__footer"},K.createElement("span",{className:"vibe-edit-panel__hint"},u?"✓ Sent to agent":"⌘/Ctrl + Enter to send")))};function i3(e){return e.length>0}function s3(e){return{label:e.apiName,title:`${e.elementType}: ${e.apiName}`,variant:e.elementType==="field"?"primary":"default"}}function u3(){return K.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},K.createElement("rect",{x:"1.5",y:"1.5",width:"9",height:"9",stroke:"currentColor",strokeWidth:"1.25",strokeDasharray:"2 1.75"}),K.createElement("path",{d:"M7 7l7 2.6-2.9 0.9-0.9 2.9L7 7z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.5",strokeLinejoin:"round"}))}function a3(e){const{nodes:t,fileName:n,options:r}=e,o=r==null?void 0:r.placeholder,l=(r==null?void 0:r.selectLabel)??"Select",i=(r==null?void 0:r.selectingLabel)??"Selecting",u=(r==null?void 0:r.chipFor)??s3,a=r==null?void 0:r.onActivate,[c,p]=$.useState(!1),[h,g]=$.useState(null),[x,C]=$.useState([]),k=Jd(),y=$.useRef(new Map);$.useEffect(()=>{if(c)return t3(t,y.current)},[c,t]),$.useEffect(()=>{if(typeof document>"u")return;const j=[];if(c)for(const[P,O]of y.current){const B=O.getAttribute(qn)??"";P&&k.isSelected(B,P)&&(O.setAttribute(ia,""),j.push(O))}return()=>{for(const P of j)P.removeAttribute(ia)}},[c,k.selected,t]),$.useEffect(()=>{if(typeof document>"u"||!c)return;const j=new Set;h&&j.add(`${h.type}::${h.id}`);for(const O of x)j.add(`${O.type}::${O.id}`);if(j.size===0)return;const P=[];for(const[O,B]of y.current){const z=B.getAttribute(qn)??"";O&&j.has(`${z}::${O}`)&&(B.setAttribute(sa,""),P.push(B))}return()=>{for(const O of P)O.removeAttribute(sa)}},[c,h,x,t]);const d=$.useMemo(()=>r3(k.items,t,n),[t,k.items,n]),f=$.useMemo(()=>d.map(u),[d,u]),m=$.useCallback(j=>{const P={prompt:j.trim(),attachments:d},O=V2({type:Xn.SUBMIT_EDIT,payload:P});return O&&(k.clear(),p(!1)),O},[d,k]),S=$.useCallback(j=>{const P=k.items[j];P&&k.toggle(P)},[k]),E=$.useCallback((j,P)=>{c&&k.toggle({type:j,id:P})},[c,k]),T=$.useCallback(()=>{p(j=>{const P=!j;return P||(k.clear(),g(null),C([])),P})},[k]);if(!i3(t))return{toggleButton:null,overlay:null,panel:null,selectMode:!1,isSelected:()=>!1,toggle:()=>{}};const _=K.createElement("button",{className:`mv-vibe-edit-toggle ${c?"mv-vibe-edit-toggle--active":""}`,onClick:T,"aria-label":"Select components to edit with AI",title:"Select components to edit with AI",type:"button"},K.createElement(u3,null),K.createElement("span",null,c?i:l)),L=K.createElement(qd,{active:c,selected:k.selected,onReplace:k.replace,onAdd:k.add,onToggle:k.toggle,onClear:k.clear,onActivate:a?j=>a(j.id):void 0,onHover:g,onMarqueePreview:C}),I=K.createElement(l3,{chips:f,onSubmit:m,onClear:k.clear,onRemove:S,placeholder:o});return{toggleButton:_,overlay:L,panel:I,selectMode:c,isSelected:k.isSelected,toggle:E}}const ge={canvasBg:"var(--mv-canvas-bg, #1e1e1e)",bgSurface:"var(--mv-bg-surface, #1e1e1e)",bgSurfaceHover:"var(--mv-bg-surface-hover, #2a2d2e)",bgElevated:"var(--mv-bg-elevated, #252526)",panelBg:"var(--mv-panel-bg, #252526)",panelBorder:"var(--mv-panel-border, #454545)",panelShadow:"var(--mv-panel-shadow, 0 4px 16px rgba(0, 0, 0, 0.16))",borderDefault:"var(--mv-border-default, #454545)",borderStrong:"var(--mv-border-default, #5b5b5b)",separator:"var(--mv-border-default, rgba(229, 229, 238, 0.18))",textPrimary:"var(--mv-text-primary, #cccccc)",textSecondary:"var(--mv-text-secondary, #999999)",textMuted:"var(--mv-text-muted, #656565)",textInverse:"#ffffff",textBright:"var(--mv-text-primary, #f3f3f3)",interactivePrimary:"var(--mv-interactive-primary, #3794ff)",interactivePrimaryFg:"var(--mv-button-primary-fg, #ffffff)",focusBorder:"var(--mv-border-focus, #007fd4)",flowAction:"var(--mv-flow-action, #5867e8)",flowOrchestration:"var(--mv-flow-orchestration, #9050e9)",statusNegative:"var(--mv-status-negative, #f14c4c)",edgeNeutral:"var(--mv-edge-neutral, #9999a0)",dotsColor:"rgba(120, 120, 130, 0.4)",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',fontFamilyMono:'SF Mono, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace',radiusSm:2,radiusMd:4,radiusLg:8,radiusFull:9999,shadowSm:"0 1px 2px 0 rgba(0, 0, 0, 0.12)",shadowMd:"0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1)",shadowXl:"0 20px 25px -5px rgba(0, 0, 0, 0.18), 0 10px 10px -5px rgba(0, 0, 0, 0.1)"},fa=ge,v=ge;function da(e){return Math.min(2.5,Math.max(.05,e))}const rr=e=>({width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0});function c3({size:e=17}){return s.jsxs("svg",{...rr(e),children:[s.jsx("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),s.jsx("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),s.jsx("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),s.jsx("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),s.jsx("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),s.jsx("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"})]})}function f3({size:e=17}){return s.jsxs("svg",{...rr(e),children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),s.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})}function d3({size:e=17}){return s.jsxs("svg",{...rr(e),children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),s.jsx("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),s.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})}function p3({size:e=14}){return s.jsxs("svg",{...rr(e),children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function h3({size:e=14}){return s.jsx("svg",{...rr(e),children:s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}function m3({size:e=14}){return s.jsxs("svg",{...rr(e),children:[s.jsx("path",{d:"M15 3h6v6"}),s.jsx("path",{d:"M9 21H3v-6"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})}function g3({contentWidth:e,contentHeight:t,contentCenterX:n,children:r,overlayTopRight:o,resetKey:l,zoomControlsVariant:i="default",legend:u,overlay:a,onBackgroundClick:c}){const[p,h]=$.useState(1),[g,x]=$.useState({x:0,y:0}),[C,k]=$.useState(!1),[y,d]=$.useState(!1),f=$.useRef(null),m=$.useRef(null),S=$.useCallback((z,Z)=>{h(D=>{const b=da(D+z);if(Z&&b!==D){const F=b/D;x(U=>({x:Z.x-(Z.x-U.x)*F,y:Z.y-(Z.y-U.y)*F}))}return b})},[]),E=$.useRef(e);E.current=e;const T=$.useRef(t);T.current=t;const _=$.useRef(n);_.current=n;const L=$.useCallback((z=1)=>{const Z=f.current,D=E.current;if(!Z||!D){x({x:0,y:0});return}const b=Z.getBoundingClientRect(),F=_.current,U=F!==void 0?b.width/2-F*z:Math.max(0,(b.width-D*z)/2);x({x:U,y:24})},[]),I=$.useCallback(()=>{const z=f.current,Z=E.current,D=T.current;if(!z||!Z||!D)return 1;const b=z.getBoundingClientRect();if(b.width<=0||b.height<=0)return 1;const F=48,U=(b.width-F)/Z,G=(b.height-F)/D;return da(Math.min(1,U,G))},[]),j=$.useCallback(()=>{const z=I();h(z),L(z)},[L,I]),P=$.useRef(p);P.current=p;const O=$.useRef(!1);$.useEffect(()=>{O.current=!1},[l]),$.useLayoutEffect(()=>{if(O.current||!e)return;const z=I();h(z),L(z),O.current=!0},[l,e]);const B=$.useCallback(z=>{var D;if(z.button!==0)return;const Z=z.target;Z.closest("button, a, input, select")||Z.closest("[data-no-pan]")||((D=window.getSelection())==null||D.removeAllRanges(),c==null||c(),m.current={startX:z.clientX,startY:z.clientY,panX:g.x,panY:g.y},k(!0))},[g.x,g.y,c]);return $.useEffect(()=>{if(!C)return;const z=D=>{const b=m.current;b&&x({x:b.panX+(D.clientX-b.startX),y:b.panY+(D.clientY-b.startY)})},Z=()=>{m.current=null,k(!1)};return window.addEventListener("mousemove",z),window.addEventListener("mouseup",Z),window.addEventListener("mouseleave",Z),()=>{window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",Z),window.removeEventListener("mouseleave",Z)}},[C]),$.useEffect(()=>{const z=f.current;if(!z)return;const Z=D=>{const b=D.ctrlKey,F=D.metaKey||D.altKey;if(b||F){D.preventDefault();const U=z.getBoundingClientRect(),G={x:D.clientX-U.left,y:D.clientY-U.top},te=b?.01:.0025;S(-D.deltaY*te,G);return}D.preventDefault(),x(U=>({x:U.x-D.deltaX,y:U.y-D.deltaY}))};return z.addEventListener("wheel",Z,{passive:!1}),()=>z.removeEventListener("wheel",Z)},[S]),s.jsxs("div",{style:{position:"relative",flex:1,overflow:"hidden"},children:[s.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:fa.canvasBg,backgroundImage:`radial-gradient(circle, ${fa.dotsColor} 1px, transparent 1.5px)`,backgroundSize:"22px 22px",pointerEvents:"none"}}),s.jsx("div",{ref:f,onMouseDown:B,style:{position:"relative",height:"100%",width:"100%",overflow:"hidden",overscrollBehavior:"contain",cursor:C?"grabbing":"grab",userSelect:C?"none":"auto"},children:r({zoom:p,pan:g})}),o?s.jsx("div",{style:{position:"absolute",top:12,right:12,zIndex:25},children:o}):null,a,u&&y?u:null,i==="pill"?s.jsx(y3,{zoom:p,onZoomIn:()=>S(.1),onZoomOut:()=>S(-.1),onReset:j,onListClick:u?()=>d(z=>!z):void 0,listActive:y}):s.jsx(v3,{zoom:p,onZoomIn:()=>S(.1),onZoomOut:()=>S(-.1),onReset:j})]})}function y3({zoom:e,onZoomIn:t,onZoomOut:n,onReset:r,onListClick:o,listActive:l}){const i={display:"flex",alignItems:"center",justifyContent:"center",height:34,width:38,border:"none",backgroundColor:"transparent",color:ge.textSecondary,cursor:"pointer",fontFamily:ge.fontFamily};return s.jsxs("div",{className:"mv-zoom-bar",style:{position:"absolute",bottom:16,right:16,display:"flex",alignItems:"center",height:40,padding:"0 4px",borderRadius:ge.radiusLg,border:`1px solid ${ge.borderDefault}`,backgroundColor:ge.panelBg,boxShadow:ge.panelShadow},children:[o?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:o,style:{...i,color:l?ge.interactivePrimary:ge.textSecondary},title:"Legend","aria-label":"Toggle legend","aria-pressed":l,children:s.jsx(c3,{size:17})}),s.jsx("span",{style:{width:1,height:20,backgroundColor:ge.borderDefault}})]}):null,s.jsx("button",{type:"button",onClick:n,style:i,title:"Zoom out",children:s.jsx(f3,{size:17})}),s.jsxs("button",{type:"button",onClick:r,style:{...i,width:"auto",minWidth:52,padding:"0 8px",color:ge.textPrimary,fontSize:13,fontWeight:600,fontVariantNumeric:"tabular-nums"},title:"Reset zoom",children:[Math.round(e*100),"%"]}),s.jsx("button",{type:"button",onClick:t,style:i,title:"Zoom in",children:s.jsx(d3,{size:17})})]})}function v3({zoom:e,onZoomIn:t,onZoomOut:n,onReset:r}){const o={display:"flex",alignItems:"center",justifyContent:"center",height:28,width:28,border:"none",backgroundColor:"transparent",color:ge.textPrimary,cursor:"pointer",fontFamily:ge.fontFamily};return s.jsxs("div",{className:"mv-zoom-bar",style:{position:"absolute",bottom:12,left:12,display:"flex",flexDirection:"column",overflow:"hidden",borderRadius:ge.radiusMd,border:`1px solid ${ge.borderDefault}`,backgroundColor:ge.panelBg,boxShadow:ge.panelShadow},children:[s.jsx("button",{type:"button",onClick:t,style:{...o,borderBottom:`1px solid ${ge.borderDefault}`},title:`Zoom in (${Math.round(e*100)}%)`,children:s.jsx(p3,{size:14})}),s.jsx("button",{type:"button",onClick:n,style:{...o,borderBottom:`1px solid ${ge.borderDefault}`},title:"Zoom out",children:s.jsx(h3,{size:14})}),s.jsx("button",{type:"button",onClick:r,style:o,title:`Reset zoom (${Math.round(e*100)}%)`,children:s.jsx(m3,{size:14})})]})}function Pe({size:e=16,color:t="currentColor",strokeWidth:n=2},r){return s.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:r})}const to=e=>Pe(e,s.jsx("path",{d:"m6 9 6 6 6-6"})),Jn=e=>Pe(e,s.jsx("path",{d:"m9 18 6-6-6-6"})),x3=e=>Pe(e,s.jsx("path",{d:"m15 18-6-6 6-6"})),C3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M18 6 6 18"}),s.jsx("path",{d:"m6 6 12 12"})]})),w3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("polyline",{points:"15 3 21 3 21 9"}),s.jsx("polyline",{points:"9 21 3 21 3 15"}),s.jsx("line",{x1:"21",x2:"14",y1:"3",y2:"10"}),s.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})),S3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("polyline",{points:"4 14 10 14 10 20"}),s.jsx("polyline",{points:"20 10 14 10 14 4"}),s.jsx("line",{x1:"14",x2:"21",y1:"10",y2:"3"}),s.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})),k3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),s.jsx("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),s.jsx("path",{d:"M3 12A9 3 0 0 0 21 12"})]})),E3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),s.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),s.jsx("path",{d:"M10 9H8"}),s.jsx("path",{d:"M16 13H8"}),s.jsx("path",{d:"M16 17H8"})]})),j3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"}),s.jsx("line",{x1:"4",x2:"4",y1:"22",y2:"15"})]})),L3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"6",x2:"6",y1:"3",y2:"15"}),s.jsx("circle",{cx:"18",cy:"6",r:"3"}),s.jsx("circle",{cx:"6",cy:"18",r:"3"}),s.jsx("path",{d:"M18 9a9 9 0 0 1-9 9"})]})),M3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),s.jsx("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),s.jsx("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),s.jsx("line",{x1:"16",x2:"14",y1:"3",y2:"21"})]})),_3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),s.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),s.jsx("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),s.jsx("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]})),P3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"m3 17 2 2 4-4"}),s.jsx("path",{d:"m3 7 2 2 4-4"}),s.jsx("path",{d:"M13 6h8"}),s.jsx("path",{d:"M13 12h8"}),s.jsx("path",{d:"M13 18h8"})]})),T3=e=>Pe(e,s.jsx("path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2"})),I3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("polyline",{points:"4 17 10 11 4 5"}),s.jsx("line",{x1:"12",x2:"20",y1:"19",y2:"19"})]})),N3=e=>Pe(e,s.jsxs(s.Fragment,{children:[s.jsx("polyline",{points:"4 7 4 4 20 4 20 7"}),s.jsx("line",{x1:"9",x2:"15",y1:"20",y2:"20"}),s.jsx("line",{x1:"12",x2:"12",y1:"4",y2:"20"})]})),R3=e=>Pe(e,s.jsx("path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}));function b2({title:e,open:t,onToggle:n,children:r}){return s.jsxs("div",{style:{borderBottom:`1px solid ${v.separator}`},children:[s.jsxs("button",{type:"button",onClick:n,style:{width:"100%",display:"flex",alignItems:"center",gap:6,padding:"12px 16px",background:"none",border:"none",color:v.textPrimary,cursor:"pointer",fontSize:13,fontWeight:600,fontFamily:v.fontFamily},children:[t?s.jsx(to,{size:14}):s.jsx(Jn,{size:14}),e]}),t?s.jsx("div",{style:{padding:"0 16px 14px 16px"},children:r}):null]})}function bs(e,t){return t?t.selectMode?{"data-mv-id":e,onClick:n=>{n.stopPropagation(),t.onToggle(e)},onMouseEnter:n=>n.currentTarget.setAttribute("data-mv-hover",""),onMouseLeave:n=>n.currentTarget.removeAttribute("data-mv-hover"),style:{cursor:"crosshair",display:"inline-block"}}:{"data-mv-id":e}:{}}function dt({label:e,value:t,rowId:n,selection:r}){const o=n?bs(n,r):{};return s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:10,fontSize:12,padding:"3px 0",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("span",{style:{color:v.textSecondary,fontFamily:v.fontFamilyMono,flexShrink:0,whiteSpace:"nowrap"},children:e}),s.jsx("span",{...o,style:{color:v.textPrimary,fontFamily:v.fontFamilyMono,textAlign:"right",wordBreak:"break-word",minWidth:0,...o.style},children:t})]})}function nn({label:e,value:t,mono:n}){return s.jsxs("div",{style:{marginBottom:8,fontSize:12.5,lineHeight:1.5},children:[s.jsxs("span",{style:{color:v.textMuted},children:[e,": "]}),s.jsx("span",{style:{color:v.textSecondary,fontFamily:n?v.fontFamilyMono:void 0},children:t})]})}function F3({text:e}){return s.jsx("div",{style:{fontSize:12,color:v.textMuted},children:e})}function Ys({onBack:e}){return s.jsxs("button",{type:"button",onClick:e,style:{display:"flex",alignItems:"center",gap:6,background:"none",border:"none",borderBottom:`1px solid ${v.separator}`,color:v.interactivePrimary,cursor:"pointer",fontSize:12,fontWeight:600,fontFamily:v.fontFamily,padding:"10px 16px",textAlign:"left"},children:[s.jsx(x3,{size:14}),"Back to flow"]})}function z3({model:e}){const[t,n]=$.useState(!0);return s.jsxs(b2,{title:"Flow Properties",open:t,onToggle:()=>n(r=>!r),children:[s.jsx(nn,{label:"Label",value:e.label}),e.description?s.jsx(nn,{label:"Description",value:e.description}):null,e.processType?s.jsx(nn,{label:"Type",value:e.processType}):null,e.apiVersion?s.jsx(nn,{label:"API Version",value:e.apiVersion}):null,e.status?s.jsx(nn,{label:"Status",value:e.status}):null,e.interviewLabel?s.jsx(nn,{label:"Interview Label",value:e.interviewLabel}):null,e.canvasMode?s.jsx(nn,{label:"Canvas",value:e.canvasMode==="AUTO_LAYOUT_CANVAS"?"Auto-Layout":"Free-Form"}):null]})}const $3=[{key:"actionOutput",title:"Actions"},{key:"apexVariable",title:"Apex-Defined Variables"},{key:"collectionVariable",title:"Collection Variables"},{key:"constant",title:"Constants"},{key:"decisionOutcome",title:"Decision Outcomes"},{key:"formula",title:"Formulas"},{key:"recordOutput",title:"Record Outputs"},{key:"recordVariable",title:"Record (Single) Variables"},{key:"choice",title:"Choices"},{key:"textTemplate",title:"Text Templates"},{key:"stage",title:"Stages"},{key:"variable",title:"Variables"}];function O3({category:e}){const t={size:15,color:v.textMuted,strokeWidth:2};switch(e){case"actionOutput":return s.jsx(R3,{...t});case"apexVariable":return s.jsx(I3,{...t});case"recordVariable":case"recordOutput":return s.jsx(k3,{...t});case"decisionOutcome":return s.jsx(L3,{...t});case"formula":return s.jsx(T3,{...t});case"constant":return s.jsx(M3,{...t});case"choice":return s.jsx(P3,{...t});case"textTemplate":return s.jsx(E3,{...t});case"stage":return s.jsx(j3,{...t});case"collectionVariable":case"variable":default:return s.jsx(N3,{...t})}}function D3({model:e}){const t=e.resources??[],n=new Map;for(const r of t){const o=n.get(r.category)??[];o.push(r),n.set(r.category,o)}return t.length===0?s.jsx(b2,{title:"Resources",open:!0,onToggle:()=>{},children:s.jsx(F3,{text:"No resources."})}):s.jsxs("div",{style:{borderBottom:`1px solid ${v.separator}`},children:[s.jsx("div",{style:{padding:"12px 16px 4px 16px",fontSize:11,fontWeight:700,letterSpacing:.6,textTransform:"uppercase",color:v.textMuted},children:"Resources"}),$3.map(({key:r,title:o})=>{const l=n.get(r);return!l||l.length===0?null:s.jsx(H3,{category:r,title:o,items:l},r)})]})}function H3({category:e,title:t,items:n}){const[r,o]=$.useState(!0);return s.jsxs("div",{children:[s.jsxs("button",{type:"button",onClick:()=>o(l=>!l),style:{width:"100%",display:"flex",alignItems:"center",gap:6,padding:"6px 16px",background:"none",border:"none",color:v.textPrimary,cursor:"pointer",fontSize:12.5,fontWeight:600,fontFamily:v.fontFamily,textAlign:"left"},children:[r?s.jsx(to,{size:13}):s.jsx(Jn,{size:13}),s.jsx("span",{children:t}),s.jsxs("span",{style:{color:v.textMuted,fontWeight:500},children:["(",n.length,")"]})]}),r?n.map((l,i)=>s.jsx(A3,{resource:l},`${e}-${l.name}-${i}`)):null]})}function A3({resource:e}){const t=[e.dataType,e.detail].filter(Boolean).join(" · ")||e.name;return s.jsxs("div",{title:t,style:{display:"flex",alignItems:"center",gap:9,padding:"5px 16px 5px 34px",cursor:"default"},children:[s.jsx("span",{style:{flexShrink:0,display:"flex"},children:s.jsx(O3,{category:e.category})}),s.jsx("span",{style:{fontSize:12.5,color:v.textPrimary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:e.name})]})}const Y2={start:"#0B827C",end:"#EA001E",interaction:"#1B96FF",logic:"#DD7A01",data:"#FF538A",action:"#032D60"};function ee({size:e=48,title:t,tile:n,shape:r="square",children:o}){const l=Y2[n],i=r==="diamond"?"0 0 68 68":"0 0 48 48";let u;return r==="circle"?u=s.jsx("circle",{cx:"24",cy:"24",r:"24",fill:l}):r==="diamond"?u=s.jsx("rect",{y:"33.9411",width:"48",height:"48",rx:"4",transform:"rotate(-45 0 33.9411)",fill:l}):u=s.jsx("rect",{width:"48",height:"48",rx:"4",fill:l}),s.jsxs("svg",{width:e,height:e,viewBox:i,xmlns:"http://www.w3.org/2000/svg",role:t?"img":"presentation","aria-hidden":t?void 0:!0,fill:"none",children:[t?s.jsx("title",{children:t}):null,u,o]})}function V3(e){return s.jsx(ee,{...e,tile:"start",shape:"circle",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9231 34.8923V13.1077C13.9231 12.4923 14.7231 12.0615 15.2769 12.5538L35.7077 23.2C36.2 23.5692 36.2 24.3692 35.7077 24.7385L15.2769 35.5077C14.7231 35.9385 13.9231 35.5692 13.9231 34.8923Z",fill:"white"})})}function B3(e){return s.jsx(ee,{...e,tile:"end",shape:"circle",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9231 12.9231H35.0769V35.0769H12.9231V12.9231Z",fill:"white"})})}function U3(e){return s.jsx(ee,{...e,tile:"interaction",children:s.jsx("path",{d:"M38.4 12C38.4 10.656 37.344 9.60001 36 9.60001H12C10.656 9.60001 9.6 10.656 9.6 12V28.656C9.6 30 10.656 31.056 12 31.056H36C37.344 31.056 38.4 30 38.4 28.656V12ZM34.8 26.544C34.8 27.024 34.368 27.456 33.888 27.456H14.112C13.632 27.456 13.2 27.024 13.2 26.544V14.112C13.2 13.632 13.632 13.2 14.112 13.2H33.888C34.368 13.2 34.8 13.632 34.8 14.112V26.544ZM19.776 34.8C18.432 34.8 17.376 35.856 17.376 37.2V37.488C17.376 37.968 17.808 38.4 18.288 38.4H29.712C30.192 38.4 30.624 37.968 30.624 37.488V37.2C30.624 35.856 29.568 34.8 28.224 34.8H19.776ZM19.296 24.432H16.608C16.368 24.432 16.128 24.192 16.128 23.952V16.656C16.128 16.368 16.368 16.176 16.608 16.176H19.296C19.536 16.176 19.776 16.368 19.776 16.656V23.952C19.776 24.192 19.536 24.432 19.296 24.432ZM31.392 24.432H23.184C22.944 24.432 22.704 24.192 22.704 23.952V16.656C22.704 16.416 22.944 16.176 23.184 16.176H31.392C31.632 16.176 31.872 16.416 31.872 16.656V23.952C31.872 24.24 31.632 24.432 31.392 24.432Z",fill:"white"})})}function W3(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M10.56 26.352H37.44C37.6946 26.352 37.9388 26.4531 38.1188 26.6332C38.2989 26.8132 38.4 27.0574 38.4 27.312V29.232C38.4 29.4866 38.2989 29.7308 38.1188 29.9108C37.9388 30.0908 37.6946 30.192 37.44 30.192H10.56C10.3054 30.192 10.0612 30.0908 9.88118 29.9108C9.70115 29.7308 9.60001 29.4866 9.60001 29.232V27.312C9.60001 26.784 10.032 26.352 10.56 26.352ZM10.56 17.808H37.44C37.6946 17.808 37.9388 17.9091 38.1188 18.0892C38.2989 18.2692 38.4 18.5134 38.4 18.768V20.688C38.4 20.9426 38.2989 21.1868 38.1188 21.3668C37.9388 21.5468 37.6946 21.648 37.44 21.648H10.56C10.3054 21.648 10.0612 21.5468 9.88118 21.3668C9.70115 21.1868 9.60001 20.9426 9.60001 20.688V18.768C9.60001 18.24 10.032 17.808 10.56 17.808Z",fill:"white"})})}function G3(e){return s.jsx(ee,{...e,tile:"logic",shape:"diamond",children:s.jsx("path",{d:"M48.0514 23.7609L45.5554 21.8889C45.1714 21.6489 44.8354 21.5049 44.4034 21.5049H35.8594V20.4969C35.8594 19.9689 35.4274 19.5369 34.8994 19.5369H32.9794C32.4514 19.5369 32.0194 19.9689 32.0194 20.4969V21.4569H22.4194C21.8914 21.4569 21.4594 21.8889 21.4594 22.4169V26.2569C21.4594 26.7849 21.8914 27.2169 22.4194 27.2169H44.4034C44.8354 27.2169 45.2674 27.1209 45.5554 26.8329L48.0514 24.9609C48.4354 24.6249 48.4354 24.0489 48.0514 23.7609ZM45.4594 32.0169H35.8594V30.5769C35.8594 30.2889 35.6674 30.0969 35.3794 30.0969H32.4994C32.2114 30.0969 32.0194 30.2889 32.0194 30.5769V32.0169H23.5234C23.0914 32.0169 22.6594 32.1129 22.3714 32.4009L19.8754 34.2729C19.4434 34.5609 19.4434 35.1849 19.8754 35.5209L22.3714 37.3929C22.7554 37.6329 23.0914 37.7769 23.5234 37.7769H45.4594C45.9874 37.7769 46.4194 37.3449 46.4194 36.8169V32.9769C46.4194 32.4489 45.9874 32.0169 45.4594 32.0169ZM35.8594 44.3049V41.9529C35.8594 41.6649 35.6674 41.4729 35.3794 41.4729H32.4994C32.2114 41.4729 32.0194 41.6649 32.0194 41.9529V44.3049C30.0994 44.8329 29.0434 45.9849 28.7074 47.4249C28.6114 47.8569 28.9474 48.3369 29.4274 48.3369H38.4994C38.9794 48.3369 39.3634 47.9049 39.2194 47.4249C38.8834 45.9849 37.7794 44.8809 35.8594 44.3049Z",fill:"white"})})}function Z3(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M36.72 27.984L36.672 28.08L36.144 29.664L35.376 31.296C34.8 32.352 34.08 33.312 33.216 34.176C31.5416 35.9669 29.3951 37.2481 27.024 37.872C24.8385 38.4767 22.5372 38.5307 20.3257 38.0289C18.1142 37.5272 16.0615 36.4855 14.3509 34.9969C12.6403 33.5082 11.3251 31.619 10.5228 29.498C9.72055 27.377 9.45619 25.0903 9.75335 22.8422C10.0505 20.5941 10.8999 18.4546 12.2258 16.6149C13.5516 14.7752 15.3125 13.2926 17.3511 12.2995C19.3898 11.3065 21.6427 10.8339 23.9085 10.924C26.1744 11.0141 28.3827 11.6641 30.336 12.816H30.384C31.6273 13.5047 32.7336 14.4158 33.648 15.504C34.08 15.888 34.416 15.648 34.416 15.072V10.56C34.416 10.032 34.848 9.59998 35.376 9.59998H37.296C37.824 9.59998 38.256 10.032 38.352 10.56V22.32C38.352 22.752 37.968 23.184 37.488 23.184H25.728C25.2 23.184 24.816 22.8 24.816 22.272V20.256C24.816 19.728 25.248 19.296 25.776 19.296H30.288C30.672 19.296 30.96 19.2 31.104 18.96C29.8335 17.2199 28.0172 15.9552 25.9445 15.3673C23.8717 14.7794 21.6618 14.9022 19.667 15.7161C17.6722 16.5301 16.0072 17.9883 14.9373 19.8584C13.8675 21.7286 13.4544 23.903 13.764 26.0351C14.0735 28.1673 15.0877 30.1345 16.6451 31.6233C18.2025 33.112 20.2134 34.0367 22.3574 34.2498C24.5013 34.463 26.6549 33.9524 28.4749 32.7994C30.295 31.6464 31.6767 29.9175 32.4 27.888C32.4 27.888 32.544 27.024 33.216 27.024H35.952C36.336 27.024 36.72 27.312 36.72 27.744V27.984Z",fill:"white"})})}function b3(e){return s.jsx(ee,{...e,tile:"data",children:s.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM31.056 28.896C31.056 29.136 30.816 29.376 30.576 29.376H25.296C25.104 29.376 24.96 29.52 24.96 29.712V34.992C24.96 35.232 24.72 35.472 24.48 35.472H23.52C23.28 35.472 23.04 35.232 23.04 34.992V29.712C23.04 29.52 22.896 29.376 22.704 29.376H17.424C17.184 29.376 16.944 29.136 16.944 28.896V27.936C16.944 27.696 17.184 27.456 17.424 27.456H22.704C22.896 27.456 23.04 27.312 23.04 27.12V21.84C23.04 21.6 23.28 21.36 23.52 21.36H24.48C24.72 21.36 24.96 21.6 24.96 21.84V27.12C24.96 27.312 25.104 27.456 25.296 27.456H30.576C30.816 27.456 31.056 27.696 31.056 27.936V28.896Z",fill:"white"})})}function Y3(e){return s.jsx(ee,{...e,tile:"data",children:s.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM30.864 34.848L30.24 35.472C30.096 35.616 29.808 35.616 29.616 35.472L25.728 31.584C24.624 32.352 23.232 32.784 21.696 32.592C20.5007 32.4224 19.394 31.8656 18.5454 31.0069C17.6967 30.1483 17.153 29.0351 16.9975 27.8379C16.8419 26.6407 17.0832 25.4255 17.6842 24.3785C18.2852 23.3315 19.213 22.5104 20.3252 22.041C21.4375 21.5717 22.673 21.4798 23.8424 21.7797C25.0118 22.0795 26.0507 22.7544 26.7999 23.7011C27.5491 24.6477 27.9673 25.8139 27.9904 27.0209C28.0136 28.228 27.6404 29.4093 26.928 30.384L30.816 34.272C31.056 34.368 31.056 34.656 30.864 34.848ZM22.512 23.28C21.5063 23.28 20.5418 23.6795 19.8306 24.3906C19.1195 25.1018 18.72 26.0663 18.72 27.072C18.72 28.0777 19.1195 29.0422 19.8306 29.7533C20.5418 30.4645 21.5063 30.864 22.512 30.864C23.5177 30.864 24.4822 30.4645 25.1933 29.7533C25.9045 29.0422 26.304 28.0777 26.304 27.072C26.304 26.0663 25.9045 25.1018 25.1933 24.3906C24.4822 23.6795 23.5177 23.28 22.512 23.28Z",fill:"white"})})}function Q3(e){return s.jsx(ee,{...e,tile:"data",children:s.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM28.8 26.64L21.12 34.32H21.168L17.808 35.28C17.472 35.376 17.184 35.04 17.28 34.704L18.24 31.392L25.92 23.712C26.016 23.616 26.208 23.616 26.352 23.712L28.8 26.256C28.896 26.352 28.896 26.544 28.8 26.64ZM31.008 24.432L30.048 25.392C29.952 25.488 29.76 25.488 29.616 25.392L27.12 22.896C27.024 22.8 27.024 22.608 27.12 22.464L28.08 21.504C28.512 21.024 29.232 21.024 29.712 21.504L30.96 22.752C31.488 23.232 31.488 23.952 31.008 24.432Z",fill:"white"})})}function X3(e){return s.jsxs(ee,{...e,tile:"data",children:[s.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36Z",fill:"white"}),s.jsx("path",{d:"M34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM28.992 33.888C28.992 34.704 28.368 35.376 27.504 35.376H20.496C19.68 35.376 19.008 34.752 19.008 33.888V27.648C19.008 27.408 19.2 27.216 19.44 27.216H28.56C28.8 27.216 28.992 27.408 28.992 27.648V33.888ZM30.144 24.912C30.144 25.152 29.952 25.344 29.712 25.344H18.288C18.048 25.344 17.856 25.152 17.856 24.912V24.048C17.856 23.808 18.048 23.616 18.288 23.616H21.936V22.464C21.936 21.84 22.464 21.312 23.088 21.312H24.864C25.488 21.312 26.016 21.84 26.016 22.464V23.616H29.664C29.904 23.616 30.096 23.808 30.096 24.048V24.912H30.144Z",fill:"white"}),s.jsx("path",{d:"M22.848 29.28H22.272C22.08 29.28 21.984 29.376 21.984 29.568V32.976C21.984 33.168 22.08 33.264 22.272 33.264H22.848C23.04 33.264 23.136 33.168 23.136 32.976V29.568C23.136 29.376 22.992 29.28 22.848 29.28ZM25.776 29.28H25.2C25.008 29.28 24.912 29.376 24.912 29.568V32.976C24.912 33.168 25.008 33.264 25.2 33.264H25.776C25.968 33.264 26.064 33.168 26.064 32.976V29.568C26.064 29.376 25.92 29.28 25.776 29.28ZM24.576 22.416H23.424C23.232 22.416 23.136 22.512 23.136 22.704V23.568H24.912V22.704C24.864 22.512 24.768 22.416 24.576 22.416Z",fill:"white"})]})}function K3(e){return s.jsxs(ee,{...e,tile:"data",children:[s.jsx("path",{d:"M13.488 23.04C13.44 23.376 13.44 23.664 13.44 24H10.56C10.56 23.664 10.56 23.376 10.608 23.04H13.488ZM24.72 17.28H23.28C22.896 17.28 22.56 17.616 22.56 18V24.288C22.56 24.48 22.656 24.672 22.752 24.816L26.784 28.848C27.072 29.136 27.504 29.136 27.792 28.848L28.8 27.84C29.088 27.552 29.088 27.12 28.8 26.832L25.44 23.424V18C25.44 17.616 25.104 17.28 24.72 17.28Z",fill:"white"}),s.jsx("path",{d:"M24 10.56C16.896 10.56 11.088 16.08 10.608 23.04C10.608 23.184 10.56 23.376 10.56 23.52H8.40001C7.77601 23.52 7.44001 24.24 7.82401 24.672L11.424 29.04C11.712 29.376 12.24 29.376 12.528 29.04L16.128 24.672C16.512 24.192 16.176 23.52 15.552 23.52H13.44V23.04C13.92 17.664 18.48 13.44 23.952 13.44C30.192 13.44 35.136 18.864 34.464 25.2C33.984 29.76 29.664 34.08 25.056 34.512C21.648 34.848 18.432 33.6 16.176 31.152C15.888 30.816 15.504 30.624 15.12 31.104L13.968 32.496C13.728 32.784 13.92 32.976 14.16 33.216C16.752 35.952 20.304 37.488 24.144 37.44C31.056 37.344 36.864 31.872 37.344 24.96C37.968 17.136 31.728 10.56 24 10.56Z",fill:"white"})]})}function q3(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M22.368 11.3759L21.36 10.3679C21.072 10.0799 20.64 10.0799 20.352 10.3679L14.016 16.7039L11.472 14.1599C11.184 13.8719 10.752 13.8719 10.464 14.1599L9.45599 15.1679C9.16799 15.4559 9.16799 15.8879 9.45599 16.1759L13.008 19.7279C13.138 19.8644 13.2944 19.973 13.4677 20.0473C13.6409 20.1216 13.8275 20.1599 14.016 20.1599C14.2045 20.1599 14.3911 20.1216 14.5643 20.0473C14.7376 19.973 14.894 19.8644 15.024 19.7279L22.368 12.3839C22.608 12.1439 22.608 11.6639 22.368 11.3759ZM36.96 18.2399H24.48C23.952 18.2399 23.52 17.8079 23.52 17.2799V15.3599C23.52 14.8319 23.952 14.3999 24.48 14.3999H36.96C37.488 14.3999 37.92 14.8319 37.92 15.3599V17.2799C37.92 17.8079 37.488 18.2399 36.96 18.2399ZM36.96 26.8799H21.6C21.072 26.8799 20.64 26.4479 20.64 25.9199V23.9999C20.64 23.4719 21.072 23.0399 21.6 23.0399H36.96C37.488 23.0399 37.92 23.4719 37.92 23.9999V25.9199C37.92 26.4479 37.488 26.8799 36.96 26.8799ZM15.84 26.8799H13.92C13.392 26.8799 12.96 26.4479 12.96 25.9199V23.9999C12.96 23.4719 13.392 23.0399 13.92 23.0399H15.84C16.368 23.0399 16.8 23.4719 16.8 23.9999V25.9199C16.8 26.4479 16.368 26.8799 15.84 26.8799ZM15.84 35.5199H13.92C13.392 35.5199 12.96 35.0879 12.96 34.5599V32.6399C12.96 32.1119 13.392 31.6799 13.92 31.6799H15.84C16.368 31.6799 16.8 32.1119 16.8 32.6399V34.5599C16.8 35.0879 16.368 35.5199 15.84 35.5199ZM36.96 35.5199H21.6C21.072 35.5199 20.64 35.0879 20.64 34.5599V32.6399C20.64 32.1119 21.072 31.6799 21.6 31.6799H36.96C37.488 31.6799 37.92 32.1119 37.92 32.6399V34.5599C37.92 35.0879 37.488 35.5199 36.96 35.5199Z",fill:"white"})})}function J3(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M38.352 14.736C37.104 12.288 33.936 7.728 28.032 10.416L22.32 13.056L17.04 15.36C15.552 16.08 12.288 15.072 10.464 14.4C9.93599 14.208 9.45599 14.784 9.69599 15.312C10.944 17.76 14.112 22.32 20.016 19.632C23.664 17.952 31.008 14.784 31.008 14.784C32.496 14.064 35.76 15.072 37.584 15.744C38.112 15.84 38.592 15.312 38.352 14.736ZM25.68 22.464C25.008 22.848 22.368 24.048 22.368 24.048L19.728 25.2C18.432 25.92 15.6 24.96 13.92 24.288C13.44 24.048 13.008 24.672 13.248 25.152C14.304 27.552 17.136 31.872 22.32 29.232C25.536 27.6 28.272 26.544 28.272 26.544C29.568 25.824 32.4 26.784 34.08 27.456C34.56 27.648 34.992 27.072 34.752 26.544C33.648 24.144 30.816 19.824 25.68 22.464ZM23.76 33.072L22.32 33.936C21.312 34.56 19.2 33.744 17.952 33.12C17.616 32.928 17.28 33.504 17.472 33.984C18.24 36.144 20.352 40.032 24.24 37.632L25.68 36.768C26.736 36.24 28.8 36.96 30.048 37.536C30.384 37.728 30.72 37.152 30.528 36.672C29.76 34.56 27.792 30.864 23.76 33.072Z",fill:"white"})})}function e4(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M24 9.59998C16.08 9.59998 9.60001 16.08 9.60001 24C9.60001 31.92 16.08 38.4 24 38.4C31.92 38.4 38.4 31.92 38.4 24C38.4 16.08 31.92 9.59998 24 9.59998ZM24 35.52C17.664 35.52 12.48 30.336 12.48 24C12.48 17.664 17.664 12.48 24 12.48C30.336 12.48 35.52 17.664 35.52 24C35.52 30.336 30.336 35.52 24 35.52ZM25.44 23.424V17.28C25.44 16.752 25.008 16.32 24.48 16.32H23.52C22.992 16.32 22.56 16.752 22.56 17.28V24C22.56 24.384 22.704 24.768 22.992 25.008L27.6 29.616C27.984 30 28.56 30 28.944 29.616L29.616 28.944C30 28.56 30 27.984 29.616 27.6L25.44 23.424Z",fill:"white"})})}function t4(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M36.96 9.59998H10.08C9.168 9.59998 8.736 10.608 9.312 11.28L20.928 25.008C21.312 25.44 21.456 26.016 21.456 26.592V37.488C21.456 37.968 21.936 38.4 22.416 38.4H24.528C25.008 38.4 25.392 37.968 25.392 37.488V26.64C25.392 26.016 25.632 25.488 26.064 25.056L37.728 11.328C38.304 10.656 37.872 9.59998 36.96 9.59998Z",fill:"white"})})}function n4(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M24.432 18.096C24.768 17.76 24.768 17.184 24.432 16.848L17.568 9.93602C17.232 9.60002 16.656 9.60002 16.32 9.93602L9.456 16.848C9.12 17.184 9.12 17.76 9.456 18.096L10.704 19.344C11.04 19.68 11.616 19.68 11.952 19.344L14.112 17.184C14.448 16.848 15.12 17.088 15.12 17.616V30.288C15.12 30.768 15.552 31.2 16.032 31.2H17.808C18.288 31.2 18.72 30.72 18.72 30.288V17.616C18.72 17.088 19.392 16.848 19.728 17.184L21.888 19.344C22.224 19.68 22.8 19.68 23.136 19.344L24.432 18.096ZM37.584 30.048L36.336 28.848C36 28.512 35.424 28.512 35.088 28.848L32.928 31.008C32.592 31.344 31.92 31.104 31.92 30.576V17.808C31.92 17.328 31.488 16.896 31.008 16.896H29.232C28.752 16.896 28.32 17.376 28.32 17.808V30.48C28.32 31.008 27.648 31.248 27.312 30.912L25.152 28.752C24.816 28.416 24.24 28.416 23.904 28.752L22.656 30.048C22.32 30.384 22.32 30.96 22.656 31.296L29.52 38.16C29.856 38.496 30.432 38.496 30.768 38.16L37.632 31.296C37.968 30.96 37.968 30.336 37.584 30.048Z",fill:"white"})})}function r4(e){return s.jsx(ee,{...e,tile:"logic",children:s.jsx("path",{d:"M35.088 21.024C35.6787 21.0185 36.2602 21.1711 36.7721 21.466C37.284 21.7609 37.7077 22.1874 37.9993 22.7012C38.2909 23.215 38.4398 23.7974 38.4304 24.3881C38.4211 24.9788 38.254 25.5563 37.9463 26.0606C37.6387 26.565 37.2017 26.9778 36.6808 27.2564C36.1598 27.535 35.5738 27.6692 34.9835 27.6451C34.3932 27.621 33.8202 27.4394 33.3237 27.1192C32.8272 26.799 32.4254 26.3518 32.16 25.824H31.632C28.368 25.824 27.264 26.832 25.44 30.192L25.344 30.384L25.2 30.624C24.144 32.64 23.52 33.552 22.416 34.56C20.832 35.904 18.864 36.624 16.176 36.624H15.84C15.5007 37.2852 14.949 37.813 14.2735 38.1227C13.5979 38.4324 12.8379 38.5059 12.1155 38.3314C11.3932 38.1569 10.7505 37.7445 10.2908 37.1606C9.83119 36.5767 9.58127 35.8551 9.58127 35.112C9.58127 34.3689 9.83119 33.6473 10.2908 33.0634C10.7505 32.4795 11.3932 32.0671 12.1155 31.8926C12.8379 31.7181 13.5979 31.7916 14.2735 32.1013C14.949 32.411 15.5007 32.9388 15.84 33.6H16.368C19.68 33.552 20.784 32.544 22.656 28.992L22.8 28.752C23.3193 27.7129 23.9467 26.7314 24.672 25.824H15.84C15.5007 26.4852 14.949 27.013 14.2735 27.3227C13.5979 27.6324 12.8379 27.7059 12.1155 27.5314C11.3932 27.3569 10.7505 26.9445 10.2908 26.3606C9.83119 25.7767 9.58127 25.0551 9.58127 24.312C9.58127 23.5689 9.83119 22.8473 10.2908 22.2634C10.7505 21.6795 11.3932 21.2671 12.1155 21.0926C12.8379 20.9181 13.5979 20.9916 14.2735 21.3013C14.949 21.611 15.5007 22.1388 15.84 22.8H32.16C32.4321 22.2794 32.8378 21.8406 33.3355 21.5285C33.8332 21.2164 34.4049 21.0423 34.992 21.024H35.088ZM35.088 9.6C35.6787 9.5945 36.2602 9.74711 36.7721 10.042C37.284 10.3369 37.7077 10.7634 37.9993 11.2772C38.2909 11.791 38.4398 12.3734 38.4304 12.9641C38.4211 13.5548 38.254 14.1323 37.9463 14.6366C37.6387 15.141 37.2017 15.5538 36.6808 15.8324C36.1598 16.111 35.5738 16.2452 34.9835 16.2211C34.3932 16.197 33.8202 16.0154 33.3237 15.6952C32.8272 15.375 32.4254 14.9278 32.16 14.4H15.84C15.5051 15.066 14.9553 15.5995 14.2796 15.9142C13.6039 16.229 12.8417 16.3066 12.1164 16.1345C11.3911 15.9624 10.7451 15.5507 10.2828 14.9659C9.82055 14.3811 9.56908 13.6574 9.56908 12.912C9.56908 12.1666 9.82055 11.4429 10.2828 10.8581C10.7451 10.2733 11.3911 9.86158 12.1164 9.68948C12.8417 9.51737 13.6039 9.59498 14.2796 9.90975C14.9553 10.2245 15.5051 10.758 15.84 11.424H32.16C32.4334 10.8803 32.8513 10.4225 33.3678 10.1007C33.8843 9.77893 34.4795 9.60569 35.088 9.6Z",fill:"white"})})}function Q2(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M25.824 10.512L24 19.248C23.9924 19.3192 24.0009 19.3912 24.0248 19.4587C24.0486 19.5262 24.0873 19.5875 24.1379 19.6381C24.1885 19.6887 24.2498 19.7274 24.3173 19.7512C24.3848 19.7751 24.4568 19.7836 24.528 19.776H33.888C34.0484 19.7828 34.2045 19.8298 34.342 19.9125C34.4795 19.9952 34.5941 20.1112 34.6753 20.2496C34.7565 20.3881 34.8016 20.5447 34.8067 20.7052C34.8117 20.8656 34.7764 21.0247 34.704 21.168L24.48 37.92C24.3767 38.0825 24.2247 38.2082 24.0456 38.279C23.8665 38.3499 23.6696 38.3622 23.4831 38.3142C23.2966 38.2662 23.13 38.1605 23.0073 38.0121C22.8846 37.8636 22.812 37.6802 22.8 37.488L24.624 27.168C24.624 26.832 24.288 26.976 23.952 26.976L14.112 26.928C13.488 26.928 13.008 25.968 13.344 25.392L24.144 10.08C24.2473 9.91744 24.3993 9.79176 24.5784 9.72094C24.7575 9.65013 24.9544 9.63782 25.1409 9.68578C25.3274 9.73374 25.494 9.8395 25.6167 9.98792C25.7394 10.1363 25.8119 10.3198 25.824 10.512Z",fill:"white"})})}function o4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M37.44 32.4H21.312C20.832 32.4 20.4 32.832 20.4 33.312V35.088C20.4 35.568 20.832 36 21.312 36H37.44C37.92 36 38.352 35.568 38.352 35.088V33.312C38.352 32.784 37.92 32.4 37.44 32.4ZM23.616 21.504L12.048 12.192C11.712 11.904 11.136 11.952 10.848 12.384L9.83999 13.824C9.55199 14.256 9.64799 14.784 10.032 15.072L18.24 21.648C18.528 21.888 18.528 22.368 18.24 22.608L9.98399 29.232C9.64799 29.52 9.50399 30.144 9.79199 30.48L10.8 32.016C11.088 32.448 11.616 32.496 12 32.208L23.616 22.944C24.096 22.56 24.096 21.84 23.616 21.504Z",fill:"white"})})}function l4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M24.096 19.2L30.816 12.48C31.152 12.144 31.152 11.568 30.816 11.232L29.376 9.79201C29.04 9.45601 28.464 9.45601 28.128 9.79201L21.408 16.512L24.096 19.2ZM31.488 26.784L38.208 20.064C38.544 19.728 38.544 19.152 38.208 18.816L36.768 17.376C36.432 17.04 35.856 17.04 35.52 17.376L28.8 24.096L31.488 26.784ZM30.528 32.352L30.768 31.872C30.816 31.632 30.768 31.392 30.624 31.2L30.528 31.056L16.896 17.424C16.752 17.232 16.464 17.184 16.272 17.184C15.984 17.184 15.792 17.328 15.6 17.472L15.264 17.808L15.072 18.048L14.832 18.336L14.592 18.72L14.352 19.2L14.064 19.728L13.824 20.352L13.584 21.072L13.344 21.888L13.152 22.848L12.96 23.904L12.816 25.056L12.72 26.352V27.792L12.768 29.376L12.864 31.104L12.912 31.584H13.008L9.88799 34.704C9.55199 35.04 9.55199 35.616 9.88799 35.952L12.096 38.16C12.432 38.496 13.008 38.496 13.344 38.16L16.464 35.04C17.568 35.136 18.72 35.232 19.872 35.232C20.832 35.232 21.744 35.232 22.704 35.136C24.5963 35 26.4572 34.5792 28.224 33.888L29.232 33.36C29.664 33.072 30.096 32.784 30.432 32.4L30.528 32.352Z",fill:"white"})})}function i4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M23.376 26.4C23.76 26.736 24.288 26.736 24.672 26.4L38.256 13.824C38.496 13.344 38.448 12.576 37.488 12.576L10.608 12.624C9.88802 12.624 9.31202 13.296 9.84002 13.872L23.376 26.4ZM38.4 19.2C38.4 18.576 37.632 18.24 37.2 18.672L26.64 28.464C25.92 29.136 25.008 29.472 24.048 29.472C23.088 29.472 22.176 29.136 21.456 28.464L10.848 18.672C10.745 18.5798 10.6176 18.5192 10.481 18.4975C10.3445 18.4758 10.2046 18.4939 10.078 18.5496C9.95144 18.6053 9.8436 18.6962 9.76735 18.8115C9.6911 18.9269 9.64967 19.0617 9.64802 19.2V31.68C9.64802 33.264 10.944 34.56 12.528 34.56H35.568C37.152 34.56 38.448 33.264 38.448 31.68L38.4 19.2Z",fill:"white"})})}function s4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M7.296 32.736L14.112 24.48C14.304 24.144 14.304 23.76 14.112 23.472L7.296 15.312L7.2 15.024C7.2 14.736 7.44 14.544 7.68 14.544H17.616C17.904 14.544 18.144 14.64 18.288 14.88L25.44 23.52C25.632 23.808 25.632 24.192 25.44 24.528L18.336 33.168C18.192 33.36 17.904 33.504 17.664 33.504H7.728C7.44 33.504 7.248 33.312 7.248 33.024C7.2 32.928 7.248 32.784 7.296 32.736ZM22.464 32.736L29.232 24.48C29.424 24.144 29.424 23.76 29.232 23.472L22.416 15.312L22.32 15.024C22.32 14.736 22.56 14.544 22.8 14.544H32.736C33.024 14.544 33.264 14.64 33.408 14.88L40.56 23.52C40.752 23.808 40.752 24.192 40.56 24.528L33.456 33.168C33.312 33.36 33.024 33.504 32.784 33.504H22.848C22.56 33.504 22.368 33.312 22.368 33.024L22.464 32.736Z",fill:"white"})})}function u4(e){return s.jsxs(ee,{...e,tile:"action",children:[s.jsx("path",{d:"M22.8 12.48C20.352 12.624 18.384 14.592 18.24 17.04C18.336 14.544 20.304 12.576 22.8 12.48ZM27.84 17.04C27.696 14.592 25.728 12.624 23.28 12.48C25.776 12.576 27.744 14.544 27.84 17.04ZM30.528 26.304L25.632 24.624C25.248 24.48 24.96 24.144 24.96 23.712V17.184C24.96 16.176 24.144 15.36 23.136 15.36H22.944C21.936 15.36 21.12 16.176 21.12 17.184V30.096C21.12 31.2 19.728 31.632 19.152 30.672L17.904 28.032C17.7485 27.7639 17.5382 27.5316 17.287 27.3502C17.0358 27.1688 16.7492 27.0422 16.4458 26.9788C16.1425 26.9155 15.8292 26.9166 15.5264 26.9823C15.2235 27.048 14.9378 27.1767 14.688 27.36L13.92 27.936L18.048 37.728C18.24 38.16 18.624 38.4 19.104 38.4H29.952C30.48 38.4 30.912 38.016 31.056 37.536L32.976 30.672C33.36 28.8 32.304 26.928 30.528 26.304Z",fill:"white"}),s.jsx("path",{d:"M18.24 22.176V17.04C18.384 14.592 20.352 12.624 22.8 12.48H23.28C25.728 12.624 27.696 14.592 27.84 17.04V22.176C27.84 22.608 28.368 22.8 28.656 22.512C29.6766 21.4179 30.3554 20.0494 30.6089 18.5749C30.8625 17.1003 30.6798 15.5837 30.0833 14.2115C29.4867 12.8393 28.5024 11.6713 27.2511 10.8509C25.9999 10.0304 24.5362 9.59338 23.04 9.59338C21.5438 9.59338 20.0801 10.0304 18.8289 10.8509C17.5776 11.6713 16.5933 12.8393 15.9967 14.2115C15.4002 15.5837 15.2175 17.1003 15.4711 18.5749C15.7246 20.0494 16.4034 21.4179 17.424 22.512C17.712 22.8 18.24 22.608 18.24 22.176Z",fill:"white"})]})}function pa(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M38.4 12C38.4 10.656 37.344 9.60001 36 9.60001H12C10.656 9.60001 9.60001 10.656 9.60001 12V28.656C9.60001 30 10.656 31.056 12 31.056H36C37.344 31.056 38.4 30 38.4 28.656V12ZM34.8 26.544C34.8 27.024 34.368 27.456 33.888 27.456H14.112C13.632 27.456 13.2 27.024 13.2 26.544V14.112C13.2 13.632 13.632 13.2 14.112 13.2H33.888C34.368 13.2 34.8 13.632 34.8 14.112V26.544ZM19.776 34.8C18.432 34.8 17.376 35.856 17.376 37.2V37.488C17.376 37.968 17.808 38.4 18.288 38.4H29.712C30.192 38.4 30.624 37.968 30.624 37.488V37.2C30.624 35.856 29.568 34.8 28.224 34.8H19.776ZM19.296 24.432H16.608C16.368 24.432 16.128 24.192 16.128 23.952V16.656C16.128 16.368 16.368 16.176 16.608 16.176H19.296C19.536 16.176 19.776 16.368 19.776 16.656V23.952C19.776 24.192 19.536 24.432 19.296 24.432ZM31.392 24.432H23.184C22.944 24.432 22.704 24.192 22.704 23.952V16.656C22.704 16.416 22.944 16.176 23.184 16.176H31.392C31.632 16.176 31.872 16.416 31.872 16.656V23.952C31.872 24.24 31.632 24.432 31.392 24.432Z",fill:"white"})})}function a4({size:e=48,title:t}){return s.jsxs("svg",{width:e,height:e,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"presentation","aria-hidden":t?void 0:!0,fill:"none",children:[t?s.jsx("title",{children:t}):null,s.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"4",fill:Y2.action}),s.jsx("path",{d:"M25.024 26.464C24.5135 26.4546 24.0172 26.2945 23.5973 26.004C23.1774 25.7135 22.8526 25.3055 22.6638 24.8311C22.475 24.3567 22.4304 23.8371 22.5358 23.3376C22.6412 22.838 22.8917 22.3806 23.2561 22.0229C23.6204 21.6652 24.0823 21.423 24.5837 21.3269C25.0852 21.2307 25.6039 21.2847 26.0747 21.4822C26.5455 21.6798 26.9475 22.0119 27.2303 22.4371C27.513 22.8622 27.6639 23.3614 27.664 23.872C27.6641 24.2165 27.5955 24.5575 27.4622 24.8751C27.329 25.1928 27.1337 25.4807 26.8879 25.722C26.6421 25.9633 26.3507 26.1533 26.0307 26.2807C25.7106 26.4081 25.3684 26.4704 25.024 26.464ZM41.104 30.736L37.648 25.552V25.12C37.648 22.073 36.4409 19.1501 34.2909 16.9911C32.1408 14.832 29.223 13.6127 26.176 13.6C25.2532 13.592 24.3334 13.7049 23.44 13.936C20.9403 14.5499 18.7196 15.9866 17.1351 18.0151C15.5506 20.0436 14.6944 22.546 14.704 25.12C14.6393 27.2814 15.2427 29.4101 16.432 31.216C18.448 34.096 19.792 36.4 18.976 39.52C18.8786 39.8658 18.867 40.2302 18.9422 40.5815C19.0175 40.9328 19.1774 41.2605 19.408 41.536C19.6065 41.8071 19.8669 42.0269 20.1674 42.1772C20.468 42.3274 20.8 42.4038 21.136 42.4H30.544C31.0745 42.4098 31.5915 42.2323 32.0041 41.8987C32.4167 41.5651 32.6985 41.0968 32.8 40.576C32.8553 40.3886 32.8876 40.1952 32.896 40C32.9418 39.7288 33.0831 39.483 33.2944 39.3069C33.5057 39.1308 33.773 39.0362 34.048 39.04H34.72C35.2244 39.0596 35.7208 38.9094 36.1298 38.6136C36.5388 38.3177 36.8368 37.8932 36.976 37.408C37.3965 35.9057 37.6382 34.359 37.696 32.8H40.144C40.3708 32.7723 40.5868 32.6872 40.7715 32.5529C40.9563 32.4185 41.1038 32.2392 41.2 32.032C41.2906 31.8245 41.3293 31.598 41.3125 31.3721C41.2958 31.1463 41.2242 30.9279 41.104 30.736ZM31.6 26.704L31.12 27.472C31.0207 27.6076 30.8906 27.7175 30.7403 27.7926C30.59 27.8677 30.424 27.9059 30.256 27.904C30.1422 27.9047 30.029 27.8885 29.92 27.856L28.672 27.376C28.1225 27.8462 27.4867 28.2049 26.8 28.432L26.56 29.824C26.5151 30.0441 26.3945 30.2415 26.2191 30.3818C26.0437 30.5222 25.8246 30.5965 25.6 30.592H24.64C24.4154 30.5965 24.1963 30.5222 24.0209 30.3818C23.8455 30.2415 23.7249 30.0441 23.68 29.824L23.44 28.432C22.8036 28.2354 22.2152 27.9084 21.712 27.472L20.32 27.952C20.211 27.9845 20.0978 28.0007 19.984 28C19.8191 27.9929 19.6584 27.9455 19.5161 27.8618C19.3739 27.7781 19.2543 27.6607 19.168 27.52L18.688 26.752C18.5669 26.5634 18.5196 26.3367 18.555 26.1154C18.5904 25.894 18.7061 25.6935 18.88 25.552L20.032 24.64C19.9488 24.31 19.9005 23.9721 19.888 23.632C19.9013 23.3078 19.9496 22.9859 20.032 22.672L18.928 21.712C18.7463 21.5773 18.6212 21.38 18.5769 21.1582C18.5325 20.9365 18.5721 20.7062 18.688 20.512L19.168 19.696C19.255 19.5452 19.3813 19.4208 19.5335 19.3363C19.6857 19.2517 19.858 19.2102 20.032 19.216C20.1482 19.2307 20.2615 19.2631 20.368 19.312L21.712 19.792C22.2362 19.3485 22.8385 19.0066 23.488 18.784L23.68 17.44C23.7154 17.2153 23.8335 17.012 24.0111 16.8699C24.1887 16.7279 24.413 16.6573 24.64 16.672H25.6C25.82 16.6556 26.0386 16.7195 26.2151 16.8519C26.3916 16.9843 26.5142 17.1762 26.56 17.392L26.8 18.736C27.4505 18.9565 28.0532 19.2986 28.576 19.744L29.92 19.264C30.0265 19.2151 30.1398 19.1827 30.256 19.168C30.4291 19.1671 30.5995 19.2108 30.7509 19.2948C30.9022 19.3789 31.0293 19.5005 31.12 19.648L31.6 20.416C31.719 20.6175 31.7603 20.8556 31.7161 21.0854C31.6719 21.3152 31.5453 21.521 31.36 21.664L30.256 22.576C30.3249 22.9075 30.3571 23.2455 30.352 23.584C30.3544 23.9065 30.3222 24.2284 30.256 24.544L31.36 25.456C31.5453 25.599 31.6719 25.8048 31.7161 26.0346C31.7603 26.2644 31.719 26.5025 31.6 26.704Z",fill:"white"})]})}function c4(e){return s.jsxs(ee,{...e,tile:"action",children:[s.jsx("path",{d:"M32.448 9.64801C31.056 9.64801 29.856 10.656 29.376 12.048C30.3191 12.4982 31.1443 13.1621 31.7859 13.987C32.4275 14.8119 32.8679 15.7751 33.072 16.8C34.56 16.464 35.664 15.024 35.664 13.296C35.664 11.232 34.224 9.64801 32.448 9.64801ZM35.424 18.192C34.7979 18.7753 34.0127 19.1596 33.168 19.296C33.024 20.592 32.544 21.792 31.824 22.752H37.152C37.824 22.752 38.352 22.224 38.352 21.552V20.976C38.352 19.68 36.912 18.864 35.424 18.192ZM30.336 24C29.376 24.864 28.176 25.392 26.88 25.392C26.784 26.88 26.352 28.224 25.68 29.376H32.4C32.7819 29.376 33.1482 29.2243 33.4182 28.9542C33.6883 28.6842 33.84 28.3179 33.84 27.936V27.36C33.792 25.776 32.064 24.816 30.336 24ZM24.144 31.296C23.475 31.9765 22.6757 32.5152 21.7939 32.88C20.9121 33.2447 19.9659 33.4281 19.0116 33.4192C18.0574 33.4102 17.1147 33.2091 16.2399 32.8278C15.3652 32.4465 14.5761 31.8929 13.92 31.2C11.712 32.256 9.60001 33.6 9.60001 35.568V36.48C9.60001 37.536 10.464 38.352 11.472 38.352H26.496C27.552 38.352 28.368 37.488 28.368 36.48V35.616C28.368 33.6 26.352 32.304 24.144 31.296Z",fill:"white"}),s.jsx("path",{d:"M19.008 30.432C21.8445 30.432 24.144 27.8962 24.144 24.768C24.144 21.6399 21.8445 19.104 19.008 19.104C16.1715 19.104 13.872 21.6399 13.872 24.768C13.872 27.8962 16.1715 30.432 19.008 30.432Z",fill:"white"}),s.jsx("path",{d:"M26.736 14.16C25.8556 14.1774 25.0079 14.4969 24.335 15.065C23.6622 15.633 23.2049 16.415 23.04 17.28C24.816 18.432 26.112 20.4 26.64 22.656H26.736C28.848 22.656 30.576 20.736 30.576 18.384C30.624 16.08 28.896 14.16 26.736 14.16Z",fill:"white"})]})}function f4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M33.024 9.744C33.9963 9.74587 34.9489 10.0187 35.7748 10.5317C36.6008 11.0448 37.2674 11.7779 37.6999 12.6487C38.1324 13.5196 38.3136 14.4937 38.2234 15.4618C38.1331 16.4299 37.7748 17.3537 37.1887 18.1296C36.6026 18.9054 35.812 19.5026 34.9054 19.8541C33.9989 20.2056 33.0123 20.2976 32.0564 20.1196C31.1005 19.9417 30.2131 19.5009 29.4938 18.8467C28.7744 18.1925 28.2516 17.3508 27.984 16.416H27.792C27.1555 16.416 26.5451 16.6689 26.095 17.1189C25.6449 17.569 25.392 18.1795 25.392 18.816V20.88L28.416 23.904C28.5091 23.9894 28.5835 24.0933 28.6343 24.209C28.6852 24.3246 28.7115 24.4496 28.7115 24.576C28.7115 24.7024 28.6852 24.8274 28.6343 24.943C28.5835 25.0587 28.5091 25.1626 28.416 25.248L27.792 25.92C27.7066 26.0131 27.6027 26.0875 27.4871 26.1383C27.3714 26.1892 27.2464 26.2154 27.12 26.2154C26.9937 26.2154 26.8687 26.1892 26.753 26.1383C26.6373 26.0875 26.5335 26.0131 26.448 25.92L25.44 24.912V29.232C25.4409 30.587 24.9161 31.8895 23.9761 32.8653C23.0361 33.8412 21.7541 34.4143 20.4 34.464H20.016C19.7484 35.3988 19.2256 36.2405 18.5063 36.8947C17.7869 37.5489 16.8996 37.9897 15.9437 38.1676C14.9878 38.3456 14.0012 38.2536 13.0946 37.9021C12.1881 37.5506 11.3974 36.9534 10.8113 36.1776C10.2253 35.4017 9.86698 34.4779 9.7767 33.5098C9.68641 32.5417 9.86769 31.5676 10.3002 30.6967C10.7327 29.8259 11.3993 29.0928 12.2252 28.5797C13.0511 28.0667 14.0037 27.7939 14.976 27.792C16.1123 27.7976 17.2164 28.1696 18.1244 28.8528C19.0324 29.5359 19.6958 30.4938 20.016 31.584H20.208C20.8445 31.584 21.455 31.3311 21.9051 30.8811C22.3552 30.431 22.608 29.8205 22.608 29.184V25.008L21.744 25.92C21.6586 26.0131 21.5547 26.0875 21.4391 26.1383C21.3234 26.1892 21.1984 26.2154 21.072 26.2154C20.9457 26.2154 20.8207 26.1892 20.705 26.1383C20.5893 26.0875 20.4855 26.0131 20.4 25.92L19.728 25.248C19.6349 25.1626 19.5606 25.0587 19.5097 24.943C19.4589 24.8274 19.4326 24.7024 19.4326 24.576C19.4326 24.4496 19.4589 24.3246 19.5097 24.209C19.5606 24.0933 19.6349 23.9894 19.728 23.904L22.56 21.072V18.816C22.5591 17.461 23.0839 16.1585 24.0239 15.1827C24.964 14.2068 26.246 13.6337 27.6 13.584H27.984C28.2812 12.4767 28.9371 11.4992 29.8491 10.8044C30.761 10.1096 31.8776 9.73666 33.024 9.744ZM14.976 30.672C14.5013 30.672 14.0373 30.8128 13.6427 31.0765C13.248 31.3402 12.9404 31.715 12.7587 32.1536C12.5771 32.5921 12.5295 33.0747 12.6221 33.5402C12.7147 34.0058 12.9433 34.4334 13.279 34.7691C13.6146 35.1047 14.0423 35.3333 14.5078 35.4259C14.9734 35.5185 15.4559 35.471 15.8945 35.2893C16.333 35.1077 16.7078 34.8 16.9715 34.4054C17.2353 34.0107 17.376 33.5467 17.376 33.072C17.376 32.4355 17.1232 31.825 16.6731 31.3749C16.223 30.9249 15.6125 30.672 14.976 30.672ZM33.024 12.576C32.5493 12.576 32.0853 12.7168 31.6907 12.9805C31.296 13.2442 30.9884 13.619 30.8067 14.0576C30.6251 14.4961 30.5775 14.9787 30.6701 15.4442C30.7627 15.9098 30.9913 16.3374 31.327 16.6731C31.6626 17.0087 32.0903 17.2373 32.5558 17.3299C33.0214 17.4225 33.5039 17.375 33.9425 17.1933C34.381 17.0117 34.7558 16.704 35.0196 16.3094C35.2833 15.9147 35.424 15.4507 35.424 14.976C35.424 14.3395 35.1712 13.729 34.7211 13.2789C34.271 12.8289 33.6605 12.576 33.024 12.576Z",fill:"white"})})}function d4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("g",{transform:"translate(8 8)",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0002 1.23071C7.87711 1.23071 1.23096 7.87687 1.23096 15.9999C1.23096 24.123 7.87711 30.7692 16.0002 30.7692C24.1233 30.7692 30.7694 24.123 30.7694 15.9999C30.7694 7.87687 24.1233 1.23071 16.0002 1.23071ZM4.92331 15.9999C4.92331 9.90758 9.90793 4.92297 16.0002 4.92297C18.4002 4.92297 20.6156 5.66143 22.4002 6.95374L6.95408 22.3999C5.66177 20.6153 4.92331 18.3999 4.92331 15.9999ZM15.9999 27.0769C13.5999 27.0769 11.3846 26.3385 9.59995 25.0462L25.0461 9.6C26.3384 11.3846 27.0769 13.6 27.0769 16C27.0769 22.0923 22.0923 27.0769 15.9999 27.0769Z",fill:"white"})})})}function p4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("g",{transform:"translate(9.5 11)",children:s.jsx("path",{d:"M27.024 0H1.824C0.768 0 0 0.768 0 1.824V20.16C0 21.168 0.768 21.984 1.824 21.984H10.512L12.672 25.104C13.248 25.92 14.352 26.112 15.168 25.488L15.552 25.152L18.048 21.936L27.024 21.984C28.032 21.984 28.8 21.168 28.8 20.16V1.824C28.8 0.768 28.032 0 27.024 0Z",fill:"white"})})})}function h4(e){return s.jsx(ee,{...e,tile:"action",children:s.jsx("path",{d:"M32.2344 13.3705C29.0732 14.6422 27.4052 17.7147 27.2182 22.7772H32.2477C32.4873 21.8491 33.0573 21.0402 33.8507 20.5021C34.6441 19.9641 35.6065 19.7339 36.5575 19.8547C37.5084 19.9755 38.3827 20.439 39.0164 21.1583C39.6501 21.8776 39.9997 22.8033 39.9997 23.7619C39.9997 24.7205 39.6501 25.6462 39.0164 26.3655C38.3827 27.0848 37.5084 27.5482 36.5575 27.669C35.6065 27.7898 34.6441 27.5596 33.8507 27.0216C33.0573 26.4836 32.4873 25.6747 32.2477 24.7465H27.2182C27.4052 29.809 29.0732 32.8816 32.2349 34.1533C32.4603 33.2281 33.0133 32.416 33.7914 31.8672C34.5695 31.3184 35.5201 31.0701 36.4672 31.1682C37.4144 31.2663 38.2939 31.7042 38.943 32.4008C39.5921 33.0975 39.9669 34.0057 39.9979 34.9574C40.029 35.909 39.7142 36.8397 39.1119 37.5772C38.5095 38.3147 37.6604 38.809 36.7217 38.9686C35.783 39.1282 34.8183 38.9424 34.006 38.4455C33.1938 37.9486 32.5891 37.1742 32.3038 36.2658C27.8257 34.8981 25.469 30.9807 25.2484 24.7465H22.2772C22.0161 24.7465 21.7657 24.6428 21.581 24.4581C21.3963 24.2735 21.2926 24.023 21.2926 23.7619C21.2926 23.5007 21.3963 23.2503 21.581 23.0656C21.7657 22.881 22.0161 22.7772 22.2772 22.7772H25.2484C25.469 16.5435 27.8262 12.6256 32.3033 11.2575C32.5886 10.349 33.1933 9.57469 34.0056 9.07777C34.8178 8.58086 35.7825 8.39502 36.7212 8.55465C37.66 8.71429 38.509 9.20858 39.1114 9.94605C39.7137 10.6835 40.0285 11.6142 39.9974 12.5659C39.9664 13.5176 39.5916 14.4258 38.9425 15.1224C38.2934 15.8191 37.4139 16.2569 36.4667 16.3551C35.5196 16.4532 34.569 16.2048 33.7909 15.656C33.0128 15.1072 32.4598 14.2956 32.2344 13.3705ZM36.0622 14.4078C36.5845 14.4078 37.0854 14.2003 37.4547 13.831C37.824 13.4617 38.0315 12.9608 38.0315 12.4385C38.0315 11.9163 37.824 11.4154 37.4547 11.0461C37.0854 10.6767 36.5845 10.4693 36.0622 10.4693C35.5399 10.4693 35.039 10.6767 34.6697 11.0461C34.3004 11.4154 34.0929 11.9163 34.0929 12.4385C34.0929 12.9608 34.3004 13.4617 34.6697 13.831C35.039 14.2003 35.5399 14.4078 36.0622 14.4078ZM36.0622 37.0545C36.5845 37.0545 37.0854 36.847 37.4547 36.4777C37.824 36.1084 38.0315 35.6075 38.0315 35.0852C38.0315 34.5629 37.824 34.062 37.4547 33.6927C37.0854 33.3234 36.5845 33.1159 36.0622 33.1159C35.5399 33.1159 35.039 33.3234 34.6697 33.6927C34.3004 34.062 34.0929 34.5629 34.0929 35.0852C34.0929 35.6075 34.3004 36.1084 34.6697 36.4777C35.039 36.847 35.5399 37.0545 36.0622 37.0545ZM36.0622 25.7312C36.5845 25.7312 37.0854 25.5237 37.4547 25.1544C37.824 24.7851 38.0315 24.2842 38.0315 23.7619C38.0315 23.2396 37.824 22.7387 37.4547 22.3694C37.0854 22.0001 36.5845 21.7926 36.0622 21.7926C35.5399 21.7926 35.039 22.0001 34.6697 22.3694C34.3004 22.7387 34.0929 23.2396 34.0929 23.7619C34.0929 24.2842 34.3004 24.7851 34.6697 25.1544C35.039 25.5237 35.5399 25.7312 36.0622 25.7312ZM21.329 32.6236H10.1972C8.95165 32.6236 8 31.4519 8 30.1335C8.07336 28.1563 10.1239 27.1308 12.2477 26.1787C13.7124 25.5195 13.9324 25.007 13.9324 24.3477C13.9324 23.6885 13.4928 23.1027 13.0532 22.6635C12.1744 21.8576 11.7352 20.7592 11.7352 19.4408C11.7352 17.024 13.1999 14.9001 15.8362 14.9001C18.4731 14.9001 19.9373 17.024 19.9373 19.4408C19.9373 20.7592 19.4981 21.8581 18.6193 22.6635C18.1068 23.1027 17.7405 23.6885 17.7405 24.3477C17.7405 24.9336 17.9601 25.5195 19.4252 26.1792C21.5491 27.1308 23.5996 28.1563 23.673 30.1335C23.5263 31.4519 22.5736 32.6236 21.329 32.6236Z",fill:"white"})})}const m4={start:V3,end:B3,screen:U3,action:Q2,apexAction:o4,apexPluginCall:l4,emailAction:i4,externalCallout:f4,routeWork:h4,addScreenPop:pa,addSkillRequirement:a4,checkAvailability:c4,setScreenProperty:pa,assignment:W3,addPromptInstructions:p4,decision:G3,loop:Z3,recordCreate:b3,recordLookup:Y3,recordUpdate:Q3,recordDelete:X3,recordRollback:K3,subflow:J3,wait:e4,collectionProcessor:t4,collectionSort:n4,transform:r4,customError:d4,stage:s4,interactiveStep:u4,managedContentStep:q3};function br({kind:e,size:t=48,title:n}){const r=m4[e];return r?s.jsx(r,{size:t,title:n}):s.jsx(Q2,{size:t,title:n})}function Qs({kind:e,size:t}){return s.jsx("span",{style:{flexShrink:0,width:t,height:t,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:s.jsx(br,{kind:e,size:t})})}function g4(e,t){return G2(e,"step",t)}const y4="Properties";function X2(e,t,n,r){return G2(e,"detail",`${t}::${n}`,r)}function v4({node:e,selection:t}){const n=l=>X2(e.id,y4,l,0),r=n("Description"),o=bs(r,t);return s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:"Properties"}),s.jsx(dt,{label:"Label",value:e.label,rowId:n("Label"),selection:t}),e.kind!=="group"&&e.kind!=="start"?s.jsx(dt,{label:"API Name",value:e.id,rowId:n("API Name"),selection:t}):null,e.description?s.jsxs("div",{style:{marginTop:6},children:[s.jsx("div",{style:{fontSize:11.5,color:v.textMuted,marginBottom:2},children:"Description"}),s.jsx("div",{...o,style:{fontSize:12.5,color:v.textPrimary,lineHeight:1.5,wordBreak:"break-word",...o.style},children:e.description})]}):null]})}function x4({group:e,elementId:t,groupIndex:n,selection:r}){const o=t!==void 0&&n!==void 0?`${n}:${e.title}`:void 0;return s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:e.title}),(e.rows??[]).map((l,i)=>{const u=t!==void 0&&o!==void 0?bs(X2(t,o,l.label,i),r):{};return s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:10,fontSize:12,padding:"3px 0",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("span",{style:{color:v.textSecondary,fontFamily:v.fontFamilyMono,flexShrink:0,whiteSpace:"nowrap"},children:l.label}),l.value?s.jsx("span",{...u,style:{color:v.textPrimary,fontFamily:v.fontFamilyMono,textAlign:"right",wordBreak:"break-word",minWidth:0,...u.style},children:l.value}):null]},`${l.label}-${i}`)}),e.note?s.jsx("div",{style:{fontSize:11,color:v.textMuted,fontStyle:"italic",marginTop:4},children:e.note}):null]})}function C4({node:e,onBack:t,selection:n}){return s.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[s.jsx(Ys,{onBack:t}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 16px",borderBottom:`1px solid ${v.separator}`},children:[s.jsx(Qs,{kind:e.kind,size:34,glyph:18}),s.jsxs("div",{style:{minWidth:0},children:[s.jsx("div",{style:{fontSize:14,fontWeight:700,color:v.textBright,lineHeight:1.25},children:e.label}),s.jsx("div",{style:{fontSize:11,color:v.textMuted},children:e.typeLabel})]})]}),s.jsxs("div",{style:{padding:"14px 16px"},children:[s.jsx(v4,{node:e,selection:n}),(e.details??[]).map((r,o)=>s.jsx(x4,{group:r,elementId:e.id,groupIndex:o,selection:n},`${r.title}-${o}`))]})]})}function w4({group:e,model:t,onBack:n}){const r=e.memberIds.map(o=>{const l=t.nodes.find(i=>i.id===o);return{id:o,label:(l==null?void 0:l.label)??o,typeLabel:l==null?void 0:l.typeLabel}});return s.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[s.jsx(Ys,{onBack:n}),s.jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("div",{style:{fontSize:14,fontWeight:700,color:v.textBright,lineHeight:1.25},children:e.label}),e.groupType?s.jsx("div",{style:{fontSize:11,color:v.textMuted},children:e.groupType}):null]}),s.jsxs("div",{style:{padding:"14px 16px"},children:[s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:"Properties"}),s.jsx(dt,{label:"Label",value:e.label}),s.jsx(dt,{label:"API Name",value:e.id}),e.groupType?s.jsx(dt,{label:"Type",value:e.groupType}):null]}),s.jsxs("div",{style:{marginBottom:12},children:[s.jsxs("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:["Members (",r.length,")"]}),r.length===0?s.jsx("div",{style:{fontSize:12,color:v.textMuted,fontStyle:"italic"},children:"No members"}):r.map(o=>s.jsxs("div",{style:{fontSize:12,padding:"4px 0",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("div",{style:{color:v.textPrimary,wordBreak:"break-word"},children:o.label}),o.typeLabel?s.jsx("div",{style:{fontSize:11,color:v.textMuted},children:o.typeLabel}):null]},o.id))]})]})]})}function S4(e){const t=(e.stepSubtype??"").toLowerCase(),n=(e.actionType??"").toLowerCase();return t==="managedcontentroleinteractivestep"||n==="managedcontentrolestepinteractive"?"managedContentStep":t.endsWith("interactivestep")||n.endsWith("stepinteractive")?"interactiveStep":t.endsWith("backgroundstep")||n.endsWith("stepbackground")?"subflow":"action"}function k4(e){const t=(e.stepSubtype??"").toLowerCase();return t.endsWith("interactivestep")?"Interactive Step":t.endsWith("backgroundstep")?"Background Step":"Stage Step"}function E4({stage:e,step:t,onBack:n}){return s.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[s.jsx(Ys,{onBack:n}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 16px",borderBottom:`1px solid ${v.separator}`},children:[s.jsx("span",{style:{flexShrink:0,width:34,height:34,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:s.jsx(br,{kind:S4(t),size:26})}),s.jsxs("div",{style:{minWidth:0},children:[s.jsx("div",{style:{fontSize:14,fontWeight:700,color:v.textBright,lineHeight:1.25},children:t.label}),s.jsx("div",{style:{fontSize:11,color:v.textMuted},children:k4(t)})]})]}),s.jsx("div",{style:{padding:"14px 16px"},children:s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:v.textMuted,marginBottom:5},children:"Properties"}),s.jsx(dt,{label:"Label",value:t.label}),s.jsx(dt,{label:"API Name",value:t.name}),t.stepSubtype?s.jsx(dt,{label:"Step Subtype",value:t.stepSubtype}):null,t.actionType?s.jsx(dt,{label:"Action Type",value:t.actionType}):null,t.actionName?s.jsx(dt,{label:"Action Name",value:t.actionName}):null,s.jsx(dt,{label:"Stage",value:e.label})]})})]})}function j4({model:e,selectedNode:t,selectedGroup:n,selectedStepStage:r,selectedStep:o,onClearSelection:l,onClose:i,rowSelection:u}){return s.jsxs("div",{style:{width:312,flexShrink:0,margin:12,border:`1px solid ${v.panelBorder}`,borderRadius:v.radiusLg,backgroundColor:v.panelBg,boxShadow:v.shadowXl,display:"flex",flexDirection:"column",overflowY:"auto"},children:[s.jsxs("div",{style:{position:"sticky",top:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",backgroundColor:v.panelBg,borderBottom:`1px solid ${v.separator}`,borderTopLeftRadius:v.radiusLg,borderTopRightRadius:v.radiusLg},children:[s.jsx("span",{style:{fontSize:15,fontWeight:700,color:v.textBright},children:o&&r?"Step Details":t?"Element Details":n?"Group Details":"Flow Information"}),s.jsx("button",{type:"button",onClick:i,"aria-label":"Close",style:{background:"none",border:"none",color:v.textMuted,cursor:"pointer",padding:2,display:"flex"},children:s.jsx(C3,{size:18})})]}),o&&r?s.jsx(E4,{stage:r,step:o,onBack:l}):t?s.jsx(C4,{node:t,onBack:l,selection:u}):n?s.jsx(w4,{group:n,model:e,onBack:l}):s.jsxs(s.Fragment,{children:[s.jsx(z3,{model:e}),s.jsx(D3,{model:e})]})]})}const Rn=260,vr=64,ha=40,L4=300,K2=44,q2=28,J2=44,M4=10,xr=120,Pr=140,ma=60,_4=80,P4=90,ga=120,So=22,Yr=34,e1=12,t1=60,T4=Rn+28,I4=Yr+e1*2+t1+4,Jl=26,ei=16,At=48,Vn=56,N4=200,ya=44,R4=40,F4=60;function ti(e){if(e.kind==="end")return{w:ha,h:ha};if(e.kind==="group")return{w:T4,h:I4};if(e.kind==="stage"&&e.steps&&e.steps.length>0){const t=K2+q2+e.steps.length*J2+M4;return{w:L4,h:t}}return{w:Rn,h:vr}}function sl(e){return e.isFault?2:e.isDefault?1:0}const va=14,Ct=8;function wt(e,t){if(e.length===0)return"";if(e.length===1)return`M ${e[0].x} ${e[0].y}`;const n=[`M ${e[0].x} ${e[0].y}`];for(let o=1;o<e.length-1;o++){const l=e[o-1],i=e[o],u=e[o+1],a=Math.hypot(i.x-l.x,i.y-l.y),c=Math.hypot(u.x-i.x,u.y-i.y),p=Math.min(t,a/2,c/2);if(p<=0||a===0||c===0){n.push(`L ${i.x} ${i.y}`);continue}const h=p/a,g=i.x-(i.x-l.x)*h,x=i.y-(i.y-l.y)*h,C=p/c,k=i.x+(u.x-i.x)*C,y=i.y+(u.y-i.y)*C;n.push(`L ${g} ${x}`),n.push(`Q ${i.x} ${i.y} ${k} ${y}`)}const r=e[e.length-1];return n.push(`L ${r.x} ${r.y}`),n.join(" ")}function ul(e,t,n,r,o){const l=Math.min(t,n),i=Math.max(t,n);return r.some(u=>o.has(u.node.id)?!1:e>u.x-va&&e<u.x+u.w+va&&u.y<i-1&&u.y+u.h>l+1)}function xa(e,t,n,r,o){if(!ul(e,t,n,r,o))return e;const l=[];for(const a of r)l.push(a.x-Pr/2,a.x+a.w+Pr/2);const i=Array.from(new Set(l)).sort((a,c)=>Math.abs(a-e)-Math.abs(c-e));for(const a of i)if(!ul(a,t,n,r,o))return a;return r.reduce((a,c)=>Math.max(a,c.x+c.w),0)+Pr}const z4=22;function $4(e){if(!e||e.siblingCount<=1)return 0;const t=e.laneGap??z4;return(e.siblingIndex-(e.siblingCount-1)/2)*t}function Ki(e,t,n,r=[],o){let l,i,u;if(e.isFaultStub||e.isFault&&!n){const a=t.x+t.w,c=t.y+t.h/2,p=a+At;l=wt([{x:a,y:c},{x:p,y:c}],Ct),i=p+Vn/2,u=c}else if(e.isFault&&n){const a=t.x+t.w,c=t.y+t.h/2,p=n.y+n.h/2;if(Math.abs(c-p)<1){const h=n.x;l=wt([{x:a,y:c},{x:h,y:c}],Ct),i=(a+h)/2,u=c}else if(n.y>t.y+t.h){const h=n.x+n.w/2,g=n.y;l=wt([{x:a,y:c},{x:h,y:c},{x:h,y:g}],Ct),i=(a+h)/2,u=c}else{const h=n.x,g=p,x=new Set([t.node.id,n.node.id]),C=h-Pr/2,k=xa(C,c,g,r,x);l=wt([{x:a,y:c},{x:k,y:c},{x:k,y:g},{x:h,y:g}],Ct),i=(a+h)/2,u=c}}else if(n){const a=t.x+t.w/2,c=t.y+t.h,p=$4(o),h=n.x+n.w/2+p,g=Math.max(0,n.w/2-4),x=n.x+n.w/2,C=Math.abs(p)<=g?h:x,k=C!==h,y=C,d=n.y;if(Math.abs(a-h)<2&&!k)l=wt([{x:a,y:c},{x:y,y:d}],Ct),i=y,u=Math.min(c+Jl+ei,d-2);else if(k){const f=c+Jl,m=d-Math.min(xr/2,24);l=wt([{x:a,y:c},{x:a,y:f},{x:h,y:f},{x:h,y:m},{x:C,y:m},{x:C,y:d}],Ct),i=h,u=Math.min(f+ei,m-2)}else{const f=new Set([t.node.id,n.node.id]),m=d-c,S=d-Math.min(xr/2,32),_=!(((o==null?void 0:o.sourceOutgoingCount)??1)>1)&&m>xr*1.5&&!ul(a,c,S,r,f)&&!ul(y,S,d,r,f)?S:c+Jl,L=xa(y,_,d,r,f);if(L===y)l=wt([{x:a,y:c},{x:a,y:_},{x:y,y:_},{x:y,y:d}],Ct);else{const I=d-Math.min(xr/2,24);l=wt([{x:a,y:c},{x:a,y:_},{x:L,y:_},{x:L,y:I},{x:y,y:I},{x:y,y:d}],Ct)}i=y,u=Math.min(_+ei,d-2)}}else{const a=t.x+t.w/2,c=t.y+t.h;l=`M ${a} ${c} L ${a} ${c}`,i=a,u=c}return{d:l,lx:i,ly:u}}function O4(e,t){if(!e.groups||e.groups.length===0)return[];const n=[];for(const r of e.groups){const o=r.memberIds.map(c=>t.get(c)).filter(c=>!!c);if(o.length===0)continue;let l=1/0,i=1/0,u=-1/0,a=-1/0;for(const c of o)l=Math.min(l,c.x),i=Math.min(i,c.y),u=Math.max(u,c.x+c.w),a=Math.max(a,c.y+c.h);n.push({id:r.id,label:r.label,count:o.length,x:l-So,y:i-So-Yr,w:u-l+So*2,h:a-i+So*2+Yr})}return n}function Ca(e,t,n){const r=new Set(e),o=new Map;for(const l of e)o.set(l,[]);for(const l of t)!r.has(l.from)||!r.has(l.to)||o.get(l[n]).push(l);return o}function D4(e,t,n){const r=new Set,o=new Set,l=new Set,i=u=>{if(l.has(u)||o.has(u))return;const a=[],c=p=>{o.add(p),a.push({id:p,i:0,outs:(n.get(p)??[]).filter(h=>!h.isFault)})};for(c(u);a.length;){const p=a[a.length-1];if(p.i<p.outs.length){const h=p.outs[p.i++];if(o.has(h.to)){r.add(h);continue}if(l.has(h.to))continue;c(h.to)}else o.delete(p.id),l.add(p.id),a.pop()}};for(const u of e)i(u);for(const u of t)i(u);return r}function H4(e,t,n){const r=new Map;for(const o of e){if(r.has(o))continue;const l=[{id:o,phase:0}],i=new Set;for(;l.length;){const u=l[l.length-1];if(u.phase===0){if(r.has(u.id)){l.pop();continue}if(i.has(u.id)){r.set(u.id,0),i.delete(u.id),l.pop();continue}i.add(u.id),u.phase=1;for(const a of t.get(u.id)??[])a.from===u.id||a.isFault||n.has(a)||r.has(a.from)||l.push({id:a.from,phase:0})}else{let a=0;for(const c of t.get(u.id)??[])c.from===u.id||c.isFault||n.has(c)||(a=Math.max(a,(r.get(c.from)??0)+1));r.set(u.id,a),i.delete(u.id),l.pop()}}}return r}function A4(e,t,n,r,o){const l=new Set,i=[[e,t]];for(;i.length;){const[u,a]=i.shift();if(!(l.has(u)||r.has(u))){l.add(u),o.set(u,a);for(const c of n.get(u)??[])c.isFault||c.isGoTo||i.push([c.to,a+1])}}}function V4(e,t,n){const r=new Map,o=new Set;let l=0;const i=u=>{if(o.has(u))return;const a=[u];for(;a.length;){const c=a.pop();if(o.has(c))continue;o.add(c),r.set(c,l++);const p=(n.get(c)??[]).filter(h=>!h.isFault&&!h.isGoTo).slice().sort((h,g)=>sl(h)-sl(g));for(let h=p.length-1;h>=0;h--)o.has(p[h].to)||a.push(p[h].to)}};for(const u of e)i(u);for(const u of t)i(u);return r}function B4(e,t,n,r){const o=new Map,l=a=>{const c=[...t.get(a)??[]],p=n.get(a);return p&&c.push(p),c};for(const a of e){if(o.has(a))continue;const c=[{id:a,phase:0}];for(;c.length;){const p=c[c.length-1];if(p.phase===0){p.phase=1;for(const h of l(p.id))o.has(h)||c.push({id:h,phase:0})}else{const h=t.get(p.id)??[],g=n.get(p.id),x=h.reduce((k,y)=>k+(o.get(y)??r),0),C=g?o.get(g)??r:0;o.set(p.id,Math.max(r,x,C)),c.pop()}}}const i=new Map;let u=0;for(const a of e){const c=o.get(a)??r,p=[{id:a,x:u+c/2}];for(;p.length;){const{id:h,x:g}=p.pop();i.set(h,g);const x=t.get(h)??[],C=n.get(h);if(x.length>0){const k=x.reduce((f,m)=>f+(o.get(m)??r),0);let y=g-k/2;const d=[];for(const f of x){const m=o.get(f)??r;d.push({id:f,x:y+m/2}),y+=m}for(let f=d.length-1;f>=0;f--)p.push(d[f])}C&&p.push({id:C,x:g})}u+=c}return i}function U4(e,t){const n=new Set,r=[e];for(;r.length;){const o=r.shift();if(!n.has(o)){n.add(o);for(const l of t.get(o)??[])l.isFault||l.isGoTo||r.push(l.to)}}return n}function wa(e,t){const n=new Map;for(const r of e.nodes){if(r.kind!=="loop")continue;const l=(t.get(r.id)??[]).find(p=>!p.isDefault&&!p.isFault&&!p.isGoTo);if(!l)continue;const i=new Set,u=[l.to];for(;u.length;){const p=u.shift();if(!(p===r.id||i.has(p))){i.add(p);for(const h of t.get(p)??[])h.isFault||h.isGoTo||h.to!==r.id&&u.push(h.to)}}const a=[];for(const p of i)for(const h of t.get(p)??[])h.isFault&&(h.isGoTo||h.to!==r.id&&a.push(h.to));const c=[...a];for(;c.length;){const p=c.shift();if(!(p===r.id||i.has(p))){i.add(p);for(const h of t.get(p)??[])h.isFault||h.isGoTo||h.to!==r.id&&c.push(h.to)}}i.size>0&&n.set(r.id,i)}return n}function W4(e){const t=e.nodes.map(w=>w.id),n=Ca(t,e.edges,"to"),r=Ca(t,e.edges,"from"),o=e.nodes.filter(w=>w.kind==="start").map(w=>w.id),l=o.length?o:t.filter(w=>n.get(w).length===0),i=new Set;{const w=[...l];for(;w.length;){const M=w.shift();if(!i.has(M)){i.add(M);for(const N of r.get(M))N.isFault||N.isGoTo||i.has(N.to)||w.push(N.to)}}}const u=new Set;for(const w of e.edges){if(!w.isFault||w.isGoTo)continue;const M=[w.to];for(;M.length;){const N=M.shift();if(!(i.has(N)||u.has(N))){u.add(N);for(const A of r.get(N)??[])A.isFault||A.isGoTo||M.push(A.to)}}}const a=new Set;for(const w of e.nodes)!i.has(w.id)&&!u.has(w.id)&&a.add(w.id);const c=D4(l,t,r);for(const w of e.edges)w.isGoTo&&c.add(w);const p=H4(t,n,c),h=new Set;{const w=e.nodes.filter(N=>N.kind==="decision").map(N=>N.id),M=[];for(const N of w)for(const A of r.get(N)??[])A.isFault||A.isGoTo||i.has(A.to)&&M.push(A.to);for(;M.length;){const N=M.shift();if(!h.has(N)){h.add(N);for(const A of r.get(N)??[])A.isFault||A.isGoTo||i.has(A.to)&&M.push(A.to)}}}const g=new Map;for(const w of e.edges)w.isFault&&!w.isGoTo&&g.set(w.to,w.from);for(const[w,M]of g){const N=p.get(M)??0,A=h.has(M)?N+1:N;A4(w,A,r,i,p)}{const w=M=>{const N=e.nodes.find(H=>H.id===M);if(!N||N.kind!=="end")return!1;const A=(n.get(M)??[]).filter(H=>!H.isFault&&!H.isGoTo&&!c.has(H)&&i.has(H.from));return new Set(A.map(H=>H.from)).size>=2};for(const M of t){if(!i.has(M)||!w(M))continue;const N=new Set,A=[M];let H=-1/0;for(;A.length;){const Q=A.shift();if(!N.has(Q)){N.add(Q);for(const pe of r.get(Q)??[]){if(!pe.isFault||pe.isGoTo)continue;const Se=[pe.to],ze=new Set;for(;Se.length;){const me=Se.shift();if(ze.has(me)||i.has(me))continue;ze.add(me);const Ve=p.get(me);Ve!==void 0&&(H=Math.max(H,Ve));for(const or of r.get(me)??[])or.isFault||or.isGoTo||Se.push(or.to)}}for(const pe of n.get(Q)??[])pe.isFault||pe.isGoTo||c.has(pe)||i.has(pe.from)&&A.push(pe.from)}}if(!Number.isFinite(H))continue;const Y=p.get(M)??0,W=H+1;if(W>Y){const Q=W-Y,pe=new Set,Se=[M];for(;Se.length;){const ze=Se.shift();if(!pe.has(ze)){pe.add(ze),p.set(ze,(p.get(ze)??0)+Q);for(const me of r.get(ze)??[])me.isFault||c.has(me)||me.isGoTo||Se.push(me.to)}}}}}const x=wa(e,r);for(const[w,M]of x){let N=p.get(w)??0;for(const Y of M)N=Math.max(N,p.get(Y)??0);const A=N+1,H=r.get(w)??[];for(const Y of H){if(Y.isFault||!Y.isDefault)continue;const W=Y.to,Q=p.get(W)??0;if(Q>=A)continue;const pe=A-Q,Se=[W],ze=new Set;for(;Se.length;){const me=Se.shift();if(!ze.has(me)){ze.add(me),p.set(me,(p.get(me)??0)+pe);for(const Ve of r.get(me)??[])Ve.isFault||c.has(Ve)||ze.has(Ve.to)||Se.push(Ve.to)}}}}const C=V4(l,t,r);let k=Rn;for(const w of e.nodes){const M=ti(w).w;M>k&&M<Rn*2&&(k=M)}const y=k+Pr,d=new Map,f=new Map,m=new Map;for(const w of t)i.has(w)&&d.set(w,[]);const S=t.filter(w=>i.has(w)).sort((w,M)=>(p.get(w)??0)-(p.get(M)??0)),E=[];for(const w of S){const M=Array.from(new Set(n.get(w).filter(N=>!N.isFault&&!c.has(N)&&i.has(N.from)).map(N=>N.from)));if(M.length!==0)if(M.length===1){const N=M[0],A=e.nodes.find(Y=>Y.id===N),H=n.get(w).find(Y=>Y.from===N&&!Y.isFault&&!c.has(Y));if((A==null?void 0:A.kind)==="loop"&&(H!=null&&H.isDefault)&&!f.has(N)){f.set(N,w),m.set(w,N);continue}d.get(N).push(w),m.set(w,N)}else E.push(w)}const T=w=>{const M=[];let N=w;const A=new Set;for(;N&&!A.has(N);)A.add(N),M.push(N),N=m.get(N);return M};for(const w of E){const M=Array.from(new Set(n.get(w).filter(W=>!W.isFault&&!c.has(W)&&i.has(W.from)).map(W=>W.from))),N=M.map(W=>new Set(T(W))),A=T(M[0]);let H;for(const W of A)if(N.every(Q=>Q.has(W))){H=W;break}if(!H){d.get(M[0]).push(w),m.set(w,M[0]);continue}if(M.includes(H)){d.get(H).push(w),m.set(w,H);continue}if(f.get(H)!==void 0){d.get(H).push(w),m.set(w,H);continue}f.set(H,w),m.set(w,H)}for(const[w,M]of d){const N=r.get(w)??[];M.sort((A,H)=>{const Y=N.find(Se=>Se.to===A),W=N.find(Se=>Se.to===H),Q=Y?sl(Y):999,pe=W?sl(W):999;return Q!==pe?Q-pe:(C.get(A)??0)-(C.get(H)??0)})}const _=l.filter(w=>i.has(w)),L=B4(_,d,f,y);let I=1/0,j=-1/0;for(const w of L.values())I=Math.min(I,w),j=Math.max(j,w);Number.isFinite(I)||(I=0,j=0);const P=new Set;for(const w of x.values())for(const M of w)P.add(M);const O=new Set;for(const w of e.edges){if(!w.isFault||w.isGoTo||!P.has(w.from)||!P.has(w.to))continue;const M=L.get(w.from);if(M===void 0)continue;const N=M+y,A=[w.to];for(;A.length;){const H=A.shift();if(!(O.has(H)||i.has(H))){O.add(H),L.set(H,N),j=Math.max(j,N);for(const Y of r.get(H)??[])Y.isFault||Y.isGoTo||A.push(Y.to)}}}const B=[];for(const w of e.edges)!w.isFault||w.isGoTo||i.has(w.to)||O.has(w.to)||B.some(M=>M.rootId===w.to)||B.push({rootId:w.to,sourceId:w.from,sourceRow:p.get(w.from)??0,inDecision:h.has(w.from)&&i.has(w.from)});const z=new Set,Z=B.filter(w=>w.inDecision),D=new Set;for(;D.size<Z.length;){let w,M=1/0,N=1/0;for(const W of Z){if(D.has(W.sourceId))continue;const Q=L.get(W.sourceId)??0;(W.sourceRow<M||W.sourceRow===M&&Q<N)&&(M=W.sourceRow,N=Q,w=W)}if(!w)break;D.add(w.sourceId);const H=(L.get(w.sourceId)??0)+y;for(const W of t){if(!i.has(W))continue;const Q=L.get(W);Q!==void 0&&Q>=H-.5&&L.set(W,Q+y)}for(const W of z){const Q=L.get(W);Q!==void 0&&Q>=H-.5&&L.set(W,Q+y)}for(const W of O){const Q=L.get(W);Q!==void 0&&Q>=H-.5&&L.set(W,Q+y)}const Y=[w.rootId];for(;Y.length;){const W=Y.shift();if(!(z.has(W)||i.has(W)||O.has(W))){z.add(W),L.set(W,H);for(const Q of r.get(W)??[])Q.isFault||Q.isGoTo||Y.push(Q.to)}}}{const w=t.filter(M=>i.has(M)).sort((M,N)=>(p.get(N)??0)-(p.get(M)??0));for(const M of w){const N=d.get(M)??[],A=f.get(M);if(N.length===0&&!A)continue;let H=0,Y=0;for(const W of N){const Q=L.get(W);Q!==void 0&&(H+=Q,Y++)}if(Y>0)L.set(M,H/Y);else if(A){const W=L.get(A);W!==void 0&&L.set(M,W)}}for(const[M,N]of f){const A=[];for(const H of n.get(N)??[]){if(H.isFault||H.isGoTo||c.has(H)||!i.has(H.from))continue;const Y=L.get(H.from);Y!==void 0&&A.push(Y)}if(A.length>=2){const H=A.reduce((Y,W)=>Y+W,0)/A.length;L.set(N,H)}else{const H=L.get(M);H!==void 0&&L.set(N,H)}}}I=1/0,j=-1/0;for(const w of L.values())I=Math.min(I,w),j=Math.max(j,w);Number.isFinite(I)||(I=0,j=0);const b=B.filter(w=>!w.inDecision).sort((w,M)=>M.sourceRow-w.sourceRow);let F=j+y+N4;for(const{rootId:w}of b){const M=[w];for(;M.length;){const N=M.shift();if(!(z.has(N)||i.has(N)||O.has(N))){z.add(N),L.set(N,F);for(const A of r.get(N)??[])A.isFault||A.isGoTo||M.push(A.to)}}F+=y}for(const w of e.nodes)!i.has(w.id)&&!O.has(w.id)&&!z.has(w.id)&&L.set(w.id,F);const U=[...new Set(e.nodes.map(w=>p.get(w.id)??0))].sort((w,M)=>w-M),G=new Map;for(const w of e.nodes){const M=p.get(w.id)??0;G.set(M,Math.max(G.get(M)??vr,ti(w).h))}const te=new Map;let se=ma;for(const w of U)te.set(w,se),se+=(G.get(w)??vr)+xr;const st=[],le=new Map;for(const w of e.nodes){if(a.has(w.id))continue;const{w:M,h:N}=ti(w),A=_4+(L.get(w.id)??0)-I+Rn/2,H=te.get(p.get(w.id)??0)??ma,Y=N<vr?H+(vr-N)/2:H,W={node:w,x:A-M/2,y:Y,w:M,h:N,cx:A};st.push(W),le.set(w.id,W)}for(const w of e.edges){if(!w.isFault||w.isGoTo||h.has(w.from))continue;const M=le.get(w.from),N=le.get(w.to);if(!M||!N)continue;const A=M.y+M.h/2-(N.y+N.h/2);if(Math.abs(A)<.5)continue;const H=U4(w.to,r);for(const Y of H){const W=le.get(Y);W&&(W.y+=A)}}let je=0,Fe=0;for(const w of st)je=Math.max(je,w.cx+Rn/2),Fe=Math.max(Fe,w.y+w.h);for(const w of e.edges){if(!w.isFaultStub)continue;const M=le.get(w.from);M&&(je=Math.max(je,M.x+M.w+At+Vn))}const gt=l.map(w=>{var M;return(M=le.get(w))==null?void 0:M.cx}).filter(w=>w!==void 0);let ue;if(gt.length)ue=gt.reduce((w,M)=>w+M,0)/gt.length;else{const w=st.filter(M=>i.has(M.node.id)).map(M=>M.cx);ue=w.length?w.reduce((M,N)=>M+N,0)/w.length:(je+ga)/2}const be=wa(e,r),we=[],Ae=new Set;for(const[w,M]of be){const N=le.get(w);if(!N)continue;let A=1/0,H=-1/0,Y=-1/0;for(const ve of M){const yt=le.get(ve);yt&&(A=Math.min(A,yt.x),H=Math.max(H,yt.x+yt.w),Y=Math.max(Y,yt.y+yt.h))}if(!Number.isFinite(A))continue;A=Math.min(A,N.x),H=Math.max(H,N.x+N.w);for(const ve of e.edges){if(!ve.isFaultStub||!M.has(ve.from))continue;const yt=le.get(ve.from);yt&&(H=Math.max(H,yt.x+yt.w+At+Vn))}const W=A-ya,Q=N.y+N.h+R4,pe=H-A+ya*2,Se=Y-Q+F4,ze=r.get(w)??[],me=ze.find(ve=>ve.isDefault&&!ve.isFault&&!ve.isGoTo),Ve=me==null?void 0:me.to,or=Ve?le.get(Ve):void 0,r1=Ve?M.has(Ve):!1,o1=N.cx,l1=Q,i1=W+pe,s1=Q+30;we.push({loopId:w,bodyIds:M,x:W,y:Q,w:pe,h:Se,forEachChip:{x:o1,y:l1},afterLastChip:{x:i1,y:s1},afterLastTargetId:or&&!r1&&Ve!==w?Ve:void 0}),je=Math.max(je,W+pe),Fe=Math.max(Fe,Q+Se);for(const ve of e.edges)ve.to===w&&M.has(ve.from)&&Ae.add(`${ve.from}->${ve.to}`);for(const ve of ze)ve.isFault||ve.isGoTo||Ae.add(`${ve.from}->${ve.to}`)}return{width:je+ga,height:Fe+P4,placed:st,byId:le,groups:O4(e,le),loops:we,suppressedEdges:Ae,spineCenterX:ue}}const n1=`0 0 0 1px ${v.canvasBg}, 0 0 0 3px ${v.focusBorder}`;function G4({group:e,selected:t}){return s.jsx("div",{style:{position:"absolute",left:e.x,top:e.y,width:e.w,height:e.h,borderRadius:v.radiusLg,border:`1px solid ${t?v.focusBorder:v.borderDefault}`,backgroundColor:"rgba(120,120,140,0.06)",boxShadow:t?n1:v.shadowSm}})}function Z4({group:e,onCollapse:t,onSelect:n}){return s.jsxs("div",{"data-no-pan":!0,onClick:r=>{r.stopPropagation(),n()},title:e.label,style:{position:"absolute",top:e.y,left:e.x,width:e.w,height:Yr,boxSizing:"border-box",display:"flex",alignItems:"center",gap:8,padding:"0 12px",borderTopLeftRadius:v.radiusLg,borderTopRightRadius:v.radiusLg,backgroundColor:v.flowAction,fontSize:12,fontWeight:700,color:v.textInverse,fontFamily:v.fontFamily,cursor:"pointer"},children:[s.jsx("button",{type:"button","data-no-pan":!0,onClick:r=>{r.stopPropagation(),t()},title:"Collapse group",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,padding:0,border:"none",background:"transparent",color:v.textInverse,cursor:"pointer"},children:s.jsx(to,{size:14})}),s.jsx("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label}),s.jsx("span",{style:{flexShrink:0,opacity:.85,fontWeight:600},children:e.count})]})}function b4({edge:e,from:t,to:n,boxes:r,siblings:o}){if(!t||!n&&!e.isFaultStub)return null;const l=e.isFault?v.statusNegative:v.edgeNeutral,i=e.isFault?"url(#fd-arrow-fault)":"url(#fd-arrow)",u=e.isFault?"5 4":void 0,{d:a}=Ki(e,t,n,r,o);return s.jsx("path",{d:a,stroke:l,strokeWidth:1.6,fill:"none",strokeDasharray:u,markerEnd:i})}function Sa({x:e,y:t,text:n,fault:r}){const o=Math.max(30,n.length*7+16),l=20,i=v.bgElevated,u=r?v.statusNegative:v.borderStrong,a=r?v.statusNegative:v.textPrimary,c=4;return s.jsxs("g",{children:[s.jsx("rect",{x:e-o/2-c,y:t-l/2-c,width:o+c*2,height:l+c*2,rx:4+c,fill:v.canvasBg}),s.jsx("rect",{x:e-o/2,y:t-l/2,width:o,height:l,rx:4,fill:i,stroke:u,strokeWidth:1}),s.jsx("text",{x:e,y:t+1,textAnchor:"middle",dominantBaseline:"middle",fontSize:11,fontWeight:700,fontFamily:v.fontFamily,fill:a,children:n})]})}function Fn({top:e}){return s.jsx("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",[e?"top":"bottom"]:-4,width:8,height:8,borderRadius:"50%",backgroundColor:v.textMuted,border:`2px solid ${v.canvasBg}`}})}function Y4(e){const t=(e.stepSubtype??"").toLowerCase(),n=(e.actionType??"").toLowerCase();return t==="managedcontentroleinteractivestep"||n==="managedcontentrolestepinteractive"?"managedContentStep":t.endsWith("interactivestep")||n.endsWith("stepinteractive")?"interactiveStep":t.endsWith("backgroundstep")||n.endsWith("stepbackground")?"subflow":"action"}function Q4({placed:e,selected:t,onSelect:n,onStepSelect:r,selectedStepName:o}){const{node:l}=e,i=l.steps??[];return s.jsxs("div",{"data-no-pan":!0,"data-mv-id":l.id,onClick:()=>n(l.id),title:l.description??l.label,style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,boxSizing:"border-box",backgroundColor:v.bgElevated,border:`1px solid ${t?v.interactivePrimary:v.borderDefault}`,outline:t?`1px solid ${v.interactivePrimary}`:void 0,borderRadius:v.radiusMd,boxShadow:t?v.shadowXl:v.panelShadow,cursor:"pointer",overflow:"hidden"},children:[s.jsx(Fn,{top:!0}),s.jsx(Fn,{}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,height:K2,padding:"0 12px",boxSizing:"border-box",backgroundColor:v.bgElevated,color:v.textBright,borderBottom:`1px solid ${v.separator}`},children:[s.jsx("span",{style:{flexShrink:0,width:24,height:24,display:"inline-flex",alignItems:"center",justifyContent:"center",color:v.textPrimary},children:s.jsx(br,{kind:"stage",size:24})}),s.jsx("div",{style:{minWidth:0,flex:1},children:s.jsx("div",{style:{fontSize:13,fontWeight:700,lineHeight:1.2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l.label})})]}),s.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:q2,padding:"0 12px",fontSize:11,fontWeight:700,color:v.textSecondary,textTransform:"uppercase",letterSpacing:.5,borderBottom:`1px solid ${v.separator}`},children:s.jsxs("span",{children:[i.length," ",i.length===1?"Step":"Steps"]})}),s.jsx("div",{children:i.map((u,a)=>{const c=o===u.name;return s.jsxs("div",{"data-no-pan":!0,"data-mv-id":g4(l.id,u.name),onClick:p=>{p.stopPropagation(),r==null||r(l.id,u.name)},style:{display:"flex",alignItems:"center",gap:10,height:J2,padding:"0 12px",boxSizing:"border-box",borderBottom:a<i.length-1?`1px solid ${v.separator}`:"none",color:v.textPrimary,cursor:"pointer",backgroundColor:c?v.bgSurfaceHover:"transparent"},title:u.actionName?`${u.label} (${u.actionName})`:u.label,children:[s.jsx("span",{style:{flexShrink:0,width:22,height:22,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:s.jsx(br,{kind:Y4(u),size:22})}),s.jsx("div",{style:{minWidth:0,flex:1,fontSize:12.5,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.label})]},u.name)})})]})}function X4({placed:e,selected:t,collapsible:n,isCollapsed:r,isGroupSummary:o,onSelect:l,onSelectStep:i,selectedStepName:u,onExpandGroup:a,onToggleCollapse:c}){var h,g;const{node:p}=e;if(o){const x=p.groupConnections,C=x?`${x.incoming} incoming, ${x.outgoing} outgoing connections`:void 0;return s.jsxs("div",{"data-no-pan":!0,onClick:()=>l(p.id),title:p.label,style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,boxSizing:"border-box",backgroundColor:"rgba(120,120,140,0.06)",border:`1px solid ${t?v.focusBorder:v.borderDefault}`,borderRadius:v.radiusLg,boxShadow:t?n1:v.shadowSm,cursor:"pointer"},children:[s.jsx(Fn,{top:!0}),s.jsx(Fn,{}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,height:Yr,padding:"0 12px",boxSizing:"border-box",borderTopLeftRadius:v.radiusLg,borderTopRightRadius:v.radiusLg,backgroundColor:v.flowAction,color:v.textInverse},children:[s.jsx("button",{type:"button","data-no-pan":!0,onClick:k=>{k.stopPropagation(),a==null||a()},title:"Expand group",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,padding:0,border:"none",background:"transparent",color:v.textInverse,cursor:"pointer"},children:s.jsx(Jn,{size:14})}),s.jsx("span",{style:{flex:1,minWidth:0,fontSize:12,fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:p.label}),s.jsx("span",{style:{flexShrink:0,opacity:.85,fontSize:12,fontWeight:600},children:((g=(h=e.node.detail)==null?void 0:h.match(/^\d+/))==null?void 0:g[0])??""})]}),s.jsx("div",{style:{padding:e1},children:s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,height:t1,padding:"0 12px",boxSizing:"border-box",backgroundColor:v.bgElevated,border:`1px solid ${v.borderDefault}`,borderRadius:v.radiusMd},children:[s.jsx("span",{style:{flexShrink:0,width:34,height:34,borderRadius:v.radiusMd,backgroundColor:v.flowOrchestration,display:"inline-flex",alignItems:"center",justifyContent:"center",color:v.textInverse},children:s.jsx(_3,{size:18})}),s.jsxs("div",{style:{minWidth:0,flex:1},children:[s.jsx("div",{style:{fontSize:13,fontWeight:700,color:v.textBright,lineHeight:1.2},children:p.detail?p.detail.replace(/^(\d+) element/,"$1 Element"):"Elements"}),C?s.jsx("div",{style:{fontSize:11,fontStyle:"italic",color:v.textSecondary,marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C}):null]})]})})]})}return p.kind==="stage"&&p.steps&&p.steps.length>0?s.jsx(Q4,{placed:e,selected:t,onSelect:l,onStepSelect:i,selectedStepName:u}):p.kind==="end"?s.jsx("div",{style:{position:"absolute",left:e.x,top:e.y,width:e.w,height:e.h,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",boxShadow:`0 0 0 4px ${v.canvasBg}, ${v.shadowMd}`},title:"End",children:s.jsx(br,{kind:"end",size:e.w,title:"End"})}):s.jsxs("div",{"data-no-pan":!0,"data-mv-id":p.id,onClick:()=>l(p.id),style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,backgroundColor:v.bgElevated,border:`1px solid ${t?v.interactivePrimary:v.borderDefault}`,outline:t?`1px solid ${v.interactivePrimary}`:void 0,borderRadius:v.radiusMd,display:"flex",alignItems:"center",gap:12,padding:"0 14px 0 10px",boxSizing:"border-box",boxShadow:t?v.shadowXl:v.panelShadow,cursor:"pointer"},title:p.description??p.label,children:[s.jsx(Fn,{top:!0}),s.jsx(Fn,{}),n?s.jsx("button",{type:"button","data-no-pan":!0,onClick:x=>{x.stopPropagation(),c(p.id)},title:r?"Expand branches":"Collapse branches",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:24,height:24,marginLeft:-2,borderRadius:v.radiusSm,border:"none",backgroundColor:"transparent",color:v.textSecondary,cursor:"pointer"},children:r?s.jsx(Jn,{size:15}):s.jsx(to,{size:15})}):null,s.jsx(Qs,{kind:p.kind,size:42,glyph:20}),s.jsxs("div",{style:{minWidth:0,flex:1,padding:"8px 0"},children:[s.jsx("div",{style:{fontSize:13.5,fontWeight:700,color:v.textBright,lineHeight:1.2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:p.label}),s.jsx("div",{style:{fontSize:11,color:v.textMuted,marginTop:1},children:p.typeLabel})]})]})}function ka({x:e,y:t,collapsed:n,onToggle:r}){return s.jsxs("button",{type:"button","data-no-pan":!0,onClick:o=>{o.stopPropagation(),r()},title:n?"Expand fault path":"Collapse fault path",style:{position:"absolute",top:t,left:e,transform:"translate(-50%, -50%)",display:"inline-flex",alignItems:"center",gap:5,padding:"4px 10px",borderRadius:v.radiusFull,backgroundColor:v.bgSurface,border:`1px solid ${v.statusNegative}`,boxShadow:`0 0 0 3px ${v.canvasBg}`,fontSize:11.5,fontWeight:700,color:v.statusNegative,fontFamily:v.fontFamily,whiteSpace:"nowrap",cursor:"pointer"},children:["Fault",n?s.jsx(Jn,{size:12}):s.jsx(to,{size:12})]})}const K4=8,Ea=20;function ja({x:e,y:t,text:n}){return s.jsx("div",{style:{position:"absolute",top:t,left:e,transform:"translate(-50%, -50%)",height:Ea,display:"inline-flex",alignItems:"center",padding:`0 ${K4}px`,borderRadius:Ea/2,border:`1px solid ${v.borderDefault}`,background:v.bgSurface,color:v.textSecondary,fontFamily:v.fontFamily,fontSize:11,fontWeight:600,whiteSpace:"nowrap",pointerEvents:"none",lineHeight:1},children:n})}function q4({loop:e}){return s.jsxs(s.Fragment,{children:[s.jsx(ja,{x:e.forEachChip.x,y:e.forEachChip.y,text:"For Each"}),s.jsx(ja,{x:e.afterLastChip.x,y:e.afterLastChip.y,text:"After Last"})]})}function ni({x:e,y:t,targetLabel:n,onSelect:r,variant:o="below",fault:l=!1}){const i=o==="right"?"translate(0, -50%)":"translate(-50%, 0)",u=l?v.statusNegative:v.borderDefault,a=l?v.statusNegative:v.textSecondary;return s.jsxs("div",{role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r,onKeyDown:r?c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),r())}:void 0,style:{position:"absolute",top:t,left:e,transform:i,display:"inline-flex",alignItems:"center",gap:4,padding:"2px 8px",borderRadius:10,border:`1px solid ${u}`,background:v.bgSurface,color:a,fontFamily:v.fontFamily,fontSize:11,fontWeight:l?700:600,whiteSpace:"nowrap",lineHeight:1.4,cursor:r?"pointer":"default",userSelect:"none"},children:[s.jsx("span",{"aria-hidden":"true",children:"→"}),n]})}const La=6,Ma=24,ko=22;function J4({layout:e,model:t,zoom:n,pan:r,selectedId:o,selectedGroupId:l,collapsedBranches:i,branchSources:u,collapsedFaults:a,onSelect:c,onSelectGroup:p,onSelectStep:h,selectedStep:g,onToggleCollapse:x,onToggleFault:C,onToggleGroup:k}){return s.jsxs("div",{style:{position:"absolute",top:0,left:0,width:e.width,height:e.height,transform:`translate(${r.x}px, ${r.y}px) scale(${n})`,transformOrigin:"0 0",willChange:"transform"},children:[e.groups.map(y=>s.jsx(G4,{group:y,selected:y.id===l},y.id)),e.loops.map(y=>s.jsx(q4,{loop:y},`loop-${y.loopId}`)),s.jsxs("svg",{width:e.width,height:e.height,style:{position:"absolute",inset:0,pointerEvents:"none",overflow:"visible"},children:[s.jsxs("defs",{children:[s.jsx("marker",{id:"fd-arrow",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:s.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:v.edgeNeutral})}),s.jsx("marker",{id:"fd-arrow-fault",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:s.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:v.statusNegative})})]}),(()=>{const y=new Set;for(const I of e.loops)for(const j of t.edges)j.from===I.loopId&&(j.isFault||y.add(`${j.from}->${j.to}`));const d=new Map,f=new Map;for(const I of t.edges){if(I.isFault||I.isGoTo)continue;const j=`${I.from}->${I.to}`;if(e.suppressedEdges.has(j))continue;d.set(j,(d.get(j)??0)+1);const P=f.get(j);P?P.push(I):f.set(j,[I])}const m=6,S=I=>Math.max(30,I.length*7+16),E=I=>{const j=f.get(I);if(!j)return 0;let P=0;for(const O of j)O.label&&(P=Math.max(P,S(O.label)));return P+m},T=new Map;for(const I of t.edges)I.isFault||I.isGoTo||e.suppressedEdges.has(`${I.from}->${I.to}`)||T.set(I.from,(T.get(I.from)??0)+1);const _=new Map,L=I=>{if(I.isFault)return;const j=`${I.from}->${I.to}`,P=d.get(j)??1,O=T.get(I.from)??1;if(P<=1&&O<=1)return;const B=_.get(j)??0;return _.set(j,B+1),{siblingIndex:B,siblingCount:P,laneGap:E(j),sourceOutgoingCount:O}};return s.jsxs(s.Fragment,{children:[t.edges.map((I,j)=>e.suppressedEdges.has(`${I.from}->${I.to}`)||I.isGoTo?null:s.jsx(b4,{edge:I,from:e.byId.get(I.from),to:e.byId.get(I.to),boxes:e.placed,siblings:L(I)},`${I.from}-${I.to}-${j}`)),(()=>{const I=new Map;return t.edges.map((j,P)=>{if(!j.label||j.isFault||j.isGoTo)return null;const O=`${j.from}->${j.to}`;if(e.suppressedEdges.has(O)||y.has(O))return null;const B=e.byId.get(j.from),z=e.byId.get(j.to);if(!B||!z)return null;const Z=d.get(O)??1,D=I.get(O)??0;I.set(O,D+1);const b=T.get(j.from)??1,F=Z>1||b>1?{siblingIndex:D,siblingCount:Z,laneGap:E(O),sourceOutgoingCount:b}:void 0,{lx:U,ly:G}=Ki(j,B,z,e.placed,F);return s.jsx(Sa,{x:U,y:G,text:j.label},`lbl-${j.from}-${j.to}-${P}`)})})()]})})(),e.loops.map(y=>{const d=t.edges.filter(D=>D.to===y.loopId&&y.bodyIds.has(D.from)&&!D.isFault&&!D.isGoTo);if(d.length===0)return null;const f=d.map(D=>e.byId.get(D.from)).filter(D=>D!==void 0);if(f.length===0)return null;const m=e.byId.get(y.loopId);if(!m)return null;const S=y.forEachChip.x,E=24,T=20,L=f.reduce((D,b)=>Math.max(D,b.y+b.h),0)+E,I=L+T,j=y.x,P=m.x,O=m.y+m.h/2,B=12,z=[`M ${S} ${L}`,`V ${I-B}`,`A ${B} ${B} 0 0 1 ${S-B} ${I}`,`H ${j+B}`,`A ${B} ${B} 0 0 1 ${j} ${I-B}`,`V ${O+B}`,`A ${B} ${B} 0 0 1 ${j+B} ${O}`,`H ${P}`].join(" "),Z=new Map;for(const D of d)D.label&&Z.set(D.from,D.label);return s.jsxs("g",{children:[f.map(D=>s.jsx("path",{d:wt([{x:D.cx,y:D.y+D.h},{x:D.cx,y:L},{x:S,y:L}],Ct),stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none"},`loopreturn-${y.loopId}-${D.node.id}`)),s.jsx("path",{d:z,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none"}),f.map(D=>{const b=Z.get(D.node.id);return b?s.jsx(Sa,{x:D.cx,y:D.y+D.h+14,text:b},`loopreturn-lbl-${y.loopId}-${D.node.id}`):null})]},`loopreturn-${y.loopId}`)}),e.loops.map(y=>{const d=e.byId.get(y.loopId);if(!d)return null;let f;for(const B of y.bodyIds){const z=e.byId.get(B);z&&(!f||z.y<f.y)&&(f=z)}if(!f)return null;const m=d.cx,S=d.y+d.h,E=f.cx,T=f.y,_=y.forEachChip.y,L=14,I=_-L,j=_+L,P=`M ${m} ${S} V ${I}`,O=m===E?`M ${m} ${j} V ${T}`:wt([{x:m,y:j},{x:m,y:(j+T)/2},{x:E,y:(j+T)/2},{x:E,y:T}],Ct);return s.jsxs("g",{children:[s.jsx("path",{d:P,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none"}),s.jsx("path",{d:O,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none",markerEnd:"url(#fd-arrow)"})]},`foreach-${y.loopId}`)}),e.loops.map(y=>{if(!y.afterLastTargetId)return null;const d=e.byId.get(y.loopId),f=e.byId.get(y.afterLastTargetId);if(!d||!f)return null;const m=y.afterLastChip.y,S=14,E=m-S,T=m+S,_=f.cx,L=f.y,I=d.x+d.w,j=d.y+d.h/2,P=y.x+y.w;let O=y.y;for(const F of y.bodyIds){const U=e.byId.get(F);U&&(O=Math.max(O,U.y+U.h))}const B=Math.min(O+40,L-20),z=12,Z=[`M ${I} ${j}`,`H ${P-z}`,`A ${z} ${z} 0 0 1 ${P} ${j+z}`,`V ${E}`].join(" "),b=_<=P?[`M ${P} ${T}`,`V ${B-z}`,`A ${z} ${z} 0 0 1 ${P-z} ${B}`,`H ${_+z}`,`A ${z} ${z} 0 0 0 ${_} ${B+z}`,`V ${L}`].join(" "):[`M ${P} ${T}`,`V ${B-z}`,`A ${z} ${z} 0 0 0 ${P+z} ${B}`,`H ${_-z}`,`A ${z} ${z} 0 0 1 ${_} ${B+z}`,`V ${L}`].join(" ");return s.jsxs("g",{children:[s.jsx("path",{d:Z,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none"}),s.jsx("path",{d:b,stroke:v.edgeNeutral,strokeWidth:1.6,fill:"none",markerEnd:"url(#fd-arrow)"})]},`afterlast-${y.loopId}`)}),(()=>{const y=new Map;for(const f of t.edges)f.isFault||f.isGoTo||e.suppressedEdges.has(`${f.from}->${f.to}`)||y.set(f.from,(y.get(f.from)??0)+1);const d=new Map;return t.edges.map((f,m)=>{if(!f.isGoTo||f.isFault)return null;const S=e.byId.get(f.from);if(!S)return null;const E=d.get(f.from)??0;if(d.set(f.from,E+1),(y.get(f.from)??0)>0){const j=S.x+S.w,P=S.y+S.h/2+E*ko;return s.jsx("line",{x1:j,y1:P,x2:j+Ma,y2:P,stroke:v.edgeNeutral,strokeWidth:1.6},`goto-stub-${f.from}-${f.to}-${m}`)}const _=S.cx,L=S.y+S.h,I=S.y+S.h+La+E*ko;return s.jsx("line",{x1:_,y1:L,x2:_,y2:I,stroke:v.edgeNeutral,strokeWidth:1.6},`goto-stub-${f.from}-${f.to}-${m}`)})})(),t.edges.map((y,d)=>{if(!y.isGoTo||!y.isFault)return null;const f=e.byId.get(y.from);if(!f)return null;const m=f.x+f.w,S=f.y+f.h/2,E=m+At,T=E+Vn,_=T+At,L=a.has(y.from);return s.jsxs("g",{children:[s.jsx("path",{d:`M ${m} ${S} L ${E} ${S}`,stroke:v.statusNegative,strokeWidth:1.6,fill:"none",strokeDasharray:"5 4"}),!L&&s.jsx("path",{d:`M ${T} ${S} L ${_} ${S}`,stroke:v.statusNegative,strokeWidth:1.6,fill:"none",strokeDasharray:"5 4",markerEnd:"url(#fd-arrow-fault)"})]},`fault-goto-stub-${y.from}-${y.to}-${d}`)})]}),e.placed.map(y=>{const d=y.node.kind==="group"?y.node.id.replace(/^__group__/,""):void 0;return s.jsx(X4,{placed:y,selected:d?d===l:y.node.id===o,collapsible:u.has(y.node.id),isCollapsed:i.has(y.node.id),isGroupSummary:y.node.kind==="group",onSelect:d?()=>p(d):c,onSelectStep:h,selectedStepName:g&&g.stageId===y.node.id?g.stepName:null,onExpandGroup:d?()=>k(d):void 0,onToggleCollapse:x},y.node.id)}),e.groups.map(y=>s.jsx(Z4,{group:y,onCollapse:()=>k(y.id),onSelect:()=>p(y.id)},`gh-${y.id}`)),t.edges.map((y,d)=>{if(!y.isFault)return null;const f=e.byId.get(y.from);if(!f)return null;if(y.isGoTo){const T=f.x+f.w,_=f.y+f.h/2,L=T+At+Vn/2;return s.jsx(ka,{x:L,y:_,collapsed:a.has(y.from),onToggle:()=>C(y.from)},`fault-${y.from}-${y.to}-${d}`)}const m=e.byId.get(y.to),{lx:S,ly:E}=Ki(y,f,m,e.placed);return s.jsx(ka,{x:S,y:E,collapsed:a.has(y.from),onToggle:()=>C(y.from)},`fault-${y.from}-${y.to}-${d}`)}),(()=>{const y=new Map,d=new Map(t.nodes.map(m=>[m.id,m])),f=new Map;for(const m of t.edges)m.isFault||m.isGoTo||e.suppressedEdges.has(`${m.from}->${m.to}`)||f.set(m.from,(f.get(m.from)??0)+1);return t.edges.map((m,S)=>{if(!m.isGoTo)return null;const E=e.byId.get(m.from),T=d.get(m.to);if(!E||!T)return null;const _=e.byId.get(m.to);if(m.isFault){if(a.has(m.from))return null;const B=E.x+E.w+At+Vn+At,z=E.y+E.h/2;return s.jsx(ni,{x:B,y:z,targetLabel:T.label,onSelect:_?()=>c(m.to):void 0,variant:"right",fault:!0},`goto-${m.from}-${m.to}-${S}`)}const L=m.label?`${m.label}: ${T.label}`:T.label,I=y.get(m.from)??0;if(y.set(m.from,I+1),(f.get(m.from)??0)>0){const B=E.x+E.w+Ma,z=E.y+E.h/2+I*ko;return s.jsx(ni,{x:B,y:z,targetLabel:L,onSelect:_?()=>c(m.to):void 0,variant:"right"},`goto-${m.from}-${m.to}-${S}`)}const P=E.cx,O=E.y+E.h+La+I*ko;return s.jsx(ni,{x:P,y:O,targetLabel:L,onSelect:_?()=>c(m.to):void 0},`goto-${m.from}-${m.to}-${S}`)})})()]})}function e0({icon:e,label:t,onClick:n,primary:r,title:o}){return s.jsxs("button",{type:"button",onClick:n,title:o??t,style:{display:"inline-flex",alignItems:"center",gap:8,backgroundColor:r?v.interactivePrimary:v.bgElevated,color:r?v.interactivePrimaryFg:v.textPrimary,border:r?"none":`1px solid ${v.borderDefault}`,borderRadius:v.radiusMd,padding:"8px 14px",fontSize:13,fontWeight:600,fontFamily:v.fontFamily,cursor:"pointer",boxShadow:v.shadowMd},children:[e,t]})}function t0(){return s.jsx("div",{style:{display:"flex",height:"100%",minHeight:300,alignItems:"center",justifyContent:"center",fontSize:13,color:v.textSecondary,fontFamily:v.fontFamily},children:"Select a .flow-meta.xml file to render the flow."})}function n0(){return null}function r0({message:e}){return s.jsx("div",{style:{display:"flex",height:"100%",minHeight:300,alignItems:"center",justifyContent:"center",padding:"0 24px",fontFamily:v.fontFamily},children:s.jsx("div",{style:{borderRadius:v.radiusMd,border:`1px solid ${v.statusNegative}`,backgroundColor:v.bgElevated,padding:"12px 16px",fontSize:13,color:v.statusNegative},children:e})})}function o0({kind:e}){return s.jsx(Qs,{kind:e,size:26,glyph:14})}function _a({color:e,dashed:t}){return s.jsx("svg",{width:"30",height:"10",style:{display:"block"},children:s.jsx("line",{x1:"1",y1:"5",x2:"29",y2:"5",stroke:e,strokeWidth:"2.5",strokeDasharray:t?"5 4":void 0,strokeLinecap:"round"})})}const l0=["start","screen","setScreenProperty","decision","loop","assignment","addPromptInstructions","collectionProcessor","collectionSort","wait","transform","customError","recordLookup","recordCreate","recordUpdate","recordDelete","recordRollback","action","apexAction","apexPluginCall","emailAction","externalCallout","routeWork","addScreenPop","addSkillRequirement","checkAvailability","stage","interactiveStep","subflow","end"],i0={start:"Start",end:"End",collectionProcessor:"Collection Filter",collectionSort:"Collection Sort",apexAction:"Apex Action",emailAction:"Email Action",routeWork:"Route Work",addScreenPop:"Add Screen",addPromptInstructions:"Add Prompt Instructions"};function s0(e){const t=new Set(e.nodes.map(o=>o.kind)),n=o=>{var l;return i0[o]??((l=e.nodes.find(i=>i.kind===o))==null?void 0:l.typeLabel)??o},r=l0.filter(o=>t.has(o)).map(o=>({key:o,icon:s.jsx(o0,{kind:o}),label:n(o)}));return e.edges.some(o=>!o.isFault)&&r.push({key:"connector",icon:s.jsx(_a,{color:v.edgeNeutral}),label:"Connector"}),e.edges.some(o=>o.isFault)&&r.push({key:"fault",icon:s.jsx(_a,{color:v.statusNegative,dashed:!0}),label:"Fault Path"}),r}function Qr(e){const t=new Map;for(const n of e){let r=t.get(n.from);r||(r=[],t.set(n.from,r)),r.push(n)}return t}function u0(e){const t=e.nodes.filter(r=>r.kind==="start").map(r=>r.id);if(t.length)return t;const n=new Set(e.edges.map(r=>r.to));return e.nodes.filter(r=>!n.has(r.id)).map(r=>r.id)}function a0(e,t,n=Qr(e.edges)){const r=(n.get(t)??[]).filter(p=>!p.isFault);if(r.length<2)return;const o=r.map(p=>{const h=new Set,g=[p.to];for(;g.length;){const x=g.shift();if(!(h.has(x)||x===t)){h.add(x);for(const C of n.get(x)??[])!C.isFault&&C.to!==t&&g.push(C.to)}}return h});let l=new Set(o[0]);for(let p=1;p<o.length;p++)l=new Set([...l].filter(h=>o[p].has(h)));if(l.size===0)return;const i=new Map,u=[[t,0]];for(;u.length;){const[p,h]=u.shift();if(!i.has(p)){i.set(p,h);for(const g of n.get(p)??[])g.isFault||u.push([g.to,h+1])}}let a,c=1/0;for(const p of l){const h=i.get(p)??1/0;h<c&&(c=h,a=p)}return a}function c0(e,t,n){if(t.size===0&&n.size===0)return e;const r=new Set(e.nodes.map(d=>d.id)),o=new Map(e.nodes.map(d=>[d.id,d])),l=Qr(e.edges),i=[],u=new Set,a=new Set,c=new Set;for(const d of n)if(r.has(d))for(const f of l.get(d)??[]){if(!f.isFault||f.isGoTo)continue;const m=[f.to];for(;m.length;){const S=m.pop();if(!(c.has(S)||S===d)){c.add(S);for(const E of l.get(S)??[])E.isFault||E.isGoTo||c.has(E.to)||E.to===d||m.push(E.to)}}}for(const d of t){if(!r.has(d))continue;const f=o.get(d);if((f==null?void 0:f.kind)==="loop"){a.add(d);continue}const m=a0(e,d,l);m?(u.add(d),i.push({from:d,to:m,label:void 0})):u.add(d)}const h=[...e.edges.filter(d=>a.has(d.from)?d.isFault?!0:!!d.isDefault:u.has(d.from)?!!d.isFault:!0),...i],g=d=>!!d.isFault&&n.has(d.from)&&r.has(d.from),x=Qr(h),C=new Set,k=[...u0(e)].filter(d=>!c.has(d));for(;k.length;){const d=k.shift();if(!C.has(d)){C.add(d);for(const f of x.get(d)??[])C.has(f.to)||g(f)||c.has(f.to)||k.push(f.to)}}const y=[];for(const d of h)C.has(d.from)&&(g(d)?y.push({...d,isFaultStub:!0}):C.has(d.to)&&y.push(d));return{...e,nodes:e.nodes.filter(d=>C.has(d.id)),edges:y}}function f0(e,t){if(!e.groups||t.size===0)return e;let n=e.nodes,r=e.edges;for(const o of e.groups){if(!t.has(o.id))continue;const l=new Set(o.memberIds),i=o.memberIds.filter(x=>n.some(C=>C.id===x));if(i.length===0)continue;const u=`__group__${o.id}`;let a=0,c=0;for(const x of r){const C=l.has(x.from),k=l.has(x.to);C&&k||(k&&(a+=1),C&&(c+=1))}const p={id:u,kind:"group",label:o.label,typeLabel:"Group",metaTypeLabel:o.groupType??"Group",detail:`${i.length} element${i.length===1?"":"s"}`,details:[],autoLabel:!1,groupConnections:{incoming:a,outgoing:c}},h=[],g=new Set;for(const x of r){const C=l.has(x.from),k=l.has(x.to);if(C&&k)continue;if(!C&&!k){h.push(x);continue}const y=C?u:x.from,d=k?u:x.to;if(y===d)continue;const f=`${y}->${d}:${x.label??""}:${x.isFault?"f":""}`;g.has(f)||(g.add(f),h.push({...x,from:y,to:d}))}n=[...n.filter(x=>!l.has(x.id)),p],r=h}return{...e,nodes:n,edges:r}}function d0(e){const t=new Map(e.nodes.map(h=>[h.id,h.kind])),n=e.nodes.filter(h=>h.kind==="decision").map(h=>h.id);if(n.length===0)return e;const r=Qr(e.edges);function o(h){const g=(r.get(h)??[]).filter(x=>!x.isFault&&!x.isGoTo);return g.length===1?g[0].to:void 0}function l(h){const g=new Set;let x=h;for(;x&&!g.has(x);){if(g.add(x),t.get(x)==="end")return x;x=o(x)}}const i=new Map;for(const h of n){const g=[];for(const C of r.get(h)??[]){if(C.isFault||C.isGoTo)continue;const k=l(C.to);if(!k)continue;const y=i.get(k)??k;g.push(y)}if(g.length<2)continue;const x=g[0];for(const C of g)C!==x&&i.set(C,x)}if(i.size===0)return e;const u=h=>i.get(h)??h,a=e.edges.map(h=>i.has(h.to)?{...h,to:u(h.to)}:h),c=new Set;for(const h of a)c.add(h.from),c.add(h.to);const p=e.nodes.filter(h=>!(i.has(h.id)&&!c.has(h.id)));return{...e,nodes:p,edges:a}}function p0(e,t,n,r){return d0(c0(f0(e,r),t,n))}function h0(e){const t=new Set,n=new Set;if(!e)return{faultSources:t,branchSources:n};const r=new Map(e.nodes.map(l=>[l.id,l.kind])),o=Qr(e.edges);for(const[l,i]of o){i.some(c=>c.isFault)&&t.add(l);const u=r.get(l);if(u!=="decision"&&u!=="loop")continue;i.some(c=>!c.isFault&&!c.isGoTo)&&n.add(l)}return{faultSources:t,branchSources:n}}function m0({model:e,error:t,fileName:n,selectableNodes:r}){const[o,l]=$.useState(!1),[i,u]=$.useState(null),[a,c]=$.useState(new Set),[p,h]=$.useState(new Set),[g,x]=$.useState(new Set),[C,k]=$.useState(null),[y,d]=$.useState(null);$.useEffect(()=>{u(null),k(null),d(null),c(new Set),h(new Set),x(new Set),l(!1)},[e==null?void 0:e.sourcePath]);const{faultSources:f,branchSources:m}=$.useMemo(()=>h0(e),[e]),S=$.useMemo(()=>e?p0(e,a,p,g):void 0,[e,a,p,g]),[E,T]=$.useState(void 0),[_,L]=$.useState(!!S);$.useEffect(()=>{if(!S){T(void 0),L(!1);return}T(void 0),L(!0);let ue=!1;const be=setTimeout(()=>{if(ue)return;const we=W4(S);ue||(T(we),L(!1))},0);return()=>{ue=!0,clearTimeout(be)}},[S]);const I=$.useMemo(()=>(e==null?void 0:e.nodes.find(ue=>ue.id===i))??null,[e,i]),j=$.useMemo(()=>{var ue;return((ue=e==null?void 0:e.groups)==null?void 0:ue.find(be=>be.id===C))??null},[e,C]),{selectedStepStage:P,selectedStepData:O}=$.useMemo(()=>{var we;if(!e||!y)return{selectedStepStage:null,selectedStepData:null};const ue=e.nodes.find(Ae=>Ae.id===y.stageId)??null,be=((we=ue==null?void 0:ue.steps)==null?void 0:we.find(Ae=>Ae.name===y.stepName))??null;return{selectedStepStage:ue,selectedStepData:be}},[e,y]),B=$.useMemo(()=>e?s0(e):[],[e]),{toggleButton:z,overlay:Z,panel:D,selectMode:b,toggle:F}=a3({nodes:r??[],fileName:n,options:{selectLabel:"Select to Edit",selectingLabel:"Selecting…"}}),U=$.useMemo(()=>({selectMode:b,onToggle:ue=>F("detail",ue)}),[b,F]),G=ue=>be=>ue(we=>{const Ae=new Set(we);return Ae.has(be)?Ae.delete(be):Ae.add(be),Ae}),te=G(c),se=G(h),st=G(x),le=m.size+f.size,je=le>0&&a.size>=m.size&&p.size>=f.size,Fe=()=>{c(je?new Set:new Set(m)),h(je?new Set:new Set(f))},gt=e&&(le>0||z)?s.jsxs("div",{style:{display:"flex",gap:8},children:[le>0?s.jsx(e0,{icon:je?s.jsx(w3,{size:14}):s.jsx(S3,{size:14}),label:je?"Expand All":"Collapse All",onClick:Fe,title:"Expand or collapse all branches and fault paths"}):null,z]}):void 0;return s.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",overflow:"hidden",backgroundColor:v.canvasBg,color:v.textPrimary,fontFamily:v.fontFamily},children:s.jsxs("div",{style:{flex:1,display:"flex",minHeight:0},children:[s.jsx("div",{style:{width:e&&o?336:0,flexShrink:0,overflow:"hidden",transition:"width 240ms cubic-bezier(0.4, 0, 0.2, 1)"},"aria-hidden":!(e&&o),children:e?s.jsx("div",{style:{width:336,height:"100%",display:"flex"},children:s.jsx(j4,{model:e,selectedNode:I,selectedGroup:j,selectedStepStage:P,selectedStep:O,onClearSelection:()=>{u(null),k(null),d(null)},onClose:()=>l(!1),rowSelection:U})}):null}),s.jsxs("div",{style:{flex:1,position:"relative",minWidth:0,minHeight:0,display:"flex",flexDirection:"column"},children:[s.jsx(g3,{contentWidth:E==null?void 0:E.width,contentHeight:E==null?void 0:E.height,contentCenterX:E==null?void 0:E.spineCenterX,resetKey:(e==null?void 0:e.sourcePath)??"",overlayTopRight:gt,overlay:Z,zoomControlsVariant:"pill",legend:e&&B.length?s.jsx("div",{className:"flow-legend-wrap",children:s.jsx(Xd,{items:B})}):null,onBackgroundClick:()=>{u(null),k(null),d(null)},children:({zoom:ue,pan:be})=>t?s.jsx(r0,{message:t}):e&&(_||!E)?s.jsx(n0,{}):E&&e&&S?s.jsx(J4,{layout:E,model:S,zoom:ue,pan:be,selectedId:i,selectedGroupId:C,collapsedBranches:a,branchSources:m,collapsedFaults:p,onSelect:we=>{u(we),k(null),d(null),l(!0)},onSelectGroup:we=>{k(we),u(null),d(null),l(!0)},onSelectStep:(we,Ae)=>{d({stageId:we,stepName:Ae}),u(null),k(null),l(!0)},selectedStep:y,onToggleCollapse:te,onToggleFault:se,onToggleGroup:we=>{k(we),u(null),st(we)}}):s.jsx(t0,{})}),D,o?null:s.jsxs("button",{type:"button",onClick:()=>l(!0),style:{position:"absolute",top:16,left:16,display:"inline-flex",alignItems:"center",gap:6,backgroundColor:v.bgElevated,color:v.textPrimary,border:`1px solid ${v.borderDefault}`,borderRadius:v.radiusMd,padding:"7px 12px",fontSize:12,fontWeight:600,fontFamily:v.fontFamily,cursor:"pointer",zIndex:5},children:[s.jsx(Jn,{size:14}),"Flow Information"]})]})]})})}Qd({pluginName:"Flow",rootClass:"flow-app",render:(e,t)=>s.jsx(m0,{model:e,fileName:t.fileName,pluginName:"Salesforce Flow",selectableNodes:t.selectableNodes}),validateData:e=>{var t;return(t=e==null?void 0:e.nodes)!=null&&t.length?null:"Flow has no elements"}});
|